/** * 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 Codec, type Decoder, type Encoder, type IAccountMeta, type IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { type CompactU64, type CompactU64Args } from '../../hooked'; import { LIGHTHOUSE_PROGRAM_ADDRESS } from '../programs'; import { type WriteType, type WriteTypeArgs } from '../types'; export declare const MEMORY_WRITE_DISCRIMINATOR = 0; export declare function getMemoryWriteDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array; export type MemoryWriteInstruction = 'L2TExMFKdjpN9kozasaurPirfHy9P8sbXoAN1qA3S95', TAccountSystemProgram extends string | IAccountMeta = '11111111111111111111111111111111', TAccountPayer extends string | IAccountMeta = string, TAccountMemory extends string | IAccountMeta = string, TAccountSourceAccount extends string | IAccountMeta = string, TRemainingAccounts extends readonly IAccountMeta[] = []> = IInstruction & IInstructionWithData & IInstructionWithAccounts<[ TAccountProgramId extends string ? ReadonlyAccount : TAccountProgramId, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountPayer extends string ? WritableSignerAccount & IAccountSignerMeta : TAccountPayer, TAccountMemory extends string ? WritableAccount : TAccountMemory, TAccountSourceAccount extends string ? ReadonlyAccount : TAccountSourceAccount, ...TRemainingAccounts ]>; export type MemoryWriteInstructionData = { discriminator: number; memoryId: number; memoryBump: number; writeOffset: CompactU64; writeType: WriteType; }; export type MemoryWriteInstructionDataArgs = { memoryId?: number; memoryBump: number; writeOffset: CompactU64Args; writeType: WriteTypeArgs; }; export declare function getMemoryWriteInstructionDataEncoder(): Encoder; export declare function getMemoryWriteInstructionDataDecoder(): Decoder; export declare function getMemoryWriteInstructionDataCodec(): Codec; export type MemoryWriteInput = { /** Lighthouse program */ programId?: Address; /** System program */ systemProgram?: Address; /** Payer account */ payer: TransactionSigner; /** Memory account */ memory: Address; /** Account to be written to memory */ sourceAccount: Address; memoryId?: MemoryWriteInstructionDataArgs['memoryId']; memoryBump: MemoryWriteInstructionDataArgs['memoryBump']; writeOffset: MemoryWriteInstructionDataArgs['writeOffset']; writeType: MemoryWriteInstructionDataArgs['writeType']; }; export declare function getMemoryWriteInstruction(input: MemoryWriteInput, config?: { programAddress?: TProgramAddress; }): MemoryWriteInstruction; export type ParsedMemoryWriteInstruction = { programAddress: Address; accounts: { /** Lighthouse program */ programId: TAccountMetas[0]; /** System program */ systemProgram: TAccountMetas[1]; /** Payer account */ payer: TAccountMetas[2]; /** Memory account */ memory: TAccountMetas[3]; /** Account to be written to memory */ sourceAccount: TAccountMetas[4]; }; data: MemoryWriteInstructionData; }; export declare function parseMemoryWriteInstruction(instruction: IInstruction & IInstructionWithAccounts & IInstructionWithData): ParsedMemoryWriteInstruction; //# sourceMappingURL=memoryWrite.d.ts.map