@cartridge/controller-wasm 0.3.6 → 0.3.8

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.
Binary file
@@ -76,6 +76,8 @@ export enum ErrorCode {
76
76
  TransactionTimeout = 139,
77
77
  ConversionError = 140,
78
78
  InvalidChainId = 141,
79
+ SessionRefreshRequired = 142,
80
+ ManualExecutionRequired = 143,
79
81
  }
80
82
  export interface JsCall {
81
83
  contractAddress: JsFelt;
@@ -202,6 +204,7 @@ export interface Credentials {
202
204
  export class CartridgeSessionAccount {
203
205
  private constructor();
204
206
  free(): void;
207
+ [Symbol.dispose](): void;
205
208
  static new(rpc_url: string, signer: JsFelt, address: JsFelt, chain_id: JsFelt, session_authorization: JsFelt[], session: Session): CartridgeSessionAccount;
206
209
  static newAsRegistered(rpc_url: string, signer: JsFelt, address: JsFelt, owner_guid: JsFelt, chain_id: JsFelt, session: Session): CartridgeSessionAccount;
207
210
  sign(hash: JsFelt, calls: JsCall[]): Promise<Felts>;
@@ -211,6 +214,7 @@ export class CartridgeSessionAccount {
211
214
  export class JsControllerError {
212
215
  private constructor();
213
216
  free(): void;
217
+ [Symbol.dispose](): void;
214
218
  code: ErrorCode;
215
219
  message: string;
216
220
  get data(): string | undefined;