import { ProgramSeed } from '../utils/helpers.js'; export { AccountLookupContext, InstructionData } from '../utils/helpers.js'; import '../../Account-6CpukoHJ.js'; import '../../account_pb-nVy1q-D5.js'; import '@bufbuild/protobuf/codegenv2'; import '@bufbuild/protobuf/wkt'; import '@bufbuild/protobuf'; import '../../Pubkey-XQyhLL1t.js'; interface UploadAddresses { metaAccountAddress: string; metaAccountBytes: Uint8Array; bufferAccountAddress: string; bufferAccountBytes: Uint8Array; } interface UploaderProgramMetaInfo { authorityAddress: string; expectedHash: Uint8Array; state: number; } interface UploadIndices { bufferAccountIdx: number; metaAccountIdx: number; } type UploaderInstructionArgs = (UploadIndices & { kind: 'create'; authorityAccountIdx: number; bufferSize: number; expectedHash: Uint8Array; seed: ProgramSeed; }) | (UploadIndices & { kind: 'write'; data: Uint8Array; offset: number; }) | (UploadIndices & { kind: 'destroy'; }) | (UploadIndices & { kind: 'finalize'; expectedHash: Uint8Array; }); interface UploadAccounts { bufferAccount: Uint8Array; metaAccount: Uint8Array; } interface CreateUploadBufferInstructionArgs extends UploadAccounts { authorityAccount: Uint8Array; bufferSize: number; expectedHash: Uint8Array; seed: ProgramSeed; } interface WriteUploadInstructionArgs extends UploadAccounts { data: Uint8Array; offset: number; } type DestroyUploadInstructionArgs = UploadAccounts; interface FinalizeUploadInstructionArgs extends UploadAccounts { expectedHash: Uint8Array; } export { type CreateUploadBufferInstructionArgs, type DestroyUploadInstructionArgs, type FinalizeUploadInstructionArgs, ProgramSeed, type UploadAddresses, type UploaderInstructionArgs, type UploaderProgramMetaInfo, type WriteUploadInstructionArgs };