saito-wasm 0.2.21 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/pkg/node/index.d.ts +12 -0
- package/pkg/node/index.js +112 -88
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +88 -85
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +100 -85
- package/pkg/web/index.js +109 -85
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +88 -85
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-6c30df5c6fca95e2 → saito-wasm-890126c2574ee850}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-6c30df5c6fca95e2 → saito-wasm-890126c2574ee850}/js/msg_handler.js +0 -0
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-890126c2574ee850/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -22,15 +22,6 @@ 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
|
-
|
|
34
25
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
35
26
|
|
|
36
27
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -49,6 +40,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
49
40
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
50
41
|
}
|
|
51
42
|
|
|
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') } } );
|
|
@@ -573,6 +573,30 @@ export function write_issuance_file(threshold) {
|
|
|
573
573
|
return takeObject(ret);
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
+
/**
|
|
577
|
+
* @returns {Promise<void>}
|
|
578
|
+
*/
|
|
579
|
+
export function disable_bundling_blocks_by_timer() {
|
|
580
|
+
const ret = wasm.disable_bundling_blocks_by_timer();
|
|
581
|
+
return takeObject(ret);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* @returns {Promise<void>}
|
|
586
|
+
*/
|
|
587
|
+
export function produce_block_with_gt() {
|
|
588
|
+
const ret = wasm.produce_block_with_gt();
|
|
589
|
+
return takeObject(ret);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @returns {Promise<void>}
|
|
594
|
+
*/
|
|
595
|
+
export function produce_block_without_gt() {
|
|
596
|
+
const ret = wasm.produce_block_without_gt();
|
|
597
|
+
return takeObject(ret);
|
|
598
|
+
}
|
|
599
|
+
|
|
576
600
|
function handleError(f, args) {
|
|
577
601
|
try {
|
|
578
602
|
return f.apply(this, args);
|
|
@@ -580,7 +604,7 @@ function handleError(f, args) {
|
|
|
580
604
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
581
605
|
}
|
|
582
606
|
}
|
|
583
|
-
function
|
|
607
|
+
function __wbg_adapter_379(arg0, arg1, arg2, arg3) {
|
|
584
608
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2342d2d7ddbab521(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
585
609
|
}
|
|
586
610
|
|
|
@@ -1245,7 +1269,7 @@ export class WasmConsensusValues {
|
|
|
1245
1269
|
* @returns {number}
|
|
1246
1270
|
*/
|
|
1247
1271
|
get gt_index() {
|
|
1248
|
-
const ret = wasm.
|
|
1272
|
+
const ret = wasm.wasmconsensusvalues_gt_index(this.__wbg_ptr);
|
|
1249
1273
|
return ret >>> 0;
|
|
1250
1274
|
}
|
|
1251
1275
|
/**
|
|
@@ -1259,35 +1283,35 @@ export class WasmConsensusValues {
|
|
|
1259
1283
|
* @returns {bigint}
|
|
1260
1284
|
*/
|
|
1261
1285
|
get expected_difficulty() {
|
|
1262
|
-
const ret = wasm.
|
|
1286
|
+
const ret = wasm.wasmconsensusvalues_expected_difficulty(this.__wbg_ptr);
|
|
1263
1287
|
return BigInt.asUintN(64, ret);
|
|
1264
1288
|
}
|
|
1265
1289
|
/**
|
|
1266
1290
|
* @returns {bigint}
|
|
1267
1291
|
*/
|
|
1268
1292
|
get total_rebroadcast_slips() {
|
|
1269
|
-
const ret = wasm.
|
|
1293
|
+
const ret = wasm.wasmconsensusvalues_total_rebroadcast_slips(this.__wbg_ptr);
|
|
1270
1294
|
return BigInt.asUintN(64, ret);
|
|
1271
1295
|
}
|
|
1272
1296
|
/**
|
|
1273
1297
|
* @returns {bigint}
|
|
1274
1298
|
*/
|
|
1275
1299
|
get total_rebroadcast_nolan() {
|
|
1276
|
-
const ret = wasm.
|
|
1300
|
+
const ret = wasm.wasmconsensusvalues_total_rebroadcast_nolan(this.__wbg_ptr);
|
|
1277
1301
|
return BigInt.asUintN(64, ret);
|
|
1278
1302
|
}
|
|
1279
1303
|
/**
|
|
1280
1304
|
* @returns {bigint}
|
|
1281
1305
|
*/
|
|
1282
1306
|
get total_rebroadcast_fees_nolan() {
|
|
1283
|
-
const ret = wasm.
|
|
1307
|
+
const ret = wasm.wasmconsensusvalues_total_rebroadcast_fees_nolan(this.__wbg_ptr);
|
|
1284
1308
|
return BigInt.asUintN(64, ret);
|
|
1285
1309
|
}
|
|
1286
1310
|
/**
|
|
1287
1311
|
* @returns {bigint}
|
|
1288
1312
|
*/
|
|
1289
1313
|
get total_rebroadcast_staking_payouts_nolan() {
|
|
1290
|
-
const ret = wasm.
|
|
1314
|
+
const ret = wasm.wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(this.__wbg_ptr);
|
|
1291
1315
|
return BigInt.asUintN(64, ret);
|
|
1292
1316
|
}
|
|
1293
1317
|
/**
|
|
@@ -1854,7 +1878,7 @@ export class WasmTransaction {
|
|
|
1854
1878
|
* @returns {bigint}
|
|
1855
1879
|
*/
|
|
1856
1880
|
get timestamp() {
|
|
1857
|
-
const ret = wasm.
|
|
1881
|
+
const ret = wasm.wasmpeer_get_peer_index(this.__wbg_ptr);
|
|
1858
1882
|
return BigInt.asUintN(64, ret);
|
|
1859
1883
|
}
|
|
1860
1884
|
/**
|
|
@@ -2095,40 +2119,40 @@ export class WasmWalletSlip {
|
|
|
2095
2119
|
* @returns {bigint}
|
|
2096
2120
|
*/
|
|
2097
2121
|
get_amount() {
|
|
2098
|
-
const ret = wasm.
|
|
2122
|
+
const ret = wasm.wasmslip_amount(this.__wbg_ptr);
|
|
2099
2123
|
return BigInt.asUintN(64, ret);
|
|
2100
2124
|
}
|
|
2101
2125
|
/**
|
|
2102
2126
|
* @param {bigint} amount
|
|
2103
2127
|
*/
|
|
2104
2128
|
set_amount(amount) {
|
|
2105
|
-
wasm.
|
|
2129
|
+
wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
|
|
2106
2130
|
}
|
|
2107
2131
|
/**
|
|
2108
2132
|
* @returns {bigint}
|
|
2109
2133
|
*/
|
|
2110
2134
|
get_block_id() {
|
|
2111
|
-
const ret = wasm.
|
|
2135
|
+
const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
|
|
2112
2136
|
return BigInt.asUintN(64, ret);
|
|
2113
2137
|
}
|
|
2114
2138
|
/**
|
|
2115
2139
|
* @param {bigint} block_id
|
|
2116
2140
|
*/
|
|
2117
2141
|
set_block_id(block_id) {
|
|
2118
|
-
wasm.
|
|
2142
|
+
wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2119
2143
|
}
|
|
2120
2144
|
/**
|
|
2121
2145
|
* @returns {bigint}
|
|
2122
2146
|
*/
|
|
2123
2147
|
get_tx_ordinal() {
|
|
2124
|
-
const ret = wasm.
|
|
2148
|
+
const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
|
|
2125
2149
|
return BigInt.asUintN(64, ret);
|
|
2126
2150
|
}
|
|
2127
2151
|
/**
|
|
2128
2152
|
* @param {bigint} ordinal
|
|
2129
2153
|
*/
|
|
2130
2154
|
set_tx_ordinal(ordinal) {
|
|
2131
|
-
wasm.
|
|
2155
|
+
wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2132
2156
|
}
|
|
2133
2157
|
/**
|
|
2134
2158
|
* @returns {number}
|
|
@@ -2215,44 +2239,44 @@ function __wbg_get_imports() {
|
|
|
2215
2239
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2216
2240
|
takeObject(arg0);
|
|
2217
2241
|
};
|
|
2218
|
-
imports.wbg.
|
|
2219
|
-
const ret =
|
|
2242
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2243
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2220
2244
|
return addHeapObject(ret);
|
|
2221
2245
|
};
|
|
2222
|
-
imports.wbg.
|
|
2223
|
-
const ret =
|
|
2246
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2247
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2224
2248
|
return addHeapObject(ret);
|
|
2225
2249
|
};
|
|
2226
|
-
imports.wbg.
|
|
2227
|
-
const ret =
|
|
2250
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2251
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2228
2252
|
return addHeapObject(ret);
|
|
2229
2253
|
};
|
|
2230
|
-
imports.wbg.
|
|
2231
|
-
const ret =
|
|
2254
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2255
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2232
2256
|
return addHeapObject(ret);
|
|
2233
2257
|
};
|
|
2234
|
-
imports.wbg.
|
|
2235
|
-
const ret =
|
|
2258
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2259
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2236
2260
|
return addHeapObject(ret);
|
|
2237
2261
|
};
|
|
2238
|
-
imports.wbg.
|
|
2239
|
-
const ret =
|
|
2262
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2263
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2240
2264
|
return addHeapObject(ret);
|
|
2241
2265
|
};
|
|
2242
2266
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2243
2267
|
const ret = WasmSlip.__wrap(arg0);
|
|
2244
2268
|
return addHeapObject(ret);
|
|
2245
2269
|
};
|
|
2246
|
-
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2247
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2248
|
-
return addHeapObject(ret);
|
|
2249
|
-
};
|
|
2250
2270
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2251
2271
|
const ret = WasmBlock.__wrap(arg0);
|
|
2252
2272
|
return addHeapObject(ret);
|
|
2253
2273
|
};
|
|
2254
|
-
imports.wbg.
|
|
2255
|
-
const ret =
|
|
2274
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2275
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2276
|
+
return addHeapObject(ret);
|
|
2277
|
+
};
|
|
2278
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2279
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2256
2280
|
return addHeapObject(ret);
|
|
2257
2281
|
};
|
|
2258
2282
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -2263,21 +2287,34 @@ function __wbg_get_imports() {
|
|
|
2263
2287
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2264
2288
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2265
2289
|
};
|
|
2266
|
-
imports.wbg.
|
|
2267
|
-
const
|
|
2290
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2291
|
+
const val = getObject(arg0);
|
|
2292
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2293
|
+
return ret;
|
|
2294
|
+
};
|
|
2295
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2296
|
+
const ret = getObject(arg0) === undefined;
|
|
2297
|
+
return ret;
|
|
2298
|
+
};
|
|
2299
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2300
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2301
|
+
return ret;
|
|
2302
|
+
};
|
|
2303
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2304
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2268
2305
|
return addHeapObject(ret);
|
|
2269
2306
|
};
|
|
2270
2307
|
imports.wbg.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2271
2308
|
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2272
2309
|
return addHeapObject(ret);
|
|
2273
2310
|
};
|
|
2274
|
-
imports.wbg.
|
|
2311
|
+
imports.wbg.__wbg_sendmessage_ca792670f2903ac1 = function(arg0, arg1) {
|
|
2275
2312
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2276
2313
|
};
|
|
2277
|
-
imports.wbg.
|
|
2314
|
+
imports.wbg.__wbg_sendmessagetoall_ed6b742c967dc1bc = function(arg0, arg1) {
|
|
2278
2315
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2279
2316
|
};
|
|
2280
|
-
imports.wbg.
|
|
2317
|
+
imports.wbg.__wbg_connecttopeer_cf9fc480c96432d5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2281
2318
|
let deferred0_0;
|
|
2282
2319
|
let deferred0_1;
|
|
2283
2320
|
try {
|
|
@@ -2289,11 +2326,11 @@ function __wbg_get_imports() {
|
|
|
2289
2326
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2290
2327
|
}
|
|
2291
2328
|
}, arguments) };
|
|
2292
|
-
imports.wbg.
|
|
2329
|
+
imports.wbg.__wbg_disconnectfrompeer_236006c09a6c97c7 = function() { return handleError(function (arg0) {
|
|
2293
2330
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2294
2331
|
return addHeapObject(ret);
|
|
2295
2332
|
}, arguments) };
|
|
2296
|
-
imports.wbg.
|
|
2333
|
+
imports.wbg.__wbg_fetchblockfrompeer_beb702c2ac7a1383 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2297
2334
|
let deferred0_0;
|
|
2298
2335
|
let deferred0_1;
|
|
2299
2336
|
try {
|
|
@@ -2305,7 +2342,7 @@ function __wbg_get_imports() {
|
|
|
2305
2342
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2306
2343
|
}
|
|
2307
2344
|
}, arguments) };
|
|
2308
|
-
imports.wbg.
|
|
2345
|
+
imports.wbg.__wbg_writevalue_858b3a3794fbabf4 = function(arg0, arg1, arg2) {
|
|
2309
2346
|
let deferred0_0;
|
|
2310
2347
|
let deferred0_1;
|
|
2311
2348
|
try {
|
|
@@ -2316,7 +2353,7 @@ function __wbg_get_imports() {
|
|
|
2316
2353
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2317
2354
|
}
|
|
2318
2355
|
};
|
|
2319
|
-
imports.wbg.
|
|
2356
|
+
imports.wbg.__wbg_appendvalue_3fa3914c63d94620 = function(arg0, arg1, arg2) {
|
|
2320
2357
|
let deferred0_0;
|
|
2321
2358
|
let deferred0_1;
|
|
2322
2359
|
try {
|
|
@@ -2327,7 +2364,7 @@ function __wbg_get_imports() {
|
|
|
2327
2364
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2328
2365
|
}
|
|
2329
2366
|
};
|
|
2330
|
-
imports.wbg.
|
|
2367
|
+
imports.wbg.__wbg_flushdata_001481339ab3b1e8 = function(arg0, arg1) {
|
|
2331
2368
|
let deferred0_0;
|
|
2332
2369
|
let deferred0_1;
|
|
2333
2370
|
try {
|
|
@@ -2338,7 +2375,7 @@ function __wbg_get_imports() {
|
|
|
2338
2375
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2339
2376
|
}
|
|
2340
2377
|
};
|
|
2341
|
-
imports.wbg.
|
|
2378
|
+
imports.wbg.__wbg_readvalue_961833ec33afdae1 = function() { return handleError(function (arg0, arg1) {
|
|
2342
2379
|
let deferred0_0;
|
|
2343
2380
|
let deferred0_1;
|
|
2344
2381
|
try {
|
|
@@ -2350,11 +2387,11 @@ function __wbg_get_imports() {
|
|
|
2350
2387
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2351
2388
|
}
|
|
2352
2389
|
}, arguments) };
|
|
2353
|
-
imports.wbg.
|
|
2390
|
+
imports.wbg.__wbg_loadblockfilelist_e4e418c8dcc4d1a3 = function() { return handleError(function () {
|
|
2354
2391
|
const ret = MsgHandler.load_block_file_list();
|
|
2355
2392
|
return addHeapObject(ret);
|
|
2356
2393
|
}, arguments) };
|
|
2357
|
-
imports.wbg.
|
|
2394
|
+
imports.wbg.__wbg_isexistingfile_1195edd3c769e6cd = function() { return handleError(function (arg0, arg1) {
|
|
2358
2395
|
let deferred0_0;
|
|
2359
2396
|
let deferred0_1;
|
|
2360
2397
|
try {
|
|
@@ -2366,7 +2403,7 @@ function __wbg_get_imports() {
|
|
|
2366
2403
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2367
2404
|
}
|
|
2368
2405
|
}, arguments) };
|
|
2369
|
-
imports.wbg.
|
|
2406
|
+
imports.wbg.__wbg_removevalue_cbfa7044bf726cbf = function() { return handleError(function (arg0, arg1) {
|
|
2370
2407
|
let deferred0_0;
|
|
2371
2408
|
let deferred0_1;
|
|
2372
2409
|
try {
|
|
@@ -2378,7 +2415,7 @@ function __wbg_get_imports() {
|
|
|
2378
2415
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2379
2416
|
}
|
|
2380
2417
|
}, arguments) };
|
|
2381
|
-
imports.wbg.
|
|
2418
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_9ab23c529877f183 = function() { return handleError(function (arg0, arg1) {
|
|
2382
2419
|
let deferred0_0;
|
|
2383
2420
|
let deferred0_1;
|
|
2384
2421
|
try {
|
|
@@ -2389,16 +2426,16 @@ function __wbg_get_imports() {
|
|
|
2389
2426
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2390
2427
|
}
|
|
2391
2428
|
}, arguments) };
|
|
2392
|
-
imports.wbg.
|
|
2429
|
+
imports.wbg.__wbg_processapicall_4666d5e3e42c8303 = function(arg0, arg1, arg2) {
|
|
2393
2430
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2394
2431
|
};
|
|
2395
|
-
imports.wbg.
|
|
2432
|
+
imports.wbg.__wbg_processapisuccess_8f073262b87c9e0d = function(arg0, arg1, arg2) {
|
|
2396
2433
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2397
2434
|
};
|
|
2398
|
-
imports.wbg.
|
|
2435
|
+
imports.wbg.__wbg_processapierror_a0175da110379d0c = function(arg0, arg1, arg2) {
|
|
2399
2436
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2400
2437
|
};
|
|
2401
|
-
imports.wbg.
|
|
2438
|
+
imports.wbg.__wbg_sendinterfaceevent_2fa472ddf29a9566 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2402
2439
|
let deferred0_0;
|
|
2403
2440
|
let deferred0_1;
|
|
2404
2441
|
let deferred1_0;
|
|
@@ -2414,7 +2451,7 @@ function __wbg_get_imports() {
|
|
|
2414
2451
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2415
2452
|
}
|
|
2416
2453
|
};
|
|
2417
|
-
imports.wbg.
|
|
2454
|
+
imports.wbg.__wbg_sendblocksuccess_addb41fd47563948 = function(arg0, arg1, arg2) {
|
|
2418
2455
|
let deferred0_0;
|
|
2419
2456
|
let deferred0_1;
|
|
2420
2457
|
try {
|
|
@@ -2425,10 +2462,10 @@ function __wbg_get_imports() {
|
|
|
2425
2462
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2426
2463
|
}
|
|
2427
2464
|
};
|
|
2428
|
-
imports.wbg.
|
|
2465
|
+
imports.wbg.__wbg_sendwalletupdate_9f3a6a4ce2008b25 = function() {
|
|
2429
2466
|
MsgHandler.send_wallet_update();
|
|
2430
2467
|
};
|
|
2431
|
-
imports.wbg.
|
|
2468
|
+
imports.wbg.__wbg_sendnewversionalert_8df0f5b6c585a7cc = function(arg0, arg1, arg2) {
|
|
2432
2469
|
let deferred0_0;
|
|
2433
2470
|
let deferred0_1;
|
|
2434
2471
|
try {
|
|
@@ -2439,13 +2476,13 @@ function __wbg_get_imports() {
|
|
|
2439
2476
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2440
2477
|
}
|
|
2441
2478
|
};
|
|
2442
|
-
imports.wbg.
|
|
2479
|
+
imports.wbg.__wbg_savewallet_b1168902f19a1652 = function() {
|
|
2443
2480
|
MsgHandler.save_wallet();
|
|
2444
2481
|
};
|
|
2445
|
-
imports.wbg.
|
|
2482
|
+
imports.wbg.__wbg_loadwallet_1ca534e7e2688741 = function() {
|
|
2446
2483
|
MsgHandler.load_wallet();
|
|
2447
2484
|
};
|
|
2448
|
-
imports.wbg.
|
|
2485
|
+
imports.wbg.__wbg_getmyservices_6b71922b9eaab0ca = function() {
|
|
2449
2486
|
const ret = MsgHandler.get_my_services();
|
|
2450
2487
|
_assertClass(ret, WasmPeerServiceList);
|
|
2451
2488
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2455,23 +2492,10 @@ function __wbg_get_imports() {
|
|
|
2455
2492
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2456
2493
|
return addHeapObject(ret);
|
|
2457
2494
|
};
|
|
2458
|
-
imports.wbg.
|
|
2459
|
-
const ret =
|
|
2495
|
+
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2496
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2460
2497
|
return addHeapObject(ret);
|
|
2461
2498
|
};
|
|
2462
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2463
|
-
const val = getObject(arg0);
|
|
2464
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2465
|
-
return ret;
|
|
2466
|
-
};
|
|
2467
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2468
|
-
const ret = getObject(arg0) === undefined;
|
|
2469
|
-
return ret;
|
|
2470
|
-
};
|
|
2471
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2472
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2473
|
-
return ret;
|
|
2474
|
-
};
|
|
2475
2499
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2476
2500
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2477
2501
|
return ret;
|
|
@@ -2672,7 +2696,7 @@ function __wbg_get_imports() {
|
|
|
2672
2696
|
const a = state0.a;
|
|
2673
2697
|
state0.a = 0;
|
|
2674
2698
|
try {
|
|
2675
|
-
return
|
|
2699
|
+
return __wbg_adapter_379(a, state0.b, arg0, arg1);
|
|
2676
2700
|
} finally {
|
|
2677
2701
|
state0.a = a;
|
|
2678
2702
|
}
|
|
@@ -2753,8 +2777,8 @@ function __wbg_get_imports() {
|
|
|
2753
2777
|
const ret = wasm.memory;
|
|
2754
2778
|
return addHeapObject(ret);
|
|
2755
2779
|
};
|
|
2756
|
-
imports.wbg.
|
|
2757
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2780
|
+
imports.wbg.__wbindgen_closure_wrapper1290 = function(arg0, arg1, arg2) {
|
|
2781
|
+
const ret = makeMutClosure(arg0, arg1, 458, __wbg_adapter_38);
|
|
2758
2782
|
return addHeapObject(ret);
|
|
2759
2783
|
};
|
|
2760
2784
|
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|