/** * 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 DemocracyAllocationHistorySeeds = { allocation: Address; }; /** * One root × generation contributor, independent of its authorizing Profile route. A pending * transition is materialized against its immutable last-old-power boundary index before any * subsequent edit. Releasing physical backing leaves this historical claim account intact. */ export async function findDemocracyAllocationHistoryPda( seeds: DemocracyAllocationHistorySeeds, config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = 'C4SAgeKLgb3pTLWhVr6NRwWyYFuTR7ZeSXFrzoLwfMzF' as Address<'C4SAgeKLgb3pTLWhVr6NRwWyYFuTR7ZeSXFrzoLwfMzF'>, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [ getBytesEncoder().encode( new Uint8Array([ 68, 101, 109, 111, 99, 114, 97, 99, 121, 65, 108, 108, 111, 99, 97, 116, 105, 111, 110, 72, 105, 115, 116, 111, 114, 121, ]), ), getAddressEncoder().encode(seeds.allocation), ], }); }