/** * 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 INIT_PROTOCOL_DISCRIMINATOR: Uint8Array; export declare function getInitProtocolDiscriminatorBytes(): ReadonlyUint8Array; export type InitProtocolInstruction = string, TAccountAdmin extends string | AccountMeta = string, TAccountProtocol 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 ? WritableAccount : TAccountProtocol, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type InitProtocolInstructionData = { discriminator: ReadonlyUint8Array; treasury: Address; operationalState: number; }; export type InitProtocolInstructionDataArgs = { treasury: Address; operationalState: number; }; export declare function getInitProtocolInstructionDataEncoder(): FixedSizeEncoder; export declare function getInitProtocolInstructionDataDecoder(): FixedSizeDecoder; export declare function getInitProtocolInstructionDataCodec(): FixedSizeCodec; export type InitProtocolAsyncInput = { payer: TransactionSigner; admin: TransactionSigner; protocol?: Address; systemProgram?: Address; treasury: InitProtocolInstructionDataArgs["treasury"]; operationalState: InitProtocolInstructionDataArgs["operationalState"]; }; export declare function getInitProtocolInstructionAsync(input: InitProtocolAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type InitProtocolInput = { payer: TransactionSigner; admin: TransactionSigner; protocol: Address; systemProgram?: Address; treasury: InitProtocolInstructionDataArgs["treasury"]; operationalState: InitProtocolInstructionDataArgs["operationalState"]; }; export declare function getInitProtocolInstruction(input: InitProtocolInput, config?: { programAddress?: TProgramAddress; }): InitProtocolInstruction; export type ParsedInitProtocolInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; admin: TAccountMetas[1]; protocol: TAccountMetas[2]; systemProgram: TAccountMetas[3]; }; data: InitProtocolInstructionData; }; export declare function parseInitProtocolInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitProtocolInstruction; //# sourceMappingURL=initProtocol.d.ts.map