UNPKG

@coolwallet/sol

Version:
11 lines (10 loc) 1.02 kB
import { SerializedInstruction } from '../config/types'; export interface InsructionBufferInfo { instructionBuffer: Buffer; instructionBufferLength: number; } export declare function initAndPaddingComputeBudgetInstructionBuffer(accountKeys: string[], instructions: SerializedInstruction[], instructionCount?: number[]): InsructionBufferInfo; export declare function paddingSeedInstructionBuffer(srcInstructionBuffer: Buffer, srcInstructionBufferLength: number, seedData: number[]): InsructionBufferInfo; export declare function encodeInstructionBuffer(instructions: SerializedInstruction[], srcInstructionBuffer: Buffer, srcInstructionBufferLength: number): Buffer; export declare function encodeAndPaddingSeedInstructionBuffer(accountKeys: string[], instructions: SerializedInstruction[], srcInstructionBuffer: Buffer, srcInstructionBufferLength: number): Buffer; export declare function encodeSignData(keyCount: number[], newAccountKeys: string[], recentBlockhash: string, instructionBuffer: Buffer): Buffer;