/** * 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 Address, type ClientWithTransactionPlanning, type ClientWithTransactionSending, type ExtendedClient, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from '@solana/kit'; import { type SelfPlanAndSendFunctions } from '@solana/kit/program-client-core'; import { getCloseInstruction, getDeployWithMaxDataLenInstruction, getExtendProgramInstruction, getInitializeBufferInstruction, getSetAuthorityCheckedInstruction, getSetAuthorityInstruction, getUpgradeInstruction, getWriteInstruction, type CloseInput, type DeployWithMaxDataLenInput, type ExtendProgramInput, type InitializeBufferInput, type ParsedCloseInstruction, type ParsedDeployWithMaxDataLenInstruction, type ParsedExtendProgramInstruction, type ParsedInitializeBufferInstruction, type ParsedSetAuthorityCheckedInstruction, type ParsedSetAuthorityInstruction, type ParsedUpgradeInstruction, type ParsedWriteInstruction, type SetAuthorityCheckedInput, type SetAuthorityInput, type UpgradeInput, type WriteInput } from '../instructions'; export declare const LOADER_V3_PROGRAM_ADDRESS: Address<"BPFLoaderUpgradeab1e11111111111111111111111">; export declare enum LoaderV3Instruction { InitializeBuffer = 0, Write = 1, DeployWithMaxDataLen = 2, Upgrade = 3, SetAuthority = 4, Close = 5, ExtendProgram = 6, SetAuthorityChecked = 7 } export declare function identifyLoaderV3Instruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): LoaderV3Instruction; export type ParsedLoaderV3Instruction = ({ instructionType: LoaderV3Instruction.InitializeBuffer; } & ParsedInitializeBufferInstruction) | ({ instructionType: LoaderV3Instruction.Write; } & ParsedWriteInstruction) | ({ instructionType: LoaderV3Instruction.DeployWithMaxDataLen; } & ParsedDeployWithMaxDataLenInstruction) | ({ instructionType: LoaderV3Instruction.Upgrade; } & ParsedUpgradeInstruction) | ({ instructionType: LoaderV3Instruction.SetAuthority; } & ParsedSetAuthorityInstruction) | ({ instructionType: LoaderV3Instruction.Close; } & ParsedCloseInstruction) | ({ instructionType: LoaderV3Instruction.ExtendProgram; } & ParsedExtendProgramInstruction) | ({ instructionType: LoaderV3Instruction.SetAuthorityChecked; } & ParsedSetAuthorityCheckedInstruction); export declare function parseLoaderV3Instruction(instruction: Instruction & InstructionWithData): ParsedLoaderV3Instruction; export type LoaderV3Plugin = { instructions: LoaderV3PluginInstructions; identifyInstruction: typeof identifyLoaderV3Instruction; parseInstruction: typeof parseLoaderV3Instruction; }; export type LoaderV3PluginInstructions = { initializeBuffer: (input: InitializeBufferInput) => ReturnType & SelfPlanAndSendFunctions; write: (input: WriteInput) => ReturnType & SelfPlanAndSendFunctions; deployWithMaxDataLen: (input: DeployWithMaxDataLenInput) => ReturnType & SelfPlanAndSendFunctions; upgrade: (input: UpgradeInput) => ReturnType & SelfPlanAndSendFunctions; setAuthority: (input: SetAuthorityInput) => ReturnType & SelfPlanAndSendFunctions; close: (input: CloseInput) => ReturnType & SelfPlanAndSendFunctions; extendProgram: (input: ExtendProgramInput) => ReturnType & SelfPlanAndSendFunctions; setAuthorityChecked: (input: SetAuthorityCheckedInput) => ReturnType & SelfPlanAndSendFunctions; }; export type LoaderV3PluginRequirements = ClientWithTransactionPlanning & ClientWithTransactionSending; export declare function loaderV3Program(): (client: T) => ExtendedClient; //# sourceMappingURL=loaderV3.d.ts.map