@starknetfoundation/krusty-kms-wasm 0.9.0 → 0.9.2
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/krusty_kms_wasm.d.ts +69 -69
- package/krusty_kms_wasm.js +207 -227
- package/krusty_kms_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/krusty_kms_wasm.js
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export class WasmAccount {
|
|
10
10
|
static __wrap(ptr) {
|
|
11
|
-
ptr = ptr >>> 0;
|
|
12
11
|
const obj = Object.create(WasmAccount.prototype);
|
|
13
12
|
obj.__wbg_ptr = ptr;
|
|
14
13
|
WasmAccountFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -237,7 +236,6 @@ if (Symbol.dispose) WasmAccount.prototype[Symbol.dispose] = WasmAccount.prototyp
|
|
|
237
236
|
*/
|
|
238
237
|
export class WasmAccountState {
|
|
239
238
|
static __wrap(ptr) {
|
|
240
|
-
ptr = ptr >>> 0;
|
|
241
239
|
const obj = Object.create(WasmAccountState.prototype);
|
|
242
240
|
obj.__wbg_ptr = ptr;
|
|
243
241
|
WasmAccountStateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -333,7 +331,7 @@ export class WasmAccountState {
|
|
|
333
331
|
if (ret[2]) {
|
|
334
332
|
throw takeFromExternrefTable0(ret[1]);
|
|
335
333
|
}
|
|
336
|
-
this.__wbg_ptr = ret[0]
|
|
334
|
+
this.__wbg_ptr = ret[0];
|
|
337
335
|
WasmAccountStateFinalization.register(this, this.__wbg_ptr, this);
|
|
338
336
|
return this;
|
|
339
337
|
}
|
|
@@ -458,7 +456,7 @@ export class WasmCiphertext {
|
|
|
458
456
|
set r_x(arg0) {
|
|
459
457
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
460
458
|
const len0 = WASM_VECTOR_LEN;
|
|
461
|
-
wasm.
|
|
459
|
+
wasm.__wbg_set_wasmciphertext_r_x(this.__wbg_ptr, ptr0, len0);
|
|
462
460
|
}
|
|
463
461
|
/**
|
|
464
462
|
* @param {string} arg0
|
|
@@ -484,7 +482,7 @@ export class WasmCiphertext {
|
|
|
484
482
|
const ptr3 = passStringToWasm0(r_y, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
485
483
|
const len3 = WASM_VECTOR_LEN;
|
|
486
484
|
const ret = wasm.wasmciphertext_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
487
|
-
this.__wbg_ptr = ret
|
|
485
|
+
this.__wbg_ptr = ret;
|
|
488
486
|
WasmCiphertextFinalization.register(this, this.__wbg_ptr, this);
|
|
489
487
|
return this;
|
|
490
488
|
}
|
|
@@ -496,7 +494,6 @@ if (Symbol.dispose) WasmCiphertext.prototype[Symbol.dispose] = WasmCiphertext.pr
|
|
|
496
494
|
*/
|
|
497
495
|
export class WasmDecryptedPoint {
|
|
498
496
|
static __wrap(ptr) {
|
|
499
|
-
ptr = ptr >>> 0;
|
|
500
497
|
const obj = Object.create(WasmDecryptedPoint.prototype);
|
|
501
498
|
obj.__wbg_ptr = ptr;
|
|
502
499
|
WasmDecryptedPointFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -526,7 +523,7 @@ export class WasmDecryptedPoint {
|
|
|
526
523
|
const ret = wasm.__wbg_get_wasmdecryptedpoint_x(this.__wbg_ptr);
|
|
527
524
|
let v1;
|
|
528
525
|
if (ret[0] !== 0) {
|
|
529
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
526
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
530
527
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
531
528
|
}
|
|
532
529
|
return v1;
|
|
@@ -538,7 +535,7 @@ export class WasmDecryptedPoint {
|
|
|
538
535
|
const ret = wasm.__wbg_get_wasmdecryptedpoint_y(this.__wbg_ptr);
|
|
539
536
|
let v1;
|
|
540
537
|
if (ret[0] !== 0) {
|
|
541
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
538
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
542
539
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
543
540
|
}
|
|
544
541
|
return v1;
|
|
@@ -576,7 +573,7 @@ export class WasmDecryptedPoint {
|
|
|
576
573
|
var ptr1 = isLikeNone(y) ? 0 : passStringToWasm0(y, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
577
574
|
var len1 = WASM_VECTOR_LEN;
|
|
578
575
|
const ret = wasm.wasmdecryptedpoint_new(is_identity, ptr0, len0, ptr1, len1);
|
|
579
|
-
this.__wbg_ptr = ret
|
|
576
|
+
this.__wbg_ptr = ret;
|
|
580
577
|
WasmDecryptedPointFinalization.register(this, this.__wbg_ptr, this);
|
|
581
578
|
return this;
|
|
582
579
|
}
|
|
@@ -588,7 +585,6 @@ if (Symbol.dispose) WasmDecryptedPoint.prototype[Symbol.dispose] = WasmDecrypted
|
|
|
588
585
|
*/
|
|
589
586
|
export class WasmEncryptedKey {
|
|
590
587
|
static __wrap(ptr) {
|
|
591
|
-
ptr = ptr >>> 0;
|
|
592
588
|
const obj = Object.create(WasmEncryptedKey.prototype);
|
|
593
589
|
obj.__wbg_ptr = ptr;
|
|
594
590
|
WasmEncryptedKeyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -687,7 +683,6 @@ if (Symbol.dispose) WasmEncryptedKey.prototype[Symbol.dispose] = WasmEncryptedKe
|
|
|
687
683
|
*/
|
|
688
684
|
export class WasmEncryptedPayload {
|
|
689
685
|
static __wrap(ptr) {
|
|
690
|
-
ptr = ptr >>> 0;
|
|
691
686
|
const obj = Object.create(WasmEncryptedPayload.prototype);
|
|
692
687
|
obj.__wbg_ptr = ptr;
|
|
693
688
|
WasmEncryptedPayloadFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -742,7 +737,7 @@ export class WasmEncryptedPayload {
|
|
|
742
737
|
set ciphertext(arg0) {
|
|
743
738
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
744
739
|
const len0 = WASM_VECTOR_LEN;
|
|
745
|
-
wasm.
|
|
740
|
+
wasm.__wbg_set_wasmencryptedpayload_ciphertext(this.__wbg_ptr, ptr0, len0);
|
|
746
741
|
}
|
|
747
742
|
/**
|
|
748
743
|
* Hex-encoded 24-byte nonce.
|
|
@@ -751,7 +746,7 @@ export class WasmEncryptedPayload {
|
|
|
751
746
|
set nonce(arg0) {
|
|
752
747
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
753
748
|
const len0 = WASM_VECTOR_LEN;
|
|
754
|
-
wasm.
|
|
749
|
+
wasm.__wbg_set_wasmencryptedpayload_nonce(this.__wbg_ptr, ptr0, len0);
|
|
755
750
|
}
|
|
756
751
|
}
|
|
757
752
|
if (Symbol.dispose) WasmEncryptedPayload.prototype[Symbol.dispose] = WasmEncryptedPayload.prototype.free;
|
|
@@ -761,7 +756,6 @@ if (Symbol.dispose) WasmEncryptedPayload.prototype[Symbol.dispose] = WasmEncrypt
|
|
|
761
756
|
*/
|
|
762
757
|
export class WasmFundParams {
|
|
763
758
|
static __wrap(ptr) {
|
|
764
|
-
ptr = ptr >>> 0;
|
|
765
759
|
const obj = Object.create(WasmFundParams.prototype);
|
|
766
760
|
obj.__wbg_ptr = ptr;
|
|
767
761
|
WasmFundParamsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -801,7 +795,7 @@ export class WasmFundParams {
|
|
|
801
795
|
const ret = wasm.__wbg_get_wasmfundparams_auditor_public_key(this.__wbg_ptr);
|
|
802
796
|
let v1;
|
|
803
797
|
if (ret[0] !== 0) {
|
|
804
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
798
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
805
799
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
806
800
|
}
|
|
807
801
|
return v1;
|
|
@@ -1049,7 +1043,7 @@ export class WasmFundParams {
|
|
|
1049
1043
|
const ptr8 = passStringToWasm0(current_cipher_r_y, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1050
1044
|
const len8 = WASM_VECTOR_LEN;
|
|
1051
1045
|
const ret = wasm.wasmfundparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8);
|
|
1052
|
-
this.__wbg_ptr = ret
|
|
1046
|
+
this.__wbg_ptr = ret;
|
|
1053
1047
|
WasmFundParamsFinalization.register(this, this.__wbg_ptr, this);
|
|
1054
1048
|
return this;
|
|
1055
1049
|
}
|
|
@@ -1072,7 +1066,6 @@ if (Symbol.dispose) WasmFundParams.prototype[Symbol.dispose] = WasmFundParams.pr
|
|
|
1072
1066
|
*/
|
|
1073
1067
|
export class WasmFundProofResult {
|
|
1074
1068
|
static __wrap(ptr) {
|
|
1075
|
-
ptr = ptr >>> 0;
|
|
1076
1069
|
const obj = Object.create(WasmFundProofResult.prototype);
|
|
1077
1070
|
obj.__wbg_ptr = ptr;
|
|
1078
1071
|
WasmFundProofResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1112,7 +1105,7 @@ export class WasmFundProofResult {
|
|
|
1112
1105
|
const ret = wasm.__wbg_get_wasmfundproofresult_audit_json(this.__wbg_ptr);
|
|
1113
1106
|
let v1;
|
|
1114
1107
|
if (ret[0] !== 0) {
|
|
1115
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1108
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1116
1109
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1117
1110
|
}
|
|
1118
1111
|
return v1;
|
|
@@ -1172,7 +1165,7 @@ export class WasmFundProofResult {
|
|
|
1172
1165
|
set amount(arg0) {
|
|
1173
1166
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1174
1167
|
const len0 = WASM_VECTOR_LEN;
|
|
1175
|
-
wasm.
|
|
1168
|
+
wasm.__wbg_set_wasmfundproofresult_amount(this.__wbg_ptr, ptr0, len0);
|
|
1176
1169
|
}
|
|
1177
1170
|
/**
|
|
1178
1171
|
* Audit data as JSON (if auditor configured)
|
|
@@ -1190,7 +1183,7 @@ export class WasmFundProofResult {
|
|
|
1190
1183
|
set proof_json(arg0) {
|
|
1191
1184
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1192
1185
|
const len0 = WASM_VECTOR_LEN;
|
|
1193
|
-
wasm.
|
|
1186
|
+
wasm.__wbg_set_wasmfundproofresult_proof_json(this.__wbg_ptr, ptr0, len0);
|
|
1194
1187
|
}
|
|
1195
1188
|
/**
|
|
1196
1189
|
* Public key Y point (x coordinate)
|
|
@@ -1199,7 +1192,7 @@ export class WasmFundProofResult {
|
|
|
1199
1192
|
set y_x(arg0) {
|
|
1200
1193
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1201
1194
|
const len0 = WASM_VECTOR_LEN;
|
|
1202
|
-
wasm.
|
|
1195
|
+
wasm.__wbg_set_wasmfundproofresult_y_x(this.__wbg_ptr, ptr0, len0);
|
|
1203
1196
|
}
|
|
1204
1197
|
/**
|
|
1205
1198
|
* Public key Y point (y coordinate)
|
|
@@ -1208,7 +1201,7 @@ export class WasmFundProofResult {
|
|
|
1208
1201
|
set y_y(arg0) {
|
|
1209
1202
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1210
1203
|
const len0 = WASM_VECTOR_LEN;
|
|
1211
|
-
wasm.
|
|
1204
|
+
wasm.__wbg_set_wasmfundproofresult_y_y(this.__wbg_ptr, ptr0, len0);
|
|
1212
1205
|
}
|
|
1213
1206
|
}
|
|
1214
1207
|
if (Symbol.dispose) WasmFundProofResult.prototype[Symbol.dispose] = WasmFundProofResult.prototype.free;
|
|
@@ -1226,7 +1219,6 @@ if (Symbol.dispose) WasmFundProofResult.prototype[Symbol.dispose] = WasmFundProo
|
|
|
1226
1219
|
*/
|
|
1227
1220
|
export class WasmKeypair {
|
|
1228
1221
|
static __wrap(ptr) {
|
|
1229
|
-
ptr = ptr >>> 0;
|
|
1230
1222
|
const obj = Object.create(WasmKeypair.prototype);
|
|
1231
1223
|
obj.__wbg_ptr = ptr;
|
|
1232
1224
|
WasmKeypairFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1303,7 +1295,7 @@ export class WasmKeypair {
|
|
|
1303
1295
|
set private_key(arg0) {
|
|
1304
1296
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1305
1297
|
const len0 = WASM_VECTOR_LEN;
|
|
1306
|
-
wasm.
|
|
1298
|
+
wasm.__wbg_set_wasmkeypair_private_key(this.__wbg_ptr, ptr0, len0);
|
|
1307
1299
|
}
|
|
1308
1300
|
/**
|
|
1309
1301
|
* Public key X coordinate as hex string
|
|
@@ -1312,7 +1304,7 @@ export class WasmKeypair {
|
|
|
1312
1304
|
set public_key_x(arg0) {
|
|
1313
1305
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1314
1306
|
const len0 = WASM_VECTOR_LEN;
|
|
1315
|
-
wasm.
|
|
1307
|
+
wasm.__wbg_set_wasmkeypair_public_key_x(this.__wbg_ptr, ptr0, len0);
|
|
1316
1308
|
}
|
|
1317
1309
|
/**
|
|
1318
1310
|
* Public key Y coordinate as hex string
|
|
@@ -1321,7 +1313,7 @@ export class WasmKeypair {
|
|
|
1321
1313
|
set public_key_y(arg0) {
|
|
1322
1314
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1323
1315
|
const len0 = WASM_VECTOR_LEN;
|
|
1324
|
-
wasm.
|
|
1316
|
+
wasm.__wbg_set_wasmkeypair_public_key_y(this.__wbg_ptr, ptr0, len0);
|
|
1325
1317
|
}
|
|
1326
1318
|
/**
|
|
1327
1319
|
* @param {string} private_key
|
|
@@ -1339,7 +1331,7 @@ export class WasmKeypair {
|
|
|
1339
1331
|
if (ret[2]) {
|
|
1340
1332
|
throw takeFromExternrefTable0(ret[1]);
|
|
1341
1333
|
}
|
|
1342
|
-
this.__wbg_ptr = ret[0]
|
|
1334
|
+
this.__wbg_ptr = ret[0];
|
|
1343
1335
|
WasmKeypairFinalization.register(this, this.__wbg_ptr, this);
|
|
1344
1336
|
return this;
|
|
1345
1337
|
}
|
|
@@ -1384,7 +1376,6 @@ if (Symbol.dispose) WasmKeypair.prototype[Symbol.dispose] = WasmKeypair.prototyp
|
|
|
1384
1376
|
*/
|
|
1385
1377
|
export class WasmNostrKeypair {
|
|
1386
1378
|
static __wrap(ptr) {
|
|
1387
|
-
ptr = ptr >>> 0;
|
|
1388
1379
|
const obj = Object.create(WasmNostrKeypair.prototype);
|
|
1389
1380
|
obj.__wbg_ptr = ptr;
|
|
1390
1381
|
WasmNostrKeypairFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1445,7 +1436,7 @@ export class WasmNostrKeypair {
|
|
|
1445
1436
|
set private_key(arg0) {
|
|
1446
1437
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1447
1438
|
const len0 = WASM_VECTOR_LEN;
|
|
1448
|
-
wasm.
|
|
1439
|
+
wasm.__wbg_set_wasmnostrkeypair_private_key(this.__wbg_ptr, ptr0, len0);
|
|
1449
1440
|
}
|
|
1450
1441
|
/**
|
|
1451
1442
|
* Public key as x-only hex string (64 hex chars, no 0x prefix)
|
|
@@ -1454,7 +1445,7 @@ export class WasmNostrKeypair {
|
|
|
1454
1445
|
set public_key(arg0) {
|
|
1455
1446
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1456
1447
|
const len0 = WASM_VECTOR_LEN;
|
|
1457
|
-
wasm.
|
|
1448
|
+
wasm.__wbg_set_wasmnostrkeypair_public_key(this.__wbg_ptr, ptr0, len0);
|
|
1458
1449
|
}
|
|
1459
1450
|
/**
|
|
1460
1451
|
* @param {string} private_key
|
|
@@ -1466,7 +1457,7 @@ export class WasmNostrKeypair {
|
|
|
1466
1457
|
const ptr1 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1467
1458
|
const len1 = WASM_VECTOR_LEN;
|
|
1468
1459
|
const ret = wasm.wasmnostrkeypair_new(ptr0, len0, ptr1, len1);
|
|
1469
|
-
this.__wbg_ptr = ret
|
|
1460
|
+
this.__wbg_ptr = ret;
|
|
1470
1461
|
WasmNostrKeypairFinalization.register(this, this.__wbg_ptr, this);
|
|
1471
1462
|
return this;
|
|
1472
1463
|
}
|
|
@@ -1478,7 +1469,6 @@ if (Symbol.dispose) WasmNostrKeypair.prototype[Symbol.dispose] = WasmNostrKeypai
|
|
|
1478
1469
|
*/
|
|
1479
1470
|
export class WasmNostrPublicKey {
|
|
1480
1471
|
static __wrap(ptr) {
|
|
1481
|
-
ptr = ptr >>> 0;
|
|
1482
1472
|
const obj = Object.create(WasmNostrPublicKey.prototype);
|
|
1483
1473
|
obj.__wbg_ptr = ptr;
|
|
1484
1474
|
WasmNostrPublicKeyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1517,7 +1507,7 @@ export class WasmNostrPublicKey {
|
|
|
1517
1507
|
set public_key(arg0) {
|
|
1518
1508
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1519
1509
|
const len0 = WASM_VECTOR_LEN;
|
|
1520
|
-
wasm.
|
|
1510
|
+
wasm.__wbg_set_wasmnostrpublickey_public_key(this.__wbg_ptr, ptr0, len0);
|
|
1521
1511
|
}
|
|
1522
1512
|
/**
|
|
1523
1513
|
* @param {string} public_key
|
|
@@ -1526,7 +1516,7 @@ export class WasmNostrPublicKey {
|
|
|
1526
1516
|
const ptr0 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1527
1517
|
const len0 = WASM_VECTOR_LEN;
|
|
1528
1518
|
const ret = wasm.wasmnostrpublickey_new(ptr0, len0);
|
|
1529
|
-
this.__wbg_ptr = ret
|
|
1519
|
+
this.__wbg_ptr = ret;
|
|
1530
1520
|
WasmNostrPublicKeyFinalization.register(this, this.__wbg_ptr, this);
|
|
1531
1521
|
return this;
|
|
1532
1522
|
}
|
|
@@ -1538,7 +1528,6 @@ if (Symbol.dispose) WasmNostrPublicKey.prototype[Symbol.dispose] = WasmNostrPubl
|
|
|
1538
1528
|
*/
|
|
1539
1529
|
export class WasmNostrSignature {
|
|
1540
1530
|
static __wrap(ptr) {
|
|
1541
|
-
ptr = ptr >>> 0;
|
|
1542
1531
|
const obj = Object.create(WasmNostrSignature.prototype);
|
|
1543
1532
|
obj.__wbg_ptr = ptr;
|
|
1544
1533
|
WasmNostrSignatureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1593,7 +1582,7 @@ export class WasmNostrSignature {
|
|
|
1593
1582
|
set publicKey(arg0) {
|
|
1594
1583
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1595
1584
|
const len0 = WASM_VECTOR_LEN;
|
|
1596
|
-
wasm.
|
|
1585
|
+
wasm.__wbg_set_wasmnostrsignature_publicKey(this.__wbg_ptr, ptr0, len0);
|
|
1597
1586
|
}
|
|
1598
1587
|
/**
|
|
1599
1588
|
* BIP-340 signature (128 hex chars, no 0x prefix)
|
|
@@ -1602,7 +1591,7 @@ export class WasmNostrSignature {
|
|
|
1602
1591
|
set signature(arg0) {
|
|
1603
1592
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1604
1593
|
const len0 = WASM_VECTOR_LEN;
|
|
1605
|
-
wasm.
|
|
1594
|
+
wasm.__wbg_set_wasmnostrsignature_signature(this.__wbg_ptr, ptr0, len0);
|
|
1606
1595
|
}
|
|
1607
1596
|
}
|
|
1608
1597
|
if (Symbol.dispose) WasmNostrSignature.prototype[Symbol.dispose] = WasmNostrSignature.prototype.free;
|
|
@@ -1612,7 +1601,6 @@ if (Symbol.dispose) WasmNostrSignature.prototype[Symbol.dispose] = WasmNostrSign
|
|
|
1612
1601
|
*/
|
|
1613
1602
|
export class WasmPoint {
|
|
1614
1603
|
static __wrap(ptr) {
|
|
1615
|
-
ptr = ptr >>> 0;
|
|
1616
1604
|
const obj = Object.create(WasmPoint.prototype);
|
|
1617
1605
|
obj.__wbg_ptr = ptr;
|
|
1618
1606
|
WasmPointFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1664,7 +1652,7 @@ export class WasmPoint {
|
|
|
1664
1652
|
set x(arg0) {
|
|
1665
1653
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1666
1654
|
const len0 = WASM_VECTOR_LEN;
|
|
1667
|
-
wasm.
|
|
1655
|
+
wasm.__wbg_set_wasmpoint_x(this.__wbg_ptr, ptr0, len0);
|
|
1668
1656
|
}
|
|
1669
1657
|
/**
|
|
1670
1658
|
* @param {string} arg0
|
|
@@ -1672,7 +1660,7 @@ export class WasmPoint {
|
|
|
1672
1660
|
set y(arg0) {
|
|
1673
1661
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1674
1662
|
const len0 = WASM_VECTOR_LEN;
|
|
1675
|
-
wasm.
|
|
1663
|
+
wasm.__wbg_set_wasmpoint_y(this.__wbg_ptr, ptr0, len0);
|
|
1676
1664
|
}
|
|
1677
1665
|
/**
|
|
1678
1666
|
* @param {string} x
|
|
@@ -1687,7 +1675,7 @@ export class WasmPoint {
|
|
|
1687
1675
|
if (ret[2]) {
|
|
1688
1676
|
throw takeFromExternrefTable0(ret[1]);
|
|
1689
1677
|
}
|
|
1690
|
-
this.__wbg_ptr = ret[0]
|
|
1678
|
+
this.__wbg_ptr = ret[0];
|
|
1691
1679
|
WasmPointFinalization.register(this, this.__wbg_ptr, this);
|
|
1692
1680
|
return this;
|
|
1693
1681
|
}
|
|
@@ -1703,7 +1691,6 @@ if (Symbol.dispose) WasmPoint.prototype[Symbol.dispose] = WasmPoint.prototype.fr
|
|
|
1703
1691
|
*/
|
|
1704
1692
|
export class WasmPublicKey {
|
|
1705
1693
|
static __wrap(ptr) {
|
|
1706
|
-
ptr = ptr >>> 0;
|
|
1707
1694
|
const obj = Object.create(WasmPublicKey.prototype);
|
|
1708
1695
|
obj.__wbg_ptr = ptr;
|
|
1709
1696
|
WasmPublicKeyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1758,7 +1745,7 @@ export class WasmPublicKey {
|
|
|
1758
1745
|
set public_key_x(arg0) {
|
|
1759
1746
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1760
1747
|
const len0 = WASM_VECTOR_LEN;
|
|
1761
|
-
wasm.
|
|
1748
|
+
wasm.__wbg_set_wasmpublickey_public_key_x(this.__wbg_ptr, ptr0, len0);
|
|
1762
1749
|
}
|
|
1763
1750
|
/**
|
|
1764
1751
|
* Public key Y coordinate as hex string
|
|
@@ -1767,7 +1754,7 @@ export class WasmPublicKey {
|
|
|
1767
1754
|
set public_key_y(arg0) {
|
|
1768
1755
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1769
1756
|
const len0 = WASM_VECTOR_LEN;
|
|
1770
|
-
wasm.
|
|
1757
|
+
wasm.__wbg_set_wasmpublickey_public_key_y(this.__wbg_ptr, ptr0, len0);
|
|
1771
1758
|
}
|
|
1772
1759
|
/**
|
|
1773
1760
|
* @param {string} public_key_x
|
|
@@ -1782,7 +1769,7 @@ export class WasmPublicKey {
|
|
|
1782
1769
|
if (ret[2]) {
|
|
1783
1770
|
throw takeFromExternrefTable0(ret[1]);
|
|
1784
1771
|
}
|
|
1785
|
-
this.__wbg_ptr = ret[0]
|
|
1772
|
+
this.__wbg_ptr = ret[0];
|
|
1786
1773
|
WasmPublicKeyFinalization.register(this, this.__wbg_ptr, this);
|
|
1787
1774
|
return this;
|
|
1788
1775
|
}
|
|
@@ -1818,7 +1805,6 @@ if (Symbol.dispose) WasmPublicKey.prototype[Symbol.dispose] = WasmPublicKey.prot
|
|
|
1818
1805
|
*/
|
|
1819
1806
|
export class WasmRagequitParams {
|
|
1820
1807
|
static __wrap(ptr) {
|
|
1821
|
-
ptr = ptr >>> 0;
|
|
1822
1808
|
const obj = Object.create(WasmRagequitParams.prototype);
|
|
1823
1809
|
obj.__wbg_ptr = ptr;
|
|
1824
1810
|
WasmRagequitParamsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1842,7 +1828,7 @@ export class WasmRagequitParams {
|
|
|
1842
1828
|
const ret = wasm.__wbg_get_wasmragequitparams_auditor_public_key(this.__wbg_ptr);
|
|
1843
1829
|
let v1;
|
|
1844
1830
|
if (ret[0] !== 0) {
|
|
1845
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1831
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1846
1832
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1847
1833
|
}
|
|
1848
1834
|
return v1;
|
|
@@ -1995,7 +1981,7 @@ export class WasmRagequitParams {
|
|
|
1995
1981
|
set auditor_public_key(arg0) {
|
|
1996
1982
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1997
1983
|
var len0 = WASM_VECTOR_LEN;
|
|
1998
|
-
wasm.
|
|
1984
|
+
wasm.__wbg_set_wasmragequitparams_auditor_public_key(this.__wbg_ptr, ptr0, len0);
|
|
1999
1985
|
}
|
|
2000
1986
|
/**
|
|
2001
1987
|
* Chain ID (hex)
|
|
@@ -2004,7 +1990,7 @@ export class WasmRagequitParams {
|
|
|
2004
1990
|
set chain_id(arg0) {
|
|
2005
1991
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2006
1992
|
const len0 = WASM_VECTOR_LEN;
|
|
2007
|
-
wasm.
|
|
1993
|
+
wasm.__wbg_set_wasmragequitparams_chain_id(this.__wbg_ptr, ptr0, len0);
|
|
2008
1994
|
}
|
|
2009
1995
|
/**
|
|
2010
1996
|
* Current balance ciphertext
|
|
@@ -2013,7 +1999,7 @@ export class WasmRagequitParams {
|
|
|
2013
1999
|
set current_cipher_l_x(arg0) {
|
|
2014
2000
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2015
2001
|
const len0 = WASM_VECTOR_LEN;
|
|
2016
|
-
wasm.
|
|
2002
|
+
wasm.__wbg_set_wasmragequitparams_current_cipher_l_x(this.__wbg_ptr, ptr0, len0);
|
|
2017
2003
|
}
|
|
2018
2004
|
/**
|
|
2019
2005
|
* @param {string} arg0
|
|
@@ -2021,7 +2007,7 @@ export class WasmRagequitParams {
|
|
|
2021
2007
|
set current_cipher_l_y(arg0) {
|
|
2022
2008
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2023
2009
|
const len0 = WASM_VECTOR_LEN;
|
|
2024
|
-
wasm.
|
|
2010
|
+
wasm.__wbg_set_wasmragequitparams_current_cipher_l_y(this.__wbg_ptr, ptr0, len0);
|
|
2025
2011
|
}
|
|
2026
2012
|
/**
|
|
2027
2013
|
* @param {string} arg0
|
|
@@ -2029,7 +2015,7 @@ export class WasmRagequitParams {
|
|
|
2029
2015
|
set current_cipher_r_x(arg0) {
|
|
2030
2016
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2031
2017
|
const len0 = WASM_VECTOR_LEN;
|
|
2032
|
-
wasm.
|
|
2018
|
+
wasm.__wbg_set_wasmragequitparams_current_cipher_r_x(this.__wbg_ptr, ptr0, len0);
|
|
2033
2019
|
}
|
|
2034
2020
|
/**
|
|
2035
2021
|
* @param {string} arg0
|
|
@@ -2037,7 +2023,7 @@ export class WasmRagequitParams {
|
|
|
2037
2023
|
set current_cipher_r_y(arg0) {
|
|
2038
2024
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2039
2025
|
const len0 = WASM_VECTOR_LEN;
|
|
2040
|
-
wasm.
|
|
2026
|
+
wasm.__wbg_set_wasmragequitparams_current_cipher_r_y(this.__wbg_ptr, ptr0, len0);
|
|
2041
2027
|
}
|
|
2042
2028
|
/**
|
|
2043
2029
|
* Transaction nonce (hex)
|
|
@@ -2046,7 +2032,7 @@ export class WasmRagequitParams {
|
|
|
2046
2032
|
set nonce(arg0) {
|
|
2047
2033
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2048
2034
|
const len0 = WASM_VECTOR_LEN;
|
|
2049
|
-
wasm.
|
|
2035
|
+
wasm.__wbg_set_wasmragequitparams_nonce(this.__wbg_ptr, ptr0, len0);
|
|
2050
2036
|
}
|
|
2051
2037
|
/**
|
|
2052
2038
|
* Recipient address for withdrawn funds (hex)
|
|
@@ -2055,7 +2041,7 @@ export class WasmRagequitParams {
|
|
|
2055
2041
|
set recipient_address(arg0) {
|
|
2056
2042
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2057
2043
|
const len0 = WASM_VECTOR_LEN;
|
|
2058
|
-
wasm.
|
|
2044
|
+
wasm.__wbg_set_wasmragequitparams_recipient_address(this.__wbg_ptr, ptr0, len0);
|
|
2059
2045
|
}
|
|
2060
2046
|
/**
|
|
2061
2047
|
* Sender address (hex)
|
|
@@ -2064,7 +2050,7 @@ export class WasmRagequitParams {
|
|
|
2064
2050
|
set sender_address(arg0) {
|
|
2065
2051
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2066
2052
|
const len0 = WASM_VECTOR_LEN;
|
|
2067
|
-
wasm.
|
|
2053
|
+
wasm.__wbg_set_wasmragequitparams_sender_address(this.__wbg_ptr, ptr0, len0);
|
|
2068
2054
|
}
|
|
2069
2055
|
/**
|
|
2070
2056
|
* Tongo contract address (hex)
|
|
@@ -2073,7 +2059,7 @@ export class WasmRagequitParams {
|
|
|
2073
2059
|
set tongo_address(arg0) {
|
|
2074
2060
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2075
2061
|
const len0 = WASM_VECTOR_LEN;
|
|
2076
|
-
wasm.
|
|
2062
|
+
wasm.__wbg_set_wasmragequitparams_tongo_address(this.__wbg_ptr, ptr0, len0);
|
|
2077
2063
|
}
|
|
2078
2064
|
/**
|
|
2079
2065
|
* @param {string} recipient_address
|
|
@@ -2105,8 +2091,8 @@ export class WasmRagequitParams {
|
|
|
2105
2091
|
const len7 = WASM_VECTOR_LEN;
|
|
2106
2092
|
const ptr8 = passStringToWasm0(current_cipher_r_y, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2107
2093
|
const len8 = WASM_VECTOR_LEN;
|
|
2108
|
-
const ret = wasm.
|
|
2109
|
-
this.__wbg_ptr = ret
|
|
2094
|
+
const ret = wasm.wasmragequitparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8);
|
|
2095
|
+
this.__wbg_ptr = ret;
|
|
2110
2096
|
WasmRagequitParamsFinalization.register(this, this.__wbg_ptr, this);
|
|
2111
2097
|
return this;
|
|
2112
2098
|
}
|
|
@@ -2118,7 +2104,7 @@ export class WasmRagequitParams {
|
|
|
2118
2104
|
const ptr = this.__destroy_into_raw();
|
|
2119
2105
|
const ptr0 = passStringToWasm0(auditor_public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2120
2106
|
const len0 = WASM_VECTOR_LEN;
|
|
2121
|
-
const ret = wasm.
|
|
2107
|
+
const ret = wasm.wasmragequitparams_withAuditor(ptr, ptr0, len0);
|
|
2122
2108
|
return WasmRagequitParams.__wrap(ret);
|
|
2123
2109
|
}
|
|
2124
2110
|
}
|
|
@@ -2129,7 +2115,6 @@ if (Symbol.dispose) WasmRagequitParams.prototype[Symbol.dispose] = WasmRagequitP
|
|
|
2129
2115
|
*/
|
|
2130
2116
|
export class WasmRagequitProofResult {
|
|
2131
2117
|
static __wrap(ptr) {
|
|
2132
|
-
ptr = ptr >>> 0;
|
|
2133
2118
|
const obj = Object.create(WasmRagequitProofResult.prototype);
|
|
2134
2119
|
obj.__wbg_ptr = ptr;
|
|
2135
2120
|
WasmRagequitProofResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2231,7 +2216,7 @@ export class WasmRagequitProofResult {
|
|
|
2231
2216
|
const ret = wasm.__wbg_get_wasmragequitproofresult_audit_json(this.__wbg_ptr);
|
|
2232
2217
|
let v1;
|
|
2233
2218
|
if (ret[0] !== 0) {
|
|
2234
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
2219
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
2235
2220
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2236
2221
|
}
|
|
2237
2222
|
return v1;
|
|
@@ -2306,7 +2291,7 @@ export class WasmRagequitProofResult {
|
|
|
2306
2291
|
set a_r_x(arg0) {
|
|
2307
2292
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2308
2293
|
const len0 = WASM_VECTOR_LEN;
|
|
2309
|
-
wasm.
|
|
2294
|
+
wasm.__wbg_set_wasmragequitproofresult_a_r_x(this.__wbg_ptr, ptr0, len0);
|
|
2310
2295
|
}
|
|
2311
2296
|
/**
|
|
2312
2297
|
* @param {string} arg0
|
|
@@ -2314,7 +2299,7 @@ export class WasmRagequitProofResult {
|
|
|
2314
2299
|
set a_r_y(arg0) {
|
|
2315
2300
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2316
2301
|
const len0 = WASM_VECTOR_LEN;
|
|
2317
|
-
wasm.
|
|
2302
|
+
wasm.__wbg_set_wasmragequitproofresult_a_r_y(this.__wbg_ptr, ptr0, len0);
|
|
2318
2303
|
}
|
|
2319
2304
|
/**
|
|
2320
2305
|
* Commitment A_x = g^kx
|
|
@@ -2323,7 +2308,7 @@ export class WasmRagequitProofResult {
|
|
|
2323
2308
|
set a_x_x(arg0) {
|
|
2324
2309
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2325
2310
|
const len0 = WASM_VECTOR_LEN;
|
|
2326
|
-
wasm.
|
|
2311
|
+
wasm.__wbg_set_wasmragequitproofresult_a_x_x(this.__wbg_ptr, ptr0, len0);
|
|
2327
2312
|
}
|
|
2328
2313
|
/**
|
|
2329
2314
|
* @param {string} arg0
|
|
@@ -2331,7 +2316,7 @@ export class WasmRagequitProofResult {
|
|
|
2331
2316
|
set a_x_y(arg0) {
|
|
2332
2317
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2333
2318
|
const len0 = WASM_VECTOR_LEN;
|
|
2334
|
-
wasm.
|
|
2319
|
+
wasm.__wbg_set_wasmragequitproofresult_a_x_y(this.__wbg_ptr, ptr0, len0);
|
|
2335
2320
|
}
|
|
2336
2321
|
/**
|
|
2337
2322
|
* Full balance amount
|
|
@@ -2340,7 +2325,7 @@ export class WasmRagequitProofResult {
|
|
|
2340
2325
|
set amount(arg0) {
|
|
2341
2326
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2342
2327
|
const len0 = WASM_VECTOR_LEN;
|
|
2343
|
-
wasm.
|
|
2328
|
+
wasm.__wbg_set_wasmragequitproofresult_amount(this.__wbg_ptr, ptr0, len0);
|
|
2344
2329
|
}
|
|
2345
2330
|
/**
|
|
2346
2331
|
* Audit data as JSON (if auditor configured)
|
|
@@ -2349,7 +2334,7 @@ export class WasmRagequitProofResult {
|
|
|
2349
2334
|
set audit_json(arg0) {
|
|
2350
2335
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2351
2336
|
var len0 = WASM_VECTOR_LEN;
|
|
2352
|
-
wasm.
|
|
2337
|
+
wasm.__wbg_set_wasmragequitproofresult_audit_json(this.__wbg_ptr, ptr0, len0);
|
|
2353
2338
|
}
|
|
2354
2339
|
/**
|
|
2355
2340
|
* Recipient address
|
|
@@ -2358,7 +2343,7 @@ export class WasmRagequitProofResult {
|
|
|
2358
2343
|
set recipient(arg0) {
|
|
2359
2344
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2360
2345
|
const len0 = WASM_VECTOR_LEN;
|
|
2361
|
-
wasm.
|
|
2346
|
+
wasm.__wbg_set_wasmragequitproofresult_recipient(this.__wbg_ptr, ptr0, len0);
|
|
2362
2347
|
}
|
|
2363
2348
|
/**
|
|
2364
2349
|
* Scalar response sx
|
|
@@ -2367,7 +2352,7 @@ export class WasmRagequitProofResult {
|
|
|
2367
2352
|
set sx(arg0) {
|
|
2368
2353
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2369
2354
|
const len0 = WASM_VECTOR_LEN;
|
|
2370
|
-
wasm.
|
|
2355
|
+
wasm.__wbg_set_wasmragequitproofresult_sx(this.__wbg_ptr, ptr0, len0);
|
|
2371
2356
|
}
|
|
2372
2357
|
/**
|
|
2373
2358
|
* Public key Y point
|
|
@@ -2376,7 +2361,7 @@ export class WasmRagequitProofResult {
|
|
|
2376
2361
|
set y_x(arg0) {
|
|
2377
2362
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2378
2363
|
const len0 = WASM_VECTOR_LEN;
|
|
2379
|
-
wasm.
|
|
2364
|
+
wasm.__wbg_set_wasmragequitproofresult_y_x(this.__wbg_ptr, ptr0, len0);
|
|
2380
2365
|
}
|
|
2381
2366
|
/**
|
|
2382
2367
|
* @param {string} arg0
|
|
@@ -2384,7 +2369,7 @@ export class WasmRagequitProofResult {
|
|
|
2384
2369
|
set y_y(arg0) {
|
|
2385
2370
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2386
2371
|
const len0 = WASM_VECTOR_LEN;
|
|
2387
|
-
wasm.
|
|
2372
|
+
wasm.__wbg_set_wasmragequitproofresult_y_y(this.__wbg_ptr, ptr0, len0);
|
|
2388
2373
|
}
|
|
2389
2374
|
}
|
|
2390
2375
|
if (Symbol.dispose) WasmRagequitProofResult.prototype[Symbol.dispose] = WasmRagequitProofResult.prototype.free;
|
|
@@ -2474,7 +2459,7 @@ export class WasmRolloverParams {
|
|
|
2474
2459
|
set chain_id(arg0) {
|
|
2475
2460
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2476
2461
|
const len0 = WASM_VECTOR_LEN;
|
|
2477
|
-
wasm.
|
|
2462
|
+
wasm.__wbg_set_wasmrolloverparams_chain_id(this.__wbg_ptr, ptr0, len0);
|
|
2478
2463
|
}
|
|
2479
2464
|
/**
|
|
2480
2465
|
* Transaction nonce (hex)
|
|
@@ -2483,7 +2468,7 @@ export class WasmRolloverParams {
|
|
|
2483
2468
|
set nonce(arg0) {
|
|
2484
2469
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2485
2470
|
const len0 = WASM_VECTOR_LEN;
|
|
2486
|
-
wasm.
|
|
2471
|
+
wasm.__wbg_set_wasmrolloverparams_nonce(this.__wbg_ptr, ptr0, len0);
|
|
2487
2472
|
}
|
|
2488
2473
|
/**
|
|
2489
2474
|
* Sender address (hex)
|
|
@@ -2492,7 +2477,7 @@ export class WasmRolloverParams {
|
|
|
2492
2477
|
set sender_address(arg0) {
|
|
2493
2478
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2494
2479
|
const len0 = WASM_VECTOR_LEN;
|
|
2495
|
-
wasm.
|
|
2480
|
+
wasm.__wbg_set_wasmrolloverparams_sender_address(this.__wbg_ptr, ptr0, len0);
|
|
2496
2481
|
}
|
|
2497
2482
|
/**
|
|
2498
2483
|
* Tongo contract address (hex)
|
|
@@ -2501,7 +2486,7 @@ export class WasmRolloverParams {
|
|
|
2501
2486
|
set tongo_address(arg0) {
|
|
2502
2487
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2503
2488
|
const len0 = WASM_VECTOR_LEN;
|
|
2504
|
-
wasm.
|
|
2489
|
+
wasm.__wbg_set_wasmrolloverparams_tongo_address(this.__wbg_ptr, ptr0, len0);
|
|
2505
2490
|
}
|
|
2506
2491
|
/**
|
|
2507
2492
|
* @param {string} nonce
|
|
@@ -2519,7 +2504,7 @@ export class WasmRolloverParams {
|
|
|
2519
2504
|
const ptr3 = passStringToWasm0(sender_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2520
2505
|
const len3 = WASM_VECTOR_LEN;
|
|
2521
2506
|
const ret = wasm.wasmrolloverparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2522
|
-
this.__wbg_ptr = ret
|
|
2507
|
+
this.__wbg_ptr = ret;
|
|
2523
2508
|
WasmRolloverParamsFinalization.register(this, this.__wbg_ptr, this);
|
|
2524
2509
|
return this;
|
|
2525
2510
|
}
|
|
@@ -2531,7 +2516,6 @@ if (Symbol.dispose) WasmRolloverParams.prototype[Symbol.dispose] = WasmRolloverP
|
|
|
2531
2516
|
*/
|
|
2532
2517
|
export class WasmRolloverProofResult {
|
|
2533
2518
|
static __wrap(ptr) {
|
|
2534
|
-
ptr = ptr >>> 0;
|
|
2535
2519
|
const obj = Object.create(WasmRolloverProofResult.prototype);
|
|
2536
2520
|
obj.__wbg_ptr = ptr;
|
|
2537
2521
|
WasmRolloverProofResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2617,7 +2601,7 @@ export class WasmRolloverProofResult {
|
|
|
2617
2601
|
set pending_amount(arg0) {
|
|
2618
2602
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2619
2603
|
const len0 = WASM_VECTOR_LEN;
|
|
2620
|
-
wasm.
|
|
2604
|
+
wasm.__wbg_set_wasmrolloverproofresult_pending_amount(this.__wbg_ptr, ptr0, len0);
|
|
2621
2605
|
}
|
|
2622
2606
|
/**
|
|
2623
2607
|
* PoE proof as JSON
|
|
@@ -2626,7 +2610,7 @@ export class WasmRolloverProofResult {
|
|
|
2626
2610
|
set proof_json(arg0) {
|
|
2627
2611
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2628
2612
|
const len0 = WASM_VECTOR_LEN;
|
|
2629
|
-
wasm.
|
|
2613
|
+
wasm.__wbg_set_wasmrolloverproofresult_proof_json(this.__wbg_ptr, ptr0, len0);
|
|
2630
2614
|
}
|
|
2631
2615
|
/**
|
|
2632
2616
|
* Public key Y point
|
|
@@ -2635,7 +2619,7 @@ export class WasmRolloverProofResult {
|
|
|
2635
2619
|
set y_x(arg0) {
|
|
2636
2620
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2637
2621
|
const len0 = WASM_VECTOR_LEN;
|
|
2638
|
-
wasm.
|
|
2622
|
+
wasm.__wbg_set_wasmrolloverproofresult_y_x(this.__wbg_ptr, ptr0, len0);
|
|
2639
2623
|
}
|
|
2640
2624
|
/**
|
|
2641
2625
|
* @param {string} arg0
|
|
@@ -2643,7 +2627,7 @@ export class WasmRolloverProofResult {
|
|
|
2643
2627
|
set y_y(arg0) {
|
|
2644
2628
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2645
2629
|
const len0 = WASM_VECTOR_LEN;
|
|
2646
|
-
wasm.
|
|
2630
|
+
wasm.__wbg_set_wasmrolloverproofresult_y_y(this.__wbg_ptr, ptr0, len0);
|
|
2647
2631
|
}
|
|
2648
2632
|
}
|
|
2649
2633
|
if (Symbol.dispose) WasmRolloverProofResult.prototype[Symbol.dispose] = WasmRolloverProofResult.prototype.free;
|
|
@@ -2653,7 +2637,6 @@ if (Symbol.dispose) WasmRolloverProofResult.prototype[Symbol.dispose] = WasmRoll
|
|
|
2653
2637
|
*/
|
|
2654
2638
|
export class WasmStarkSignature {
|
|
2655
2639
|
static __wrap(ptr) {
|
|
2656
|
-
ptr = ptr >>> 0;
|
|
2657
2640
|
const obj = Object.create(WasmStarkSignature.prototype);
|
|
2658
2641
|
obj.__wbg_ptr = ptr;
|
|
2659
2642
|
WasmStarkSignatureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2724,7 +2707,7 @@ export class WasmStarkSignature {
|
|
|
2724
2707
|
set publicKey(arg0) {
|
|
2725
2708
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2726
2709
|
const len0 = WASM_VECTOR_LEN;
|
|
2727
|
-
wasm.
|
|
2710
|
+
wasm.__wbg_set_wasmstarksignature_publicKey(this.__wbg_ptr, ptr0, len0);
|
|
2728
2711
|
}
|
|
2729
2712
|
/**
|
|
2730
2713
|
* Signature r component (hex)
|
|
@@ -2733,7 +2716,7 @@ export class WasmStarkSignature {
|
|
|
2733
2716
|
set r(arg0) {
|
|
2734
2717
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2735
2718
|
const len0 = WASM_VECTOR_LEN;
|
|
2736
|
-
wasm.
|
|
2719
|
+
wasm.__wbg_set_wasmstarksignature_r(this.__wbg_ptr, ptr0, len0);
|
|
2737
2720
|
}
|
|
2738
2721
|
/**
|
|
2739
2722
|
* Signature s component (hex)
|
|
@@ -2742,7 +2725,7 @@ export class WasmStarkSignature {
|
|
|
2742
2725
|
set s(arg0) {
|
|
2743
2726
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2744
2727
|
const len0 = WASM_VECTOR_LEN;
|
|
2745
|
-
wasm.
|
|
2728
|
+
wasm.__wbg_set_wasmstarksignature_s(this.__wbg_ptr, ptr0, len0);
|
|
2746
2729
|
}
|
|
2747
2730
|
}
|
|
2748
2731
|
if (Symbol.dispose) WasmStarkSignature.prototype[Symbol.dispose] = WasmStarkSignature.prototype.free;
|
|
@@ -2760,7 +2743,6 @@ if (Symbol.dispose) WasmStarkSignature.prototype[Symbol.dispose] = WasmStarkSign
|
|
|
2760
2743
|
*/
|
|
2761
2744
|
export class WasmStarkXOnlyKeypair {
|
|
2762
2745
|
static __wrap(ptr) {
|
|
2763
|
-
ptr = ptr >>> 0;
|
|
2764
2746
|
const obj = Object.create(WasmStarkXOnlyKeypair.prototype);
|
|
2765
2747
|
obj.__wbg_ptr = ptr;
|
|
2766
2748
|
WasmStarkXOnlyKeypairFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2815,7 +2797,7 @@ export class WasmStarkXOnlyKeypair {
|
|
|
2815
2797
|
set private_key(arg0) {
|
|
2816
2798
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2817
2799
|
const len0 = WASM_VECTOR_LEN;
|
|
2818
|
-
wasm.
|
|
2800
|
+
wasm.__wbg_set_wasmstarkxonlykeypair_private_key(this.__wbg_ptr, ptr0, len0);
|
|
2819
2801
|
}
|
|
2820
2802
|
/**
|
|
2821
2803
|
* Public key X coordinate as hex string
|
|
@@ -2824,7 +2806,7 @@ export class WasmStarkXOnlyKeypair {
|
|
|
2824
2806
|
set public_key_x(arg0) {
|
|
2825
2807
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2826
2808
|
const len0 = WASM_VECTOR_LEN;
|
|
2827
|
-
wasm.
|
|
2809
|
+
wasm.__wbg_set_wasmstarkxonlykeypair_public_key_x(this.__wbg_ptr, ptr0, len0);
|
|
2828
2810
|
}
|
|
2829
2811
|
/**
|
|
2830
2812
|
* @param {string} private_key
|
|
@@ -2839,7 +2821,7 @@ export class WasmStarkXOnlyKeypair {
|
|
|
2839
2821
|
if (ret[2]) {
|
|
2840
2822
|
throw takeFromExternrefTable0(ret[1]);
|
|
2841
2823
|
}
|
|
2842
|
-
this.__wbg_ptr = ret[0]
|
|
2824
|
+
this.__wbg_ptr = ret[0];
|
|
2843
2825
|
WasmStarkXOnlyKeypairFinalization.register(this, this.__wbg_ptr, this);
|
|
2844
2826
|
return this;
|
|
2845
2827
|
}
|
|
@@ -2875,7 +2857,6 @@ if (Symbol.dispose) WasmStarkXOnlyKeypair.prototype[Symbol.dispose] = WasmStarkX
|
|
|
2875
2857
|
*/
|
|
2876
2858
|
export class WasmStarkXOnlyPublicKey {
|
|
2877
2859
|
static __wrap(ptr) {
|
|
2878
|
-
ptr = ptr >>> 0;
|
|
2879
2860
|
const obj = Object.create(WasmStarkXOnlyPublicKey.prototype);
|
|
2880
2861
|
obj.__wbg_ptr = ptr;
|
|
2881
2862
|
WasmStarkXOnlyPublicKeyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2914,7 +2895,7 @@ export class WasmStarkXOnlyPublicKey {
|
|
|
2914
2895
|
set public_key_x(arg0) {
|
|
2915
2896
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2916
2897
|
const len0 = WASM_VECTOR_LEN;
|
|
2917
|
-
wasm.
|
|
2898
|
+
wasm.__wbg_set_wasmstarkxonlypublickey_public_key_x(this.__wbg_ptr, ptr0, len0);
|
|
2918
2899
|
}
|
|
2919
2900
|
/**
|
|
2920
2901
|
* @param {string} public_key_x
|
|
@@ -2926,7 +2907,7 @@ export class WasmStarkXOnlyPublicKey {
|
|
|
2926
2907
|
if (ret[2]) {
|
|
2927
2908
|
throw takeFromExternrefTable0(ret[1]);
|
|
2928
2909
|
}
|
|
2929
|
-
this.__wbg_ptr = ret[0]
|
|
2910
|
+
this.__wbg_ptr = ret[0];
|
|
2930
2911
|
WasmStarkXOnlyPublicKeyFinalization.register(this, this.__wbg_ptr, this);
|
|
2931
2912
|
return this;
|
|
2932
2913
|
}
|
|
@@ -2960,7 +2941,6 @@ if (Symbol.dispose) WasmStarkXOnlyPublicKey.prototype[Symbol.dispose] = WasmStar
|
|
|
2960
2941
|
*/
|
|
2961
2942
|
export class WasmTransferParams {
|
|
2962
2943
|
static __wrap(ptr) {
|
|
2963
|
-
ptr = ptr >>> 0;
|
|
2964
2944
|
const obj = Object.create(WasmTransferParams.prototype);
|
|
2965
2945
|
obj.__wbg_ptr = ptr;
|
|
2966
2946
|
WasmTransferParamsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -3000,7 +2980,7 @@ export class WasmTransferParams {
|
|
|
3000
2980
|
const ret = wasm.__wbg_get_wasmtransferparams_auditor_public_key(this.__wbg_ptr);
|
|
3001
2981
|
let v1;
|
|
3002
2982
|
if (ret[0] !== 0) {
|
|
3003
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
2983
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
3004
2984
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
3005
2985
|
}
|
|
3006
2986
|
return v1;
|
|
@@ -3161,7 +3141,7 @@ export class WasmTransferParams {
|
|
|
3161
3141
|
set amount(arg0) {
|
|
3162
3142
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3163
3143
|
const len0 = WASM_VECTOR_LEN;
|
|
3164
|
-
wasm.
|
|
3144
|
+
wasm.__wbg_set_wasmtransferparams_amount(this.__wbg_ptr, ptr0, len0);
|
|
3165
3145
|
}
|
|
3166
3146
|
/**
|
|
3167
3147
|
* Optional auditor public key
|
|
@@ -3186,7 +3166,7 @@ export class WasmTransferParams {
|
|
|
3186
3166
|
set chain_id(arg0) {
|
|
3187
3167
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3188
3168
|
const len0 = WASM_VECTOR_LEN;
|
|
3189
|
-
wasm.
|
|
3169
|
+
wasm.__wbg_set_wasmtransferparams_chain_id(this.__wbg_ptr, ptr0, len0);
|
|
3190
3170
|
}
|
|
3191
3171
|
/**
|
|
3192
3172
|
* Current balance ciphertext
|
|
@@ -3195,7 +3175,7 @@ export class WasmTransferParams {
|
|
|
3195
3175
|
set current_cipher_l_x(arg0) {
|
|
3196
3176
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3197
3177
|
const len0 = WASM_VECTOR_LEN;
|
|
3198
|
-
wasm.
|
|
3178
|
+
wasm.__wbg_set_wasmtransferparams_current_cipher_l_x(this.__wbg_ptr, ptr0, len0);
|
|
3199
3179
|
}
|
|
3200
3180
|
/**
|
|
3201
3181
|
* @param {string} arg0
|
|
@@ -3203,7 +3183,7 @@ export class WasmTransferParams {
|
|
|
3203
3183
|
set current_cipher_l_y(arg0) {
|
|
3204
3184
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3205
3185
|
const len0 = WASM_VECTOR_LEN;
|
|
3206
|
-
wasm.
|
|
3186
|
+
wasm.__wbg_set_wasmtransferparams_current_cipher_l_y(this.__wbg_ptr, ptr0, len0);
|
|
3207
3187
|
}
|
|
3208
3188
|
/**
|
|
3209
3189
|
* @param {string} arg0
|
|
@@ -3211,7 +3191,7 @@ export class WasmTransferParams {
|
|
|
3211
3191
|
set current_cipher_r_x(arg0) {
|
|
3212
3192
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3213
3193
|
const len0 = WASM_VECTOR_LEN;
|
|
3214
|
-
wasm.
|
|
3194
|
+
wasm.__wbg_set_wasmtransferparams_current_cipher_r_x(this.__wbg_ptr, ptr0, len0);
|
|
3215
3195
|
}
|
|
3216
3196
|
/**
|
|
3217
3197
|
* @param {string} arg0
|
|
@@ -3228,7 +3208,7 @@ export class WasmTransferParams {
|
|
|
3228
3208
|
set nonce(arg0) {
|
|
3229
3209
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3230
3210
|
const len0 = WASM_VECTOR_LEN;
|
|
3231
|
-
wasm.
|
|
3211
|
+
wasm.__wbg_set_wasmtransferparams_nonce(this.__wbg_ptr, ptr0, len0);
|
|
3232
3212
|
}
|
|
3233
3213
|
/**
|
|
3234
3214
|
* Recipient's Tongo public key
|
|
@@ -3237,7 +3217,7 @@ export class WasmTransferParams {
|
|
|
3237
3217
|
set recipient_public_key(arg0) {
|
|
3238
3218
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3239
3219
|
const len0 = WASM_VECTOR_LEN;
|
|
3240
|
-
wasm.
|
|
3220
|
+
wasm.__wbg_set_wasmtransferparams_recipient_public_key(this.__wbg_ptr, ptr0, len0);
|
|
3241
3221
|
}
|
|
3242
3222
|
/**
|
|
3243
3223
|
* Sender address (hex)
|
|
@@ -3246,7 +3226,7 @@ export class WasmTransferParams {
|
|
|
3246
3226
|
set sender_address(arg0) {
|
|
3247
3227
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3248
3228
|
const len0 = WASM_VECTOR_LEN;
|
|
3249
|
-
wasm.
|
|
3229
|
+
wasm.__wbg_set_wasmtransferparams_sender_address(this.__wbg_ptr, ptr0, len0);
|
|
3250
3230
|
}
|
|
3251
3231
|
/**
|
|
3252
3232
|
* Tongo contract address (hex)
|
|
@@ -3255,7 +3235,7 @@ export class WasmTransferParams {
|
|
|
3255
3235
|
set tongo_address(arg0) {
|
|
3256
3236
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3257
3237
|
const len0 = WASM_VECTOR_LEN;
|
|
3258
|
-
wasm.
|
|
3238
|
+
wasm.__wbg_set_wasmtransferparams_tongo_address(this.__wbg_ptr, ptr0, len0);
|
|
3259
3239
|
}
|
|
3260
3240
|
/**
|
|
3261
3241
|
* @param {string} recipient_public_key
|
|
@@ -3291,7 +3271,7 @@ export class WasmTransferParams {
|
|
|
3291
3271
|
const ptr9 = passStringToWasm0(current_cipher_r_y, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3292
3272
|
const len9 = WASM_VECTOR_LEN;
|
|
3293
3273
|
const ret = wasm.wasmtransferparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9);
|
|
3294
|
-
this.__wbg_ptr = ret
|
|
3274
|
+
this.__wbg_ptr = ret;
|
|
3295
3275
|
WasmTransferParamsFinalization.register(this, this.__wbg_ptr, this);
|
|
3296
3276
|
return this;
|
|
3297
3277
|
}
|
|
@@ -3323,7 +3303,6 @@ if (Symbol.dispose) WasmTransferParams.prototype[Symbol.dispose] = WasmTransferP
|
|
|
3323
3303
|
*/
|
|
3324
3304
|
export class WasmTransferProofResult {
|
|
3325
3305
|
static __wrap(ptr) {
|
|
3326
|
-
ptr = ptr >>> 0;
|
|
3327
3306
|
const obj = Object.create(WasmTransferProofResult.prototype);
|
|
3328
3307
|
obj.__wbg_ptr = ptr;
|
|
3329
3308
|
WasmTransferProofResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -3347,7 +3326,7 @@ export class WasmTransferProofResult {
|
|
|
3347
3326
|
const ret = wasm.__wbg_get_wasmtransferproofresult_audit_balance_json(this.__wbg_ptr);
|
|
3348
3327
|
let v1;
|
|
3349
3328
|
if (ret[0] !== 0) {
|
|
3350
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
3329
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
3351
3330
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
3352
3331
|
}
|
|
3353
3332
|
return v1;
|
|
@@ -3360,7 +3339,7 @@ export class WasmTransferProofResult {
|
|
|
3360
3339
|
const ret = wasm.__wbg_get_wasmtransferproofresult_audit_transfer_json(this.__wbg_ptr);
|
|
3361
3340
|
let v1;
|
|
3362
3341
|
if (ret[0] !== 0) {
|
|
3363
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
3342
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
3364
3343
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
3365
3344
|
}
|
|
3366
3345
|
return v1;
|
|
@@ -3767,7 +3746,7 @@ export class WasmTransferProofResult {
|
|
|
3767
3746
|
set aux_v_x(arg0) {
|
|
3768
3747
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3769
3748
|
const len0 = WASM_VECTOR_LEN;
|
|
3770
|
-
wasm.
|
|
3749
|
+
wasm.__wbg_set_wasmtransferproofresult_aux_v_x(this.__wbg_ptr, ptr0, len0);
|
|
3771
3750
|
}
|
|
3772
3751
|
/**
|
|
3773
3752
|
* @param {string} arg0
|
|
@@ -3775,7 +3754,7 @@ export class WasmTransferProofResult {
|
|
|
3775
3754
|
set aux_v_y(arg0) {
|
|
3776
3755
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3777
3756
|
const len0 = WASM_VECTOR_LEN;
|
|
3778
|
-
wasm.
|
|
3757
|
+
wasm.__wbg_set_wasmtransferproofresult_aux_v_y(this.__wbg_ptr, ptr0, len0);
|
|
3779
3758
|
}
|
|
3780
3759
|
/**
|
|
3781
3760
|
* New balance cipher (L)
|
|
@@ -3827,7 +3806,7 @@ export class WasmTransferProofResult {
|
|
|
3827
3806
|
set self_l_x(arg0) {
|
|
3828
3807
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3829
3808
|
const len0 = WASM_VECTOR_LEN;
|
|
3830
|
-
wasm.
|
|
3809
|
+
wasm.__wbg_set_wasmtransferproofresult_self_l_x(this.__wbg_ptr, ptr0, len0);
|
|
3831
3810
|
}
|
|
3832
3811
|
/**
|
|
3833
3812
|
* @param {string} arg0
|
|
@@ -3835,7 +3814,7 @@ export class WasmTransferProofResult {
|
|
|
3835
3814
|
set self_l_y(arg0) {
|
|
3836
3815
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3837
3816
|
const len0 = WASM_VECTOR_LEN;
|
|
3838
|
-
wasm.
|
|
3817
|
+
wasm.__wbg_set_wasmtransferproofresult_self_l_y(this.__wbg_ptr, ptr0, len0);
|
|
3839
3818
|
}
|
|
3840
3819
|
/**
|
|
3841
3820
|
* Transfer cipher for self (R)
|
|
@@ -3844,7 +3823,7 @@ export class WasmTransferProofResult {
|
|
|
3844
3823
|
set self_r_x(arg0) {
|
|
3845
3824
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3846
3825
|
const len0 = WASM_VECTOR_LEN;
|
|
3847
|
-
wasm.
|
|
3826
|
+
wasm.__wbg_set_wasmtransferproofresult_self_r_x(this.__wbg_ptr, ptr0, len0);
|
|
3848
3827
|
}
|
|
3849
3828
|
/**
|
|
3850
3829
|
* @param {string} arg0
|
|
@@ -3852,7 +3831,7 @@ export class WasmTransferProofResult {
|
|
|
3852
3831
|
set self_r_y(arg0) {
|
|
3853
3832
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3854
3833
|
const len0 = WASM_VECTOR_LEN;
|
|
3855
|
-
wasm.
|
|
3834
|
+
wasm.__wbg_set_wasmtransferproofresult_self_r_y(this.__wbg_ptr, ptr0, len0);
|
|
3856
3835
|
}
|
|
3857
3836
|
/**
|
|
3858
3837
|
* Transfer cipher for recipient (L)
|
|
@@ -3861,7 +3840,7 @@ export class WasmTransferProofResult {
|
|
|
3861
3840
|
set transfer_l_x(arg0) {
|
|
3862
3841
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3863
3842
|
const len0 = WASM_VECTOR_LEN;
|
|
3864
|
-
wasm.
|
|
3843
|
+
wasm.__wbg_set_wasmtransferproofresult_transfer_l_x(this.__wbg_ptr, ptr0, len0);
|
|
3865
3844
|
}
|
|
3866
3845
|
/**
|
|
3867
3846
|
* @param {string} arg0
|
|
@@ -3869,7 +3848,7 @@ export class WasmTransferProofResult {
|
|
|
3869
3848
|
set transfer_l_y(arg0) {
|
|
3870
3849
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3871
3850
|
const len0 = WASM_VECTOR_LEN;
|
|
3872
|
-
wasm.
|
|
3851
|
+
wasm.__wbg_set_wasmtransferproofresult_transfer_l_y(this.__wbg_ptr, ptr0, len0);
|
|
3873
3852
|
}
|
|
3874
3853
|
/**
|
|
3875
3854
|
* Transfer cipher for recipient (R)
|
|
@@ -3878,7 +3857,7 @@ export class WasmTransferProofResult {
|
|
|
3878
3857
|
set transfer_r_x(arg0) {
|
|
3879
3858
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3880
3859
|
const len0 = WASM_VECTOR_LEN;
|
|
3881
|
-
wasm.
|
|
3860
|
+
wasm.__wbg_set_wasmtransferproofresult_transfer_r_x(this.__wbg_ptr, ptr0, len0);
|
|
3882
3861
|
}
|
|
3883
3862
|
/**
|
|
3884
3863
|
* @param {string} arg0
|
|
@@ -3886,7 +3865,7 @@ export class WasmTransferProofResult {
|
|
|
3886
3865
|
set transfer_r_y(arg0) {
|
|
3887
3866
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3888
3867
|
const len0 = WASM_VECTOR_LEN;
|
|
3889
|
-
wasm.
|
|
3868
|
+
wasm.__wbg_set_wasmtransferproofresult_transfer_r_y(this.__wbg_ptr, ptr0, len0);
|
|
3890
3869
|
}
|
|
3891
3870
|
}
|
|
3892
3871
|
if (Symbol.dispose) WasmTransferProofResult.prototype[Symbol.dispose] = WasmTransferProofResult.prototype.free;
|
|
@@ -3908,7 +3887,6 @@ export const WasmTxType = Object.freeze({
|
|
|
3908
3887
|
*/
|
|
3909
3888
|
export class WasmWithdrawParams {
|
|
3910
3889
|
static __wrap(ptr) {
|
|
3911
|
-
ptr = ptr >>> 0;
|
|
3912
3890
|
const obj = Object.create(WasmWithdrawParams.prototype);
|
|
3913
3891
|
obj.__wbg_ptr = ptr;
|
|
3914
3892
|
WasmWithdrawParamsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -3948,7 +3926,7 @@ export class WasmWithdrawParams {
|
|
|
3948
3926
|
const ret = wasm.__wbg_get_wasmwithdrawparams_auditor_public_key(this.__wbg_ptr);
|
|
3949
3927
|
let v1;
|
|
3950
3928
|
if (ret[0] !== 0) {
|
|
3951
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
3929
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
3952
3930
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
3953
3931
|
}
|
|
3954
3932
|
return v1;
|
|
@@ -3958,7 +3936,7 @@ export class WasmWithdrawParams {
|
|
|
3958
3936
|
* @returns {number | undefined}
|
|
3959
3937
|
*/
|
|
3960
3938
|
get bit_size() {
|
|
3961
|
-
const ret = wasm.
|
|
3939
|
+
const ret = wasm.__wbg_get_wasmwithdrawparams_bit_size(this.__wbg_ptr);
|
|
3962
3940
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
3963
3941
|
}
|
|
3964
3942
|
/**
|
|
@@ -4109,7 +4087,7 @@ export class WasmWithdrawParams {
|
|
|
4109
4087
|
set amount(arg0) {
|
|
4110
4088
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4111
4089
|
const len0 = WASM_VECTOR_LEN;
|
|
4112
|
-
wasm.
|
|
4090
|
+
wasm.__wbg_set_wasmwithdrawparams_amount(this.__wbg_ptr, ptr0, len0);
|
|
4113
4091
|
}
|
|
4114
4092
|
/**
|
|
4115
4093
|
* Optional auditor public key
|
|
@@ -4118,14 +4096,14 @@ export class WasmWithdrawParams {
|
|
|
4118
4096
|
set auditor_public_key(arg0) {
|
|
4119
4097
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4120
4098
|
var len0 = WASM_VECTOR_LEN;
|
|
4121
|
-
wasm.
|
|
4099
|
+
wasm.__wbg_set_wasmwithdrawparams_auditor_public_key(this.__wbg_ptr, ptr0, len0);
|
|
4122
4100
|
}
|
|
4123
4101
|
/**
|
|
4124
4102
|
* Bit size for range proof (default: 40)
|
|
4125
4103
|
* @param {number | null} [arg0]
|
|
4126
4104
|
*/
|
|
4127
4105
|
set bit_size(arg0) {
|
|
4128
|
-
wasm.
|
|
4106
|
+
wasm.__wbg_set_wasmwithdrawparams_bit_size(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0);
|
|
4129
4107
|
}
|
|
4130
4108
|
/**
|
|
4131
4109
|
* Chain ID (hex)
|
|
@@ -4134,7 +4112,7 @@ export class WasmWithdrawParams {
|
|
|
4134
4112
|
set chain_id(arg0) {
|
|
4135
4113
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4136
4114
|
const len0 = WASM_VECTOR_LEN;
|
|
4137
|
-
wasm.
|
|
4115
|
+
wasm.__wbg_set_wasmwithdrawparams_chain_id(this.__wbg_ptr, ptr0, len0);
|
|
4138
4116
|
}
|
|
4139
4117
|
/**
|
|
4140
4118
|
* Current balance ciphertext
|
|
@@ -4143,7 +4121,7 @@ export class WasmWithdrawParams {
|
|
|
4143
4121
|
set current_cipher_l_x(arg0) {
|
|
4144
4122
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4145
4123
|
const len0 = WASM_VECTOR_LEN;
|
|
4146
|
-
wasm.
|
|
4124
|
+
wasm.__wbg_set_wasmwithdrawparams_current_cipher_l_x(this.__wbg_ptr, ptr0, len0);
|
|
4147
4125
|
}
|
|
4148
4126
|
/**
|
|
4149
4127
|
* @param {string} arg0
|
|
@@ -4151,7 +4129,7 @@ export class WasmWithdrawParams {
|
|
|
4151
4129
|
set current_cipher_l_y(arg0) {
|
|
4152
4130
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4153
4131
|
const len0 = WASM_VECTOR_LEN;
|
|
4154
|
-
wasm.
|
|
4132
|
+
wasm.__wbg_set_wasmwithdrawparams_current_cipher_l_y(this.__wbg_ptr, ptr0, len0);
|
|
4155
4133
|
}
|
|
4156
4134
|
/**
|
|
4157
4135
|
* @param {string} arg0
|
|
@@ -4159,7 +4137,7 @@ export class WasmWithdrawParams {
|
|
|
4159
4137
|
set current_cipher_r_x(arg0) {
|
|
4160
4138
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4161
4139
|
const len0 = WASM_VECTOR_LEN;
|
|
4162
|
-
wasm.
|
|
4140
|
+
wasm.__wbg_set_wasmwithdrawparams_current_cipher_r_x(this.__wbg_ptr, ptr0, len0);
|
|
4163
4141
|
}
|
|
4164
4142
|
/**
|
|
4165
4143
|
* @param {string} arg0
|
|
@@ -4167,7 +4145,7 @@ export class WasmWithdrawParams {
|
|
|
4167
4145
|
set current_cipher_r_y(arg0) {
|
|
4168
4146
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4169
4147
|
const len0 = WASM_VECTOR_LEN;
|
|
4170
|
-
wasm.
|
|
4148
|
+
wasm.__wbg_set_wasmwithdrawparams_current_cipher_r_y(this.__wbg_ptr, ptr0, len0);
|
|
4171
4149
|
}
|
|
4172
4150
|
/**
|
|
4173
4151
|
* Transaction nonce (hex)
|
|
@@ -4176,7 +4154,7 @@ export class WasmWithdrawParams {
|
|
|
4176
4154
|
set nonce(arg0) {
|
|
4177
4155
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4178
4156
|
const len0 = WASM_VECTOR_LEN;
|
|
4179
|
-
wasm.
|
|
4157
|
+
wasm.__wbg_set_wasmwithdrawparams_nonce(this.__wbg_ptr, ptr0, len0);
|
|
4180
4158
|
}
|
|
4181
4159
|
/**
|
|
4182
4160
|
* Recipient address for withdrawn funds (hex)
|
|
@@ -4185,7 +4163,7 @@ export class WasmWithdrawParams {
|
|
|
4185
4163
|
set recipient_address(arg0) {
|
|
4186
4164
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4187
4165
|
const len0 = WASM_VECTOR_LEN;
|
|
4188
|
-
wasm.
|
|
4166
|
+
wasm.__wbg_set_wasmwithdrawparams_recipient_address(this.__wbg_ptr, ptr0, len0);
|
|
4189
4167
|
}
|
|
4190
4168
|
/**
|
|
4191
4169
|
* Sender address (hex)
|
|
@@ -4194,7 +4172,7 @@ export class WasmWithdrawParams {
|
|
|
4194
4172
|
set sender_address(arg0) {
|
|
4195
4173
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4196
4174
|
const len0 = WASM_VECTOR_LEN;
|
|
4197
|
-
wasm.
|
|
4175
|
+
wasm.__wbg_set_wasmwithdrawparams_sender_address(this.__wbg_ptr, ptr0, len0);
|
|
4198
4176
|
}
|
|
4199
4177
|
/**
|
|
4200
4178
|
* Tongo contract address (hex)
|
|
@@ -4203,7 +4181,7 @@ export class WasmWithdrawParams {
|
|
|
4203
4181
|
set tongo_address(arg0) {
|
|
4204
4182
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4205
4183
|
const len0 = WASM_VECTOR_LEN;
|
|
4206
|
-
wasm.
|
|
4184
|
+
wasm.__wbg_set_wasmwithdrawparams_tongo_address(this.__wbg_ptr, ptr0, len0);
|
|
4207
4185
|
}
|
|
4208
4186
|
/**
|
|
4209
4187
|
* @param {string} recipient_address
|
|
@@ -4238,8 +4216,8 @@ export class WasmWithdrawParams {
|
|
|
4238
4216
|
const len8 = WASM_VECTOR_LEN;
|
|
4239
4217
|
const ptr9 = passStringToWasm0(current_cipher_r_y, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4240
4218
|
const len9 = WASM_VECTOR_LEN;
|
|
4241
|
-
const ret = wasm.
|
|
4242
|
-
this.__wbg_ptr = ret
|
|
4219
|
+
const ret = wasm.wasmwithdrawparams_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, len9);
|
|
4220
|
+
this.__wbg_ptr = ret;
|
|
4243
4221
|
WasmWithdrawParamsFinalization.register(this, this.__wbg_ptr, this);
|
|
4244
4222
|
return this;
|
|
4245
4223
|
}
|
|
@@ -4251,7 +4229,7 @@ export class WasmWithdrawParams {
|
|
|
4251
4229
|
const ptr = this.__destroy_into_raw();
|
|
4252
4230
|
const ptr0 = passStringToWasm0(auditor_public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4253
4231
|
const len0 = WASM_VECTOR_LEN;
|
|
4254
|
-
const ret = wasm.
|
|
4232
|
+
const ret = wasm.wasmwithdrawparams_withAuditor(ptr, ptr0, len0);
|
|
4255
4233
|
return WasmWithdrawParams.__wrap(ret);
|
|
4256
4234
|
}
|
|
4257
4235
|
/**
|
|
@@ -4260,7 +4238,7 @@ export class WasmWithdrawParams {
|
|
|
4260
4238
|
*/
|
|
4261
4239
|
withBitSize(bit_size) {
|
|
4262
4240
|
const ptr = this.__destroy_into_raw();
|
|
4263
|
-
const ret = wasm.
|
|
4241
|
+
const ret = wasm.wasmwithdrawparams_withBitSize(ptr, bit_size);
|
|
4264
4242
|
return WasmWithdrawParams.__wrap(ret);
|
|
4265
4243
|
}
|
|
4266
4244
|
}
|
|
@@ -4271,7 +4249,6 @@ if (Symbol.dispose) WasmWithdrawParams.prototype[Symbol.dispose] = WasmWithdrawP
|
|
|
4271
4249
|
*/
|
|
4272
4250
|
export class WasmWithdrawProofResult {
|
|
4273
4251
|
static __wrap(ptr) {
|
|
4274
|
-
ptr = ptr >>> 0;
|
|
4275
4252
|
const obj = Object.create(WasmWithdrawProofResult.prototype);
|
|
4276
4253
|
obj.__wbg_ptr = ptr;
|
|
4277
4254
|
WasmWithdrawProofResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -4432,7 +4409,7 @@ export class WasmWithdrawProofResult {
|
|
|
4432
4409
|
const ret = wasm.__wbg_get_wasmwithdrawproofresult_audit_json(this.__wbg_ptr);
|
|
4433
4410
|
let v1;
|
|
4434
4411
|
if (ret[0] !== 0) {
|
|
4435
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
4412
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
4436
4413
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
4437
4414
|
}
|
|
4438
4415
|
return v1;
|
|
@@ -4614,7 +4591,7 @@ export class WasmWithdrawProofResult {
|
|
|
4614
4591
|
set a_r_x(arg0) {
|
|
4615
4592
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4616
4593
|
const len0 = WASM_VECTOR_LEN;
|
|
4617
|
-
wasm.
|
|
4594
|
+
wasm.__wbg_set_wasmwithdrawproofresult_a_r_x(this.__wbg_ptr, ptr0, len0);
|
|
4618
4595
|
}
|
|
4619
4596
|
/**
|
|
4620
4597
|
* @param {string} arg0
|
|
@@ -4622,7 +4599,7 @@ export class WasmWithdrawProofResult {
|
|
|
4622
4599
|
set a_r_y(arg0) {
|
|
4623
4600
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4624
4601
|
const len0 = WASM_VECTOR_LEN;
|
|
4625
|
-
wasm.
|
|
4602
|
+
wasm.__wbg_set_wasmwithdrawproofresult_a_r_y(this.__wbg_ptr, ptr0, len0);
|
|
4626
4603
|
}
|
|
4627
4604
|
/**
|
|
4628
4605
|
* @param {string} arg0
|
|
@@ -4630,7 +4607,7 @@ export class WasmWithdrawProofResult {
|
|
|
4630
4607
|
set a_v_x(arg0) {
|
|
4631
4608
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4632
4609
|
const len0 = WASM_VECTOR_LEN;
|
|
4633
|
-
wasm.
|
|
4610
|
+
wasm.__wbg_set_wasmwithdrawproofresult_a_v_x(this.__wbg_ptr, ptr0, len0);
|
|
4634
4611
|
}
|
|
4635
4612
|
/**
|
|
4636
4613
|
* @param {string} arg0
|
|
@@ -4638,7 +4615,7 @@ export class WasmWithdrawProofResult {
|
|
|
4638
4615
|
set a_v_y(arg0) {
|
|
4639
4616
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4640
4617
|
const len0 = WASM_VECTOR_LEN;
|
|
4641
|
-
wasm.
|
|
4618
|
+
wasm.__wbg_set_wasmwithdrawproofresult_a_v_y(this.__wbg_ptr, ptr0, len0);
|
|
4642
4619
|
}
|
|
4643
4620
|
/**
|
|
4644
4621
|
* @param {string} arg0
|
|
@@ -4646,7 +4623,7 @@ export class WasmWithdrawProofResult {
|
|
|
4646
4623
|
set a_x2(arg0) {
|
|
4647
4624
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4648
4625
|
const len0 = WASM_VECTOR_LEN;
|
|
4649
|
-
wasm.
|
|
4626
|
+
wasm.__wbg_set_wasmwithdrawproofresult_a_x2(this.__wbg_ptr, ptr0, len0);
|
|
4650
4627
|
}
|
|
4651
4628
|
/**
|
|
4652
4629
|
* Commitments
|
|
@@ -4655,7 +4632,7 @@ export class WasmWithdrawProofResult {
|
|
|
4655
4632
|
set a_x_x(arg0) {
|
|
4656
4633
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4657
4634
|
const len0 = WASM_VECTOR_LEN;
|
|
4658
|
-
wasm.
|
|
4635
|
+
wasm.__wbg_set_wasmwithdrawproofresult_a_x_x(this.__wbg_ptr, ptr0, len0);
|
|
4659
4636
|
}
|
|
4660
4637
|
/**
|
|
4661
4638
|
* @param {string} arg0
|
|
@@ -4663,7 +4640,7 @@ export class WasmWithdrawProofResult {
|
|
|
4663
4640
|
set a_x_y(arg0) {
|
|
4664
4641
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4665
4642
|
const len0 = WASM_VECTOR_LEN;
|
|
4666
|
-
wasm.
|
|
4643
|
+
wasm.__wbg_set_wasmwithdrawproofresult_a_x_y(this.__wbg_ptr, ptr0, len0);
|
|
4667
4644
|
}
|
|
4668
4645
|
/**
|
|
4669
4646
|
* @param {string} arg0
|
|
@@ -4671,7 +4648,7 @@ export class WasmWithdrawProofResult {
|
|
|
4671
4648
|
set a_y2(arg0) {
|
|
4672
4649
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4673
4650
|
const len0 = WASM_VECTOR_LEN;
|
|
4674
|
-
wasm.
|
|
4651
|
+
wasm.__wbg_set_wasmwithdrawproofresult_a_y2(this.__wbg_ptr, ptr0, len0);
|
|
4675
4652
|
}
|
|
4676
4653
|
/**
|
|
4677
4654
|
* Amount withdrawn
|
|
@@ -4680,7 +4657,7 @@ export class WasmWithdrawProofResult {
|
|
|
4680
4657
|
set amount(arg0) {
|
|
4681
4658
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4682
4659
|
const len0 = WASM_VECTOR_LEN;
|
|
4683
|
-
wasm.
|
|
4660
|
+
wasm.__wbg_set_wasmwithdrawproofresult_amount(this.__wbg_ptr, ptr0, len0);
|
|
4684
4661
|
}
|
|
4685
4662
|
/**
|
|
4686
4663
|
* Audit data as JSON (if auditor configured)
|
|
@@ -4698,7 +4675,7 @@ export class WasmWithdrawProofResult {
|
|
|
4698
4675
|
set aux_r_x(arg0) {
|
|
4699
4676
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4700
4677
|
const len0 = WASM_VECTOR_LEN;
|
|
4701
|
-
wasm.
|
|
4678
|
+
wasm.__wbg_set_wasmwithdrawproofresult_aux_r_x(this.__wbg_ptr, ptr0, len0);
|
|
4702
4679
|
}
|
|
4703
4680
|
/**
|
|
4704
4681
|
* @param {string} arg0
|
|
@@ -4706,7 +4683,7 @@ export class WasmWithdrawProofResult {
|
|
|
4706
4683
|
set aux_r_y(arg0) {
|
|
4707
4684
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4708
4685
|
const len0 = WASM_VECTOR_LEN;
|
|
4709
|
-
wasm.
|
|
4686
|
+
wasm.__wbg_set_wasmwithdrawproofresult_aux_r_y(this.__wbg_ptr, ptr0, len0);
|
|
4710
4687
|
}
|
|
4711
4688
|
/**
|
|
4712
4689
|
* Auxiliar cipher (V = g^b_left*h^r)
|
|
@@ -4715,7 +4692,7 @@ export class WasmWithdrawProofResult {
|
|
|
4715
4692
|
set aux_v_x(arg0) {
|
|
4716
4693
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4717
4694
|
const len0 = WASM_VECTOR_LEN;
|
|
4718
|
-
wasm.
|
|
4695
|
+
wasm.__wbg_set_wasmwithdrawproofresult_aux_v_x(this.__wbg_ptr, ptr0, len0);
|
|
4719
4696
|
}
|
|
4720
4697
|
/**
|
|
4721
4698
|
* @param {string} arg0
|
|
@@ -4723,7 +4700,7 @@ export class WasmWithdrawProofResult {
|
|
|
4723
4700
|
set aux_v_y(arg0) {
|
|
4724
4701
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4725
4702
|
const len0 = WASM_VECTOR_LEN;
|
|
4726
|
-
wasm.
|
|
4703
|
+
wasm.__wbg_set_wasmwithdrawproofresult_aux_v_y(this.__wbg_ptr, ptr0, len0);
|
|
4727
4704
|
}
|
|
4728
4705
|
/**
|
|
4729
4706
|
* Range proof as JSON
|
|
@@ -4732,7 +4709,7 @@ export class WasmWithdrawProofResult {
|
|
|
4732
4709
|
set range_json(arg0) {
|
|
4733
4710
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4734
4711
|
const len0 = WASM_VECTOR_LEN;
|
|
4735
|
-
wasm.
|
|
4712
|
+
wasm.__wbg_set_wasmwithdrawproofresult_range_json(this.__wbg_ptr, ptr0, len0);
|
|
4736
4713
|
}
|
|
4737
4714
|
/**
|
|
4738
4715
|
* Recipient address
|
|
@@ -4741,7 +4718,7 @@ export class WasmWithdrawProofResult {
|
|
|
4741
4718
|
set recipient(arg0) {
|
|
4742
4719
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4743
4720
|
const len0 = WASM_VECTOR_LEN;
|
|
4744
|
-
wasm.
|
|
4721
|
+
wasm.__wbg_set_wasmwithdrawproofresult_recipient(this.__wbg_ptr, ptr0, len0);
|
|
4745
4722
|
}
|
|
4746
4723
|
/**
|
|
4747
4724
|
* @param {string} arg0
|
|
@@ -4749,7 +4726,7 @@ export class WasmWithdrawProofResult {
|
|
|
4749
4726
|
set sb(arg0) {
|
|
4750
4727
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4751
4728
|
const len0 = WASM_VECTOR_LEN;
|
|
4752
|
-
wasm.
|
|
4729
|
+
wasm.__wbg_set_wasmwithdrawproofresult_sb(this.__wbg_ptr, ptr0, len0);
|
|
4753
4730
|
}
|
|
4754
4731
|
/**
|
|
4755
4732
|
* @param {string} arg0
|
|
@@ -4757,7 +4734,7 @@ export class WasmWithdrawProofResult {
|
|
|
4757
4734
|
set sr(arg0) {
|
|
4758
4735
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4759
4736
|
const len0 = WASM_VECTOR_LEN;
|
|
4760
|
-
wasm.
|
|
4737
|
+
wasm.__wbg_set_wasmwithdrawproofresult_sr(this.__wbg_ptr, ptr0, len0);
|
|
4761
4738
|
}
|
|
4762
4739
|
/**
|
|
4763
4740
|
* Scalar responses
|
|
@@ -4766,7 +4743,7 @@ export class WasmWithdrawProofResult {
|
|
|
4766
4743
|
set sx(arg0) {
|
|
4767
4744
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4768
4745
|
const len0 = WASM_VECTOR_LEN;
|
|
4769
|
-
wasm.
|
|
4746
|
+
wasm.__wbg_set_wasmwithdrawproofresult_sx(this.__wbg_ptr, ptr0, len0);
|
|
4770
4747
|
}
|
|
4771
4748
|
/**
|
|
4772
4749
|
* Public key Y point
|
|
@@ -4775,7 +4752,7 @@ export class WasmWithdrawProofResult {
|
|
|
4775
4752
|
set y_x(arg0) {
|
|
4776
4753
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4777
4754
|
const len0 = WASM_VECTOR_LEN;
|
|
4778
|
-
wasm.
|
|
4755
|
+
wasm.__wbg_set_wasmwithdrawproofresult_y_x(this.__wbg_ptr, ptr0, len0);
|
|
4779
4756
|
}
|
|
4780
4757
|
/**
|
|
4781
4758
|
* @param {string} arg0
|
|
@@ -4783,7 +4760,7 @@ export class WasmWithdrawProofResult {
|
|
|
4783
4760
|
set y_y(arg0) {
|
|
4784
4761
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4785
4762
|
const len0 = WASM_VECTOR_LEN;
|
|
4786
|
-
wasm.
|
|
4763
|
+
wasm.__wbg_set_wasmwithdrawproofresult_y_y(this.__wbg_ptr, ptr0, len0);
|
|
4787
4764
|
}
|
|
4788
4765
|
}
|
|
4789
4766
|
if (Symbol.dispose) WasmWithdrawProofResult.prototype[Symbol.dispose] = WasmWithdrawProofResult.prototype.free;
|
|
@@ -4869,7 +4846,7 @@ export function compileCalls(calls_json) {
|
|
|
4869
4846
|
if (ret[3]) {
|
|
4870
4847
|
throw takeFromExternrefTable0(ret[2]);
|
|
4871
4848
|
}
|
|
4872
|
-
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1])
|
|
4849
|
+
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
4873
4850
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4874
4851
|
return v2;
|
|
4875
4852
|
}
|
|
@@ -5542,7 +5519,7 @@ export function deriveDiscoveryKeypairs(mnemonic, max_index) {
|
|
|
5542
5519
|
try {
|
|
5543
5520
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5544
5521
|
const len0 = WASM_VECTOR_LEN;
|
|
5545
|
-
const ret = wasm.deriveDiscoveryKeypairs(ptr0, len0, isLikeNone(max_index) ?
|
|
5522
|
+
const ret = wasm.deriveDiscoveryKeypairs(ptr0, len0, isLikeNone(max_index) ? Number.MAX_SAFE_INTEGER : (max_index) >>> 0);
|
|
5546
5523
|
var ptr2 = ret[0];
|
|
5547
5524
|
var len2 = ret[1];
|
|
5548
5525
|
if (ret[3]) {
|
|
@@ -5573,7 +5550,7 @@ export function deriveDiscoveryKeypairsWithSecrets(mnemonic, max_index) {
|
|
|
5573
5550
|
try {
|
|
5574
5551
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5575
5552
|
const len0 = WASM_VECTOR_LEN;
|
|
5576
|
-
const ret = wasm.deriveDiscoveryKeypairsWithSecrets(ptr0, len0, isLikeNone(max_index) ?
|
|
5553
|
+
const ret = wasm.deriveDiscoveryKeypairsWithSecrets(ptr0, len0, isLikeNone(max_index) ? Number.MAX_SAFE_INTEGER : (max_index) >>> 0);
|
|
5577
5554
|
var ptr2 = ret[0];
|
|
5578
5555
|
var len2 = ret[1];
|
|
5579
5556
|
if (ret[3]) {
|
|
@@ -5881,7 +5858,7 @@ export function discoverAccountsFromMnemonic(mnemonic, max_index) {
|
|
|
5881
5858
|
try {
|
|
5882
5859
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5883
5860
|
const len0 = WASM_VECTOR_LEN;
|
|
5884
|
-
const ret = wasm.discoverAccountsFromMnemonic(ptr0, len0, isLikeNone(max_index) ?
|
|
5861
|
+
const ret = wasm.discoverAccountsFromMnemonic(ptr0, len0, isLikeNone(max_index) ? Number.MAX_SAFE_INTEGER : (max_index) >>> 0);
|
|
5885
5862
|
var ptr2 = ret[0];
|
|
5886
5863
|
var len2 = ret[1];
|
|
5887
5864
|
if (ret[3]) {
|
|
@@ -5912,7 +5889,7 @@ export function discoverAccountsFromMnemonicWithSecrets(mnemonic, max_index) {
|
|
|
5912
5889
|
try {
|
|
5913
5890
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5914
5891
|
const len0 = WASM_VECTOR_LEN;
|
|
5915
|
-
const ret = wasm.discoverAccountsFromMnemonicWithSecrets(ptr0, len0, isLikeNone(max_index) ?
|
|
5892
|
+
const ret = wasm.discoverAccountsFromMnemonicWithSecrets(ptr0, len0, isLikeNone(max_index) ? Number.MAX_SAFE_INTEGER : (max_index) >>> 0);
|
|
5916
5893
|
var ptr2 = ret[0];
|
|
5917
5894
|
var len2 = ret[1];
|
|
5918
5895
|
if (ret[3]) {
|
|
@@ -6100,7 +6077,7 @@ export function generateAccountAddresses(mnemonic, max_index) {
|
|
|
6100
6077
|
try {
|
|
6101
6078
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6102
6079
|
const len0 = WASM_VECTOR_LEN;
|
|
6103
|
-
const ret = wasm.generateAccountAddresses(ptr0, len0, isLikeNone(max_index) ?
|
|
6080
|
+
const ret = wasm.generateAccountAddresses(ptr0, len0, isLikeNone(max_index) ? Number.MAX_SAFE_INTEGER : (max_index) >>> 0);
|
|
6104
6081
|
var ptr2 = ret[0];
|
|
6105
6082
|
var len2 = ret[1];
|
|
6106
6083
|
if (ret[3]) {
|
|
@@ -6166,7 +6143,7 @@ export function generateAccountCandidates(mnemonic, max_index) {
|
|
|
6166
6143
|
try {
|
|
6167
6144
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6168
6145
|
const len0 = WASM_VECTOR_LEN;
|
|
6169
|
-
const ret = wasm.generateAccountCandidates(ptr0, len0, isLikeNone(max_index) ?
|
|
6146
|
+
const ret = wasm.generateAccountCandidates(ptr0, len0, isLikeNone(max_index) ? Number.MAX_SAFE_INTEGER : (max_index) >>> 0);
|
|
6170
6147
|
var ptr2 = ret[0];
|
|
6171
6148
|
var len2 = ret[1];
|
|
6172
6149
|
if (ret[3]) {
|
|
@@ -6199,7 +6176,7 @@ export function generateAccountCandidatesWithSecrets(mnemonic, max_index) {
|
|
|
6199
6176
|
try {
|
|
6200
6177
|
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6201
6178
|
const len0 = WASM_VECTOR_LEN;
|
|
6202
|
-
const ret = wasm.generateAccountCandidatesWithSecrets(ptr0, len0, isLikeNone(max_index) ?
|
|
6179
|
+
const ret = wasm.generateAccountCandidatesWithSecrets(ptr0, len0, isLikeNone(max_index) ? Number.MAX_SAFE_INTEGER : (max_index) >>> 0);
|
|
6203
6180
|
var ptr2 = ret[0];
|
|
6204
6181
|
var len2 = ret[1];
|
|
6205
6182
|
if (ret[3]) {
|
|
@@ -7015,61 +6992,60 @@ export function validateMnemonic(mnemonic) {
|
|
|
7015
6992
|
const ret = wasm.validateMnemonic(ptr0, len0);
|
|
7016
6993
|
return ret !== 0;
|
|
7017
6994
|
}
|
|
7018
|
-
|
|
7019
6995
|
function __wbg_get_imports() {
|
|
7020
6996
|
const import0 = {
|
|
7021
6997
|
__proto__: null,
|
|
7022
|
-
|
|
6998
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
7023
6999
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
7024
7000
|
return ret;
|
|
7025
7001
|
},
|
|
7026
|
-
|
|
7002
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
7027
7003
|
const ret = String(arg1);
|
|
7028
7004
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7029
7005
|
const len1 = WASM_VECTOR_LEN;
|
|
7030
7006
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7031
7007
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7032
7008
|
},
|
|
7033
|
-
|
|
7009
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
7034
7010
|
const v = arg0;
|
|
7035
7011
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
7036
7012
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
7037
7013
|
},
|
|
7038
|
-
|
|
7014
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
7039
7015
|
const ret = debugString(arg1);
|
|
7040
7016
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7041
7017
|
const len1 = WASM_VECTOR_LEN;
|
|
7042
7018
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7043
7019
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7044
7020
|
},
|
|
7045
|
-
|
|
7021
|
+
__wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
|
|
7046
7022
|
const ret = arg0 in arg1;
|
|
7047
7023
|
return ret;
|
|
7048
7024
|
},
|
|
7049
|
-
|
|
7025
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
7050
7026
|
const val = arg0;
|
|
7051
7027
|
const ret = typeof(val) === 'object' && val !== null;
|
|
7052
7028
|
return ret;
|
|
7053
7029
|
},
|
|
7054
|
-
|
|
7030
|
+
__wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
|
|
7055
7031
|
const ret = typeof(arg0) === 'string';
|
|
7056
7032
|
return ret;
|
|
7057
7033
|
},
|
|
7058
|
-
|
|
7034
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
7059
7035
|
const ret = arg0 === undefined;
|
|
7060
7036
|
return ret;
|
|
7061
7037
|
},
|
|
7062
|
-
|
|
7038
|
+
__wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
|
|
7063
7039
|
const ret = arg0 == arg1;
|
|
7064
7040
|
return ret;
|
|
7065
7041
|
},
|
|
7066
|
-
|
|
7042
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
7067
7043
|
const obj = arg1;
|
|
7068
7044
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
7069
7045
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
7070
7046
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
7071
7047
|
},
|
|
7072
|
-
|
|
7048
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
7073
7049
|
const obj = arg1;
|
|
7074
7050
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
7075
7051
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -7077,17 +7053,17 @@ function __wbg_get_imports() {
|
|
|
7077
7053
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7078
7054
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7079
7055
|
},
|
|
7080
|
-
|
|
7056
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
7081
7057
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
7082
7058
|
},
|
|
7083
|
-
|
|
7059
|
+
__wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
|
|
7084
7060
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
7085
7061
|
}, arguments); },
|
|
7086
|
-
|
|
7062
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
7087
7063
|
const ret = arg0[arg1];
|
|
7088
7064
|
return ret;
|
|
7089
7065
|
},
|
|
7090
|
-
|
|
7066
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
7091
7067
|
let result;
|
|
7092
7068
|
try {
|
|
7093
7069
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -7097,7 +7073,7 @@ function __wbg_get_imports() {
|
|
|
7097
7073
|
const ret = result;
|
|
7098
7074
|
return ret;
|
|
7099
7075
|
},
|
|
7100
|
-
|
|
7076
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
7101
7077
|
let result;
|
|
7102
7078
|
try {
|
|
7103
7079
|
result = arg0 instanceof Uint8Array;
|
|
@@ -7107,41 +7083,41 @@ function __wbg_get_imports() {
|
|
|
7107
7083
|
const ret = result;
|
|
7108
7084
|
return ret;
|
|
7109
7085
|
},
|
|
7110
|
-
|
|
7086
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
7111
7087
|
const ret = arg0.length;
|
|
7112
7088
|
return ret;
|
|
7113
7089
|
},
|
|
7114
|
-
|
|
7115
|
-
const ret = new Object();
|
|
7116
|
-
return ret;
|
|
7117
|
-
},
|
|
7118
|
-
__wbg_new_3eb36ae241fe6f44: function() {
|
|
7090
|
+
__wbg_new_116be93542d39019: function() {
|
|
7119
7091
|
const ret = new Array();
|
|
7120
7092
|
return ret;
|
|
7121
7093
|
},
|
|
7122
|
-
|
|
7094
|
+
__wbg_new_358857d90afd5a2d: function(arg0, arg1) {
|
|
7123
7095
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
7124
7096
|
return ret;
|
|
7125
7097
|
},
|
|
7126
|
-
|
|
7098
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
7099
|
+
const ret = new Uint8Array(arg0);
|
|
7100
|
+
return ret;
|
|
7101
|
+
},
|
|
7102
|
+
__wbg_new_cdf041679ded4c5f: function() {
|
|
7127
7103
|
const ret = new Map();
|
|
7128
7104
|
return ret;
|
|
7129
7105
|
},
|
|
7130
|
-
|
|
7131
|
-
const ret = new
|
|
7106
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
7107
|
+
const ret = new Object();
|
|
7132
7108
|
return ret;
|
|
7133
7109
|
},
|
|
7134
|
-
|
|
7110
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
7135
7111
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
7136
7112
|
},
|
|
7137
|
-
|
|
7113
|
+
__wbg_set_014226dfeca53178: function(arg0, arg1, arg2) {
|
|
7138
7114
|
const ret = arg0.set(arg1, arg2);
|
|
7139
7115
|
return ret;
|
|
7140
7116
|
},
|
|
7141
|
-
|
|
7117
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
7142
7118
|
arg0[arg1] = arg2;
|
|
7143
7119
|
},
|
|
7144
|
-
|
|
7120
|
+
__wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
|
|
7145
7121
|
arg0[arg1 >>> 0] = arg2;
|
|
7146
7122
|
},
|
|
7147
7123
|
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
@@ -7182,79 +7158,79 @@ function __wbg_get_imports() {
|
|
|
7182
7158
|
|
|
7183
7159
|
const WasmAccountFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7184
7160
|
? { register: () => {}, unregister: () => {} }
|
|
7185
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmaccount_free(ptr
|
|
7161
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmaccount_free(ptr, 1));
|
|
7186
7162
|
const WasmAccountStateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7187
7163
|
? { register: () => {}, unregister: () => {} }
|
|
7188
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmaccountstate_free(ptr
|
|
7164
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmaccountstate_free(ptr, 1));
|
|
7189
7165
|
const WasmCiphertextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7190
7166
|
? { register: () => {}, unregister: () => {} }
|
|
7191
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmciphertext_free(ptr
|
|
7167
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmciphertext_free(ptr, 1));
|
|
7192
7168
|
const WasmDecryptedPointFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7193
7169
|
? { register: () => {}, unregister: () => {} }
|
|
7194
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdecryptedpoint_free(ptr
|
|
7170
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdecryptedpoint_free(ptr, 1));
|
|
7195
7171
|
const WasmEncryptedKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7196
7172
|
? { register: () => {}, unregister: () => {} }
|
|
7197
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmencryptedkey_free(ptr
|
|
7173
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmencryptedkey_free(ptr, 1));
|
|
7198
7174
|
const WasmEncryptedPayloadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7199
7175
|
? { register: () => {}, unregister: () => {} }
|
|
7200
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmencryptedpayload_free(ptr
|
|
7176
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmencryptedpayload_free(ptr, 1));
|
|
7201
7177
|
const WasmFundParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7202
7178
|
? { register: () => {}, unregister: () => {} }
|
|
7203
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfundparams_free(ptr
|
|
7179
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfundparams_free(ptr, 1));
|
|
7204
7180
|
const WasmFundProofResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7205
7181
|
? { register: () => {}, unregister: () => {} }
|
|
7206
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfundproofresult_free(ptr
|
|
7182
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfundproofresult_free(ptr, 1));
|
|
7207
7183
|
const WasmKeypairFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7208
7184
|
? { register: () => {}, unregister: () => {} }
|
|
7209
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmkeypair_free(ptr
|
|
7185
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmkeypair_free(ptr, 1));
|
|
7210
7186
|
const WasmNostrKeypairFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7211
7187
|
? { register: () => {}, unregister: () => {} }
|
|
7212
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnostrkeypair_free(ptr
|
|
7188
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnostrkeypair_free(ptr, 1));
|
|
7213
7189
|
const WasmNostrPublicKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7214
7190
|
? { register: () => {}, unregister: () => {} }
|
|
7215
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnostrpublickey_free(ptr
|
|
7191
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnostrpublickey_free(ptr, 1));
|
|
7216
7192
|
const WasmNostrSignatureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7217
7193
|
? { register: () => {}, unregister: () => {} }
|
|
7218
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnostrsignature_free(ptr
|
|
7194
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnostrsignature_free(ptr, 1));
|
|
7219
7195
|
const WasmPointFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7220
7196
|
? { register: () => {}, unregister: () => {} }
|
|
7221
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpoint_free(ptr
|
|
7197
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpoint_free(ptr, 1));
|
|
7222
7198
|
const WasmPublicKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7223
7199
|
? { register: () => {}, unregister: () => {} }
|
|
7224
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpublickey_free(ptr
|
|
7200
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpublickey_free(ptr, 1));
|
|
7225
7201
|
const WasmRagequitParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7226
7202
|
? { register: () => {}, unregister: () => {} }
|
|
7227
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmragequitparams_free(ptr
|
|
7203
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmragequitparams_free(ptr, 1));
|
|
7228
7204
|
const WasmRagequitProofResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7229
7205
|
? { register: () => {}, unregister: () => {} }
|
|
7230
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmragequitproofresult_free(ptr
|
|
7206
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmragequitproofresult_free(ptr, 1));
|
|
7231
7207
|
const WasmRolloverParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7232
7208
|
? { register: () => {}, unregister: () => {} }
|
|
7233
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmrolloverparams_free(ptr
|
|
7209
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmrolloverparams_free(ptr, 1));
|
|
7234
7210
|
const WasmRolloverProofResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7235
7211
|
? { register: () => {}, unregister: () => {} }
|
|
7236
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmrolloverproofresult_free(ptr
|
|
7212
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmrolloverproofresult_free(ptr, 1));
|
|
7237
7213
|
const WasmStarkSignatureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7238
7214
|
? { register: () => {}, unregister: () => {} }
|
|
7239
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstarksignature_free(ptr
|
|
7215
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstarksignature_free(ptr, 1));
|
|
7240
7216
|
const WasmStarkXOnlyKeypairFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7241
7217
|
? { register: () => {}, unregister: () => {} }
|
|
7242
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstarkxonlykeypair_free(ptr
|
|
7218
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstarkxonlykeypair_free(ptr, 1));
|
|
7243
7219
|
const WasmStarkXOnlyPublicKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7244
7220
|
? { register: () => {}, unregister: () => {} }
|
|
7245
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstarkxonlypublickey_free(ptr
|
|
7221
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstarkxonlypublickey_free(ptr, 1));
|
|
7246
7222
|
const WasmTransferParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7247
7223
|
? { register: () => {}, unregister: () => {} }
|
|
7248
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtransferparams_free(ptr
|
|
7224
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtransferparams_free(ptr, 1));
|
|
7249
7225
|
const WasmTransferProofResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7250
7226
|
? { register: () => {}, unregister: () => {} }
|
|
7251
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtransferproofresult_free(ptr
|
|
7227
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtransferproofresult_free(ptr, 1));
|
|
7252
7228
|
const WasmWithdrawParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7253
7229
|
? { register: () => {}, unregister: () => {} }
|
|
7254
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmwithdrawparams_free(ptr
|
|
7230
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmwithdrawparams_free(ptr, 1));
|
|
7255
7231
|
const WasmWithdrawProofResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7256
7232
|
? { register: () => {}, unregister: () => {} }
|
|
7257
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmwithdrawproofresult_free(ptr
|
|
7233
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmwithdrawproofresult_free(ptr, 1));
|
|
7258
7234
|
|
|
7259
7235
|
function addToExternrefTable0(obj) {
|
|
7260
7236
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -7358,8 +7334,7 @@ function getDataViewMemory0() {
|
|
|
7358
7334
|
}
|
|
7359
7335
|
|
|
7360
7336
|
function getStringFromWasm0(ptr, len) {
|
|
7361
|
-
|
|
7362
|
-
return decodeText(ptr, len);
|
|
7337
|
+
return decodeText(ptr >>> 0, len);
|
|
7363
7338
|
}
|
|
7364
7339
|
|
|
7365
7340
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -7465,8 +7440,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
7465
7440
|
|
|
7466
7441
|
let WASM_VECTOR_LEN = 0;
|
|
7467
7442
|
|
|
7468
|
-
let wasmModule, wasm;
|
|
7443
|
+
let wasmModule, wasmInstance, wasm;
|
|
7469
7444
|
function __wbg_finalize_init(instance, module) {
|
|
7445
|
+
wasmInstance = instance;
|
|
7470
7446
|
wasm = instance.exports;
|
|
7471
7447
|
wasmModule = module;
|
|
7472
7448
|
cachedDataViewMemory0 = null;
|
|
@@ -7477,11 +7453,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
7477
7453
|
|
|
7478
7454
|
async function __wbg_load(module, imports) {
|
|
7479
7455
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
7456
|
+
if (!module.ok) {
|
|
7457
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
7458
|
+
}
|
|
7459
|
+
|
|
7480
7460
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
7481
7461
|
try {
|
|
7482
7462
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
7483
7463
|
} catch (e) {
|
|
7484
|
-
const validResponse =
|
|
7464
|
+
const validResponse = expectedResponseType(module.type);
|
|
7485
7465
|
|
|
7486
7466
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
7487
7467
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|