@cartridge/controller-wasm 0.9.5 → 0.10.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 +39 -0
- package/pkg-controller/account_wasm_bg.js +58 -29
- package/pkg-controller/account_wasm_bg.wasm +0 -0
- package/pkg-session/session_wasm.d.ts +35 -0
- package/pkg-session/session_wasm_bg.js +18 -25
- package/pkg-session/session_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -51,6 +51,41 @@ export interface Eip191Signer {
|
|
|
51
51
|
address: string;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export interface ImportedControllerMetadata {
|
|
55
|
+
username: string;
|
|
56
|
+
classHash: JsFelt;
|
|
57
|
+
rpcUrl: string;
|
|
58
|
+
salt: JsFelt;
|
|
59
|
+
owner: Owner;
|
|
60
|
+
address: JsFelt;
|
|
61
|
+
chainId: JsFelt;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ImportedProvedPolicy {
|
|
65
|
+
policy: Policy;
|
|
66
|
+
proof: JsFelt[];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface ImportedSession {
|
|
70
|
+
requestedPolicies: Policy[];
|
|
71
|
+
provedPolicies: ImportedProvedPolicy[];
|
|
72
|
+
expiresAt: number;
|
|
73
|
+
allowedPoliciesRoot: JsFelt;
|
|
74
|
+
metadataHash: JsFelt;
|
|
75
|
+
sessionKeyGuid: JsFelt;
|
|
76
|
+
guardianKeyGuid: JsFelt;
|
|
77
|
+
metadata: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface ImportedSessionMetadata {
|
|
81
|
+
session: ImportedSession;
|
|
82
|
+
maxFee?: JsFelt;
|
|
83
|
+
credentials?: Credentials;
|
|
84
|
+
isRegistered: boolean;
|
|
85
|
+
appId?: string;
|
|
86
|
+
policies?: Policy[];
|
|
87
|
+
}
|
|
88
|
+
|
|
54
89
|
export interface JsCall {
|
|
55
90
|
contractAddress: JsFelt;
|
|
56
91
|
entrypoint: string;
|
|
@@ -143,6 +178,8 @@ export class CartridgeAccount {
|
|
|
143
178
|
execute(calls: JsCall[], max_fee?: JsFeeEstimate | null, fee_source?: JsFeeSource | null): Promise<any>;
|
|
144
179
|
executeFromOutsideV2(calls: JsCall[], fee_source?: JsFeeSource | null): Promise<any>;
|
|
145
180
|
executeFromOutsideV3(calls: JsCall[], fee_source?: JsFeeSource | null): Promise<any>;
|
|
181
|
+
exportAuthorizedSession(app_id?: string | null): Promise<ImportedSessionMetadata | undefined>;
|
|
182
|
+
exportMetadata(): Promise<ImportedControllerMetadata>;
|
|
146
183
|
static fromStorage(cartridge_api_url: string): Promise<CartridgeAccountWithMeta | undefined>;
|
|
147
184
|
getNonce(): Promise<any>;
|
|
148
185
|
hasAuthorizedPoliciesForCalls(app_id: string, calls: JsCall[]): Promise<boolean>;
|
|
@@ -158,6 +195,7 @@ export class CartridgeAccount {
|
|
|
158
195
|
*/
|
|
159
196
|
hasPoliciesForAppId(app_id: string): Promise<boolean>;
|
|
160
197
|
hasRequestedSession(app_id: string, policies: Policy[]): Promise<boolean>;
|
|
198
|
+
importSession(imported_session: ImportedSessionMetadata): Promise<void>;
|
|
161
199
|
isRegisteredSessionAuthorized(policies: Policy[], public_key?: JsFelt | null): Promise<AuthorizedSession | undefined>;
|
|
162
200
|
/**
|
|
163
201
|
* Creates a new `CartridgeAccount` instance.
|
|
@@ -249,6 +287,7 @@ export class ControllerFactory {
|
|
|
249
287
|
* This should only be used with webauthn signers
|
|
250
288
|
*/
|
|
251
289
|
static apiLogin(username: string, class_hash: JsFelt, rpc_url: string, address: JsFelt, owner: Owner, cartridge_api_url: string): Promise<CartridgeAccountWithMeta>;
|
|
290
|
+
static fromMetadata(metadata: ImportedControllerMetadata, cartridge_api_url: string): Promise<CartridgeAccountWithMeta>;
|
|
252
291
|
static fromStorage(cartridge_api_url: string): Promise<CartridgeAccountWithMeta | undefined>;
|
|
253
292
|
/**
|
|
254
293
|
* Login to an existing controller account.
|
|
@@ -121,6 +121,23 @@ export class CartridgeAccount {
|
|
|
121
121
|
const ret = wasm.cartridgeaccount_executeFromOutsideV3(this.__wbg_ptr, ptr0, len0, isLikeNone(fee_source) ? 0 : addHeapObject(fee_source));
|
|
122
122
|
return takeObject(ret);
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @param {string | null} [app_id]
|
|
126
|
+
* @returns {Promise<ImportedSessionMetadata | undefined>}
|
|
127
|
+
*/
|
|
128
|
+
exportAuthorizedSession(app_id) {
|
|
129
|
+
var ptr0 = isLikeNone(app_id) ? 0 : passStringToWasm0(app_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
130
|
+
var len0 = WASM_VECTOR_LEN;
|
|
131
|
+
const ret = wasm.cartridgeaccount_exportAuthorizedSession(this.__wbg_ptr, ptr0, len0);
|
|
132
|
+
return takeObject(ret);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @returns {Promise<ImportedControllerMetadata>}
|
|
136
|
+
*/
|
|
137
|
+
exportMetadata() {
|
|
138
|
+
const ret = wasm.cartridgeaccount_exportMetadata(this.__wbg_ptr);
|
|
139
|
+
return takeObject(ret);
|
|
140
|
+
}
|
|
124
141
|
/**
|
|
125
142
|
* @param {string} cartridge_api_url
|
|
126
143
|
* @returns {Promise<CartridgeAccountWithMeta | undefined>}
|
|
@@ -194,6 +211,14 @@ export class CartridgeAccount {
|
|
|
194
211
|
const ret = wasm.cartridgeaccount_hasRequestedSession(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
195
212
|
return takeObject(ret);
|
|
196
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* @param {ImportedSessionMetadata} imported_session
|
|
216
|
+
* @returns {Promise<void>}
|
|
217
|
+
*/
|
|
218
|
+
importSession(imported_session) {
|
|
219
|
+
const ret = wasm.cartridgeaccount_importSession(this.__wbg_ptr, addHeapObject(imported_session));
|
|
220
|
+
return takeObject(ret);
|
|
221
|
+
}
|
|
197
222
|
/**
|
|
198
223
|
* @param {Policy[]} policies
|
|
199
224
|
* @param {JsFelt | null} [public_key]
|
|
@@ -598,6 +623,17 @@ export class ControllerFactory {
|
|
|
598
623
|
const ret = wasm.controllerfactory_apiLogin(ptr0, len0, addHeapObject(class_hash), ptr1, len1, addHeapObject(address), addHeapObject(owner), ptr2, len2);
|
|
599
624
|
return takeObject(ret);
|
|
600
625
|
}
|
|
626
|
+
/**
|
|
627
|
+
* @param {ImportedControllerMetadata} metadata
|
|
628
|
+
* @param {string} cartridge_api_url
|
|
629
|
+
* @returns {Promise<CartridgeAccountWithMeta>}
|
|
630
|
+
*/
|
|
631
|
+
static fromMetadata(metadata, cartridge_api_url) {
|
|
632
|
+
const ptr0 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
633
|
+
const len0 = WASM_VECTOR_LEN;
|
|
634
|
+
const ret = wasm.controllerfactory_fromMetadata(addHeapObject(metadata), ptr0, len0);
|
|
635
|
+
return takeObject(ret);
|
|
636
|
+
}
|
|
601
637
|
/**
|
|
602
638
|
* @param {string} cartridge_api_url
|
|
603
639
|
* @returns {Promise<CartridgeAccountWithMeta | undefined>}
|
|
@@ -819,13 +855,6 @@ export class JsChainConfig {
|
|
|
819
855
|
if (Symbol.dispose) JsChainConfig.prototype[Symbol.dispose] = JsChainConfig.prototype.free;
|
|
820
856
|
|
|
821
857
|
export class JsControllerError {
|
|
822
|
-
static __wrap(ptr) {
|
|
823
|
-
ptr = ptr >>> 0;
|
|
824
|
-
const obj = Object.create(JsControllerError.prototype);
|
|
825
|
-
obj.__wbg_ptr = ptr;
|
|
826
|
-
JsControllerErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
827
|
-
return obj;
|
|
828
|
-
}
|
|
829
858
|
__destroy_into_raw() {
|
|
830
859
|
const ptr = this.__wbg_ptr;
|
|
831
860
|
this.__wbg_ptr = 0;
|
|
@@ -1387,10 +1416,6 @@ export function __wbg_jschainconfig_unwrap(arg0) {
|
|
|
1387
1416
|
const ret = JsChainConfig.__unwrap(getObject(arg0));
|
|
1388
1417
|
return ret;
|
|
1389
1418
|
}
|
|
1390
|
-
export function __wbg_jscontrollererror_new(arg0) {
|
|
1391
|
-
const ret = JsControllerError.__wrap(arg0);
|
|
1392
|
-
return addHeapObject(ret);
|
|
1393
|
-
}
|
|
1394
1419
|
export function __wbg_key_84733a6ee7e4d63e() { return handleError(function (arg0, arg1, arg2) {
|
|
1395
1420
|
const ret = getObject(arg1).key(arg2 >>> 0);
|
|
1396
1421
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1472,7 +1497,7 @@ export function __wbg_new_d098e265629cd10f(arg0, arg1) {
|
|
|
1472
1497
|
const a = state0.a;
|
|
1473
1498
|
state0.a = 0;
|
|
1474
1499
|
try {
|
|
1475
|
-
return
|
|
1500
|
+
return __wasm_bindgen_func_elem_11254(a, state0.b, arg0, arg1);
|
|
1476
1501
|
} finally {
|
|
1477
1502
|
state0.a = a;
|
|
1478
1503
|
}
|
|
@@ -1483,6 +1508,10 @@ export function __wbg_new_d098e265629cd10f(arg0, arg1) {
|
|
|
1483
1508
|
state0.a = state0.b = 0;
|
|
1484
1509
|
}
|
|
1485
1510
|
}
|
|
1511
|
+
export function __wbg_new_d15cb560a6a0e5f0(arg0, arg1) {
|
|
1512
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1513
|
+
return addHeapObject(ret);
|
|
1514
|
+
}
|
|
1486
1515
|
export function __wbg_new_from_slice_22da9388ac046e50(arg0, arg1) {
|
|
1487
1516
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1488
1517
|
return addHeapObject(ret);
|
|
@@ -1494,7 +1523,7 @@ export function __wbg_new_typed_aaaeaf29cf802876(arg0, arg1) {
|
|
|
1494
1523
|
const a = state0.a;
|
|
1495
1524
|
state0.a = 0;
|
|
1496
1525
|
try {
|
|
1497
|
-
return
|
|
1526
|
+
return __wasm_bindgen_func_elem_11254(a, state0.b, arg0, arg1);
|
|
1498
1527
|
} finally {
|
|
1499
1528
|
state0.a = a;
|
|
1500
1529
|
}
|
|
@@ -1746,23 +1775,23 @@ export function __wbg_versions_276b2795b1c6a219(arg0) {
|
|
|
1746
1775
|
return addHeapObject(ret);
|
|
1747
1776
|
}
|
|
1748
1777
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1749
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1750
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1778
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1044, function: Function { arguments: [], shim_idx: 1045, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1779
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8966, __wasm_bindgen_func_elem_8975);
|
|
1751
1780
|
return addHeapObject(ret);
|
|
1752
1781
|
}
|
|
1753
1782
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1754
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1755
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1783
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1078, function: Function { arguments: [Externref], shim_idx: 1209, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1784
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_9110, __wasm_bindgen_func_elem_11243);
|
|
1756
1785
|
return addHeapObject(ret);
|
|
1757
1786
|
}
|
|
1758
1787
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
1759
1788
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [NamedExternref("Function")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1760
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1789
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_768, __wasm_bindgen_func_elem_3395);
|
|
1761
1790
|
return addHeapObject(ret);
|
|
1762
1791
|
}
|
|
1763
1792
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
1764
1793
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 15, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 16, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1765
|
-
const ret = makeClosure(arg0, arg1, wasm.
|
|
1794
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_768, __wasm_bindgen_func_elem_3394);
|
|
1766
1795
|
return addHeapObject(ret);
|
|
1767
1796
|
}
|
|
1768
1797
|
export function __wbindgen_cast_0000000000000005(arg0) {
|
|
@@ -1792,18 +1821,18 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
1792
1821
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
1793
1822
|
takeObject(arg0);
|
|
1794
1823
|
}
|
|
1795
|
-
function
|
|
1796
|
-
wasm.
|
|
1824
|
+
function __wasm_bindgen_func_elem_8975(arg0, arg1) {
|
|
1825
|
+
wasm.__wasm_bindgen_func_elem_8975(arg0, arg1);
|
|
1797
1826
|
}
|
|
1798
1827
|
|
|
1799
|
-
function
|
|
1800
|
-
wasm.
|
|
1828
|
+
function __wasm_bindgen_func_elem_3394(arg0, arg1, arg2) {
|
|
1829
|
+
wasm.__wasm_bindgen_func_elem_3394(arg0, arg1, addHeapObject(arg2));
|
|
1801
1830
|
}
|
|
1802
1831
|
|
|
1803
|
-
function
|
|
1832
|
+
function __wasm_bindgen_func_elem_11243(arg0, arg1, arg2) {
|
|
1804
1833
|
try {
|
|
1805
1834
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1806
|
-
wasm.
|
|
1835
|
+
wasm.__wasm_bindgen_func_elem_11243(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1807
1836
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1808
1837
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1809
1838
|
if (r1) {
|
|
@@ -1814,10 +1843,10 @@ function __wasm_bindgen_func_elem_11039(arg0, arg1, arg2) {
|
|
|
1814
1843
|
}
|
|
1815
1844
|
}
|
|
1816
1845
|
|
|
1817
|
-
function
|
|
1846
|
+
function __wasm_bindgen_func_elem_3395(arg0, arg1, arg2) {
|
|
1818
1847
|
try {
|
|
1819
1848
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1820
|
-
wasm.
|
|
1849
|
+
wasm.__wasm_bindgen_func_elem_3395(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1821
1850
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1822
1851
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1823
1852
|
if (r1) {
|
|
@@ -1828,8 +1857,8 @@ function __wasm_bindgen_func_elem_3319(arg0, arg1, arg2) {
|
|
|
1828
1857
|
}
|
|
1829
1858
|
}
|
|
1830
1859
|
|
|
1831
|
-
function
|
|
1832
|
-
wasm.
|
|
1860
|
+
function __wasm_bindgen_func_elem_11254(arg0, arg1, arg2, arg3) {
|
|
1861
|
+
wasm.__wasm_bindgen_func_elem_11254(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1833
1862
|
}
|
|
1834
1863
|
|
|
1835
1864
|
|
|
Binary file
|
|
@@ -51,6 +51,41 @@ export interface Eip191Signer {
|
|
|
51
51
|
address: string;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export interface ImportedControllerMetadata {
|
|
55
|
+
username: string;
|
|
56
|
+
classHash: JsFelt;
|
|
57
|
+
rpcUrl: string;
|
|
58
|
+
salt: JsFelt;
|
|
59
|
+
owner: Owner;
|
|
60
|
+
address: JsFelt;
|
|
61
|
+
chainId: JsFelt;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ImportedProvedPolicy {
|
|
65
|
+
policy: Policy;
|
|
66
|
+
proof: JsFelt[];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface ImportedSession {
|
|
70
|
+
requestedPolicies: Policy[];
|
|
71
|
+
provedPolicies: ImportedProvedPolicy[];
|
|
72
|
+
expiresAt: number;
|
|
73
|
+
allowedPoliciesRoot: JsFelt;
|
|
74
|
+
metadataHash: JsFelt;
|
|
75
|
+
sessionKeyGuid: JsFelt;
|
|
76
|
+
guardianKeyGuid: JsFelt;
|
|
77
|
+
metadata: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface ImportedSessionMetadata {
|
|
81
|
+
session: ImportedSession;
|
|
82
|
+
maxFee?: JsFelt;
|
|
83
|
+
credentials?: Credentials;
|
|
84
|
+
isRegistered: boolean;
|
|
85
|
+
appId?: string;
|
|
86
|
+
policies?: Policy[];
|
|
87
|
+
}
|
|
88
|
+
|
|
54
89
|
export interface JsCall {
|
|
55
90
|
contractAddress: JsFelt;
|
|
56
91
|
entrypoint: string;
|
|
@@ -186,13 +186,6 @@ export const ErrorCode = Object.freeze({
|
|
|
186
186
|
});
|
|
187
187
|
|
|
188
188
|
export class JsControllerError {
|
|
189
|
-
static __wrap(ptr) {
|
|
190
|
-
ptr = ptr >>> 0;
|
|
191
|
-
const obj = Object.create(JsControllerError.prototype);
|
|
192
|
-
obj.__wbg_ptr = ptr;
|
|
193
|
-
JsControllerErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
194
|
-
return obj;
|
|
195
|
-
}
|
|
196
189
|
__destroy_into_raw() {
|
|
197
190
|
const ptr = this.__wbg_ptr;
|
|
198
191
|
this.__wbg_ptr = 0;
|
|
@@ -513,10 +506,6 @@ export function __wbg_iterator_d8f549ec8fb061b1() {
|
|
|
513
506
|
const ret = Symbol.iterator;
|
|
514
507
|
return addHeapObject(ret);
|
|
515
508
|
}
|
|
516
|
-
export function __wbg_jscontrollererror_new(arg0) {
|
|
517
|
-
const ret = JsControllerError.__wrap(arg0);
|
|
518
|
-
return addHeapObject(ret);
|
|
519
|
-
}
|
|
520
509
|
export function __wbg_length_ea16607d7b61445b(arg0) {
|
|
521
510
|
const ret = getObject(arg0).length;
|
|
522
511
|
return ret;
|
|
@@ -564,6 +553,10 @@ export function __wbg_new_c518c60af666645b() { return handleError(function () {
|
|
|
564
553
|
const ret = new AbortController();
|
|
565
554
|
return addHeapObject(ret);
|
|
566
555
|
}, arguments); }
|
|
556
|
+
export function __wbg_new_d15cb560a6a0e5f0(arg0, arg1) {
|
|
557
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
558
|
+
return addHeapObject(ret);
|
|
559
|
+
}
|
|
567
560
|
export function __wbg_new_from_slice_22da9388ac046e50(arg0, arg1) {
|
|
568
561
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
569
562
|
return addHeapObject(ret);
|
|
@@ -575,7 +568,7 @@ export function __wbg_new_typed_aaaeaf29cf802876(arg0, arg1) {
|
|
|
575
568
|
const a = state0.a;
|
|
576
569
|
state0.a = 0;
|
|
577
570
|
try {
|
|
578
|
-
return
|
|
571
|
+
return __wasm_bindgen_func_elem_5936(a, state0.b, arg0, arg1);
|
|
579
572
|
} finally {
|
|
580
573
|
state0.a = a;
|
|
581
574
|
}
|
|
@@ -785,17 +778,17 @@ export function __wbg_versions_276b2795b1c6a219(arg0) {
|
|
|
785
778
|
}
|
|
786
779
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
787
780
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 4, function: Function { arguments: [NamedExternref("Function")], shim_idx: 5, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
788
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
781
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_283, __wasm_bindgen_func_elem_1106);
|
|
789
782
|
return addHeapObject(ret);
|
|
790
783
|
}
|
|
791
784
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
792
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
793
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
785
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 483, function: Function { arguments: [], shim_idx: 484, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
786
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3970, __wasm_bindgen_func_elem_3979);
|
|
794
787
|
return addHeapObject(ret);
|
|
795
788
|
}
|
|
796
789
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
797
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
798
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
790
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 517, function: Function { arguments: [Externref], shim_idx: 642, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
791
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4109, __wasm_bindgen_func_elem_5925);
|
|
799
792
|
return addHeapObject(ret);
|
|
800
793
|
}
|
|
801
794
|
export function __wbindgen_cast_0000000000000004(arg0) {
|
|
@@ -820,14 +813,14 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
820
813
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
821
814
|
takeObject(arg0);
|
|
822
815
|
}
|
|
823
|
-
function
|
|
824
|
-
wasm.
|
|
816
|
+
function __wasm_bindgen_func_elem_3979(arg0, arg1) {
|
|
817
|
+
wasm.__wasm_bindgen_func_elem_3979(arg0, arg1);
|
|
825
818
|
}
|
|
826
819
|
|
|
827
|
-
function
|
|
820
|
+
function __wasm_bindgen_func_elem_1106(arg0, arg1, arg2) {
|
|
828
821
|
try {
|
|
829
822
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
830
|
-
wasm.
|
|
823
|
+
wasm.__wasm_bindgen_func_elem_1106(retptr, arg0, arg1, addHeapObject(arg2));
|
|
831
824
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
832
825
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
833
826
|
if (r1) {
|
|
@@ -838,10 +831,10 @@ function __wasm_bindgen_func_elem_1102(arg0, arg1, arg2) {
|
|
|
838
831
|
}
|
|
839
832
|
}
|
|
840
833
|
|
|
841
|
-
function
|
|
834
|
+
function __wasm_bindgen_func_elem_5925(arg0, arg1, arg2) {
|
|
842
835
|
try {
|
|
843
836
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
844
|
-
wasm.
|
|
837
|
+
wasm.__wasm_bindgen_func_elem_5925(retptr, arg0, arg1, addHeapObject(arg2));
|
|
845
838
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
846
839
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
847
840
|
if (r1) {
|
|
@@ -852,8 +845,8 @@ function __wasm_bindgen_func_elem_5895(arg0, arg1, arg2) {
|
|
|
852
845
|
}
|
|
853
846
|
}
|
|
854
847
|
|
|
855
|
-
function
|
|
856
|
-
wasm.
|
|
848
|
+
function __wasm_bindgen_func_elem_5936(arg0, arg1, arg2, arg3) {
|
|
849
|
+
wasm.__wasm_bindgen_func_elem_5936(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
857
850
|
}
|
|
858
851
|
|
|
859
852
|
|
|
Binary file
|