saito-wasm 0.2.168 → 0.2.169
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 +135 -135
- package/pkg/node/index.js +282 -282
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +61 -61
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +196 -196
- package/pkg/web/index.js +279 -279
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +61 -61
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-86859bf1424d0da8 → saito-wasm-ac621af49b696a83}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-86859bf1424d0da8 → saito-wasm-ac621af49b696a83}/js/msg_handler.js +0 -0
package/pkg/node/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
5
|
-
const {
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ac621af49b696a83/js/msg_handler.js`);
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
@@ -24,16 +24,9 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
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
|
-
}
|
|
27
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
35
28
|
|
|
36
|
-
|
|
29
|
+
cachedTextDecoder.decode();
|
|
37
30
|
|
|
38
31
|
let cachedUint8Memory0 = null;
|
|
39
32
|
|
|
@@ -44,6 +37,22 @@ function getUint8Memory0() {
|
|
|
44
37
|
return cachedUint8Memory0;
|
|
45
38
|
}
|
|
46
39
|
|
|
40
|
+
function getStringFromWasm0(ptr, len) {
|
|
41
|
+
ptr = ptr >>> 0;
|
|
42
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
|
+
}
|
|
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
|
+
let WASM_VECTOR_LEN = 0;
|
|
55
|
+
|
|
47
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
48
57
|
|
|
49
58
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -111,15 +120,6 @@ function getInt32Memory0() {
|
|
|
111
120
|
return cachedInt32Memory0;
|
|
112
121
|
}
|
|
113
122
|
|
|
114
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
115
|
-
|
|
116
|
-
cachedTextDecoder.decode();
|
|
117
|
-
|
|
118
|
-
function getStringFromWasm0(ptr, len) {
|
|
119
|
-
ptr = ptr >>> 0;
|
|
120
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
123
|
let cachedFloat64Memory0 = null;
|
|
124
124
|
|
|
125
125
|
function getFloat64Memory0() {
|
|
@@ -235,64 +235,71 @@ function _assertClass(instance, klass) {
|
|
|
235
235
|
return instance.ptr;
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
|
-
* @
|
|
238
|
+
* @param {Uint8Array} buffer
|
|
239
|
+
* @returns {string}
|
|
239
240
|
*/
|
|
240
|
-
module.exports.
|
|
241
|
-
const ret = wasm.
|
|
241
|
+
module.exports.hash = function(buffer) {
|
|
242
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
242
243
|
return takeObject(ret);
|
|
243
244
|
};
|
|
244
245
|
|
|
245
246
|
/**
|
|
246
|
-
* @param {
|
|
247
|
-
* @
|
|
248
|
-
* @param {string} slip3_utxo_key
|
|
249
|
-
* @returns {Promise<WasmTransaction>}
|
|
247
|
+
* @param {bigint} threshold
|
|
248
|
+
* @returns {Promise<void>}
|
|
250
249
|
*/
|
|
251
|
-
module.exports.
|
|
252
|
-
const ret = wasm.
|
|
250
|
+
module.exports.write_issuance_file = function(threshold) {
|
|
251
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
253
252
|
return takeObject(ret);
|
|
254
253
|
};
|
|
255
254
|
|
|
256
255
|
/**
|
|
257
|
-
* @
|
|
256
|
+
* @param {bigint} peer_index
|
|
257
|
+
* @returns {Promise<void>}
|
|
258
258
|
*/
|
|
259
|
-
module.exports.
|
|
260
|
-
const ret = wasm.
|
|
259
|
+
module.exports.process_peer_disconnection = function(peer_index) {
|
|
260
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
261
261
|
return takeObject(ret);
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
|
-
* @
|
|
266
|
-
* @returns {Promise<void>}
|
|
265
|
+
* @returns {Promise<string>}
|
|
267
266
|
*/
|
|
268
|
-
module.exports.
|
|
269
|
-
const ret = wasm.
|
|
267
|
+
module.exports.get_peer_stats = function() {
|
|
268
|
+
const ret = wasm.get_peer_stats();
|
|
270
269
|
return takeObject(ret);
|
|
271
270
|
};
|
|
272
271
|
|
|
273
272
|
/**
|
|
274
|
-
* @
|
|
273
|
+
* @param {bigint} num
|
|
274
|
+
* @param {bigint} deposit
|
|
275
|
+
* @param {Uint8Array} tx_msg
|
|
276
|
+
* @param {bigint} fee
|
|
277
|
+
* @param {string} recipient_public_key
|
|
278
|
+
* @param {string} nft_type
|
|
279
|
+
* @returns {Promise<WasmTransaction>}
|
|
275
280
|
*/
|
|
276
|
-
module.exports.
|
|
277
|
-
const ret = wasm.
|
|
281
|
+
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
282
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
278
283
|
return takeObject(ret);
|
|
279
284
|
};
|
|
280
285
|
|
|
281
286
|
/**
|
|
282
|
-
* @
|
|
287
|
+
* @param {WasmTransaction} tx
|
|
288
|
+
* @returns {Promise<void>}
|
|
283
289
|
*/
|
|
284
|
-
module.exports.
|
|
285
|
-
|
|
290
|
+
module.exports.propagate_transaction = function(tx) {
|
|
291
|
+
_assertClass(tx, WasmTransaction);
|
|
292
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
286
293
|
return takeObject(ret);
|
|
287
294
|
};
|
|
288
295
|
|
|
289
296
|
/**
|
|
290
297
|
* @param {bigint} peer_index
|
|
291
|
-
* @param {string}
|
|
298
|
+
* @param {string} public_key
|
|
292
299
|
* @returns {Promise<void>}
|
|
293
300
|
*/
|
|
294
|
-
module.exports.
|
|
295
|
-
const ret = wasm.
|
|
301
|
+
module.exports.process_stun_peer = function(peer_index, public_key) {
|
|
302
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
296
303
|
return takeObject(ret);
|
|
297
304
|
};
|
|
298
305
|
|
|
@@ -309,23 +316,24 @@ module.exports.create_transaction_with_multiple_payments = function(public_keys,
|
|
|
309
316
|
};
|
|
310
317
|
|
|
311
318
|
/**
|
|
319
|
+
* @param {Uint8Array} hash
|
|
320
|
+
* @param {bigint} block_id
|
|
312
321
|
* @param {bigint} peer_index
|
|
313
322
|
* @returns {Promise<void>}
|
|
314
323
|
*/
|
|
315
|
-
module.exports.
|
|
316
|
-
const ret = wasm.
|
|
324
|
+
module.exports.process_failed_block_fetch = function(hash, block_id, peer_index) {
|
|
325
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
317
326
|
return takeObject(ret);
|
|
318
327
|
};
|
|
319
328
|
|
|
320
329
|
/**
|
|
321
|
-
* @param {Uint8Array} buffer
|
|
322
330
|
* @param {string} private_key
|
|
323
331
|
* @returns {string}
|
|
324
332
|
*/
|
|
325
|
-
module.exports.
|
|
333
|
+
module.exports.generate_public_key = function(private_key) {
|
|
326
334
|
try {
|
|
327
335
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
328
|
-
wasm.
|
|
336
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
329
337
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
330
338
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
331
339
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -339,36 +347,47 @@ module.exports.sign_buffer = function(buffer, private_key) {
|
|
|
339
347
|
};
|
|
340
348
|
|
|
341
349
|
/**
|
|
342
|
-
* @param {
|
|
343
|
-
* @returns {
|
|
350
|
+
* @param {string} key
|
|
351
|
+
* @returns {boolean}
|
|
344
352
|
*/
|
|
345
|
-
module.exports.
|
|
346
|
-
const ret = wasm.
|
|
353
|
+
module.exports.is_valid_public_key = function(key) {
|
|
354
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
355
|
+
return ret !== 0;
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @returns {Promise<Array<any>>}
|
|
360
|
+
*/
|
|
361
|
+
module.exports.get_nft_list = function() {
|
|
362
|
+
const ret = wasm.get_nft_list();
|
|
347
363
|
return takeObject(ret);
|
|
348
364
|
};
|
|
349
365
|
|
|
350
366
|
/**
|
|
351
|
-
* @returns {Promise<
|
|
367
|
+
* @returns {Promise<WasmBlockchain>}
|
|
352
368
|
*/
|
|
353
|
-
module.exports.
|
|
354
|
-
const ret = wasm.
|
|
369
|
+
module.exports.get_blockchain = function() {
|
|
370
|
+
const ret = wasm.get_blockchain();
|
|
355
371
|
return takeObject(ret);
|
|
356
372
|
};
|
|
357
373
|
|
|
358
374
|
/**
|
|
359
|
-
* @
|
|
375
|
+
* @param {Uint8Array} buffer
|
|
376
|
+
* @param {number} msg_index
|
|
377
|
+
* @param {bigint} peer_index
|
|
378
|
+
* @returns {Promise<void>}
|
|
360
379
|
*/
|
|
361
|
-
module.exports.
|
|
362
|
-
const ret = wasm.
|
|
380
|
+
module.exports.send_api_call = function(buffer, msg_index, peer_index) {
|
|
381
|
+
const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
|
|
363
382
|
return takeObject(ret);
|
|
364
383
|
};
|
|
365
384
|
|
|
366
385
|
/**
|
|
367
386
|
* @param {bigint} peer_index
|
|
368
|
-
* @returns {Promise<
|
|
387
|
+
* @returns {Promise<void>}
|
|
369
388
|
*/
|
|
370
|
-
module.exports.
|
|
371
|
-
const ret = wasm.
|
|
389
|
+
module.exports.remove_stun_peer = function(peer_index) {
|
|
390
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
372
391
|
return takeObject(ret);
|
|
373
392
|
};
|
|
374
393
|
|
|
@@ -382,43 +401,48 @@ module.exports.process_timer_event = function(duration_in_ms) {
|
|
|
382
401
|
};
|
|
383
402
|
|
|
384
403
|
/**
|
|
385
|
-
* @
|
|
404
|
+
* @param {bigint} peer_index
|
|
405
|
+
* @param {string} ip
|
|
406
|
+
* @returns {Promise<void>}
|
|
386
407
|
*/
|
|
387
|
-
module.exports.
|
|
388
|
-
const ret = wasm.
|
|
408
|
+
module.exports.process_new_peer = function(peer_index, ip) {
|
|
409
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
389
410
|
return takeObject(ret);
|
|
390
411
|
};
|
|
391
412
|
|
|
392
413
|
/**
|
|
393
|
-
* @param {
|
|
394
|
-
* @
|
|
395
|
-
* @param {string} slip3_utxo_key
|
|
396
|
-
* @param {number} left_count
|
|
397
|
-
* @param {number} right_count
|
|
398
|
-
* @param {Uint8Array} tx_msg
|
|
399
|
-
* @returns {Promise<WasmTransaction>}
|
|
414
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
415
|
+
* @returns {Promise<void>}
|
|
400
416
|
*/
|
|
401
|
-
module.exports.
|
|
402
|
-
|
|
417
|
+
module.exports.update_from_balance_snapshot = function(snapshot) {
|
|
418
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
419
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
420
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
403
421
|
return takeObject(ret);
|
|
404
422
|
};
|
|
405
423
|
|
|
406
424
|
/**
|
|
407
|
-
* @param {
|
|
408
|
-
* @returns {Promise<
|
|
425
|
+
* @param {Array<any>} keys
|
|
426
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
409
427
|
*/
|
|
410
|
-
module.exports.
|
|
411
|
-
const ret = wasm.
|
|
428
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
429
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
412
430
|
return takeObject(ret);
|
|
413
431
|
};
|
|
414
432
|
|
|
415
433
|
/**
|
|
416
|
-
* @
|
|
417
|
-
* @param {string} public_key
|
|
418
|
-
* @returns {Promise<void>}
|
|
434
|
+
* @returns {Promise<string>}
|
|
419
435
|
*/
|
|
420
|
-
module.exports.
|
|
421
|
-
const ret = wasm.
|
|
436
|
+
module.exports.get_stats = function() {
|
|
437
|
+
const ret = wasm.get_stats();
|
|
438
|
+
return takeObject(ret);
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* @returns {Promise<Array<any>>}
|
|
443
|
+
*/
|
|
444
|
+
module.exports.get_mempool_txs = function() {
|
|
445
|
+
const ret = wasm.get_mempool_txs();
|
|
422
446
|
return takeObject(ret);
|
|
423
447
|
};
|
|
424
448
|
|
|
@@ -431,10 +455,10 @@ module.exports.get_confirmations = function() {
|
|
|
431
455
|
};
|
|
432
456
|
|
|
433
457
|
/**
|
|
434
|
-
* @returns {
|
|
458
|
+
* @returns {string}
|
|
435
459
|
*/
|
|
436
|
-
module.exports.
|
|
437
|
-
const ret = wasm.
|
|
460
|
+
module.exports.generate_private_key = function() {
|
|
461
|
+
const ret = wasm.generate_private_key();
|
|
438
462
|
return takeObject(ret);
|
|
439
463
|
};
|
|
440
464
|
|
|
@@ -450,31 +474,40 @@ module.exports.send_api_error = function(buffer, msg_index, peer_index) {
|
|
|
450
474
|
};
|
|
451
475
|
|
|
452
476
|
/**
|
|
453
|
-
* @
|
|
477
|
+
* @param {bigint} peer_index
|
|
478
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
454
479
|
*/
|
|
455
|
-
module.exports.
|
|
456
|
-
const ret = wasm.
|
|
480
|
+
module.exports.get_peer = function(peer_index) {
|
|
481
|
+
const ret = wasm.get_peer(peer_index);
|
|
457
482
|
return takeObject(ret);
|
|
458
483
|
};
|
|
459
484
|
|
|
460
485
|
/**
|
|
461
|
-
* @
|
|
462
|
-
* @returns {string}
|
|
486
|
+
* @returns {Promise<void>}
|
|
463
487
|
*/
|
|
464
|
-
module.exports.
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
488
|
+
module.exports.start_from_received_ghost_chain = function() {
|
|
489
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
490
|
+
return takeObject(ret);
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* @returns {Promise<void>}
|
|
495
|
+
*/
|
|
496
|
+
module.exports.disable_producing_blocks_by_timer = function() {
|
|
497
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
498
|
+
return takeObject(ret);
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* @param {string} nft_id_hex
|
|
503
|
+
* @param {Uint8Array} tx_msg
|
|
504
|
+
* @returns {Promise<WasmTransaction>}
|
|
505
|
+
*/
|
|
506
|
+
module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
|
|
507
|
+
const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
508
|
+
const len0 = WASM_VECTOR_LEN;
|
|
509
|
+
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
510
|
+
return takeObject(ret);
|
|
478
511
|
};
|
|
479
512
|
|
|
480
513
|
/**
|
|
@@ -502,53 +535,20 @@ module.exports.verify_signature = function(buffer, signature, public_key) {
|
|
|
502
535
|
};
|
|
503
536
|
|
|
504
537
|
/**
|
|
505
|
-
* @param {
|
|
506
|
-
* @
|
|
507
|
-
* @returns {Promise<void>}
|
|
508
|
-
*/
|
|
509
|
-
module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
|
|
510
|
-
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
511
|
-
return takeObject(ret);
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* @param {bigint} num
|
|
516
|
-
* @param {bigint} deposit
|
|
517
|
-
* @param {Uint8Array} tx_msg
|
|
518
|
-
* @param {bigint} fee
|
|
519
|
-
* @param {string} recipient_public_key
|
|
520
|
-
* @param {string} nft_type
|
|
521
|
-
* @returns {Promise<WasmTransaction>}
|
|
522
|
-
*/
|
|
523
|
-
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
524
|
-
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
525
|
-
return takeObject(ret);
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* @returns {Promise<WasmBlockchain>}
|
|
530
|
-
*/
|
|
531
|
-
module.exports.get_blockchain = function() {
|
|
532
|
-
const ret = wasm.get_blockchain();
|
|
533
|
-
return takeObject(ret);
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* @param {Uint8Array} hash
|
|
538
|
-
* @param {bigint} block_id
|
|
539
|
-
* @param {bigint} peer_index
|
|
540
|
-
* @returns {Promise<void>}
|
|
538
|
+
* @param {string} public_key
|
|
539
|
+
* @returns {Promise<Array<any>>}
|
|
541
540
|
*/
|
|
542
|
-
module.exports.
|
|
543
|
-
const ret = wasm.
|
|
541
|
+
module.exports.get_account_slips = function(public_key) {
|
|
542
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
544
543
|
return takeObject(ret);
|
|
545
544
|
};
|
|
546
545
|
|
|
547
546
|
/**
|
|
548
|
-
* @
|
|
547
|
+
* @param {string} block_hash
|
|
548
|
+
* @returns {Promise<WasmBlock>}
|
|
549
549
|
*/
|
|
550
|
-
module.exports.
|
|
551
|
-
const ret = wasm.
|
|
550
|
+
module.exports.get_block = function(block_hash) {
|
|
551
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
552
552
|
return takeObject(ret);
|
|
553
553
|
};
|
|
554
554
|
|
|
@@ -565,171 +565,171 @@ module.exports.create_transaction = function(public_key, amount, fee, force_merg
|
|
|
565
565
|
};
|
|
566
566
|
|
|
567
567
|
/**
|
|
568
|
-
* @param {
|
|
569
|
-
* @
|
|
568
|
+
* @param {Uint8Array} buffer
|
|
569
|
+
* @param {string} private_key
|
|
570
|
+
* @returns {string}
|
|
570
571
|
*/
|
|
571
|
-
module.exports.
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
572
|
+
module.exports.sign_buffer = function(buffer, private_key) {
|
|
573
|
+
try {
|
|
574
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
575
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
576
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
577
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
578
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
579
|
+
if (r2) {
|
|
580
|
+
throw takeObject(r1);
|
|
581
|
+
}
|
|
582
|
+
return takeObject(r0);
|
|
583
|
+
} finally {
|
|
584
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
585
|
+
}
|
|
576
586
|
};
|
|
577
587
|
|
|
578
588
|
/**
|
|
579
|
-
* @param {
|
|
589
|
+
* @param {bigint} current_time
|
|
580
590
|
* @returns {Promise<void>}
|
|
581
591
|
*/
|
|
582
|
-
module.exports.
|
|
583
|
-
|
|
584
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
592
|
+
module.exports.process_stat_interval = function(current_time) {
|
|
593
|
+
const ret = wasm.process_stat_interval(current_time);
|
|
585
594
|
return takeObject(ret);
|
|
586
595
|
};
|
|
587
596
|
|
|
588
597
|
/**
|
|
589
|
-
* @
|
|
590
|
-
* @returns {Promise<void>}
|
|
598
|
+
* @returns {Promise<WasmWallet>}
|
|
591
599
|
*/
|
|
592
|
-
module.exports.
|
|
593
|
-
const ret = wasm.
|
|
600
|
+
module.exports.get_wallet = function() {
|
|
601
|
+
const ret = wasm.get_wallet();
|
|
594
602
|
return takeObject(ret);
|
|
595
603
|
};
|
|
596
604
|
|
|
597
605
|
/**
|
|
598
606
|
* @param {Uint8Array} buffer
|
|
599
|
-
* @param {Uint8Array} hash
|
|
600
|
-
* @param {bigint} block_id
|
|
601
607
|
* @param {bigint} peer_index
|
|
602
608
|
* @returns {Promise<void>}
|
|
603
609
|
*/
|
|
604
|
-
module.exports.
|
|
605
|
-
const ret = wasm.
|
|
610
|
+
module.exports.process_msg_buffer_from_peer = function(buffer, peer_index) {
|
|
611
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
606
612
|
return takeObject(ret);
|
|
607
613
|
};
|
|
608
614
|
|
|
609
615
|
/**
|
|
610
|
-
* @param {
|
|
611
|
-
* @
|
|
616
|
+
* @param {Uint8Array} buffer
|
|
617
|
+
* @param {number} msg_index
|
|
618
|
+
* @param {bigint} peer_index
|
|
619
|
+
* @returns {Promise<void>}
|
|
612
620
|
*/
|
|
613
|
-
module.exports.
|
|
614
|
-
const ret = wasm.
|
|
621
|
+
module.exports.send_api_success = function(buffer, msg_index, peer_index) {
|
|
622
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
615
623
|
return takeObject(ret);
|
|
616
624
|
};
|
|
617
625
|
|
|
618
626
|
/**
|
|
619
|
-
* @
|
|
627
|
+
* @param {string} slip1_utxo_key
|
|
628
|
+
* @param {string} slip2_utxo_key
|
|
629
|
+
* @param {string} slip3_utxo_key
|
|
630
|
+
* @returns {Promise<WasmTransaction>}
|
|
620
631
|
*/
|
|
621
|
-
module.exports.
|
|
622
|
-
const ret = wasm.
|
|
632
|
+
module.exports.create_remove_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key) {
|
|
633
|
+
const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key));
|
|
623
634
|
return takeObject(ret);
|
|
624
635
|
};
|
|
625
636
|
|
|
626
637
|
/**
|
|
627
|
-
* @
|
|
628
|
-
* @returns {boolean}
|
|
638
|
+
* @returns {Promise<string>}
|
|
629
639
|
*/
|
|
630
|
-
module.exports.
|
|
631
|
-
const ret = wasm.
|
|
632
|
-
return ret
|
|
640
|
+
module.exports.get_congestion_stats = function() {
|
|
641
|
+
const ret = wasm.get_congestion_stats();
|
|
642
|
+
return takeObject(ret);
|
|
633
643
|
};
|
|
634
644
|
|
|
635
645
|
/**
|
|
636
|
-
* @
|
|
637
|
-
* @returns {Promise<WasmBlock>}
|
|
646
|
+
* @returns {Promise<boolean>}
|
|
638
647
|
*/
|
|
639
|
-
module.exports.
|
|
640
|
-
const ret = wasm.
|
|
648
|
+
module.exports.produce_block_with_gt = function() {
|
|
649
|
+
const ret = wasm.produce_block_with_gt();
|
|
641
650
|
return takeObject(ret);
|
|
642
651
|
};
|
|
643
652
|
|
|
644
653
|
/**
|
|
645
|
-
* @returns {Promise<
|
|
654
|
+
* @returns {Promise<Array<any>>}
|
|
646
655
|
*/
|
|
647
|
-
module.exports.
|
|
648
|
-
const ret = wasm.
|
|
656
|
+
module.exports.get_peers = function() {
|
|
657
|
+
const ret = wasm.get_peers();
|
|
649
658
|
return takeObject(ret);
|
|
650
659
|
};
|
|
651
660
|
|
|
652
661
|
/**
|
|
653
|
-
* @param {
|
|
654
|
-
* @param {
|
|
655
|
-
* @param {
|
|
656
|
-
* @
|
|
657
|
-
* @param {string} recipient_public_key
|
|
658
|
-
* @param {Uint8Array} tx_msg
|
|
659
|
-
* @returns {Promise<WasmTransaction>}
|
|
662
|
+
* @param {number} major
|
|
663
|
+
* @param {number} minor
|
|
664
|
+
* @param {number} patch
|
|
665
|
+
* @returns {Promise<void>}
|
|
660
666
|
*/
|
|
661
|
-
module.exports.
|
|
662
|
-
const ret = wasm.
|
|
667
|
+
module.exports.set_wallet_version = function(major, minor, patch) {
|
|
668
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
663
669
|
return takeObject(ret);
|
|
664
670
|
};
|
|
665
671
|
|
|
666
672
|
/**
|
|
667
|
-
* @returns {Promise<
|
|
673
|
+
* @returns {Promise<boolean>}
|
|
668
674
|
*/
|
|
669
|
-
module.exports.
|
|
670
|
-
const ret = wasm.
|
|
675
|
+
module.exports.produce_block_without_gt = function() {
|
|
676
|
+
const ret = wasm.produce_block_without_gt();
|
|
671
677
|
return takeObject(ret);
|
|
672
678
|
};
|
|
673
679
|
|
|
674
680
|
/**
|
|
675
|
-
* @returns {Promise<
|
|
681
|
+
* @returns {Promise<string>}
|
|
676
682
|
*/
|
|
677
|
-
module.exports.
|
|
678
|
-
const ret = wasm.
|
|
683
|
+
module.exports.get_latest_block_hash = function() {
|
|
684
|
+
const ret = wasm.get_latest_block_hash();
|
|
679
685
|
return takeObject(ret);
|
|
680
686
|
};
|
|
681
687
|
|
|
682
688
|
/**
|
|
683
689
|
* @param {Uint8Array} buffer
|
|
684
|
-
* @param {
|
|
690
|
+
* @param {Uint8Array} hash
|
|
691
|
+
* @param {bigint} block_id
|
|
685
692
|
* @param {bigint} peer_index
|
|
686
693
|
* @returns {Promise<void>}
|
|
687
694
|
*/
|
|
688
|
-
module.exports.
|
|
689
|
-
const ret = wasm.
|
|
690
|
-
return takeObject(ret);
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* @param {Array<any>} keys
|
|
695
|
-
* @returns {Promise<WasmBalanceSnapshot>}
|
|
696
|
-
*/
|
|
697
|
-
module.exports.get_balance_snapshot = function(keys) {
|
|
698
|
-
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
695
|
+
module.exports.process_fetched_block = function(buffer, hash, block_id, peer_index) {
|
|
696
|
+
const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_index);
|
|
699
697
|
return takeObject(ret);
|
|
700
698
|
};
|
|
701
699
|
|
|
702
700
|
/**
|
|
703
|
-
* @
|
|
704
|
-
* @param {number} msg_index
|
|
705
|
-
* @param {bigint} peer_index
|
|
706
|
-
* @returns {Promise<void>}
|
|
701
|
+
* @returns {Promise<bigint>}
|
|
707
702
|
*/
|
|
708
|
-
module.exports.
|
|
709
|
-
const ret = wasm.
|
|
703
|
+
module.exports.get_next_peer_index = function() {
|
|
704
|
+
const ret = wasm.get_next_peer_index();
|
|
710
705
|
return takeObject(ret);
|
|
711
706
|
};
|
|
712
707
|
|
|
713
708
|
/**
|
|
714
|
-
* @param {string}
|
|
709
|
+
* @param {string} slip1_utxo_key
|
|
710
|
+
* @param {string} slip2_utxo_key
|
|
711
|
+
* @param {string} slip3_utxo_key
|
|
712
|
+
* @param {number} left_count
|
|
713
|
+
* @param {number} right_count
|
|
715
714
|
* @param {Uint8Array} tx_msg
|
|
716
715
|
* @returns {Promise<WasmTransaction>}
|
|
717
716
|
*/
|
|
718
|
-
module.exports.
|
|
719
|
-
const
|
|
720
|
-
const len0 = WASM_VECTOR_LEN;
|
|
721
|
-
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
717
|
+
module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
718
|
+
const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count, addHeapObject(tx_msg));
|
|
722
719
|
return takeObject(ret);
|
|
723
720
|
};
|
|
724
721
|
|
|
725
722
|
/**
|
|
726
|
-
* @param {
|
|
727
|
-
* @param {
|
|
728
|
-
* @param {
|
|
729
|
-
* @
|
|
723
|
+
* @param {bigint} amt
|
|
724
|
+
* @param {string} slip1_utxo_key
|
|
725
|
+
* @param {string} slip2_utxo_key
|
|
726
|
+
* @param {string} slip3_utxo_key
|
|
727
|
+
* @param {string} recipient_public_key
|
|
728
|
+
* @param {Uint8Array} tx_msg
|
|
729
|
+
* @returns {Promise<WasmTransaction>}
|
|
730
730
|
*/
|
|
731
|
-
module.exports.
|
|
732
|
-
const ret = wasm.
|
|
731
|
+
module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
732
|
+
const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(recipient_public_key), addHeapObject(tx_msg));
|
|
733
733
|
return takeObject(ret);
|
|
734
734
|
};
|
|
735
735
|
|
|
@@ -2652,22 +2652,22 @@ class WasmWalletSlip {
|
|
|
2652
2652
|
}
|
|
2653
2653
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2654
2654
|
|
|
2655
|
-
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2656
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2657
|
-
return addHeapObject(ret);
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
2655
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2661
2656
|
takeObject(arg0);
|
|
2662
2657
|
};
|
|
2663
2658
|
|
|
2664
|
-
module.exports.
|
|
2665
|
-
const ret =
|
|
2659
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2660
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2666
2661
|
return addHeapObject(ret);
|
|
2667
2662
|
};
|
|
2668
2663
|
|
|
2669
|
-
module.exports.
|
|
2670
|
-
const ret =
|
|
2664
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2665
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2666
|
+
return addHeapObject(ret);
|
|
2667
|
+
};
|
|
2668
|
+
|
|
2669
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2670
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2671
2671
|
return addHeapObject(ret);
|
|
2672
2672
|
};
|
|
2673
2673
|
|
|
@@ -2680,28 +2680,23 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2680
2680
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2681
2681
|
};
|
|
2682
2682
|
|
|
2683
|
-
module.exports.
|
|
2684
|
-
const ret =
|
|
2685
|
-
return addHeapObject(ret);
|
|
2686
|
-
};
|
|
2687
|
-
|
|
2688
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2689
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2683
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2684
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2690
2685
|
return addHeapObject(ret);
|
|
2691
2686
|
};
|
|
2692
2687
|
|
|
2693
|
-
module.exports.
|
|
2694
|
-
const ret =
|
|
2688
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2689
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2695
2690
|
return addHeapObject(ret);
|
|
2696
2691
|
};
|
|
2697
2692
|
|
|
2698
|
-
module.exports.
|
|
2699
|
-
const ret =
|
|
2693
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2694
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2700
2695
|
return addHeapObject(ret);
|
|
2701
2696
|
};
|
|
2702
2697
|
|
|
2703
|
-
module.exports.
|
|
2704
|
-
const ret =
|
|
2698
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2699
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2705
2700
|
return addHeapObject(ret);
|
|
2706
2701
|
};
|
|
2707
2702
|
|
|
@@ -2710,13 +2705,13 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
|
2710
2705
|
return addHeapObject(ret);
|
|
2711
2706
|
};
|
|
2712
2707
|
|
|
2713
|
-
module.exports.
|
|
2714
|
-
const ret =
|
|
2708
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2709
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2715
2710
|
return addHeapObject(ret);
|
|
2716
2711
|
};
|
|
2717
2712
|
|
|
2718
|
-
module.exports.
|
|
2719
|
-
const ret =
|
|
2713
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2714
|
+
const ret = getObject(arg0);
|
|
2720
2715
|
return addHeapObject(ret);
|
|
2721
2716
|
};
|
|
2722
2717
|
|
|
@@ -2725,6 +2720,11 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2725
2720
|
return addHeapObject(ret);
|
|
2726
2721
|
};
|
|
2727
2722
|
|
|
2723
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2724
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2725
|
+
return addHeapObject(ret);
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
2728
|
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2729
2729
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2730
2730
|
return addHeapObject(ret);
|
|
@@ -2756,7 +2756,7 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2756
2756
|
return ret;
|
|
2757
2757
|
};
|
|
2758
2758
|
|
|
2759
|
-
module.exports.
|
|
2759
|
+
module.exports.__wbg_flushdata_571e46cce4f70e72 = function(arg0, arg1) {
|
|
2760
2760
|
let deferred0_0;
|
|
2761
2761
|
let deferred0_1;
|
|
2762
2762
|
try {
|
|
@@ -2768,7 +2768,7 @@ module.exports.__wbg_flushdata_808d365e0b29c0a2 = function(arg0, arg1) {
|
|
|
2768
2768
|
}
|
|
2769
2769
|
};
|
|
2770
2770
|
|
|
2771
|
-
module.exports.
|
|
2771
|
+
module.exports.__wbg_readvalue_0023aabd3b029c28 = function() { return handleError(function (arg0, arg1) {
|
|
2772
2772
|
let deferred0_0;
|
|
2773
2773
|
let deferred0_1;
|
|
2774
2774
|
try {
|
|
@@ -2781,15 +2781,15 @@ module.exports.__wbg_readvalue_477650491ff9e695 = function() { return handleErro
|
|
|
2781
2781
|
}
|
|
2782
2782
|
}, arguments) };
|
|
2783
2783
|
|
|
2784
|
-
module.exports.
|
|
2784
|
+
module.exports.__wbg_loadwallet_c7d36edfd9b3141c = function() {
|
|
2785
2785
|
MsgHandler.load_wallet();
|
|
2786
2786
|
};
|
|
2787
2787
|
|
|
2788
|
-
module.exports.
|
|
2788
|
+
module.exports.__wbg_savewallet_7f660732fea84939 = function() {
|
|
2789
2789
|
MsgHandler.save_wallet();
|
|
2790
2790
|
};
|
|
2791
2791
|
|
|
2792
|
-
module.exports.
|
|
2792
|
+
module.exports.__wbg_writevalue_a37456c36a13f7c1 = function(arg0, arg1, arg2) {
|
|
2793
2793
|
let deferred0_0;
|
|
2794
2794
|
let deferred0_1;
|
|
2795
2795
|
try {
|
|
@@ -2801,7 +2801,7 @@ module.exports.__wbg_writevalue_a276627f5b0daa75 = function(arg0, arg1, arg2) {
|
|
|
2801
2801
|
}
|
|
2802
2802
|
};
|
|
2803
2803
|
|
|
2804
|
-
module.exports.
|
|
2804
|
+
module.exports.__wbg_appendvalue_5e41b908bebdda6f = function(arg0, arg1, arg2) {
|
|
2805
2805
|
let deferred0_0;
|
|
2806
2806
|
let deferred0_1;
|
|
2807
2807
|
try {
|
|
@@ -2813,7 +2813,7 @@ module.exports.__wbg_appendvalue_a0ebb6a0493e9646 = function(arg0, arg1, arg2) {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
};
|
|
2815
2815
|
|
|
2816
|
-
module.exports.
|
|
2816
|
+
module.exports.__wbg_removevalue_942827cd11acedcd = function() { return handleError(function (arg0, arg1) {
|
|
2817
2817
|
let deferred0_0;
|
|
2818
2818
|
let deferred0_1;
|
|
2819
2819
|
try {
|
|
@@ -2826,11 +2826,11 @@ module.exports.__wbg_removevalue_bc2f16573f079618 = function() { return handleEr
|
|
|
2826
2826
|
}
|
|
2827
2827
|
}, arguments) };
|
|
2828
2828
|
|
|
2829
|
-
module.exports.
|
|
2829
|
+
module.exports.__wbg_sendmessage_586a19ec4082b8fb = function(arg0, arg1) {
|
|
2830
2830
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2831
2831
|
};
|
|
2832
2832
|
|
|
2833
|
-
module.exports.
|
|
2833
|
+
module.exports.__wbg_connecttopeer_da5cf59d8cfa1695 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2834
2834
|
let deferred0_0;
|
|
2835
2835
|
let deferred0_1;
|
|
2836
2836
|
try {
|
|
@@ -2843,14 +2843,14 @@ module.exports.__wbg_connecttopeer_736987b1f0448891 = function() { return handle
|
|
|
2843
2843
|
}
|
|
2844
2844
|
}, arguments) };
|
|
2845
2845
|
|
|
2846
|
-
module.exports.
|
|
2846
|
+
module.exports.__wbg_getmyservices_4cd3d2838160a2e4 = function() {
|
|
2847
2847
|
const ret = MsgHandler.get_my_services();
|
|
2848
2848
|
_assertClass(ret, WasmPeerServiceList);
|
|
2849
2849
|
var ptr1 = ret.__destroy_into_raw();
|
|
2850
2850
|
return ptr1;
|
|
2851
2851
|
};
|
|
2852
2852
|
|
|
2853
|
-
module.exports.
|
|
2853
|
+
module.exports.__wbg_isexistingfile_dfbccf2cbef6e84d = function() { return handleError(function (arg0, arg1) {
|
|
2854
2854
|
let deferred0_0;
|
|
2855
2855
|
let deferred0_1;
|
|
2856
2856
|
try {
|
|
@@ -2863,33 +2863,33 @@ module.exports.__wbg_isexistingfile_1613c50ce134b84a = function() { return handl
|
|
|
2863
2863
|
}
|
|
2864
2864
|
}, arguments) };
|
|
2865
2865
|
|
|
2866
|
-
module.exports.
|
|
2866
|
+
module.exports.__wbg_processapicall_acd7d33fd42c3d1f = function(arg0, arg1, arg2) {
|
|
2867
2867
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2868
2868
|
};
|
|
2869
2869
|
|
|
2870
|
-
module.exports.
|
|
2870
|
+
module.exports.__wbg_processapierror_ab72949eda06b691 = function(arg0, arg1, arg2) {
|
|
2871
2871
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
|
-
module.exports.
|
|
2874
|
+
module.exports.__wbg_processapisuccess_961e9892246de79c = function(arg0, arg1, arg2) {
|
|
2875
2875
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2876
2876
|
};
|
|
2877
2877
|
|
|
2878
|
-
module.exports.
|
|
2878
|
+
module.exports.__wbg_sendmessagetoall_11e5fcfef1b07a13 = function(arg0, arg1) {
|
|
2879
2879
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2880
2880
|
};
|
|
2881
2881
|
|
|
2882
|
-
module.exports.
|
|
2882
|
+
module.exports.__wbg_disconnectfrompeer_5c175d44122eb2c6 = function() { return handleError(function (arg0) {
|
|
2883
2883
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2884
2884
|
return addHeapObject(ret);
|
|
2885
2885
|
}, arguments) };
|
|
2886
2886
|
|
|
2887
|
-
module.exports.
|
|
2887
|
+
module.exports.__wbg_loadblockfilelist_b7839cc4defb38f4 = function() { return handleError(function () {
|
|
2888
2888
|
const ret = MsgHandler.load_block_file_list();
|
|
2889
2889
|
return addHeapObject(ret);
|
|
2890
2890
|
}, arguments) };
|
|
2891
2891
|
|
|
2892
|
-
module.exports.
|
|
2892
|
+
module.exports.__wbg_sendinterfaceevent_a6e7d41837b235e5 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2893
2893
|
let deferred0_0;
|
|
2894
2894
|
let deferred0_1;
|
|
2895
2895
|
let deferred1_0;
|
|
@@ -2906,7 +2906,7 @@ module.exports.__wbg_sendinterfaceevent_00bfe127965dc99e = function(arg0, arg1,
|
|
|
2906
2906
|
}
|
|
2907
2907
|
};
|
|
2908
2908
|
|
|
2909
|
-
module.exports.
|
|
2909
|
+
module.exports.__wbg_sendblocksuccess_3b8aec2ff636f96a = function(arg0, arg1, arg2) {
|
|
2910
2910
|
let deferred0_0;
|
|
2911
2911
|
let deferred0_1;
|
|
2912
2912
|
try {
|
|
@@ -2918,11 +2918,11 @@ module.exports.__wbg_sendblocksuccess_63460f2639b4b899 = function(arg0, arg1, ar
|
|
|
2918
2918
|
}
|
|
2919
2919
|
};
|
|
2920
2920
|
|
|
2921
|
-
module.exports.
|
|
2921
|
+
module.exports.__wbg_sendwalletupdate_7adec123401b1a23 = function() {
|
|
2922
2922
|
MsgHandler.send_wallet_update();
|
|
2923
2923
|
};
|
|
2924
2924
|
|
|
2925
|
-
module.exports.
|
|
2925
|
+
module.exports.__wbg_sendnewversionalert_a07a565734d2fc1d = function(arg0, arg1, arg2) {
|
|
2926
2926
|
let deferred0_0;
|
|
2927
2927
|
let deferred0_1;
|
|
2928
2928
|
try {
|
|
@@ -2934,15 +2934,15 @@ module.exports.__wbg_sendnewversionalert_e45716b22ec97837 = function(arg0, arg1,
|
|
|
2934
2934
|
}
|
|
2935
2935
|
};
|
|
2936
2936
|
|
|
2937
|
-
module.exports.
|
|
2937
|
+
module.exports.__wbg_sendblockfetchstatusevent_1d40c9cc7dd2eab0 = function(arg0) {
|
|
2938
2938
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2939
2939
|
};
|
|
2940
2940
|
|
|
2941
|
-
module.exports.
|
|
2941
|
+
module.exports.__wbg_sendnewchaindetectedevent_32e1d671ab68b024 = function() {
|
|
2942
2942
|
MsgHandler.send_new_chain_detected_event();
|
|
2943
2943
|
};
|
|
2944
2944
|
|
|
2945
|
-
module.exports.
|
|
2945
|
+
module.exports.__wbg_fetchblockfrompeer_8c4ed4e20aed0348 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2946
2946
|
let deferred0_0;
|
|
2947
2947
|
let deferred0_1;
|
|
2948
2948
|
try {
|
|
@@ -2955,7 +2955,7 @@ module.exports.__wbg_fetchblockfrompeer_5132eaf236da1718 = function() { return h
|
|
|
2955
2955
|
}
|
|
2956
2956
|
}, arguments) };
|
|
2957
2957
|
|
|
2958
|
-
module.exports.
|
|
2958
|
+
module.exports.__wbg_ensuredirectoryexists_9661b66ed6842ef4 = function() { return handleError(function (arg0, arg1) {
|
|
2959
2959
|
let deferred0_0;
|
|
2960
2960
|
let deferred0_1;
|
|
2961
2961
|
try {
|
|
@@ -3343,8 +3343,8 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
|
3343
3343
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
3344
3344
|
};
|
|
3345
3345
|
|
|
3346
|
-
module.exports.
|
|
3347
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3346
|
+
module.exports.__wbindgen_closure_wrapper1554 = function(arg0, arg1, arg2) {
|
|
3347
|
+
const ret = makeMutClosure(arg0, arg1, 572, __wbg_adapter_38);
|
|
3348
3348
|
return addHeapObject(ret);
|
|
3349
3349
|
};
|
|
3350
3350
|
|