saito-wasm 0.2.179 → 0.2.180
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 +145 -145
- package/pkg/node/index.js +294 -294
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +145 -145
- package/pkg/web/index.js +293 -293
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-cb5d42cd87cbad30 → saito-wasm-572c1aae3abbfe8d}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-cb5d42cd87cbad30 → saito-wasm-572c1aae3abbfe8d}/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-572c1aae3abbfe8d/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -10,15 +10,6 @@ function getObject(idx) { return heap[idx]; }
|
|
|
10
10
|
|
|
11
11
|
let heap_next = heap.length;
|
|
12
12
|
|
|
13
|
-
function addHeapObject(obj) {
|
|
14
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
15
|
-
const idx = heap_next;
|
|
16
|
-
heap_next = heap[idx];
|
|
17
|
-
|
|
18
|
-
heap[idx] = obj;
|
|
19
|
-
return idx;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
13
|
function dropObject(idx) {
|
|
23
14
|
if (idx < 132) return;
|
|
24
15
|
heap[idx] = heap_next;
|
|
@@ -31,6 +22,15 @@ function takeObject(idx) {
|
|
|
31
22
|
return ret;
|
|
32
23
|
}
|
|
33
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
34
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
35
35
|
|
|
36
36
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -233,131 +233,104 @@ function _assertClass(instance, klass) {
|
|
|
233
233
|
return instance.ptr;
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
|
-
* @
|
|
236
|
+
* @param {Uint8Array} buffer
|
|
237
|
+
* @param {string} private_key
|
|
238
|
+
* @returns {string}
|
|
237
239
|
*/
|
|
238
|
-
export function
|
|
239
|
-
|
|
240
|
-
|
|
240
|
+
export function sign_buffer(buffer, private_key) {
|
|
241
|
+
try {
|
|
242
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
243
|
+
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
244
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
245
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
246
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
247
|
+
if (r2) {
|
|
248
|
+
throw takeObject(r1);
|
|
249
|
+
}
|
|
250
|
+
return takeObject(r0);
|
|
251
|
+
} finally {
|
|
252
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
253
|
+
}
|
|
241
254
|
}
|
|
242
255
|
|
|
243
256
|
/**
|
|
244
257
|
* @param {bigint} peer_index
|
|
245
|
-
* @returns {Promise<
|
|
246
|
-
*/
|
|
247
|
-
export function remove_stun_peer(peer_index) {
|
|
248
|
-
const ret = wasm.remove_stun_peer(peer_index);
|
|
249
|
-
return takeObject(ret);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* @param {string} slip1_utxo_key
|
|
254
|
-
* @param {string} slip2_utxo_key
|
|
255
|
-
* @param {string} slip3_utxo_key
|
|
256
|
-
* @param {number} left_count
|
|
257
|
-
* @param {number} right_count
|
|
258
|
-
* @param {Uint8Array} tx_msg
|
|
259
|
-
* @returns {Promise<WasmTransaction>}
|
|
258
|
+
* @returns {Promise<WasmPeer | undefined>}
|
|
260
259
|
*/
|
|
261
|
-
export function
|
|
262
|
-
const ret = wasm.
|
|
260
|
+
export function get_peer(peer_index) {
|
|
261
|
+
const ret = wasm.get_peer(peer_index);
|
|
263
262
|
return takeObject(ret);
|
|
264
263
|
}
|
|
265
264
|
|
|
266
265
|
/**
|
|
267
|
-
* @
|
|
268
|
-
* @param {string} ip
|
|
269
|
-
* @returns {Promise<void>}
|
|
266
|
+
* @returns {string}
|
|
270
267
|
*/
|
|
271
|
-
export function
|
|
272
|
-
const ret = wasm.
|
|
268
|
+
export function generate_private_key() {
|
|
269
|
+
const ret = wasm.generate_private_key();
|
|
273
270
|
return takeObject(ret);
|
|
274
271
|
}
|
|
275
272
|
|
|
276
273
|
/**
|
|
277
274
|
* @returns {Promise<string>}
|
|
278
275
|
*/
|
|
279
|
-
export function
|
|
280
|
-
const ret = wasm.
|
|
276
|
+
export function get_latest_block_hash() {
|
|
277
|
+
const ret = wasm.get_latest_block_hash();
|
|
281
278
|
return takeObject(ret);
|
|
282
279
|
}
|
|
283
280
|
|
|
284
281
|
/**
|
|
285
|
-
* @param {
|
|
286
|
-
* @
|
|
287
|
-
* @param {bigint} fee
|
|
288
|
-
* @param {boolean} _force_merge
|
|
289
|
-
* @returns {Promise<WasmTransaction>}
|
|
282
|
+
* @param {string} public_key
|
|
283
|
+
* @returns {Promise<Array<any>>}
|
|
290
284
|
*/
|
|
291
|
-
export function
|
|
292
|
-
const ret = wasm.
|
|
285
|
+
export function get_account_slips(public_key) {
|
|
286
|
+
const ret = wasm.get_account_slips(addHeapObject(public_key));
|
|
293
287
|
return takeObject(ret);
|
|
294
288
|
}
|
|
295
289
|
|
|
296
290
|
/**
|
|
297
|
-
* @param {string}
|
|
298
|
-
* @returns {
|
|
299
|
-
*/
|
|
300
|
-
export function generate_public_key(private_key) {
|
|
301
|
-
try {
|
|
302
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
303
|
-
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
304
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
305
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
306
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
307
|
-
if (r2) {
|
|
308
|
-
throw takeObject(r1);
|
|
309
|
-
}
|
|
310
|
-
return takeObject(r0);
|
|
311
|
-
} finally {
|
|
312
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* @param {bigint} num
|
|
318
|
-
* @param {bigint} deposit
|
|
319
|
-
* @param {Uint8Array} tx_msg
|
|
320
|
-
* @param {bigint} fee
|
|
321
|
-
* @param {string} recipient_public_key
|
|
322
|
-
* @param {string} nft_type
|
|
323
|
-
* @returns {Promise<WasmTransaction>}
|
|
291
|
+
* @param {string} key
|
|
292
|
+
* @returns {boolean}
|
|
324
293
|
*/
|
|
325
|
-
export function
|
|
326
|
-
const ret = wasm.
|
|
327
|
-
return
|
|
294
|
+
export function is_valid_public_key(key) {
|
|
295
|
+
const ret = wasm.is_valid_public_key(addHeapObject(key));
|
|
296
|
+
return ret !== 0;
|
|
328
297
|
}
|
|
329
298
|
|
|
330
299
|
/**
|
|
331
|
-
* @
|
|
300
|
+
* @param {Uint8Array} buffer
|
|
301
|
+
* @param {string} signature
|
|
302
|
+
* @param {string} public_key
|
|
303
|
+
* @returns {boolean}
|
|
332
304
|
*/
|
|
333
|
-
export function
|
|
334
|
-
const ret = wasm.
|
|
335
|
-
return
|
|
305
|
+
export function verify_signature(buffer, signature, public_key) {
|
|
306
|
+
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
307
|
+
return ret !== 0;
|
|
336
308
|
}
|
|
337
309
|
|
|
338
310
|
/**
|
|
339
|
-
* @returns {Promise<
|
|
311
|
+
* @returns {Promise<Array<any>>}
|
|
340
312
|
*/
|
|
341
|
-
export function
|
|
342
|
-
const ret = wasm.
|
|
313
|
+
export function get_mempool_txs() {
|
|
314
|
+
const ret = wasm.get_mempool_txs();
|
|
343
315
|
return takeObject(ret);
|
|
344
316
|
}
|
|
345
317
|
|
|
346
318
|
/**
|
|
347
|
-
* @param {
|
|
319
|
+
* @param {Uint8Array} buffer
|
|
320
|
+
* @param {number} msg_index
|
|
321
|
+
* @param {bigint} peer_index
|
|
348
322
|
* @returns {Promise<void>}
|
|
349
323
|
*/
|
|
350
|
-
export function
|
|
351
|
-
|
|
352
|
-
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
324
|
+
export function send_api_error(buffer, msg_index, peer_index) {
|
|
325
|
+
const ret = wasm.send_api_error(addHeapObject(buffer), msg_index, peer_index);
|
|
353
326
|
return takeObject(ret);
|
|
354
327
|
}
|
|
355
328
|
|
|
356
329
|
/**
|
|
357
|
-
* @returns {
|
|
330
|
+
* @returns {Promise<Array<any>>}
|
|
358
331
|
*/
|
|
359
|
-
export function
|
|
360
|
-
const ret = wasm.
|
|
332
|
+
export function get_peers() {
|
|
333
|
+
const ret = wasm.get_peers();
|
|
361
334
|
return takeObject(ret);
|
|
362
335
|
}
|
|
363
336
|
|
|
@@ -374,140 +347,134 @@ export function process_fetched_block(buffer, hash, block_id, peer_index) {
|
|
|
374
347
|
}
|
|
375
348
|
|
|
376
349
|
/**
|
|
377
|
-
* @
|
|
378
|
-
* @param {string} public_key
|
|
379
|
-
* @returns {Promise<void>}
|
|
350
|
+
* @returns {Promise<string>}
|
|
380
351
|
*/
|
|
381
|
-
export function
|
|
382
|
-
const ret = wasm.
|
|
352
|
+
export function get_peer_stats() {
|
|
353
|
+
const ret = wasm.get_peer_stats();
|
|
383
354
|
return takeObject(ret);
|
|
384
355
|
}
|
|
385
356
|
|
|
386
357
|
/**
|
|
387
|
-
* @
|
|
388
|
-
* @param {string} slip2_utxo_key
|
|
389
|
-
* @param {string} slip3_utxo_key
|
|
390
|
-
* @param {Uint8Array} tx_msg
|
|
391
|
-
* @returns {Promise<WasmTransaction>}
|
|
358
|
+
* @returns {Promise<string>}
|
|
392
359
|
*/
|
|
393
|
-
export function
|
|
394
|
-
const ret = wasm.
|
|
360
|
+
export function get_stats() {
|
|
361
|
+
const ret = wasm.get_stats();
|
|
395
362
|
return takeObject(ret);
|
|
396
363
|
}
|
|
397
364
|
|
|
398
365
|
/**
|
|
399
|
-
* @param {
|
|
400
|
-
* @
|
|
366
|
+
* @param {bigint} peer_index
|
|
367
|
+
* @param {string} ip
|
|
368
|
+
* @returns {Promise<void>}
|
|
401
369
|
*/
|
|
402
|
-
export function
|
|
403
|
-
const ret = wasm.
|
|
370
|
+
export function process_new_peer(peer_index, ip) {
|
|
371
|
+
const ret = wasm.process_new_peer(peer_index, addHeapObject(ip));
|
|
404
372
|
return takeObject(ret);
|
|
405
373
|
}
|
|
406
374
|
|
|
407
375
|
/**
|
|
408
|
-
* @param {
|
|
409
|
-
* @
|
|
410
|
-
* @returns {string}
|
|
376
|
+
* @param {bigint} threshold
|
|
377
|
+
* @returns {Promise<void>}
|
|
411
378
|
*/
|
|
412
|
-
export function
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
|
|
416
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
417
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
418
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
419
|
-
if (r2) {
|
|
420
|
-
throw takeObject(r1);
|
|
421
|
-
}
|
|
422
|
-
return takeObject(r0);
|
|
423
|
-
} finally {
|
|
424
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
425
|
-
}
|
|
379
|
+
export function write_issuance_file(threshold) {
|
|
380
|
+
const ret = wasm.write_issuance_file(threshold);
|
|
381
|
+
return takeObject(ret);
|
|
426
382
|
}
|
|
427
383
|
|
|
428
384
|
/**
|
|
429
|
-
* @
|
|
385
|
+
* @param {Array<any>} public_keys
|
|
386
|
+
* @param {BigUint64Array} amounts
|
|
387
|
+
* @param {bigint} fee
|
|
388
|
+
* @param {boolean} _force_merge
|
|
389
|
+
* @returns {Promise<WasmTransaction>}
|
|
430
390
|
*/
|
|
431
|
-
export function
|
|
432
|
-
const ret = wasm.
|
|
391
|
+
export function create_transaction_with_multiple_payments(public_keys, amounts, fee, _force_merge) {
|
|
392
|
+
const ret = wasm.create_transaction_with_multiple_payments(addHeapObject(public_keys), addHeapObject(amounts), fee, _force_merge);
|
|
433
393
|
return takeObject(ret);
|
|
434
394
|
}
|
|
435
395
|
|
|
436
396
|
/**
|
|
437
|
-
* @
|
|
438
|
-
* @returns {Promise<void>}
|
|
397
|
+
* @returns {Promise<Array<any>>}
|
|
439
398
|
*/
|
|
440
|
-
export function
|
|
441
|
-
const ret = wasm.
|
|
399
|
+
export function get_nft_list() {
|
|
400
|
+
const ret = wasm.get_nft_list();
|
|
442
401
|
return takeObject(ret);
|
|
443
402
|
}
|
|
444
403
|
|
|
445
404
|
/**
|
|
446
|
-
* @param {
|
|
447
|
-
* @
|
|
448
|
-
* @param {number} log_level_num
|
|
449
|
-
* @param {bigint} hasten_multiplier
|
|
450
|
-
* @param {boolean} delete_old_blocks
|
|
451
|
-
* @returns {Promise<any>}
|
|
405
|
+
* @param {WasmBalanceSnapshot} snapshot
|
|
406
|
+
* @returns {Promise<void>}
|
|
452
407
|
*/
|
|
453
|
-
export function
|
|
454
|
-
|
|
408
|
+
export function update_from_balance_snapshot(snapshot) {
|
|
409
|
+
_assertClass(snapshot, WasmBalanceSnapshot);
|
|
410
|
+
var ptr0 = snapshot.__destroy_into_raw();
|
|
411
|
+
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
455
412
|
return takeObject(ret);
|
|
456
413
|
}
|
|
457
414
|
|
|
458
415
|
/**
|
|
459
|
-
* @returns {Promise<
|
|
416
|
+
* @returns {Promise<any>}
|
|
460
417
|
*/
|
|
461
|
-
export function
|
|
462
|
-
const ret = wasm.
|
|
418
|
+
export function get_confirmations() {
|
|
419
|
+
const ret = wasm.get_confirmations();
|
|
463
420
|
return takeObject(ret);
|
|
464
421
|
}
|
|
465
422
|
|
|
466
423
|
/**
|
|
467
|
-
* @
|
|
424
|
+
* @param {number} major
|
|
425
|
+
* @param {number} minor
|
|
426
|
+
* @param {number} patch
|
|
427
|
+
* @returns {Promise<void>}
|
|
468
428
|
*/
|
|
469
|
-
export function
|
|
470
|
-
const ret = wasm.
|
|
429
|
+
export function set_wallet_version(major, minor, patch) {
|
|
430
|
+
const ret = wasm.set_wallet_version(major, minor, patch);
|
|
471
431
|
return takeObject(ret);
|
|
472
432
|
}
|
|
473
433
|
|
|
474
434
|
/**
|
|
475
|
-
* @param {Uint8Array} hash
|
|
476
|
-
* @param {bigint} block_id
|
|
477
|
-
* @param {bigint} peer_index
|
|
478
435
|
* @returns {Promise<void>}
|
|
479
436
|
*/
|
|
480
|
-
export function
|
|
481
|
-
const ret = wasm.
|
|
437
|
+
export function start_from_received_ghost_chain() {
|
|
438
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
482
439
|
return takeObject(ret);
|
|
483
440
|
}
|
|
484
441
|
|
|
485
442
|
/**
|
|
486
|
-
* @
|
|
487
|
-
* @param {number} msg_index
|
|
488
|
-
* @param {bigint} peer_index
|
|
489
|
-
* @returns {Promise<void>}
|
|
443
|
+
* @returns {Promise<bigint>}
|
|
490
444
|
*/
|
|
491
|
-
export function
|
|
492
|
-
const ret = wasm.
|
|
445
|
+
export function get_next_peer_index() {
|
|
446
|
+
const ret = wasm.get_next_peer_index();
|
|
493
447
|
return takeObject(ret);
|
|
494
448
|
}
|
|
495
449
|
|
|
450
|
+
/**
|
|
451
|
+
* @param {string} private_key
|
|
452
|
+
* @returns {string}
|
|
453
|
+
*/
|
|
454
|
+
export function generate_public_key(private_key) {
|
|
455
|
+
try {
|
|
456
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
457
|
+
wasm.generate_public_key(retptr, addHeapObject(private_key));
|
|
458
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
459
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
460
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
461
|
+
if (r2) {
|
|
462
|
+
throw takeObject(r1);
|
|
463
|
+
}
|
|
464
|
+
return takeObject(r0);
|
|
465
|
+
} finally {
|
|
466
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
496
470
|
/**
|
|
497
471
|
* @param {Uint8Array} buffer
|
|
472
|
+
* @param {number} msg_index
|
|
498
473
|
* @param {bigint} peer_index
|
|
499
474
|
* @returns {Promise<void>}
|
|
500
475
|
*/
|
|
501
|
-
export function
|
|
502
|
-
const ret = wasm.
|
|
503
|
-
return takeObject(ret);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* @returns {Promise<string>}
|
|
508
|
-
*/
|
|
509
|
-
export function get_peer_stats() {
|
|
510
|
-
const ret = wasm.get_peer_stats();
|
|
476
|
+
export function send_api_call(buffer, msg_index, peer_index) {
|
|
477
|
+
const ret = wasm.send_api_call(addHeapObject(buffer), msg_index, peer_index);
|
|
511
478
|
return takeObject(ret);
|
|
512
479
|
}
|
|
513
480
|
|
|
@@ -526,97 +493,88 @@ export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_ke
|
|
|
526
493
|
}
|
|
527
494
|
|
|
528
495
|
/**
|
|
529
|
-
* @param {
|
|
530
|
-
* @
|
|
496
|
+
* @param {bigint} peer_index
|
|
497
|
+
* @param {string} public_key
|
|
498
|
+
* @returns {Promise<void>}
|
|
531
499
|
*/
|
|
532
|
-
export function
|
|
533
|
-
const ret = wasm.
|
|
500
|
+
export function process_stun_peer(peer_index, public_key) {
|
|
501
|
+
const ret = wasm.process_stun_peer(peer_index, addHeapObject(public_key));
|
|
534
502
|
return takeObject(ret);
|
|
535
503
|
}
|
|
536
504
|
|
|
537
505
|
/**
|
|
538
|
-
* @param {Uint8Array}
|
|
539
|
-
* @param {
|
|
506
|
+
* @param {Uint8Array} hash
|
|
507
|
+
* @param {bigint} block_id
|
|
540
508
|
* @param {bigint} peer_index
|
|
541
509
|
* @returns {Promise<void>}
|
|
542
510
|
*/
|
|
543
|
-
export function
|
|
544
|
-
const ret = wasm.
|
|
511
|
+
export function process_failed_block_fetch(hash, block_id, peer_index) {
|
|
512
|
+
const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_index);
|
|
545
513
|
return takeObject(ret);
|
|
546
514
|
}
|
|
547
515
|
|
|
548
516
|
/**
|
|
549
|
-
* @param {
|
|
550
|
-
* @
|
|
551
|
-
* @param {string} public_key
|
|
552
|
-
* @returns {boolean}
|
|
553
|
-
*/
|
|
554
|
-
export function verify_signature(buffer, signature, public_key) {
|
|
555
|
-
const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
|
|
556
|
-
return ret !== 0;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* @param {bigint} peer_index
|
|
561
|
-
* @returns {Promise<WasmPeer | undefined>}
|
|
517
|
+
* @param {Array<any>} keys
|
|
518
|
+
* @returns {Promise<WasmBalanceSnapshot>}
|
|
562
519
|
*/
|
|
563
|
-
export function
|
|
564
|
-
const ret = wasm.
|
|
520
|
+
export function get_balance_snapshot(keys) {
|
|
521
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
565
522
|
return takeObject(ret);
|
|
566
523
|
}
|
|
567
524
|
|
|
568
525
|
/**
|
|
569
|
-
* @
|
|
526
|
+
* @param {Uint8Array} buffer
|
|
527
|
+
* @param {bigint} peer_index
|
|
528
|
+
* @returns {Promise<void>}
|
|
570
529
|
*/
|
|
571
|
-
export function
|
|
572
|
-
const ret = wasm.
|
|
530
|
+
export function process_msg_buffer_from_peer(buffer, peer_index) {
|
|
531
|
+
const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer_index);
|
|
573
532
|
return takeObject(ret);
|
|
574
533
|
}
|
|
575
534
|
|
|
576
535
|
/**
|
|
577
|
-
* @param {
|
|
536
|
+
* @param {bigint} peer_index
|
|
578
537
|
* @returns {Promise<void>}
|
|
579
538
|
*/
|
|
580
|
-
export function
|
|
581
|
-
|
|
582
|
-
var ptr0 = snapshot.__destroy_into_raw();
|
|
583
|
-
const ret = wasm.update_from_balance_snapshot(ptr0);
|
|
539
|
+
export function process_peer_disconnection(peer_index) {
|
|
540
|
+
const ret = wasm.process_peer_disconnection(peer_index);
|
|
584
541
|
return takeObject(ret);
|
|
585
542
|
}
|
|
586
543
|
|
|
587
544
|
/**
|
|
588
|
-
* @
|
|
545
|
+
* @param {string} config_json
|
|
546
|
+
* @param {string} private_key
|
|
547
|
+
* @param {number} log_level_num
|
|
548
|
+
* @param {bigint} hasten_multiplier
|
|
549
|
+
* @param {boolean} delete_old_blocks
|
|
550
|
+
* @returns {Promise<any>}
|
|
589
551
|
*/
|
|
590
|
-
export function
|
|
591
|
-
const ret = wasm.
|
|
552
|
+
export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
553
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
592
554
|
return takeObject(ret);
|
|
593
555
|
}
|
|
594
556
|
|
|
595
557
|
/**
|
|
596
|
-
* @returns {Promise<
|
|
558
|
+
* @returns {Promise<boolean>}
|
|
597
559
|
*/
|
|
598
|
-
export function
|
|
599
|
-
const ret = wasm.
|
|
560
|
+
export function produce_block_with_gt() {
|
|
561
|
+
const ret = wasm.produce_block_with_gt();
|
|
600
562
|
return takeObject(ret);
|
|
601
563
|
}
|
|
602
564
|
|
|
603
565
|
/**
|
|
604
|
-
* @
|
|
605
|
-
* @param {bigint} amount
|
|
606
|
-
* @param {bigint} fee
|
|
607
|
-
* @param {boolean} force_merge
|
|
608
|
-
* @returns {Promise<WasmTransaction>}
|
|
566
|
+
* @returns {Promise<WasmWallet>}
|
|
609
567
|
*/
|
|
610
|
-
export function
|
|
611
|
-
const ret = wasm.
|
|
568
|
+
export function get_wallet() {
|
|
569
|
+
const ret = wasm.get_wallet();
|
|
612
570
|
return takeObject(ret);
|
|
613
571
|
}
|
|
614
572
|
|
|
615
573
|
/**
|
|
616
|
-
* @returns {Promise<
|
|
574
|
+
* @returns {Promise<boolean>}
|
|
617
575
|
*/
|
|
618
|
-
export function
|
|
619
|
-
const ret = wasm.
|
|
576
|
+
export function produce_block_without_gt() {
|
|
577
|
+
const ret = wasm.produce_block_without_gt();
|
|
620
578
|
return takeObject(ret);
|
|
621
579
|
}
|
|
622
580
|
|
|
@@ -630,39 +588,52 @@ export function process_timer_event(duration_in_ms) {
|
|
|
630
588
|
}
|
|
631
589
|
|
|
632
590
|
/**
|
|
633
|
-
* @param {
|
|
591
|
+
* @param {WasmTransaction} tx
|
|
634
592
|
* @returns {Promise<void>}
|
|
635
593
|
*/
|
|
636
|
-
export function
|
|
637
|
-
|
|
594
|
+
export function propagate_transaction(tx) {
|
|
595
|
+
_assertClass(tx, WasmTransaction);
|
|
596
|
+
const ret = wasm.propagate_transaction(tx.__wbg_ptr);
|
|
638
597
|
return takeObject(ret);
|
|
639
598
|
}
|
|
640
599
|
|
|
641
600
|
/**
|
|
642
|
-
* @
|
|
601
|
+
* @param {Uint8Array} buffer
|
|
602
|
+
* @returns {string}
|
|
643
603
|
*/
|
|
644
|
-
export function
|
|
645
|
-
const ret = wasm.
|
|
604
|
+
export function hash(buffer) {
|
|
605
|
+
const ret = wasm.hash(addHeapObject(buffer));
|
|
646
606
|
return takeObject(ret);
|
|
647
607
|
}
|
|
648
608
|
|
|
649
609
|
/**
|
|
650
|
-
* @param {
|
|
651
|
-
* @param {number}
|
|
652
|
-
* @param {
|
|
610
|
+
* @param {Uint8Array} buffer
|
|
611
|
+
* @param {number} msg_index
|
|
612
|
+
* @param {bigint} peer_index
|
|
653
613
|
* @returns {Promise<void>}
|
|
654
614
|
*/
|
|
655
|
-
export function
|
|
656
|
-
const ret = wasm.
|
|
615
|
+
export function send_api_success(buffer, msg_index, peer_index) {
|
|
616
|
+
const ret = wasm.send_api_success(addHeapObject(buffer), msg_index, peer_index);
|
|
657
617
|
return takeObject(ret);
|
|
658
618
|
}
|
|
659
619
|
|
|
660
620
|
/**
|
|
661
|
-
* @param {string}
|
|
662
|
-
* @
|
|
621
|
+
* @param {string} public_key
|
|
622
|
+
* @param {bigint} amount
|
|
623
|
+
* @param {bigint} fee
|
|
624
|
+
* @param {boolean} force_merge
|
|
625
|
+
* @returns {Promise<WasmTransaction>}
|
|
663
626
|
*/
|
|
664
|
-
export function
|
|
665
|
-
const ret = wasm.
|
|
627
|
+
export function create_transaction(public_key, amount, fee, force_merge) {
|
|
628
|
+
const ret = wasm.create_transaction(addHeapObject(public_key), amount, fee, force_merge);
|
|
629
|
+
return takeObject(ret);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* @returns {Promise<WasmBlockchain>}
|
|
634
|
+
*/
|
|
635
|
+
export function get_blockchain() {
|
|
636
|
+
const ret = wasm.get_blockchain();
|
|
666
637
|
return takeObject(ret);
|
|
667
638
|
}
|
|
668
639
|
|
|
@@ -679,27 +650,59 @@ export function create_merge_bound_transaction(nft_id_hex, tx_msg) {
|
|
|
679
650
|
}
|
|
680
651
|
|
|
681
652
|
/**
|
|
682
|
-
* @
|
|
683
|
-
* @returns {boolean}
|
|
653
|
+
* @returns {Promise<string>}
|
|
684
654
|
*/
|
|
685
|
-
export function
|
|
686
|
-
const ret = wasm.
|
|
687
|
-
return ret
|
|
655
|
+
export function get_congestion_stats() {
|
|
656
|
+
const ret = wasm.get_congestion_stats();
|
|
657
|
+
return takeObject(ret);
|
|
688
658
|
}
|
|
689
659
|
|
|
690
660
|
/**
|
|
691
|
-
* @
|
|
661
|
+
* @param {string} slip1_utxo_key
|
|
662
|
+
* @param {string} slip2_utxo_key
|
|
663
|
+
* @param {string} slip3_utxo_key
|
|
664
|
+
* @param {number} left_count
|
|
665
|
+
* @param {number} right_count
|
|
666
|
+
* @param {Uint8Array} tx_msg
|
|
667
|
+
* @returns {Promise<WasmTransaction>}
|
|
692
668
|
*/
|
|
693
|
-
export function
|
|
694
|
-
const ret = wasm.
|
|
669
|
+
export function create_split_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
670
|
+
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));
|
|
695
671
|
return takeObject(ret);
|
|
696
672
|
}
|
|
697
673
|
|
|
698
674
|
/**
|
|
699
|
-
* @
|
|
675
|
+
* @param {bigint} num
|
|
676
|
+
* @param {bigint} deposit
|
|
677
|
+
* @param {Uint8Array} tx_msg
|
|
678
|
+
* @param {bigint} fee
|
|
679
|
+
* @param {string} recipient_public_key
|
|
680
|
+
* @param {string} nft_type
|
|
681
|
+
* @returns {Promise<WasmTransaction>}
|
|
700
682
|
*/
|
|
701
|
-
export function
|
|
702
|
-
const ret = wasm.
|
|
683
|
+
export function create_bound_transaction(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
684
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
685
|
+
return takeObject(ret);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* @param {string} slip1_utxo_key
|
|
690
|
+
* @param {string} slip2_utxo_key
|
|
691
|
+
* @param {string} slip3_utxo_key
|
|
692
|
+
* @param {Uint8Array} tx_msg
|
|
693
|
+
* @returns {Promise<WasmTransaction>}
|
|
694
|
+
*/
|
|
695
|
+
export function create_remove_bound_transaction(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, tx_msg) {
|
|
696
|
+
const ret = wasm.create_remove_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(tx_msg));
|
|
697
|
+
return takeObject(ret);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @param {string} block_hash
|
|
702
|
+
* @returns {Promise<WasmBlock>}
|
|
703
|
+
*/
|
|
704
|
+
export function get_block(block_hash) {
|
|
705
|
+
const ret = wasm.get_block(addHeapObject(block_hash));
|
|
703
706
|
return takeObject(ret);
|
|
704
707
|
}
|
|
705
708
|
|
|
@@ -713,22 +716,19 @@ export function process_stat_interval(current_time) {
|
|
|
713
716
|
}
|
|
714
717
|
|
|
715
718
|
/**
|
|
716
|
-
* @
|
|
717
|
-
* @returns {Promise<Array<any>>}
|
|
719
|
+
* @returns {Promise<void>}
|
|
718
720
|
*/
|
|
719
|
-
export function
|
|
720
|
-
const ret = wasm.
|
|
721
|
+
export function disable_producing_blocks_by_timer() {
|
|
722
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
721
723
|
return takeObject(ret);
|
|
722
724
|
}
|
|
723
725
|
|
|
724
726
|
/**
|
|
725
|
-
* @param {Uint8Array} buffer
|
|
726
|
-
* @param {number} msg_index
|
|
727
727
|
* @param {bigint} peer_index
|
|
728
728
|
* @returns {Promise<void>}
|
|
729
729
|
*/
|
|
730
|
-
export function
|
|
731
|
-
const ret = wasm.
|
|
730
|
+
export function remove_stun_peer(peer_index) {
|
|
731
|
+
const ret = wasm.remove_stun_peer(peer_index);
|
|
732
732
|
return takeObject(ret);
|
|
733
733
|
}
|
|
734
734
|
|
|
@@ -2697,39 +2697,39 @@ async function __wbg_load(module, imports) {
|
|
|
2697
2697
|
function __wbg_get_imports() {
|
|
2698
2698
|
const imports = {};
|
|
2699
2699
|
imports.wbg = {};
|
|
2700
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2701
|
-
const ret = getObject(arg0);
|
|
2702
|
-
return addHeapObject(ret);
|
|
2703
|
-
};
|
|
2704
2700
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2705
2701
|
takeObject(arg0);
|
|
2706
2702
|
};
|
|
2707
|
-
imports.wbg.
|
|
2708
|
-
const ret =
|
|
2703
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2704
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2709
2705
|
return addHeapObject(ret);
|
|
2710
2706
|
};
|
|
2711
|
-
imports.wbg.
|
|
2712
|
-
const ret =
|
|
2707
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2708
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2713
2709
|
return addHeapObject(ret);
|
|
2714
2710
|
};
|
|
2715
|
-
imports.wbg.
|
|
2716
|
-
const ret =
|
|
2711
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2712
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2713
|
+
return addHeapObject(ret);
|
|
2714
|
+
};
|
|
2715
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2716
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2717
2717
|
return addHeapObject(ret);
|
|
2718
2718
|
};
|
|
2719
2719
|
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2720
2720
|
const ret = WasmPeer.__wrap(arg0);
|
|
2721
2721
|
return addHeapObject(ret);
|
|
2722
2722
|
};
|
|
2723
|
-
imports.wbg.
|
|
2724
|
-
const ret =
|
|
2723
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2724
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2725
2725
|
return addHeapObject(ret);
|
|
2726
2726
|
};
|
|
2727
|
-
imports.wbg.
|
|
2728
|
-
const ret =
|
|
2727
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2728
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2729
2729
|
return addHeapObject(ret);
|
|
2730
2730
|
};
|
|
2731
|
-
imports.wbg.
|
|
2732
|
-
const ret =
|
|
2731
|
+
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2732
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2733
2733
|
return addHeapObject(ret);
|
|
2734
2734
|
};
|
|
2735
2735
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -2740,16 +2740,16 @@ function __wbg_get_imports() {
|
|
|
2740
2740
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2741
2741
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2742
2742
|
};
|
|
2743
|
-
imports.wbg.
|
|
2744
|
-
const ret =
|
|
2743
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2744
|
+
const ret = getObject(arg0);
|
|
2745
2745
|
return addHeapObject(ret);
|
|
2746
2746
|
};
|
|
2747
|
-
imports.wbg.
|
|
2748
|
-
const ret =
|
|
2747
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2748
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2749
2749
|
return addHeapObject(ret);
|
|
2750
2750
|
};
|
|
2751
|
-
imports.wbg.
|
|
2752
|
-
const ret =
|
|
2751
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2752
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2753
2753
|
return addHeapObject(ret);
|
|
2754
2754
|
};
|
|
2755
2755
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
@@ -2781,7 +2781,7 @@ function __wbg_get_imports() {
|
|
|
2781
2781
|
const ret = WasmHop.__wrap(arg0);
|
|
2782
2782
|
return addHeapObject(ret);
|
|
2783
2783
|
};
|
|
2784
|
-
imports.wbg.
|
|
2784
|
+
imports.wbg.__wbg_flushdata_8a3be53f8be8f226 = function(arg0, arg1) {
|
|
2785
2785
|
let deferred0_0;
|
|
2786
2786
|
let deferred0_1;
|
|
2787
2787
|
try {
|
|
@@ -2792,7 +2792,7 @@ function __wbg_get_imports() {
|
|
|
2792
2792
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2793
2793
|
}
|
|
2794
2794
|
};
|
|
2795
|
-
imports.wbg.
|
|
2795
|
+
imports.wbg.__wbg_readvalue_f8e3c605b6013fe7 = function() { return handleError(function (arg0, arg1) {
|
|
2796
2796
|
let deferred0_0;
|
|
2797
2797
|
let deferred0_1;
|
|
2798
2798
|
try {
|
|
@@ -2804,13 +2804,13 @@ function __wbg_get_imports() {
|
|
|
2804
2804
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2805
2805
|
}
|
|
2806
2806
|
}, arguments) };
|
|
2807
|
-
imports.wbg.
|
|
2807
|
+
imports.wbg.__wbg_loadwallet_40a7a0a063c9ff37 = function() {
|
|
2808
2808
|
MsgHandler.load_wallet();
|
|
2809
2809
|
};
|
|
2810
|
-
imports.wbg.
|
|
2810
|
+
imports.wbg.__wbg_savewallet_42bc0a121ea1c325 = function() {
|
|
2811
2811
|
MsgHandler.save_wallet();
|
|
2812
2812
|
};
|
|
2813
|
-
imports.wbg.
|
|
2813
|
+
imports.wbg.__wbg_writevalue_1599a6bbe5b9fcba = function(arg0, arg1, arg2) {
|
|
2814
2814
|
let deferred0_0;
|
|
2815
2815
|
let deferred0_1;
|
|
2816
2816
|
try {
|
|
@@ -2821,7 +2821,7 @@ function __wbg_get_imports() {
|
|
|
2821
2821
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2822
2822
|
}
|
|
2823
2823
|
};
|
|
2824
|
-
imports.wbg.
|
|
2824
|
+
imports.wbg.__wbg_appendvalue_2602f3dff3c02ed3 = function(arg0, arg1, arg2) {
|
|
2825
2825
|
let deferred0_0;
|
|
2826
2826
|
let deferred0_1;
|
|
2827
2827
|
try {
|
|
@@ -2832,7 +2832,7 @@ function __wbg_get_imports() {
|
|
|
2832
2832
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2833
2833
|
}
|
|
2834
2834
|
};
|
|
2835
|
-
imports.wbg.
|
|
2835
|
+
imports.wbg.__wbg_removevalue_864a1ee43137bd0c = function() { return handleError(function (arg0, arg1) {
|
|
2836
2836
|
let deferred0_0;
|
|
2837
2837
|
let deferred0_1;
|
|
2838
2838
|
try {
|
|
@@ -2844,10 +2844,10 @@ function __wbg_get_imports() {
|
|
|
2844
2844
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2845
2845
|
}
|
|
2846
2846
|
}, arguments) };
|
|
2847
|
-
imports.wbg.
|
|
2847
|
+
imports.wbg.__wbg_sendmessage_94db158b4f1537d2 = function(arg0, arg1) {
|
|
2848
2848
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2849
2849
|
};
|
|
2850
|
-
imports.wbg.
|
|
2850
|
+
imports.wbg.__wbg_connecttopeer_c5deae2cdbdb9f5d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2851
2851
|
let deferred0_0;
|
|
2852
2852
|
let deferred0_1;
|
|
2853
2853
|
try {
|
|
@@ -2859,13 +2859,13 @@ function __wbg_get_imports() {
|
|
|
2859
2859
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2860
2860
|
}
|
|
2861
2861
|
}, arguments) };
|
|
2862
|
-
imports.wbg.
|
|
2862
|
+
imports.wbg.__wbg_getmyservices_7bc1499ff4f2976d = function() {
|
|
2863
2863
|
const ret = MsgHandler.get_my_services();
|
|
2864
2864
|
_assertClass(ret, WasmPeerServiceList);
|
|
2865
2865
|
var ptr1 = ret.__destroy_into_raw();
|
|
2866
2866
|
return ptr1;
|
|
2867
2867
|
};
|
|
2868
|
-
imports.wbg.
|
|
2868
|
+
imports.wbg.__wbg_isexistingfile_0099b8b5ea955d68 = function() { return handleError(function (arg0, arg1) {
|
|
2869
2869
|
let deferred0_0;
|
|
2870
2870
|
let deferred0_1;
|
|
2871
2871
|
try {
|
|
@@ -2877,27 +2877,27 @@ function __wbg_get_imports() {
|
|
|
2877
2877
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2878
2878
|
}
|
|
2879
2879
|
}, arguments) };
|
|
2880
|
-
imports.wbg.
|
|
2880
|
+
imports.wbg.__wbg_processapicall_71052b8f6948e2e5 = function(arg0, arg1, arg2) {
|
|
2881
2881
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2882
2882
|
};
|
|
2883
|
-
imports.wbg.
|
|
2883
|
+
imports.wbg.__wbg_processapierror_42532e404878dc4f = function(arg0, arg1, arg2) {
|
|
2884
2884
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2885
2885
|
};
|
|
2886
|
-
imports.wbg.
|
|
2886
|
+
imports.wbg.__wbg_processapisuccess_99b6c280a2d87a47 = function(arg0, arg1, arg2) {
|
|
2887
2887
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2888
2888
|
};
|
|
2889
|
-
imports.wbg.
|
|
2889
|
+
imports.wbg.__wbg_sendmessagetoall_f01c609b2749f987 = function(arg0, arg1) {
|
|
2890
2890
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2891
2891
|
};
|
|
2892
|
-
imports.wbg.
|
|
2892
|
+
imports.wbg.__wbg_disconnectfrompeer_d2743f7eb8c25e08 = function() { return handleError(function (arg0) {
|
|
2893
2893
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2894
2894
|
return addHeapObject(ret);
|
|
2895
2895
|
}, arguments) };
|
|
2896
|
-
imports.wbg.
|
|
2896
|
+
imports.wbg.__wbg_loadblockfilelist_8f3794d11016af8e = function() { return handleError(function () {
|
|
2897
2897
|
const ret = MsgHandler.load_block_file_list();
|
|
2898
2898
|
return addHeapObject(ret);
|
|
2899
2899
|
}, arguments) };
|
|
2900
|
-
imports.wbg.
|
|
2900
|
+
imports.wbg.__wbg_sendinterfaceevent_ea3b82df825804d3 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2901
2901
|
let deferred0_0;
|
|
2902
2902
|
let deferred0_1;
|
|
2903
2903
|
let deferred1_0;
|
|
@@ -2913,7 +2913,7 @@ function __wbg_get_imports() {
|
|
|
2913
2913
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2914
2914
|
}
|
|
2915
2915
|
};
|
|
2916
|
-
imports.wbg.
|
|
2916
|
+
imports.wbg.__wbg_sendblocksuccess_3f6c6666f1c6ce59 = function(arg0, arg1, arg2) {
|
|
2917
2917
|
let deferred0_0;
|
|
2918
2918
|
let deferred0_1;
|
|
2919
2919
|
try {
|
|
@@ -2924,10 +2924,10 @@ function __wbg_get_imports() {
|
|
|
2924
2924
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2925
2925
|
}
|
|
2926
2926
|
};
|
|
2927
|
-
imports.wbg.
|
|
2927
|
+
imports.wbg.__wbg_sendwalletupdate_2c49ae3e0d15ee8d = function() {
|
|
2928
2928
|
MsgHandler.send_wallet_update();
|
|
2929
2929
|
};
|
|
2930
|
-
imports.wbg.
|
|
2930
|
+
imports.wbg.__wbg_sendnewversionalert_011ddf281aa4b239 = function(arg0, arg1, arg2) {
|
|
2931
2931
|
let deferred0_0;
|
|
2932
2932
|
let deferred0_1;
|
|
2933
2933
|
try {
|
|
@@ -2938,13 +2938,13 @@ function __wbg_get_imports() {
|
|
|
2938
2938
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2939
2939
|
}
|
|
2940
2940
|
};
|
|
2941
|
-
imports.wbg.
|
|
2941
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_0980203dcc2ecc63 = function(arg0) {
|
|
2942
2942
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2943
2943
|
};
|
|
2944
|
-
imports.wbg.
|
|
2944
|
+
imports.wbg.__wbg_sendnewchaindetectedevent_d12fa4645380fe48 = function() {
|
|
2945
2945
|
MsgHandler.send_new_chain_detected_event();
|
|
2946
2946
|
};
|
|
2947
|
-
imports.wbg.
|
|
2947
|
+
imports.wbg.__wbg_fetchblockfrompeer_68ea2e6049430713 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2948
2948
|
let deferred0_0;
|
|
2949
2949
|
let deferred0_1;
|
|
2950
2950
|
try {
|
|
@@ -2956,7 +2956,7 @@ function __wbg_get_imports() {
|
|
|
2956
2956
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2957
2957
|
}
|
|
2958
2958
|
}, arguments) };
|
|
2959
|
-
imports.wbg.
|
|
2959
|
+
imports.wbg.__wbg_ensuredirectoryexists_c993e374fac2a231 = function() { return handleError(function (arg0, arg1) {
|
|
2960
2960
|
let deferred0_0;
|
|
2961
2961
|
let deferred0_1;
|
|
2962
2962
|
try {
|
|
@@ -3275,7 +3275,7 @@ function __wbg_get_imports() {
|
|
|
3275
3275
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
3276
3276
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
3277
3277
|
};
|
|
3278
|
-
imports.wbg.
|
|
3278
|
+
imports.wbg.__wbindgen_closure_wrapper1616 = function(arg0, arg1, arg2) {
|
|
3279
3279
|
const ret = makeMutClosure(arg0, arg1, 598, __wbg_adapter_38);
|
|
3280
3280
|
return addHeapObject(ret);
|
|
3281
3281
|
};
|