three_em_smartweave 0.2.0

A blazingly fast, secure, reliable, multi-language execution machine for Smart Contracts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(function (window) {
  class ContractError extends Error {
    constructor(message) {
      super(message);
      this.name = "ContractError";
    }
  }

  function ContractAssert(cond, message) {
    if (!cond) throw new ContractError(message);
  }

  window.ContractError = ContractError;
  window.ContractAssert = ContractAssert;

  // EXTRA
  window.SMARTWEAVE_HOST = () => Deno.core.opAsync("op_smartweave_get_host");
})(this);