/** * 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 CharacterSyncSeeds = { character: Address; }; /** * Staging account for a bounded Character research-definition sync. * * The live Character modifiers remain untouched while this accumulator is * built. That matters because permissionless fleet settlement and combat may * legitimately read the Character between chunks. Only a complete accumulator * is committed to the Character. */ export async function findCharacterSyncPda( seeds: CharacterSyncSeeds, config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = 'C4SAgeKLgb3pTLWhVr6NRwWyYFuTR7ZeSXFrzoLwfMzF' as Address<'C4SAgeKLgb3pTLWhVr6NRwWyYFuTR7ZeSXFrzoLwfMzF'>, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [ getBytesEncoder().encode( new Uint8Array([ 67, 104, 97, 114, 97, 99, 116, 101, 114, 83, 121, 110, 99, ]), ), getAddressEncoder().encode(seeds.character), ], }); }