/** * 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, type WritableSignerAccount } from "@solana/kit"; import { VOLTR_VAULT_PROGRAM_ADDRESS } from "../programs"; export declare const ADD_ADAPTOR_DISCRIMINATOR: Uint8Array; export declare function getAddAdaptorDiscriminatorBytes(): ReadonlyUint8Array; export type AddAdaptorInstruction = string, TAccountAdmin extends string | AccountMeta = string, TAccountProtocol extends string | AccountMeta = string, TAccountVault extends string | AccountMeta = string, TAccountAdaptorAddReceipt extends string | AccountMeta = string, TAccountAdaptorProgram extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountProtocol extends string ? ReadonlyAccount : TAccountProtocol, TAccountVault extends string ? WritableAccount : TAccountVault, TAccountAdaptorAddReceipt extends string ? WritableAccount : TAccountAdaptorAddReceipt, TAccountAdaptorProgram extends string ? ReadonlyAccount : TAccountAdaptorProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type AddAdaptorInstructionData = { discriminator: ReadonlyUint8Array; }; export type AddAdaptorInstructionDataArgs = {}; export declare function getAddAdaptorInstructionDataEncoder(): FixedSizeEncoder; export declare function getAddAdaptorInstructionDataDecoder(): FixedSizeDecoder; export declare function getAddAdaptorInstructionDataCodec(): FixedSizeCodec; export type AddAdaptorAsyncInput = { payer: TransactionSigner; admin: TransactionSigner; protocol?: Address; vault: Address; adaptorAddReceipt?: Address; adaptorProgram: Address; systemProgram?: Address; }; export declare function getAddAdaptorInstructionAsync(input: AddAdaptorAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type AddAdaptorInput = { payer: TransactionSigner; admin: TransactionSigner; protocol: Address; vault: Address; adaptorAddReceipt: Address; adaptorProgram: Address; systemProgram?: Address; }; export declare function getAddAdaptorInstruction(input: AddAdaptorInput, config?: { programAddress?: TProgramAddress; }): AddAdaptorInstruction; export type ParsedAddAdaptorInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; admin: TAccountMetas[1]; protocol: TAccountMetas[2]; vault: TAccountMetas[3]; adaptorAddReceipt: TAccountMetas[4]; adaptorProgram: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: AddAdaptorInstructionData; }; export declare function parseAddAdaptorInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedAddAdaptorInstruction; //# sourceMappingURL=addAdaptor.d.ts.map