
Some checks failed
CI - 4NK Node / Integration Tests (push) Failing after 9s
CI - 4NK Node / Docker Build & Test (push) Failing after 8s
CI - 4NK Node / Documentation Tests (push) Failing after 3s
CI - 4NK Node / Release Guard (push) Has been skipped
CI - 4NK Node / Performance Tests (push) Failing after 29s
CI - 4NK Node / Code Quality (push) Failing after 32s
CI - 4NK Node / Unit Tests (push) Failing after 30s
CI - 4NK Node / Security Tests (push) Failing after 28s
CI - 4NK Node / Notify (push) Failing after 1s
1455 lines
53 KiB
JavaScript
1455 lines
53 KiB
JavaScript
const __vite__wasmUrl = "/sdk_client_bg-B6ah1IVY.wasm";
|
|
|
|
const __vite__initWasm = async (opts = {}, url) => {
|
|
let result;
|
|
if (url.startsWith("data:")) {
|
|
const urlContent = url.replace(/^data:.*?base64,/, "");
|
|
let bytes;
|
|
if (typeof Buffer === "function" && typeof Buffer.from === "function") {
|
|
bytes = Buffer.from(urlContent, "base64");
|
|
}
|
|
else if (typeof atob === "function") {
|
|
const binaryString = atob(urlContent);
|
|
bytes = new Uint8Array(binaryString.length);
|
|
for (let i = 0; i < binaryString.length; i++) {
|
|
bytes[i] = binaryString.charCodeAt(i);
|
|
}
|
|
}
|
|
else {
|
|
throw new Error("Cannot decode base64-encoded data URL");
|
|
}
|
|
result = await WebAssembly.instantiate(bytes, opts);
|
|
}
|
|
else {
|
|
// https://github.com/mdn/webassembly-examples/issues/5
|
|
// WebAssembly.instantiateStreaming requires the server to provide the
|
|
// correct MIME type for .wasm files, which unfortunately doesn't work for
|
|
// a lot of static file servers, so we just work around it by getting the
|
|
// raw buffer.
|
|
// @ts-ignore
|
|
const response = await fetch(url);
|
|
const contentType = response.headers.get("Content-Type") || "";
|
|
if ("instantiateStreaming" in WebAssembly && contentType.startsWith("application/wasm")) {
|
|
result = await WebAssembly.instantiateStreaming(response, opts);
|
|
}
|
|
else {
|
|
const buffer = await response.arrayBuffer();
|
|
result = await WebAssembly.instantiate(buffer, opts);
|
|
}
|
|
}
|
|
return result.instance.exports;
|
|
};
|
|
|
|
let wasm$1;
|
|
function __wbg_set_wasm(val) {
|
|
wasm$1 = val;
|
|
}
|
|
|
|
|
|
let WASM_VECTOR_LEN = 0;
|
|
|
|
let cachedUint8ArrayMemory0 = null;
|
|
|
|
function getUint8ArrayMemory0() {
|
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
cachedUint8ArrayMemory0 = new Uint8Array(wasm$1.memory.buffer);
|
|
}
|
|
return cachedUint8ArrayMemory0;
|
|
}
|
|
|
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
|
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
|
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
? function (arg, view) {
|
|
return cachedTextEncoder.encodeInto(arg, view);
|
|
}
|
|
: function (arg, view) {
|
|
const buf = cachedTextEncoder.encode(arg);
|
|
view.set(buf);
|
|
return {
|
|
read: arg.length,
|
|
written: buf.length
|
|
};
|
|
});
|
|
|
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
|
|
if (realloc === undefined) {
|
|
const buf = cachedTextEncoder.encode(arg);
|
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
WASM_VECTOR_LEN = buf.length;
|
|
return ptr;
|
|
}
|
|
|
|
let len = arg.length;
|
|
let ptr = malloc(len, 1) >>> 0;
|
|
|
|
const mem = getUint8ArrayMemory0();
|
|
|
|
let offset = 0;
|
|
|
|
for (; offset < len; offset++) {
|
|
const code = arg.charCodeAt(offset);
|
|
if (code > 0x7F) break;
|
|
mem[ptr + offset] = code;
|
|
}
|
|
|
|
if (offset !== len) {
|
|
if (offset !== 0) {
|
|
arg = arg.slice(offset);
|
|
}
|
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
const ret = encodeString(arg, view);
|
|
|
|
offset += ret.written;
|
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
}
|
|
|
|
WASM_VECTOR_LEN = offset;
|
|
return ptr;
|
|
}
|
|
|
|
let cachedDataViewMemory0 = null;
|
|
|
|
function getDataViewMemory0() {
|
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm$1.memory.buffer)) {
|
|
cachedDataViewMemory0 = new DataView(wasm$1.memory.buffer);
|
|
}
|
|
return cachedDataViewMemory0;
|
|
}
|
|
|
|
function addToExternrefTable0(obj) {
|
|
const idx = wasm$1.__externref_table_alloc();
|
|
wasm$1.__wbindgen_export_4.set(idx, obj);
|
|
return idx;
|
|
}
|
|
|
|
function handleError(f, args) {
|
|
try {
|
|
return f.apply(this, args);
|
|
} catch (e) {
|
|
const idx = addToExternrefTable0(e);
|
|
wasm$1.__wbindgen_exn_store(idx);
|
|
}
|
|
}
|
|
|
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
|
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
|
|
cachedTextDecoder.decode();
|
|
|
|
function getStringFromWasm0(ptr, len) {
|
|
ptr = ptr >>> 0;
|
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
}
|
|
|
|
function isLikeNone(x) {
|
|
return x === undefined || x === null;
|
|
}
|
|
|
|
function debugString(val) {
|
|
// primitive types
|
|
const type = typeof val;
|
|
if (type == 'number' || type == 'boolean' || val == null) {
|
|
return `${val}`;
|
|
}
|
|
if (type == 'string') {
|
|
return `"${val}"`;
|
|
}
|
|
if (type == 'symbol') {
|
|
const description = val.description;
|
|
if (description == null) {
|
|
return 'Symbol';
|
|
} else {
|
|
return `Symbol(${description})`;
|
|
}
|
|
}
|
|
if (type == 'function') {
|
|
const name = val.name;
|
|
if (typeof name == 'string' && name.length > 0) {
|
|
return `Function(${name})`;
|
|
} else {
|
|
return 'Function';
|
|
}
|
|
}
|
|
// objects
|
|
if (Array.isArray(val)) {
|
|
const length = val.length;
|
|
let debug = '[';
|
|
if (length > 0) {
|
|
debug += debugString(val[0]);
|
|
}
|
|
for(let i = 1; i < length; i++) {
|
|
debug += ', ' + debugString(val[i]);
|
|
}
|
|
debug += ']';
|
|
return debug;
|
|
}
|
|
// Test for built-in
|
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
let className;
|
|
if (builtInMatches && builtInMatches.length > 1) {
|
|
className = builtInMatches[1];
|
|
} else {
|
|
// Failed to match the standard '[object ClassName]'
|
|
return toString.call(val);
|
|
}
|
|
if (className == 'Object') {
|
|
// we're a user defined class or Object
|
|
// JSON.stringify avoids problems with cycles, and is generally much
|
|
// easier than looping through ownProperties of `val`.
|
|
try {
|
|
return 'Object(' + JSON.stringify(val) + ')';
|
|
} catch (_) {
|
|
return 'Object';
|
|
}
|
|
}
|
|
// errors
|
|
if (val instanceof Error) {
|
|
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
}
|
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
return className;
|
|
}
|
|
|
|
function setup$1() {
|
|
wasm$1.setup();
|
|
}
|
|
|
|
function takeFromExternrefTable0(idx) {
|
|
const value = wasm$1.__wbindgen_export_4.get(idx);
|
|
wasm$1.__externref_table_dealloc(idx);
|
|
return value;
|
|
}
|
|
/**
|
|
* @returns {string}
|
|
*/
|
|
function get_address$1() {
|
|
let deferred2_0;
|
|
let deferred2_1;
|
|
try {
|
|
const ret = wasm$1.get_address();
|
|
var ptr1 = ret[0];
|
|
var len1 = ret[1];
|
|
if (ret[3]) {
|
|
ptr1 = 0; len1 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred2_0 = ptr1;
|
|
deferred2_1 = len1;
|
|
return getStringFromWasm0(ptr1, len1);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @returns {Member}
|
|
*/
|
|
function get_member$1() {
|
|
const ret = wasm$1.get_member();
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {any} device
|
|
*/
|
|
function restore_device$1(device) {
|
|
const ret = wasm$1.restore_device(device);
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param {string} sp_wallet
|
|
* @returns {string}
|
|
*/
|
|
function create_device_from_sp_wallet$1(sp_wallet) {
|
|
let deferred3_0;
|
|
let deferred3_1;
|
|
try {
|
|
const ptr0 = passStringToWasm0(sp_wallet, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.create_device_from_sp_wallet(ptr0, len0);
|
|
var ptr2 = ret[0];
|
|
var len2 = ret[1];
|
|
if (ret[3]) {
|
|
ptr2 = 0; len2 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred3_0 = ptr2;
|
|
deferred3_1 = len2;
|
|
return getStringFromWasm0(ptr2, len2);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param {number} birthday
|
|
* @param {string} network_str
|
|
* @returns {string}
|
|
*/
|
|
function create_new_device$1(birthday, network_str) {
|
|
let deferred3_0;
|
|
let deferred3_1;
|
|
try {
|
|
const ptr0 = passStringToWasm0(network_str, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.create_new_device(birthday, ptr0, len0);
|
|
var ptr2 = ret[0];
|
|
var len2 = ret[1];
|
|
if (ret[3]) {
|
|
ptr2 = 0; len2 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred3_0 = ptr2;
|
|
deferred3_1 = len2;
|
|
return getStringFromWasm0(ptr2, len2);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @returns {boolean}
|
|
*/
|
|
function is_paired$1() {
|
|
const ret = wasm$1.is_paired();
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return ret[0] !== 0;
|
|
}
|
|
|
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
for (let i = 0; i < array.length; i++) {
|
|
const add = addToExternrefTable0(array[i]);
|
|
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
}
|
|
WASM_VECTOR_LEN = array.length;
|
|
return ptr;
|
|
}
|
|
/**
|
|
* @param {string} process_id
|
|
* @param {string[]} sp_addresses
|
|
*/
|
|
function pair_device$1(process_id, sp_addresses) {
|
|
const ptr0 = passStringToWasm0(process_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ptr1 = passArrayJsValueToWasm0(sp_addresses, wasm$1.__wbindgen_malloc);
|
|
const len1 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.pair_device(ptr0, len0, ptr1, len1);
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
function unpair_device$1() {
|
|
const ret = wasm$1.unpair_device();
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @returns {string}
|
|
*/
|
|
function dump_wallet$1() {
|
|
let deferred2_0;
|
|
let deferred2_1;
|
|
try {
|
|
const ret = wasm$1.dump_wallet();
|
|
var ptr1 = ret[0];
|
|
var len1 = ret[1];
|
|
if (ret[3]) {
|
|
ptr1 = 0; len1 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred2_0 = ptr1;
|
|
deferred2_1 = len1;
|
|
return getStringFromWasm0(ptr1, len1);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
}
|
|
}
|
|
|
|
function reset_process_cache$1() {
|
|
const ret = wasm$1.reset_process_cache();
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @returns {string}
|
|
*/
|
|
function dump_process_cache$1() {
|
|
let deferred2_0;
|
|
let deferred2_1;
|
|
try {
|
|
const ret = wasm$1.dump_process_cache();
|
|
var ptr1 = ret[0];
|
|
var len1 = ret[1];
|
|
if (ret[3]) {
|
|
ptr1 = 0; len1 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred2_0 = ptr1;
|
|
deferred2_1 = len1;
|
|
return getStringFromWasm0(ptr1, len1);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param {any} processes
|
|
*/
|
|
function set_process_cache$1(processes) {
|
|
const ret = wasm$1.set_process_cache(processes);
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param {string} process_id
|
|
* @param {string} process
|
|
*/
|
|
function add_to_process_cache$1(process_id, process) {
|
|
const ptr0 = passStringToWasm0(process_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ptr1 = passStringToWasm0(process, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len1 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.add_to_process_cache(ptr0, len0, ptr1, len1);
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
function reset_shared_secrets$1() {
|
|
const ret = wasm$1.reset_shared_secrets();
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param {string} secrets
|
|
*/
|
|
function set_shared_secrets$1(secrets) {
|
|
const ptr0 = passStringToWasm0(secrets, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.set_shared_secrets(ptr0, len0);
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @returns {string}
|
|
*/
|
|
function get_pairing_process_id$1() {
|
|
let deferred2_0;
|
|
let deferred2_1;
|
|
try {
|
|
const ret = wasm$1.get_pairing_process_id();
|
|
var ptr1 = ret[0];
|
|
var len1 = ret[1];
|
|
if (ret[3]) {
|
|
ptr1 = 0; len1 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred2_0 = ptr1;
|
|
deferred2_1 = len1;
|
|
return getStringFromWasm0(ptr1, len1);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @returns {Device}
|
|
*/
|
|
function dump_device$1() {
|
|
const ret = wasm$1.dump_device();
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @returns {Device}
|
|
*/
|
|
function dump_neutered_device$1() {
|
|
const ret = wasm$1.dump_neutered_device();
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
function reset_device$1() {
|
|
const ret = wasm$1.reset_device();
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param {string} transaction
|
|
* @returns {string}
|
|
*/
|
|
function get_txid$1(transaction) {
|
|
let deferred3_0;
|
|
let deferred3_1;
|
|
try {
|
|
const ptr0 = passStringToWasm0(transaction, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.get_txid(ptr0, len0);
|
|
var ptr2 = ret[0];
|
|
var len2 = ret[1];
|
|
if (ret[3]) {
|
|
ptr2 = 0; len2 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred3_0 = ptr2;
|
|
deferred3_1 = len2;
|
|
return getStringFromWasm0(ptr2, len2);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param {string} new_tx_msg
|
|
* @param {number} block_height
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function parse_new_tx$1(new_tx_msg, block_height, members_list) {
|
|
const ptr0 = passStringToWasm0(new_tx_msg, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.parse_new_tx(ptr0, len0, block_height, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {string} cipher_msg
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function parse_cipher$1(cipher_msg, members_list) {
|
|
const ptr0 = passStringToWasm0(cipher_msg, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.parse_cipher(ptr0, len0, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @returns {any}
|
|
*/
|
|
function get_outputs$1() {
|
|
const ret = wasm$1.get_outputs();
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @returns {bigint}
|
|
*/
|
|
function get_available_amount$1() {
|
|
const ret = wasm$1.get_available_amount();
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return BigInt.asUintN(64, ret[0]);
|
|
}
|
|
|
|
/**
|
|
* We send a transaction that pays at least one output to each address
|
|
* The goal can be to establish a shared_secret to be used as an encryption key for further communication
|
|
* or if the recipient is a relay it can be the init transaction for a new process
|
|
* @param {string[]} addresses
|
|
* @param {number} fee_rate
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function create_transaction$1(addresses, fee_rate) {
|
|
const ptr0 = passArrayJsValueToWasm0(addresses, wasm$1.__wbindgen_malloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.create_transaction(ptr0, len0, fee_rate);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {TsUnsignedTransaction} partial_tx
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function sign_transaction$1(partial_tx) {
|
|
const ret = wasm$1.sign_transaction(partial_tx);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {Pcd} private_data
|
|
* @param {Roles} roles
|
|
* @param {Pcd} public_data
|
|
* @param {string} relay_address
|
|
* @param {number} fee_rate
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function create_new_process$1(private_data, roles, public_data, relay_address, fee_rate, members_list) {
|
|
const ptr0 = passStringToWasm0(relay_address, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.create_new_process(private_data, roles, public_data, ptr0, len0, fee_rate, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {Process} process
|
|
* @param {Pcd} new_attributes
|
|
* @param {Roles} roles
|
|
* @param {Pcd} new_public_data
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function update_process$1(process, new_attributes, roles, new_public_data, members_list) {
|
|
const ret = wasm$1.update_process(process, new_attributes, roles, new_public_data, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {string} process_id
|
|
* @param {string[]} state_ids_str
|
|
* @param {any} roles
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function request_data$1(process_id, state_ids_str, roles, members_list) {
|
|
const ptr0 = passStringToWasm0(process_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ptr1 = passArrayJsValueToWasm0(state_ids_str, wasm$1.__wbindgen_malloc);
|
|
const len1 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.request_data(ptr0, len0, ptr1, len1, roles, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {Process} process
|
|
* @param {string} state_id
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function create_update_message$1(process, state_id, members_list) {
|
|
const ptr0 = passStringToWasm0(state_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.create_update_message(process, ptr0, len0, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {Process} process
|
|
* @param {string} state_id
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function validate_state$1(process, state_id, members_list) {
|
|
const ptr0 = passStringToWasm0(state_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.validate_state(process, ptr0, len0, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {Process} process
|
|
* @param {string} state_id
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function refuse_state$1(process, state_id, members_list) {
|
|
const ptr0 = passStringToWasm0(state_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.refuse_state(process, ptr0, len0, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {Process} process
|
|
* @param {string} state_id
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function evaluate_state$1(process, state_id, members_list) {
|
|
const ptr0 = passStringToWasm0(state_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.evaluate_state(process, ptr0, len0, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {Process} process
|
|
* @param {string} state_id
|
|
* @param {OutPointMemberMap} members_list
|
|
* @returns {ApiReturn}
|
|
*/
|
|
function create_response_prd$1(process, state_id, members_list) {
|
|
const ptr0 = passStringToWasm0(state_id, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.create_response_prd(process, ptr0, len0, members_list);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @returns {string}
|
|
*/
|
|
function create_faucet_msg$1() {
|
|
let deferred2_0;
|
|
let deferred2_1;
|
|
try {
|
|
const ret = wasm$1.create_faucet_msg();
|
|
var ptr1 = ret[0];
|
|
var len1 = ret[1];
|
|
if (ret[3]) {
|
|
ptr1 = 0; len1 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred2_0 = ptr1;
|
|
deferred2_1 = len1;
|
|
return getStringFromWasm0(ptr1, len1);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
}
|
|
}
|
|
|
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
ptr = ptr >>> 0;
|
|
const mem = getDataViewMemory0();
|
|
const result = [];
|
|
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
result.push(wasm$1.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
}
|
|
wasm$1.__externref_drop_slice(ptr, len);
|
|
return result;
|
|
}
|
|
/**
|
|
* @param {string} process_outpoint
|
|
* @returns {string[]}
|
|
*/
|
|
function get_storages$1(process_outpoint) {
|
|
const ptr0 = passStringToWasm0(process_outpoint, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.get_storages(ptr0, len0);
|
|
if (ret[3]) {
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
wasm$1.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
return v2;
|
|
}
|
|
|
|
/**
|
|
* @param {string} parent_roles
|
|
* @param {string} child_roles
|
|
*/
|
|
function is_child_role$1(parent_roles, child_roles) {
|
|
const ptr0 = passStringToWasm0(parent_roles, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ptr1 = passStringToWasm0(child_roles, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len1 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.is_child_role(ptr0, len0, ptr1, len1);
|
|
if (ret[1]) {
|
|
throw takeFromExternrefTable0(ret[0]);
|
|
}
|
|
}
|
|
|
|
function passArray8ToWasm0(arg, malloc) {
|
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
WASM_VECTOR_LEN = arg.length;
|
|
return ptr;
|
|
}
|
|
|
|
function getArrayU8FromWasm0(ptr, len) {
|
|
ptr = ptr >>> 0;
|
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
}
|
|
/**
|
|
* @param {Uint8Array} key
|
|
* @param {Uint8Array} data
|
|
* @returns {Uint8Array}
|
|
*/
|
|
function decrypt_data$1(key, data) {
|
|
const ptr0 = passArray8ToWasm0(key, wasm$1.__wbindgen_malloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ptr1 = passArray8ToWasm0(data, wasm$1.__wbindgen_malloc);
|
|
const len1 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.decrypt_data(ptr0, len0, ptr1, len1);
|
|
if (ret[3]) {
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
wasm$1.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
return v3;
|
|
}
|
|
|
|
/**
|
|
* @param {any} data
|
|
* @returns {Pcd}
|
|
*/
|
|
function encode_binary$1(data) {
|
|
const ret = wasm$1.encode_binary(data);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {any} json_data
|
|
* @returns {Pcd}
|
|
*/
|
|
function encode_json$1(json_data) {
|
|
const ret = wasm$1.encode_json(json_data);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {Uint8Array} value
|
|
* @returns {any}
|
|
*/
|
|
function decode_value$1(value) {
|
|
const ptr0 = passArray8ToWasm0(value, wasm$1.__wbindgen_malloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.decode_value(ptr0, len0);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* @param {any} value
|
|
* @param {string} commited_in
|
|
* @param {string} label
|
|
* @returns {string}
|
|
*/
|
|
function hash_value$1(value, commited_in, label) {
|
|
let deferred4_0;
|
|
let deferred4_1;
|
|
try {
|
|
const ptr0 = passStringToWasm0(commited_in, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ptr1 = passStringToWasm0(label, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len1 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.hash_value(value, ptr0, len0, ptr1, len1);
|
|
var ptr3 = ret[0];
|
|
var len3 = ret[1];
|
|
if (ret[3]) {
|
|
ptr3 = 0; len3 = 0;
|
|
throw takeFromExternrefTable0(ret[2]);
|
|
}
|
|
deferred4_0 = ptr3;
|
|
deferred4_1 = len3;
|
|
return getStringFromWasm0(ptr3, len3);
|
|
} finally {
|
|
wasm$1.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Generate a merkle proof for a specific attribute in a process state.
|
|
*
|
|
* This function creates a merkle proof that proves the existence of a specific attribute
|
|
* in a given state of a process. The proof can be used to verify that the attribute
|
|
* was indeed part of the state without revealing the entire state.
|
|
*
|
|
* # Arguments
|
|
* * `process_state` - The process state object as a JavaScript value
|
|
* * `attribute_name` - The name of the attribute to generate a proof for
|
|
*
|
|
* # Returns
|
|
* A MerkleProofResult object containing:
|
|
* * `proof` - The merkle proof as a hex string
|
|
* * `root` - The merkle root (state_id) as a hex string
|
|
* * `attribute` - The attribute name that was proven
|
|
* * `attribute_index` - The index of the attribute in the merkle tree
|
|
* * `total_leaves_count` - The total number of leaves in the merkle tree
|
|
*
|
|
* # Errors
|
|
* * "Failed to deserialize process state" - If the process state cannot be deserialized from JsValue
|
|
* * "Attribute not found in state" - If the attribute doesn't exist in the state
|
|
* @param {any} process_state
|
|
* @param {string} attribute_name
|
|
* @returns {MerkleProofResult}
|
|
*/
|
|
function get_merkle_proof$1(process_state, attribute_name) {
|
|
const ptr0 = passStringToWasm0(attribute_name, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.get_merkle_proof(process_state, ptr0, len0);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return takeFromExternrefTable0(ret[0]);
|
|
}
|
|
|
|
/**
|
|
* Validate a merkle proof for a specific attribute.
|
|
*
|
|
* This function verifies that a merkle proof is valid and proves the existence
|
|
* of a specific attribute in a given state. It checks that the proof correctly
|
|
* leads to the claimed root when combined with the attribute hash.
|
|
*
|
|
* # Arguments
|
|
* * `proof_result` - a JsValue expected to contain a MerkleProofResult with the proof and metadata
|
|
* * `hash` - The hash of the attribute data as a hex string (the leaf value)
|
|
*
|
|
* # Returns
|
|
* A boolean indicating whether the proof is valid
|
|
*
|
|
* # Errors
|
|
* * "serde_wasm_bindgen deserialization error" - If the proof is not a valid MerkleProofResult
|
|
* * "Invalid proof format" - If the proof cannot be parsed
|
|
* * "Invalid hash format" - If the hash is not a valid 32-byte hex string
|
|
* * "Invalid root format" - If the root is not a valid 32-byte hex string
|
|
* @param {any} proof_result
|
|
* @param {string} hash
|
|
* @returns {boolean}
|
|
*/
|
|
function validate_merkle_proof$1(proof_result, hash) {
|
|
const ptr0 = passStringToWasm0(hash, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len0 = WASM_VECTOR_LEN;
|
|
const ret = wasm$1.validate_merkle_proof(proof_result, ptr0, len0);
|
|
if (ret[2]) {
|
|
throw takeFromExternrefTable0(ret[1]);
|
|
}
|
|
return ret[0] !== 0;
|
|
}
|
|
|
|
function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
const ret = String(arg1);
|
|
const ptr1 = passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len1 = WASM_VECTOR_LEN;
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
}
|
|
function __wbg_buffer_609cc3eee51ed158(arg0) {
|
|
const ret = arg0.buffer;
|
|
return ret;
|
|
}
|
|
function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
|
|
const ret = arg0.call(arg1);
|
|
return ret;
|
|
}, arguments) }
|
|
function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
|
|
const ret = arg0.call(arg1, arg2);
|
|
return ret;
|
|
}, arguments) }
|
|
function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
|
const ret = arg0.crypto;
|
|
return ret;
|
|
}
|
|
function __wbg_debug_e17b51583ca6a632(arg0, arg1, arg2, arg3) {
|
|
console.debug(arg0, arg1, arg2, arg3);
|
|
}
|
|
function __wbg_done_769e5ede4b31c67b(arg0) {
|
|
const ret = arg0.done;
|
|
return ret;
|
|
}
|
|
function __wbg_entries_3265d4158b33e5dc(arg0) {
|
|
const ret = Object.entries(arg0);
|
|
return ret;
|
|
}
|
|
function __wbg_error_524f506f44df1645(arg0) {
|
|
console.error(arg0);
|
|
}
|
|
function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
|
|
console.error(arg0, arg1, arg2, arg3);
|
|
}
|
|
function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(function (arg0, arg1) {
|
|
arg0.getRandomValues(arg1);
|
|
}, arguments) }
|
|
function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
|
|
const ret = Reflect.get(arg0, arg1);
|
|
return ret;
|
|
}, arguments) }
|
|
function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
const ret = arg0[arg1 >>> 0];
|
|
return ret;
|
|
}
|
|
function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
const ret = arg0[arg1];
|
|
return ret;
|
|
}
|
|
function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
|
|
console.info(arg0, arg1, arg2, arg3);
|
|
}
|
|
function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
let result;
|
|
try {
|
|
result = arg0 instanceof ArrayBuffer;
|
|
} catch (_) {
|
|
result = false;
|
|
}
|
|
const ret = result;
|
|
return ret;
|
|
}
|
|
function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
|
let result;
|
|
try {
|
|
result = arg0 instanceof Map;
|
|
} catch (_) {
|
|
result = false;
|
|
}
|
|
const ret = result;
|
|
return ret;
|
|
}
|
|
function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
let result;
|
|
try {
|
|
result = arg0 instanceof Uint8Array;
|
|
} catch (_) {
|
|
result = false;
|
|
}
|
|
const ret = result;
|
|
return ret;
|
|
}
|
|
function __wbg_isArray_a1eab7e0d067391b(arg0) {
|
|
const ret = Array.isArray(arg0);
|
|
return ret;
|
|
}
|
|
function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
|
const ret = Number.isSafeInteger(arg0);
|
|
return ret;
|
|
}
|
|
function __wbg_iterator_9a24c88df860dc65() {
|
|
const ret = Symbol.iterator;
|
|
return ret;
|
|
}
|
|
function __wbg_length_a446193dc22c12f8(arg0) {
|
|
const ret = arg0.length;
|
|
return ret;
|
|
}
|
|
function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
const ret = arg0.length;
|
|
return ret;
|
|
}
|
|
function __wbg_log_cad59bb680daec67(arg0, arg1, arg2, arg3) {
|
|
console.log(arg0, arg1, arg2, arg3);
|
|
}
|
|
function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
const ret = arg0.msCrypto;
|
|
return ret;
|
|
}
|
|
function __wbg_new_405e22f390576ce2() {
|
|
const ret = new Object();
|
|
return ret;
|
|
}
|
|
function __wbg_new_5e0be73521bc8c17() {
|
|
const ret = new Map();
|
|
return ret;
|
|
}
|
|
function __wbg_new_78feb108b6472713() {
|
|
const ret = new Array();
|
|
return ret;
|
|
}
|
|
function __wbg_new_a12002a7f91c75be(arg0) {
|
|
const ret = new Uint8Array(arg0);
|
|
return ret;
|
|
}
|
|
function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
return ret;
|
|
}
|
|
function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
|
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
return ret;
|
|
}
|
|
function __wbg_newwithlength_a381634e90c276d4(arg0) {
|
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
return ret;
|
|
}
|
|
function __wbg_next_25feadfc0913fea9(arg0) {
|
|
const ret = arg0.next;
|
|
return ret;
|
|
}
|
|
function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
|
|
const ret = arg0.next();
|
|
return ret;
|
|
}, arguments) }
|
|
function __wbg_node_905d3e251edff8a2(arg0) {
|
|
const ret = arg0.node;
|
|
return ret;
|
|
}
|
|
function __wbg_parse_def2e24ef1252aff() { return handleError(function (arg0, arg1) {
|
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
return ret;
|
|
}, arguments) }
|
|
function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
|
const ret = arg0.process;
|
|
return ret;
|
|
}
|
|
function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
|
|
arg0.randomFillSync(arg1);
|
|
}, arguments) }
|
|
function __wbg_require_60cc747a6bc5215a() { return handleError(function () {
|
|
const ret = module.require;
|
|
return ret;
|
|
}, arguments) }
|
|
function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
arg0[arg1 >>> 0] = arg2;
|
|
}
|
|
function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
arg0[arg1] = arg2;
|
|
}
|
|
function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
arg0.set(arg1, arg2 >>> 0);
|
|
}
|
|
function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
const ret = arg0.set(arg1, arg2);
|
|
return ret;
|
|
}
|
|
function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0, arg1, arg2) {
|
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
return ret;
|
|
}, arguments) }
|
|
function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
|
const ret = typeof global === 'undefined' ? null : global;
|
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
}
|
|
function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
|
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
}
|
|
function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
|
|
const ret = typeof self === 'undefined' ? null : self;
|
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
}
|
|
function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
|
const ret = typeof window === 'undefined' ? null : window;
|
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
}
|
|
function __wbg_stringify_f7ed6987935b4a24() { return handleError(function (arg0) {
|
|
const ret = JSON.stringify(arg0);
|
|
return ret;
|
|
}, arguments) }
|
|
function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
|
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
return ret;
|
|
}
|
|
function __wbg_value_cd1ffa7b1ab794f1(arg0) {
|
|
const ret = arg0.value;
|
|
return ret;
|
|
}
|
|
function __wbg_versions_c01dfd4722a88165(arg0) {
|
|
const ret = arg0.versions;
|
|
return ret;
|
|
}
|
|
function __wbg_warn_aaf1f4664a035bd6(arg0, arg1, arg2, arg3) {
|
|
console.warn(arg0, arg1, arg2, arg3);
|
|
}
|
|
function __wbindgen_as_number(arg0) {
|
|
const ret = +arg0;
|
|
return ret;
|
|
}
|
|
function __wbindgen_bigint_from_i64(arg0) {
|
|
const ret = arg0;
|
|
return ret;
|
|
}
|
|
function __wbindgen_bigint_from_u64(arg0) {
|
|
const ret = BigInt.asUintN(64, arg0);
|
|
return ret;
|
|
}
|
|
function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
const v = arg1;
|
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
}
|
|
function __wbindgen_boolean_get(arg0) {
|
|
const v = arg0;
|
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
return ret;
|
|
}
|
|
function __wbindgen_debug_string(arg0, arg1) {
|
|
const ret = debugString(arg1);
|
|
const ptr1 = passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
const len1 = WASM_VECTOR_LEN;
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
}
|
|
function __wbindgen_error_new(arg0, arg1) {
|
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
return ret;
|
|
}
|
|
function __wbindgen_in(arg0, arg1) {
|
|
const ret = arg0 in arg1;
|
|
return ret;
|
|
}
|
|
function __wbindgen_init_externref_table() {
|
|
const table = wasm$1.__wbindgen_export_4;
|
|
const offset = table.grow(4);
|
|
table.set(0, undefined);
|
|
table.set(offset + 0, undefined);
|
|
table.set(offset + 1, null);
|
|
table.set(offset + 2, true);
|
|
table.set(offset + 3, false);
|
|
}
|
|
function __wbindgen_is_bigint(arg0) {
|
|
const ret = typeof(arg0) === 'bigint';
|
|
return ret;
|
|
}
|
|
function __wbindgen_is_function(arg0) {
|
|
const ret = typeof(arg0) === 'function';
|
|
return ret;
|
|
}
|
|
function __wbindgen_is_object(arg0) {
|
|
const val = arg0;
|
|
const ret = typeof(val) === 'object' && val !== null;
|
|
return ret;
|
|
}
|
|
function __wbindgen_is_string(arg0) {
|
|
const ret = typeof(arg0) === 'string';
|
|
return ret;
|
|
}
|
|
function __wbindgen_is_undefined(arg0) {
|
|
const ret = arg0 === undefined;
|
|
return ret;
|
|
}
|
|
function __wbindgen_jsval_eq(arg0, arg1) {
|
|
const ret = arg0 === arg1;
|
|
return ret;
|
|
}
|
|
function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
const ret = arg0 == arg1;
|
|
return ret;
|
|
}
|
|
function __wbindgen_memory() {
|
|
const ret = wasm$1.memory;
|
|
return ret;
|
|
}
|
|
function __wbindgen_number_get(arg0, arg1) {
|
|
const obj = arg1;
|
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
}
|
|
function __wbindgen_number_new(arg0) {
|
|
const ret = arg0;
|
|
return ret;
|
|
}
|
|
function __wbindgen_string_get(arg0, arg1) {
|
|
const obj = arg1;
|
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm$1.__wbindgen_malloc, wasm$1.__wbindgen_realloc);
|
|
var len1 = WASM_VECTOR_LEN;
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
}
|
|
function __wbindgen_string_new(arg0, arg1) {
|
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
return ret;
|
|
}
|
|
function __wbindgen_throw(arg0, arg1) {
|
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
}
|
|
|
|
URL = globalThis.URL;
|
|
const __vite__wasmModule = await __vite__initWasm({ "./sdk_client_bg.js": { __wbindgen_string_new: __wbindgen_string_new, __wbindgen_is_bigint: __wbindgen_is_bigint, __wbindgen_bigint_from_u64: __wbindgen_bigint_from_u64, __wbindgen_jsval_eq: __wbindgen_jsval_eq, __wbindgen_error_new: __wbindgen_error_new, __wbindgen_string_get: __wbindgen_string_get, __wbindgen_boolean_get: __wbindgen_boolean_get, __wbindgen_number_get: __wbindgen_number_get, __wbindgen_is_object: __wbindgen_is_object, __wbindgen_in: __wbindgen_in, __wbindgen_bigint_from_i64: __wbindgen_bigint_from_i64, __wbindgen_is_string: __wbindgen_is_string, __wbindgen_is_undefined: __wbindgen_is_undefined, __wbindgen_jsval_loose_eq: __wbindgen_jsval_loose_eq, __wbindgen_as_number: __wbindgen_as_number, __wbg_String_8f0eb39a4a4c2f66: __wbg_String_8f0eb39a4a4c2f66, __wbindgen_number_new: __wbindgen_number_new, __wbg_getwithrefkey_1dc361bd10053bfe: __wbg_getwithrefkey_1dc361bd10053bfe, __wbg_set_3f1d0b984ed272ed: __wbg_set_3f1d0b984ed272ed, __wbg_debug_e17b51583ca6a632: __wbg_debug_e17b51583ca6a632, __wbg_error_524f506f44df1645: __wbg_error_524f506f44df1645, __wbg_error_80de38b3f7cc3c3c: __wbg_error_80de38b3f7cc3c3c, __wbg_info_033d8b8a0838f1d3: __wbg_info_033d8b8a0838f1d3, __wbg_log_cad59bb680daec67: __wbg_log_cad59bb680daec67, __wbg_warn_aaf1f4664a035bd6: __wbg_warn_aaf1f4664a035bd6, __wbg_crypto_574e78ad8b13b65f: __wbg_crypto_574e78ad8b13b65f, __wbg_process_dc0fbacc7c1c06f7: __wbg_process_dc0fbacc7c1c06f7, __wbg_versions_c01dfd4722a88165: __wbg_versions_c01dfd4722a88165, __wbg_node_905d3e251edff8a2: __wbg_node_905d3e251edff8a2, __wbg_require_60cc747a6bc5215a: __wbg_require_60cc747a6bc5215a, __wbindgen_is_function: __wbindgen_is_function, __wbg_msCrypto_a61aeb35a24c1329: __wbg_msCrypto_a61aeb35a24c1329, __wbg_randomFillSync_ac0988aba3254290: __wbg_randomFillSync_ac0988aba3254290, __wbg_getRandomValues_b8f5dbd5f3995a9e: __wbg_getRandomValues_b8f5dbd5f3995a9e, __wbg_get_b9b93047fe3cf45b: __wbg_get_b9b93047fe3cf45b, __wbg_length_e2d2a49132c1b256: __wbg_length_e2d2a49132c1b256, __wbg_new_78feb108b6472713: __wbg_new_78feb108b6472713, __wbg_newnoargs_105ed471475aaf50: __wbg_newnoargs_105ed471475aaf50, __wbg_new_5e0be73521bc8c17: __wbg_new_5e0be73521bc8c17, __wbg_next_25feadfc0913fea9: __wbg_next_25feadfc0913fea9, __wbg_next_6574e1a8a62d1055: __wbg_next_6574e1a8a62d1055, __wbg_done_769e5ede4b31c67b: __wbg_done_769e5ede4b31c67b, __wbg_value_cd1ffa7b1ab794f1: __wbg_value_cd1ffa7b1ab794f1, __wbg_iterator_9a24c88df860dc65: __wbg_iterator_9a24c88df860dc65, __wbg_get_67b2ba62fc30de12: __wbg_get_67b2ba62fc30de12, __wbg_call_672a4d21634d4a24: __wbg_call_672a4d21634d4a24, __wbg_new_405e22f390576ce2: __wbg_new_405e22f390576ce2, __wbg_set_37837023f3d740e8: __wbg_set_37837023f3d740e8, __wbg_isArray_a1eab7e0d067391b: __wbg_isArray_a1eab7e0d067391b, __wbg_instanceof_ArrayBuffer_e14585432e3737fc: __wbg_instanceof_ArrayBuffer_e14585432e3737fc, __wbg_call_7cccdd69e0791ae2: __wbg_call_7cccdd69e0791ae2, __wbg_instanceof_Map_f3469ce2244d2430: __wbg_instanceof_Map_f3469ce2244d2430, __wbg_set_8fc6bf8a5b1071d1: __wbg_set_8fc6bf8a5b1071d1, __wbg_isSafeInteger_343e2beeeece1bb0: __wbg_isSafeInteger_343e2beeeece1bb0, __wbg_entries_3265d4158b33e5dc: __wbg_entries_3265d4158b33e5dc, __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0: __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0, __wbg_static_accessor_SELF_37c5d418e4bf5819: __wbg_static_accessor_SELF_37c5d418e4bf5819, __wbg_static_accessor_WINDOW_5de37043a91a9c40: __wbg_static_accessor_WINDOW_5de37043a91a9c40, __wbg_static_accessor_GLOBAL_88a902d13a557d07: __wbg_static_accessor_GLOBAL_88a902d13a557d07, __wbg_buffer_609cc3eee51ed158: __wbg_buffer_609cc3eee51ed158, __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a: __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a, __wbg_new_a12002a7f91c75be: __wbg_new_a12002a7f91c75be, __wbg_set_65595bdd868b3009: __wbg_set_65595bdd868b3009, __wbg_length_a446193dc22c12f8: __wbg_length_a446193dc22c12f8, __wbg_instanceof_Uint8Array_17156bcf118086a9: __wbg_instanceof_Uint8Array_17156bcf118086a9, __wbg_newwithlength_a381634e90c276d4: __wbg_newwithlength_a381634e90c276d4, __wbg_subarray_aa9065fa9dc5df96: __wbg_subarray_aa9065fa9dc5df96, __wbg_set_bb8cecf6a62b9f46: __wbg_set_bb8cecf6a62b9f46, __wbg_parse_def2e24ef1252aff: __wbg_parse_def2e24ef1252aff, __wbg_stringify_f7ed6987935b4a24: __wbg_stringify_f7ed6987935b4a24, __wbindgen_bigint_get_as_i64: __wbindgen_bigint_get_as_i64, __wbindgen_debug_string: __wbindgen_debug_string, __wbindgen_throw: __wbindgen_throw, __wbindgen_memory: __wbindgen_memory, __wbindgen_init_externref_table: __wbindgen_init_externref_table } }, __vite__wasmUrl);
|
|
const memory = __vite__wasmModule.memory;
|
|
const get_address = __vite__wasmModule.get_address;
|
|
const get_member = __vite__wasmModule.get_member;
|
|
const restore_device = __vite__wasmModule.restore_device;
|
|
const create_device_from_sp_wallet = __vite__wasmModule.create_device_from_sp_wallet;
|
|
const create_new_device = __vite__wasmModule.create_new_device;
|
|
const is_paired = __vite__wasmModule.is_paired;
|
|
const pair_device = __vite__wasmModule.pair_device;
|
|
const unpair_device = __vite__wasmModule.unpair_device;
|
|
const dump_wallet = __vite__wasmModule.dump_wallet;
|
|
const reset_process_cache = __vite__wasmModule.reset_process_cache;
|
|
const dump_process_cache = __vite__wasmModule.dump_process_cache;
|
|
const set_process_cache = __vite__wasmModule.set_process_cache;
|
|
const add_to_process_cache = __vite__wasmModule.add_to_process_cache;
|
|
const reset_shared_secrets = __vite__wasmModule.reset_shared_secrets;
|
|
const set_shared_secrets = __vite__wasmModule.set_shared_secrets;
|
|
const get_pairing_process_id = __vite__wasmModule.get_pairing_process_id;
|
|
const dump_device = __vite__wasmModule.dump_device;
|
|
const dump_neutered_device = __vite__wasmModule.dump_neutered_device;
|
|
const reset_device = __vite__wasmModule.reset_device;
|
|
const get_txid = __vite__wasmModule.get_txid;
|
|
const parse_new_tx = __vite__wasmModule.parse_new_tx;
|
|
const parse_cipher = __vite__wasmModule.parse_cipher;
|
|
const get_outputs = __vite__wasmModule.get_outputs;
|
|
const get_available_amount = __vite__wasmModule.get_available_amount;
|
|
const create_transaction = __vite__wasmModule.create_transaction;
|
|
const sign_transaction = __vite__wasmModule.sign_transaction;
|
|
const create_new_process = __vite__wasmModule.create_new_process;
|
|
const update_process = __vite__wasmModule.update_process;
|
|
const request_data = __vite__wasmModule.request_data;
|
|
const create_update_message = __vite__wasmModule.create_update_message;
|
|
const validate_state = __vite__wasmModule.validate_state;
|
|
const refuse_state = __vite__wasmModule.refuse_state;
|
|
const evaluate_state = __vite__wasmModule.evaluate_state;
|
|
const create_response_prd = __vite__wasmModule.create_response_prd;
|
|
const create_faucet_msg = __vite__wasmModule.create_faucet_msg;
|
|
const get_storages = __vite__wasmModule.get_storages;
|
|
const is_child_role = __vite__wasmModule.is_child_role;
|
|
const decrypt_data = __vite__wasmModule.decrypt_data;
|
|
const encode_binary = __vite__wasmModule.encode_binary;
|
|
const encode_json = __vite__wasmModule.encode_json;
|
|
const decode_value = __vite__wasmModule.decode_value;
|
|
const hash_value = __vite__wasmModule.hash_value;
|
|
const get_merkle_proof = __vite__wasmModule.get_merkle_proof;
|
|
const validate_merkle_proof = __vite__wasmModule.validate_merkle_proof;
|
|
const setup = __vite__wasmModule.setup;
|
|
const rust_zstd_wasm_shim_qsort = __vite__wasmModule.rust_zstd_wasm_shim_qsort;
|
|
const rust_zstd_wasm_shim_malloc = __vite__wasmModule.rust_zstd_wasm_shim_malloc;
|
|
const rust_zstd_wasm_shim_memcmp = __vite__wasmModule.rust_zstd_wasm_shim_memcmp;
|
|
const rust_zstd_wasm_shim_calloc = __vite__wasmModule.rust_zstd_wasm_shim_calloc;
|
|
const rust_zstd_wasm_shim_free = __vite__wasmModule.rust_zstd_wasm_shim_free;
|
|
const rust_zstd_wasm_shim_memcpy = __vite__wasmModule.rust_zstd_wasm_shim_memcpy;
|
|
const rust_zstd_wasm_shim_memmove = __vite__wasmModule.rust_zstd_wasm_shim_memmove;
|
|
const rust_zstd_wasm_shim_memset = __vite__wasmModule.rust_zstd_wasm_shim_memset;
|
|
const rustsecp256k1_v0_9_2_context_create = __vite__wasmModule.rustsecp256k1_v0_9_2_context_create;
|
|
const rustsecp256k1_v0_9_2_context_destroy = __vite__wasmModule.rustsecp256k1_v0_9_2_context_destroy;
|
|
const rustsecp256k1_v0_9_2_default_illegal_callback_fn = __vite__wasmModule.rustsecp256k1_v0_9_2_default_illegal_callback_fn;
|
|
const rustsecp256k1_v0_9_2_default_error_callback_fn = __vite__wasmModule.rustsecp256k1_v0_9_2_default_error_callback_fn;
|
|
const __wbindgen_malloc = __vite__wasmModule.__wbindgen_malloc;
|
|
const __wbindgen_realloc = __vite__wasmModule.__wbindgen_realloc;
|
|
const __wbindgen_exn_store = __vite__wasmModule.__wbindgen_exn_store;
|
|
const __externref_table_alloc = __vite__wasmModule.__externref_table_alloc;
|
|
const __wbindgen_export_4 = __vite__wasmModule.__wbindgen_export_4;
|
|
const __externref_table_dealloc = __vite__wasmModule.__externref_table_dealloc;
|
|
const __wbindgen_free = __vite__wasmModule.__wbindgen_free;
|
|
const __externref_drop_slice = __vite__wasmModule.__externref_drop_slice;
|
|
const __wbindgen_start = __vite__wasmModule.__wbindgen_start;
|
|
|
|
const wasm = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
__proto__: null,
|
|
__externref_drop_slice,
|
|
__externref_table_alloc,
|
|
__externref_table_dealloc,
|
|
__wbindgen_exn_store,
|
|
__wbindgen_export_4,
|
|
__wbindgen_free,
|
|
__wbindgen_malloc,
|
|
__wbindgen_realloc,
|
|
__wbindgen_start,
|
|
add_to_process_cache,
|
|
create_device_from_sp_wallet,
|
|
create_faucet_msg,
|
|
create_new_device,
|
|
create_new_process,
|
|
create_response_prd,
|
|
create_transaction,
|
|
create_update_message,
|
|
decode_value,
|
|
decrypt_data,
|
|
dump_device,
|
|
dump_neutered_device,
|
|
dump_process_cache,
|
|
dump_wallet,
|
|
encode_binary,
|
|
encode_json,
|
|
evaluate_state,
|
|
get_address,
|
|
get_available_amount,
|
|
get_member,
|
|
get_merkle_proof,
|
|
get_outputs,
|
|
get_pairing_process_id,
|
|
get_storages,
|
|
get_txid,
|
|
hash_value,
|
|
is_child_role,
|
|
is_paired,
|
|
memory,
|
|
pair_device,
|
|
parse_cipher,
|
|
parse_new_tx,
|
|
refuse_state,
|
|
request_data,
|
|
reset_device,
|
|
reset_process_cache,
|
|
reset_shared_secrets,
|
|
restore_device,
|
|
rust_zstd_wasm_shim_calloc,
|
|
rust_zstd_wasm_shim_free,
|
|
rust_zstd_wasm_shim_malloc,
|
|
rust_zstd_wasm_shim_memcmp,
|
|
rust_zstd_wasm_shim_memcpy,
|
|
rust_zstd_wasm_shim_memmove,
|
|
rust_zstd_wasm_shim_memset,
|
|
rust_zstd_wasm_shim_qsort,
|
|
rustsecp256k1_v0_9_2_context_create,
|
|
rustsecp256k1_v0_9_2_context_destroy,
|
|
rustsecp256k1_v0_9_2_default_error_callback_fn,
|
|
rustsecp256k1_v0_9_2_default_illegal_callback_fn,
|
|
set_process_cache,
|
|
set_shared_secrets,
|
|
setup,
|
|
sign_transaction,
|
|
unpair_device,
|
|
update_process,
|
|
validate_merkle_proof,
|
|
validate_state
|
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
|
|
__wbg_set_wasm(wasm);
|
|
__wbindgen_start();
|
|
|
|
export { __wbg_String_8f0eb39a4a4c2f66, __wbg_buffer_609cc3eee51ed158, __wbg_call_672a4d21634d4a24, __wbg_call_7cccdd69e0791ae2, __wbg_crypto_574e78ad8b13b65f, __wbg_debug_e17b51583ca6a632, __wbg_done_769e5ede4b31c67b, __wbg_entries_3265d4158b33e5dc, __wbg_error_524f506f44df1645, __wbg_error_80de38b3f7cc3c3c, __wbg_getRandomValues_b8f5dbd5f3995a9e, __wbg_get_67b2ba62fc30de12, __wbg_get_b9b93047fe3cf45b, __wbg_getwithrefkey_1dc361bd10053bfe, __wbg_info_033d8b8a0838f1d3, __wbg_instanceof_ArrayBuffer_e14585432e3737fc, __wbg_instanceof_Map_f3469ce2244d2430, __wbg_instanceof_Uint8Array_17156bcf118086a9, __wbg_isArray_a1eab7e0d067391b, __wbg_isSafeInteger_343e2beeeece1bb0, __wbg_iterator_9a24c88df860dc65, __wbg_length_a446193dc22c12f8, __wbg_length_e2d2a49132c1b256, __wbg_log_cad59bb680daec67, __wbg_msCrypto_a61aeb35a24c1329, __wbg_new_405e22f390576ce2, __wbg_new_5e0be73521bc8c17, __wbg_new_78feb108b6472713, __wbg_new_a12002a7f91c75be, __wbg_newnoargs_105ed471475aaf50, __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a, __wbg_newwithlength_a381634e90c276d4, __wbg_next_25feadfc0913fea9, __wbg_next_6574e1a8a62d1055, __wbg_node_905d3e251edff8a2, __wbg_parse_def2e24ef1252aff, __wbg_process_dc0fbacc7c1c06f7, __wbg_randomFillSync_ac0988aba3254290, __wbg_require_60cc747a6bc5215a, __wbg_set_37837023f3d740e8, __wbg_set_3f1d0b984ed272ed, __wbg_set_65595bdd868b3009, __wbg_set_8fc6bf8a5b1071d1, __wbg_set_bb8cecf6a62b9f46, __wbg_set_wasm, __wbg_static_accessor_GLOBAL_88a902d13a557d07, __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0, __wbg_static_accessor_SELF_37c5d418e4bf5819, __wbg_static_accessor_WINDOW_5de37043a91a9c40, __wbg_stringify_f7ed6987935b4a24, __wbg_subarray_aa9065fa9dc5df96, __wbg_value_cd1ffa7b1ab794f1, __wbg_versions_c01dfd4722a88165, __wbg_warn_aaf1f4664a035bd6, __wbindgen_as_number, __wbindgen_bigint_from_i64, __wbindgen_bigint_from_u64, __wbindgen_bigint_get_as_i64, __wbindgen_boolean_get, __wbindgen_debug_string, __wbindgen_error_new, __wbindgen_in, __wbindgen_init_externref_table, __wbindgen_is_bigint, __wbindgen_is_function, __wbindgen_is_object, __wbindgen_is_string, __wbindgen_is_undefined, __wbindgen_jsval_eq, __wbindgen_jsval_loose_eq, __wbindgen_memory, __wbindgen_number_get, __wbindgen_number_new, __wbindgen_string_get, __wbindgen_string_new, __wbindgen_throw, add_to_process_cache$1 as add_to_process_cache, create_device_from_sp_wallet$1 as create_device_from_sp_wallet, create_faucet_msg$1 as create_faucet_msg, create_new_device$1 as create_new_device, create_new_process$1 as create_new_process, create_response_prd$1 as create_response_prd, create_transaction$1 as create_transaction, create_update_message$1 as create_update_message, decode_value$1 as decode_value, decrypt_data$1 as decrypt_data, dump_device$1 as dump_device, dump_neutered_device$1 as dump_neutered_device, dump_process_cache$1 as dump_process_cache, dump_wallet$1 as dump_wallet, encode_binary$1 as encode_binary, encode_json$1 as encode_json, evaluate_state$1 as evaluate_state, get_address$1 as get_address, get_available_amount$1 as get_available_amount, get_member$1 as get_member, get_merkle_proof$1 as get_merkle_proof, get_outputs$1 as get_outputs, get_pairing_process_id$1 as get_pairing_process_id, get_storages$1 as get_storages, get_txid$1 as get_txid, hash_value$1 as hash_value, is_child_role$1 as is_child_role, is_paired$1 as is_paired, pair_device$1 as pair_device, parse_cipher$1 as parse_cipher, parse_new_tx$1 as parse_new_tx, refuse_state$1 as refuse_state, request_data$1 as request_data, reset_device$1 as reset_device, reset_process_cache$1 as reset_process_cache, reset_shared_secrets$1 as reset_shared_secrets, restore_device$1 as restore_device, set_process_cache$1 as set_process_cache, set_shared_secrets$1 as set_shared_secrets, setup$1 as setup, sign_transaction$1 as sign_transaction, unpair_device$1 as unpair_device, update_process$1 as update_process, validate_merkle_proof$1 as validate_merkle_proof, validate_state$1 as validate_state };
|