ergo-lib-wasm 0.28.0

WASM bindings for ergo-lib
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { expect, assert } from "chai";

import * as ergo from "..";
let ergo_wasm;
beforeEach(async () => {
  ergo_wasm = await ergo;
});

it("from str", async () => {
  const box_id = ergo_wasm.BoxId.from_str(
    "e56847ed19b3dc6b72828fcfb992fdf7310828cf291221269b7ffc72fd66706e"
  );
  assert(box_id != null);
  const di = new ergo_wasm.DataInput(box_id);
  assert(di != null);
});