meta-contract-debug
Version:
Meta Contract SDK
34 lines (33 loc) • 1.21 kB
TypeScript
import { Bytes } from '../scryptlib';
import { Transaction } from '../mvc';
export declare let getUInt8Buf: (amount: number) => Buffer;
export declare let getUInt16Buf: (amount: number) => Buffer;
export declare let getUInt32Buf: (index: number) => Buffer;
export declare let getUInt64Buf: (amount: number) => Buffer;
export declare function getTxidInfo(tx: Transaction): {
txHeader: any;
inputHashProof: any;
outputHashProof: any;
};
export declare function createTxInputProof(tx: Transaction, inputIndex: number): (Bytes | {
hashProof: Bytes;
txHash: Bytes;
outputIndexBytes: Bytes;
sequenceBytes: Bytes;
})[];
export declare function createTxOutputProof(tx: Transaction, outputIndex: number): {
txHeader: Bytes;
hashProof: Bytes;
satoshiBytes: Bytes;
scriptHash: Bytes;
};
export declare function createGenesisTxInputProof(genesisUtxo: any): {
genesisTxHeader: Bytes;
prevInputIndex: number;
genesisTxInputProof: import("mvc-scrypt/dist/scryptTypes").ScryptType;
};
export declare function createPrevGenesisTxOutputProof(genesisUtxo: any): {
prevGenesisTxHeader: Bytes;
prevTxOutputHashProof: Bytes;
prevTxOutputSatoshiBytes: Bytes;
};