@cartridge/controller-wasm 0.3.2 → 0.3.4

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
@@ -68,6 +68,7 @@ export enum ErrorCode {
68
68
  GasPriceTooHigh = 138,
69
69
  TransactionTimeout = 139,
70
70
  ConversionError = 140,
71
+ InvalidChainId = 141,
71
72
  }
72
73
  export interface JsCall {
73
74
  contractAddress: JsFelt;
@@ -91,6 +92,25 @@ export interface JsFeeEstimate {
91
92
  overall_fee: number;
92
93
  }
93
94
 
95
+ /**
96
+ * JavaScript-friendly OutsideExecution V3 structure
97
+ */
98
+ export interface JsOutsideExecutionV3 {
99
+ caller: JsFelt;
100
+ execute_after: number;
101
+ execute_before: number;
102
+ calls: JsCall[];
103
+ nonce: [JsFelt, JsFelt];
104
+ }
105
+
106
+ /**
107
+ * Result type for signExecuteFromOutside containing both the OutsideExecution and signature
108
+ */
109
+ export interface JsSignedOutsideExecution {
110
+ outside_execution: JsOutsideExecutionV3;
111
+ signature: JsFelt[];
112
+ }
113
+
94
114
  export interface Owner {
95
115
  signer?: Signer;
96
116
  account?: JsFelt;