saito-wasm 0.2.237 → 0.2.239

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/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-04195e4e0e289216/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-785d0781d8caf60c/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -252,83 +252,89 @@ function addBorrowedObject(obj) {
252
252
  return stack_pointer;
253
253
  }
254
254
  /**
255
- * @param {bigint} current_time
256
- * @returns {Promise<void>}
255
+ * @param {Uint8Array} buffer
256
+ * @param {string} private_key
257
+ * @returns {string}
257
258
  */
258
- export function process_stat_interval(current_time) {
259
- const ret = wasm.process_stat_interval(current_time);
260
- return takeObject(ret);
259
+ export function sign_buffer(buffer, private_key) {
260
+ try {
261
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
262
+ wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
263
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
264
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
265
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
266
+ if (r2) {
267
+ throw takeObject(r1);
268
+ }
269
+ return takeObject(r0);
270
+ } finally {
271
+ wasm.__wbindgen_add_to_stack_pointer(16);
272
+ }
261
273
  }
262
274
 
263
275
  /**
264
- * @returns {Promise<boolean>}
276
+ * @param {bigint} threshold
277
+ * @returns {Promise<void>}
265
278
  */
266
- export function produce_block_without_gt() {
267
- const ret = wasm.produce_block_without_gt();
279
+ export function write_issuance_file(threshold) {
280
+ const ret = wasm.write_issuance_file(threshold);
268
281
  return takeObject(ret);
269
282
  }
270
283
 
271
- /**
272
- * @returns {WasmNetwork}
273
- */
274
- export function get_network() {
275
- const ret = wasm.get_network();
276
- return WasmNetwork.__wrap(ret);
277
- }
278
-
279
284
  /**
280
285
  * @param {bigint} peer_id
281
- * @param {boolean} initiate_handshake
286
+ * @param {string} public_key
282
287
  * @returns {Promise<void>}
283
288
  */
284
- export function process_new_peer(peer_id, initiate_handshake) {
285
- const ret = wasm.process_new_peer(peer_id, initiate_handshake);
289
+ export function process_stun_peer(peer_id, public_key) {
290
+ const ret = wasm.process_stun_peer(peer_id, addHeapObject(public_key));
286
291
  return takeObject(ret);
287
292
  }
288
293
 
289
294
  /**
290
- * @param {string | undefined} [url]
291
- * @returns {Promise<WasmNetworkPeer>}
295
+ * @returns {Promise<boolean>}
292
296
  */
293
- export function create_network_peer(url) {
294
- var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
- var len0 = WASM_VECTOR_LEN;
296
- const ret = wasm.create_network_peer(ptr0, len0);
297
+ export function produce_block_without_gt() {
298
+ const ret = wasm.produce_block_without_gt();
297
299
  return takeObject(ret);
298
300
  }
299
301
 
300
302
  /**
301
- * @param {Uint8Array} buffer
302
- * @param {WasmNetworkPeer} peer
303
- * @returns {Promise<Uint8Array>}
303
+ * @param {WasmBalanceSnapshot} snapshot
304
+ * @returns {Promise<void>}
304
305
  */
305
- export function process_msg_buffer_from_peer(buffer, peer) {
306
- _assertClass(peer, WasmNetworkPeer);
307
- const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer.__wbg_ptr);
306
+ export function update_from_balance_snapshot(snapshot) {
307
+ _assertClass(snapshot, WasmBalanceSnapshot);
308
+ var ptr0 = snapshot.__destroy_into_raw();
309
+ const ret = wasm.update_from_balance_snapshot(ptr0);
308
310
  return takeObject(ret);
309
311
  }
310
312
 
311
313
  /**
312
- * @returns {Promise<Array<any>>}
314
+ * @returns {Promise<void>}
313
315
  */
314
- export function get_mempool_txs() {
315
- const ret = wasm.get_mempool_txs();
316
+ export function disable_producing_blocks_by_timer() {
317
+ const ret = wasm.disable_producing_blocks_by_timer();
316
318
  return takeObject(ret);
317
319
  }
318
320
 
319
321
  /**
320
- * @returns {string}
322
+ * @param {Uint8Array} hash
323
+ * @param {bigint} block_id
324
+ * @param {bigint} peer_id
325
+ * @returns {Promise<void>}
321
326
  */
322
- export function generate_private_key() {
323
- const ret = wasm.generate_private_key();
327
+ export function process_failed_block_fetch(hash, block_id, peer_id) {
328
+ const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_id);
324
329
  return takeObject(ret);
325
330
  }
326
331
 
327
332
  /**
328
- * @returns {Promise<string>}
333
+ * @param {string} block_hash
334
+ * @returns {Promise<WasmBlock>}
329
335
  */
330
- export function get_latest_block_hash() {
331
- const ret = wasm.get_latest_block_hash();
336
+ export function get_block(block_hash) {
337
+ const ret = wasm.get_block(addHeapObject(block_hash));
332
338
  return takeObject(ret);
333
339
  }
334
340
 
@@ -342,36 +348,56 @@ export function isPublicKey(key) {
342
348
  }
343
349
 
344
350
  /**
345
- * @returns {Promise<WasmWallet>}
351
+ * @param {Uint8Array} buffer
352
+ * @returns {string}
346
353
  */
347
- export function get_wallet() {
348
- const ret = wasm.get_wallet();
354
+ export function hash(buffer) {
355
+ const ret = wasm.hash(addHeapObject(buffer));
349
356
  return takeObject(ret);
350
357
  }
351
358
 
352
359
  /**
353
- * @param {bigint} threshold
354
- * @returns {Promise<void>}
360
+ * @param {Array<any>} keys
361
+ * @returns {Promise<WasmBalanceSnapshot>}
355
362
  */
356
- export function write_issuance_file(threshold) {
357
- const ret = wasm.write_issuance_file(threshold);
363
+ export function get_balance_snapshot(keys) {
364
+ const ret = wasm.get_balance_snapshot(addHeapObject(keys));
358
365
  return takeObject(ret);
359
366
  }
360
367
 
361
368
  /**
369
+ * @param {Uint8Array} buffer
370
+ * @param {string} signature
362
371
  * @param {string} public_key
363
- * @returns {Promise<Array<any>>}
372
+ * @returns {boolean}
364
373
  */
365
- export function get_account_slips(public_key) {
366
- const ret = wasm.get_account_slips(addHeapObject(public_key));
374
+ export function verify_signature(buffer, signature, public_key) {
375
+ const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
376
+ return ret !== 0;
377
+ }
378
+
379
+ /**
380
+ * @returns {Promise<string>}
381
+ */
382
+ export function get_latest_block_hash() {
383
+ const ret = wasm.get_latest_block_hash();
367
384
  return takeObject(ret);
368
385
  }
369
386
 
370
387
  /**
388
+ * @returns {Promise<boolean>}
389
+ */
390
+ export function produce_block_with_gt() {
391
+ const ret = wasm.produce_block_with_gt();
392
+ return takeObject(ret);
393
+ }
394
+
395
+ /**
396
+ * @param {bigint} peer_id
371
397
  * @returns {Promise<void>}
372
398
  */
373
- export function disable_producing_blocks_by_timer() {
374
- const ret = wasm.disable_producing_blocks_by_timer();
399
+ export function process_peer_disconnection(peer_id) {
400
+ const ret = wasm.process_peer_disconnection(peer_id);
375
401
  return takeObject(ret);
376
402
  }
377
403
 
@@ -394,164 +420,147 @@ export function remove_stun_peer(peer_id, public_key) {
394
420
  }
395
421
 
396
422
  /**
397
- * @param {Uint8Array} buffer
398
- * @param {string} signature
399
- * @param {string} public_key
400
- * @returns {boolean}
423
+ * @param {bigint} peer_id
424
+ * @param {boolean} initiate_handshake
425
+ * @returns {Promise<void>}
401
426
  */
402
- export function verify_signature(buffer, signature, public_key) {
403
- const ret = wasm.verify_signature(addHeapObject(buffer), addHeapObject(signature), addHeapObject(public_key));
404
- return ret !== 0;
427
+ export function process_new_peer(peer_id, initiate_handshake) {
428
+ const ret = wasm.process_new_peer(peer_id, initiate_handshake);
429
+ return takeObject(ret);
405
430
  }
406
431
 
407
432
  /**
408
- * @param {string} config_json
409
433
  * @param {string} private_key
410
- * @param {number} log_level_num
411
- * @param {bigint} hasten_multiplier
412
- * @param {boolean} delete_old_blocks
413
- * @returns {Promise<any>}
434
+ * @returns {string}
414
435
  */
415
- export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
416
- const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
417
- return takeObject(ret);
436
+ export function generate_public_key(private_key) {
437
+ try {
438
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
439
+ wasm.generate_public_key(retptr, addHeapObject(private_key));
440
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
441
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
442
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
443
+ if (r2) {
444
+ throw takeObject(r1);
445
+ }
446
+ return takeObject(r0);
447
+ } finally {
448
+ wasm.__wbindgen_add_to_stack_pointer(16);
449
+ }
418
450
  }
419
451
 
420
452
  /**
421
- * @param {Uint8Array} buffer
422
- * @param {Uint8Array} hash
423
- * @param {bigint} block_id
424
- * @param {bigint} peer_id
425
- * @returns {Promise<void>}
453
+ * @param {string | undefined} [url]
454
+ * @returns {Promise<WasmNetworkPeer>}
426
455
  */
427
- export function process_fetched_block(buffer, hash, block_id, peer_id) {
428
- const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_id);
456
+ export function create_network_peer(url) {
457
+ var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
458
+ var len0 = WASM_VECTOR_LEN;
459
+ const ret = wasm.create_network_peer(ptr0, len0);
429
460
  return takeObject(ret);
430
461
  }
431
462
 
432
463
  /**
433
- * @param {string} block_hash
434
- * @returns {Promise<WasmBlock>}
464
+ * @returns {WasmNetwork}
435
465
  */
436
- export function get_block(block_hash) {
437
- const ret = wasm.get_block(addHeapObject(block_hash));
438
- return takeObject(ret);
466
+ export function get_network() {
467
+ const ret = wasm.get_network();
468
+ return WasmNetwork.__wrap(ret);
439
469
  }
440
470
 
441
471
  /**
472
+ * @param {Uint8Array} buffer
442
473
  * @param {Uint8Array} hash
443
474
  * @param {bigint} block_id
444
475
  * @param {bigint} peer_id
445
476
  * @returns {Promise<void>}
446
477
  */
447
- export function process_failed_block_fetch(hash, block_id, peer_id) {
448
- const ret = wasm.process_failed_block_fetch(addHeapObject(hash), block_id, peer_id);
478
+ export function process_fetched_block(buffer, hash, block_id, peer_id) {
479
+ const ret = wasm.process_fetched_block(addHeapObject(buffer), addHeapObject(hash), block_id, peer_id);
449
480
  return takeObject(ret);
450
481
  }
451
482
 
452
483
  /**
453
- * @param {Array<any>} keys
454
- * @returns {Promise<WasmBalanceSnapshot>}
484
+ * @param {string} json
485
+ * @returns {Promise<number>}
455
486
  */
456
- export function get_balance_snapshot(keys) {
457
- const ret = wasm.get_balance_snapshot(addHeapObject(keys));
487
+ export function evaluate_script(json) {
488
+ const ret = wasm.evaluate_script(addHeapObject(json));
458
489
  return takeObject(ret);
459
490
  }
460
491
 
461
492
  /**
462
- * @param {WasmBalanceSnapshot} snapshot
493
+ * @param {bigint} current_time
463
494
  * @returns {Promise<void>}
464
495
  */
465
- export function update_from_balance_snapshot(snapshot) {
466
- _assertClass(snapshot, WasmBalanceSnapshot);
467
- var ptr0 = snapshot.__destroy_into_raw();
468
- const ret = wasm.update_from_balance_snapshot(ptr0);
496
+ export function process_stat_interval(current_time) {
497
+ const ret = wasm.process_stat_interval(current_time);
469
498
  return takeObject(ret);
470
499
  }
471
500
 
472
501
  /**
473
- * @param {bigint} peer_id
474
- * @returns {Promise<void>}
502
+ * @param {string} public_key
503
+ * @returns {Promise<Array<any>>}
475
504
  */
476
- export function process_peer_disconnection(peer_id) {
477
- const ret = wasm.process_peer_disconnection(peer_id);
505
+ export function get_account_slips(public_key) {
506
+ const ret = wasm.get_account_slips(addHeapObject(public_key));
478
507
  return takeObject(ret);
479
508
  }
480
509
 
481
510
  /**
482
- * @param {bigint} peer_id
483
- * @param {string} public_key
484
- * @returns {Promise<void>}
511
+ * @param {string} config_json
512
+ * @param {string} private_key
513
+ * @param {number} log_level_num
514
+ * @param {bigint} hasten_multiplier
515
+ * @param {boolean} delete_old_blocks
516
+ * @returns {Promise<any>}
485
517
  */
486
- export function process_stun_peer(peer_id, public_key) {
487
- const ret = wasm.process_stun_peer(peer_id, addHeapObject(public_key));
518
+ export function initialize(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
519
+ const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
488
520
  return takeObject(ret);
489
521
  }
490
522
 
491
523
  /**
492
- * @param {Uint8Array} buffer
493
- * @param {string} private_key
494
- * @returns {string}
524
+ * @returns {Promise<Array<any>>}
495
525
  */
496
- export function sign_buffer(buffer, private_key) {
497
- try {
498
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
499
- wasm.sign_buffer(retptr, addHeapObject(buffer), addHeapObject(private_key));
500
- var r0 = getInt32Memory0()[retptr / 4 + 0];
501
- var r1 = getInt32Memory0()[retptr / 4 + 1];
502
- var r2 = getInt32Memory0()[retptr / 4 + 2];
503
- if (r2) {
504
- throw takeObject(r1);
505
- }
506
- return takeObject(r0);
507
- } finally {
508
- wasm.__wbindgen_add_to_stack_pointer(16);
509
- }
526
+ export function get_mempool_txs() {
527
+ const ret = wasm.get_mempool_txs();
528
+ return takeObject(ret);
510
529
  }
511
530
 
512
531
  /**
513
- * @param {Uint8Array} buffer
514
- * @returns {string}
532
+ * @param {bigint} duration_in_ms
533
+ * @returns {Promise<void>}
515
534
  */
516
- export function hash(buffer) {
517
- const ret = wasm.hash(addHeapObject(buffer));
535
+ export function process_timer_event(duration_in_ms) {
536
+ const ret = wasm.process_timer_event(duration_in_ms);
518
537
  return takeObject(ret);
519
538
  }
520
539
 
521
540
  /**
522
- * @returns {Promise<boolean>}
541
+ * @returns {string}
523
542
  */
524
- export function produce_block_with_gt() {
525
- const ret = wasm.produce_block_with_gt();
543
+ export function generate_private_key() {
544
+ const ret = wasm.generate_private_key();
526
545
  return takeObject(ret);
527
546
  }
528
547
 
529
548
  /**
530
- * @param {string} private_key
531
- * @returns {string}
549
+ * @param {Uint8Array} buffer
550
+ * @param {WasmNetworkPeer} peer
551
+ * @returns {Promise<Uint8Array>}
532
552
  */
533
- export function generate_public_key(private_key) {
534
- try {
535
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
536
- wasm.generate_public_key(retptr, addHeapObject(private_key));
537
- var r0 = getInt32Memory0()[retptr / 4 + 0];
538
- var r1 = getInt32Memory0()[retptr / 4 + 1];
539
- var r2 = getInt32Memory0()[retptr / 4 + 2];
540
- if (r2) {
541
- throw takeObject(r1);
542
- }
543
- return takeObject(r0);
544
- } finally {
545
- wasm.__wbindgen_add_to_stack_pointer(16);
546
- }
553
+ export function process_msg_buffer_from_peer(buffer, peer) {
554
+ _assertClass(peer, WasmNetworkPeer);
555
+ const ret = wasm.process_msg_buffer_from_peer(addHeapObject(buffer), peer.__wbg_ptr);
556
+ return takeObject(ret);
547
557
  }
548
558
 
549
559
  /**
550
- * @param {bigint} duration_in_ms
551
- * @returns {Promise<void>}
560
+ * @returns {Promise<WasmWallet>}
552
561
  */
553
- export function process_timer_event(duration_in_ms) {
554
- const ret = wasm.process_timer_event(duration_in_ms);
562
+ export function get_wallet() {
563
+ const ret = wasm.get_wallet();
555
564
  return takeObject(ret);
556
565
  }
557
566
 
@@ -3185,7 +3194,7 @@ function __wbg_get_imports() {
3185
3194
  imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3186
3195
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
3187
3196
  };
3188
- imports.wbg.__wbg_flushdata_beb249a230c82766 = function(arg0, arg1) {
3197
+ imports.wbg.__wbg_flushdata_b83ca5dfd0e29452 = function(arg0, arg1) {
3189
3198
  let deferred0_0;
3190
3199
  let deferred0_1;
3191
3200
  try {
@@ -3196,7 +3205,7 @@ function __wbg_get_imports() {
3196
3205
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3197
3206
  }
3198
3207
  };
3199
- imports.wbg.__wbg_readvalue_c48590028c7df8a9 = function() { return handleError(function (arg0, arg1) {
3208
+ imports.wbg.__wbg_readvalue_8ca89f95bfe8c944 = function() { return handleError(function (arg0, arg1) {
3200
3209
  let deferred0_0;
3201
3210
  let deferred0_1;
3202
3211
  try {
@@ -3208,13 +3217,13 @@ function __wbg_get_imports() {
3208
3217
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3209
3218
  }
3210
3219
  }, arguments) };
3211
- imports.wbg.__wbg_loadwallet_4ceb11a52ed31150 = function() {
3220
+ imports.wbg.__wbg_loadwallet_97d25e53a03a6a56 = function() {
3212
3221
  MsgHandler.load_wallet();
3213
3222
  };
3214
- imports.wbg.__wbg_savewallet_48a01048300d3ae0 = function() {
3223
+ imports.wbg.__wbg_savewallet_596fb85e8cbee355 = function() {
3215
3224
  MsgHandler.save_wallet();
3216
3225
  };
3217
- imports.wbg.__wbg_writevalue_51eec46fb19ca929 = function(arg0, arg1, arg2) {
3226
+ imports.wbg.__wbg_writevalue_ea7fa78ef5b39d86 = function(arg0, arg1, arg2) {
3218
3227
  let deferred0_0;
3219
3228
  let deferred0_1;
3220
3229
  try {
@@ -3225,7 +3234,7 @@ function __wbg_get_imports() {
3225
3234
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3226
3235
  }
3227
3236
  };
3228
- imports.wbg.__wbg_appendvalue_f15e7c934617c061 = function(arg0, arg1, arg2) {
3237
+ imports.wbg.__wbg_appendvalue_24226e288f591dd1 = function(arg0, arg1, arg2) {
3229
3238
  let deferred0_0;
3230
3239
  let deferred0_1;
3231
3240
  try {
@@ -3236,7 +3245,7 @@ function __wbg_get_imports() {
3236
3245
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3237
3246
  }
3238
3247
  };
3239
- imports.wbg.__wbg_removevalue_25479ac17db43454 = function() { return handleError(function (arg0, arg1) {
3248
+ imports.wbg.__wbg_removevalue_f932e0ed2bf8400d = function() { return handleError(function (arg0, arg1) {
3240
3249
  let deferred0_0;
3241
3250
  let deferred0_1;
3242
3251
  try {
@@ -3248,7 +3257,7 @@ function __wbg_get_imports() {
3248
3257
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3249
3258
  }
3250
3259
  }, arguments) };
3251
- imports.wbg.__wbg_sendmessage_08ead62f30c72dad = function(arg0, arg1, arg2) {
3260
+ imports.wbg.__wbg_sendmessage_b4d1847c2b021a82 = function(arg0, arg1, arg2) {
3252
3261
  let deferred0_0;
3253
3262
  let deferred0_1;
3254
3263
  try {
@@ -3259,7 +3268,7 @@ function __wbg_get_imports() {
3259
3268
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3260
3269
  }
3261
3270
  };
3262
- imports.wbg.__wbg_connecttopeer_af9c6648136c6fa9 = function() { return handleError(function (arg0, arg1) {
3271
+ imports.wbg.__wbg_connecttopeer_8a6739b7848714bb = function() { return handleError(function (arg0, arg1) {
3263
3272
  let deferred0_0;
3264
3273
  let deferred0_1;
3265
3274
  try {
@@ -3271,13 +3280,13 @@ function __wbg_get_imports() {
3271
3280
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3272
3281
  }
3273
3282
  }, arguments) };
3274
- imports.wbg.__wbg_getmyservices_a549f6123f9b4061 = function() {
3283
+ imports.wbg.__wbg_getmyservices_54e00b491be9702b = function() {
3275
3284
  const ret = MsgHandler.get_my_services();
3276
3285
  _assertClass(ret, WasmPeerServiceList);
3277
3286
  var ptr1 = ret.__destroy_into_raw();
3278
3287
  return ptr1;
3279
3288
  };
3280
- imports.wbg.__wbg_isexistingfile_cf510f78dcffb7f2 = function() { return handleError(function (arg0, arg1) {
3289
+ imports.wbg.__wbg_isexistingfile_729bbaf16e1fc1eb = function() { return handleError(function (arg0, arg1) {
3281
3290
  let deferred0_0;
3282
3291
  let deferred0_1;
3283
3292
  try {
@@ -3289,7 +3298,7 @@ function __wbg_get_imports() {
3289
3298
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3290
3299
  }
3291
3300
  }, arguments) };
3292
- imports.wbg.__wbg_processapicall_21a70457c3678931 = function(arg0, arg1, arg2, arg3) {
3301
+ imports.wbg.__wbg_processapicall_894298f60f733af7 = function(arg0, arg1, arg2, arg3) {
3293
3302
  let deferred0_0;
3294
3303
  let deferred0_1;
3295
3304
  try {
@@ -3300,7 +3309,7 @@ function __wbg_get_imports() {
3300
3309
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3301
3310
  }
3302
3311
  };
3303
- imports.wbg.__wbg_processapierror_a872953ac9a4bd83 = function(arg0, arg1, arg2, arg3) {
3312
+ imports.wbg.__wbg_processapierror_c0cff35bfda0d70f = function(arg0, arg1, arg2, arg3) {
3304
3313
  let deferred0_0;
3305
3314
  let deferred0_1;
3306
3315
  try {
@@ -3311,7 +3320,7 @@ function __wbg_get_imports() {
3311
3320
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3312
3321
  }
3313
3322
  };
3314
- imports.wbg.__wbg_processapisuccess_cf9a66841e1cd4fb = function(arg0, arg1, arg2, arg3) {
3323
+ imports.wbg.__wbg_processapisuccess_52f79c0d74c970a8 = function(arg0, arg1, arg2, arg3) {
3315
3324
  let deferred0_0;
3316
3325
  let deferred0_1;
3317
3326
  try {
@@ -3322,21 +3331,21 @@ function __wbg_get_imports() {
3322
3331
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3323
3332
  }
3324
3333
  };
3325
- imports.wbg.__wbg_sendmessagetoall_d8cc61d64753654f = function(arg0, arg1) {
3334
+ imports.wbg.__wbg_sendmessagetoall_596c525857e45a64 = function(arg0, arg1) {
3326
3335
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
3327
3336
  };
3328
- imports.wbg.__wbg_disconnectfrompeer_60611e0dc4c0512e = function() { return handleError(function (arg0) {
3337
+ imports.wbg.__wbg_disconnectfrompeer_de724f594081a3dd = function() { return handleError(function (arg0) {
3329
3338
  const ret = MsgHandler.disconnect_from_peer(BigInt.asUintN(64, arg0));
3330
3339
  return addHeapObject(ret);
3331
3340
  }, arguments) };
3332
- imports.wbg.__wbg_loadblockfilelist_02374f34ace16078 = function() { return handleError(function () {
3341
+ imports.wbg.__wbg_loadblockfilelist_27d8a02029193360 = function() { return handleError(function () {
3333
3342
  const ret = MsgHandler.load_block_file_list();
3334
3343
  return addHeapObject(ret);
3335
3344
  }, arguments) };
3336
- imports.wbg.__wbg_emitinterfaceevent_1b2ec3532289893f = function(arg0, arg1, arg2, arg3) {
3345
+ imports.wbg.__wbg_emitinterfaceevent_9485f82710a2343d = function(arg0, arg1, arg2, arg3) {
3337
3346
  MsgHandler.emit_interface_event(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
3338
3347
  };
3339
- imports.wbg.__wbg_fetchblockfrompeer_b392dde3946bb09a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3348
+ imports.wbg.__wbg_fetchblockfrompeer_5cda6b7a0e312f7b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3340
3349
  let deferred0_0;
3341
3350
  let deferred0_1;
3342
3351
  try {
@@ -3348,7 +3357,7 @@ function __wbg_get_imports() {
3348
3357
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3349
3358
  }
3350
3359
  }, arguments) };
3351
- imports.wbg.__wbg_ensuredirectoryexists_d1c681970723bd87 = function() { return handleError(function (arg0, arg1) {
3360
+ imports.wbg.__wbg_ensuredirectoryexists_c7d5f00e20b68be6 = function() { return handleError(function (arg0, arg1) {
3352
3361
  let deferred0_0;
3353
3362
  let deferred0_1;
3354
3363
  try {
@@ -3359,47 +3368,47 @@ function __wbg_get_imports() {
3359
3368
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3360
3369
  }
3361
3370
  }, arguments) };
3362
- imports.wbg.__wbg_sendmessagebypeerid_0304f60be3bb00c7 = function(arg0, arg1) {
3371
+ imports.wbg.__wbg_sendmessagebypeerid_6a3fb6b5731d0dfc = function(arg0, arg1) {
3363
3372
  MsgHandler.send_message_by_peer_id(BigInt.asUintN(64, arg0), getObject(arg1));
3364
3373
  };
3365
3374
  imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
3366
3375
  const ret = WasmTransaction.__wrap(arg0);
3367
3376
  return addHeapObject(ret);
3368
3377
  };
3369
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
3370
- const ret = WasmBlockchain.__wrap(arg0);
3378
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
3379
+ const ret = WasmWallet.__wrap(arg0);
3371
3380
  return addHeapObject(ret);
3372
3381
  };
3373
- imports.wbg.__wbg_wasmnetworkpeer_new = function(arg0) {
3374
- const ret = WasmNetworkPeer.__wrap(arg0);
3382
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
3383
+ const ret = WasmBlock.__wrap(arg0);
3375
3384
  return addHeapObject(ret);
3376
3385
  };
3377
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
3378
- const ret = WasmSlip.__wrap(arg0);
3386
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
3387
+ const ret = WasmPeer.__wrap(arg0);
3379
3388
  return addHeapObject(ret);
3380
3389
  };
3381
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
3382
- const ret = WasmBalanceSnapshot.__wrap(arg0);
3390
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
3391
+ const ret = WasmBlockchain.__wrap(arg0);
3383
3392
  return addHeapObject(ret);
3384
3393
  };
3385
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
3386
- const ret = WasmPeer.__wrap(arg0);
3394
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
3395
+ const ret = WasmWalletSlip.__wrap(arg0);
3387
3396
  return addHeapObject(ret);
3388
3397
  };
3389
3398
  imports.wbg.__wbg_wasmnft_new = function(arg0) {
3390
3399
  const ret = WasmNFT.__wrap(arg0);
3391
3400
  return addHeapObject(ret);
3392
3401
  };
3393
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
3394
- const ret = WasmBlock.__wrap(arg0);
3402
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
3403
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
3395
3404
  return addHeapObject(ret);
3396
3405
  };
3397
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
3398
- const ret = WasmWalletSlip.__wrap(arg0);
3406
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
3407
+ const ret = WasmSlip.__wrap(arg0);
3399
3408
  return addHeapObject(ret);
3400
3409
  };
3401
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
3402
- const ret = WasmWallet.__wrap(arg0);
3410
+ imports.wbg.__wbg_wasmnetworkpeer_new = function(arg0) {
3411
+ const ret = WasmNetworkPeer.__wrap(arg0);
3403
3412
  return addHeapObject(ret);
3404
3413
  };
3405
3414
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
@@ -3475,8 +3484,8 @@ function __wbg_get_imports() {
3475
3484
  imports.wbg.__wbg_error_696630710900ec44 = function(arg0, arg1, arg2, arg3) {
3476
3485
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
3477
3486
  };
3478
- imports.wbg.__wbindgen_closure_wrapper2803 = function(arg0, arg1, arg2) {
3479
- const ret = makeMutClosure(arg0, arg1, 799, __wbg_adapter_40);
3487
+ imports.wbg.__wbindgen_closure_wrapper2900 = function(arg0, arg1, arg2) {
3488
+ const ret = makeMutClosure(arg0, arg1, 805, __wbg_adapter_40);
3480
3489
  return addHeapObject(ret);
3481
3490
  };
3482
3491
 
Binary file
@@ -20,6 +20,7 @@ export function __wbg_wasmwallet_free(a: number): void;
20
20
  export function __wbg_wasmwalletslip_free(a: number): void;
21
21
  export function create_network_peer(a: number, b: number): number;
22
22
  export function disable_producing_blocks_by_timer(): number;
23
+ export function evaluate_script(a: number): number;
23
24
  export function generate_private_key(): number;
24
25
  export function generate_public_key(a: number, b: number): void;
25
26
  export function get_account_slips(a: number): number;