@cartridge/controller-wasm 0.2.6 → 0.2.7
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 +6 -3
- package/pkg-controller/account_wasm_bg.js +17 -9
- package/pkg-controller/account_wasm_bg.wasm +0 -0
- package/pkg-session/session_wasm.d.ts +3 -1
- package/pkg-session/session_wasm_bg.js +4 -4
- package/pkg-session/session_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -146,7 +146,9 @@ export interface Signer {
|
|
|
146
146
|
eip191?: Eip191Signer;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export type
|
|
149
|
+
export type JsAddSignerInput = SignerInput;
|
|
150
|
+
|
|
151
|
+
export type JsRemoveSignerInput = SignerInput;
|
|
150
152
|
|
|
151
153
|
export type JsFelt = Felt;
|
|
152
154
|
|
|
@@ -215,8 +217,9 @@ export class CartridgeAccount {
|
|
|
215
217
|
register(register: JsRegister): Promise<JsRegisterResponse>;
|
|
216
218
|
createSession(policies: Policy[], expires_at: bigint): Promise<AuthorizedSession | undefined>;
|
|
217
219
|
skipSession(policies: Policy[]): Promise<void>;
|
|
218
|
-
addOwner(owner?: Signer | null, signer_input?:
|
|
219
|
-
|
|
220
|
+
addOwner(owner?: Signer | null, signer_input?: JsAddSignerInput | null, rp_id?: string | null): Promise<void>;
|
|
221
|
+
removeOwner(signer: JsRemoveSignerInput): Promise<void>;
|
|
222
|
+
createPasskeySigner(rp_id: string): Promise<JsAddSignerInput>;
|
|
220
223
|
estimateInvokeFee(calls: JsCall[]): Promise<JsFeeEstimate>;
|
|
221
224
|
execute(calls: JsCall[], max_fee?: JsFeeEstimate | null, fee_source?: JsFeeSource | null): Promise<any>;
|
|
222
225
|
executeFromOutsideV2(calls: JsCall[], fee_source?: JsFeeSource | null): Promise<any>;
|
|
@@ -315,7 +315,7 @@ function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
|
315
315
|
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
function
|
|
318
|
+
function __wbg_adapter_277(arg0, arg1, arg2, arg3) {
|
|
319
319
|
wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
320
320
|
}
|
|
321
321
|
|
|
@@ -605,7 +605,7 @@ export class CartridgeAccount {
|
|
|
605
605
|
}
|
|
606
606
|
/**
|
|
607
607
|
* @param {Signer | null} [owner]
|
|
608
|
-
* @param {
|
|
608
|
+
* @param {JsAddSignerInput | null} [signer_input]
|
|
609
609
|
* @param {string | null} [rp_id]
|
|
610
610
|
* @returns {Promise<void>}
|
|
611
611
|
*/
|
|
@@ -615,9 +615,17 @@ export class CartridgeAccount {
|
|
|
615
615
|
const ret = wasm.cartridgeaccount_addOwner(this.__wbg_ptr, isLikeNone(owner) ? 0 : addHeapObject(owner), isLikeNone(signer_input) ? 0 : addHeapObject(signer_input), ptr0, len0);
|
|
616
616
|
return takeObject(ret);
|
|
617
617
|
}
|
|
618
|
+
/**
|
|
619
|
+
* @param {JsRemoveSignerInput} signer
|
|
620
|
+
* @returns {Promise<void>}
|
|
621
|
+
*/
|
|
622
|
+
removeOwner(signer) {
|
|
623
|
+
const ret = wasm.cartridgeaccount_removeOwner(this.__wbg_ptr, addHeapObject(signer));
|
|
624
|
+
return takeObject(ret);
|
|
625
|
+
}
|
|
618
626
|
/**
|
|
619
627
|
* @param {string} rp_id
|
|
620
|
-
* @returns {Promise<
|
|
628
|
+
* @returns {Promise<JsAddSignerInput>}
|
|
621
629
|
*/
|
|
622
630
|
createPasskeySigner(rp_id) {
|
|
623
631
|
const ptr0 = passStringToWasm0(rp_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
@@ -1337,7 +1345,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
1337
1345
|
const a = state0.a;
|
|
1338
1346
|
state0.a = 0;
|
|
1339
1347
|
try {
|
|
1340
|
-
return
|
|
1348
|
+
return __wbg_adapter_277(a, state0.b, arg0, arg1);
|
|
1341
1349
|
} finally {
|
|
1342
1350
|
state0.a = a;
|
|
1343
1351
|
}
|
|
@@ -1675,18 +1683,18 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1675
1683
|
return ret;
|
|
1676
1684
|
};
|
|
1677
1685
|
|
|
1678
|
-
export function
|
|
1686
|
+
export function __wbindgen_closure_wrapper1288(arg0, arg1, arg2) {
|
|
1679
1687
|
const ret = makeClosure(arg0, arg1, 26, __wbg_adapter_44);
|
|
1680
1688
|
return addHeapObject(ret);
|
|
1681
1689
|
};
|
|
1682
1690
|
|
|
1683
|
-
export function
|
|
1684
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1691
|
+
export function __wbindgen_closure_wrapper5858(arg0, arg1, arg2) {
|
|
1692
|
+
const ret = makeMutClosure(arg0, arg1, 684, __wbg_adapter_47);
|
|
1685
1693
|
return addHeapObject(ret);
|
|
1686
1694
|
};
|
|
1687
1695
|
|
|
1688
|
-
export function
|
|
1689
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1696
|
+
export function __wbindgen_closure_wrapper6004(arg0, arg1, arg2) {
|
|
1697
|
+
const ret = makeMutClosure(arg0, arg1, 717, __wbg_adapter_50);
|
|
1690
1698
|
return addHeapObject(ret);
|
|
1691
1699
|
};
|
|
1692
1700
|
|
|
Binary file
|
|
@@ -131,7 +131,9 @@ export interface Signer {
|
|
|
131
131
|
eip191?: Eip191Signer;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
export type
|
|
134
|
+
export type JsAddSignerInput = SignerInput;
|
|
135
|
+
|
|
136
|
+
export type JsRemoveSignerInput = SignerInput;
|
|
135
137
|
|
|
136
138
|
export type JsFelt = Felt;
|
|
137
139
|
|
|
@@ -1025,13 +1025,13 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1025
1025
|
return ret;
|
|
1026
1026
|
};
|
|
1027
1027
|
|
|
1028
|
-
export function
|
|
1029
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1028
|
+
export function __wbindgen_closure_wrapper2850(arg0, arg1, arg2) {
|
|
1029
|
+
const ret = makeMutClosure(arg0, arg1, 362, __wbg_adapter_42);
|
|
1030
1030
|
return addHeapObject(ret);
|
|
1031
1031
|
};
|
|
1032
1032
|
|
|
1033
|
-
export function
|
|
1034
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1033
|
+
export function __wbindgen_closure_wrapper2983(arg0, arg1, arg2) {
|
|
1034
|
+
const ret = makeMutClosure(arg0, arg1, 395, __wbg_adapter_45);
|
|
1035
1035
|
return addHeapObject(ret);
|
|
1036
1036
|
};
|
|
1037
1037
|
|
|
Binary file
|