/** * 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 { LOADER_V3_PROGRAM_ADDRESS } from '../programs'; export declare const UPGRADE_DISCRIMINATOR = 3; export declare function getUpgradeDiscriminatorBytes(): ReadonlyUint8Array; export type UpgradeInstruction = string, TAccountProgramAccount extends string | AccountMeta = string, TAccountBufferAccount extends string | AccountMeta = string, TAccountSpillAccount extends string | AccountMeta = string, TAccountRentSysvar extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountClockSysvar extends string | AccountMeta = 'SysvarC1ock11111111111111111111111111111111', TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountProgramDataAccount extends string ? WritableAccount : TAccountProgramDataAccount, TAccountProgramAccount extends string ? WritableAccount : TAccountProgramAccount, TAccountBufferAccount extends string ? WritableAccount : TAccountBufferAccount, TAccountSpillAccount extends string ? WritableAccount : TAccountSpillAccount, TAccountRentSysvar extends string ? ReadonlyAccount : TAccountRentSysvar, TAccountClockSysvar extends string ? ReadonlyAccount : TAccountClockSysvar, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, ...TRemainingAccounts ]>; export type UpgradeInstructionData = { discriminator: number; }; export type UpgradeInstructionDataArgs = {}; export declare function getUpgradeInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpgradeInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpgradeInstructionDataCodec(): FixedSizeCodec; export type UpgradeInput = { /** ProgramData account. */ programDataAccount: Address; /** Program account. */ programAccount: Address; /** Buffer account where the new program data has been written. */ bufferAccount: Address; /** Spill account. */ spillAccount: Address; /** Rent sysvar. */ rentSysvar?: Address; /** Clock sysvar. */ clockSysvar?: Address; /** Authority. */ authority: TransactionSigner; }; export declare function getUpgradeInstruction(input: UpgradeInput, config?: { programAddress?: TProgramAddress; }): UpgradeInstruction; export type ParsedUpgradeInstruction = { programAddress: Address; accounts: { /** ProgramData account. */ programDataAccount: TAccountMetas[0]; /** Program account. */ programAccount: TAccountMetas[1]; /** Buffer account where the new program data has been written. */ bufferAccount: TAccountMetas[2]; /** Spill account. */ spillAccount: TAccountMetas[3]; /** Rent sysvar. */ rentSysvar: TAccountMetas[4]; /** Clock sysvar. */ clockSysvar: TAccountMetas[5]; /** Authority. */ authority: TAccountMetas[6]; }; data: UpgradeInstructionData; }; export declare function parseUpgradeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpgradeInstruction; //# sourceMappingURL=upgrade.d.ts.map