saito-wasm 0.2.8 → 0.2.10
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 +55 -55
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.js +53 -53
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +3 -2
- /package/pkg/node/snippets/{saito-wasm-c1e3c28a4083d654 → saito-wasm-57ba4711fa26e4b3}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-c1e3c28a4083d654 → saito-wasm-57ba4711fa26e4b3}/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-57ba4711fa26e4b3/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();
|
|
@@ -2173,17 +2173,27 @@ class WasmWalletSlip {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2175
2175
|
|
|
2176
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2177
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2178
|
+
return addHeapObject(ret);
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2176
2181
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2177
2182
|
takeObject(arg0);
|
|
2178
2183
|
};
|
|
2179
2184
|
|
|
2180
|
-
module.exports.
|
|
2181
|
-
const ret =
|
|
2185
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2186
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2182
2187
|
return addHeapObject(ret);
|
|
2183
2188
|
};
|
|
2184
2189
|
|
|
2185
|
-
module.exports.
|
|
2186
|
-
const ret =
|
|
2190
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2191
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2192
|
+
return addHeapObject(ret);
|
|
2193
|
+
};
|
|
2194
|
+
|
|
2195
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2196
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2187
2197
|
return addHeapObject(ret);
|
|
2188
2198
|
};
|
|
2189
2199
|
|
|
@@ -2197,18 +2207,8 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
2197
2207
|
return addHeapObject(ret);
|
|
2198
2208
|
};
|
|
2199
2209
|
|
|
2200
|
-
module.exports.
|
|
2201
|
-
const ret =
|
|
2202
|
-
return addHeapObject(ret);
|
|
2203
|
-
};
|
|
2204
|
-
|
|
2205
|
-
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2206
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2207
|
-
return addHeapObject(ret);
|
|
2208
|
-
};
|
|
2209
|
-
|
|
2210
|
-
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2211
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2210
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2211
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2212
2212
|
return addHeapObject(ret);
|
|
2213
2213
|
};
|
|
2214
2214
|
|
|
@@ -2217,13 +2217,13 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2217
2217
|
return addHeapObject(ret);
|
|
2218
2218
|
};
|
|
2219
2219
|
|
|
2220
|
-
module.exports.
|
|
2221
|
-
const ret =
|
|
2220
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2221
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2222
2222
|
return addHeapObject(ret);
|
|
2223
2223
|
};
|
|
2224
2224
|
|
|
2225
|
-
module.exports.
|
|
2226
|
-
const ret =
|
|
2225
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2226
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2227
2227
|
return addHeapObject(ret);
|
|
2228
2228
|
};
|
|
2229
2229
|
|
|
@@ -2272,15 +2272,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2272
2272
|
return ret;
|
|
2273
2273
|
};
|
|
2274
2274
|
|
|
2275
|
-
module.exports.
|
|
2275
|
+
module.exports.__wbg_sendmessage_517581427a9f2aa2 = function(arg0, arg1) {
|
|
2276
2276
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2277
2277
|
};
|
|
2278
2278
|
|
|
2279
|
-
module.exports.
|
|
2279
|
+
module.exports.__wbg_sendmessagetoall_202e4a801185bb97 = function(arg0, arg1) {
|
|
2280
2280
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2281
2281
|
};
|
|
2282
2282
|
|
|
2283
|
-
module.exports.
|
|
2283
|
+
module.exports.__wbg_connecttopeer_d3272624195f1360 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2284
2284
|
let deferred0_0;
|
|
2285
2285
|
let deferred0_1;
|
|
2286
2286
|
try {
|
|
@@ -2293,12 +2293,12 @@ module.exports.__wbg_connecttopeer_eeca26fd21ccf031 = function() { return handle
|
|
|
2293
2293
|
}
|
|
2294
2294
|
}, arguments) };
|
|
2295
2295
|
|
|
2296
|
-
module.exports.
|
|
2296
|
+
module.exports.__wbg_disconnectfrompeer_f9758a2e52fdacfd = function() { return handleError(function (arg0) {
|
|
2297
2297
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2298
2298
|
return addHeapObject(ret);
|
|
2299
2299
|
}, arguments) };
|
|
2300
2300
|
|
|
2301
|
-
module.exports.
|
|
2301
|
+
module.exports.__wbg_fetchblockfrompeer_7c8bab90dcaf8178 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2302
2302
|
let deferred0_0;
|
|
2303
2303
|
let deferred0_1;
|
|
2304
2304
|
try {
|
|
@@ -2311,7 +2311,7 @@ module.exports.__wbg_fetchblockfrompeer_3f18dddd45d38db5 = function() { return h
|
|
|
2311
2311
|
}
|
|
2312
2312
|
}, arguments) };
|
|
2313
2313
|
|
|
2314
|
-
module.exports.
|
|
2314
|
+
module.exports.__wbg_writevalue_03dc7bbd1224d299 = function(arg0, arg1, arg2) {
|
|
2315
2315
|
let deferred0_0;
|
|
2316
2316
|
let deferred0_1;
|
|
2317
2317
|
try {
|
|
@@ -2323,7 +2323,7 @@ module.exports.__wbg_writevalue_40bbfe117c14a5e5 = function(arg0, arg1, arg2) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
};
|
|
2325
2325
|
|
|
2326
|
-
module.exports.
|
|
2326
|
+
module.exports.__wbg_appendvalue_8a9a7359502991ea = function(arg0, arg1, arg2) {
|
|
2327
2327
|
let deferred0_0;
|
|
2328
2328
|
let deferred0_1;
|
|
2329
2329
|
try {
|
|
@@ -2335,7 +2335,7 @@ module.exports.__wbg_appendvalue_a43ce50944928ce8 = function(arg0, arg1, arg2) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
};
|
|
2337
2337
|
|
|
2338
|
-
module.exports.
|
|
2338
|
+
module.exports.__wbg_flushdata_1c8b98fdfdce984e = function(arg0, arg1) {
|
|
2339
2339
|
let deferred0_0;
|
|
2340
2340
|
let deferred0_1;
|
|
2341
2341
|
try {
|
|
@@ -2347,7 +2347,7 @@ module.exports.__wbg_flushdata_a7560bfbea376e83 = function(arg0, arg1) {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
};
|
|
2349
2349
|
|
|
2350
|
-
module.exports.
|
|
2350
|
+
module.exports.__wbg_readvalue_4717c7b5b17c0f78 = function() { return handleError(function (arg0, arg1) {
|
|
2351
2351
|
let deferred0_0;
|
|
2352
2352
|
let deferred0_1;
|
|
2353
2353
|
try {
|
|
@@ -2360,12 +2360,12 @@ module.exports.__wbg_readvalue_6684d5a5802b8109 = function() { return handleErro
|
|
|
2360
2360
|
}
|
|
2361
2361
|
}, arguments) };
|
|
2362
2362
|
|
|
2363
|
-
module.exports.
|
|
2363
|
+
module.exports.__wbg_loadblockfilelist_60ca311cdfd3ee89 = function() { return handleError(function () {
|
|
2364
2364
|
const ret = MsgHandler.load_block_file_list();
|
|
2365
2365
|
return addHeapObject(ret);
|
|
2366
2366
|
}, arguments) };
|
|
2367
2367
|
|
|
2368
|
-
module.exports.
|
|
2368
|
+
module.exports.__wbg_isexistingfile_b58207b773fb13f6 = function() { return handleError(function (arg0, arg1) {
|
|
2369
2369
|
let deferred0_0;
|
|
2370
2370
|
let deferred0_1;
|
|
2371
2371
|
try {
|
|
@@ -2378,7 +2378,7 @@ module.exports.__wbg_isexistingfile_080ea828bbb10fdd = function() { return handl
|
|
|
2378
2378
|
}
|
|
2379
2379
|
}, arguments) };
|
|
2380
2380
|
|
|
2381
|
-
module.exports.
|
|
2381
|
+
module.exports.__wbg_removevalue_3d300924961ee6a0 = function() { return handleError(function (arg0, arg1) {
|
|
2382
2382
|
let deferred0_0;
|
|
2383
2383
|
let deferred0_1;
|
|
2384
2384
|
try {
|
|
@@ -2391,7 +2391,7 @@ module.exports.__wbg_removevalue_f7cd2ea6ea5d02b0 = function() { return handleEr
|
|
|
2391
2391
|
}
|
|
2392
2392
|
}, arguments) };
|
|
2393
2393
|
|
|
2394
|
-
module.exports.
|
|
2394
|
+
module.exports.__wbg_ensureblockdirectoryexists_104ee5edee33df11 = function() { return handleError(function (arg0, arg1) {
|
|
2395
2395
|
let deferred0_0;
|
|
2396
2396
|
let deferred0_1;
|
|
2397
2397
|
try {
|
|
@@ -2403,19 +2403,19 @@ module.exports.__wbg_ensureblockdirectoryexists_f8ee4f97e7a0daf4 = function() {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
}, arguments) };
|
|
2405
2405
|
|
|
2406
|
-
module.exports.
|
|
2406
|
+
module.exports.__wbg_processapicall_b884d3ab49862864 = function(arg0, arg1, arg2) {
|
|
2407
2407
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2408
2408
|
};
|
|
2409
2409
|
|
|
2410
|
-
module.exports.
|
|
2410
|
+
module.exports.__wbg_processapisuccess_1f48540d3d4f6d83 = function(arg0, arg1, arg2) {
|
|
2411
2411
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2412
2412
|
};
|
|
2413
2413
|
|
|
2414
|
-
module.exports.
|
|
2414
|
+
module.exports.__wbg_processapierror_4c5ce30098ac33c8 = function(arg0, arg1, arg2) {
|
|
2415
2415
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2416
2416
|
};
|
|
2417
2417
|
|
|
2418
|
-
module.exports.
|
|
2418
|
+
module.exports.__wbg_sendinterfaceevent_8eec349bd006d7cb = function(arg0, arg1, arg2) {
|
|
2419
2419
|
let deferred0_0;
|
|
2420
2420
|
let deferred0_1;
|
|
2421
2421
|
try {
|
|
@@ -2427,7 +2427,7 @@ module.exports.__wbg_sendinterfaceevent_21c3aedfadc73439 = function(arg0, arg1,
|
|
|
2427
2427
|
}
|
|
2428
2428
|
};
|
|
2429
2429
|
|
|
2430
|
-
module.exports.
|
|
2430
|
+
module.exports.__wbg_sendblocksuccess_4811df6dabab505a = 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_d84c638f3866f3ae = function(arg0, arg1, ar
|
|
|
2439
2439
|
}
|
|
2440
2440
|
};
|
|
2441
2441
|
|
|
2442
|
-
module.exports.
|
|
2442
|
+
module.exports.__wbg_sendwalletupdate_c5d5a6dc9bf0f357 = function() {
|
|
2443
2443
|
MsgHandler.send_wallet_update();
|
|
2444
2444
|
};
|
|
2445
2445
|
|
|
2446
|
-
module.exports.
|
|
2446
|
+
module.exports.__wbg_sendnewversionalert_5f8ba91585dc5fe4 = 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_9ac0ae298a4a3777 = function(arg0, arg1,
|
|
|
2455
2455
|
}
|
|
2456
2456
|
};
|
|
2457
2457
|
|
|
2458
|
-
module.exports.
|
|
2458
|
+
module.exports.__wbg_savewallet_dc090aaa1aca0fb2 = function() {
|
|
2459
2459
|
MsgHandler.save_wallet();
|
|
2460
2460
|
};
|
|
2461
2461
|
|
|
2462
|
-
module.exports.
|
|
2462
|
+
module.exports.__wbg_loadwallet_fdd00be22c1f639b = function() {
|
|
2463
2463
|
MsgHandler.load_wallet();
|
|
2464
2464
|
};
|
|
2465
2465
|
|
|
2466
|
-
module.exports.
|
|
2466
|
+
module.exports.__wbg_getmyservices_1d6e68998e6036bb = 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.10",
|
|
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
|
+
"node-fetch": "^3.3.0",
|
|
13
|
+
"cross-env": "^7.0.3"
|
|
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-57ba4711fa26e4b3/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(); };
|
|
@@ -2191,15 +2191,23 @@ async function __wbg_load(module, imports) {
|
|
|
2191
2191
|
function __wbg_get_imports() {
|
|
2192
2192
|
const imports = {};
|
|
2193
2193
|
imports.wbg = {};
|
|
2194
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2195
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2196
|
+
return addHeapObject(ret);
|
|
2197
|
+
};
|
|
2194
2198
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2195
2199
|
takeObject(arg0);
|
|
2196
2200
|
};
|
|
2197
|
-
imports.wbg.
|
|
2198
|
-
const ret =
|
|
2201
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2202
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2199
2203
|
return addHeapObject(ret);
|
|
2200
2204
|
};
|
|
2201
|
-
imports.wbg.
|
|
2202
|
-
const ret =
|
|
2205
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2206
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2207
|
+
return addHeapObject(ret);
|
|
2208
|
+
};
|
|
2209
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2210
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2203
2211
|
return addHeapObject(ret);
|
|
2204
2212
|
};
|
|
2205
2213
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
@@ -2210,30 +2218,22 @@ function __wbg_get_imports() {
|
|
|
2210
2218
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2211
2219
|
return addHeapObject(ret);
|
|
2212
2220
|
};
|
|
2213
|
-
imports.wbg.
|
|
2214
|
-
const ret =
|
|
2215
|
-
return addHeapObject(ret);
|
|
2216
|
-
};
|
|
2217
|
-
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2218
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2219
|
-
return addHeapObject(ret);
|
|
2220
|
-
};
|
|
2221
|
-
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2222
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2221
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2222
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2223
2223
|
return addHeapObject(ret);
|
|
2224
2224
|
};
|
|
2225
2225
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2226
2226
|
const ret = WasmBlock.__wrap(arg0);
|
|
2227
2227
|
return addHeapObject(ret);
|
|
2228
2228
|
};
|
|
2229
|
-
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2230
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2231
|
-
return addHeapObject(ret);
|
|
2232
|
-
};
|
|
2233
2229
|
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2234
2230
|
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2235
2231
|
return addHeapObject(ret);
|
|
2236
2232
|
};
|
|
2233
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2234
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2235
|
+
return addHeapObject(ret);
|
|
2236
|
+
};
|
|
2237
2237
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2238
2238
|
const obj = getObject(arg1);
|
|
2239
2239
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2271,13 +2271,13 @@ function __wbg_get_imports() {
|
|
|
2271
2271
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2272
2272
|
return ret;
|
|
2273
2273
|
};
|
|
2274
|
-
imports.wbg.
|
|
2274
|
+
imports.wbg.__wbg_sendmessage_517581427a9f2aa2 = function(arg0, arg1) {
|
|
2275
2275
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2276
2276
|
};
|
|
2277
|
-
imports.wbg.
|
|
2277
|
+
imports.wbg.__wbg_sendmessagetoall_202e4a801185bb97 = function(arg0, arg1) {
|
|
2278
2278
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2279
2279
|
};
|
|
2280
|
-
imports.wbg.
|
|
2280
|
+
imports.wbg.__wbg_connecttopeer_d3272624195f1360 = 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_f9758a2e52fdacfd = 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_7c8bab90dcaf8178 = 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_03dc7bbd1224d299 = 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_8a9a7359502991ea = 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_1c8b98fdfdce984e = 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_4717c7b5b17c0f78 = 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_60ca311cdfd3ee89 = 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_b58207b773fb13f6 = 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_3d300924961ee6a0 = 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_104ee5edee33df11 = 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_b884d3ab49862864 = 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_1f48540d3d4f6d83 = 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_4c5ce30098ac33c8 = 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_8eec349bd006d7cb = function(arg0, arg1, arg2) {
|
|
2402
2402
|
let deferred0_0;
|
|
2403
2403
|
let deferred0_1;
|
|
2404
2404
|
try {
|
|
@@ -2409,7 +2409,7 @@ function __wbg_get_imports() {
|
|
|
2409
2409
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2410
2410
|
}
|
|
2411
2411
|
};
|
|
2412
|
-
imports.wbg.
|
|
2412
|
+
imports.wbg.__wbg_sendblocksuccess_4811df6dabab505a = function(arg0, arg1, arg2) {
|
|
2413
2413
|
let deferred0_0;
|
|
2414
2414
|
let deferred0_1;
|
|
2415
2415
|
try {
|
|
@@ -2420,10 +2420,10 @@ function __wbg_get_imports() {
|
|
|
2420
2420
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2421
2421
|
}
|
|
2422
2422
|
};
|
|
2423
|
-
imports.wbg.
|
|
2423
|
+
imports.wbg.__wbg_sendwalletupdate_c5d5a6dc9bf0f357 = function() {
|
|
2424
2424
|
MsgHandler.send_wallet_update();
|
|
2425
2425
|
};
|
|
2426
|
-
imports.wbg.
|
|
2426
|
+
imports.wbg.__wbg_sendnewversionalert_5f8ba91585dc5fe4 = function(arg0, arg1, arg2) {
|
|
2427
2427
|
let deferred0_0;
|
|
2428
2428
|
let deferred0_1;
|
|
2429
2429
|
try {
|
|
@@ -2434,13 +2434,13 @@ function __wbg_get_imports() {
|
|
|
2434
2434
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2435
2435
|
}
|
|
2436
2436
|
};
|
|
2437
|
-
imports.wbg.
|
|
2437
|
+
imports.wbg.__wbg_savewallet_dc090aaa1aca0fb2 = function() {
|
|
2438
2438
|
MsgHandler.save_wallet();
|
|
2439
2439
|
};
|
|
2440
|
-
imports.wbg.
|
|
2440
|
+
imports.wbg.__wbg_loadwallet_fdd00be22c1f639b = function() {
|
|
2441
2441
|
MsgHandler.load_wallet();
|
|
2442
2442
|
};
|
|
2443
|
-
imports.wbg.
|
|
2443
|
+
imports.wbg.__wbg_getmyservices_1d6e68998e6036bb = function() {
|
|
2444
2444
|
const ret = MsgHandler.get_my_services();
|
|
2445
2445
|
_assertClass(ret, WasmPeerServiceList);
|
|
2446
2446
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/web/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.2.10",
|
|
4
5
|
"files": [
|
|
5
6
|
"index_bg.wasm",
|
|
6
7
|
"index.js",
|
|
7
8
|
"index.d.ts"
|
|
8
9
|
],
|
|
9
|
-
"
|
|
10
|
+
"main": "index.js",
|
|
10
11
|
"types": "index.d.ts",
|
|
11
12
|
"sideEffects": [
|
|
12
13
|
"./snippets/*"
|
|
File without changes
|
|
File without changes
|