Functions to manipulate BuildingPacket and WitnessLayout.

Example

The functions in this module will modify the data in place. It's recommend to use these functions with Immer

import { produce } from "immer";
import { recipes, factory } from "@ckb-cobuild/cobuild";
const input = factory.makeBuildingPacket();
const output = produce(input, (draft) => {
recipes.addInputCell(draft, factory.makeInputCell());
draft.value.witnesses.push("0x");
});

Index

Type Aliases

Functions

Generated using TypeDoc