UNPKG

@dbricks/dbricks-ts

Version:

## Introduction

24 lines (23 loc) 1.27 kB
import { PublicKey, Signer, TransactionInstruction } from '@solana/web3.js'; import { instructionsAndSigners, serializedInstructionsAndSigners } from './common.types'; export declare type serializedAccount = { pubkey: string; isSigner: boolean; isWritable: boolean; }; export declare type serializedInstruction = { keys: serializedAccount[]; programId: string; data: string; }; export declare type serializedSigner = { secretKey: number[]; }; export declare function serializePubkey(pubkey: PublicKey): string; export declare function deserializePubkey(pubkey: string): PublicKey; export declare function serializeInstructions(instructions: TransactionInstruction[]): serializedInstruction[]; export declare function deserializeInstructions(instructions: serializedInstruction[]): TransactionInstruction[]; export declare function serializeSigners(signers: Signer[]): serializedSigner[]; export declare function deserializeSigners(signers: serializedSigner[]): Signer[]; export declare function serializeInstructionsAndSigners(transactions: instructionsAndSigners[]): serializedInstructionsAndSigners[]; export declare function deserializeInstructionsAndSigners(transactions: serializedInstructionsAndSigners[]): instructionsAndSigners[];