/** * 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 { VOLTR_VAULT_PROGRAM_ADDRESS } from "../programs"; export declare const UPDATE_VAULT_ADAPTOR_POLICY_DISCRIMINATOR: Uint8Array; export declare function getUpdateVaultAdaptorPolicyDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateVaultAdaptorPolicyInstruction = string, TAccountProtocol extends string | AccountMeta = string, TAccountVault extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountProtocol extends string ? ReadonlyAccount : TAccountProtocol, TAccountVault extends string ? WritableAccount : TAccountVault, ...TRemainingAccounts ]>; export type UpdateVaultAdaptorPolicyInstructionData = { discriminator: ReadonlyUint8Array; allowAnyAdaptor: number; }; export type UpdateVaultAdaptorPolicyInstructionDataArgs = { allowAnyAdaptor: number; }; export declare function getUpdateVaultAdaptorPolicyInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateVaultAdaptorPolicyInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateVaultAdaptorPolicyInstructionDataCodec(): FixedSizeCodec; export type UpdateVaultAdaptorPolicyAsyncInput = { admin: TransactionSigner; protocol?: Address; vault: Address; allowAnyAdaptor: UpdateVaultAdaptorPolicyInstructionDataArgs["allowAnyAdaptor"]; }; export declare function getUpdateVaultAdaptorPolicyInstructionAsync(input: UpdateVaultAdaptorPolicyAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type UpdateVaultAdaptorPolicyInput = { admin: TransactionSigner; protocol: Address; vault: Address; allowAnyAdaptor: UpdateVaultAdaptorPolicyInstructionDataArgs["allowAnyAdaptor"]; }; export declare function getUpdateVaultAdaptorPolicyInstruction(input: UpdateVaultAdaptorPolicyInput, config?: { programAddress?: TProgramAddress; }): UpdateVaultAdaptorPolicyInstruction; export type ParsedUpdateVaultAdaptorPolicyInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; protocol: TAccountMetas[1]; vault: TAccountMetas[2]; }; data: UpdateVaultAdaptorPolicyInstructionData; }; export declare function parseUpdateVaultAdaptorPolicyInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateVaultAdaptorPolicyInstruction; //# sourceMappingURL=updateVaultAdaptorPolicy.d.ts.map