@coolwallet/sol
Version:
Coolwallet Solana sdk
32 lines (31 loc) • 1.31 kB
TypeScript
import * as BufferLayout from '@solana/buffer-layout';
import { SerializedInstruction } from '../config/types';
export declare function structInstructionLayoutWithoutData(instruction: SerializedInstruction): BufferLayout.Structure<Readonly<{
dataLength: Uint8Array;
keyIndices: number[];
keyIndicesCount: Uint8Array;
programIdIndex: number;
}>>;
export declare function structInstructionLayoutWithoutDataAndKeyIndicesCount(instruction: SerializedInstruction): BufferLayout.Structure<Readonly<{
dataLength: Uint8Array;
keyIndices: number[];
programIdIndex: number;
}>>;
export declare function structInstructionLayoutWithoutKeyIndicesCount(instruction: SerializedInstruction): BufferLayout.Structure<Readonly<{
data: number[];
dataLength: Uint8Array;
keyIndices: number[];
programIdIndex: number;
}>>;
export declare function structInstructionLayout(instruction: SerializedInstruction): BufferLayout.Structure<Readonly<{
data: number[];
dataLength: Uint8Array;
keyIndices: number[];
keyIndicesCount: Uint8Array;
programIdIndex: number;
}>>;
export declare function structSignDataLayout(keyCount: number[], accountKeys: string[]): BufferLayout.Structure<Readonly<{
keyCount: Uint8Array;
keys: Uint8Array[];
recentBlockhash: Uint8Array;
}>>;