/** * 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 { type Address, type ClientWithRpc, type ClientWithTransactionPlanning, type ClientWithTransactionSending, type ExtendedClient, type GetAccountInfoApi, type GetMultipleAccountsApi, type HasAddress, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from "@solana/kit"; import { type SelfFetchFunctions, type SelfPlanAndSendFunctions } from "@solana/kit/program-client-core"; import { getAdminConfigCodec, getPhygitalTokenCodec, type AdminConfig, type AdminConfigArgs, type PhygitalToken, type PhygitalTokenArgs } from "../accounts/index.js"; import { getAssignMintInstructionAsync, getClosePhygitalTokenInstructionAsync, getCreateConfigInstructionAsync, getInitializeInstructionAsync, getRemoveOwnerInstruction, getSetAdminInstructionAsync, getSetIssuerInstructionAsync, getSetMinterInstructionAsync, getSetOwnerInstruction, getVerifyInstruction, type AssignMintAsyncInput, type ClosePhygitalTokenAsyncInput, type CreateConfigAsyncInput, type InitializeAsyncInput, type ParsedAssignMintInstruction, type ParsedClosePhygitalTokenInstruction, type ParsedCreateConfigInstruction, type ParsedInitializeInstruction, type ParsedRemoveOwnerInstruction, type ParsedSetAdminInstruction, type ParsedSetIssuerInstruction, type ParsedSetMinterInstruction, type ParsedSetOwnerInstruction, type ParsedVerifyInstruction, type RemoveOwnerInput, type SetAdminAsyncInput, type SetIssuerAsyncInput, type SetMinterAsyncInput, type SetOwnerInput, type VerifyInput } from "../instructions/index.js"; import { findAdminConfigPda } from "../pdas/index.js"; export declare const PHYGITAL_TOKEN_PROGRAM_ADDRESS: Address<"DuPpckdjjgVAnYok2aTMAt264ZPBXqq3JSazJjCUzTJQ">; export declare enum PhygitalTokenAccount { AdminConfig = 0, PhygitalToken = 1 } export declare function identifyPhygitalTokenAccount(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): PhygitalTokenAccount; export declare enum PhygitalTokenEvent { AssignMintEvent = 0, ClosePhygitalTokenEvent = 1, CreateConfigEvent = 2, InitializeEvent = 3, RemoveOwnerEvent = 4, SetAdminEvent = 5, SetIssuerEvent = 6, SetMinterEvent = 7, SetOwnerEvent = 8 } export declare function identifyPhygitalTokenEvent(event: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): PhygitalTokenEvent; export declare enum PhygitalTokenInstruction { AssignMint = 0, ClosePhygitalToken = 1, CreateConfig = 2, Initialize = 3, RemoveOwner = 4, SetAdmin = 5, SetIssuer = 6, SetMinter = 7, SetOwner = 8, Verify = 9 } export declare function identifyPhygitalTokenInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): PhygitalTokenInstruction; export type ParsedPhygitalTokenInstruction = ({ instructionType: PhygitalTokenInstruction.AssignMint; } & ParsedAssignMintInstruction) | ({ instructionType: PhygitalTokenInstruction.ClosePhygitalToken; } & ParsedClosePhygitalTokenInstruction) | ({ instructionType: PhygitalTokenInstruction.CreateConfig; } & ParsedCreateConfigInstruction) | ({ instructionType: PhygitalTokenInstruction.Initialize; } & ParsedInitializeInstruction) | ({ instructionType: PhygitalTokenInstruction.RemoveOwner; } & ParsedRemoveOwnerInstruction) | ({ instructionType: PhygitalTokenInstruction.SetAdmin; } & ParsedSetAdminInstruction) | ({ instructionType: PhygitalTokenInstruction.SetIssuer; } & ParsedSetIssuerInstruction) | ({ instructionType: PhygitalTokenInstruction.SetMinter; } & ParsedSetMinterInstruction) | ({ instructionType: PhygitalTokenInstruction.SetOwner; } & ParsedSetOwnerInstruction) | ({ instructionType: PhygitalTokenInstruction.Verify; } & ParsedVerifyInstruction); export declare function parsePhygitalTokenInstruction(instruction: Instruction & InstructionWithData): ParsedPhygitalTokenInstruction; export type PhygitalTokenPlugin = { accounts: PhygitalTokenPluginAccounts; instructions: PhygitalTokenPluginInstructions; pdas: PhygitalTokenPluginPdas; identifyAccount: typeof identifyPhygitalTokenAccount; identifyInstruction: typeof identifyPhygitalTokenInstruction; parseInstruction: typeof parsePhygitalTokenInstruction; }; export type PhygitalTokenPluginAccounts = { adminConfig: ReturnType & SelfFetchFunctions; phygitalToken: ReturnType & SelfFetchFunctions; }; export type PhygitalTokenPluginInstructions = { assignMint: (input: AssignMintAsyncInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; closePhygitalToken: (input: ClosePhygitalTokenAsyncInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; createConfig: (input: CreateConfigAsyncInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; initialize: (input: InitializeAsyncInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; removeOwner: (input: RemoveOwnerInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; setAdmin: (input: SetAdminAsyncInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; setIssuer: (input: SetIssuerAsyncInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; setMinter: (input: SetMinterAsyncInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; setOwner: (input: SetOwnerInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; verify: (input: VerifyInput, config?: { programAddress?: Address | HasAddress; }) => ReturnType & SelfPlanAndSendFunctions; }; export type PhygitalTokenPluginPdas = { adminConfig: typeof findAdminConfigPda; }; export type PhygitalTokenPluginRequirements = ClientWithRpc & ClientWithTransactionPlanning & ClientWithTransactionSending; export declare function phygitalTokenProgram(config?: { programAddress?: Address | HasAddress; }): (client: T) => ExtendedClient; //# sourceMappingURL=phygitalToken.d.ts.map