saito-wasm 0.2.1 → 0.2.2
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 +1 -1
- package/package.json +1 -1
- package/pkg/node/index.d.ts +6 -7
- package/pkg/node/index.js +122 -128
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +107 -107
- package/pkg/node/package.json +1 -1
- package/pkg/node/snippets/saito-wasm-36ef46c03e11a68e/js/msg_handler.js +121 -0
- package/pkg/web/index.d.ts +113 -114
- package/pkg/web/index.js +114 -117
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +107 -107
- package/pkg/web/package.json +3 -3
- package/pkg/web/snippets/saito-wasm-36ef46c03e11a68e/js/msg_handler.js +121 -0
- package/pkg/node/snippets/saito-wasm-ae6ce8908f9cbb68/js/msg_handler.js +0 -121
- package/pkg/web/snippets/saito-wasm-ae6ce8908f9cbb68/js/msg_handler.js +0 -121
- package/wasm-pack +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -34,11 +34,14 @@ export function get_latest_block_hash(): Promise<string>;
|
|
|
34
34
|
*/
|
|
35
35
|
export function get_block(block_hash: string): Promise<WasmBlock>;
|
|
36
36
|
/**
|
|
37
|
-
* @param {bigint}
|
|
38
|
-
* @param {any} peer_config
|
|
37
|
+
* @param {bigint} peer_index
|
|
39
38
|
* @returns {Promise<void>}
|
|
40
39
|
*/
|
|
41
|
-
export function process_new_peer(
|
|
40
|
+
export function process_new_peer(peer_index: bigint): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* @returns {Promise<bigint>}
|
|
43
|
+
*/
|
|
44
|
+
export function get_next_peer_index(): Promise<bigint>;
|
|
42
45
|
/**
|
|
43
46
|
* @param {bigint} peer_index
|
|
44
47
|
* @returns {Promise<void>}
|
|
@@ -486,10 +489,6 @@ export class WasmPeer {
|
|
|
486
489
|
*/
|
|
487
490
|
has_service(service: string): boolean;
|
|
488
491
|
/**
|
|
489
|
-
* @returns {boolean}
|
|
490
|
-
*/
|
|
491
|
-
is_main_peer(): boolean;
|
|
492
|
-
/**
|
|
493
492
|
*/
|
|
494
493
|
readonly key_list: Array<any>;
|
|
495
494
|
/**
|
package/pkg/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-36ef46c03e11a68e/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,6 +24,15 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
function addHeapObject(obj) {
|
|
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
|
+
}
|
|
35
|
+
|
|
27
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
37
|
|
|
29
38
|
cachedTextDecoder.decode();
|
|
@@ -42,15 +51,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
51
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
52
|
}
|
|
44
53
|
|
|
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
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -224,7 +224,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
224
224
|
CLOSURE_DTORS.register(real, state, state);
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function __wbg_adapter_38(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
|
|
|
@@ -234,6 +234,14 @@ function _assertClass(instance, klass) {
|
|
|
234
234
|
}
|
|
235
235
|
return instance.ptr;
|
|
236
236
|
}
|
|
237
|
+
|
|
238
|
+
function handleError(f, args) {
|
|
239
|
+
try {
|
|
240
|
+
return f.apply(this, args);
|
|
241
|
+
} catch (e) {
|
|
242
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
243
|
+
}
|
|
244
|
+
}
|
|
237
245
|
/**
|
|
238
246
|
* @param {string} json
|
|
239
247
|
* @param {string} private_key
|
|
@@ -288,12 +296,19 @@ module.exports.get_block = function(block_hash) {
|
|
|
288
296
|
};
|
|
289
297
|
|
|
290
298
|
/**
|
|
291
|
-
* @param {bigint}
|
|
292
|
-
* @param {any} peer_config
|
|
299
|
+
* @param {bigint} peer_index
|
|
293
300
|
* @returns {Promise<void>}
|
|
294
301
|
*/
|
|
295
|
-
module.exports.process_new_peer = function(
|
|
296
|
-
const ret = wasm.process_new_peer(
|
|
302
|
+
module.exports.process_new_peer = function(peer_index) {
|
|
303
|
+
const ret = wasm.process_new_peer(peer_index);
|
|
304
|
+
return takeObject(ret);
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @returns {Promise<bigint>}
|
|
309
|
+
*/
|
|
310
|
+
module.exports.get_next_peer_index = function() {
|
|
311
|
+
const ret = wasm.get_next_peer_index();
|
|
297
312
|
return takeObject(ret);
|
|
298
313
|
};
|
|
299
314
|
|
|
@@ -568,14 +583,7 @@ module.exports.write_issuance_file = function(threshold) {
|
|
|
568
583
|
return takeObject(ret);
|
|
569
584
|
};
|
|
570
585
|
|
|
571
|
-
function
|
|
572
|
-
try {
|
|
573
|
-
return f.apply(this, args);
|
|
574
|
-
} catch (e) {
|
|
575
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
function __wbg_adapter_374(arg0, arg1, arg2, arg3) {
|
|
586
|
+
function __wbg_adapter_372(arg0, arg1, arg2, arg3) {
|
|
579
587
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h159099ca72b28043(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
580
588
|
}
|
|
581
589
|
|
|
@@ -1469,13 +1477,6 @@ class WasmPeer {
|
|
|
1469
1477
|
const ret = wasm.wasmpeer_has_service(this.__wbg_ptr, addHeapObject(service));
|
|
1470
1478
|
return ret !== 0;
|
|
1471
1479
|
}
|
|
1472
|
-
/**
|
|
1473
|
-
* @returns {boolean}
|
|
1474
|
-
*/
|
|
1475
|
-
is_main_peer() {
|
|
1476
|
-
const ret = wasm.wasmpeer_is_main_peer(this.__wbg_ptr);
|
|
1477
|
-
return ret !== 0;
|
|
1478
|
-
}
|
|
1479
1480
|
}
|
|
1480
1481
|
module.exports.WasmPeer = WasmPeer;
|
|
1481
1482
|
|
|
@@ -2067,7 +2068,7 @@ class WasmWalletSlip {
|
|
|
2067
2068
|
* @returns {string}
|
|
2068
2069
|
*/
|
|
2069
2070
|
get_utxokey() {
|
|
2070
|
-
const ret = wasm.
|
|
2071
|
+
const ret = wasm.wasmwalletslip_get_utxokey(this.__wbg_ptr);
|
|
2071
2072
|
return takeObject(ret);
|
|
2072
2073
|
}
|
|
2073
2074
|
/**
|
|
@@ -2080,40 +2081,40 @@ class WasmWalletSlip {
|
|
|
2080
2081
|
* @returns {bigint}
|
|
2081
2082
|
*/
|
|
2082
2083
|
get_amount() {
|
|
2083
|
-
const ret = wasm.
|
|
2084
|
+
const ret = wasm.wasmpeer_get_peer_index(this.__wbg_ptr);
|
|
2084
2085
|
return BigInt.asUintN(64, ret);
|
|
2085
2086
|
}
|
|
2086
2087
|
/**
|
|
2087
2088
|
* @param {bigint} amount
|
|
2088
2089
|
*/
|
|
2089
2090
|
set_amount(amount) {
|
|
2090
|
-
wasm.
|
|
2091
|
+
wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
|
|
2091
2092
|
}
|
|
2092
2093
|
/**
|
|
2093
2094
|
* @returns {bigint}
|
|
2094
2095
|
*/
|
|
2095
2096
|
get_block_id() {
|
|
2096
|
-
const ret = wasm.
|
|
2097
|
+
const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
|
|
2097
2098
|
return BigInt.asUintN(64, ret);
|
|
2098
2099
|
}
|
|
2099
2100
|
/**
|
|
2100
2101
|
* @param {bigint} block_id
|
|
2101
2102
|
*/
|
|
2102
2103
|
set_block_id(block_id) {
|
|
2103
|
-
wasm.
|
|
2104
|
+
wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2104
2105
|
}
|
|
2105
2106
|
/**
|
|
2106
2107
|
* @returns {bigint}
|
|
2107
2108
|
*/
|
|
2108
2109
|
get_tx_ordinal() {
|
|
2109
|
-
const ret = wasm.
|
|
2110
|
+
const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
|
|
2110
2111
|
return BigInt.asUintN(64, ret);
|
|
2111
2112
|
}
|
|
2112
2113
|
/**
|
|
2113
2114
|
* @param {bigint} ordinal
|
|
2114
2115
|
*/
|
|
2115
2116
|
set_tx_ordinal(ordinal) {
|
|
2116
|
-
wasm.
|
|
2117
|
+
wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2117
2118
|
}
|
|
2118
2119
|
/**
|
|
2119
2120
|
* @returns {number}
|
|
@@ -2164,27 +2165,17 @@ class WasmWalletSlip {
|
|
|
2164
2165
|
}
|
|
2165
2166
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2166
2167
|
|
|
2167
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2168
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2169
|
-
return addHeapObject(ret);
|
|
2170
|
-
};
|
|
2171
|
-
|
|
2172
2168
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2173
2169
|
takeObject(arg0);
|
|
2174
2170
|
};
|
|
2175
2171
|
|
|
2176
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2177
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2178
|
-
return addHeapObject(ret);
|
|
2179
|
-
};
|
|
2180
|
-
|
|
2181
2172
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2182
2173
|
const ret = BigInt.asUintN(64, arg0);
|
|
2183
2174
|
return addHeapObject(ret);
|
|
2184
2175
|
};
|
|
2185
2176
|
|
|
2186
|
-
module.exports.
|
|
2187
|
-
const ret =
|
|
2177
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2178
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2188
2179
|
return addHeapObject(ret);
|
|
2189
2180
|
};
|
|
2190
2181
|
|
|
@@ -2198,13 +2189,28 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2198
2189
|
return addHeapObject(ret);
|
|
2199
2190
|
};
|
|
2200
2191
|
|
|
2192
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2193
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2194
|
+
return addHeapObject(ret);
|
|
2195
|
+
};
|
|
2196
|
+
|
|
2197
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2198
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2199
|
+
return addHeapObject(ret);
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2202
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2203
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2204
|
+
return addHeapObject(ret);
|
|
2205
|
+
};
|
|
2206
|
+
|
|
2201
2207
|
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2202
2208
|
const ret = WasmWallet.__wrap(arg0);
|
|
2203
2209
|
return addHeapObject(ret);
|
|
2204
2210
|
};
|
|
2205
2211
|
|
|
2206
|
-
module.exports.
|
|
2207
|
-
const ret =
|
|
2212
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2213
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2208
2214
|
return addHeapObject(ret);
|
|
2209
2215
|
};
|
|
2210
2216
|
|
|
@@ -2213,9 +2219,9 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
|
2213
2219
|
return addHeapObject(ret);
|
|
2214
2220
|
};
|
|
2215
2221
|
|
|
2216
|
-
module.exports.
|
|
2217
|
-
const ret =
|
|
2218
|
-
return ret;
|
|
2222
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2223
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2224
|
+
return addHeapObject(ret);
|
|
2219
2225
|
};
|
|
2220
2226
|
|
|
2221
2227
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -2227,66 +2233,38 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2227
2233
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2228
2234
|
};
|
|
2229
2235
|
|
|
2230
|
-
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2231
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2232
|
-
return addHeapObject(ret);
|
|
2233
|
-
};
|
|
2234
|
-
|
|
2235
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2236
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2237
|
-
return addHeapObject(ret);
|
|
2238
|
-
};
|
|
2239
|
-
|
|
2240
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2241
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2242
|
-
return addHeapObject(ret);
|
|
2243
|
-
};
|
|
2244
|
-
|
|
2245
2236
|
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2246
2237
|
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2247
2238
|
return addHeapObject(ret);
|
|
2248
2239
|
};
|
|
2249
2240
|
|
|
2250
|
-
module.exports.
|
|
2251
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2252
|
-
return addHeapObject(ret);
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2256
|
-
const val = getObject(arg0);
|
|
2257
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2258
|
-
return ret;
|
|
2259
|
-
};
|
|
2260
|
-
|
|
2261
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2262
|
-
const ret = getObject(arg0) === undefined;
|
|
2263
|
-
return ret;
|
|
2264
|
-
};
|
|
2265
|
-
|
|
2266
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2267
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2268
|
-
return ret;
|
|
2269
|
-
};
|
|
2270
|
-
|
|
2271
|
-
module.exports.__wbg_sendmessage_1e6d7f758706903d = function(arg0, arg1) {
|
|
2241
|
+
module.exports.__wbg_sendmessage_b2a2d709de93c81c = function(arg0, arg1) {
|
|
2272
2242
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2273
2243
|
};
|
|
2274
2244
|
|
|
2275
|
-
module.exports.
|
|
2245
|
+
module.exports.__wbg_sendmessagetoall_5d48bd710d0434b4 = function(arg0, arg1) {
|
|
2276
2246
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2277
2247
|
};
|
|
2278
2248
|
|
|
2279
|
-
module.exports.
|
|
2280
|
-
|
|
2281
|
-
|
|
2249
|
+
module.exports.__wbg_connecttopeer_ff97d90270d8add5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2250
|
+
let deferred0_0;
|
|
2251
|
+
let deferred0_1;
|
|
2252
|
+
try {
|
|
2253
|
+
deferred0_0 = arg0;
|
|
2254
|
+
deferred0_1 = arg1;
|
|
2255
|
+
const ret = MsgHandler.connect_to_peer(getStringFromWasm0(arg0, arg1), takeObject(arg2));
|
|
2256
|
+
return addHeapObject(ret);
|
|
2257
|
+
} finally {
|
|
2258
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2259
|
+
}
|
|
2282
2260
|
}, arguments) };
|
|
2283
2261
|
|
|
2284
|
-
module.exports.
|
|
2262
|
+
module.exports.__wbg_disconnectfrompeer_dc066f7ed8274b6d = function() { return handleError(function (arg0) {
|
|
2285
2263
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2286
2264
|
return addHeapObject(ret);
|
|
2287
2265
|
}, arguments) };
|
|
2288
2266
|
|
|
2289
|
-
module.exports.
|
|
2267
|
+
module.exports.__wbg_fetchblockfrompeer_d043da5ff30449b8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2290
2268
|
let deferred0_0;
|
|
2291
2269
|
let deferred0_1;
|
|
2292
2270
|
try {
|
|
@@ -2299,7 +2277,7 @@ module.exports.__wbg_fetchblockfrompeer_555f204f60376cf6 = function() { return h
|
|
|
2299
2277
|
}
|
|
2300
2278
|
}, arguments) };
|
|
2301
2279
|
|
|
2302
|
-
module.exports.
|
|
2280
|
+
module.exports.__wbg_writevalue_a872d0cd4b9d437d = function(arg0, arg1, arg2) {
|
|
2303
2281
|
let deferred0_0;
|
|
2304
2282
|
let deferred0_1;
|
|
2305
2283
|
try {
|
|
@@ -2311,7 +2289,7 @@ module.exports.__wbg_writevalue_0b3b158e34574638 = function(arg0, arg1, arg2) {
|
|
|
2311
2289
|
}
|
|
2312
2290
|
};
|
|
2313
2291
|
|
|
2314
|
-
module.exports.
|
|
2292
|
+
module.exports.__wbg_appendvalue_af44896bd2f4a3f9 = function(arg0, arg1, arg2) {
|
|
2315
2293
|
let deferred0_0;
|
|
2316
2294
|
let deferred0_1;
|
|
2317
2295
|
try {
|
|
@@ -2323,7 +2301,7 @@ module.exports.__wbg_appendvalue_d9972ae45410c2ff = function(arg0, arg1, arg2) {
|
|
|
2323
2301
|
}
|
|
2324
2302
|
};
|
|
2325
2303
|
|
|
2326
|
-
module.exports.
|
|
2304
|
+
module.exports.__wbg_flushdata_a5376eef6c458262 = function(arg0, arg1) {
|
|
2327
2305
|
let deferred0_0;
|
|
2328
2306
|
let deferred0_1;
|
|
2329
2307
|
try {
|
|
@@ -2335,7 +2313,7 @@ module.exports.__wbg_flushdata_022d3235204f08cc = function(arg0, arg1) {
|
|
|
2335
2313
|
}
|
|
2336
2314
|
};
|
|
2337
2315
|
|
|
2338
|
-
module.exports.
|
|
2316
|
+
module.exports.__wbg_readvalue_3354a9ec31fb7e64 = function() { return handleError(function (arg0, arg1) {
|
|
2339
2317
|
let deferred0_0;
|
|
2340
2318
|
let deferred0_1;
|
|
2341
2319
|
try {
|
|
@@ -2348,12 +2326,12 @@ module.exports.__wbg_readvalue_168fa22a6fa8d090 = function() { return handleErro
|
|
|
2348
2326
|
}
|
|
2349
2327
|
}, arguments) };
|
|
2350
2328
|
|
|
2351
|
-
module.exports.
|
|
2329
|
+
module.exports.__wbg_loadblockfilelist_4b47014827e6d51e = function() { return handleError(function () {
|
|
2352
2330
|
const ret = MsgHandler.load_block_file_list();
|
|
2353
2331
|
return addHeapObject(ret);
|
|
2354
2332
|
}, arguments) };
|
|
2355
2333
|
|
|
2356
|
-
module.exports.
|
|
2334
|
+
module.exports.__wbg_isexistingfile_e0b51536a97dca88 = function() { return handleError(function (arg0, arg1) {
|
|
2357
2335
|
let deferred0_0;
|
|
2358
2336
|
let deferred0_1;
|
|
2359
2337
|
try {
|
|
@@ -2366,7 +2344,7 @@ module.exports.__wbg_isexistingfile_06b7476350d7b1d6 = function() { return handl
|
|
|
2366
2344
|
}
|
|
2367
2345
|
}, arguments) };
|
|
2368
2346
|
|
|
2369
|
-
module.exports.
|
|
2347
|
+
module.exports.__wbg_removevalue_1437bd724935bcca = function() { return handleError(function (arg0, arg1) {
|
|
2370
2348
|
let deferred0_0;
|
|
2371
2349
|
let deferred0_1;
|
|
2372
2350
|
try {
|
|
@@ -2379,7 +2357,7 @@ module.exports.__wbg_removevalue_c7ae2201d6183dfe = function() { return handleEr
|
|
|
2379
2357
|
}
|
|
2380
2358
|
}, arguments) };
|
|
2381
2359
|
|
|
2382
|
-
module.exports.
|
|
2360
|
+
module.exports.__wbg_ensureblockdirectoryexists_9ee938234c25a908 = function() { return handleError(function (arg0, arg1) {
|
|
2383
2361
|
let deferred0_0;
|
|
2384
2362
|
let deferred0_1;
|
|
2385
2363
|
try {
|
|
@@ -2391,19 +2369,19 @@ module.exports.__wbg_ensureblockdirectoryexists_b1120d67b103050c = function() {
|
|
|
2391
2369
|
}
|
|
2392
2370
|
}, arguments) };
|
|
2393
2371
|
|
|
2394
|
-
module.exports.
|
|
2372
|
+
module.exports.__wbg_processapicall_cf5ba9b390c1e67e = function(arg0, arg1, arg2) {
|
|
2395
2373
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2396
2374
|
};
|
|
2397
2375
|
|
|
2398
|
-
module.exports.
|
|
2376
|
+
module.exports.__wbg_processapisuccess_9582565ffd5a789f = function(arg0, arg1, arg2) {
|
|
2399
2377
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2400
2378
|
};
|
|
2401
2379
|
|
|
2402
|
-
module.exports.
|
|
2380
|
+
module.exports.__wbg_processapierror_89b19b9db64339b5 = function(arg0, arg1, arg2) {
|
|
2403
2381
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2404
2382
|
};
|
|
2405
2383
|
|
|
2406
|
-
module.exports.
|
|
2384
|
+
module.exports.__wbg_sendinterfaceevent_97e1b8bb6a3fec90 = function(arg0, arg1, arg2) {
|
|
2407
2385
|
let deferred0_0;
|
|
2408
2386
|
let deferred0_1;
|
|
2409
2387
|
try {
|
|
@@ -2415,7 +2393,7 @@ module.exports.__wbg_sendinterfaceevent_552e9e215760c8ec = function(arg0, arg1,
|
|
|
2415
2393
|
}
|
|
2416
2394
|
};
|
|
2417
2395
|
|
|
2418
|
-
module.exports.
|
|
2396
|
+
module.exports.__wbg_sendblocksuccess_ffe00a0435ab2679 = function(arg0, arg1, arg2) {
|
|
2419
2397
|
let deferred0_0;
|
|
2420
2398
|
let deferred0_1;
|
|
2421
2399
|
try {
|
|
@@ -2427,11 +2405,11 @@ module.exports.__wbg_sendblocksuccess_6fcdd9b24dd8a443 = function(arg0, arg1, ar
|
|
|
2427
2405
|
}
|
|
2428
2406
|
};
|
|
2429
2407
|
|
|
2430
|
-
module.exports.
|
|
2408
|
+
module.exports.__wbg_sendwalletupdate_38e7541127fed663 = function() {
|
|
2431
2409
|
MsgHandler.send_wallet_update();
|
|
2432
2410
|
};
|
|
2433
2411
|
|
|
2434
|
-
module.exports.
|
|
2412
|
+
module.exports.__wbg_sendnewversionalert_2e913aeee49274f1 = function(arg0, arg1, arg2) {
|
|
2435
2413
|
let deferred0_0;
|
|
2436
2414
|
let deferred0_1;
|
|
2437
2415
|
try {
|
|
@@ -2443,21 +2421,47 @@ module.exports.__wbg_sendnewversionalert_af54ec945b1e1d48 = function(arg0, arg1,
|
|
|
2443
2421
|
}
|
|
2444
2422
|
};
|
|
2445
2423
|
|
|
2446
|
-
module.exports.
|
|
2424
|
+
module.exports.__wbg_savewallet_0176282c7faf6f1a = function() {
|
|
2447
2425
|
MsgHandler.save_wallet();
|
|
2448
2426
|
};
|
|
2449
2427
|
|
|
2450
|
-
module.exports.
|
|
2428
|
+
module.exports.__wbg_loadwallet_bfb7b5a845ccdb99 = function() {
|
|
2451
2429
|
MsgHandler.load_wallet();
|
|
2452
2430
|
};
|
|
2453
2431
|
|
|
2454
|
-
module.exports.
|
|
2432
|
+
module.exports.__wbg_getmyservices_289f4fd597e7e6c8 = function() {
|
|
2455
2433
|
const ret = MsgHandler.get_my_services();
|
|
2456
2434
|
_assertClass(ret, WasmPeerServiceList);
|
|
2457
2435
|
var ptr1 = ret.__destroy_into_raw();
|
|
2458
2436
|
return ptr1;
|
|
2459
2437
|
};
|
|
2460
2438
|
|
|
2439
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2440
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2441
|
+
return addHeapObject(ret);
|
|
2442
|
+
};
|
|
2443
|
+
|
|
2444
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2445
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2446
|
+
return addHeapObject(ret);
|
|
2447
|
+
};
|
|
2448
|
+
|
|
2449
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2450
|
+
const val = getObject(arg0);
|
|
2451
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2452
|
+
return ret;
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2456
|
+
const ret = getObject(arg0) === undefined;
|
|
2457
|
+
return ret;
|
|
2458
|
+
};
|
|
2459
|
+
|
|
2460
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2461
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2462
|
+
return ret;
|
|
2463
|
+
};
|
|
2464
|
+
|
|
2461
2465
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2462
2466
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2463
2467
|
return ret;
|
|
@@ -2705,7 +2709,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2705
2709
|
const a = state0.a;
|
|
2706
2710
|
state0.a = 0;
|
|
2707
2711
|
try {
|
|
2708
|
-
return
|
|
2712
|
+
return __wbg_adapter_372(a, state0.b, arg0, arg1);
|
|
2709
2713
|
} finally {
|
|
2710
2714
|
state0.a = a;
|
|
2711
2715
|
}
|
|
@@ -2786,16 +2790,6 @@ module.exports.__wbg_subarray_a1f73cd4b5b42fe1 = function(arg0, arg1, arg2) {
|
|
|
2786
2790
|
return addHeapObject(ret);
|
|
2787
2791
|
};
|
|
2788
2792
|
|
|
2789
|
-
module.exports.__wbg_parse_66d1801634e099ac = function() { return handleError(function (arg0, arg1) {
|
|
2790
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
2791
|
-
return addHeapObject(ret);
|
|
2792
|
-
}, arguments) };
|
|
2793
|
-
|
|
2794
|
-
module.exports.__wbg_stringify_8887fe74e1c50d81 = function() { return handleError(function (arg0) {
|
|
2795
|
-
const ret = JSON.stringify(getObject(arg0));
|
|
2796
|
-
return addHeapObject(ret);
|
|
2797
|
-
}, arguments) };
|
|
2798
|
-
|
|
2799
2793
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
2800
2794
|
const ret = debugString(getObject(arg1));
|
|
2801
2795
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2813,8 +2807,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2813
2807
|
return addHeapObject(ret);
|
|
2814
2808
|
};
|
|
2815
2809
|
|
|
2816
|
-
module.exports.
|
|
2817
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2810
|
+
module.exports.__wbindgen_closure_wrapper1267 = function(arg0, arg1, arg2) {
|
|
2811
|
+
const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
|
|
2818
2812
|
return addHeapObject(ret);
|
|
2819
2813
|
};
|
|
2820
2814
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|