saito-wasm 0.2.1 → 0.2.3
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 +77 -84
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +118 -118
- package/pkg/node/package.json +3 -3
- package/pkg/node/snippets/saito-wasm-d09df772ee8ec91d/js/msg_handler.js +121 -0
- package/pkg/web/index.d.ts +124 -125
- package/pkg/web/index.js +75 -79
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +118 -118
- package/pkg/web/package.json +3 -3
- package/pkg/web/snippets/saito-wasm-d09df772ee8ec91d/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-d09df772ee8ec91d/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -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
|
|
|
@@ -288,12 +288,19 @@ module.exports.get_block = function(block_hash) {
|
|
|
288
288
|
};
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
|
-
* @param {bigint}
|
|
292
|
-
* @param {any} peer_config
|
|
291
|
+
* @param {bigint} peer_index
|
|
293
292
|
* @returns {Promise<void>}
|
|
294
293
|
*/
|
|
295
|
-
module.exports.process_new_peer = function(
|
|
296
|
-
const ret = wasm.process_new_peer(
|
|
294
|
+
module.exports.process_new_peer = function(peer_index) {
|
|
295
|
+
const ret = wasm.process_new_peer(peer_index);
|
|
296
|
+
return takeObject(ret);
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @returns {Promise<bigint>}
|
|
301
|
+
*/
|
|
302
|
+
module.exports.get_next_peer_index = function() {
|
|
303
|
+
const ret = wasm.get_next_peer_index();
|
|
297
304
|
return takeObject(ret);
|
|
298
305
|
};
|
|
299
306
|
|
|
@@ -575,7 +582,7 @@ function handleError(f, args) {
|
|
|
575
582
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
576
583
|
}
|
|
577
584
|
}
|
|
578
|
-
function
|
|
585
|
+
function __wbg_adapter_372(arg0, arg1, arg2, arg3) {
|
|
579
586
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h159099ca72b28043(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
580
587
|
}
|
|
581
588
|
|
|
@@ -1469,13 +1476,6 @@ class WasmPeer {
|
|
|
1469
1476
|
const ret = wasm.wasmpeer_has_service(this.__wbg_ptr, addHeapObject(service));
|
|
1470
1477
|
return ret !== 0;
|
|
1471
1478
|
}
|
|
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
1479
|
}
|
|
1480
1480
|
module.exports.WasmPeer = WasmPeer;
|
|
1481
1481
|
|
|
@@ -2067,7 +2067,7 @@ class WasmWalletSlip {
|
|
|
2067
2067
|
* @returns {string}
|
|
2068
2068
|
*/
|
|
2069
2069
|
get_utxokey() {
|
|
2070
|
-
const ret = wasm.
|
|
2070
|
+
const ret = wasm.wasmwalletslip_get_utxokey(this.__wbg_ptr);
|
|
2071
2071
|
return takeObject(ret);
|
|
2072
2072
|
}
|
|
2073
2073
|
/**
|
|
@@ -2080,40 +2080,40 @@ class WasmWalletSlip {
|
|
|
2080
2080
|
* @returns {bigint}
|
|
2081
2081
|
*/
|
|
2082
2082
|
get_amount() {
|
|
2083
|
-
const ret = wasm.
|
|
2083
|
+
const ret = wasm.wasmpeer_get_peer_index(this.__wbg_ptr);
|
|
2084
2084
|
return BigInt.asUintN(64, ret);
|
|
2085
2085
|
}
|
|
2086
2086
|
/**
|
|
2087
2087
|
* @param {bigint} amount
|
|
2088
2088
|
*/
|
|
2089
2089
|
set_amount(amount) {
|
|
2090
|
-
wasm.
|
|
2090
|
+
wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
|
|
2091
2091
|
}
|
|
2092
2092
|
/**
|
|
2093
2093
|
* @returns {bigint}
|
|
2094
2094
|
*/
|
|
2095
2095
|
get_block_id() {
|
|
2096
|
-
const ret = wasm.
|
|
2096
|
+
const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
|
|
2097
2097
|
return BigInt.asUintN(64, ret);
|
|
2098
2098
|
}
|
|
2099
2099
|
/**
|
|
2100
2100
|
* @param {bigint} block_id
|
|
2101
2101
|
*/
|
|
2102
2102
|
set_block_id(block_id) {
|
|
2103
|
-
wasm.
|
|
2103
|
+
wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2104
2104
|
}
|
|
2105
2105
|
/**
|
|
2106
2106
|
* @returns {bigint}
|
|
2107
2107
|
*/
|
|
2108
2108
|
get_tx_ordinal() {
|
|
2109
|
-
const ret = wasm.
|
|
2109
|
+
const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
|
|
2110
2110
|
return BigInt.asUintN(64, ret);
|
|
2111
2111
|
}
|
|
2112
2112
|
/**
|
|
2113
2113
|
* @param {bigint} ordinal
|
|
2114
2114
|
*/
|
|
2115
2115
|
set_tx_ordinal(ordinal) {
|
|
2116
|
-
wasm.
|
|
2116
|
+
wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2117
2117
|
}
|
|
2118
2118
|
/**
|
|
2119
2119
|
* @returns {number}
|
|
@@ -2164,8 +2164,8 @@ class WasmWalletSlip {
|
|
|
2164
2164
|
}
|
|
2165
2165
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2166
2166
|
|
|
2167
|
-
module.exports.
|
|
2168
|
-
const ret =
|
|
2167
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2168
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2169
2169
|
return addHeapObject(ret);
|
|
2170
2170
|
};
|
|
2171
2171
|
|
|
@@ -2178,23 +2178,18 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2178
2178
|
return addHeapObject(ret);
|
|
2179
2179
|
};
|
|
2180
2180
|
|
|
2181
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2182
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2183
|
-
return addHeapObject(ret);
|
|
2184
|
-
};
|
|
2185
|
-
|
|
2186
2181
|
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2187
2182
|
const ret = WasmBlock.__wrap(arg0);
|
|
2188
2183
|
return addHeapObject(ret);
|
|
2189
2184
|
};
|
|
2190
2185
|
|
|
2191
|
-
module.exports.
|
|
2192
|
-
const ret =
|
|
2186
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2187
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2193
2188
|
return addHeapObject(ret);
|
|
2194
2189
|
};
|
|
2195
2190
|
|
|
2196
|
-
module.exports.
|
|
2197
|
-
const ret =
|
|
2191
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2192
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2198
2193
|
return addHeapObject(ret);
|
|
2199
2194
|
};
|
|
2200
2195
|
|
|
@@ -2203,19 +2198,24 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
|
2203
2198
|
return addHeapObject(ret);
|
|
2204
2199
|
};
|
|
2205
2200
|
|
|
2206
|
-
module.exports.
|
|
2207
|
-
const ret =
|
|
2201
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2202
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2208
2203
|
return addHeapObject(ret);
|
|
2209
2204
|
};
|
|
2210
2205
|
|
|
2211
|
-
module.exports.
|
|
2212
|
-
const ret =
|
|
2206
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2207
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2213
2208
|
return addHeapObject(ret);
|
|
2214
2209
|
};
|
|
2215
2210
|
|
|
2216
|
-
module.exports.
|
|
2217
|
-
const ret =
|
|
2218
|
-
return ret;
|
|
2211
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2212
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2213
|
+
return addHeapObject(ret);
|
|
2214
|
+
};
|
|
2215
|
+
|
|
2216
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2217
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2218
|
+
return addHeapObject(ret);
|
|
2219
2219
|
};
|
|
2220
2220
|
|
|
2221
2221
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -2227,8 +2227,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2227
2227
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2228
2228
|
};
|
|
2229
2229
|
|
|
2230
|
-
module.exports.
|
|
2231
|
-
const ret =
|
|
2230
|
+
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2231
|
+
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2232
2232
|
return addHeapObject(ret);
|
|
2233
2233
|
};
|
|
2234
2234
|
|
|
@@ -2242,11 +2242,6 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
2242
2242
|
return addHeapObject(ret);
|
|
2243
2243
|
};
|
|
2244
2244
|
|
|
2245
|
-
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2246
|
-
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2247
|
-
return addHeapObject(ret);
|
|
2248
|
-
};
|
|
2249
|
-
|
|
2250
2245
|
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2251
2246
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2252
2247
|
return addHeapObject(ret);
|
|
@@ -2268,25 +2263,33 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2268
2263
|
return ret;
|
|
2269
2264
|
};
|
|
2270
2265
|
|
|
2271
|
-
module.exports.
|
|
2266
|
+
module.exports.__wbg_sendmessage_0b1a52b2c520071e = function(arg0, arg1) {
|
|
2272
2267
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2273
2268
|
};
|
|
2274
2269
|
|
|
2275
|
-
module.exports.
|
|
2270
|
+
module.exports.__wbg_sendmessagetoall_b797f4c64a53d1cc = function(arg0, arg1) {
|
|
2276
2271
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2277
2272
|
};
|
|
2278
2273
|
|
|
2279
|
-
module.exports.
|
|
2280
|
-
|
|
2281
|
-
|
|
2274
|
+
module.exports.__wbg_connecttopeer_f4305c605f1dc764 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2275
|
+
let deferred0_0;
|
|
2276
|
+
let deferred0_1;
|
|
2277
|
+
try {
|
|
2278
|
+
deferred0_0 = arg0;
|
|
2279
|
+
deferred0_1 = arg1;
|
|
2280
|
+
const ret = MsgHandler.connect_to_peer(getStringFromWasm0(arg0, arg1), takeObject(arg2));
|
|
2281
|
+
return addHeapObject(ret);
|
|
2282
|
+
} finally {
|
|
2283
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2284
|
+
}
|
|
2282
2285
|
}, arguments) };
|
|
2283
2286
|
|
|
2284
|
-
module.exports.
|
|
2287
|
+
module.exports.__wbg_disconnectfrompeer_522caa9628a9991a = function() { return handleError(function (arg0) {
|
|
2285
2288
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2286
2289
|
return addHeapObject(ret);
|
|
2287
2290
|
}, arguments) };
|
|
2288
2291
|
|
|
2289
|
-
module.exports.
|
|
2292
|
+
module.exports.__wbg_fetchblockfrompeer_86f6a39b690bea3e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2290
2293
|
let deferred0_0;
|
|
2291
2294
|
let deferred0_1;
|
|
2292
2295
|
try {
|
|
@@ -2299,7 +2302,7 @@ module.exports.__wbg_fetchblockfrompeer_555f204f60376cf6 = function() { return h
|
|
|
2299
2302
|
}
|
|
2300
2303
|
}, arguments) };
|
|
2301
2304
|
|
|
2302
|
-
module.exports.
|
|
2305
|
+
module.exports.__wbg_writevalue_0a1c55d620d8482b = function(arg0, arg1, arg2) {
|
|
2303
2306
|
let deferred0_0;
|
|
2304
2307
|
let deferred0_1;
|
|
2305
2308
|
try {
|
|
@@ -2311,7 +2314,7 @@ module.exports.__wbg_writevalue_0b3b158e34574638 = function(arg0, arg1, arg2) {
|
|
|
2311
2314
|
}
|
|
2312
2315
|
};
|
|
2313
2316
|
|
|
2314
|
-
module.exports.
|
|
2317
|
+
module.exports.__wbg_appendvalue_955e2680e0158308 = function(arg0, arg1, arg2) {
|
|
2315
2318
|
let deferred0_0;
|
|
2316
2319
|
let deferred0_1;
|
|
2317
2320
|
try {
|
|
@@ -2323,7 +2326,7 @@ module.exports.__wbg_appendvalue_d9972ae45410c2ff = function(arg0, arg1, arg2) {
|
|
|
2323
2326
|
}
|
|
2324
2327
|
};
|
|
2325
2328
|
|
|
2326
|
-
module.exports.
|
|
2329
|
+
module.exports.__wbg_flushdata_1ff65703868693dc = function(arg0, arg1) {
|
|
2327
2330
|
let deferred0_0;
|
|
2328
2331
|
let deferred0_1;
|
|
2329
2332
|
try {
|
|
@@ -2335,7 +2338,7 @@ module.exports.__wbg_flushdata_022d3235204f08cc = function(arg0, arg1) {
|
|
|
2335
2338
|
}
|
|
2336
2339
|
};
|
|
2337
2340
|
|
|
2338
|
-
module.exports.
|
|
2341
|
+
module.exports.__wbg_readvalue_6326726e74830b6a = function() { return handleError(function (arg0, arg1) {
|
|
2339
2342
|
let deferred0_0;
|
|
2340
2343
|
let deferred0_1;
|
|
2341
2344
|
try {
|
|
@@ -2348,12 +2351,12 @@ module.exports.__wbg_readvalue_168fa22a6fa8d090 = function() { return handleErro
|
|
|
2348
2351
|
}
|
|
2349
2352
|
}, arguments) };
|
|
2350
2353
|
|
|
2351
|
-
module.exports.
|
|
2354
|
+
module.exports.__wbg_loadblockfilelist_e5b675fc0edd4599 = function() { return handleError(function () {
|
|
2352
2355
|
const ret = MsgHandler.load_block_file_list();
|
|
2353
2356
|
return addHeapObject(ret);
|
|
2354
2357
|
}, arguments) };
|
|
2355
2358
|
|
|
2356
|
-
module.exports.
|
|
2359
|
+
module.exports.__wbg_isexistingfile_fba8b8a121aaeef0 = function() { return handleError(function (arg0, arg1) {
|
|
2357
2360
|
let deferred0_0;
|
|
2358
2361
|
let deferred0_1;
|
|
2359
2362
|
try {
|
|
@@ -2366,7 +2369,7 @@ module.exports.__wbg_isexistingfile_06b7476350d7b1d6 = function() { return handl
|
|
|
2366
2369
|
}
|
|
2367
2370
|
}, arguments) };
|
|
2368
2371
|
|
|
2369
|
-
module.exports.
|
|
2372
|
+
module.exports.__wbg_removevalue_56600749b17e6328 = function() { return handleError(function (arg0, arg1) {
|
|
2370
2373
|
let deferred0_0;
|
|
2371
2374
|
let deferred0_1;
|
|
2372
2375
|
try {
|
|
@@ -2379,7 +2382,7 @@ module.exports.__wbg_removevalue_c7ae2201d6183dfe = function() { return handleEr
|
|
|
2379
2382
|
}
|
|
2380
2383
|
}, arguments) };
|
|
2381
2384
|
|
|
2382
|
-
module.exports.
|
|
2385
|
+
module.exports.__wbg_ensureblockdirectoryexists_87a785b73a8702f3 = function() { return handleError(function (arg0, arg1) {
|
|
2383
2386
|
let deferred0_0;
|
|
2384
2387
|
let deferred0_1;
|
|
2385
2388
|
try {
|
|
@@ -2391,19 +2394,19 @@ module.exports.__wbg_ensureblockdirectoryexists_b1120d67b103050c = function() {
|
|
|
2391
2394
|
}
|
|
2392
2395
|
}, arguments) };
|
|
2393
2396
|
|
|
2394
|
-
module.exports.
|
|
2397
|
+
module.exports.__wbg_processapicall_c82c1dddf4e93967 = function(arg0, arg1, arg2) {
|
|
2395
2398
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2396
2399
|
};
|
|
2397
2400
|
|
|
2398
|
-
module.exports.
|
|
2401
|
+
module.exports.__wbg_processapisuccess_d30583726df5dfe6 = function(arg0, arg1, arg2) {
|
|
2399
2402
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2400
2403
|
};
|
|
2401
2404
|
|
|
2402
|
-
module.exports.
|
|
2405
|
+
module.exports.__wbg_processapierror_c9229b17fa98409d = function(arg0, arg1, arg2) {
|
|
2403
2406
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2404
2407
|
};
|
|
2405
2408
|
|
|
2406
|
-
module.exports.
|
|
2409
|
+
module.exports.__wbg_sendinterfaceevent_f0f27fa0a8ab4f5e = function(arg0, arg1, arg2) {
|
|
2407
2410
|
let deferred0_0;
|
|
2408
2411
|
let deferred0_1;
|
|
2409
2412
|
try {
|
|
@@ -2415,7 +2418,7 @@ module.exports.__wbg_sendinterfaceevent_552e9e215760c8ec = function(arg0, arg1,
|
|
|
2415
2418
|
}
|
|
2416
2419
|
};
|
|
2417
2420
|
|
|
2418
|
-
module.exports.
|
|
2421
|
+
module.exports.__wbg_sendblocksuccess_78989949d7798214 = function(arg0, arg1, arg2) {
|
|
2419
2422
|
let deferred0_0;
|
|
2420
2423
|
let deferred0_1;
|
|
2421
2424
|
try {
|
|
@@ -2427,11 +2430,11 @@ module.exports.__wbg_sendblocksuccess_6fcdd9b24dd8a443 = function(arg0, arg1, ar
|
|
|
2427
2430
|
}
|
|
2428
2431
|
};
|
|
2429
2432
|
|
|
2430
|
-
module.exports.
|
|
2433
|
+
module.exports.__wbg_sendwalletupdate_283c9249aac46ba4 = function() {
|
|
2431
2434
|
MsgHandler.send_wallet_update();
|
|
2432
2435
|
};
|
|
2433
2436
|
|
|
2434
|
-
module.exports.
|
|
2437
|
+
module.exports.__wbg_sendnewversionalert_8441287a3f324077 = function(arg0, arg1, arg2) {
|
|
2435
2438
|
let deferred0_0;
|
|
2436
2439
|
let deferred0_1;
|
|
2437
2440
|
try {
|
|
@@ -2443,15 +2446,15 @@ module.exports.__wbg_sendnewversionalert_af54ec945b1e1d48 = function(arg0, arg1,
|
|
|
2443
2446
|
}
|
|
2444
2447
|
};
|
|
2445
2448
|
|
|
2446
|
-
module.exports.
|
|
2449
|
+
module.exports.__wbg_savewallet_6b9d3a8d989302c3 = function() {
|
|
2447
2450
|
MsgHandler.save_wallet();
|
|
2448
2451
|
};
|
|
2449
2452
|
|
|
2450
|
-
module.exports.
|
|
2453
|
+
module.exports.__wbg_loadwallet_5539e12e2a77ba36 = function() {
|
|
2451
2454
|
MsgHandler.load_wallet();
|
|
2452
2455
|
};
|
|
2453
2456
|
|
|
2454
|
-
module.exports.
|
|
2457
|
+
module.exports.__wbg_getmyservices_cde79f92638e3743 = function() {
|
|
2455
2458
|
const ret = MsgHandler.get_my_services();
|
|
2456
2459
|
_assertClass(ret, WasmPeerServiceList);
|
|
2457
2460
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2705,7 +2708,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2705
2708
|
const a = state0.a;
|
|
2706
2709
|
state0.a = 0;
|
|
2707
2710
|
try {
|
|
2708
|
-
return
|
|
2711
|
+
return __wbg_adapter_372(a, state0.b, arg0, arg1);
|
|
2709
2712
|
} finally {
|
|
2710
2713
|
state0.a = a;
|
|
2711
2714
|
}
|
|
@@ -2786,16 +2789,6 @@ module.exports.__wbg_subarray_a1f73cd4b5b42fe1 = function(arg0, arg1, arg2) {
|
|
|
2786
2789
|
return addHeapObject(ret);
|
|
2787
2790
|
};
|
|
2788
2791
|
|
|
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
2792
|
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
2800
2793
|
const ret = debugString(getObject(arg1));
|
|
2801
2794
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2813,8 +2806,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2813
2806
|
return addHeapObject(ret);
|
|
2814
2807
|
};
|
|
2815
2808
|
|
|
2816
|
-
module.exports.
|
|
2817
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2809
|
+
module.exports.__wbindgen_closure_wrapper1266 = function(arg0, arg1, arg2) {
|
|
2810
|
+
const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
|
|
2818
2811
|
return addHeapObject(ret);
|
|
2819
2812
|
};
|
|
2820
2813
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|