saito-wasm 0.2.3 → 0.2.5
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.js +98 -98
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +104 -104
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +104 -104
- package/pkg/web/index.js +93 -93
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +104 -104
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-d09df772ee8ec91d → saito-wasm-69ae4f04e698b514}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-d09df772ee8ec91d → saito-wasm-69ae4f04e698b514}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
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-69ae4f04e698b514/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');
|
|
@@ -225,15 +225,9 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfdf4cfd2e1cdf82f(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
function _assertClass(instance, klass) {
|
|
232
|
-
if (!(instance instanceof klass)) {
|
|
233
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
234
|
-
}
|
|
235
|
-
return instance.ptr;
|
|
236
|
-
}
|
|
237
231
|
/**
|
|
238
232
|
* @param {string} json
|
|
239
233
|
* @param {string} private_key
|
|
@@ -440,6 +434,12 @@ module.exports.get_balance_snapshot = function(keys) {
|
|
|
440
434
|
return takeObject(ret);
|
|
441
435
|
};
|
|
442
436
|
|
|
437
|
+
function _assertClass(instance, klass) {
|
|
438
|
+
if (!(instance instanceof klass)) {
|
|
439
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
440
|
+
}
|
|
441
|
+
return instance.ptr;
|
|
442
|
+
}
|
|
443
443
|
/**
|
|
444
444
|
* @param {WasmBalanceSnapshot} snapshot
|
|
445
445
|
* @returns {Promise<void>}
|
|
@@ -583,7 +583,7 @@ function handleError(f, args) {
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
function __wbg_adapter_372(arg0, arg1, arg2, arg3) {
|
|
586
|
-
wasm.
|
|
586
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h633d734e7d6d6514(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2080,40 +2080,40 @@ class WasmWalletSlip {
|
|
|
2080
2080
|
* @returns {bigint}
|
|
2081
2081
|
*/
|
|
2082
2082
|
get_amount() {
|
|
2083
|
-
const ret = wasm.
|
|
2083
|
+
const ret = wasm.wasmslip_amount(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.wasmslip_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.wasmslip_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.wasmslip_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.wasmslip_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.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2117
2117
|
}
|
|
2118
2118
|
/**
|
|
2119
2119
|
* @returns {number}
|
|
@@ -2164,37 +2164,37 @@ class WasmWalletSlip {
|
|
|
2164
2164
|
}
|
|
2165
2165
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2166
2166
|
|
|
2167
|
-
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2168
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2169
|
-
return addHeapObject(ret);
|
|
2170
|
-
};
|
|
2171
|
-
|
|
2172
2167
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2173
2168
|
takeObject(arg0);
|
|
2174
2169
|
};
|
|
2175
2170
|
|
|
2176
|
-
module.exports.
|
|
2177
|
-
const ret =
|
|
2171
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2172
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2178
2173
|
return addHeapObject(ret);
|
|
2179
2174
|
};
|
|
2180
2175
|
|
|
2181
|
-
module.exports.
|
|
2182
|
-
const ret =
|
|
2176
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2177
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2183
2178
|
return addHeapObject(ret);
|
|
2184
2179
|
};
|
|
2185
2180
|
|
|
2186
|
-
module.exports.
|
|
2187
|
-
const ret =
|
|
2181
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2182
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2188
2183
|
return addHeapObject(ret);
|
|
2189
2184
|
};
|
|
2190
2185
|
|
|
2191
|
-
module.exports.
|
|
2192
|
-
const ret =
|
|
2186
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2187
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2193
2188
|
return addHeapObject(ret);
|
|
2194
2189
|
};
|
|
2195
2190
|
|
|
2196
|
-
module.exports.
|
|
2197
|
-
const ret =
|
|
2191
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2192
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2193
|
+
return addHeapObject(ret);
|
|
2194
|
+
};
|
|
2195
|
+
|
|
2196
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2197
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2198
2198
|
return addHeapObject(ret);
|
|
2199
2199
|
};
|
|
2200
2200
|
|
|
@@ -2203,18 +2203,18 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2203
2203
|
return addHeapObject(ret);
|
|
2204
2204
|
};
|
|
2205
2205
|
|
|
2206
|
-
module.exports.
|
|
2207
|
-
const ret =
|
|
2206
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2207
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2208
2208
|
return addHeapObject(ret);
|
|
2209
2209
|
};
|
|
2210
2210
|
|
|
2211
|
-
module.exports.
|
|
2212
|
-
const ret =
|
|
2211
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2212
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2213
2213
|
return addHeapObject(ret);
|
|
2214
2214
|
};
|
|
2215
2215
|
|
|
2216
|
-
module.exports.
|
|
2217
|
-
const ret =
|
|
2216
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2217
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2218
2218
|
return addHeapObject(ret);
|
|
2219
2219
|
};
|
|
2220
2220
|
|
|
@@ -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.__wbindgen_error_new = function(arg0, arg1) {
|
|
2231
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2232
2232
|
return addHeapObject(ret);
|
|
2233
2233
|
};
|
|
2234
2234
|
|
|
@@ -2237,8 +2237,8 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
|
2237
2237
|
return addHeapObject(ret);
|
|
2238
2238
|
};
|
|
2239
2239
|
|
|
2240
|
-
module.exports.
|
|
2241
|
-
const ret =
|
|
2240
|
+
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2241
|
+
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2242
2242
|
return addHeapObject(ret);
|
|
2243
2243
|
};
|
|
2244
2244
|
|
|
@@ -2247,31 +2247,15 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
|
2247
2247
|
return addHeapObject(ret);
|
|
2248
2248
|
};
|
|
2249
2249
|
|
|
2250
|
-
module.exports.
|
|
2251
|
-
const val = getObject(arg0);
|
|
2252
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2253
|
-
return ret;
|
|
2254
|
-
};
|
|
2255
|
-
|
|
2256
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2257
|
-
const ret = getObject(arg0) === undefined;
|
|
2258
|
-
return ret;
|
|
2259
|
-
};
|
|
2260
|
-
|
|
2261
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2262
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2263
|
-
return ret;
|
|
2264
|
-
};
|
|
2265
|
-
|
|
2266
|
-
module.exports.__wbg_sendmessage_0b1a52b2c520071e = function(arg0, arg1) {
|
|
2250
|
+
module.exports.__wbg_sendmessage_2fb4eb5e1fb5ce92 = function(arg0, arg1) {
|
|
2267
2251
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2268
2252
|
};
|
|
2269
2253
|
|
|
2270
|
-
module.exports.
|
|
2254
|
+
module.exports.__wbg_sendmessagetoall_82fb1731c191408b = function(arg0, arg1) {
|
|
2271
2255
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2272
2256
|
};
|
|
2273
2257
|
|
|
2274
|
-
module.exports.
|
|
2258
|
+
module.exports.__wbg_connecttopeer_ad1082a2016dbb15 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2275
2259
|
let deferred0_0;
|
|
2276
2260
|
let deferred0_1;
|
|
2277
2261
|
try {
|
|
@@ -2284,12 +2268,12 @@ module.exports.__wbg_connecttopeer_f4305c605f1dc764 = function() { return handle
|
|
|
2284
2268
|
}
|
|
2285
2269
|
}, arguments) };
|
|
2286
2270
|
|
|
2287
|
-
module.exports.
|
|
2271
|
+
module.exports.__wbg_disconnectfrompeer_789575120f5b2a77 = function() { return handleError(function (arg0) {
|
|
2288
2272
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2289
2273
|
return addHeapObject(ret);
|
|
2290
2274
|
}, arguments) };
|
|
2291
2275
|
|
|
2292
|
-
module.exports.
|
|
2276
|
+
module.exports.__wbg_fetchblockfrompeer_074e2f4b8da268fc = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2293
2277
|
let deferred0_0;
|
|
2294
2278
|
let deferred0_1;
|
|
2295
2279
|
try {
|
|
@@ -2302,7 +2286,7 @@ module.exports.__wbg_fetchblockfrompeer_86f6a39b690bea3e = function() { return h
|
|
|
2302
2286
|
}
|
|
2303
2287
|
}, arguments) };
|
|
2304
2288
|
|
|
2305
|
-
module.exports.
|
|
2289
|
+
module.exports.__wbg_writevalue_ac4432c03bbafa5b = function(arg0, arg1, arg2) {
|
|
2306
2290
|
let deferred0_0;
|
|
2307
2291
|
let deferred0_1;
|
|
2308
2292
|
try {
|
|
@@ -2314,7 +2298,7 @@ module.exports.__wbg_writevalue_0a1c55d620d8482b = function(arg0, arg1, arg2) {
|
|
|
2314
2298
|
}
|
|
2315
2299
|
};
|
|
2316
2300
|
|
|
2317
|
-
module.exports.
|
|
2301
|
+
module.exports.__wbg_appendvalue_d5035e0293073822 = function(arg0, arg1, arg2) {
|
|
2318
2302
|
let deferred0_0;
|
|
2319
2303
|
let deferred0_1;
|
|
2320
2304
|
try {
|
|
@@ -2326,7 +2310,7 @@ module.exports.__wbg_appendvalue_955e2680e0158308 = function(arg0, arg1, arg2) {
|
|
|
2326
2310
|
}
|
|
2327
2311
|
};
|
|
2328
2312
|
|
|
2329
|
-
module.exports.
|
|
2313
|
+
module.exports.__wbg_flushdata_43cc88ecc9a7bacf = function(arg0, arg1) {
|
|
2330
2314
|
let deferred0_0;
|
|
2331
2315
|
let deferred0_1;
|
|
2332
2316
|
try {
|
|
@@ -2338,7 +2322,7 @@ module.exports.__wbg_flushdata_1ff65703868693dc = function(arg0, arg1) {
|
|
|
2338
2322
|
}
|
|
2339
2323
|
};
|
|
2340
2324
|
|
|
2341
|
-
module.exports.
|
|
2325
|
+
module.exports.__wbg_readvalue_270bd3c527b3b626 = function() { return handleError(function (arg0, arg1) {
|
|
2342
2326
|
let deferred0_0;
|
|
2343
2327
|
let deferred0_1;
|
|
2344
2328
|
try {
|
|
@@ -2351,12 +2335,12 @@ module.exports.__wbg_readvalue_6326726e74830b6a = function() { return handleErro
|
|
|
2351
2335
|
}
|
|
2352
2336
|
}, arguments) };
|
|
2353
2337
|
|
|
2354
|
-
module.exports.
|
|
2338
|
+
module.exports.__wbg_loadblockfilelist_6ee80bb6826e2837 = function() { return handleError(function () {
|
|
2355
2339
|
const ret = MsgHandler.load_block_file_list();
|
|
2356
2340
|
return addHeapObject(ret);
|
|
2357
2341
|
}, arguments) };
|
|
2358
2342
|
|
|
2359
|
-
module.exports.
|
|
2343
|
+
module.exports.__wbg_isexistingfile_7479195f7f35072b = function() { return handleError(function (arg0, arg1) {
|
|
2360
2344
|
let deferred0_0;
|
|
2361
2345
|
let deferred0_1;
|
|
2362
2346
|
try {
|
|
@@ -2369,7 +2353,7 @@ module.exports.__wbg_isexistingfile_fba8b8a121aaeef0 = function() { return handl
|
|
|
2369
2353
|
}
|
|
2370
2354
|
}, arguments) };
|
|
2371
2355
|
|
|
2372
|
-
module.exports.
|
|
2356
|
+
module.exports.__wbg_removevalue_bba5f72736098022 = function() { return handleError(function (arg0, arg1) {
|
|
2373
2357
|
let deferred0_0;
|
|
2374
2358
|
let deferred0_1;
|
|
2375
2359
|
try {
|
|
@@ -2382,7 +2366,7 @@ module.exports.__wbg_removevalue_56600749b17e6328 = function() { return handleEr
|
|
|
2382
2366
|
}
|
|
2383
2367
|
}, arguments) };
|
|
2384
2368
|
|
|
2385
|
-
module.exports.
|
|
2369
|
+
module.exports.__wbg_ensureblockdirectoryexists_c8ab9c961a633eea = function() { return handleError(function (arg0, arg1) {
|
|
2386
2370
|
let deferred0_0;
|
|
2387
2371
|
let deferred0_1;
|
|
2388
2372
|
try {
|
|
@@ -2394,19 +2378,19 @@ module.exports.__wbg_ensureblockdirectoryexists_87a785b73a8702f3 = function() {
|
|
|
2394
2378
|
}
|
|
2395
2379
|
}, arguments) };
|
|
2396
2380
|
|
|
2397
|
-
module.exports.
|
|
2381
|
+
module.exports.__wbg_processapicall_1808c81ea2b0811b = function(arg0, arg1, arg2) {
|
|
2398
2382
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2399
2383
|
};
|
|
2400
2384
|
|
|
2401
|
-
module.exports.
|
|
2385
|
+
module.exports.__wbg_processapisuccess_d7e274eda8689aaf = function(arg0, arg1, arg2) {
|
|
2402
2386
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2403
2387
|
};
|
|
2404
2388
|
|
|
2405
|
-
module.exports.
|
|
2389
|
+
module.exports.__wbg_processapierror_e14bc8efef636c67 = function(arg0, arg1, arg2) {
|
|
2406
2390
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2407
2391
|
};
|
|
2408
2392
|
|
|
2409
|
-
module.exports.
|
|
2393
|
+
module.exports.__wbg_sendinterfaceevent_f7f7e8ea0d79e2e8 = function(arg0, arg1, arg2) {
|
|
2410
2394
|
let deferred0_0;
|
|
2411
2395
|
let deferred0_1;
|
|
2412
2396
|
try {
|
|
@@ -2418,7 +2402,7 @@ module.exports.__wbg_sendinterfaceevent_f0f27fa0a8ab4f5e = function(arg0, arg1,
|
|
|
2418
2402
|
}
|
|
2419
2403
|
};
|
|
2420
2404
|
|
|
2421
|
-
module.exports.
|
|
2405
|
+
module.exports.__wbg_sendblocksuccess_3f8552322c16f5f2 = function(arg0, arg1, arg2) {
|
|
2422
2406
|
let deferred0_0;
|
|
2423
2407
|
let deferred0_1;
|
|
2424
2408
|
try {
|
|
@@ -2430,11 +2414,11 @@ module.exports.__wbg_sendblocksuccess_78989949d7798214 = function(arg0, arg1, ar
|
|
|
2430
2414
|
}
|
|
2431
2415
|
};
|
|
2432
2416
|
|
|
2433
|
-
module.exports.
|
|
2417
|
+
module.exports.__wbg_sendwalletupdate_29571ffa109716fa = function() {
|
|
2434
2418
|
MsgHandler.send_wallet_update();
|
|
2435
2419
|
};
|
|
2436
2420
|
|
|
2437
|
-
module.exports.
|
|
2421
|
+
module.exports.__wbg_sendnewversionalert_034951d778a25ba8 = function(arg0, arg1, arg2) {
|
|
2438
2422
|
let deferred0_0;
|
|
2439
2423
|
let deferred0_1;
|
|
2440
2424
|
try {
|
|
@@ -2446,21 +2430,37 @@ module.exports.__wbg_sendnewversionalert_8441287a3f324077 = function(arg0, arg1,
|
|
|
2446
2430
|
}
|
|
2447
2431
|
};
|
|
2448
2432
|
|
|
2449
|
-
module.exports.
|
|
2433
|
+
module.exports.__wbg_savewallet_7248be77a005dd52 = function() {
|
|
2450
2434
|
MsgHandler.save_wallet();
|
|
2451
2435
|
};
|
|
2452
2436
|
|
|
2453
|
-
module.exports.
|
|
2437
|
+
module.exports.__wbg_loadwallet_5153f6b85a5cd29c = function() {
|
|
2454
2438
|
MsgHandler.load_wallet();
|
|
2455
2439
|
};
|
|
2456
2440
|
|
|
2457
|
-
module.exports.
|
|
2441
|
+
module.exports.__wbg_getmyservices_78b2eb2d7d64f049 = function() {
|
|
2458
2442
|
const ret = MsgHandler.get_my_services();
|
|
2459
2443
|
_assertClass(ret, WasmPeerServiceList);
|
|
2460
2444
|
var ptr1 = ret.__destroy_into_raw();
|
|
2461
2445
|
return ptr1;
|
|
2462
2446
|
};
|
|
2463
2447
|
|
|
2448
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2449
|
+
const val = getObject(arg0);
|
|
2450
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2451
|
+
return ret;
|
|
2452
|
+
};
|
|
2453
|
+
|
|
2454
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2455
|
+
const ret = getObject(arg0) === undefined;
|
|
2456
|
+
return ret;
|
|
2457
|
+
};
|
|
2458
|
+
|
|
2459
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2460
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2461
|
+
return ret;
|
|
2462
|
+
};
|
|
2463
|
+
|
|
2464
2464
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2465
2465
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2466
2466
|
return ret;
|
|
@@ -2479,13 +2479,13 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
2479
2479
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
2480
2480
|
};
|
|
2481
2481
|
|
|
2482
|
-
module.exports.
|
|
2483
|
-
const ret = getObject(arg0)
|
|
2482
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2483
|
+
const ret = getObject(arg0);
|
|
2484
2484
|
return addHeapObject(ret);
|
|
2485
2485
|
};
|
|
2486
2486
|
|
|
2487
|
-
module.exports.
|
|
2488
|
-
const ret = getObject(arg0);
|
|
2487
|
+
module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
2488
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
2489
2489
|
return addHeapObject(ret);
|
|
2490
2490
|
};
|
|
2491
2491
|
|
|
@@ -2499,6 +2499,10 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
2499
2499
|
return ret;
|
|
2500
2500
|
};
|
|
2501
2501
|
|
|
2502
|
+
module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2503
|
+
queueMicrotask(getObject(arg0));
|
|
2504
|
+
};
|
|
2505
|
+
|
|
2502
2506
|
module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2503
2507
|
const ret = getObject(arg0).queueMicrotask;
|
|
2504
2508
|
return addHeapObject(ret);
|
|
@@ -2509,10 +2513,6 @@ module.exports.__wbindgen_is_function = function(arg0) {
|
|
|
2509
2513
|
return ret;
|
|
2510
2514
|
};
|
|
2511
2515
|
|
|
2512
|
-
module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2513
|
-
queueMicrotask(getObject(arg0));
|
|
2514
|
-
};
|
|
2515
|
-
|
|
2516
2516
|
module.exports.__wbg_debug_7d879afce6cf56cb = function(arg0, arg1, arg2, arg3) {
|
|
2517
2517
|
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
2518
2518
|
};
|
|
@@ -2806,8 +2806,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2806
2806
|
return addHeapObject(ret);
|
|
2807
2807
|
};
|
|
2808
2808
|
|
|
2809
|
-
module.exports.
|
|
2810
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2809
|
+
module.exports.__wbindgen_closure_wrapper1209 = function(arg0, arg1, arg2) {
|
|
2810
|
+
const ret = makeMutClosure(arg0, arg1, 456, __wbg_adapter_38);
|
|
2811
2811
|
return addHeapObject(ret);
|
|
2812
2812
|
};
|
|
2813
2813
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|