/** * 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 Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; import { type AccountState, type AccountStateArgs } from '../types'; export declare const UPDATE_DEFAULT_ACCOUNT_STATE_DISCRIMINATOR = 28; export declare function getUpdateDefaultAccountStateDiscriminatorBytes(): ReadonlyUint8Array; export declare const UPDATE_DEFAULT_ACCOUNT_STATE_DEFAULT_ACCOUNT_STATE_DISCRIMINATOR = 1; export declare function getUpdateDefaultAccountStateDefaultAccountStateDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateDefaultAccountStateInstruction = string, TAccountFreezeAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountFreezeAuthority extends string ? ReadonlyAccount : TAccountFreezeAuthority, ...TRemainingAccounts ]>; export type UpdateDefaultAccountStateInstructionData = { discriminator: number; defaultAccountStateDiscriminator: number; /** The state each new token account should start with. */ state: AccountState; }; export type UpdateDefaultAccountStateInstructionDataArgs = { /** The state each new token account should start with. */ state: AccountStateArgs; }; export declare function getUpdateDefaultAccountStateInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateDefaultAccountStateInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateDefaultAccountStateInstructionDataCodec(): FixedSizeCodec; export type UpdateDefaultAccountStateInput = { /** The mint. */ mint: Address; /** The mint freeze authority or its multisignature account. */ freezeAuthority: Address | TransactionSigner; state: UpdateDefaultAccountStateInstructionDataArgs['state']; multiSigners?: Array; }; export declare function getUpdateDefaultAccountStateInstruction(input: UpdateDefaultAccountStateInput, config?: { programAddress?: TProgramAddress; }): UpdateDefaultAccountStateInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountFreezeAuthority>; export type ParsedUpdateDefaultAccountStateInstruction = { programAddress: Address; accounts: { /** The mint. */ mint: TAccountMetas[0]; /** The mint freeze authority or its multisignature account. */ freezeAuthority: TAccountMetas[1]; }; data: UpdateDefaultAccountStateInstructionData; }; export declare function parseUpdateDefaultAccountStateInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateDefaultAccountStateInstruction; //# sourceMappingURL=updateDefaultAccountState.d.ts.map