UNPKG

@nervosnetwork/ckb-sdk-utils

Version:

Utils module of @nervosnetwork/ckb-sdk-core

17 lines (16 loc) 1.47 kB
/// <reference types="@nervosnetwork/ckb-types" /> export declare const serializeVersion: (version: CKBComponents.Version) => string; export declare const serializeOutPoint: (outPoint: CKBComponents.OutPoint | null) => string; export declare const serializeDepType: (type: CKBComponents.DepType) => "0x00" | "0x01"; export declare const serializeCellDep: (dep: CKBComponents.CellDep) => string; export declare const serializeCellDeps: (cellDeps: CKBComponents.CellDep[]) => string; export declare const serializeHeaderDeps: (deps: CKBComponents.Hash256[]) => string; export declare const serializeInput: (input: CKBComponents.CellInput) => string; export declare const serializeInputs: (inputs: CKBComponents.CellInput[]) => string; export declare const serializeOutput: (output: CKBComponents.CellOutput) => string; export declare const serializeOutputs: (outputs: CKBComponents.CellOutput[]) => string; export declare const serializeOutputsData: (outputsData: CKBComponents.Hash[]) => string; export declare const serializeWitnessArgs: (witnessArgs: CKBComponents.WitnessArgs) => string; export declare const serializeWitnesses: (witnesses: CKBComponents.Witness[]) => string; export declare const serializeRawTransaction: (rawTransaction: Pick<CKBComponents.RawTransaction, 'version' | 'cellDeps' | 'headerDeps' | 'inputs' | 'outputs' | 'outputsData'>) => string; export declare const serializeTransaction: (rawTransaction: CKBComponents.RawTransaction) => string;