/**
 * 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 RentClaimSeeds = {
  signer: Address;
};

export async function findRentClaimPda(
  seeds: RentClaimSeeds,
  config: { programAddress?: Address | undefined } = {},
): Promise<ProgramDerivedAddress> {
  const {
    programAddress = "FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS" as Address<"FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS">,
  } = config;
  return await getProgramDerivedAddress({
    programAddress,
    seeds: [
      getBytesEncoder().encode(
        new Uint8Array([114, 101, 110, 116, 95, 99, 108, 97, 105, 109]),
      ),
      getAddressEncoder().encode(seeds.signer),
    ],
  });
}
