/** * 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 AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type HasAddress, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount, type WritableSignerAccount } from "@solana/kit"; import { type InstructionAccountInput, type InstructionAccountInputAddress, type InstructionSignerInput, type ResolvedInstructionAccountMeta } from "@solana/kit/program-client-core"; import { PHYGITAL_TOKEN_PROGRAM_ADDRESS } from "../programs/index.js"; import { type PhygitalTokenType, type PhygitalTokenTypeArgs, type Secp256r1Pubkey, type Secp256r1PubkeyArgs } from "../types/index.js"; export declare const INITIALIZE_DISCRIMINATOR: ReadonlyUint8Array; export declare function getInitializeDiscriminatorBytes(): ReadonlyUint8Array; export type InitializeInstruction = string, TAccountAdminConfig extends string | AccountMeta = string, TAccountPhygitalToken extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAuthority extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAuthority, TAccountAdminConfig extends string ? ReadonlyAccount : TAccountAdminConfig, TAccountPhygitalToken extends string ? WritableAccount : TAccountPhygitalToken, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type InitializeInstructionData = { discriminator: ReadonlyUint8Array; identifier: Secp256r1Pubkey; secp256r1Pubkey: Secp256r1Pubkey; tokenType: PhygitalTokenType; owner: Address; }; export type InitializeInstructionDataArgs = { identifier: Secp256r1PubkeyArgs; secp256r1Pubkey: Secp256r1PubkeyArgs; tokenType: PhygitalTokenTypeArgs; owner: Address | HasAddress; }; export declare function getInitializeInstructionDataEncoder(): FixedSizeEncoder; export declare function getInitializeInstructionDataDecoder(): FixedSizeDecoder; export declare function getInitializeInstructionDataCodec(): FixedSizeCodec; export type InitializeAsyncInput = { authority: TAccountAuthority; adminConfig?: TAccountAdminConfig; phygitalToken: TAccountPhygitalToken; systemProgram?: TAccountSystemProgram; identifier: InitializeInstructionDataArgs["identifier"]; secp256r1Pubkey: InitializeInstructionDataArgs["secp256r1Pubkey"]; tokenType: InitializeInstructionDataArgs["tokenType"]; owner: InitializeInstructionDataArgs["owner"]; }; export declare function getInitializeInstructionAsync(input: InitializeAsyncInput, config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress; }; }): Promise>, ResolvedInstructionAccountMeta>, ResolvedInstructionAccountMeta>, ResolvedInstructionAccountMeta>>>; export type InitializeInput = { authority: TAccountAuthority; adminConfig: TAccountAdminConfig; phygitalToken: TAccountPhygitalToken; systemProgram?: TAccountSystemProgram; identifier: InitializeInstructionDataArgs["identifier"]; secp256r1Pubkey: InitializeInstructionDataArgs["secp256r1Pubkey"]; tokenType: InitializeInstructionDataArgs["tokenType"]; owner: InitializeInstructionDataArgs["owner"]; }; export declare function getInitializeInstruction(input: InitializeInput, config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress; }; }): InitializeInstruction>, ResolvedInstructionAccountMeta>, ResolvedInstructionAccountMeta>, ResolvedInstructionAccountMeta>>; export type ParsedInitializeInstruction = { programAddress: Address; accounts: { authority: TAccountMetas[0]; adminConfig: TAccountMetas[1]; phygitalToken: TAccountMetas[2]; systemProgram: TAccountMetas[3]; }; data: InitializeInstructionData; }; export declare function parseInitializeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeInstruction; //# sourceMappingURL=initialize.d.ts.map