saito-wasm 0.2.13 → 0.2.14
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 +2 -2
- 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 +3 -3
- /package/pkg/node/snippets/{saito-wasm-05fef3044ea533d9 → saito-wasm-4ba9f00ddd336c29}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-05fef3044ea533d9 → saito-wasm-4ba9f00ddd336c29}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "js wrappings around saito-core using wasm",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "./node_modules/.bin/jest",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"node-fetch": "^3.3.0",
|
|
44
44
|
"cross-env": "^7.0.3"
|
|
45
45
|
},
|
|
46
|
-
"type": "
|
|
46
|
+
"type": "module"
|
|
47
47
|
}
|
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-4ba9f00ddd336c29/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');
|
|
@@ -2173,17 +2173,12 @@ class WasmWalletSlip {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2175
2175
|
|
|
2176
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2177
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2178
|
-
return addHeapObject(ret);
|
|
2179
|
-
};
|
|
2180
|
-
|
|
2181
2176
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2182
2177
|
takeObject(arg0);
|
|
2183
2178
|
};
|
|
2184
2179
|
|
|
2185
|
-
module.exports.
|
|
2186
|
-
const ret =
|
|
2180
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2181
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2187
2182
|
return addHeapObject(ret);
|
|
2188
2183
|
};
|
|
2189
2184
|
|
|
@@ -2192,28 +2187,28 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2192
2187
|
return addHeapObject(ret);
|
|
2193
2188
|
};
|
|
2194
2189
|
|
|
2195
|
-
module.exports.
|
|
2196
|
-
const ret =
|
|
2190
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2191
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2197
2192
|
return addHeapObject(ret);
|
|
2198
2193
|
};
|
|
2199
2194
|
|
|
2200
|
-
module.exports.
|
|
2201
|
-
const ret =
|
|
2195
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2196
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2202
2197
|
return addHeapObject(ret);
|
|
2203
2198
|
};
|
|
2204
2199
|
|
|
2205
|
-
module.exports.
|
|
2206
|
-
const ret =
|
|
2200
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2201
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2207
2202
|
return addHeapObject(ret);
|
|
2208
2203
|
};
|
|
2209
2204
|
|
|
2210
|
-
module.exports.
|
|
2211
|
-
const ret =
|
|
2205
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2206
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2212
2207
|
return addHeapObject(ret);
|
|
2213
2208
|
};
|
|
2214
2209
|
|
|
2215
|
-
module.exports.
|
|
2216
|
-
const ret =
|
|
2210
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2211
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2217
2212
|
return addHeapObject(ret);
|
|
2218
2213
|
};
|
|
2219
2214
|
|
|
@@ -2227,6 +2222,11 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
|
2227
2222
|
return addHeapObject(ret);
|
|
2228
2223
|
};
|
|
2229
2224
|
|
|
2225
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2226
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2227
|
+
return addHeapObject(ret);
|
|
2228
|
+
};
|
|
2229
|
+
|
|
2230
2230
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2231
2231
|
const obj = getObject(arg1);
|
|
2232
2232
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -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_73000a415595c470 = function(arg0, arg1) {
|
|
2276
2276
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2277
2277
|
};
|
|
2278
2278
|
|
|
2279
|
-
module.exports.
|
|
2279
|
+
module.exports.__wbg_sendmessagetoall_74378f7024c9fd48 = 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_32bc9615a49ae309 = 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_5912b4bcd3d6e32d = function() { return handle
|
|
|
2293
2293
|
}
|
|
2294
2294
|
}, arguments) };
|
|
2295
2295
|
|
|
2296
|
-
module.exports.
|
|
2296
|
+
module.exports.__wbg_disconnectfrompeer_c3e9043642243253 = 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_79ec4e698592589c = 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_7ffa6fb61833119d = function() { return h
|
|
|
2311
2311
|
}
|
|
2312
2312
|
}, arguments) };
|
|
2313
2313
|
|
|
2314
|
-
module.exports.
|
|
2314
|
+
module.exports.__wbg_writevalue_cd04914e62c1115c = 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_ac7523e26dea760b = function(arg0, arg1, arg2) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
};
|
|
2325
2325
|
|
|
2326
|
-
module.exports.
|
|
2326
|
+
module.exports.__wbg_appendvalue_1e523c8bade519b2 = 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_4f65e96fc882929a = function(arg0, arg1, arg2) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
};
|
|
2337
2337
|
|
|
2338
|
-
module.exports.
|
|
2338
|
+
module.exports.__wbg_flushdata_7431576e72a27b0f = function(arg0, arg1) {
|
|
2339
2339
|
let deferred0_0;
|
|
2340
2340
|
let deferred0_1;
|
|
2341
2341
|
try {
|
|
@@ -2347,7 +2347,7 @@ module.exports.__wbg_flushdata_4ffa0c3519c5abf8 = function(arg0, arg1) {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
};
|
|
2349
2349
|
|
|
2350
|
-
module.exports.
|
|
2350
|
+
module.exports.__wbg_readvalue_4494624d989e5076 = 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_98f4cc42b38611c5 = function() { return handleErro
|
|
|
2360
2360
|
}
|
|
2361
2361
|
}, arguments) };
|
|
2362
2362
|
|
|
2363
|
-
module.exports.
|
|
2363
|
+
module.exports.__wbg_loadblockfilelist_d77cd64e2706491a = 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_da5d9c22779c8008 = 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_05f26740b44c72d9 = function() { return handl
|
|
|
2378
2378
|
}
|
|
2379
2379
|
}, arguments) };
|
|
2380
2380
|
|
|
2381
|
-
module.exports.
|
|
2381
|
+
module.exports.__wbg_removevalue_a734e162b9335c84 = 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_a479819831ee2cea = function() { return handleEr
|
|
|
2391
2391
|
}
|
|
2392
2392
|
}, arguments) };
|
|
2393
2393
|
|
|
2394
|
-
module.exports.
|
|
2394
|
+
module.exports.__wbg_ensureblockdirectoryexists_f477e04a2387575f = 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_be36f4bbabdb7e83 = function() {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
}, arguments) };
|
|
2405
2405
|
|
|
2406
|
-
module.exports.
|
|
2406
|
+
module.exports.__wbg_processapicall_3fcb6f765b984ed0 = 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_69b3854710c428f1 = 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_f0c938bb5f327a47 = 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_3f3aab5fd4547cd5 = 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_da5e3734cd2a960d = function(arg0, arg1,
|
|
|
2427
2427
|
}
|
|
2428
2428
|
};
|
|
2429
2429
|
|
|
2430
|
-
module.exports.
|
|
2430
|
+
module.exports.__wbg_sendblocksuccess_26f5900e9e2911ef = 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_ca329c7fa6d29614 = function(arg0, arg1, ar
|
|
|
2439
2439
|
}
|
|
2440
2440
|
};
|
|
2441
2441
|
|
|
2442
|
-
module.exports.
|
|
2442
|
+
module.exports.__wbg_sendwalletupdate_00614c76143427b5 = function() {
|
|
2443
2443
|
MsgHandler.send_wallet_update();
|
|
2444
2444
|
};
|
|
2445
2445
|
|
|
2446
|
-
module.exports.
|
|
2446
|
+
module.exports.__wbg_sendnewversionalert_f29d3cfbdefc6c5a = 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_04609634bae95a4c = function(arg0, arg1,
|
|
|
2455
2455
|
}
|
|
2456
2456
|
};
|
|
2457
2457
|
|
|
2458
|
-
module.exports.
|
|
2458
|
+
module.exports.__wbg_savewallet_41dcb6dea3808e9c = function() {
|
|
2459
2459
|
MsgHandler.save_wallet();
|
|
2460
2460
|
};
|
|
2461
2461
|
|
|
2462
|
-
module.exports.
|
|
2462
|
+
module.exports.__wbg_loadwallet_4444cca46ede14ae = function() {
|
|
2463
2463
|
MsgHandler.load_wallet();
|
|
2464
2464
|
};
|
|
2465
2465
|
|
|
2466
|
-
module.exports.
|
|
2466
|
+
module.exports.__wbg_getmyservices_d5e5058c4bdbef7f = 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.14",
|
|
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-4ba9f00ddd336c29/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -22,6 +22,15 @@ function takeObject(idx) {
|
|
|
22
22
|
return ret;
|
|
23
23
|
}
|
|
24
24
|
|
|
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
|
+
|
|
25
34
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
26
35
|
|
|
27
36
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -40,15 +49,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
40
49
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
50
|
}
|
|
42
51
|
|
|
43
|
-
function addHeapObject(obj) {
|
|
44
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
-
const idx = heap_next;
|
|
46
|
-
heap_next = heap[idx];
|
|
47
|
-
|
|
48
|
-
heap[idx] = obj;
|
|
49
|
-
return idx;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
52
|
let WASM_VECTOR_LEN = 0;
|
|
53
53
|
|
|
54
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -2191,39 +2191,35 @@ async function __wbg_load(module, imports) {
|
|
|
2191
2191
|
function __wbg_get_imports() {
|
|
2192
2192
|
const imports = {};
|
|
2193
2193
|
imports.wbg = {};
|
|
2194
|
-
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2195
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2196
|
-
return addHeapObject(ret);
|
|
2197
|
-
};
|
|
2198
2194
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2199
2195
|
takeObject(arg0);
|
|
2200
2196
|
};
|
|
2201
|
-
imports.wbg.
|
|
2202
|
-
const ret =
|
|
2197
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2198
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2203
2199
|
return addHeapObject(ret);
|
|
2204
2200
|
};
|
|
2205
2201
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2206
2202
|
const ret = BigInt.asUintN(64, arg0);
|
|
2207
2203
|
return addHeapObject(ret);
|
|
2208
2204
|
};
|
|
2209
|
-
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2210
|
-
const ret = WasmSlip.__wrap(arg0);
|
|
2211
|
-
return addHeapObject(ret);
|
|
2212
|
-
};
|
|
2213
2205
|
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2214
2206
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2215
2207
|
return addHeapObject(ret);
|
|
2216
2208
|
};
|
|
2217
|
-
imports.wbg.
|
|
2218
|
-
const ret =
|
|
2209
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2210
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2219
2211
|
return addHeapObject(ret);
|
|
2220
2212
|
};
|
|
2221
|
-
imports.wbg.
|
|
2222
|
-
const ret =
|
|
2213
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2214
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2223
2215
|
return addHeapObject(ret);
|
|
2224
2216
|
};
|
|
2225
|
-
imports.wbg.
|
|
2226
|
-
const ret =
|
|
2217
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2218
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2219
|
+
return addHeapObject(ret);
|
|
2220
|
+
};
|
|
2221
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2222
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2227
2223
|
return addHeapObject(ret);
|
|
2228
2224
|
};
|
|
2229
2225
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
@@ -2234,6 +2230,10 @@ function __wbg_get_imports() {
|
|
|
2234
2230
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2235
2231
|
return addHeapObject(ret);
|
|
2236
2232
|
};
|
|
2233
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2234
|
+
const ret = WasmWallet.__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_73000a415595c470 = function(arg0, arg1) {
|
|
2275
2275
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2276
2276
|
};
|
|
2277
|
-
imports.wbg.
|
|
2277
|
+
imports.wbg.__wbg_sendmessagetoall_74378f7024c9fd48 = function(arg0, arg1) {
|
|
2278
2278
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2279
2279
|
};
|
|
2280
|
-
imports.wbg.
|
|
2280
|
+
imports.wbg.__wbg_connecttopeer_32bc9615a49ae309 = 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_c3e9043642243253 = 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_79ec4e698592589c = 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_cd04914e62c1115c = 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_1e523c8bade519b2 = 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_7431576e72a27b0f = 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_4494624d989e5076 = 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_d77cd64e2706491a = 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_da5d9c22779c8008 = 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_a734e162b9335c84 = 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_f477e04a2387575f = 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_3fcb6f765b984ed0 = 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_69b3854710c428f1 = 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_f0c938bb5f327a47 = 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_3f3aab5fd4547cd5 = 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_26f5900e9e2911ef = 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_00614c76143427b5 = function() {
|
|
2424
2424
|
MsgHandler.send_wallet_update();
|
|
2425
2425
|
};
|
|
2426
|
-
imports.wbg.
|
|
2426
|
+
imports.wbg.__wbg_sendnewversionalert_f29d3cfbdefc6c5a = 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_41dcb6dea3808e9c = function() {
|
|
2438
2438
|
MsgHandler.save_wallet();
|
|
2439
2439
|
};
|
|
2440
|
-
imports.wbg.
|
|
2440
|
+
imports.wbg.__wbg_loadwallet_4444cca46ede14ae = function() {
|
|
2441
2441
|
MsgHandler.load_wallet();
|
|
2442
2442
|
};
|
|
2443
|
-
imports.wbg.
|
|
2443
|
+
imports.wbg.__wbg_getmyservices_d5e5058c4bdbef7f = 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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.14",
|
|
5
5
|
"files": [
|
|
6
6
|
"index_bg.wasm",
|
|
7
7
|
"index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"./snippets/*"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"cross-env": "^7.0.3",
|
|
17
|
+
"node-fetch": "^3.3.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
File without changes
|
|
File without changes
|