/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit"; import { YVAULTS_PROGRAM_ADDRESS } from "../programs"; export declare const UPDATE_TREASURY_FEE_VAULT_DISCRIMINATOR: Uint8Array; export declare function getUpdateTreasuryFeeVaultDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateTreasuryFeeVaultInstruction = string, TAccountGlobalConfig extends string | AccountMeta = string, TAccountFeeMint extends string | AccountMeta = string, TAccountTreasuryFeeVault extends string | AccountMeta = string, TAccountTreasuryFeeVaultAuthority extends string | AccountMeta = string, TAccountTokenInfos extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountRent extends string | AccountMeta = "SysvarRent111111111111111111111111111111111", TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountSigner extends string ? WritableSignerAccount & AccountSignerMeta : TAccountSigner, TAccountGlobalConfig extends string ? WritableAccount : TAccountGlobalConfig, TAccountFeeMint extends string ? ReadonlyAccount : TAccountFeeMint, TAccountTreasuryFeeVault extends string ? WritableAccount : TAccountTreasuryFeeVault, TAccountTreasuryFeeVaultAuthority extends string ? ReadonlyAccount : TAccountTreasuryFeeVaultAuthority, TAccountTokenInfos extends string ? ReadonlyAccount : TAccountTokenInfos, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export type UpdateTreasuryFeeVaultInstructionData = { discriminator: ReadonlyUint8Array; collateralId: number; }; export type UpdateTreasuryFeeVaultInstructionDataArgs = { collateralId: number; }; export declare function getUpdateTreasuryFeeVaultInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateTreasuryFeeVaultInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateTreasuryFeeVaultInstructionDataCodec(): FixedSizeCodec; export type UpdateTreasuryFeeVaultInput = { signer: TransactionSigner; globalConfig: Address; feeMint: Address; treasuryFeeVault: Address; treasuryFeeVaultAuthority: Address; tokenInfos: Address; systemProgram?: Address; rent?: Address; tokenProgram?: Address; collateralId: UpdateTreasuryFeeVaultInstructionDataArgs["collateralId"]; }; export declare function getUpdateTreasuryFeeVaultInstruction(input: UpdateTreasuryFeeVaultInput, config?: { programAddress?: TProgramAddress; }): UpdateTreasuryFeeVaultInstruction; export type ParsedUpdateTreasuryFeeVaultInstruction = { programAddress: Address; accounts: { signer: TAccountMetas[0]; globalConfig: TAccountMetas[1]; feeMint: TAccountMetas[2]; treasuryFeeVault: TAccountMetas[3]; treasuryFeeVaultAuthority: TAccountMetas[4]; tokenInfos: TAccountMetas[5]; systemProgram: TAccountMetas[6]; rent: TAccountMetas[7]; tokenProgram: TAccountMetas[8]; }; data: UpdateTreasuryFeeVaultInstructionData; }; export declare function parseUpdateTreasuryFeeVaultInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateTreasuryFeeVaultInstruction; //# sourceMappingURL=updateTreasuryFeeVault.d.ts.map