saito-wasm 0.2.15 → 0.2.17
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 +6 -3
- package/pkg/node/index.js +104 -97
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +62 -61
- package/pkg/node/package.json +1 -1
- package/pkg/node/snippets/{saito-wasm-1fcd78c7482fbbf4 → saito-wasm-19a7ec093b5f8b5e}/js/msg_handler.js +2 -2
- package/pkg/web/index.d.ts +68 -64
- package/pkg/web/index.js +101 -94
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +62 -61
- package/pkg/web/package.json +1 -1
- package/pkg/web/snippets/{saito-wasm-1fcd78c7482fbbf4 → saito-wasm-19a7ec093b5f8b5e}/js/msg_handler.js +2 -2
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -247,6 +247,9 @@ export class WasmBlock {
|
|
|
247
247
|
*/
|
|
248
248
|
readonly avg_nolan_rebroadcast_per_block: bigint;
|
|
249
249
|
/**
|
|
250
|
+
*/
|
|
251
|
+
readonly avg_total_fees: bigint;
|
|
252
|
+
/**
|
|
250
253
|
*/
|
|
251
254
|
creator: string;
|
|
252
255
|
/**
|
|
@@ -307,9 +310,6 @@ export class WasmBlock {
|
|
|
307
310
|
*/
|
|
308
311
|
readonly rebroadcasts: Array<any>;
|
|
309
312
|
/**
|
|
310
|
-
*/
|
|
311
|
-
readonly staking_payout: bigint;
|
|
312
|
-
/**
|
|
313
313
|
*/
|
|
314
314
|
timestamp: bigint;
|
|
315
315
|
/**
|
|
@@ -422,6 +422,9 @@ export class WasmConsensusValues {
|
|
|
422
422
|
*/
|
|
423
423
|
readonly avg_income: bigint;
|
|
424
424
|
/**
|
|
425
|
+
*/
|
|
426
|
+
readonly avg_total_fees: bigint;
|
|
427
|
+
/**
|
|
425
428
|
*/
|
|
426
429
|
readonly expected_difficulty: bigint;
|
|
427
430
|
/**
|
package/pkg/node/index.js
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
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-19a7ec093b5f8b5e/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
+
const heap = new Array(128).fill(undefined);
|
|
8
|
+
|
|
9
|
+
heap.push(undefined, null, true, false);
|
|
10
|
+
|
|
11
|
+
function getObject(idx) { return heap[idx]; }
|
|
12
|
+
|
|
13
|
+
let heap_next = heap.length;
|
|
14
|
+
|
|
15
|
+
function dropObject(idx) {
|
|
16
|
+
if (idx < 132) return;
|
|
17
|
+
heap[idx] = heap_next;
|
|
18
|
+
heap_next = idx;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function takeObject(idx) {
|
|
22
|
+
const ret = getObject(idx);
|
|
23
|
+
dropObject(idx);
|
|
24
|
+
return ret;
|
|
25
|
+
}
|
|
26
|
+
|
|
7
27
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
28
|
|
|
9
29
|
cachedTextDecoder.decode();
|
|
@@ -22,12 +42,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
22
42
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
23
43
|
}
|
|
24
44
|
|
|
25
|
-
const heap = new Array(128).fill(undefined);
|
|
26
|
-
|
|
27
|
-
heap.push(undefined, null, true, false);
|
|
28
|
-
|
|
29
|
-
let heap_next = heap.length;
|
|
30
|
-
|
|
31
45
|
function addHeapObject(obj) {
|
|
32
46
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
33
47
|
const idx = heap_next;
|
|
@@ -37,20 +51,6 @@ function addHeapObject(obj) {
|
|
|
37
51
|
return idx;
|
|
38
52
|
}
|
|
39
53
|
|
|
40
|
-
function getObject(idx) { return heap[idx]; }
|
|
41
|
-
|
|
42
|
-
function dropObject(idx) {
|
|
43
|
-
if (idx < 132) return;
|
|
44
|
-
heap[idx] = heap_next;
|
|
45
|
-
heap_next = idx;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function takeObject(idx) {
|
|
49
|
-
const ret = getObject(idx);
|
|
50
|
-
dropObject(idx);
|
|
51
|
-
return ret;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he7698b5cab2e60a8(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/**
|
|
@@ -582,8 +582,8 @@ function handleError(f, args) {
|
|
|
582
582
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
wasm.
|
|
585
|
+
function __wbg_adapter_374(arg0, arg1, arg2, arg3) {
|
|
586
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h777e2ec784c02d9f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -836,13 +836,6 @@ class WasmBlock {
|
|
|
836
836
|
return BigInt.asUintN(64, ret);
|
|
837
837
|
}
|
|
838
838
|
/**
|
|
839
|
-
* @returns {bigint}
|
|
840
|
-
*/
|
|
841
|
-
get staking_payout() {
|
|
842
|
-
const ret = wasm.wasmblock_staking_payout(this.__wbg_ptr);
|
|
843
|
-
return BigInt.asUintN(64, ret);
|
|
844
|
-
}
|
|
845
|
-
/**
|
|
846
839
|
* @returns {string}
|
|
847
840
|
*/
|
|
848
841
|
get rebroadcast_hash() {
|
|
@@ -866,6 +859,13 @@ class WasmBlock {
|
|
|
866
859
|
/**
|
|
867
860
|
* @returns {bigint}
|
|
868
861
|
*/
|
|
862
|
+
get avg_total_fees() {
|
|
863
|
+
const ret = wasm.wasmblock_avg_income(this.__wbg_ptr);
|
|
864
|
+
return BigInt.asUintN(64, ret);
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* @returns {bigint}
|
|
868
|
+
*/
|
|
869
869
|
get id() {
|
|
870
870
|
const ret = wasm.wasmblock_get_id(this.__wbg_ptr);
|
|
871
871
|
return BigInt.asUintN(64, ret);
|
|
@@ -1238,7 +1238,7 @@ class WasmConsensusValues {
|
|
|
1238
1238
|
* @returns {number}
|
|
1239
1239
|
*/
|
|
1240
1240
|
get gt_index() {
|
|
1241
|
-
const ret = wasm.
|
|
1241
|
+
const ret = wasm.wasmblock_it_index(this.__wbg_ptr);
|
|
1242
1242
|
return ret >>> 0;
|
|
1243
1243
|
}
|
|
1244
1244
|
/**
|
|
@@ -1252,35 +1252,35 @@ class WasmConsensusValues {
|
|
|
1252
1252
|
* @returns {bigint}
|
|
1253
1253
|
*/
|
|
1254
1254
|
get expected_difficulty() {
|
|
1255
|
-
const ret = wasm.
|
|
1255
|
+
const ret = wasm.wasmblock_total_fees(this.__wbg_ptr);
|
|
1256
1256
|
return BigInt.asUintN(64, ret);
|
|
1257
1257
|
}
|
|
1258
1258
|
/**
|
|
1259
1259
|
* @returns {bigint}
|
|
1260
1260
|
*/
|
|
1261
1261
|
get total_rebroadcast_slips() {
|
|
1262
|
-
const ret = wasm.
|
|
1262
|
+
const ret = wasm.wasmblock_expected_burnfee(this.__wbg_ptr);
|
|
1263
1263
|
return BigInt.asUintN(64, ret);
|
|
1264
1264
|
}
|
|
1265
1265
|
/**
|
|
1266
1266
|
* @returns {bigint}
|
|
1267
1267
|
*/
|
|
1268
1268
|
get total_rebroadcast_nolan() {
|
|
1269
|
-
const ret = wasm.
|
|
1269
|
+
const ret = wasm.wasmblock_expected_difficulty(this.__wbg_ptr);
|
|
1270
1270
|
return BigInt.asUintN(64, ret);
|
|
1271
1271
|
}
|
|
1272
1272
|
/**
|
|
1273
1273
|
* @returns {bigint}
|
|
1274
1274
|
*/
|
|
1275
1275
|
get total_rebroadcast_fees_nolan() {
|
|
1276
|
-
const ret = wasm.
|
|
1276
|
+
const ret = wasm.wasmblock_total_rebroadcast_slips(this.__wbg_ptr);
|
|
1277
1277
|
return BigInt.asUintN(64, ret);
|
|
1278
1278
|
}
|
|
1279
1279
|
/**
|
|
1280
1280
|
* @returns {bigint}
|
|
1281
1281
|
*/
|
|
1282
1282
|
get total_rebroadcast_staking_payouts_nolan() {
|
|
1283
|
-
const ret = wasm.
|
|
1283
|
+
const ret = wasm.wasmblock_total_rebroadcast_nolan(this.__wbg_ptr);
|
|
1284
1284
|
return BigInt.asUintN(64, ret);
|
|
1285
1285
|
}
|
|
1286
1286
|
/**
|
|
@@ -1304,6 +1304,13 @@ class WasmConsensusValues {
|
|
|
1304
1304
|
const ret = wasm.wasmconsensusvalues_avg_income(this.__wbg_ptr);
|
|
1305
1305
|
return BigInt.asUintN(64, ret);
|
|
1306
1306
|
}
|
|
1307
|
+
/**
|
|
1308
|
+
* @returns {bigint}
|
|
1309
|
+
*/
|
|
1310
|
+
get avg_total_fees() {
|
|
1311
|
+
const ret = wasm.wasmconsensusvalues_avg_income(this.__wbg_ptr);
|
|
1312
|
+
return BigInt.asUintN(64, ret);
|
|
1313
|
+
}
|
|
1307
1314
|
}
|
|
1308
1315
|
module.exports.WasmConsensusValues = WasmConsensusValues;
|
|
1309
1316
|
|
|
@@ -2089,40 +2096,40 @@ class WasmWalletSlip {
|
|
|
2089
2096
|
* @returns {bigint}
|
|
2090
2097
|
*/
|
|
2091
2098
|
get_amount() {
|
|
2092
|
-
const ret = wasm.
|
|
2099
|
+
const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
|
|
2093
2100
|
return BigInt.asUintN(64, ret);
|
|
2094
2101
|
}
|
|
2095
2102
|
/**
|
|
2096
2103
|
* @param {bigint} amount
|
|
2097
2104
|
*/
|
|
2098
2105
|
set_amount(amount) {
|
|
2099
|
-
wasm.
|
|
2106
|
+
wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
|
|
2100
2107
|
}
|
|
2101
2108
|
/**
|
|
2102
2109
|
* @returns {bigint}
|
|
2103
2110
|
*/
|
|
2104
2111
|
get_block_id() {
|
|
2105
|
-
const ret = wasm.
|
|
2112
|
+
const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
|
|
2106
2113
|
return BigInt.asUintN(64, ret);
|
|
2107
2114
|
}
|
|
2108
2115
|
/**
|
|
2109
2116
|
* @param {bigint} block_id
|
|
2110
2117
|
*/
|
|
2111
2118
|
set_block_id(block_id) {
|
|
2112
|
-
wasm.
|
|
2119
|
+
wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2113
2120
|
}
|
|
2114
2121
|
/**
|
|
2115
2122
|
* @returns {bigint}
|
|
2116
2123
|
*/
|
|
2117
2124
|
get_tx_ordinal() {
|
|
2118
|
-
const ret = wasm.
|
|
2125
|
+
const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
|
|
2119
2126
|
return BigInt.asUintN(64, ret);
|
|
2120
2127
|
}
|
|
2121
2128
|
/**
|
|
2122
2129
|
* @param {bigint} ordinal
|
|
2123
2130
|
*/
|
|
2124
2131
|
set_tx_ordinal(ordinal) {
|
|
2125
|
-
wasm.
|
|
2132
|
+
wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2126
2133
|
}
|
|
2127
2134
|
/**
|
|
2128
2135
|
* @returns {number}
|
|
@@ -2173,22 +2180,22 @@ class WasmWalletSlip {
|
|
|
2173
2180
|
}
|
|
2174
2181
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2175
2182
|
|
|
2183
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2184
|
+
takeObject(arg0);
|
|
2185
|
+
};
|
|
2186
|
+
|
|
2176
2187
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2177
2188
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2178
2189
|
return addHeapObject(ret);
|
|
2179
2190
|
};
|
|
2180
2191
|
|
|
2181
|
-
module.exports.
|
|
2182
|
-
|
|
2183
|
-
};
|
|
2184
|
-
|
|
2185
|
-
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2186
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
2192
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2193
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2187
2194
|
return addHeapObject(ret);
|
|
2188
2195
|
};
|
|
2189
2196
|
|
|
2190
|
-
module.exports.
|
|
2191
|
-
const ret =
|
|
2197
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2198
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2192
2199
|
return addHeapObject(ret);
|
|
2193
2200
|
};
|
|
2194
2201
|
|
|
@@ -2197,23 +2204,23 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2197
2204
|
return addHeapObject(ret);
|
|
2198
2205
|
};
|
|
2199
2206
|
|
|
2200
|
-
module.exports.
|
|
2201
|
-
const ret =
|
|
2207
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2208
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2202
2209
|
return addHeapObject(ret);
|
|
2203
2210
|
};
|
|
2204
2211
|
|
|
2205
|
-
module.exports.
|
|
2206
|
-
const ret =
|
|
2212
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2213
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2207
2214
|
return addHeapObject(ret);
|
|
2208
2215
|
};
|
|
2209
2216
|
|
|
2210
|
-
module.exports.
|
|
2211
|
-
const ret =
|
|
2217
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2218
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2212
2219
|
return addHeapObject(ret);
|
|
2213
2220
|
};
|
|
2214
2221
|
|
|
2215
|
-
module.exports.
|
|
2216
|
-
const ret =
|
|
2222
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2223
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2217
2224
|
return addHeapObject(ret);
|
|
2218
2225
|
};
|
|
2219
2226
|
|
|
@@ -2222,8 +2229,8 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
|
2222
2229
|
return addHeapObject(ret);
|
|
2223
2230
|
};
|
|
2224
2231
|
|
|
2225
|
-
module.exports.
|
|
2226
|
-
const ret =
|
|
2232
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2233
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2227
2234
|
return addHeapObject(ret);
|
|
2228
2235
|
};
|
|
2229
2236
|
|
|
@@ -2272,15 +2279,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2272
2279
|
return ret;
|
|
2273
2280
|
};
|
|
2274
2281
|
|
|
2275
|
-
module.exports.
|
|
2282
|
+
module.exports.__wbg_sendmessage_afbe610468df6e8c = function(arg0, arg1) {
|
|
2276
2283
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2277
2284
|
};
|
|
2278
2285
|
|
|
2279
|
-
module.exports.
|
|
2286
|
+
module.exports.__wbg_sendmessagetoall_b8d9809dd7ad86ed = function(arg0, arg1) {
|
|
2280
2287
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2281
2288
|
};
|
|
2282
2289
|
|
|
2283
|
-
module.exports.
|
|
2290
|
+
module.exports.__wbg_connecttopeer_a32595f792cb58ed = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2284
2291
|
let deferred0_0;
|
|
2285
2292
|
let deferred0_1;
|
|
2286
2293
|
try {
|
|
@@ -2293,12 +2300,12 @@ module.exports.__wbg_connecttopeer_489ee8f1128a1425 = function() { return handle
|
|
|
2293
2300
|
}
|
|
2294
2301
|
}, arguments) };
|
|
2295
2302
|
|
|
2296
|
-
module.exports.
|
|
2303
|
+
module.exports.__wbg_disconnectfrompeer_ecd6b31db5301303 = function() { return handleError(function (arg0) {
|
|
2297
2304
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2298
2305
|
return addHeapObject(ret);
|
|
2299
2306
|
}, arguments) };
|
|
2300
2307
|
|
|
2301
|
-
module.exports.
|
|
2308
|
+
module.exports.__wbg_fetchblockfrompeer_9dd88ea0cd25baf0 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2302
2309
|
let deferred0_0;
|
|
2303
2310
|
let deferred0_1;
|
|
2304
2311
|
try {
|
|
@@ -2311,7 +2318,7 @@ module.exports.__wbg_fetchblockfrompeer_70f13b49c5c0e41d = function() { return h
|
|
|
2311
2318
|
}
|
|
2312
2319
|
}, arguments) };
|
|
2313
2320
|
|
|
2314
|
-
module.exports.
|
|
2321
|
+
module.exports.__wbg_writevalue_bdd105ca51b01b72 = function(arg0, arg1, arg2) {
|
|
2315
2322
|
let deferred0_0;
|
|
2316
2323
|
let deferred0_1;
|
|
2317
2324
|
try {
|
|
@@ -2323,7 +2330,7 @@ module.exports.__wbg_writevalue_def0c50fbd95d8e4 = function(arg0, arg1, arg2) {
|
|
|
2323
2330
|
}
|
|
2324
2331
|
};
|
|
2325
2332
|
|
|
2326
|
-
module.exports.
|
|
2333
|
+
module.exports.__wbg_appendvalue_e19564c9bd821ec1 = function(arg0, arg1, arg2) {
|
|
2327
2334
|
let deferred0_0;
|
|
2328
2335
|
let deferred0_1;
|
|
2329
2336
|
try {
|
|
@@ -2335,7 +2342,7 @@ module.exports.__wbg_appendvalue_d6c1584393bee6b8 = function(arg0, arg1, arg2) {
|
|
|
2335
2342
|
}
|
|
2336
2343
|
};
|
|
2337
2344
|
|
|
2338
|
-
module.exports.
|
|
2345
|
+
module.exports.__wbg_flushdata_cfdca506bc94b74c = function(arg0, arg1) {
|
|
2339
2346
|
let deferred0_0;
|
|
2340
2347
|
let deferred0_1;
|
|
2341
2348
|
try {
|
|
@@ -2347,7 +2354,7 @@ module.exports.__wbg_flushdata_dbf731aafd619959 = function(arg0, arg1) {
|
|
|
2347
2354
|
}
|
|
2348
2355
|
};
|
|
2349
2356
|
|
|
2350
|
-
module.exports.
|
|
2357
|
+
module.exports.__wbg_readvalue_9f196024e8b13e9c = function() { return handleError(function (arg0, arg1) {
|
|
2351
2358
|
let deferred0_0;
|
|
2352
2359
|
let deferred0_1;
|
|
2353
2360
|
try {
|
|
@@ -2360,12 +2367,12 @@ module.exports.__wbg_readvalue_1fc0ffa5766bf83d = function() { return handleErro
|
|
|
2360
2367
|
}
|
|
2361
2368
|
}, arguments) };
|
|
2362
2369
|
|
|
2363
|
-
module.exports.
|
|
2370
|
+
module.exports.__wbg_loadblockfilelist_2c7e796c75323198 = function() { return handleError(function () {
|
|
2364
2371
|
const ret = MsgHandler.load_block_file_list();
|
|
2365
2372
|
return addHeapObject(ret);
|
|
2366
2373
|
}, arguments) };
|
|
2367
2374
|
|
|
2368
|
-
module.exports.
|
|
2375
|
+
module.exports.__wbg_isexistingfile_0e047677207d651b = function() { return handleError(function (arg0, arg1) {
|
|
2369
2376
|
let deferred0_0;
|
|
2370
2377
|
let deferred0_1;
|
|
2371
2378
|
try {
|
|
@@ -2378,7 +2385,7 @@ module.exports.__wbg_isexistingfile_268f244b35b40714 = function() { return handl
|
|
|
2378
2385
|
}
|
|
2379
2386
|
}, arguments) };
|
|
2380
2387
|
|
|
2381
|
-
module.exports.
|
|
2388
|
+
module.exports.__wbg_removevalue_c0171696ca13f56f = function() { return handleError(function (arg0, arg1) {
|
|
2382
2389
|
let deferred0_0;
|
|
2383
2390
|
let deferred0_1;
|
|
2384
2391
|
try {
|
|
@@ -2391,7 +2398,7 @@ module.exports.__wbg_removevalue_b243f768e52bb210 = function() { return handleEr
|
|
|
2391
2398
|
}
|
|
2392
2399
|
}, arguments) };
|
|
2393
2400
|
|
|
2394
|
-
module.exports.
|
|
2401
|
+
module.exports.__wbg_ensureblockdirectoryexists_6f583f7f207ff87e = function() { return handleError(function (arg0, arg1) {
|
|
2395
2402
|
let deferred0_0;
|
|
2396
2403
|
let deferred0_1;
|
|
2397
2404
|
try {
|
|
@@ -2403,19 +2410,19 @@ module.exports.__wbg_ensureblockdirectoryexists_45371b00a9be9e53 = function() {
|
|
|
2403
2410
|
}
|
|
2404
2411
|
}, arguments) };
|
|
2405
2412
|
|
|
2406
|
-
module.exports.
|
|
2413
|
+
module.exports.__wbg_processapicall_9ce77e819f5e6ae8 = function(arg0, arg1, arg2) {
|
|
2407
2414
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2408
2415
|
};
|
|
2409
2416
|
|
|
2410
|
-
module.exports.
|
|
2417
|
+
module.exports.__wbg_processapisuccess_7d336f7a6c2a783a = function(arg0, arg1, arg2) {
|
|
2411
2418
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2412
2419
|
};
|
|
2413
2420
|
|
|
2414
|
-
module.exports.
|
|
2421
|
+
module.exports.__wbg_processapierror_2a54e9b7823d6253 = function(arg0, arg1, arg2) {
|
|
2415
2422
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2416
2423
|
};
|
|
2417
2424
|
|
|
2418
|
-
module.exports.
|
|
2425
|
+
module.exports.__wbg_sendinterfaceevent_aa0090965a4148d6 = function(arg0, arg1, arg2) {
|
|
2419
2426
|
let deferred0_0;
|
|
2420
2427
|
let deferred0_1;
|
|
2421
2428
|
try {
|
|
@@ -2427,7 +2434,7 @@ module.exports.__wbg_sendinterfaceevent_7c4230b0caa9d632 = function(arg0, arg1,
|
|
|
2427
2434
|
}
|
|
2428
2435
|
};
|
|
2429
2436
|
|
|
2430
|
-
module.exports.
|
|
2437
|
+
module.exports.__wbg_sendblocksuccess_cf015e9aa46b87ca = function(arg0, arg1, arg2) {
|
|
2431
2438
|
let deferred0_0;
|
|
2432
2439
|
let deferred0_1;
|
|
2433
2440
|
try {
|
|
@@ -2439,11 +2446,11 @@ module.exports.__wbg_sendblocksuccess_36ee77c098eee1a4 = function(arg0, arg1, ar
|
|
|
2439
2446
|
}
|
|
2440
2447
|
};
|
|
2441
2448
|
|
|
2442
|
-
module.exports.
|
|
2449
|
+
module.exports.__wbg_sendwalletupdate_e21a82c822ce23ae = function() {
|
|
2443
2450
|
MsgHandler.send_wallet_update();
|
|
2444
2451
|
};
|
|
2445
2452
|
|
|
2446
|
-
module.exports.
|
|
2453
|
+
module.exports.__wbg_sendnewversionalert_38442f8435a48ba3 = function(arg0, arg1, arg2) {
|
|
2447
2454
|
let deferred0_0;
|
|
2448
2455
|
let deferred0_1;
|
|
2449
2456
|
try {
|
|
@@ -2455,15 +2462,15 @@ module.exports.__wbg_sendnewversionalert_8ce5f9f194c7f005 = function(arg0, arg1,
|
|
|
2455
2462
|
}
|
|
2456
2463
|
};
|
|
2457
2464
|
|
|
2458
|
-
module.exports.
|
|
2465
|
+
module.exports.__wbg_savewallet_ad4bb324e60c810b = function() {
|
|
2459
2466
|
MsgHandler.save_wallet();
|
|
2460
2467
|
};
|
|
2461
2468
|
|
|
2462
|
-
module.exports.
|
|
2469
|
+
module.exports.__wbg_loadwallet_8ae8775e50cb88f4 = function() {
|
|
2463
2470
|
MsgHandler.load_wallet();
|
|
2464
2471
|
};
|
|
2465
2472
|
|
|
2466
|
-
module.exports.
|
|
2473
|
+
module.exports.__wbg_getmyservices_6a721fb862c0b159 = function() {
|
|
2467
2474
|
const ret = MsgHandler.get_my_services();
|
|
2468
2475
|
_assertClass(ret, WasmPeerServiceList);
|
|
2469
2476
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2498,6 +2505,16 @@ module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
|
2498
2505
|
return addHeapObject(ret);
|
|
2499
2506
|
};
|
|
2500
2507
|
|
|
2508
|
+
module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2509
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
2510
|
+
return addHeapObject(ret);
|
|
2511
|
+
};
|
|
2512
|
+
|
|
2513
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
2514
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
2515
|
+
return ret;
|
|
2516
|
+
};
|
|
2517
|
+
|
|
2501
2518
|
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
2502
2519
|
const obj = takeObject(arg0).original;
|
|
2503
2520
|
if (obj.cnt-- == 1) {
|
|
@@ -2512,16 +2529,6 @@ module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
|
2512
2529
|
queueMicrotask(getObject(arg0));
|
|
2513
2530
|
};
|
|
2514
2531
|
|
|
2515
|
-
module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2516
|
-
const ret = getObject(arg0).queueMicrotask;
|
|
2517
|
-
return addHeapObject(ret);
|
|
2518
|
-
};
|
|
2519
|
-
|
|
2520
|
-
module.exports.__wbindgen_is_function = function(arg0) {
|
|
2521
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
2522
|
-
return ret;
|
|
2523
|
-
};
|
|
2524
|
-
|
|
2525
2532
|
module.exports.__wbg_debug_7d879afce6cf56cb = function(arg0, arg1, arg2, arg3) {
|
|
2526
2533
|
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
2527
2534
|
};
|
|
@@ -2717,7 +2724,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2717
2724
|
const a = state0.a;
|
|
2718
2725
|
state0.a = 0;
|
|
2719
2726
|
try {
|
|
2720
|
-
return
|
|
2727
|
+
return __wbg_adapter_374(a, state0.b, arg0, arg1);
|
|
2721
2728
|
} finally {
|
|
2722
2729
|
state0.a = a;
|
|
2723
2730
|
}
|
|
@@ -2815,8 +2822,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2815
2822
|
return addHeapObject(ret);
|
|
2816
2823
|
};
|
|
2817
2824
|
|
|
2818
|
-
module.exports.
|
|
2819
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2825
|
+
module.exports.__wbindgen_closure_wrapper1170 = function(arg0, arg1, arg2) {
|
|
2826
|
+
const ret = makeMutClosure(arg0, arg1, 418, __wbg_adapter_38);
|
|
2820
2827
|
return addHeapObject(ret);
|
|
2821
2828
|
};
|
|
2822
2829
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|