/** * 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 FactionRelationTrackerSeeds = { gameId: Address; }; /** * The diplomacy relation matrix + combat-gating config for one game. * * Sized 66-B header + a sparse `Map` tail. `combat_gating_enabled == 0` * (default) reproduces today's behavior. Future fields carve from `_reserved` (BEFORE `#[unsized_start]`). */ export async function findFactionRelationTrackerPda( seeds: FactionRelationTrackerSeeds, config: { programAddress?: Address | undefined } = {}, ): Promise { const { programAddress = 'C4SAgeKLgb3pTLWhVr6NRwWyYFuTR7ZeSXFrzoLwfMzF' as Address<'C4SAgeKLgb3pTLWhVr6NRwWyYFuTR7ZeSXFrzoLwfMzF'>, } = config; return await getProgramDerivedAddress({ programAddress, seeds: [ getBytesEncoder().encode( new Uint8Array([ 70, 97, 99, 116, 105, 111, 110, 82, 101, 108, 97, 116, 105, 111, 110, 115, ]), ), getAddressEncoder().encode(seeds.gameId), ], }); }