/** * 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 Option, type OptionOrNullable, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_CONFIDENTIAL_TRANSFER_MINT_DISCRIMINATOR = 27; export declare function getUpdateConfidentialTransferMintDiscriminatorBytes(): ReadonlyUint8Array; export declare const UPDATE_CONFIDENTIAL_TRANSFER_MINT_CONFIDENTIAL_TRANSFER_DISCRIMINATOR = 1; export declare function getUpdateConfidentialTransferMintConfidentialTransferDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateConfidentialTransferMintInstruction = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, ...TRemainingAccounts ]>; export type UpdateConfidentialTransferMintInstructionData = { discriminator: number; confidentialTransferDiscriminator: number; /** * Determines if newly configured accounts must be approved by the * `authority` before they may be used by the user. */ autoApproveNewAccounts: boolean; /** New authority to decode any transfer amount in a confidential transfer. */ auditorElgamalPubkey: Option
; }; export type UpdateConfidentialTransferMintInstructionDataArgs = { /** * Determines if newly configured accounts must be approved by the * `authority` before they may be used by the user. */ autoApproveNewAccounts: boolean; /** New authority to decode any transfer amount in a confidential transfer. */ auditorElgamalPubkey: OptionOrNullable
; }; export declare function getUpdateConfidentialTransferMintInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateConfidentialTransferMintInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateConfidentialTransferMintInstructionDataCodec(): FixedSizeCodec; export type UpdateConfidentialTransferMintInput = { /** The SPL Token mint. */ mint: Address; /** Confidential transfer mint authority. */ authority: TransactionSigner; autoApproveNewAccounts: UpdateConfidentialTransferMintInstructionDataArgs['autoApproveNewAccounts']; auditorElgamalPubkey: UpdateConfidentialTransferMintInstructionDataArgs['auditorElgamalPubkey']; }; export declare function getUpdateConfidentialTransferMintInstruction(input: UpdateConfidentialTransferMintInput, config?: { programAddress?: TProgramAddress; }): UpdateConfidentialTransferMintInstruction; export type ParsedUpdateConfidentialTransferMintInstruction = { programAddress: Address; accounts: { /** The SPL Token mint. */ mint: TAccountMetas[0]; /** Confidential transfer mint authority. */ authority: TAccountMetas[1]; }; data: UpdateConfidentialTransferMintInstructionData; }; export declare function parseUpdateConfidentialTransferMintInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateConfidentialTransferMintInstruction; //# sourceMappingURL=updateConfidentialTransferMint.d.ts.map