saito-wasm 0.2.21 → 0.2.22
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 +50 -50
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.js +49 -49
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-6c30df5c6fca95e2 → saito-wasm-2bb38e5d7d2b1afb}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-6c30df5c6fca95e2 → saito-wasm-2bb38e5d7d2b1afb}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
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-2bb38e5d7d2b1afb/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
9
9
|
heap.push(undefined, null, true, false);
|
|
10
10
|
|
|
11
|
-
function getObject(idx) { return heap[idx]; }
|
|
12
|
-
|
|
13
11
|
let heap_next = heap.length;
|
|
14
12
|
|
|
13
|
+
function addHeapObject(obj) {
|
|
14
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
15
|
+
const idx = heap_next;
|
|
16
|
+
heap_next = heap[idx];
|
|
17
|
+
|
|
18
|
+
heap[idx] = obj;
|
|
19
|
+
return idx;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function getObject(idx) { return heap[idx]; }
|
|
23
|
+
|
|
15
24
|
function dropObject(idx) {
|
|
16
25
|
if (idx < 132) return;
|
|
17
26
|
heap[idx] = heap_next;
|
|
@@ -24,15 +33,6 @@ function takeObject(idx) {
|
|
|
24
33
|
return ret;
|
|
25
34
|
}
|
|
26
35
|
|
|
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
|
-
|
|
36
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
37
|
|
|
38
38
|
cachedTextDecoder.decode();
|
|
@@ -2194,17 +2194,22 @@ class WasmWalletSlip {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2196
2196
|
|
|
2197
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2198
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2199
|
+
return addHeapObject(ret);
|
|
2200
|
+
};
|
|
2201
|
+
|
|
2197
2202
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2198
2203
|
takeObject(arg0);
|
|
2199
2204
|
};
|
|
2200
2205
|
|
|
2201
|
-
module.exports.
|
|
2202
|
-
const ret =
|
|
2206
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2207
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2203
2208
|
return addHeapObject(ret);
|
|
2204
2209
|
};
|
|
2205
2210
|
|
|
2206
|
-
module.exports.
|
|
2207
|
-
const ret =
|
|
2211
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2212
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2208
2213
|
return addHeapObject(ret);
|
|
2209
2214
|
};
|
|
2210
2215
|
|
|
@@ -2213,18 +2218,13 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2213
2218
|
return addHeapObject(ret);
|
|
2214
2219
|
};
|
|
2215
2220
|
|
|
2216
|
-
module.exports.
|
|
2217
|
-
const ret =
|
|
2218
|
-
return addHeapObject(ret);
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2222
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2221
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2222
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2223
2223
|
return addHeapObject(ret);
|
|
2224
2224
|
};
|
|
2225
2225
|
|
|
2226
|
-
module.exports.
|
|
2227
|
-
const ret =
|
|
2226
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2227
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2228
2228
|
return addHeapObject(ret);
|
|
2229
2229
|
};
|
|
2230
2230
|
|
|
@@ -2233,8 +2233,8 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2233
2233
|
return addHeapObject(ret);
|
|
2234
2234
|
};
|
|
2235
2235
|
|
|
2236
|
-
module.exports.
|
|
2237
|
-
const ret =
|
|
2236
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2237
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2238
2238
|
return addHeapObject(ret);
|
|
2239
2239
|
};
|
|
2240
2240
|
|
|
@@ -2267,15 +2267,15 @@ module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
|
2267
2267
|
return addHeapObject(ret);
|
|
2268
2268
|
};
|
|
2269
2269
|
|
|
2270
|
-
module.exports.
|
|
2270
|
+
module.exports.__wbg_sendmessage_c78ba1b501e88dbf = function(arg0, arg1) {
|
|
2271
2271
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2272
2272
|
};
|
|
2273
2273
|
|
|
2274
|
-
module.exports.
|
|
2274
|
+
module.exports.__wbg_sendmessagetoall_30e103d00801713c = function(arg0, arg1) {
|
|
2275
2275
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2276
2276
|
};
|
|
2277
2277
|
|
|
2278
|
-
module.exports.
|
|
2278
|
+
module.exports.__wbg_connecttopeer_ee2343d652e47745 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2279
2279
|
let deferred0_0;
|
|
2280
2280
|
let deferred0_1;
|
|
2281
2281
|
try {
|
|
@@ -2288,12 +2288,12 @@ module.exports.__wbg_connecttopeer_45610955929f377a = function() { return handle
|
|
|
2288
2288
|
}
|
|
2289
2289
|
}, arguments) };
|
|
2290
2290
|
|
|
2291
|
-
module.exports.
|
|
2291
|
+
module.exports.__wbg_disconnectfrompeer_b8925de8316741a3 = function() { return handleError(function (arg0) {
|
|
2292
2292
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2293
2293
|
return addHeapObject(ret);
|
|
2294
2294
|
}, arguments) };
|
|
2295
2295
|
|
|
2296
|
-
module.exports.
|
|
2296
|
+
module.exports.__wbg_fetchblockfrompeer_90cf730f2fbfa1e9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2297
2297
|
let deferred0_0;
|
|
2298
2298
|
let deferred0_1;
|
|
2299
2299
|
try {
|
|
@@ -2306,7 +2306,7 @@ module.exports.__wbg_fetchblockfrompeer_0c0b0fbaa64cffdf = function() { return h
|
|
|
2306
2306
|
}
|
|
2307
2307
|
}, arguments) };
|
|
2308
2308
|
|
|
2309
|
-
module.exports.
|
|
2309
|
+
module.exports.__wbg_writevalue_e764403121717e57 = function(arg0, arg1, arg2) {
|
|
2310
2310
|
let deferred0_0;
|
|
2311
2311
|
let deferred0_1;
|
|
2312
2312
|
try {
|
|
@@ -2318,7 +2318,7 @@ module.exports.__wbg_writevalue_546338b62df836f5 = function(arg0, arg1, arg2) {
|
|
|
2318
2318
|
}
|
|
2319
2319
|
};
|
|
2320
2320
|
|
|
2321
|
-
module.exports.
|
|
2321
|
+
module.exports.__wbg_appendvalue_2ec71c92ab4cde42 = function(arg0, arg1, arg2) {
|
|
2322
2322
|
let deferred0_0;
|
|
2323
2323
|
let deferred0_1;
|
|
2324
2324
|
try {
|
|
@@ -2330,7 +2330,7 @@ module.exports.__wbg_appendvalue_06fb244806cd442d = function(arg0, arg1, arg2) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
|
-
module.exports.
|
|
2333
|
+
module.exports.__wbg_flushdata_affc4122b4e83eb2 = function(arg0, arg1) {
|
|
2334
2334
|
let deferred0_0;
|
|
2335
2335
|
let deferred0_1;
|
|
2336
2336
|
try {
|
|
@@ -2342,7 +2342,7 @@ module.exports.__wbg_flushdata_28d995fd3d5d440d = function(arg0, arg1) {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
};
|
|
2344
2344
|
|
|
2345
|
-
module.exports.
|
|
2345
|
+
module.exports.__wbg_readvalue_a6f4c309f277ad2f = function() { return handleError(function (arg0, arg1) {
|
|
2346
2346
|
let deferred0_0;
|
|
2347
2347
|
let deferred0_1;
|
|
2348
2348
|
try {
|
|
@@ -2355,12 +2355,12 @@ module.exports.__wbg_readvalue_ab8515ce7248bacd = function() { return handleErro
|
|
|
2355
2355
|
}
|
|
2356
2356
|
}, arguments) };
|
|
2357
2357
|
|
|
2358
|
-
module.exports.
|
|
2358
|
+
module.exports.__wbg_loadblockfilelist_6709d1f0ba1b60df = function() { return handleError(function () {
|
|
2359
2359
|
const ret = MsgHandler.load_block_file_list();
|
|
2360
2360
|
return addHeapObject(ret);
|
|
2361
2361
|
}, arguments) };
|
|
2362
2362
|
|
|
2363
|
-
module.exports.
|
|
2363
|
+
module.exports.__wbg_isexistingfile_46fc4a07b96b6463 = function() { return handleError(function (arg0, arg1) {
|
|
2364
2364
|
let deferred0_0;
|
|
2365
2365
|
let deferred0_1;
|
|
2366
2366
|
try {
|
|
@@ -2373,7 +2373,7 @@ module.exports.__wbg_isexistingfile_8337592a93c99961 = function() { return handl
|
|
|
2373
2373
|
}
|
|
2374
2374
|
}, arguments) };
|
|
2375
2375
|
|
|
2376
|
-
module.exports.
|
|
2376
|
+
module.exports.__wbg_removevalue_3dfbae25ceecc0a2 = function() { return handleError(function (arg0, arg1) {
|
|
2377
2377
|
let deferred0_0;
|
|
2378
2378
|
let deferred0_1;
|
|
2379
2379
|
try {
|
|
@@ -2386,7 +2386,7 @@ module.exports.__wbg_removevalue_b7b91c753f09e789 = function() { return handleEr
|
|
|
2386
2386
|
}
|
|
2387
2387
|
}, arguments) };
|
|
2388
2388
|
|
|
2389
|
-
module.exports.
|
|
2389
|
+
module.exports.__wbg_ensureblockdirectoryexists_2d6c946a01ff3d38 = function() { return handleError(function (arg0, arg1) {
|
|
2390
2390
|
let deferred0_0;
|
|
2391
2391
|
let deferred0_1;
|
|
2392
2392
|
try {
|
|
@@ -2398,19 +2398,19 @@ module.exports.__wbg_ensureblockdirectoryexists_b08fa92fa4f99221 = function() {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
}, arguments) };
|
|
2400
2400
|
|
|
2401
|
-
module.exports.
|
|
2401
|
+
module.exports.__wbg_processapicall_cfc8b6cbac50cdfa = function(arg0, arg1, arg2) {
|
|
2402
2402
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2403
2403
|
};
|
|
2404
2404
|
|
|
2405
|
-
module.exports.
|
|
2405
|
+
module.exports.__wbg_processapisuccess_1ad77d15ea29640a = function(arg0, arg1, arg2) {
|
|
2406
2406
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2407
2407
|
};
|
|
2408
2408
|
|
|
2409
|
-
module.exports.
|
|
2409
|
+
module.exports.__wbg_processapierror_c772c144df902ab7 = function(arg0, arg1, arg2) {
|
|
2410
2410
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2411
2411
|
};
|
|
2412
2412
|
|
|
2413
|
-
module.exports.
|
|
2413
|
+
module.exports.__wbg_sendinterfaceevent_5922d443a55dc160 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2414
2414
|
let deferred0_0;
|
|
2415
2415
|
let deferred0_1;
|
|
2416
2416
|
let deferred1_0;
|
|
@@ -2427,7 +2427,7 @@ module.exports.__wbg_sendinterfaceevent_448f7c08de32ac12 = function(arg0, arg1,
|
|
|
2427
2427
|
}
|
|
2428
2428
|
};
|
|
2429
2429
|
|
|
2430
|
-
module.exports.
|
|
2430
|
+
module.exports.__wbg_sendblocksuccess_1a9959958f753982 = function(arg0, arg1, arg2) {
|
|
2431
2431
|
let deferred0_0;
|
|
2432
2432
|
let deferred0_1;
|
|
2433
2433
|
try {
|
|
@@ -2439,11 +2439,11 @@ module.exports.__wbg_sendblocksuccess_7ab1dd5709fb5bdb = function(arg0, arg1, ar
|
|
|
2439
2439
|
}
|
|
2440
2440
|
};
|
|
2441
2441
|
|
|
2442
|
-
module.exports.
|
|
2442
|
+
module.exports.__wbg_sendwalletupdate_9efaf4f7af7f7154 = function() {
|
|
2443
2443
|
MsgHandler.send_wallet_update();
|
|
2444
2444
|
};
|
|
2445
2445
|
|
|
2446
|
-
module.exports.
|
|
2446
|
+
module.exports.__wbg_sendnewversionalert_217f9185253da20c = function(arg0, arg1, arg2) {
|
|
2447
2447
|
let deferred0_0;
|
|
2448
2448
|
let deferred0_1;
|
|
2449
2449
|
try {
|
|
@@ -2455,15 +2455,15 @@ module.exports.__wbg_sendnewversionalert_cbca5bb87627c90d = function(arg0, arg1,
|
|
|
2455
2455
|
}
|
|
2456
2456
|
};
|
|
2457
2457
|
|
|
2458
|
-
module.exports.
|
|
2458
|
+
module.exports.__wbg_savewallet_cccd01f5dd4ff48a = function() {
|
|
2459
2459
|
MsgHandler.save_wallet();
|
|
2460
2460
|
};
|
|
2461
2461
|
|
|
2462
|
-
module.exports.
|
|
2462
|
+
module.exports.__wbg_loadwallet_4ea4d1b640db8ffd = function() {
|
|
2463
2463
|
MsgHandler.load_wallet();
|
|
2464
2464
|
};
|
|
2465
2465
|
|
|
2466
|
-
module.exports.
|
|
2466
|
+
module.exports.__wbg_getmyservices_c931b14679b2dc4b = function() {
|
|
2467
2467
|
const ret = MsgHandler.get_my_services();
|
|
2468
2468
|
_assertClass(ret, WasmPeerServiceList);
|
|
2469
2469
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"files": [
|
|
5
5
|
"index_bg.wasm",
|
|
6
6
|
"index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"main": "index.js",
|
|
10
10
|
"types": "index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"cross-env": "^7.0.3",
|
|
13
|
+
"node-fetch": "^3.3.0"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-2bb38e5d7d2b1afb/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -6,10 +6,19 @@ const heap = new Array(128).fill(undefined);
|
|
|
6
6
|
|
|
7
7
|
heap.push(undefined, null, true, false);
|
|
8
8
|
|
|
9
|
-
function getObject(idx) { return heap[idx]; }
|
|
10
|
-
|
|
11
9
|
let heap_next = heap.length;
|
|
12
10
|
|
|
11
|
+
function addHeapObject(obj) {
|
|
12
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
13
|
+
const idx = heap_next;
|
|
14
|
+
heap_next = heap[idx];
|
|
15
|
+
|
|
16
|
+
heap[idx] = obj;
|
|
17
|
+
return idx;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function getObject(idx) { return heap[idx]; }
|
|
21
|
+
|
|
13
22
|
function dropObject(idx) {
|
|
14
23
|
if (idx < 132) return;
|
|
15
24
|
heap[idx] = heap_next;
|
|
@@ -22,15 +31,6 @@ function takeObject(idx) {
|
|
|
22
31
|
return ret;
|
|
23
32
|
}
|
|
24
33
|
|
|
25
|
-
function addHeapObject(obj) {
|
|
26
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
27
|
-
const idx = heap_next;
|
|
28
|
-
heap_next = heap[idx];
|
|
29
|
-
|
|
30
|
-
heap[idx] = obj;
|
|
31
|
-
return idx;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
34
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
35
35
|
|
|
36
36
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -2212,20 +2212,12 @@ async function __wbg_load(module, imports) {
|
|
|
2212
2212
|
function __wbg_get_imports() {
|
|
2213
2213
|
const imports = {};
|
|
2214
2214
|
imports.wbg = {};
|
|
2215
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2216
|
-
takeObject(arg0);
|
|
2217
|
-
};
|
|
2218
2215
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2219
2216
|
const ret = BigInt.asUintN(64, arg0);
|
|
2220
2217
|
return addHeapObject(ret);
|
|
2221
2218
|
};
|
|
2222
|
-
imports.wbg.
|
|
2223
|
-
|
|
2224
|
-
return addHeapObject(ret);
|
|
2225
|
-
};
|
|
2226
|
-
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2227
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2228
|
-
return addHeapObject(ret);
|
|
2219
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2220
|
+
takeObject(arg0);
|
|
2229
2221
|
};
|
|
2230
2222
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2231
2223
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -2235,18 +2227,26 @@ function __wbg_get_imports() {
|
|
|
2235
2227
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2236
2228
|
return addHeapObject(ret);
|
|
2237
2229
|
};
|
|
2238
|
-
imports.wbg.
|
|
2239
|
-
const ret =
|
|
2230
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2231
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2240
2232
|
return addHeapObject(ret);
|
|
2241
2233
|
};
|
|
2242
|
-
imports.wbg.
|
|
2243
|
-
const ret =
|
|
2234
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2235
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2244
2236
|
return addHeapObject(ret);
|
|
2245
2237
|
};
|
|
2246
2238
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2247
2239
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2248
2240
|
return addHeapObject(ret);
|
|
2249
2241
|
};
|
|
2242
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2243
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2244
|
+
return addHeapObject(ret);
|
|
2245
|
+
};
|
|
2246
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2247
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2248
|
+
return addHeapObject(ret);
|
|
2249
|
+
};
|
|
2250
2250
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2251
2251
|
const ret = WasmBlock.__wrap(arg0);
|
|
2252
2252
|
return addHeapObject(ret);
|
|
@@ -2271,13 +2271,13 @@ function __wbg_get_imports() {
|
|
|
2271
2271
|
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2272
2272
|
return addHeapObject(ret);
|
|
2273
2273
|
};
|
|
2274
|
-
imports.wbg.
|
|
2274
|
+
imports.wbg.__wbg_sendmessage_c78ba1b501e88dbf = function(arg0, arg1) {
|
|
2275
2275
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2276
2276
|
};
|
|
2277
|
-
imports.wbg.
|
|
2277
|
+
imports.wbg.__wbg_sendmessagetoall_30e103d00801713c = function(arg0, arg1) {
|
|
2278
2278
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2279
2279
|
};
|
|
2280
|
-
imports.wbg.
|
|
2280
|
+
imports.wbg.__wbg_connecttopeer_ee2343d652e47745 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2281
2281
|
let deferred0_0;
|
|
2282
2282
|
let deferred0_1;
|
|
2283
2283
|
try {
|
|
@@ -2289,11 +2289,11 @@ function __wbg_get_imports() {
|
|
|
2289
2289
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2290
2290
|
}
|
|
2291
2291
|
}, arguments) };
|
|
2292
|
-
imports.wbg.
|
|
2292
|
+
imports.wbg.__wbg_disconnectfrompeer_b8925de8316741a3 = function() { return handleError(function (arg0) {
|
|
2293
2293
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2294
2294
|
return addHeapObject(ret);
|
|
2295
2295
|
}, arguments) };
|
|
2296
|
-
imports.wbg.
|
|
2296
|
+
imports.wbg.__wbg_fetchblockfrompeer_90cf730f2fbfa1e9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2297
2297
|
let deferred0_0;
|
|
2298
2298
|
let deferred0_1;
|
|
2299
2299
|
try {
|
|
@@ -2305,7 +2305,7 @@ function __wbg_get_imports() {
|
|
|
2305
2305
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2306
2306
|
}
|
|
2307
2307
|
}, arguments) };
|
|
2308
|
-
imports.wbg.
|
|
2308
|
+
imports.wbg.__wbg_writevalue_e764403121717e57 = function(arg0, arg1, arg2) {
|
|
2309
2309
|
let deferred0_0;
|
|
2310
2310
|
let deferred0_1;
|
|
2311
2311
|
try {
|
|
@@ -2316,7 +2316,7 @@ function __wbg_get_imports() {
|
|
|
2316
2316
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2317
2317
|
}
|
|
2318
2318
|
};
|
|
2319
|
-
imports.wbg.
|
|
2319
|
+
imports.wbg.__wbg_appendvalue_2ec71c92ab4cde42 = function(arg0, arg1, arg2) {
|
|
2320
2320
|
let deferred0_0;
|
|
2321
2321
|
let deferred0_1;
|
|
2322
2322
|
try {
|
|
@@ -2327,7 +2327,7 @@ function __wbg_get_imports() {
|
|
|
2327
2327
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2328
2328
|
}
|
|
2329
2329
|
};
|
|
2330
|
-
imports.wbg.
|
|
2330
|
+
imports.wbg.__wbg_flushdata_affc4122b4e83eb2 = function(arg0, arg1) {
|
|
2331
2331
|
let deferred0_0;
|
|
2332
2332
|
let deferred0_1;
|
|
2333
2333
|
try {
|
|
@@ -2338,7 +2338,7 @@ function __wbg_get_imports() {
|
|
|
2338
2338
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2339
2339
|
}
|
|
2340
2340
|
};
|
|
2341
|
-
imports.wbg.
|
|
2341
|
+
imports.wbg.__wbg_readvalue_a6f4c309f277ad2f = function() { return handleError(function (arg0, arg1) {
|
|
2342
2342
|
let deferred0_0;
|
|
2343
2343
|
let deferred0_1;
|
|
2344
2344
|
try {
|
|
@@ -2350,11 +2350,11 @@ function __wbg_get_imports() {
|
|
|
2350
2350
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2351
2351
|
}
|
|
2352
2352
|
}, arguments) };
|
|
2353
|
-
imports.wbg.
|
|
2353
|
+
imports.wbg.__wbg_loadblockfilelist_6709d1f0ba1b60df = function() { return handleError(function () {
|
|
2354
2354
|
const ret = MsgHandler.load_block_file_list();
|
|
2355
2355
|
return addHeapObject(ret);
|
|
2356
2356
|
}, arguments) };
|
|
2357
|
-
imports.wbg.
|
|
2357
|
+
imports.wbg.__wbg_isexistingfile_46fc4a07b96b6463 = function() { return handleError(function (arg0, arg1) {
|
|
2358
2358
|
let deferred0_0;
|
|
2359
2359
|
let deferred0_1;
|
|
2360
2360
|
try {
|
|
@@ -2366,7 +2366,7 @@ function __wbg_get_imports() {
|
|
|
2366
2366
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2367
2367
|
}
|
|
2368
2368
|
}, arguments) };
|
|
2369
|
-
imports.wbg.
|
|
2369
|
+
imports.wbg.__wbg_removevalue_3dfbae25ceecc0a2 = function() { return handleError(function (arg0, arg1) {
|
|
2370
2370
|
let deferred0_0;
|
|
2371
2371
|
let deferred0_1;
|
|
2372
2372
|
try {
|
|
@@ -2378,7 +2378,7 @@ function __wbg_get_imports() {
|
|
|
2378
2378
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2379
2379
|
}
|
|
2380
2380
|
}, arguments) };
|
|
2381
|
-
imports.wbg.
|
|
2381
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_2d6c946a01ff3d38 = function() { return handleError(function (arg0, arg1) {
|
|
2382
2382
|
let deferred0_0;
|
|
2383
2383
|
let deferred0_1;
|
|
2384
2384
|
try {
|
|
@@ -2389,16 +2389,16 @@ function __wbg_get_imports() {
|
|
|
2389
2389
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2390
2390
|
}
|
|
2391
2391
|
}, arguments) };
|
|
2392
|
-
imports.wbg.
|
|
2392
|
+
imports.wbg.__wbg_processapicall_cfc8b6cbac50cdfa = function(arg0, arg1, arg2) {
|
|
2393
2393
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2394
2394
|
};
|
|
2395
|
-
imports.wbg.
|
|
2395
|
+
imports.wbg.__wbg_processapisuccess_1ad77d15ea29640a = function(arg0, arg1, arg2) {
|
|
2396
2396
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2397
2397
|
};
|
|
2398
|
-
imports.wbg.
|
|
2398
|
+
imports.wbg.__wbg_processapierror_c772c144df902ab7 = function(arg0, arg1, arg2) {
|
|
2399
2399
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2400
2400
|
};
|
|
2401
|
-
imports.wbg.
|
|
2401
|
+
imports.wbg.__wbg_sendinterfaceevent_5922d443a55dc160 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2402
2402
|
let deferred0_0;
|
|
2403
2403
|
let deferred0_1;
|
|
2404
2404
|
let deferred1_0;
|
|
@@ -2414,7 +2414,7 @@ function __wbg_get_imports() {
|
|
|
2414
2414
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2415
2415
|
}
|
|
2416
2416
|
};
|
|
2417
|
-
imports.wbg.
|
|
2417
|
+
imports.wbg.__wbg_sendblocksuccess_1a9959958f753982 = function(arg0, arg1, arg2) {
|
|
2418
2418
|
let deferred0_0;
|
|
2419
2419
|
let deferred0_1;
|
|
2420
2420
|
try {
|
|
@@ -2425,10 +2425,10 @@ function __wbg_get_imports() {
|
|
|
2425
2425
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2426
2426
|
}
|
|
2427
2427
|
};
|
|
2428
|
-
imports.wbg.
|
|
2428
|
+
imports.wbg.__wbg_sendwalletupdate_9efaf4f7af7f7154 = function() {
|
|
2429
2429
|
MsgHandler.send_wallet_update();
|
|
2430
2430
|
};
|
|
2431
|
-
imports.wbg.
|
|
2431
|
+
imports.wbg.__wbg_sendnewversionalert_217f9185253da20c = function(arg0, arg1, arg2) {
|
|
2432
2432
|
let deferred0_0;
|
|
2433
2433
|
let deferred0_1;
|
|
2434
2434
|
try {
|
|
@@ -2439,13 +2439,13 @@ function __wbg_get_imports() {
|
|
|
2439
2439
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2440
2440
|
}
|
|
2441
2441
|
};
|
|
2442
|
-
imports.wbg.
|
|
2442
|
+
imports.wbg.__wbg_savewallet_cccd01f5dd4ff48a = function() {
|
|
2443
2443
|
MsgHandler.save_wallet();
|
|
2444
2444
|
};
|
|
2445
|
-
imports.wbg.
|
|
2445
|
+
imports.wbg.__wbg_loadwallet_4ea4d1b640db8ffd = function() {
|
|
2446
2446
|
MsgHandler.load_wallet();
|
|
2447
2447
|
};
|
|
2448
|
-
imports.wbg.
|
|
2448
|
+
imports.wbg.__wbg_getmyservices_c931b14679b2dc4b = function() {
|
|
2449
2449
|
const ret = MsgHandler.get_my_services();
|
|
2450
2450
|
_assertClass(ret, WasmPeerServiceList);
|
|
2451
2451
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/web/package.json
CHANGED
|
File without changes
|
|
File without changes
|