Variables
Const CKB_DEBUGGER_VERSION
CKB_DEBUGGER_VERSION: "0.21.1" = "0.21.1"
Const CKB_DEBUGGER_VERSION
CKB_DEBUGGER_VERSION: "0.21.1" = "0.21.1"
Const DEFAULT_CKB_DEBUGGER_DIRECTORY_PATH
DEFAULT_CKB_DEBUGGER_DIRECTORY_PATH: string
Const DEFAULT_CKB_DEBUGGER_DIRECTORY_PATH
DEFAULT_CKB_DEBUGGER_DIRECTORY_PATH: string = envPaths("ckb-debugger", {suffix: CKB_DEBUGGER_VERSION,}).cache
Const OutPoint
Out
Point: Codec<Partial<Pick<{ index: string; txHash: string }, never>> & Pick<{ index: string; txHash: string }, "txHash" | "index">, Partial<Pick<{ index: any; txHash: string | ArrayLike<number> | ArrayBuffer }, "index">> & Pick<{ index: any; txHash: string | ArrayLike<number> | ArrayBuffer }, "txHash">> & { __isFixedCodec__: true; byteLength: number }
Const OutPoint
Out
Point: Codec<Uint8Array, {} & {}, {} & {}, string | ArrayLike<number> | ArrayBuffer> & { __isFixedCodec__: true; byteLength: number } = struct({txHash: Byte32,index: createFixedBytesCodec({byteLength: 4,pack: (hex) => Uint32.pack(hex),unpack: (buf) => BI.from(Uint32.unpack(buf)).toHexString(),}),},["txHash", "index"])
Const OutPointVec
Out
PointVec: Codec<({} & {})[], ({} & {})[]>
Const OutPointVec
Out
PointVec: Codec<Uint8Array, ({} & {})[], ({} & {})[], string | ArrayLike<number> | ArrayBuffer> = vector(OutPoint)
@ckb-lumos/debugger
A ckb-debugger wrapper for lumos, helping you to debug your transaction without lunching a full node
Quick Start
import { createTestContext } from "@ckb-lumos/debugger"; const { executor, scriptConfigs } = createTestContext({ contract1: { path: path.join("path/to/contracts", "contract1") }, contract2: { path: path.join("path/to/contracts", "contract2") }, }); // ... executor.execute(txSkeleton);