/** * 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 { LOADER_V3_PROGRAM_ADDRESS } from '../programs'; export declare const DEPLOY_WITH_MAX_DATA_LEN_DISCRIMINATOR = 2; export declare function getDeployWithMaxDataLenDiscriminatorBytes(): ReadonlyUint8Array; export type DeployWithMaxDataLenInstruction = string, TAccountProgramDataAccount extends string | AccountMeta = string, TAccountProgramAccount extends string | AccountMeta = string, TAccountBufferAccount extends string | AccountMeta = string, TAccountRentSysvar extends string | AccountMeta = 'SysvarRent111111111111111111111111111111111', TAccountClockSysvar extends string | AccountMeta = 'SysvarC1ock11111111111111111111111111111111', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayerAccount extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayerAccount, TAccountProgramDataAccount extends string ? WritableAccount : TAccountProgramDataAccount, TAccountProgramAccount extends string ? WritableAccount : TAccountProgramAccount, TAccountBufferAccount extends string ? WritableAccount : TAccountBufferAccount, TAccountRentSysvar extends string ? ReadonlyAccount : TAccountRentSysvar, TAccountClockSysvar extends string ? ReadonlyAccount : TAccountClockSysvar, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, ...TRemainingAccounts ]>; export type DeployWithMaxDataLenInstructionData = { discriminator: number; maxDataLen: bigint; }; export type DeployWithMaxDataLenInstructionDataArgs = { maxDataLen: number | bigint; }; export declare function getDeployWithMaxDataLenInstructionDataEncoder(): FixedSizeEncoder; export declare function getDeployWithMaxDataLenInstructionDataDecoder(): FixedSizeDecoder; export declare function getDeployWithMaxDataLenInstructionDataCodec(): FixedSizeCodec; export type DeployWithMaxDataLenInput = { /** Payer account that will pay to create the ProgramData account. */ payerAccount: TransactionSigner; /** ProgramData account (uninitialized). */ programDataAccount: Address; /** Program account (uninitialized). */ programAccount: Address; /** Buffer account where the program data has been written. */ bufferAccount: Address; /** Rent sysvar. */ rentSysvar?: Address; /** Clock sysvar. */ clockSysvar?: Address; /** System program. */ systemProgram?: Address; /** Authority. */ authority: TransactionSigner; maxDataLen: DeployWithMaxDataLenInstructionDataArgs['maxDataLen']; }; export declare function getDeployWithMaxDataLenInstruction(input: DeployWithMaxDataLenInput, config?: { programAddress?: TProgramAddress; }): DeployWithMaxDataLenInstruction; export type ParsedDeployWithMaxDataLenInstruction = { programAddress: Address; accounts: { /** Payer account that will pay to create the ProgramData account. */ payerAccount: TAccountMetas[0]; /** ProgramData account (uninitialized). */ programDataAccount: TAccountMetas[1]; /** Program account (uninitialized). */ programAccount: TAccountMetas[2]; /** Buffer account where the program data has been written. */ bufferAccount: TAccountMetas[3]; /** Rent sysvar. */ rentSysvar: TAccountMetas[4]; /** Clock sysvar. */ clockSysvar: TAccountMetas[5]; /** System program. */ systemProgram: TAccountMetas[6]; /** Authority. */ authority: TAccountMetas[7]; }; data: DeployWithMaxDataLenInstructionData; }; export declare function parseDeployWithMaxDataLenInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedDeployWithMaxDataLenInstruction; //# sourceMappingURL=deployWithMaxDataLen.d.ts.map