/**
 * This code was AUTOGENERATED using the Codama library.
 * Please DO NOT EDIT THIS FILE, instead use visitors
 * to add features, then rerun Codama to update it.
 *
 * @see https://github.com/codama-idl/codama
 */

import {
  fixEncoderSize,
  getBytesEncoder,
  getProgramDerivedAddress,
  type Address,
  type ProgramDerivedAddress,
  type ReadonlyUint8Array,
} from "@solana/kit";

export type FillStatusSeeds = {
  relayHash: ReadonlyUint8Array;
};

export async function findFillStatusPda(
  seeds: FillStatusSeeds,
  config: { programAddress?: Address | undefined } = {},
): Promise<ProgramDerivedAddress> {
  const {
    programAddress = "DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru" as Address<"DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru">,
  } = config;
  return await getProgramDerivedAddress({
    programAddress,
    seeds: [
      getBytesEncoder().encode(new Uint8Array([102, 105, 108, 108, 115])),
      fixEncoderSize(getBytesEncoder(), 32).encode(seeds.relayHash),
    ],
  });
}
