/**
 * 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 {
  getAddressEncoder,
  getBytesEncoder,
  getProgramDerivedAddress,
  type Address,
  type ProgramDerivedAddress,
} from "@solana/kit";

export type InstructionParamsSeeds = {
  signer: Address;
};

export async function findInstructionParamsPda(
  seeds: InstructionParamsSeeds,
  config: { programAddress?: Address | undefined } = {},
): Promise<ProgramDerivedAddress> {
  const {
    programAddress = "DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru" as Address<"DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru">,
  } = config;
  return await getProgramDerivedAddress({
    programAddress,
    seeds: [
      getBytesEncoder().encode(
        new Uint8Array([
          105, 110, 115, 116, 114, 117, 99, 116, 105, 111, 110, 95, 112, 97,
          114, 97, 109, 115,
        ]),
      ),
      getAddressEncoder().encode(seeds.signer),
    ],
  });
}
