@cartridge/controller-wasm 0.1.0 → 0.1.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.
@@ -153,6 +153,15 @@ export interface Credentials {
153
153
  privateKey: JsFelt;
154
154
  }
155
155
 
156
+ export class CartridgeSessionAccount {
157
+ private constructor();
158
+ free(): void;
159
+ static new(rpc_url: string, signer: JsFelt, address: JsFelt, chain_id: JsFelt, session_authorization: JsFelt[], session: Session): CartridgeSessionAccount;
160
+ static newAsRegistered(rpc_url: string, signer: JsFelt, address: JsFelt, owner_guid: JsFelt, chain_id: JsFelt, session: Session): CartridgeSessionAccount;
161
+ sign(hash: JsFelt, calls: JsCall[]): Promise<Felts>;
162
+ execute(calls: JsCall[]): Promise<any>;
163
+ executeFromOutside(calls: JsCall[]): Promise<any>;
164
+ }
156
165
  export class JsControllerError {
157
166
  private constructor();
158
167
  free(): void;
@@ -0,0 +1,4 @@
1
+ import * as wasm from "./session_wasm_bg.wasm";
2
+ export * from "./session_wasm_bg.js";
3
+ import { __wbg_set_wasm } from "./session_wasm_bg.js";
4
+ __wbg_set_wasm(wasm);