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/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -185,6 +185,18 @@ export function is_valid_public_key(key: string): boolean;
|
|
|
185
185
|
*/
|
|
186
186
|
export function write_issuance_file(threshold: bigint): Promise<void>;
|
|
187
187
|
/**
|
|
188
|
+
* @returns {Promise<void>}
|
|
189
|
+
*/
|
|
190
|
+
export function disable_bundling_blocks_by_timer(): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* @returns {Promise<void>}
|
|
193
|
+
*/
|
|
194
|
+
export function produce_block_with_gt(): Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* @returns {Promise<void>}
|
|
197
|
+
*/
|
|
198
|
+
export function produce_block_without_gt(): Promise<void>;
|
|
199
|
+
/**
|
|
188
200
|
*/
|
|
189
201
|
export class SaitoWasm {
|
|
190
202
|
free(): void;
|
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-890126c2574ee850/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,15 +24,6 @@ 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
|
-
|
|
36
27
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
28
|
|
|
38
29
|
cachedTextDecoder.decode();
|
|
@@ -51,6 +42,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
51
42
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
43
|
}
|
|
53
44
|
|
|
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');
|
|
@@ -575,6 +575,30 @@ module.exports.write_issuance_file = function(threshold) {
|
|
|
575
575
|
return takeObject(ret);
|
|
576
576
|
};
|
|
577
577
|
|
|
578
|
+
/**
|
|
579
|
+
* @returns {Promise<void>}
|
|
580
|
+
*/
|
|
581
|
+
module.exports.disable_bundling_blocks_by_timer = function() {
|
|
582
|
+
const ret = wasm.disable_bundling_blocks_by_timer();
|
|
583
|
+
return takeObject(ret);
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* @returns {Promise<void>}
|
|
588
|
+
*/
|
|
589
|
+
module.exports.produce_block_with_gt = function() {
|
|
590
|
+
const ret = wasm.produce_block_with_gt();
|
|
591
|
+
return takeObject(ret);
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @returns {Promise<void>}
|
|
596
|
+
*/
|
|
597
|
+
module.exports.produce_block_without_gt = function() {
|
|
598
|
+
const ret = wasm.produce_block_without_gt();
|
|
599
|
+
return takeObject(ret);
|
|
600
|
+
};
|
|
601
|
+
|
|
578
602
|
function handleError(f, args) {
|
|
579
603
|
try {
|
|
580
604
|
return f.apply(this, args);
|
|
@@ -582,7 +606,7 @@ function handleError(f, args) {
|
|
|
582
606
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
583
607
|
}
|
|
584
608
|
}
|
|
585
|
-
function
|
|
609
|
+
function __wbg_adapter_379(arg0, arg1, arg2, arg3) {
|
|
586
610
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2342d2d7ddbab521(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
587
611
|
}
|
|
588
612
|
|
|
@@ -1252,7 +1276,7 @@ class WasmConsensusValues {
|
|
|
1252
1276
|
* @returns {number}
|
|
1253
1277
|
*/
|
|
1254
1278
|
get gt_index() {
|
|
1255
|
-
const ret = wasm.
|
|
1279
|
+
const ret = wasm.wasmconsensusvalues_gt_index(this.__wbg_ptr);
|
|
1256
1280
|
return ret >>> 0;
|
|
1257
1281
|
}
|
|
1258
1282
|
/**
|
|
@@ -1266,35 +1290,35 @@ class WasmConsensusValues {
|
|
|
1266
1290
|
* @returns {bigint}
|
|
1267
1291
|
*/
|
|
1268
1292
|
get expected_difficulty() {
|
|
1269
|
-
const ret = wasm.
|
|
1293
|
+
const ret = wasm.wasmconsensusvalues_expected_difficulty(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_slips() {
|
|
1276
|
-
const ret = wasm.
|
|
1300
|
+
const ret = wasm.wasmconsensusvalues_total_rebroadcast_slips(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_nolan() {
|
|
1283
|
-
const ret = wasm.
|
|
1307
|
+
const ret = wasm.wasmconsensusvalues_total_rebroadcast_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_fees_nolan() {
|
|
1290
|
-
const ret = wasm.
|
|
1314
|
+
const ret = wasm.wasmconsensusvalues_total_rebroadcast_fees_nolan(this.__wbg_ptr);
|
|
1291
1315
|
return BigInt.asUintN(64, ret);
|
|
1292
1316
|
}
|
|
1293
1317
|
/**
|
|
1294
1318
|
* @returns {bigint}
|
|
1295
1319
|
*/
|
|
1296
1320
|
get total_rebroadcast_staking_payouts_nolan() {
|
|
1297
|
-
const ret = wasm.
|
|
1321
|
+
const ret = wasm.wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(this.__wbg_ptr);
|
|
1298
1322
|
return BigInt.asUintN(64, ret);
|
|
1299
1323
|
}
|
|
1300
1324
|
/**
|
|
@@ -1867,7 +1891,7 @@ class WasmTransaction {
|
|
|
1867
1891
|
* @returns {bigint}
|
|
1868
1892
|
*/
|
|
1869
1893
|
get timestamp() {
|
|
1870
|
-
const ret = wasm.
|
|
1894
|
+
const ret = wasm.wasmpeer_get_peer_index(this.__wbg_ptr);
|
|
1871
1895
|
return BigInt.asUintN(64, ret);
|
|
1872
1896
|
}
|
|
1873
1897
|
/**
|
|
@@ -2110,40 +2134,40 @@ class WasmWalletSlip {
|
|
|
2110
2134
|
* @returns {bigint}
|
|
2111
2135
|
*/
|
|
2112
2136
|
get_amount() {
|
|
2113
|
-
const ret = wasm.
|
|
2137
|
+
const ret = wasm.wasmslip_amount(this.__wbg_ptr);
|
|
2114
2138
|
return BigInt.asUintN(64, ret);
|
|
2115
2139
|
}
|
|
2116
2140
|
/**
|
|
2117
2141
|
* @param {bigint} amount
|
|
2118
2142
|
*/
|
|
2119
2143
|
set_amount(amount) {
|
|
2120
|
-
wasm.
|
|
2144
|
+
wasm.wasmslip_set_amount(this.__wbg_ptr, amount);
|
|
2121
2145
|
}
|
|
2122
2146
|
/**
|
|
2123
2147
|
* @returns {bigint}
|
|
2124
2148
|
*/
|
|
2125
2149
|
get_block_id() {
|
|
2126
|
-
const ret = wasm.
|
|
2150
|
+
const ret = wasm.wasmslip_block_id(this.__wbg_ptr);
|
|
2127
2151
|
return BigInt.asUintN(64, ret);
|
|
2128
2152
|
}
|
|
2129
2153
|
/**
|
|
2130
2154
|
* @param {bigint} block_id
|
|
2131
2155
|
*/
|
|
2132
2156
|
set_block_id(block_id) {
|
|
2133
|
-
wasm.
|
|
2157
|
+
wasm.wasmslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2134
2158
|
}
|
|
2135
2159
|
/**
|
|
2136
2160
|
* @returns {bigint}
|
|
2137
2161
|
*/
|
|
2138
2162
|
get_tx_ordinal() {
|
|
2139
|
-
const ret = wasm.
|
|
2163
|
+
const ret = wasm.wasmslip_tx_ordinal(this.__wbg_ptr);
|
|
2140
2164
|
return BigInt.asUintN(64, ret);
|
|
2141
2165
|
}
|
|
2142
2166
|
/**
|
|
2143
2167
|
* @param {bigint} ordinal
|
|
2144
2168
|
*/
|
|
2145
2169
|
set_tx_ordinal(ordinal) {
|
|
2146
|
-
wasm.
|
|
2170
|
+
wasm.wasmslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2147
2171
|
}
|
|
2148
2172
|
/**
|
|
2149
2173
|
* @returns {number}
|
|
@@ -2198,33 +2222,33 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2198
2222
|
takeObject(arg0);
|
|
2199
2223
|
};
|
|
2200
2224
|
|
|
2201
|
-
module.exports.
|
|
2202
|
-
const ret =
|
|
2225
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2226
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2203
2227
|
return addHeapObject(ret);
|
|
2204
2228
|
};
|
|
2205
2229
|
|
|
2206
|
-
module.exports.
|
|
2207
|
-
const ret =
|
|
2230
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2231
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2208
2232
|
return addHeapObject(ret);
|
|
2209
2233
|
};
|
|
2210
2234
|
|
|
2211
|
-
module.exports.
|
|
2212
|
-
const ret =
|
|
2235
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2236
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2213
2237
|
return addHeapObject(ret);
|
|
2214
2238
|
};
|
|
2215
2239
|
|
|
2216
|
-
module.exports.
|
|
2217
|
-
const ret =
|
|
2240
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2241
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2218
2242
|
return addHeapObject(ret);
|
|
2219
2243
|
};
|
|
2220
2244
|
|
|
2221
|
-
module.exports.
|
|
2222
|
-
const ret =
|
|
2245
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2246
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2223
2247
|
return addHeapObject(ret);
|
|
2224
2248
|
};
|
|
2225
2249
|
|
|
2226
|
-
module.exports.
|
|
2227
|
-
const ret =
|
|
2250
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2251
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2228
2252
|
return addHeapObject(ret);
|
|
2229
2253
|
};
|
|
2230
2254
|
|
|
@@ -2233,18 +2257,18 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2233
2257
|
return addHeapObject(ret);
|
|
2234
2258
|
};
|
|
2235
2259
|
|
|
2236
|
-
module.exports.
|
|
2237
|
-
const ret =
|
|
2260
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2261
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2238
2262
|
return addHeapObject(ret);
|
|
2239
2263
|
};
|
|
2240
2264
|
|
|
2241
|
-
module.exports.
|
|
2242
|
-
const ret =
|
|
2265
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2266
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2243
2267
|
return addHeapObject(ret);
|
|
2244
2268
|
};
|
|
2245
2269
|
|
|
2246
|
-
module.exports.
|
|
2247
|
-
const ret =
|
|
2270
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2271
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2248
2272
|
return addHeapObject(ret);
|
|
2249
2273
|
};
|
|
2250
2274
|
|
|
@@ -2257,8 +2281,24 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2257
2281
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2258
2282
|
};
|
|
2259
2283
|
|
|
2260
|
-
module.exports.
|
|
2261
|
-
const
|
|
2284
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2285
|
+
const val = getObject(arg0);
|
|
2286
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2287
|
+
return ret;
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2291
|
+
const ret = getObject(arg0) === undefined;
|
|
2292
|
+
return ret;
|
|
2293
|
+
};
|
|
2294
|
+
|
|
2295
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2296
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2297
|
+
return ret;
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2300
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2301
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2262
2302
|
return addHeapObject(ret);
|
|
2263
2303
|
};
|
|
2264
2304
|
|
|
@@ -2267,15 +2307,15 @@ module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
|
2267
2307
|
return addHeapObject(ret);
|
|
2268
2308
|
};
|
|
2269
2309
|
|
|
2270
|
-
module.exports.
|
|
2310
|
+
module.exports.__wbg_sendmessage_ca792670f2903ac1 = function(arg0, arg1) {
|
|
2271
2311
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2272
2312
|
};
|
|
2273
2313
|
|
|
2274
|
-
module.exports.
|
|
2314
|
+
module.exports.__wbg_sendmessagetoall_ed6b742c967dc1bc = function(arg0, arg1) {
|
|
2275
2315
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2276
2316
|
};
|
|
2277
2317
|
|
|
2278
|
-
module.exports.
|
|
2318
|
+
module.exports.__wbg_connecttopeer_cf9fc480c96432d5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2279
2319
|
let deferred0_0;
|
|
2280
2320
|
let deferred0_1;
|
|
2281
2321
|
try {
|
|
@@ -2288,12 +2328,12 @@ module.exports.__wbg_connecttopeer_45610955929f377a = function() { return handle
|
|
|
2288
2328
|
}
|
|
2289
2329
|
}, arguments) };
|
|
2290
2330
|
|
|
2291
|
-
module.exports.
|
|
2331
|
+
module.exports.__wbg_disconnectfrompeer_236006c09a6c97c7 = function() { return handleError(function (arg0) {
|
|
2292
2332
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2293
2333
|
return addHeapObject(ret);
|
|
2294
2334
|
}, arguments) };
|
|
2295
2335
|
|
|
2296
|
-
module.exports.
|
|
2336
|
+
module.exports.__wbg_fetchblockfrompeer_beb702c2ac7a1383 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2297
2337
|
let deferred0_0;
|
|
2298
2338
|
let deferred0_1;
|
|
2299
2339
|
try {
|
|
@@ -2306,7 +2346,7 @@ module.exports.__wbg_fetchblockfrompeer_0c0b0fbaa64cffdf = function() { return h
|
|
|
2306
2346
|
}
|
|
2307
2347
|
}, arguments) };
|
|
2308
2348
|
|
|
2309
|
-
module.exports.
|
|
2349
|
+
module.exports.__wbg_writevalue_858b3a3794fbabf4 = function(arg0, arg1, arg2) {
|
|
2310
2350
|
let deferred0_0;
|
|
2311
2351
|
let deferred0_1;
|
|
2312
2352
|
try {
|
|
@@ -2318,7 +2358,7 @@ module.exports.__wbg_writevalue_546338b62df836f5 = function(arg0, arg1, arg2) {
|
|
|
2318
2358
|
}
|
|
2319
2359
|
};
|
|
2320
2360
|
|
|
2321
|
-
module.exports.
|
|
2361
|
+
module.exports.__wbg_appendvalue_3fa3914c63d94620 = function(arg0, arg1, arg2) {
|
|
2322
2362
|
let deferred0_0;
|
|
2323
2363
|
let deferred0_1;
|
|
2324
2364
|
try {
|
|
@@ -2330,7 +2370,7 @@ module.exports.__wbg_appendvalue_06fb244806cd442d = function(arg0, arg1, arg2) {
|
|
|
2330
2370
|
}
|
|
2331
2371
|
};
|
|
2332
2372
|
|
|
2333
|
-
module.exports.
|
|
2373
|
+
module.exports.__wbg_flushdata_001481339ab3b1e8 = function(arg0, arg1) {
|
|
2334
2374
|
let deferred0_0;
|
|
2335
2375
|
let deferred0_1;
|
|
2336
2376
|
try {
|
|
@@ -2342,7 +2382,7 @@ module.exports.__wbg_flushdata_28d995fd3d5d440d = function(arg0, arg1) {
|
|
|
2342
2382
|
}
|
|
2343
2383
|
};
|
|
2344
2384
|
|
|
2345
|
-
module.exports.
|
|
2385
|
+
module.exports.__wbg_readvalue_961833ec33afdae1 = function() { return handleError(function (arg0, arg1) {
|
|
2346
2386
|
let deferred0_0;
|
|
2347
2387
|
let deferred0_1;
|
|
2348
2388
|
try {
|
|
@@ -2355,12 +2395,12 @@ module.exports.__wbg_readvalue_ab8515ce7248bacd = function() { return handleErro
|
|
|
2355
2395
|
}
|
|
2356
2396
|
}, arguments) };
|
|
2357
2397
|
|
|
2358
|
-
module.exports.
|
|
2398
|
+
module.exports.__wbg_loadblockfilelist_e4e418c8dcc4d1a3 = function() { return handleError(function () {
|
|
2359
2399
|
const ret = MsgHandler.load_block_file_list();
|
|
2360
2400
|
return addHeapObject(ret);
|
|
2361
2401
|
}, arguments) };
|
|
2362
2402
|
|
|
2363
|
-
module.exports.
|
|
2403
|
+
module.exports.__wbg_isexistingfile_1195edd3c769e6cd = function() { return handleError(function (arg0, arg1) {
|
|
2364
2404
|
let deferred0_0;
|
|
2365
2405
|
let deferred0_1;
|
|
2366
2406
|
try {
|
|
@@ -2373,7 +2413,7 @@ module.exports.__wbg_isexistingfile_8337592a93c99961 = function() { return handl
|
|
|
2373
2413
|
}
|
|
2374
2414
|
}, arguments) };
|
|
2375
2415
|
|
|
2376
|
-
module.exports.
|
|
2416
|
+
module.exports.__wbg_removevalue_cbfa7044bf726cbf = function() { return handleError(function (arg0, arg1) {
|
|
2377
2417
|
let deferred0_0;
|
|
2378
2418
|
let deferred0_1;
|
|
2379
2419
|
try {
|
|
@@ -2386,7 +2426,7 @@ module.exports.__wbg_removevalue_b7b91c753f09e789 = function() { return handleEr
|
|
|
2386
2426
|
}
|
|
2387
2427
|
}, arguments) };
|
|
2388
2428
|
|
|
2389
|
-
module.exports.
|
|
2429
|
+
module.exports.__wbg_ensureblockdirectoryexists_9ab23c529877f183 = function() { return handleError(function (arg0, arg1) {
|
|
2390
2430
|
let deferred0_0;
|
|
2391
2431
|
let deferred0_1;
|
|
2392
2432
|
try {
|
|
@@ -2398,19 +2438,19 @@ module.exports.__wbg_ensureblockdirectoryexists_b08fa92fa4f99221 = function() {
|
|
|
2398
2438
|
}
|
|
2399
2439
|
}, arguments) };
|
|
2400
2440
|
|
|
2401
|
-
module.exports.
|
|
2441
|
+
module.exports.__wbg_processapicall_4666d5e3e42c8303 = function(arg0, arg1, arg2) {
|
|
2402
2442
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2403
2443
|
};
|
|
2404
2444
|
|
|
2405
|
-
module.exports.
|
|
2445
|
+
module.exports.__wbg_processapisuccess_8f073262b87c9e0d = function(arg0, arg1, arg2) {
|
|
2406
2446
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2407
2447
|
};
|
|
2408
2448
|
|
|
2409
|
-
module.exports.
|
|
2449
|
+
module.exports.__wbg_processapierror_a0175da110379d0c = function(arg0, arg1, arg2) {
|
|
2410
2450
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
2411
2451
|
};
|
|
2412
2452
|
|
|
2413
|
-
module.exports.
|
|
2453
|
+
module.exports.__wbg_sendinterfaceevent_2fa472ddf29a9566 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2414
2454
|
let deferred0_0;
|
|
2415
2455
|
let deferred0_1;
|
|
2416
2456
|
let deferred1_0;
|
|
@@ -2427,7 +2467,7 @@ module.exports.__wbg_sendinterfaceevent_448f7c08de32ac12 = function(arg0, arg1,
|
|
|
2427
2467
|
}
|
|
2428
2468
|
};
|
|
2429
2469
|
|
|
2430
|
-
module.exports.
|
|
2470
|
+
module.exports.__wbg_sendblocksuccess_addb41fd47563948 = function(arg0, arg1, arg2) {
|
|
2431
2471
|
let deferred0_0;
|
|
2432
2472
|
let deferred0_1;
|
|
2433
2473
|
try {
|
|
@@ -2439,11 +2479,11 @@ module.exports.__wbg_sendblocksuccess_7ab1dd5709fb5bdb = function(arg0, arg1, ar
|
|
|
2439
2479
|
}
|
|
2440
2480
|
};
|
|
2441
2481
|
|
|
2442
|
-
module.exports.
|
|
2482
|
+
module.exports.__wbg_sendwalletupdate_9f3a6a4ce2008b25 = function() {
|
|
2443
2483
|
MsgHandler.send_wallet_update();
|
|
2444
2484
|
};
|
|
2445
2485
|
|
|
2446
|
-
module.exports.
|
|
2486
|
+
module.exports.__wbg_sendnewversionalert_8df0f5b6c585a7cc = function(arg0, arg1, arg2) {
|
|
2447
2487
|
let deferred0_0;
|
|
2448
2488
|
let deferred0_1;
|
|
2449
2489
|
try {
|
|
@@ -2455,15 +2495,15 @@ module.exports.__wbg_sendnewversionalert_cbca5bb87627c90d = function(arg0, arg1,
|
|
|
2455
2495
|
}
|
|
2456
2496
|
};
|
|
2457
2497
|
|
|
2458
|
-
module.exports.
|
|
2498
|
+
module.exports.__wbg_savewallet_b1168902f19a1652 = function() {
|
|
2459
2499
|
MsgHandler.save_wallet();
|
|
2460
2500
|
};
|
|
2461
2501
|
|
|
2462
|
-
module.exports.
|
|
2502
|
+
module.exports.__wbg_loadwallet_1ca534e7e2688741 = function() {
|
|
2463
2503
|
MsgHandler.load_wallet();
|
|
2464
2504
|
};
|
|
2465
2505
|
|
|
2466
|
-
module.exports.
|
|
2506
|
+
module.exports.__wbg_getmyservices_6b71922b9eaab0ca = function() {
|
|
2467
2507
|
const ret = MsgHandler.get_my_services();
|
|
2468
2508
|
_assertClass(ret, WasmPeerServiceList);
|
|
2469
2509
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2475,27 +2515,11 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
|
2475
2515
|
return addHeapObject(ret);
|
|
2476
2516
|
};
|
|
2477
2517
|
|
|
2478
|
-
module.exports.
|
|
2479
|
-
const ret =
|
|
2518
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2519
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2480
2520
|
return addHeapObject(ret);
|
|
2481
2521
|
};
|
|
2482
2522
|
|
|
2483
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2484
|
-
const val = getObject(arg0);
|
|
2485
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2486
|
-
return ret;
|
|
2487
|
-
};
|
|
2488
|
-
|
|
2489
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2490
|
-
const ret = getObject(arg0) === undefined;
|
|
2491
|
-
return ret;
|
|
2492
|
-
};
|
|
2493
|
-
|
|
2494
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2495
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2496
|
-
return ret;
|
|
2497
|
-
};
|
|
2498
|
-
|
|
2499
2523
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2500
2524
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2501
2525
|
return ret;
|
|
@@ -2743,7 +2767,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2743
2767
|
const a = state0.a;
|
|
2744
2768
|
state0.a = 0;
|
|
2745
2769
|
try {
|
|
2746
|
-
return
|
|
2770
|
+
return __wbg_adapter_379(a, state0.b, arg0, arg1);
|
|
2747
2771
|
} finally {
|
|
2748
2772
|
state0.a = a;
|
|
2749
2773
|
}
|
|
@@ -2841,8 +2865,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2841
2865
|
return addHeapObject(ret);
|
|
2842
2866
|
};
|
|
2843
2867
|
|
|
2844
|
-
module.exports.
|
|
2845
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2868
|
+
module.exports.__wbindgen_closure_wrapper1290 = function(arg0, arg1, arg2) {
|
|
2869
|
+
const ret = makeMutClosure(arg0, arg1, 458, __wbg_adapter_38);
|
|
2846
2870
|
return addHeapObject(ret);
|
|
2847
2871
|
};
|
|
2848
2872
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|