UNPKG

@drift-labs/sdk

Version:
7 lines (6 loc) 608 B
import { AddressLookupTableAccount, Transaction, TransactionInstruction, VersionedTransaction } from '@solana/web3.js'; export declare const MAX_TX_BYTE_SIZE = 1232; export declare const NATIVE_INSTRUCTION_MAGIC_BYTES: number[]; export declare const isVersionedTransaction: (tx: Transaction | VersionedTransaction) => boolean; export declare const getSizeOfTransaction: (instructions: TransactionInstruction[], versionedTransaction?: boolean, addressLookupTables?: AddressLookupTableAccount[]) => number; export declare function createNativeInstructionDiscriminatorBuffer(discriminator: number): Uint8Array;