/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit"; import { VOLTR_VAULT_PROGRAM_ADDRESS } from "../programs"; import { type ProtocolConfigField, type ProtocolConfigFieldArgs } from "../types"; export declare const UPDATE_PROTOCOL_DISCRIMINATOR: Uint8Array; export declare function getUpdateProtocolDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateProtocolInstruction = string, TAccountProtocol extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountProtocol extends string ? WritableAccount : TAccountProtocol, ...TRemainingAccounts ]>; export type UpdateProtocolInstructionData = { discriminator: ReadonlyUint8Array; field: ProtocolConfigField; data: ReadonlyUint8Array; }; export type UpdateProtocolInstructionDataArgs = { field: ProtocolConfigFieldArgs; data: ReadonlyUint8Array; }; export declare function getUpdateProtocolInstructionDataEncoder(): Encoder; export declare function getUpdateProtocolInstructionDataDecoder(): Decoder; export declare function getUpdateProtocolInstructionDataCodec(): Codec; export type UpdateProtocolAsyncInput = { admin: TransactionSigner; protocol?: Address; field: UpdateProtocolInstructionDataArgs["field"]; data: UpdateProtocolInstructionDataArgs["data"]; }; export declare function getUpdateProtocolInstructionAsync(input: UpdateProtocolAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type UpdateProtocolInput = { admin: TransactionSigner; protocol: Address; field: UpdateProtocolInstructionDataArgs["field"]; data: UpdateProtocolInstructionDataArgs["data"]; }; export declare function getUpdateProtocolInstruction(input: UpdateProtocolInput, config?: { programAddress?: TProgramAddress; }): UpdateProtocolInstruction; export type ParsedUpdateProtocolInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; protocol: TAccountMetas[1]; }; data: UpdateProtocolInstructionData; }; export declare function parseUpdateProtocolInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateProtocolInstruction; //# sourceMappingURL=updateProtocol.d.ts.map