saito-wasm 0.1.54 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +6 -6
- package/package.json +1 -1
- package/pkg/node/index.js +126 -127
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +114 -114
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +114 -114
- package/pkg/web/index.js +117 -118
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +114 -114
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-df11847731371102 → saito-wasm-ae6ce8908f9cbb68}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-df11847731371102 → saito-wasm-ae6ce8908f9cbb68}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "saito-wasm"
|
|
3
|
-
version = "0.1
|
|
3
|
+
version = "0.2.1"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
|
|
6
6
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
|
|
|
11
11
|
saito-core = { path = "../saito-core" }
|
|
12
12
|
wasm-bindgen = { version = "0.2.92" }
|
|
13
13
|
wasm-bindgen-futures = "0.4.42"
|
|
14
|
-
serde = { version = "1.0.
|
|
14
|
+
serde = { version = "1.0.203", features = ["derive"] }
|
|
15
15
|
serde-wasm-bindgen = { version = "0.6.5" }
|
|
16
16
|
web-sys = "0.3.69"
|
|
17
17
|
async-trait = "0.1.80"
|
|
@@ -21,14 +21,14 @@ js-sys = { version = "0.3.69" }
|
|
|
21
21
|
lazy_static = "1.4.0"
|
|
22
22
|
console_log = { version = "1.0.0", features = ["color"] }
|
|
23
23
|
log = "0.4.21"
|
|
24
|
-
getrandom = { version = "0.2.
|
|
24
|
+
getrandom = { version = "0.2.15", features = ["js", "std"] }
|
|
25
25
|
rand = { version = "0.8.5", features = ["getrandom"] }
|
|
26
|
-
secp256k1 = { version = "0.
|
|
26
|
+
secp256k1 = { version = "0.29.0", features = ["hashes", "global-context", "serde"] }
|
|
27
27
|
bs58 = "0.5.0"
|
|
28
28
|
figment = { version = "0.10.12", features = ["json"] }
|
|
29
|
-
serde_json = { version = "1.0.
|
|
29
|
+
serde_json = { version = "1.0.117" }
|
|
30
30
|
num-derive = { version = "0.4.2" }
|
|
31
|
-
num-traits = { version = "0.2.
|
|
31
|
+
num-traits = { version = "0.2.19" }
|
|
32
32
|
wee_alloc = "0.4.5"
|
|
33
33
|
|
|
34
34
|
[package.metadata.wasm-pack.profile.release]
|
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
5
|
-
const {
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ae6ce8908f9cbb68/js/msg_handler.js`);
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
@@ -24,16 +24,9 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
-
const idx = heap_next;
|
|
30
|
-
heap_next = heap[idx];
|
|
31
|
-
|
|
32
|
-
heap[idx] = obj;
|
|
33
|
-
return idx;
|
|
34
|
-
}
|
|
27
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
35
28
|
|
|
36
|
-
|
|
29
|
+
cachedTextDecoder.decode();
|
|
37
30
|
|
|
38
31
|
let cachedUint8Memory0 = null;
|
|
39
32
|
|
|
@@ -44,6 +37,22 @@ function getUint8Memory0() {
|
|
|
44
37
|
return cachedUint8Memory0;
|
|
45
38
|
}
|
|
46
39
|
|
|
40
|
+
function getStringFromWasm0(ptr, len) {
|
|
41
|
+
ptr = ptr >>> 0;
|
|
42
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function addHeapObject(obj) {
|
|
46
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
|
+
const idx = heap_next;
|
|
48
|
+
heap_next = heap[idx];
|
|
49
|
+
|
|
50
|
+
heap[idx] = obj;
|
|
51
|
+
return idx;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let WASM_VECTOR_LEN = 0;
|
|
55
|
+
|
|
47
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
48
57
|
|
|
49
58
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -111,15 +120,6 @@ function getInt32Memory0() {
|
|
|
111
120
|
return cachedInt32Memory0;
|
|
112
121
|
}
|
|
113
122
|
|
|
114
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
115
|
-
|
|
116
|
-
cachedTextDecoder.decode();
|
|
117
|
-
|
|
118
|
-
function getStringFromWasm0(ptr, len) {
|
|
119
|
-
ptr = ptr >>> 0;
|
|
120
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
123
|
let cachedFloat64Memory0 = null;
|
|
124
124
|
|
|
125
125
|
function getFloat64Memory0() {
|
|
@@ -228,14 +228,6 @@ function __wbg_adapter_40(arg0, arg1, arg2) {
|
|
|
228
228
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h91828cc62290f99f(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
function handleError(f, args) {
|
|
232
|
-
try {
|
|
233
|
-
return f.apply(this, args);
|
|
234
|
-
} catch (e) {
|
|
235
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
231
|
function _assertClass(instance, klass) {
|
|
240
232
|
if (!(instance instanceof klass)) {
|
|
241
233
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -576,6 +568,13 @@ module.exports.write_issuance_file = function(threshold) {
|
|
|
576
568
|
return takeObject(ret);
|
|
577
569
|
};
|
|
578
570
|
|
|
571
|
+
function handleError(f, args) {
|
|
572
|
+
try {
|
|
573
|
+
return f.apply(this, args);
|
|
574
|
+
} catch (e) {
|
|
575
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
576
|
+
}
|
|
577
|
+
}
|
|
579
578
|
function __wbg_adapter_374(arg0, arg1, arg2, arg3) {
|
|
580
579
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h159099ca72b28043(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
581
580
|
}
|
|
@@ -2068,7 +2067,7 @@ class WasmWalletSlip {
|
|
|
2068
2067
|
* @returns {string}
|
|
2069
2068
|
*/
|
|
2070
2069
|
get_utxokey() {
|
|
2071
|
-
const ret = wasm.
|
|
2070
|
+
const ret = wasm.wasmslip_utxo_key(this.__wbg_ptr);
|
|
2072
2071
|
return takeObject(ret);
|
|
2073
2072
|
}
|
|
2074
2073
|
/**
|
|
@@ -2081,40 +2080,40 @@ class WasmWalletSlip {
|
|
|
2081
2080
|
* @returns {bigint}
|
|
2082
2081
|
*/
|
|
2083
2082
|
get_amount() {
|
|
2084
|
-
const ret = wasm.
|
|
2083
|
+
const ret = wasm.wasmslip_amount(this.__wbg_ptr);
|
|
2085
2084
|
return BigInt.asUintN(64, ret);
|
|
2086
2085
|
}
|
|
2087
2086
|
/**
|
|
2088
2087
|
* @param {bigint} amount
|
|
2089
2088
|
*/
|
|
2090
2089
|
set_amount(amount) {
|
|
2091
|
-
wasm.
|
|
2090
|
+
wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
|
|
2092
2091
|
}
|
|
2093
2092
|
/**
|
|
2094
2093
|
* @returns {bigint}
|
|
2095
2094
|
*/
|
|
2096
2095
|
get_block_id() {
|
|
2097
|
-
const ret = wasm.
|
|
2096
|
+
const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
|
|
2098
2097
|
return BigInt.asUintN(64, ret);
|
|
2099
2098
|
}
|
|
2100
2099
|
/**
|
|
2101
2100
|
* @param {bigint} block_id
|
|
2102
2101
|
*/
|
|
2103
2102
|
set_block_id(block_id) {
|
|
2104
|
-
wasm.
|
|
2103
|
+
wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2105
2104
|
}
|
|
2106
2105
|
/**
|
|
2107
2106
|
* @returns {bigint}
|
|
2108
2107
|
*/
|
|
2109
2108
|
get_tx_ordinal() {
|
|
2110
|
-
const ret = wasm.
|
|
2109
|
+
const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
|
|
2111
2110
|
return BigInt.asUintN(64, ret);
|
|
2112
2111
|
}
|
|
2113
2112
|
/**
|
|
2114
2113
|
* @param {bigint} ordinal
|
|
2115
2114
|
*/
|
|
2116
2115
|
set_tx_ordinal(ordinal) {
|
|
2117
|
-
wasm.
|
|
2116
|
+
wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2118
2117
|
}
|
|
2119
2118
|
/**
|
|
2120
2119
|
* @returns {number}
|
|
@@ -2165,15 +2164,55 @@ class WasmWalletSlip {
|
|
|
2165
2164
|
}
|
|
2166
2165
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2167
2166
|
|
|
2167
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2168
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2169
|
+
return addHeapObject(ret);
|
|
2170
|
+
};
|
|
2171
|
+
|
|
2168
2172
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2169
2173
|
takeObject(arg0);
|
|
2170
2174
|
};
|
|
2171
2175
|
|
|
2176
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2177
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2178
|
+
return addHeapObject(ret);
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2172
2181
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2173
2182
|
const ret = BigInt.asUintN(64, arg0);
|
|
2174
2183
|
return addHeapObject(ret);
|
|
2175
2184
|
};
|
|
2176
2185
|
|
|
2186
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2187
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2188
|
+
return addHeapObject(ret);
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2191
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2192
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2193
|
+
return addHeapObject(ret);
|
|
2194
|
+
};
|
|
2195
|
+
|
|
2196
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2197
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2198
|
+
return addHeapObject(ret);
|
|
2199
|
+
};
|
|
2200
|
+
|
|
2201
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2202
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2203
|
+
return addHeapObject(ret);
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2207
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2208
|
+
return addHeapObject(ret);
|
|
2209
|
+
};
|
|
2210
|
+
|
|
2211
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2212
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2213
|
+
return addHeapObject(ret);
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2177
2216
|
module.exports.__wbindgen_is_falsy = function(arg0) {
|
|
2178
2217
|
const ret = !getObject(arg0);
|
|
2179
2218
|
return ret;
|
|
@@ -2188,70 +2227,66 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2188
2227
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2189
2228
|
};
|
|
2190
2229
|
|
|
2191
|
-
module.exports.
|
|
2192
|
-
const ret =
|
|
2193
|
-
return addHeapObject(ret);
|
|
2194
|
-
};
|
|
2195
|
-
|
|
2196
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2197
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2230
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2231
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2198
2232
|
return addHeapObject(ret);
|
|
2199
2233
|
};
|
|
2200
2234
|
|
|
2201
|
-
module.exports.
|
|
2202
|
-
const ret =
|
|
2235
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2236
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2203
2237
|
return addHeapObject(ret);
|
|
2204
2238
|
};
|
|
2205
2239
|
|
|
2206
|
-
module.exports.
|
|
2207
|
-
const ret =
|
|
2240
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2241
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2208
2242
|
return addHeapObject(ret);
|
|
2209
2243
|
};
|
|
2210
2244
|
|
|
2211
|
-
module.exports.
|
|
2212
|
-
const ret =
|
|
2245
|
+
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2246
|
+
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2213
2247
|
return addHeapObject(ret);
|
|
2214
2248
|
};
|
|
2215
2249
|
|
|
2216
|
-
module.exports.
|
|
2217
|
-
const ret =
|
|
2250
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2251
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2218
2252
|
return addHeapObject(ret);
|
|
2219
2253
|
};
|
|
2220
2254
|
|
|
2221
|
-
module.exports.
|
|
2222
|
-
const
|
|
2223
|
-
|
|
2255
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2256
|
+
const val = getObject(arg0);
|
|
2257
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2258
|
+
return ret;
|
|
2224
2259
|
};
|
|
2225
2260
|
|
|
2226
|
-
module.exports.
|
|
2227
|
-
const ret =
|
|
2228
|
-
return
|
|
2261
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2262
|
+
const ret = getObject(arg0) === undefined;
|
|
2263
|
+
return ret;
|
|
2229
2264
|
};
|
|
2230
2265
|
|
|
2231
|
-
module.exports.
|
|
2232
|
-
const ret =
|
|
2233
|
-
return
|
|
2266
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2267
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2268
|
+
return ret;
|
|
2234
2269
|
};
|
|
2235
2270
|
|
|
2236
|
-
module.exports.
|
|
2271
|
+
module.exports.__wbg_sendmessage_1e6d7f758706903d = function(arg0, arg1) {
|
|
2237
2272
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2238
2273
|
};
|
|
2239
2274
|
|
|
2240
|
-
module.exports.
|
|
2275
|
+
module.exports.__wbg_sendmessagetoall_33b067522d2f024e = function(arg0, arg1) {
|
|
2241
2276
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2242
2277
|
};
|
|
2243
2278
|
|
|
2244
|
-
module.exports.
|
|
2279
|
+
module.exports.__wbg_connecttopeer_41d0b947686c23f1 = function() { return handleError(function (arg0) {
|
|
2245
2280
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
2246
2281
|
return addHeapObject(ret);
|
|
2247
2282
|
}, arguments) };
|
|
2248
2283
|
|
|
2249
|
-
module.exports.
|
|
2284
|
+
module.exports.__wbg_disconnectfrompeer_1eebab04a4d53272 = function() { return handleError(function (arg0) {
|
|
2250
2285
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2251
2286
|
return addHeapObject(ret);
|
|
2252
2287
|
}, arguments) };
|
|
2253
2288
|
|
|
2254
|
-
module.exports.
|
|
2289
|
+
module.exports.__wbg_fetchblockfrompeer_555f204f60376cf6 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2255
2290
|
let deferred0_0;
|
|
2256
2291
|
let deferred0_1;
|
|
2257
2292
|
try {
|
|
@@ -2264,7 +2299,7 @@ module.exports.__wbg_fetchblockfrompeer_995b66d5656d780b = function() { return h
|
|
|
2264
2299
|
}
|
|
2265
2300
|
}, arguments) };
|
|
2266
2301
|
|
|
2267
|
-
module.exports.
|
|
2302
|
+
module.exports.__wbg_writevalue_0b3b158e34574638 = function(arg0, arg1, arg2) {
|
|
2268
2303
|
let deferred0_0;
|
|
2269
2304
|
let deferred0_1;
|
|
2270
2305
|
try {
|
|
@@ -2276,7 +2311,7 @@ module.exports.__wbg_writevalue_1bdce18459d8cc48 = function(arg0, arg1, arg2) {
|
|
|
2276
2311
|
}
|
|
2277
2312
|
};
|
|
2278
2313
|
|
|
2279
|
-
module.exports.
|
|
2314
|
+
module.exports.__wbg_appendvalue_d9972ae45410c2ff = function(arg0, arg1, arg2) {
|
|
2280
2315
|
let deferred0_0;
|
|
2281
2316
|
let deferred0_1;
|
|
2282
2317
|
try {
|
|
@@ -2288,7 +2323,7 @@ module.exports.__wbg_appendvalue_6fcfff91bd6d9eba = function(arg0, arg1, arg2) {
|
|
|
2288
2323
|
}
|
|
2289
2324
|
};
|
|
2290
2325
|
|
|
2291
|
-
module.exports.
|
|
2326
|
+
module.exports.__wbg_flushdata_022d3235204f08cc = function(arg0, arg1) {
|
|
2292
2327
|
let deferred0_0;
|
|
2293
2328
|
let deferred0_1;
|
|
2294
2329
|
try {
|
|
@@ -2300,7 +2335,7 @@ module.exports.__wbg_flushdata_b1c4461934ae1b9a = function(arg0, arg1) {
|
|
|
2300
2335
|
}
|
|
2301
2336
|
};
|
|
2302
2337
|
|
|
2303
|
-
module.exports.
|
|
2338
|
+
module.exports.__wbg_readvalue_168fa22a6fa8d090 = function() { return handleError(function (arg0, arg1) {
|
|
2304
2339
|
let deferred0_0;
|
|
2305
2340
|
let deferred0_1;
|
|
2306
2341
|
try {
|
|
@@ -2313,12 +2348,12 @@ module.exports.__wbg_readvalue_9c08ce1cf8a0739f = function() { return handleErro
|
|
|
2313
2348
|
}
|
|
2314
2349
|
}, arguments) };
|
|
2315
2350
|
|
|
2316
|
-
module.exports.
|
|
2351
|
+
module.exports.__wbg_loadblockfilelist_dad61142ab73c36c = function() { return handleError(function () {
|
|
2317
2352
|
const ret = MsgHandler.load_block_file_list();
|
|
2318
2353
|
return addHeapObject(ret);
|
|
2319
2354
|
}, arguments) };
|
|
2320
2355
|
|
|
2321
|
-
module.exports.
|
|
2356
|
+
module.exports.__wbg_isexistingfile_06b7476350d7b1d6 = function() { return handleError(function (arg0, arg1) {
|
|
2322
2357
|
let deferred0_0;
|
|
2323
2358
|
let deferred0_1;
|
|
2324
2359
|
try {
|
|
@@ -2331,7 +2366,7 @@ module.exports.__wbg_isexistingfile_112ef92882405cbf = function() { return handl
|
|
|
2331
2366
|
}
|
|
2332
2367
|
}, arguments) };
|
|
2333
2368
|
|
|
2334
|
-
module.exports.
|
|
2369
|
+
module.exports.__wbg_removevalue_c7ae2201d6183dfe = function() { return handleError(function (arg0, arg1) {
|
|
2335
2370
|
let deferred0_0;
|
|
2336
2371
|
let deferred0_1;
|
|
2337
2372
|
try {
|
|
@@ -2344,7 +2379,7 @@ module.exports.__wbg_removevalue_ebe5f9dce1f1afb2 = function() { return handleEr
|
|
|
2344
2379
|
}
|
|
2345
2380
|
}, arguments) };
|
|
2346
2381
|
|
|
2347
|
-
module.exports.
|
|
2382
|
+
module.exports.__wbg_ensureblockdirectoryexists_b1120d67b103050c = function() { return handleError(function (arg0, arg1) {
|
|
2348
2383
|
let deferred0_0;
|
|
2349
2384
|
let deferred0_1;
|
|
2350
2385
|
try {
|
|
@@ -2356,19 +2391,19 @@ module.exports.__wbg_ensureblockdirectoryexists_c677539b70c6f645 = function() {
|
|
|
2356
2391
|
}
|
|
2357
2392
|
}, arguments) };
|
|
2358
2393
|
|
|
2359
|
-
module.exports.
|
|
2394
|
+
module.exports.__wbg_processapicall_c2fd63736ec05530 = function(arg0, arg1, arg2) {
|
|
2360
2395
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2361
2396
|
};
|
|
2362
2397
|
|
|
2363
|
-
module.exports.
|
|
2398
|
+
module.exports.__wbg_processapisuccess_4793409f442867f0 = function(arg0, arg1, arg2) {
|
|
2364
2399
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2365
2400
|
};
|
|
2366
2401
|
|
|
2367
|
-
module.exports.
|
|
2402
|
+
module.exports.__wbg_processapierror_720ac81e67fb48ec = function(arg0, arg1, arg2) {
|
|
2368
2403
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2369
2404
|
};
|
|
2370
2405
|
|
|
2371
|
-
module.exports.
|
|
2406
|
+
module.exports.__wbg_sendinterfaceevent_552e9e215760c8ec = function(arg0, arg1, arg2) {
|
|
2372
2407
|
let deferred0_0;
|
|
2373
2408
|
let deferred0_1;
|
|
2374
2409
|
try {
|
|
@@ -2380,7 +2415,7 @@ module.exports.__wbg_sendinterfaceevent_f9971acce864f086 = function(arg0, arg1,
|
|
|
2380
2415
|
}
|
|
2381
2416
|
};
|
|
2382
2417
|
|
|
2383
|
-
module.exports.
|
|
2418
|
+
module.exports.__wbg_sendblocksuccess_6fcdd9b24dd8a443 = function(arg0, arg1, arg2) {
|
|
2384
2419
|
let deferred0_0;
|
|
2385
2420
|
let deferred0_1;
|
|
2386
2421
|
try {
|
|
@@ -2392,11 +2427,11 @@ module.exports.__wbg_sendblocksuccess_a780e7af0955d2f1 = function(arg0, arg1, ar
|
|
|
2392
2427
|
}
|
|
2393
2428
|
};
|
|
2394
2429
|
|
|
2395
|
-
module.exports.
|
|
2430
|
+
module.exports.__wbg_sendwalletupdate_5e88e286d5032ada = function() {
|
|
2396
2431
|
MsgHandler.send_wallet_update();
|
|
2397
2432
|
};
|
|
2398
2433
|
|
|
2399
|
-
module.exports.
|
|
2434
|
+
module.exports.__wbg_sendnewversionalert_af54ec945b1e1d48 = function(arg0, arg1, arg2) {
|
|
2400
2435
|
let deferred0_0;
|
|
2401
2436
|
let deferred0_1;
|
|
2402
2437
|
try {
|
|
@@ -2408,57 +2443,21 @@ module.exports.__wbg_sendnewversionalert_ee8f726a461edb10 = function(arg0, arg1,
|
|
|
2408
2443
|
}
|
|
2409
2444
|
};
|
|
2410
2445
|
|
|
2411
|
-
module.exports.
|
|
2446
|
+
module.exports.__wbg_savewallet_b9e158e877e3c237 = function() {
|
|
2412
2447
|
MsgHandler.save_wallet();
|
|
2413
2448
|
};
|
|
2414
2449
|
|
|
2415
|
-
module.exports.
|
|
2450
|
+
module.exports.__wbg_loadwallet_2655aee7dc69f094 = function() {
|
|
2416
2451
|
MsgHandler.load_wallet();
|
|
2417
2452
|
};
|
|
2418
2453
|
|
|
2419
|
-
module.exports.
|
|
2454
|
+
module.exports.__wbg_getmyservices_d7a53d0309a70a47 = function() {
|
|
2420
2455
|
const ret = MsgHandler.get_my_services();
|
|
2421
2456
|
_assertClass(ret, WasmPeerServiceList);
|
|
2422
2457
|
var ptr1 = ret.__destroy_into_raw();
|
|
2423
2458
|
return ptr1;
|
|
2424
2459
|
};
|
|
2425
2460
|
|
|
2426
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2427
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2428
|
-
return addHeapObject(ret);
|
|
2429
|
-
};
|
|
2430
|
-
|
|
2431
|
-
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2432
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2433
|
-
return addHeapObject(ret);
|
|
2434
|
-
};
|
|
2435
|
-
|
|
2436
|
-
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2437
|
-
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2438
|
-
return addHeapObject(ret);
|
|
2439
|
-
};
|
|
2440
|
-
|
|
2441
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2442
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2443
|
-
return addHeapObject(ret);
|
|
2444
|
-
};
|
|
2445
|
-
|
|
2446
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2447
|
-
const val = getObject(arg0);
|
|
2448
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2449
|
-
return ret;
|
|
2450
|
-
};
|
|
2451
|
-
|
|
2452
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2453
|
-
const ret = getObject(arg0) === undefined;
|
|
2454
|
-
return ret;
|
|
2455
|
-
};
|
|
2456
|
-
|
|
2457
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2458
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2459
|
-
return ret;
|
|
2460
|
-
};
|
|
2461
|
-
|
|
2462
2461
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2463
2462
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2464
2463
|
return ret;
|
|
@@ -2531,22 +2530,22 @@ module.exports.__wbg_warn_5d3f783b0bae8943 = function(arg0, arg1, arg2, arg3) {
|
|
|
2531
2530
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
2532
2531
|
};
|
|
2533
2532
|
|
|
2534
|
-
module.exports.
|
|
2533
|
+
module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
2535
2534
|
const ret = getObject(arg0).crypto;
|
|
2536
2535
|
return addHeapObject(ret);
|
|
2537
2536
|
};
|
|
2538
2537
|
|
|
2539
|
-
module.exports.
|
|
2538
|
+
module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
|
|
2540
2539
|
const ret = getObject(arg0).process;
|
|
2541
2540
|
return addHeapObject(ret);
|
|
2542
2541
|
};
|
|
2543
2542
|
|
|
2544
|
-
module.exports.
|
|
2543
|
+
module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
|
|
2545
2544
|
const ret = getObject(arg0).versions;
|
|
2546
2545
|
return addHeapObject(ret);
|
|
2547
2546
|
};
|
|
2548
2547
|
|
|
2549
|
-
module.exports.
|
|
2548
|
+
module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
|
|
2550
2549
|
const ret = getObject(arg0).node;
|
|
2551
2550
|
return addHeapObject(ret);
|
|
2552
2551
|
};
|
|
@@ -2556,21 +2555,21 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
2556
2555
|
return ret;
|
|
2557
2556
|
};
|
|
2558
2557
|
|
|
2559
|
-
module.exports.
|
|
2558
|
+
module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
|
|
2560
2559
|
const ret = module.require;
|
|
2561
2560
|
return addHeapObject(ret);
|
|
2562
2561
|
}, arguments) };
|
|
2563
2562
|
|
|
2564
|
-
module.exports.
|
|
2563
|
+
module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
2565
2564
|
const ret = getObject(arg0).msCrypto;
|
|
2566
2565
|
return addHeapObject(ret);
|
|
2567
2566
|
};
|
|
2568
2567
|
|
|
2569
|
-
module.exports.
|
|
2568
|
+
module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
2570
2569
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
2571
2570
|
}, arguments) };
|
|
2572
2571
|
|
|
2573
|
-
module.exports.
|
|
2572
|
+
module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
2574
2573
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
2575
2574
|
}, arguments) };
|
|
2576
2575
|
|
|
@@ -2814,7 +2813,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2814
2813
|
return addHeapObject(ret);
|
|
2815
2814
|
};
|
|
2816
2815
|
|
|
2817
|
-
module.exports.
|
|
2816
|
+
module.exports.__wbindgen_closure_wrapper1284 = function(arg0, arg1, arg2) {
|
|
2818
2817
|
const ret = makeMutClosure(arg0, arg1, 473, __wbg_adapter_40);
|
|
2819
2818
|
return addHeapObject(ret);
|
|
2820
2819
|
};
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|