@cartridge/controller-wasm 0.1.9 → 0.2.0
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/package.json +1 -1
- package/pkg-controller/account_wasm.d.ts +7 -6
- package/pkg-controller/account_wasm_bg.js +40 -13
- package/pkg-controller/account_wasm_bg.wasm +0 -0
- package/pkg-session/session_wasm.d.ts +7 -6
- package/pkg-session/session_wasm_bg.js +36 -9
- package/pkg-session/session_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -67,7 +67,6 @@ export enum ErrorCode {
|
|
|
67
67
|
AccountSigning = 124,
|
|
68
68
|
AccountProvider = 125,
|
|
69
69
|
AccountClassHashCalculation = 126,
|
|
70
|
-
AccountClassCompression = 127,
|
|
71
70
|
AccountFeeOutOfRange = 128,
|
|
72
71
|
ProviderRateLimited = 129,
|
|
73
72
|
ProviderArrayLengthMismatch = 130,
|
|
@@ -91,12 +90,14 @@ export interface JsEstimateFeeDetails {
|
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
export interface JsFeeEstimate {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
l1_gas_consumed: number;
|
|
94
|
+
l1_gas_price: number;
|
|
95
|
+
l2_gas_consumed: number;
|
|
96
|
+
l2_gas_price: number;
|
|
97
|
+
l1_data_gas_consumed: number;
|
|
98
|
+
l1_data_gas_price: number;
|
|
99
|
+
overall_fee: number;
|
|
97
100
|
unit: JsPriceUnit;
|
|
98
|
-
data_gas_consumed: JsFelt;
|
|
99
|
-
data_gas_price: JsFelt;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
export interface Owner {
|
|
@@ -118,10 +118,6 @@ function handleError(f, args) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
function isLikeNone(x) {
|
|
122
|
-
return x === undefined || x === null;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
121
|
function dropObject(idx) {
|
|
126
122
|
if (idx < 132) return;
|
|
127
123
|
heap[idx] = heap_next;
|
|
@@ -134,6 +130,10 @@ function takeObject(idx) {
|
|
|
134
130
|
return ret;
|
|
135
131
|
}
|
|
136
132
|
|
|
133
|
+
function isLikeNone(x) {
|
|
134
|
+
return x === undefined || x === null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
137
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
138
138
|
? { register: () => {}, unregister: () => {} }
|
|
139
139
|
: new FinalizationRegistry(state => {
|
|
@@ -272,16 +272,20 @@ export function computeAccountAddress(class_hash, owner, salt) {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
function __wbg_adapter_42(arg0, arg1
|
|
276
|
-
wasm.__wbindgen_export_5(arg0, arg1
|
|
275
|
+
function __wbg_adapter_42(arg0, arg1) {
|
|
276
|
+
wasm.__wbindgen_export_5(arg0, arg1);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function __wbg_adapter_45(arg0, arg1, arg2) {
|
|
280
|
+
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
|
|
277
281
|
}
|
|
278
282
|
|
|
279
|
-
function
|
|
280
|
-
wasm.
|
|
283
|
+
function __wbg_adapter_241(arg0, arg1, arg2, arg3) {
|
|
284
|
+
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
281
285
|
}
|
|
282
286
|
|
|
283
287
|
/**
|
|
284
|
-
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 |
|
|
288
|
+
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136}
|
|
285
289
|
*/
|
|
286
290
|
export const ErrorCode = Object.freeze({
|
|
287
291
|
StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
|
|
@@ -336,7 +340,6 @@ export const ErrorCode = Object.freeze({
|
|
|
336
340
|
AccountSigning: 124, "124": "AccountSigning",
|
|
337
341
|
AccountProvider: 125, "125": "AccountProvider",
|
|
338
342
|
AccountClassHashCalculation: 126, "126": "AccountClassHashCalculation",
|
|
339
|
-
AccountClassCompression: 127, "127": "AccountClassCompression",
|
|
340
343
|
AccountFeeOutOfRange: 128, "128": "AccountFeeOutOfRange",
|
|
341
344
|
ProviderRateLimited: 129, "129": "ProviderRateLimited",
|
|
342
345
|
ProviderArrayLengthMismatch: 130, "130": "ProviderArrayLengthMismatch",
|
|
@@ -976,6 +979,10 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
976
979
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
977
980
|
};
|
|
978
981
|
|
|
982
|
+
export function __wbg_abort_410ec47a64ac6117(arg0, arg1) {
|
|
983
|
+
getObject(arg0).abort(getObject(arg1));
|
|
984
|
+
};
|
|
985
|
+
|
|
979
986
|
export function __wbg_abort_775ef1d17fc65868(arg0) {
|
|
980
987
|
getObject(arg0).abort();
|
|
981
988
|
};
|
|
@@ -1004,6 +1011,11 @@ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg
|
|
|
1004
1011
|
return addHeapObject(ret);
|
|
1005
1012
|
}, arguments) };
|
|
1006
1013
|
|
|
1014
|
+
export function __wbg_clearTimeout_b1115618e821c3b2(arg0) {
|
|
1015
|
+
const ret = clearTimeout(takeObject(arg0));
|
|
1016
|
+
return addHeapObject(ret);
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1007
1019
|
export function __wbg_clear_dbb26f24a86a04a0() { return handleError(function (arg0) {
|
|
1008
1020
|
getObject(arg0).clear();
|
|
1009
1021
|
}, arguments) };
|
|
@@ -1027,6 +1039,11 @@ export function __wbg_error_524f506f44df1645(arg0) {
|
|
|
1027
1039
|
console.error(getObject(arg0));
|
|
1028
1040
|
};
|
|
1029
1041
|
|
|
1042
|
+
export function __wbg_fetch_3afbdcc7ddbf16fe(arg0) {
|
|
1043
|
+
const ret = fetch(getObject(arg0));
|
|
1044
|
+
return addHeapObject(ret);
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1030
1047
|
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
1031
1048
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
1032
1049
|
return addHeapObject(ret);
|
|
@@ -1195,7 +1212,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
1195
1212
|
const a = state0.a;
|
|
1196
1213
|
state0.a = 0;
|
|
1197
1214
|
try {
|
|
1198
|
-
return
|
|
1215
|
+
return __wbg_adapter_241(a, state0.b, arg0, arg1);
|
|
1199
1216
|
} finally {
|
|
1200
1217
|
state0.a = a;
|
|
1201
1218
|
}
|
|
@@ -1321,6 +1338,11 @@ export function __wbg_setItem_212ecc915942ab0a() { return handleError(function (
|
|
|
1321
1338
|
getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1322
1339
|
}, arguments) };
|
|
1323
1340
|
|
|
1341
|
+
export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
1342
|
+
const ret = setTimeout(getObject(arg0), arg1);
|
|
1343
|
+
return addHeapObject(ret);
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1324
1346
|
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
1325
1347
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1326
1348
|
};
|
|
@@ -1473,8 +1495,13 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1473
1495
|
return ret;
|
|
1474
1496
|
};
|
|
1475
1497
|
|
|
1476
|
-
export function
|
|
1477
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1498
|
+
export function __wbindgen_closure_wrapper4692(arg0, arg1, arg2) {
|
|
1499
|
+
const ret = makeMutClosure(arg0, arg1, 583, __wbg_adapter_42);
|
|
1500
|
+
return addHeapObject(ret);
|
|
1501
|
+
};
|
|
1502
|
+
|
|
1503
|
+
export function __wbindgen_closure_wrapper4838(arg0, arg1, arg2) {
|
|
1504
|
+
const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_45);
|
|
1478
1505
|
return addHeapObject(ret);
|
|
1479
1506
|
};
|
|
1480
1507
|
|
|
Binary file
|
|
@@ -53,7 +53,6 @@ export enum ErrorCode {
|
|
|
53
53
|
AccountSigning = 124,
|
|
54
54
|
AccountProvider = 125,
|
|
55
55
|
AccountClassHashCalculation = 126,
|
|
56
|
-
AccountClassCompression = 127,
|
|
57
56
|
AccountFeeOutOfRange = 128,
|
|
58
57
|
ProviderRateLimited = 129,
|
|
59
58
|
ProviderArrayLengthMismatch = 130,
|
|
@@ -77,12 +76,14 @@ export interface JsEstimateFeeDetails {
|
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
export interface JsFeeEstimate {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
l1_gas_consumed: number;
|
|
80
|
+
l1_gas_price: number;
|
|
81
|
+
l2_gas_consumed: number;
|
|
82
|
+
l2_gas_price: number;
|
|
83
|
+
l1_data_gas_consumed: number;
|
|
84
|
+
l1_data_gas_price: number;
|
|
85
|
+
overall_fee: number;
|
|
83
86
|
unit: JsPriceUnit;
|
|
84
|
-
data_gas_consumed: JsFelt;
|
|
85
|
-
data_gas_price: JsFelt;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
export interface Owner {
|
|
@@ -239,16 +239,20 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
239
239
|
WASM_VECTOR_LEN = array.length;
|
|
240
240
|
return ptr;
|
|
241
241
|
}
|
|
242
|
-
function __wbg_adapter_42(arg0, arg1
|
|
243
|
-
wasm.__wbindgen_export_5(arg0, arg1
|
|
242
|
+
function __wbg_adapter_42(arg0, arg1) {
|
|
243
|
+
wasm.__wbindgen_export_5(arg0, arg1);
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function
|
|
247
|
-
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2)
|
|
246
|
+
function __wbg_adapter_45(arg0, arg1, arg2) {
|
|
247
|
+
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function __wbg_adapter_199(arg0, arg1, arg2, arg3) {
|
|
251
|
+
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
/**
|
|
251
|
-
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 |
|
|
255
|
+
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136}
|
|
252
256
|
*/
|
|
253
257
|
export const ErrorCode = Object.freeze({
|
|
254
258
|
StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
|
|
@@ -303,7 +307,6 @@ export const ErrorCode = Object.freeze({
|
|
|
303
307
|
AccountSigning: 124, "124": "AccountSigning",
|
|
304
308
|
AccountProvider: 125, "125": "AccountProvider",
|
|
305
309
|
AccountClassHashCalculation: 126, "126": "AccountClassHashCalculation",
|
|
306
|
-
AccountClassCompression: 127, "127": "AccountClassCompression",
|
|
307
310
|
AccountFeeOutOfRange: 128, "128": "AccountFeeOutOfRange",
|
|
308
311
|
ProviderRateLimited: 129, "129": "ProviderRateLimited",
|
|
309
312
|
ProviderArrayLengthMismatch: 130, "130": "ProviderArrayLengthMismatch",
|
|
@@ -533,6 +536,10 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
533
536
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
534
537
|
};
|
|
535
538
|
|
|
539
|
+
export function __wbg_abort_410ec47a64ac6117(arg0, arg1) {
|
|
540
|
+
getObject(arg0).abort(getObject(arg1));
|
|
541
|
+
};
|
|
542
|
+
|
|
536
543
|
export function __wbg_abort_775ef1d17fc65868(arg0) {
|
|
537
544
|
getObject(arg0).abort();
|
|
538
545
|
};
|
|
@@ -561,6 +568,11 @@ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg
|
|
|
561
568
|
return addHeapObject(ret);
|
|
562
569
|
}, arguments) };
|
|
563
570
|
|
|
571
|
+
export function __wbg_clearTimeout_b1115618e821c3b2(arg0) {
|
|
572
|
+
const ret = clearTimeout(takeObject(arg0));
|
|
573
|
+
return addHeapObject(ret);
|
|
574
|
+
};
|
|
575
|
+
|
|
564
576
|
export function __wbg_credentials_f1256c3bb1216690(arg0) {
|
|
565
577
|
const ret = getObject(arg0).credentials;
|
|
566
578
|
return addHeapObject(ret);
|
|
@@ -576,6 +588,11 @@ export function __wbg_done_769e5ede4b31c67b(arg0) {
|
|
|
576
588
|
return ret;
|
|
577
589
|
};
|
|
578
590
|
|
|
591
|
+
export function __wbg_fetch_3afbdcc7ddbf16fe(arg0) {
|
|
592
|
+
const ret = fetch(getObject(arg0));
|
|
593
|
+
return addHeapObject(ret);
|
|
594
|
+
};
|
|
595
|
+
|
|
579
596
|
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
580
597
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
581
598
|
return addHeapObject(ret);
|
|
@@ -731,7 +748,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
731
748
|
const a = state0.a;
|
|
732
749
|
state0.a = 0;
|
|
733
750
|
try {
|
|
734
|
-
return
|
|
751
|
+
return __wbg_adapter_199(a, state0.b, arg0, arg1);
|
|
735
752
|
} finally {
|
|
736
753
|
state0.a = a;
|
|
737
754
|
}
|
|
@@ -849,6 +866,11 @@ export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
|
849
866
|
return addHeapObject(ret);
|
|
850
867
|
};
|
|
851
868
|
|
|
869
|
+
export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
870
|
+
const ret = setTimeout(getObject(arg0), arg1);
|
|
871
|
+
return addHeapObject(ret);
|
|
872
|
+
};
|
|
873
|
+
|
|
852
874
|
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
853
875
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
854
876
|
};
|
|
@@ -1001,8 +1023,13 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1001
1023
|
return ret;
|
|
1002
1024
|
};
|
|
1003
1025
|
|
|
1004
|
-
export function
|
|
1005
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1026
|
+
export function __wbindgen_closure_wrapper2803(arg0, arg1, arg2) {
|
|
1027
|
+
const ret = makeMutClosure(arg0, arg1, 363, __wbg_adapter_42);
|
|
1028
|
+
return addHeapObject(ret);
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
export function __wbindgen_closure_wrapper2936(arg0, arg1, arg2) {
|
|
1032
|
+
const ret = makeMutClosure(arg0, arg1, 397, __wbg_adapter_45);
|
|
1006
1033
|
return addHeapObject(ret);
|
|
1007
1034
|
};
|
|
1008
1035
|
|
|
Binary file
|