@o2exchange/contracts 0.2.1-rc → 0.2.1

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.
@@ -30,6 +30,26 @@ export var EncodingOutput;
30
30
  EncodingOutput["EIP712"] = "EIP712";
31
31
  })(EncodingOutput || (EncodingOutput = {}));
32
32
  ;
33
+ export var ExtendedNonceErrorInput;
34
+ (function (ExtendedNonceErrorInput) {
35
+ ExtendedNonceErrorInput["ReservedBitsSet"] = "ReservedBitsSet";
36
+ ExtendedNonceErrorInput["BitmapPositionOutOfRange"] = "BitmapPositionOutOfRange";
37
+ ExtendedNonceErrorInput["NonceSessionIdOutOfRange"] = "NonceSessionIdOutOfRange";
38
+ ExtendedNonceErrorInput["Expired"] = "Expired";
39
+ ExtendedNonceErrorInput["WordPosOutOfWindow"] = "WordPosOutOfWindow";
40
+ ExtendedNonceErrorInput["AlreadyUsed"] = "AlreadyUsed";
41
+ })(ExtendedNonceErrorInput || (ExtendedNonceErrorInput = {}));
42
+ ;
43
+ export var ExtendedNonceErrorOutput;
44
+ (function (ExtendedNonceErrorOutput) {
45
+ ExtendedNonceErrorOutput["ReservedBitsSet"] = "ReservedBitsSet";
46
+ ExtendedNonceErrorOutput["BitmapPositionOutOfRange"] = "BitmapPositionOutOfRange";
47
+ ExtendedNonceErrorOutput["NonceSessionIdOutOfRange"] = "NonceSessionIdOutOfRange";
48
+ ExtendedNonceErrorOutput["Expired"] = "Expired";
49
+ ExtendedNonceErrorOutput["WordPosOutOfWindow"] = "WordPosOutOfWindow";
50
+ ExtendedNonceErrorOutput["AlreadyUsed"] = "AlreadyUsed";
51
+ })(ExtendedNonceErrorOutput || (ExtendedNonceErrorOutput = {}));
52
+ ;
33
53
  export var NonceErrorInput;
34
54
  (function (NonceErrorInput) {
35
55
  NonceErrorInput["InvalidNonce"] = "InvalidNonce";
@@ -110,69 +130,83 @@ const abi = {
110
130
  "concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
111
131
  },
112
132
  {
113
- "type": "enum contract_schema::src16::Domain",
114
- "concreteTypeId": "5f05ed49298866d467640c48af64b5e978f95a74358b7050b09adfa77ea558b2",
115
- "metadataTypeId": 1
116
- },
117
- {
118
- "type": "enum contract_schema::src16::Encoding",
119
- "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07",
133
+ "type": "enum contract_schema::session::SessionError",
134
+ "concreteTypeId": "8b3faa3088585786667c82ce2418fc7566e3f47890914dbcc8def3fc5bad644f",
120
135
  "metadataTypeId": 2
121
136
  },
122
137
  {
123
- "type": "enum contract_schema::trade_account::CallerError",
124
- "concreteTypeId": "0b65ce7c65308b155a42d67dba9a8f5ec826782ec477a1970fe592016e92d527",
138
+ "type": "enum contract_schema::src16::Domain",
139
+ "concreteTypeId": "5f05ed49298866d467640c48af64b5e978f95a74358b7050b09adfa77ea558b2",
125
140
  "metadataTypeId": 3
126
141
  },
127
142
  {
128
- "type": "enum contract_schema::trade_account::NonceError",
129
- "concreteTypeId": "f88b7359b6a93f09790d042f771eb46a798919cde0d85a95d291dae15d746312",
143
+ "type": "enum contract_schema::src16::Encoding",
144
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07",
130
145
  "metadataTypeId": 4
131
146
  },
132
147
  {
133
- "type": "enum contract_schema::trade_account::SessionError",
134
- "concreteTypeId": "25f7b773d2b66be695d008d06f344b78146367854413f2041eaf21356640e568",
148
+ "type": "enum contract_schema::trade_account_errors::CallerError",
149
+ "concreteTypeId": "b44772841738326423276d94a0aefeb955a2bb5ee76b862e1442870a4a4dc33f",
135
150
  "metadataTypeId": 5
136
151
  },
137
152
  {
138
- "type": "enum contract_schema::trade_account::SignerError",
139
- "concreteTypeId": "9924f5da95b424d9efb5403e33f96557a6fa8e766014c055159e9c3bd457ca83",
153
+ "type": "enum contract_schema::trade_account_errors::ExtendedNonceError",
154
+ "concreteTypeId": "2839bba2575d61e3c6cbd733c70c82e630da3bcae8c0f84e0f370c9219c57a18",
140
155
  "metadataTypeId": 6
141
156
  },
142
157
  {
143
- "type": "enum contract_schema::trade_account::WithdrawError",
144
- "concreteTypeId": "ce9db9ff03aafaa4ef9ebd0dac288345a961aff0262337411b6ef4db9df07039",
158
+ "type": "enum contract_schema::trade_account_errors::NonceError",
159
+ "concreteTypeId": "a53c8f75933bb5d34aa2b4394e6a594f581587ac992ee1f04dd61459d9805f02",
145
160
  "metadataTypeId": 7
146
161
  },
162
+ {
163
+ "type": "enum contract_schema::trade_account_errors::SignerError",
164
+ "concreteTypeId": "cb075fa9873e8b04342183de76fcad2a2bda74cdca41cc963d15a93caf2908ef",
165
+ "metadataTypeId": 8
166
+ },
167
+ {
168
+ "type": "enum contract_schema::trade_account_errors::WithdrawError",
169
+ "concreteTypeId": "3ebd6ddfc81b710ec426d233001163a06ac16109348c448a7d9f534bf51a9bfc",
170
+ "metadataTypeId": 9
171
+ },
147
172
  {
148
173
  "type": "enum std::crypto::signature::Signature",
149
174
  "concreteTypeId": "2a32867dec49ed8ddf6b7d2ed19d53c626d3f593369b5dd82a317d7b300e1c39",
150
- "metadataTypeId": 8
175
+ "metadataTypeId": 10
151
176
  },
152
177
  {
153
178
  "type": "enum std::crypto::signature_error::SignatureError",
154
179
  "concreteTypeId": "c95b1133ba0fd973819faa015c9a3bf27edbbef753c977f859ba593b89ae22e5",
155
- "metadataTypeId": 9
180
+ "metadataTypeId": 11
156
181
  },
157
182
  {
158
183
  "type": "enum std::identity::Identity",
159
184
  "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
160
- "metadataTypeId": 10
185
+ "metadataTypeId": 12
161
186
  },
162
187
  {
163
188
  "type": "enum std::option::Option<enum std::crypto::signature::Signature>",
164
189
  "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40",
165
- "metadataTypeId": 11,
190
+ "metadataTypeId": 13,
166
191
  "typeArguments": [
167
192
  "2a32867dec49ed8ddf6b7d2ed19d53c626d3f593369b5dd82a317d7b300e1c39"
168
193
  ]
169
194
  },
170
195
  {
171
- "type": "enum std::option::Option<struct contract_schema::trade_account::Session>",
172
- "concreteTypeId": "db4bc0201be00cc6d049122ba4e5eaf2e1a8d67e87ae531c85204a496c41add4",
173
- "metadataTypeId": 11,
196
+ "type": "enum std::option::Option<struct contract_schema::session::Session>",
197
+ "concreteTypeId": "8ee10917cb48b981cfce7fd1dea6bbb5cc8be7fe49d3e5d54044cd2c41a53bd7",
198
+ "metadataTypeId": 13,
199
+ "typeArguments": [
200
+ "f6edd57223d771412495547d019aa1b7533bc3ed27255e9118fc803f244a556c"
201
+ ]
202
+ },
203
+ {
204
+ "type": "enum std::result::Result<(),enum contract_schema::trade_account_errors::ExtendedNonceError>",
205
+ "concreteTypeId": "edeec773f10b1c35ceeb107f134494c71c4b910a91fb4896d97407c97c6a8d26",
206
+ "metadataTypeId": 14,
174
207
  "typeArguments": [
175
- "a59f4af5e00bdd0ab9aed213f6b7592136f986fe5f5224aa707f439dbd510aa9"
208
+ "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
209
+ "2839bba2575d61e3c6cbd733c70c82e630da3bcae8c0f84e0f370c9219c57a18"
176
210
  ]
177
211
  },
178
212
  {
@@ -190,81 +224,143 @@ const abi = {
190
224
  {
191
225
  "type": "struct contract_libs::signature::IncrementNonceEvent",
192
226
  "concreteTypeId": "1f60fe48a54d08956985da0422f2d7d44834b7c4d4687f0376f26dce46fe44bf",
193
- "metadataTypeId": 14
194
- },
195
- {
196
- "type": "struct contract_schema::trade_account::CallContractArg",
197
- "concreteTypeId": "2e811073316cb5af9b64bcd703b0f5957a35112aa0f1f86782a8fd42b485c3d4",
198
- "metadataTypeId": 17
199
- },
200
- {
201
- "type": "struct contract_schema::trade_account::CallContractArgs",
202
- "concreteTypeId": "f5137e8860728aa53b731dc6f4be35633f71e6cf3a24439ae80bb38d7ec67d5e",
203
227
  "metadataTypeId": 18
204
228
  },
205
229
  {
206
- "type": "struct contract_schema::trade_account::FailedToValidateEvent",
207
- "concreteTypeId": "98fa03034b6a5a596d6121040d525eabb78d224d2411b6d5d0151727499bbd09",
230
+ "type": "struct contract_schema::session::ExtendedNonceSessionContractCallEvent",
231
+ "concreteTypeId": "590caa75d105ec48e80fe2db68d549dcce79549a9aa7834b44c376fac0f2c3f4",
208
232
  "metadataTypeId": 19
209
233
  },
210
234
  {
211
- "type": "struct contract_schema::trade_account::MultiCallContractArgs",
212
- "concreteTypeId": "f4be05417a57a0fa163ebf6c649786e15dc74d541e39b1071bb7cfaa675759ad",
235
+ "type": "struct contract_schema::session::FailedToValidateEvent",
236
+ "concreteTypeId": "b87b3161c293d62d0bbf4cecef47b892cd3cf7d237ee3a24e8848f380ccc981a",
213
237
  "metadataTypeId": 20
214
238
  },
215
239
  {
216
- "type": "struct contract_schema::trade_account::RevokeArgs",
217
- "concreteTypeId": "fa245643e7467acf010e5f8b65e5c1b8f23a3973dd24fe755acd630ac3fa7557",
240
+ "type": "struct contract_schema::session::Session",
241
+ "concreteTypeId": "f6edd57223d771412495547d019aa1b7533bc3ed27255e9118fc803f244a556c",
218
242
  "metadataTypeId": 21
219
243
  },
220
244
  {
221
- "type": "struct contract_schema::trade_account::Session",
222
- "concreteTypeId": "a59f4af5e00bdd0ab9aed213f6b7592136f986fe5f5224aa707f439dbd510aa9",
245
+ "type": "struct contract_schema::session::SessionContractCallEvent",
246
+ "concreteTypeId": "9c50871f41ee58c6222b15bdb541a8c8bccfa62f85639dc43de20a2546df6dfb",
223
247
  "metadataTypeId": 22
224
248
  },
225
249
  {
226
- "type": "struct contract_schema::trade_account::SessionArgs",
227
- "concreteTypeId": "bb7bd7d8bcce22513cea4a375d13aeff84ff17c9aecf40ae825265179de131be",
250
+ "type": "struct contract_schema::session::SessionCreatedEvent",
251
+ "concreteTypeId": "cfccb0b9b57671b92f0435d1d261690876e4ef2d8be63c837284032734825b04",
228
252
  "metadataTypeId": 23
229
253
  },
230
254
  {
231
- "type": "struct contract_schema::trade_account::SessionContractCallEvent",
232
- "concreteTypeId": "55cb585aadd106832bdedaef0a231b5587db28871e2b12e5137ec4cb66b9b829",
255
+ "type": "struct contract_schema::session::SessionRevokedEvent",
256
+ "concreteTypeId": "278cb587808481b72a555be60b7a1b670422d1a886b431eed10a2d0c12eaaaed",
233
257
  "metadataTypeId": 24
234
258
  },
235
259
  {
236
- "type": "struct contract_schema::trade_account::SessionCreatedEvent",
237
- "concreteTypeId": "6f9ef4e7a983e700685ab472ed2e625822ad32b8f04de92adc81ed60911e5e77",
238
- "metadataTypeId": 25
260
+ "type": "struct contract_schema::trade_account::CallContractArg",
261
+ "concreteTypeId": "2e811073316cb5af9b64bcd703b0f5957a35112aa0f1f86782a8fd42b485c3d4",
262
+ "metadataTypeId": 27
263
+ },
264
+ {
265
+ "type": "struct contract_schema::trade_account::CallContractArgs",
266
+ "concreteTypeId": "f5137e8860728aa53b731dc6f4be35633f71e6cf3a24439ae80bb38d7ec67d5e",
267
+ "metadataTypeId": 28
268
+ },
269
+ {
270
+ "type": "struct contract_schema::trade_account::MultiCallContractArgs",
271
+ "concreteTypeId": "f4be05417a57a0fa163ebf6c649786e15dc74d541e39b1071bb7cfaa675759ad",
272
+ "metadataTypeId": 29
273
+ },
274
+ {
275
+ "type": "struct contract_schema::trade_account::RevokeArgs",
276
+ "concreteTypeId": "fa245643e7467acf010e5f8b65e5c1b8f23a3973dd24fe755acd630ac3fa7557",
277
+ "metadataTypeId": 30
239
278
  },
240
279
  {
241
- "type": "struct contract_schema::trade_account::SessionRevokedEvent",
242
- "concreteTypeId": "2765c1864fc179c9ee1938cc4a28acedc0b1c76f0a63434b33149f432eb4e8c3",
243
- "metadataTypeId": 26
280
+ "type": "struct contract_schema::trade_account::SessionArgs",
281
+ "concreteTypeId": "bb7bd7d8bcce22513cea4a375d13aeff84ff17c9aecf40ae825265179de131be",
282
+ "metadataTypeId": 31
244
283
  },
245
284
  {
246
285
  "type": "struct contract_schema::trade_account::WithdrawArgs",
247
286
  "concreteTypeId": "c86b3b5bfe482d7adedfc0fac7d7c73b4fd6e7c97a31a76afa54deeff1d5c49a",
248
- "metadataTypeId": 27
287
+ "metadataTypeId": 32
249
288
  },
250
289
  {
251
290
  "type": "struct contract_schema::trade_account::WithdrawEvent",
252
291
  "concreteTypeId": "0e9654327e3d67d706825c5e4e2df18533389b6566d8c1c298c7bd5b5e0c6da5",
253
- "metadataTypeId": 28
292
+ "metadataTypeId": 33
293
+ },
294
+ {
295
+ "type": "struct contract_schema::trade_account_par::NonceSessionWindow",
296
+ "concreteTypeId": "67c5930a2e12f4035de71fcc3cd0496d4f4e48801fa464e77002520fddf176f4",
297
+ "metadataTypeId": 34
298
+ },
299
+ {
300
+ "type": "struct contract_schema::trade_account_par::ParallelCallContractArg",
301
+ "concreteTypeId": "ccfcfd3d492162c7de9abda3c1a8f716eca824532d7168f183337206eb20d5c2",
302
+ "metadataTypeId": 35
303
+ },
304
+ {
305
+ "type": "struct contract_schema::trade_account_par::ParallelCallContractArgs",
306
+ "concreteTypeId": "bcb864588e4de0cfed9235a42c859a520a296e4cb3acab92dab913134c6a068f",
307
+ "metadataTypeId": 36
308
+ },
309
+ {
310
+ "type": "struct contract_schema::trade_account_par::ParallelMultiCallContractArgs",
311
+ "concreteTypeId": "9d4abea3c3ded72594ba630071d98b649db8348d3ab2970852317e69b5bece52",
312
+ "metadataTypeId": 37
313
+ },
314
+ {
315
+ "type": "struct contract_schema::trade_account_par::ParallelNonceUsedEvent",
316
+ "concreteTypeId": "0aeddd0e2c420b4162249ce8bf6408c224e31586679b7278d6331df6215e28cf",
317
+ "metadataTypeId": 38
318
+ },
319
+ {
320
+ "type": "struct contract_schema::trade_account_par::ParallelRevokeArgs",
321
+ "concreteTypeId": "cc16af760fc50309e1c4fae03a03d4177844d68a5db161bc63fe02eb9c29ae11",
322
+ "metadataTypeId": 39
323
+ },
324
+ {
325
+ "type": "struct contract_schema::trade_account_par::ParallelSessionArgs",
326
+ "concreteTypeId": "621624a91c02fc7fb3cc397282d788d786ffb08c334878ff7923643395c535d1",
327
+ "metadataTypeId": 40
328
+ },
329
+ {
330
+ "type": "struct contract_schema::trade_account_par::ParallelWithdrawArgs",
331
+ "concreteTypeId": "61302fed749866a6cee323f72603e30dc6a595e8f650d1cacb78d9945c5bc5eb",
332
+ "metadataTypeId": 41
333
+ },
334
+ {
335
+ "type": "struct contract_schema::trade_account_par::ParallelWithdrawEvent",
336
+ "concreteTypeId": "ff95fe34c153b4e55be9ae1db914dd147a670f8d127d4ddcd4cde2b933a15132",
337
+ "metadataTypeId": 42
254
338
  },
255
339
  {
256
340
  "type": "struct std::asset_id::AssetId",
257
341
  "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
258
- "metadataTypeId": 30
342
+ "metadataTypeId": 44
259
343
  },
260
344
  {
261
345
  "type": "struct std::vec::Vec<struct contract_schema::trade_account::CallContractArg>",
262
346
  "concreteTypeId": "d5d0add462df804d0d75443e00c45391dcc2f0c5c02c439a798cc7549b528449",
263
- "metadataTypeId": 41,
347
+ "metadataTypeId": 55,
264
348
  "typeArguments": [
265
349
  "2e811073316cb5af9b64bcd703b0f5957a35112aa0f1f86782a8fd42b485c3d4"
266
350
  ]
267
351
  },
352
+ {
353
+ "type": "struct std::vec::Vec<struct contract_schema::trade_account_par::ParallelCallContractArg>",
354
+ "concreteTypeId": "9494a67b2e86c59004dd35f25303c29392636c07d3a3cee0d6c768f89e40e821",
355
+ "metadataTypeId": 55,
356
+ "typeArguments": [
357
+ "ccfcfd3d492162c7de9abda3c1a8f716eca824532d7168f183337206eb20d5c2"
358
+ ]
359
+ },
360
+ {
361
+ "type": "u256",
362
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
363
+ },
268
364
  {
269
365
  "type": "u64",
270
366
  "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
@@ -277,27 +373,51 @@ const abi = {
277
373
  "components": [
278
374
  {
279
375
  "name": "__array_element",
280
- "typeId": 43
376
+ "typeId": 56
281
377
  }
282
378
  ]
283
379
  },
284
380
  {
285
- "type": "enum contract_schema::src16::Domain",
381
+ "type": "[_; 8]",
286
382
  "metadataTypeId": 1,
383
+ "components": [
384
+ {
385
+ "name": "__array_element",
386
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
387
+ }
388
+ ]
389
+ },
390
+ {
391
+ "type": "enum contract_schema::session::SessionError",
392
+ "metadataTypeId": 2,
393
+ "components": [
394
+ {
395
+ "name": "SessionInThePast",
396
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
397
+ },
398
+ {
399
+ "name": "NoApprovedContractIdsProvided",
400
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "type": "enum contract_schema::src16::Domain",
406
+ "metadataTypeId": 3,
287
407
  "components": [
288
408
  {
289
409
  "name": "SRC16Domain",
290
- "typeId": 16
410
+ "typeId": 26
291
411
  },
292
412
  {
293
413
  "name": "EIP712Domain",
294
- "typeId": 15
414
+ "typeId": 25
295
415
  }
296
416
  ]
297
417
  },
298
418
  {
299
419
  "type": "enum contract_schema::src16::Encoding",
300
- "metadataTypeId": 2,
420
+ "metadataTypeId": 4,
301
421
  "components": [
302
422
  {
303
423
  "name": "SRC16",
@@ -310,8 +430,8 @@ const abi = {
310
430
  ]
311
431
  },
312
432
  {
313
- "type": "enum contract_schema::trade_account::CallerError",
314
- "metadataTypeId": 3,
433
+ "type": "enum contract_schema::trade_account_errors::CallerError",
434
+ "metadataTypeId": 5,
315
435
  "components": [
316
436
  {
317
437
  "name": "InvalidCaller",
@@ -320,32 +440,48 @@ const abi = {
320
440
  ]
321
441
  },
322
442
  {
323
- "type": "enum contract_schema::trade_account::NonceError",
324
- "metadataTypeId": 4,
443
+ "type": "enum contract_schema::trade_account_errors::ExtendedNonceError",
444
+ "metadataTypeId": 6,
325
445
  "components": [
326
446
  {
327
- "name": "InvalidNonce",
447
+ "name": "ReservedBitsSet",
448
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
449
+ },
450
+ {
451
+ "name": "BitmapPositionOutOfRange",
452
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
453
+ },
454
+ {
455
+ "name": "NonceSessionIdOutOfRange",
456
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
457
+ },
458
+ {
459
+ "name": "Expired",
460
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
461
+ },
462
+ {
463
+ "name": "WordPosOutOfWindow",
464
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
465
+ },
466
+ {
467
+ "name": "AlreadyUsed",
328
468
  "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
329
469
  }
330
470
  ]
331
471
  },
332
472
  {
333
- "type": "enum contract_schema::trade_account::SessionError",
334
- "metadataTypeId": 5,
473
+ "type": "enum contract_schema::trade_account_errors::NonceError",
474
+ "metadataTypeId": 7,
335
475
  "components": [
336
476
  {
337
- "name": "SessionInThePast",
338
- "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
339
- },
340
- {
341
- "name": "NoApprovedContractIdsProvided",
477
+ "name": "InvalidNonce",
342
478
  "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
343
479
  }
344
480
  ]
345
481
  },
346
482
  {
347
- "type": "enum contract_schema::trade_account::SignerError",
348
- "metadataTypeId": 6,
483
+ "type": "enum contract_schema::trade_account_errors::SignerError",
484
+ "metadataTypeId": 8,
349
485
  "components": [
350
486
  {
351
487
  "name": "InvalidSigner",
@@ -358,8 +494,8 @@ const abi = {
358
494
  ]
359
495
  },
360
496
  {
361
- "type": "enum contract_schema::trade_account::WithdrawError",
362
- "metadataTypeId": 7,
497
+ "type": "enum contract_schema::trade_account_errors::WithdrawError",
498
+ "metadataTypeId": 9,
363
499
  "components": [
364
500
  {
365
501
  "name": "AmountIsZero",
@@ -373,25 +509,25 @@ const abi = {
373
509
  },
374
510
  {
375
511
  "type": "enum std::crypto::signature::Signature",
376
- "metadataTypeId": 8,
512
+ "metadataTypeId": 10,
377
513
  "components": [
378
514
  {
379
515
  "name": "Secp256k1",
380
- "typeId": 35
516
+ "typeId": 49
381
517
  },
382
518
  {
383
519
  "name": "Secp256r1",
384
- "typeId": 36
520
+ "typeId": 50
385
521
  },
386
522
  {
387
523
  "name": "Ed25519",
388
- "typeId": 34
524
+ "typeId": 48
389
525
  }
390
526
  ]
391
527
  },
392
528
  {
393
529
  "type": "enum std::crypto::signature_error::SignatureError",
394
- "metadataTypeId": 9,
530
+ "metadataTypeId": 11,
395
531
  "components": [
396
532
  {
397
533
  "name": "UnrecoverablePublicKey",
@@ -413,21 +549,21 @@ const abi = {
413
549
  },
414
550
  {
415
551
  "type": "enum std::identity::Identity",
416
- "metadataTypeId": 10,
552
+ "metadataTypeId": 12,
417
553
  "components": [
418
554
  {
419
555
  "name": "Address",
420
- "typeId": 29
556
+ "typeId": 43
421
557
  },
422
558
  {
423
559
  "name": "ContractId",
424
- "typeId": 33
560
+ "typeId": 47
425
561
  }
426
562
  ]
427
563
  },
428
564
  {
429
565
  "type": "enum std::option::Option",
430
- "metadataTypeId": 11,
566
+ "metadataTypeId": 13,
431
567
  "components": [
432
568
  {
433
569
  "name": "None",
@@ -435,24 +571,46 @@ const abi = {
435
571
  },
436
572
  {
437
573
  "name": "Some",
438
- "typeId": 12
574
+ "typeId": 16
575
+ }
576
+ ],
577
+ "typeParameters": [
578
+ 16
579
+ ]
580
+ },
581
+ {
582
+ "type": "enum std::result::Result",
583
+ "metadataTypeId": 14,
584
+ "components": [
585
+ {
586
+ "name": "Ok",
587
+ "typeId": 16
588
+ },
589
+ {
590
+ "name": "Err",
591
+ "typeId": 15
439
592
  }
440
593
  ],
441
594
  "typeParameters": [
442
- 12
595
+ 16,
596
+ 15
443
597
  ]
444
598
  },
599
+ {
600
+ "type": "generic E",
601
+ "metadataTypeId": 15
602
+ },
445
603
  {
446
604
  "type": "generic T",
447
- "metadataTypeId": 12
605
+ "metadataTypeId": 16
448
606
  },
449
607
  {
450
608
  "type": "raw untyped ptr",
451
- "metadataTypeId": 13
609
+ "metadataTypeId": 17
452
610
  },
453
611
  {
454
612
  "type": "struct contract_libs::signature::IncrementNonceEvent",
455
- "metadataTypeId": 14,
613
+ "metadataTypeId": 18,
456
614
  "components": [
457
615
  {
458
616
  "name": "nonce",
@@ -461,308 +619,326 @@ const abi = {
461
619
  ]
462
620
  },
463
621
  {
464
- "type": "struct contract_schema::src16::EIP712Domain",
465
- "metadataTypeId": 15,
622
+ "type": "struct contract_schema::session::ExtendedNonceSessionContractCallEvent",
623
+ "metadataTypeId": 19,
466
624
  "components": [
467
625
  {
468
- "name": "name",
469
- "typeId": 11,
470
- "typeArguments": [
471
- {
472
- "name": "",
473
- "typeId": 38
474
- }
475
- ]
626
+ "name": "session_id",
627
+ "typeId": 12
476
628
  },
477
629
  {
478
- "name": "version",
479
- "typeId": 11,
480
- "typeArguments": [
481
- {
482
- "name": "",
483
- "typeId": 38
484
- }
485
- ]
630
+ "name": "called_contract",
631
+ "typeId": 47
486
632
  },
487
633
  {
488
- "name": "chain_id",
489
- "typeId": 11,
490
- "typeArguments": [
491
- {
492
- "name": "",
493
- "typeId": 42
494
- }
495
- ]
634
+ "name": "nonce",
635
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "type": "struct contract_schema::session::FailedToValidateEvent",
641
+ "metadataTypeId": 20,
642
+ "components": [
643
+ {
644
+ "name": "account",
645
+ "typeId": 12
496
646
  },
497
647
  {
498
- "name": "verifying_contract",
499
- "typeId": 11,
500
- "typeArguments": [
501
- {
502
- "name": "",
503
- "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
504
- }
505
- ]
648
+ "name": "reason",
649
+ "typeId": 52
506
650
  },
507
651
  {
508
- "name": "salt",
509
- "typeId": 11,
510
- "typeArguments": [
511
- {
512
- "name": "",
513
- "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
514
- }
515
- ]
652
+ "name": "timestamp",
653
+ "typeId": 53
516
654
  }
517
655
  ]
518
656
  },
519
657
  {
520
- "type": "struct contract_schema::src16::SRC16Domain",
521
- "metadataTypeId": 16,
658
+ "type": "struct contract_schema::session::Session",
659
+ "metadataTypeId": 21,
522
660
  "components": [
523
661
  {
524
- "name": "name",
525
- "typeId": 11,
526
- "typeArguments": [
527
- {
528
- "name": "",
529
- "typeId": 38
530
- }
531
- ]
662
+ "name": "session_id",
663
+ "typeId": 12
532
664
  },
533
665
  {
534
- "name": "version",
535
- "typeId": 11,
536
- "typeArguments": [
537
- {
538
- "name": "",
539
- "typeId": 38
540
- }
541
- ]
666
+ "name": "expiry",
667
+ "typeId": 53
542
668
  },
543
669
  {
544
- "name": "chain_id",
545
- "typeId": 11,
670
+ "name": "contract_ids",
671
+ "typeId": 55,
546
672
  "typeArguments": [
547
673
  {
548
674
  "name": "",
549
- "typeId": 42
550
- }
551
- ]
552
- },
553
- {
554
- "name": "verifying_contract",
555
- "typeId": 11,
556
- "typeArguments": [
557
- {
558
- "name": "",
559
- "typeId": 33
560
- }
561
- ]
562
- },
563
- {
564
- "name": "salt",
565
- "typeId": 11,
566
- "typeArguments": [
567
- {
568
- "name": "",
569
- "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
675
+ "typeId": 47
570
676
  }
571
677
  ]
572
678
  }
573
679
  ]
574
680
  },
575
681
  {
576
- "type": "struct contract_schema::trade_account::CallContractArg",
577
- "metadataTypeId": 17,
682
+ "type": "struct contract_schema::session::SessionContractCallEvent",
683
+ "metadataTypeId": 22,
578
684
  "components": [
579
685
  {
580
- "name": "contract_id",
581
- "typeId": 33
582
- },
583
- {
584
- "name": "function_selector",
585
- "typeId": 31
686
+ "name": "session_id",
687
+ "typeId": 12
586
688
  },
587
689
  {
588
- "name": "call_params",
589
- "typeId": 37
690
+ "name": "called_contract",
691
+ "typeId": 47
590
692
  },
591
693
  {
592
- "name": "call_data",
593
- "typeId": 11,
594
- "typeArguments": [
595
- {
596
- "name": "",
597
- "typeId": 31
598
- }
599
- ]
694
+ "name": "nonce",
695
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
600
696
  }
601
697
  ]
602
698
  },
603
699
  {
604
- "type": "struct contract_schema::trade_account::CallContractArgs",
605
- "metadataTypeId": 18,
700
+ "type": "struct contract_schema::session::SessionCreatedEvent",
701
+ "metadataTypeId": 23,
606
702
  "components": [
607
703
  {
608
- "name": "nonce",
609
- "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
704
+ "name": "account",
705
+ "typeId": 12
610
706
  },
611
707
  {
612
- "name": "call_contract_args",
613
- "typeId": 17
708
+ "name": "session",
709
+ "typeId": 21
614
710
  }
615
711
  ]
616
712
  },
617
713
  {
618
- "type": "struct contract_schema::trade_account::FailedToValidateEvent",
619
- "metadataTypeId": 19,
714
+ "type": "struct contract_schema::session::SessionRevokedEvent",
715
+ "metadataTypeId": 24,
620
716
  "components": [
621
717
  {
622
718
  "name": "account",
623
- "typeId": 10
624
- },
625
- {
626
- "name": "reason",
627
- "typeId": 38
719
+ "typeId": 12
628
720
  },
629
721
  {
630
- "name": "timestamp",
631
- "typeId": 39
722
+ "name": "session_id",
723
+ "typeId": 12
632
724
  }
633
725
  ]
634
726
  },
635
727
  {
636
- "type": "struct contract_schema::trade_account::MultiCallContractArgs",
637
- "metadataTypeId": 20,
728
+ "type": "struct contract_schema::src16::EIP712Domain",
729
+ "metadataTypeId": 25,
638
730
  "components": [
639
731
  {
640
- "name": "nonce",
641
- "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
732
+ "name": "name",
733
+ "typeId": 13,
734
+ "typeArguments": [
735
+ {
736
+ "name": "",
737
+ "typeId": 52
738
+ }
739
+ ]
642
740
  },
643
741
  {
644
- "name": "call_contract_args",
645
- "typeId": 41,
742
+ "name": "version",
743
+ "typeId": 13,
646
744
  "typeArguments": [
647
745
  {
648
746
  "name": "",
649
- "typeId": 17
747
+ "typeId": 52
650
748
  }
651
749
  ]
652
- }
653
- ]
654
- },
655
- {
656
- "type": "struct contract_schema::trade_account::RevokeArgs",
657
- "metadataTypeId": 21,
658
- "components": [
750
+ },
659
751
  {
660
- "name": "nonce",
661
- "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
752
+ "name": "chain_id",
753
+ "typeId": 13,
754
+ "typeArguments": [
755
+ {
756
+ "name": "",
757
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
758
+ }
759
+ ]
760
+ },
761
+ {
762
+ "name": "verifying_contract",
763
+ "typeId": 13,
764
+ "typeArguments": [
765
+ {
766
+ "name": "",
767
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
768
+ }
769
+ ]
770
+ },
771
+ {
772
+ "name": "salt",
773
+ "typeId": 13,
774
+ "typeArguments": [
775
+ {
776
+ "name": "",
777
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
778
+ }
779
+ ]
662
780
  }
663
781
  ]
664
782
  },
665
783
  {
666
- "type": "struct contract_schema::trade_account::Session",
667
- "metadataTypeId": 22,
784
+ "type": "struct contract_schema::src16::SRC16Domain",
785
+ "metadataTypeId": 26,
668
786
  "components": [
669
787
  {
670
- "name": "session_id",
671
- "typeId": 10
788
+ "name": "name",
789
+ "typeId": 13,
790
+ "typeArguments": [
791
+ {
792
+ "name": "",
793
+ "typeId": 52
794
+ }
795
+ ]
672
796
  },
673
797
  {
674
- "name": "expiry",
675
- "typeId": 39
798
+ "name": "version",
799
+ "typeId": 13,
800
+ "typeArguments": [
801
+ {
802
+ "name": "",
803
+ "typeId": 52
804
+ }
805
+ ]
676
806
  },
677
807
  {
678
- "name": "contract_ids",
679
- "typeId": 41,
808
+ "name": "chain_id",
809
+ "typeId": 13,
810
+ "typeArguments": [
811
+ {
812
+ "name": "",
813
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
814
+ }
815
+ ]
816
+ },
817
+ {
818
+ "name": "verifying_contract",
819
+ "typeId": 13,
820
+ "typeArguments": [
821
+ {
822
+ "name": "",
823
+ "typeId": 47
824
+ }
825
+ ]
826
+ },
827
+ {
828
+ "name": "salt",
829
+ "typeId": 13,
680
830
  "typeArguments": [
681
831
  {
682
832
  "name": "",
683
- "typeId": 33
833
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
684
834
  }
685
835
  ]
686
836
  }
687
837
  ]
688
838
  },
689
839
  {
690
- "type": "struct contract_schema::trade_account::SessionArgs",
691
- "metadataTypeId": 23,
840
+ "type": "struct contract_schema::trade_account::CallContractArg",
841
+ "metadataTypeId": 27,
692
842
  "components": [
693
843
  {
694
- "name": "nonce",
695
- "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
844
+ "name": "contract_id",
845
+ "typeId": 47
696
846
  },
697
847
  {
698
- "name": "session_id",
699
- "typeId": 10
848
+ "name": "function_selector",
849
+ "typeId": 45
700
850
  },
701
851
  {
702
- "name": "expiry",
703
- "typeId": 39
852
+ "name": "call_params",
853
+ "typeId": 51
704
854
  },
705
855
  {
706
- "name": "contract_ids",
707
- "typeId": 41,
856
+ "name": "call_data",
857
+ "typeId": 13,
708
858
  "typeArguments": [
709
859
  {
710
860
  "name": "",
711
- "typeId": 33
861
+ "typeId": 45
712
862
  }
713
863
  ]
714
864
  }
715
865
  ]
716
866
  },
717
867
  {
718
- "type": "struct contract_schema::trade_account::SessionContractCallEvent",
719
- "metadataTypeId": 24,
868
+ "type": "struct contract_schema::trade_account::CallContractArgs",
869
+ "metadataTypeId": 28,
720
870
  "components": [
721
871
  {
722
- "name": "session_id",
723
- "typeId": 10
872
+ "name": "nonce",
873
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
724
874
  },
725
875
  {
726
- "name": "called_contract",
727
- "typeId": 33
728
- },
876
+ "name": "call_contract_args",
877
+ "typeId": 27
878
+ }
879
+ ]
880
+ },
881
+ {
882
+ "type": "struct contract_schema::trade_account::MultiCallContractArgs",
883
+ "metadataTypeId": 29,
884
+ "components": [
729
885
  {
730
886
  "name": "nonce",
731
887
  "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
888
+ },
889
+ {
890
+ "name": "call_contract_args",
891
+ "typeId": 55,
892
+ "typeArguments": [
893
+ {
894
+ "name": "",
895
+ "typeId": 27
896
+ }
897
+ ]
732
898
  }
733
899
  ]
734
900
  },
735
901
  {
736
- "type": "struct contract_schema::trade_account::SessionCreatedEvent",
737
- "metadataTypeId": 25,
902
+ "type": "struct contract_schema::trade_account::RevokeArgs",
903
+ "metadataTypeId": 30,
738
904
  "components": [
739
905
  {
740
- "name": "account",
741
- "typeId": 10
742
- },
743
- {
744
- "name": "session",
745
- "typeId": 22
906
+ "name": "nonce",
907
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
746
908
  }
747
909
  ]
748
910
  },
749
911
  {
750
- "type": "struct contract_schema::trade_account::SessionRevokedEvent",
751
- "metadataTypeId": 26,
912
+ "type": "struct contract_schema::trade_account::SessionArgs",
913
+ "metadataTypeId": 31,
752
914
  "components": [
753
915
  {
754
- "name": "account",
755
- "typeId": 10
916
+ "name": "nonce",
917
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
756
918
  },
757
919
  {
758
920
  "name": "session_id",
759
- "typeId": 10
921
+ "typeId": 12
922
+ },
923
+ {
924
+ "name": "expiry",
925
+ "typeId": 53
926
+ },
927
+ {
928
+ "name": "contract_ids",
929
+ "typeId": 55,
930
+ "typeArguments": [
931
+ {
932
+ "name": "",
933
+ "typeId": 47
934
+ }
935
+ ]
760
936
  }
761
937
  ]
762
938
  },
763
939
  {
764
940
  "type": "struct contract_schema::trade_account::WithdrawArgs",
765
- "metadataTypeId": 27,
941
+ "metadataTypeId": 32,
766
942
  "components": [
767
943
  {
768
944
  "name": "nonce",
@@ -770,7 +946,7 @@ const abi = {
770
946
  },
771
947
  {
772
948
  "name": "to",
773
- "typeId": 10
949
+ "typeId": 12
774
950
  },
775
951
  {
776
952
  "name": "amount",
@@ -778,21 +954,21 @@ const abi = {
778
954
  },
779
955
  {
780
956
  "name": "asset_id",
781
- "typeId": 30
957
+ "typeId": 44
782
958
  }
783
959
  ]
784
960
  },
785
961
  {
786
962
  "type": "struct contract_schema::trade_account::WithdrawEvent",
787
- "metadataTypeId": 28,
963
+ "metadataTypeId": 33,
788
964
  "components": [
789
965
  {
790
966
  "name": "account",
791
- "typeId": 10
967
+ "typeId": 12
792
968
  },
793
969
  {
794
970
  "name": "to",
795
- "typeId": 10
971
+ "typeId": 12
796
972
  },
797
973
  {
798
974
  "name": "amount",
@@ -800,65 +976,237 @@ const abi = {
800
976
  },
801
977
  {
802
978
  "name": "asset_id",
803
- "typeId": 30
979
+ "typeId": 44
804
980
  },
805
981
  {
806
982
  "name": "timestamp",
807
- "typeId": 39
983
+ "typeId": 53
808
984
  }
809
985
  ]
810
986
  },
811
987
  {
812
- "type": "struct std::address::Address",
813
- "metadataTypeId": 29,
988
+ "type": "struct contract_schema::trade_account_par::NonceSessionWindow",
989
+ "metadataTypeId": 34,
814
990
  "components": [
815
991
  {
816
- "name": "bits",
817
- "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
992
+ "name": "base",
993
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
994
+ },
995
+ {
996
+ "name": "slots",
997
+ "typeId": 1
818
998
  }
819
999
  ]
820
1000
  },
821
1001
  {
822
- "type": "struct std::asset_id::AssetId",
823
- "metadataTypeId": 30,
1002
+ "type": "struct contract_schema::trade_account_par::ParallelCallContractArg",
1003
+ "metadataTypeId": 35,
824
1004
  "components": [
825
1005
  {
826
- "name": "bits",
827
- "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
1006
+ "name": "contract_id",
1007
+ "typeId": 47
1008
+ },
1009
+ {
1010
+ "name": "function_selector",
1011
+ "typeId": 45
1012
+ },
1013
+ {
1014
+ "name": "call_params",
1015
+ "typeId": 51
1016
+ },
1017
+ {
1018
+ "name": "call_data",
1019
+ "typeId": 13,
1020
+ "typeArguments": [
1021
+ {
1022
+ "name": "",
1023
+ "typeId": 45
1024
+ }
1025
+ ]
828
1026
  }
829
1027
  ]
830
1028
  },
831
1029
  {
832
- "type": "struct std::bytes::Bytes",
833
- "metadataTypeId": 31,
1030
+ "type": "struct contract_schema::trade_account_par::ParallelCallContractArgs",
1031
+ "metadataTypeId": 36,
834
1032
  "components": [
835
1033
  {
836
- "name": "buf",
837
- "typeId": 32
1034
+ "name": "nonce",
1035
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
838
1036
  },
839
1037
  {
840
- "name": "len",
841
- "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1038
+ "name": "call_contract_args",
1039
+ "typeId": 35
842
1040
  }
843
1041
  ]
844
1042
  },
845
1043
  {
846
- "type": "struct std::bytes::RawBytes",
847
- "metadataTypeId": 32,
1044
+ "type": "struct contract_schema::trade_account_par::ParallelMultiCallContractArgs",
1045
+ "metadataTypeId": 37,
848
1046
  "components": [
849
1047
  {
850
- "name": "ptr",
851
- "typeId": 13
1048
+ "name": "nonce",
1049
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
852
1050
  },
853
1051
  {
854
- "name": "cap",
855
- "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1052
+ "name": "call_contract_args",
1053
+ "typeId": 55,
1054
+ "typeArguments": [
1055
+ {
1056
+ "name": "",
1057
+ "typeId": 35
1058
+ }
1059
+ ]
856
1060
  }
857
1061
  ]
858
1062
  },
859
1063
  {
860
- "type": "struct std::contract_id::ContractId",
861
- "metadataTypeId": 33,
1064
+ "type": "struct contract_schema::trade_account_par::ParallelNonceUsedEvent",
1065
+ "metadataTypeId": 38,
1066
+ "components": [
1067
+ {
1068
+ "name": "nonce",
1069
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
1070
+ }
1071
+ ]
1072
+ },
1073
+ {
1074
+ "type": "struct contract_schema::trade_account_par::ParallelRevokeArgs",
1075
+ "metadataTypeId": 39,
1076
+ "components": [
1077
+ {
1078
+ "name": "nonce",
1079
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
1080
+ }
1081
+ ]
1082
+ },
1083
+ {
1084
+ "type": "struct contract_schema::trade_account_par::ParallelSessionArgs",
1085
+ "metadataTypeId": 40,
1086
+ "components": [
1087
+ {
1088
+ "name": "nonce",
1089
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
1090
+ },
1091
+ {
1092
+ "name": "session_id",
1093
+ "typeId": 12
1094
+ },
1095
+ {
1096
+ "name": "expiry",
1097
+ "typeId": 53
1098
+ },
1099
+ {
1100
+ "name": "contract_ids",
1101
+ "typeId": 55,
1102
+ "typeArguments": [
1103
+ {
1104
+ "name": "",
1105
+ "typeId": 47
1106
+ }
1107
+ ]
1108
+ }
1109
+ ]
1110
+ },
1111
+ {
1112
+ "type": "struct contract_schema::trade_account_par::ParallelWithdrawArgs",
1113
+ "metadataTypeId": 41,
1114
+ "components": [
1115
+ {
1116
+ "name": "nonce",
1117
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
1118
+ },
1119
+ {
1120
+ "name": "to",
1121
+ "typeId": 12
1122
+ },
1123
+ {
1124
+ "name": "amount",
1125
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1126
+ },
1127
+ {
1128
+ "name": "asset_id",
1129
+ "typeId": 44
1130
+ }
1131
+ ]
1132
+ },
1133
+ {
1134
+ "type": "struct contract_schema::trade_account_par::ParallelWithdrawEvent",
1135
+ "metadataTypeId": 42,
1136
+ "components": [
1137
+ {
1138
+ "name": "account",
1139
+ "typeId": 12
1140
+ },
1141
+ {
1142
+ "name": "to",
1143
+ "typeId": 12
1144
+ },
1145
+ {
1146
+ "name": "amount",
1147
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1148
+ },
1149
+ {
1150
+ "name": "asset_id",
1151
+ "typeId": 44
1152
+ },
1153
+ {
1154
+ "name": "timestamp",
1155
+ "typeId": 53
1156
+ }
1157
+ ]
1158
+ },
1159
+ {
1160
+ "type": "struct std::address::Address",
1161
+ "metadataTypeId": 43,
1162
+ "components": [
1163
+ {
1164
+ "name": "bits",
1165
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
1166
+ }
1167
+ ]
1168
+ },
1169
+ {
1170
+ "type": "struct std::asset_id::AssetId",
1171
+ "metadataTypeId": 44,
1172
+ "components": [
1173
+ {
1174
+ "name": "bits",
1175
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
1176
+ }
1177
+ ]
1178
+ },
1179
+ {
1180
+ "type": "struct std::bytes::Bytes",
1181
+ "metadataTypeId": 45,
1182
+ "components": [
1183
+ {
1184
+ "name": "buf",
1185
+ "typeId": 46
1186
+ },
1187
+ {
1188
+ "name": "len",
1189
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1190
+ }
1191
+ ]
1192
+ },
1193
+ {
1194
+ "type": "struct std::bytes::RawBytes",
1195
+ "metadataTypeId": 46,
1196
+ "components": [
1197
+ {
1198
+ "name": "ptr",
1199
+ "typeId": 17
1200
+ },
1201
+ {
1202
+ "name": "cap",
1203
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1204
+ }
1205
+ ]
1206
+ },
1207
+ {
1208
+ "type": "struct std::contract_id::ContractId",
1209
+ "metadataTypeId": 47,
862
1210
  "components": [
863
1211
  {
864
1212
  "name": "bits",
@@ -868,7 +1216,7 @@ const abi = {
868
1216
  },
869
1217
  {
870
1218
  "type": "struct std::crypto::ed25519::Ed25519",
871
- "metadataTypeId": 34,
1219
+ "metadataTypeId": 48,
872
1220
  "components": [
873
1221
  {
874
1222
  "name": "bits",
@@ -878,7 +1226,7 @@ const abi = {
878
1226
  },
879
1227
  {
880
1228
  "type": "struct std::crypto::secp256k1::Secp256k1",
881
- "metadataTypeId": 35,
1229
+ "metadataTypeId": 49,
882
1230
  "components": [
883
1231
  {
884
1232
  "name": "bits",
@@ -888,7 +1236,7 @@ const abi = {
888
1236
  },
889
1237
  {
890
1238
  "type": "struct std::crypto::secp256r1::Secp256r1",
891
- "metadataTypeId": 36,
1239
+ "metadataTypeId": 50,
892
1240
  "components": [
893
1241
  {
894
1242
  "name": "bits",
@@ -898,7 +1246,7 @@ const abi = {
898
1246
  },
899
1247
  {
900
1248
  "type": "struct std::low_level_call::CallParams",
901
- "metadataTypeId": 37,
1249
+ "metadataTypeId": 51,
902
1250
  "components": [
903
1251
  {
904
1252
  "name": "coins",
@@ -906,7 +1254,7 @@ const abi = {
906
1254
  },
907
1255
  {
908
1256
  "name": "asset_id",
909
- "typeId": 30
1257
+ "typeId": 44
910
1258
  },
911
1259
  {
912
1260
  "name": "gas",
@@ -916,17 +1264,17 @@ const abi = {
916
1264
  },
917
1265
  {
918
1266
  "type": "struct std::string::String",
919
- "metadataTypeId": 38,
1267
+ "metadataTypeId": 52,
920
1268
  "components": [
921
1269
  {
922
1270
  "name": "bytes",
923
- "typeId": 31
1271
+ "typeId": 45
924
1272
  }
925
1273
  ]
926
1274
  },
927
1275
  {
928
1276
  "type": "struct std::time::Time",
929
- "metadataTypeId": 39,
1277
+ "metadataTypeId": 53,
930
1278
  "components": [
931
1279
  {
932
1280
  "name": "unix",
@@ -936,11 +1284,11 @@ const abi = {
936
1284
  },
937
1285
  {
938
1286
  "type": "struct std::vec::RawVec",
939
- "metadataTypeId": 40,
1287
+ "metadataTypeId": 54,
940
1288
  "components": [
941
1289
  {
942
1290
  "name": "ptr",
943
- "typeId": 13
1291
+ "typeId": 17
944
1292
  },
945
1293
  {
946
1294
  "name": "cap",
@@ -948,20 +1296,20 @@ const abi = {
948
1296
  }
949
1297
  ],
950
1298
  "typeParameters": [
951
- 12
1299
+ 16
952
1300
  ]
953
1301
  },
954
1302
  {
955
1303
  "type": "struct std::vec::Vec",
956
- "metadataTypeId": 41,
1304
+ "metadataTypeId": 55,
957
1305
  "components": [
958
1306
  {
959
1307
  "name": "buf",
960
- "typeId": 40,
1308
+ "typeId": 54,
961
1309
  "typeArguments": [
962
1310
  {
963
1311
  "name": "",
964
- "typeId": 12
1312
+ "typeId": 16
965
1313
  }
966
1314
  ]
967
1315
  },
@@ -971,16 +1319,12 @@ const abi = {
971
1319
  }
972
1320
  ],
973
1321
  "typeParameters": [
974
- 12
1322
+ 16
975
1323
  ]
976
1324
  },
977
- {
978
- "type": "u256",
979
- "metadataTypeId": 42
980
- },
981
1325
  {
982
1326
  "type": "u8",
983
- "metadataTypeId": 43
1327
+ "metadataTypeId": 56
984
1328
  }
985
1329
  ],
986
1330
  "functions": [
@@ -1405,7 +1749,7 @@ const abi = {
1405
1749
  {
1406
1750
  "name": "get_current_session",
1407
1751
  "inputs": [],
1408
- "output": "db4bc0201be00cc6d049122ba4e5eaf2e1a8d67e87ae531c85204a496c41add4",
1752
+ "output": "8ee10917cb48b981cfce7fd1dea6bbb5cc8be7fe49d3e5d54044cd2c41a53bd7",
1409
1753
  "attributes": [
1410
1754
  {
1411
1755
  "name": "doc-comment",
@@ -2029,7 +2373,7 @@ const abi = {
2029
2373
  },
2030
2374
  {
2031
2375
  "name": "session",
2032
- "concreteTypeId": "db4bc0201be00cc6d049122ba4e5eaf2e1a8d67e87ae531c85204a496c41add4"
2376
+ "concreteTypeId": "8ee10917cb48b981cfce7fd1dea6bbb5cc8be7fe49d3e5d54044cd2c41a53bd7"
2033
2377
  }
2034
2378
  ],
2035
2379
  "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
@@ -2463,11 +2807,321 @@ const abi = {
2463
2807
  ]
2464
2808
  },
2465
2809
  {
2466
- "name": "doc-comment",
2467
- "arguments": [
2468
- " - Returns false if the current session has expired"
2469
- ]
2470
- },
2810
+ "name": "doc-comment",
2811
+ "arguments": [
2812
+ " - Returns false if the current session has expired"
2813
+ ]
2814
+ },
2815
+ {
2816
+ "name": "storage",
2817
+ "arguments": [
2818
+ "read"
2819
+ ]
2820
+ }
2821
+ ]
2822
+ },
2823
+ {
2824
+ "name": "withdraw",
2825
+ "inputs": [
2826
+ {
2827
+ "name": "signature",
2828
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
2829
+ },
2830
+ {
2831
+ "name": "to",
2832
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
2833
+ },
2834
+ {
2835
+ "name": "amount",
2836
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2837
+ },
2838
+ {
2839
+ "name": "asset_id",
2840
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974"
2841
+ }
2842
+ ],
2843
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2844
+ "attributes": [
2845
+ {
2846
+ "name": "doc-comment",
2847
+ "arguments": [
2848
+ " Withdraws assets from the trading account to a specified recipient."
2849
+ ]
2850
+ },
2851
+ {
2852
+ "name": "doc-comment",
2853
+ "arguments": [
2854
+ " Only the account owner can withdraw funds."
2855
+ ]
2856
+ },
2857
+ {
2858
+ "name": "doc-comment",
2859
+ "arguments": [
2860
+ ""
2861
+ ]
2862
+ },
2863
+ {
2864
+ "name": "doc-comment",
2865
+ "arguments": [
2866
+ " # Arguments"
2867
+ ]
2868
+ },
2869
+ {
2870
+ "name": "doc-comment",
2871
+ "arguments": [
2872
+ ""
2873
+ ]
2874
+ },
2875
+ {
2876
+ "name": "doc-comment",
2877
+ "arguments": [
2878
+ " * `to` - The recipient Identity for the withdrawal"
2879
+ ]
2880
+ },
2881
+ {
2882
+ "name": "doc-comment",
2883
+ "arguments": [
2884
+ " * `amount` - The amount to withdraw"
2885
+ ]
2886
+ },
2887
+ {
2888
+ "name": "doc-comment",
2889
+ "arguments": [
2890
+ " * `asset_id` - The asset to withdraw"
2891
+ ]
2892
+ },
2893
+ {
2894
+ "name": "doc-comment",
2895
+ "arguments": [
2896
+ ""
2897
+ ]
2898
+ },
2899
+ {
2900
+ "name": "doc-comment",
2901
+ "arguments": [
2902
+ " # Storage Access"
2903
+ ]
2904
+ },
2905
+ {
2906
+ "name": "doc-comment",
2907
+ "arguments": [
2908
+ ""
2909
+ ]
2910
+ },
2911
+ {
2912
+ "name": "doc-comment",
2913
+ "arguments": [
2914
+ " - Reads: Verifies caller is owner and checks balance"
2915
+ ]
2916
+ },
2917
+ {
2918
+ "name": "doc-comment",
2919
+ "arguments": [
2920
+ " - Writes: Updates the balance after withdrawal"
2921
+ ]
2922
+ },
2923
+ {
2924
+ "name": "doc-comment",
2925
+ "arguments": [
2926
+ ""
2927
+ ]
2928
+ },
2929
+ {
2930
+ "name": "doc-comment",
2931
+ "arguments": [
2932
+ " # Events"
2933
+ ]
2934
+ },
2935
+ {
2936
+ "name": "doc-comment",
2937
+ "arguments": [
2938
+ ""
2939
+ ]
2940
+ },
2941
+ {
2942
+ "name": "doc-comment",
2943
+ "arguments": [
2944
+ " - Emits `WithdrawEvent` with withdrawal details"
2945
+ ]
2946
+ },
2947
+ {
2948
+ "name": "doc-comment",
2949
+ "arguments": [
2950
+ ""
2951
+ ]
2952
+ },
2953
+ {
2954
+ "name": "doc-comment",
2955
+ "arguments": [
2956
+ " # Reverts"
2957
+ ]
2958
+ },
2959
+ {
2960
+ "name": "doc-comment",
2961
+ "arguments": [
2962
+ ""
2963
+ ]
2964
+ },
2965
+ {
2966
+ "name": "doc-comment",
2967
+ "arguments": [
2968
+ " - If caller is not the account owner"
2969
+ ]
2970
+ },
2971
+ {
2972
+ "name": "doc-comment",
2973
+ "arguments": [
2974
+ " - If insufficient balance"
2975
+ ]
2976
+ },
2977
+ {
2978
+ "name": "doc-comment",
2979
+ "arguments": [
2980
+ " - If amount is zero"
2981
+ ]
2982
+ },
2983
+ {
2984
+ "name": "doc-comment",
2985
+ "arguments": [
2986
+ " - If transfer fails"
2987
+ ]
2988
+ },
2989
+ {
2990
+ "name": "storage",
2991
+ "arguments": [
2992
+ "read",
2993
+ "write"
2994
+ ]
2995
+ }
2996
+ ]
2997
+ },
2998
+ {
2999
+ "name": "call_contract_arg_type_hash",
3000
+ "inputs": [
3001
+ {
3002
+ "name": "encoding",
3003
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3004
+ }
3005
+ ],
3006
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3007
+ "attributes": null
3008
+ },
3009
+ {
3010
+ "name": "call_contract_args_type_hash",
3011
+ "inputs": [
3012
+ {
3013
+ "name": "encoding",
3014
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3015
+ }
3016
+ ],
3017
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3018
+ "attributes": null
3019
+ },
3020
+ {
3021
+ "name": "call_params_type_hash",
3022
+ "inputs": [
3023
+ {
3024
+ "name": "encoding",
3025
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3026
+ }
3027
+ ],
3028
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3029
+ "attributes": null
3030
+ },
3031
+ {
3032
+ "name": "domain_separator",
3033
+ "inputs": [
3034
+ {
3035
+ "name": "encoding",
3036
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3037
+ }
3038
+ ],
3039
+ "output": "5f05ed49298866d467640c48af64b5e978f95a74358b7050b09adfa77ea558b2",
3040
+ "attributes": null
3041
+ },
3042
+ {
3043
+ "name": "domain_separator_hash",
3044
+ "inputs": [
3045
+ {
3046
+ "name": "encoding",
3047
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3048
+ }
3049
+ ],
3050
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3051
+ "attributes": null
3052
+ },
3053
+ {
3054
+ "name": "multi_call_contract_args_type_hash",
3055
+ "inputs": [
3056
+ {
3057
+ "name": "encoding",
3058
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3059
+ }
3060
+ ],
3061
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3062
+ "attributes": null
3063
+ },
3064
+ {
3065
+ "name": "revoke_args_type_hash",
3066
+ "inputs": [
3067
+ {
3068
+ "name": "encoding",
3069
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3070
+ }
3071
+ ],
3072
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3073
+ "attributes": null
3074
+ },
3075
+ {
3076
+ "name": "session_args_type_hash",
3077
+ "inputs": [
3078
+ {
3079
+ "name": "encoding",
3080
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3081
+ }
3082
+ ],
3083
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3084
+ "attributes": null
3085
+ },
3086
+ {
3087
+ "name": "withdraw_args_type_hash",
3088
+ "inputs": [
3089
+ {
3090
+ "name": "encoding",
3091
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3092
+ }
3093
+ ],
3094
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3095
+ "attributes": null
3096
+ },
3097
+ {
3098
+ "name": "get_nonce_session_window",
3099
+ "inputs": [
3100
+ {
3101
+ "name": "nonce_session_id",
3102
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
3103
+ }
3104
+ ],
3105
+ "output": "67c5930a2e12f4035de71fcc3cd0496d4f4e48801fa464e77002520fddf176f4",
3106
+ "attributes": [
3107
+ {
3108
+ "name": "storage",
3109
+ "arguments": [
3110
+ "read"
3111
+ ]
3112
+ }
3113
+ ]
3114
+ },
3115
+ {
3116
+ "name": "nonce_is_available",
3117
+ "inputs": [
3118
+ {
3119
+ "name": "nonce",
3120
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
3121
+ }
3122
+ ],
3123
+ "output": "edeec773f10b1c35ceeb107f134494c71c4b910a91fb4896d97407c97c6a8d26",
3124
+ "attributes": [
2471
3125
  {
2472
3126
  "name": "storage",
2473
3127
  "arguments": [
@@ -2477,171 +3131,165 @@ const abi = {
2477
3131
  ]
2478
3132
  },
2479
3133
  {
2480
- "name": "withdraw",
3134
+ "name": "par_call_contract",
2481
3135
  "inputs": [
2482
3136
  {
2483
3137
  "name": "signature",
2484
3138
  "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
2485
3139
  },
2486
3140
  {
2487
- "name": "to",
2488
- "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
2489
- },
2490
- {
2491
- "name": "amount",
2492
- "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2493
- },
2494
- {
2495
- "name": "asset_id",
2496
- "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974"
3141
+ "name": "call",
3142
+ "concreteTypeId": "bcb864588e4de0cfed9235a42c859a520a296e4cb3acab92dab913134c6a068f"
2497
3143
  }
2498
3144
  ],
2499
3145
  "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2500
3146
  "attributes": [
2501
3147
  {
2502
- "name": "doc-comment",
2503
- "arguments": [
2504
- " Withdraws assets from the trading account to a specified recipient."
2505
- ]
2506
- },
2507
- {
2508
- "name": "doc-comment",
2509
- "arguments": [
2510
- " Only the account owner can withdraw funds."
2511
- ]
2512
- },
2513
- {
2514
- "name": "doc-comment",
2515
- "arguments": [
2516
- ""
2517
- ]
2518
- },
2519
- {
2520
- "name": "doc-comment",
2521
- "arguments": [
2522
- " # Arguments"
2523
- ]
2524
- },
2525
- {
2526
- "name": "doc-comment",
3148
+ "name": "storage",
2527
3149
  "arguments": [
2528
- ""
3150
+ "read",
3151
+ "write"
2529
3152
  ]
2530
- },
3153
+ }
3154
+ ]
3155
+ },
3156
+ {
3157
+ "name": "par_call_contracts",
3158
+ "inputs": [
2531
3159
  {
2532
- "name": "doc-comment",
2533
- "arguments": [
2534
- " * `to` - The recipient Identity for the withdrawal"
2535
- ]
3160
+ "name": "signature",
3161
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
2536
3162
  },
2537
3163
  {
2538
- "name": "doc-comment",
2539
- "arguments": [
2540
- " * `amount` - The amount to withdraw"
2541
- ]
2542
- },
3164
+ "name": "calls",
3165
+ "concreteTypeId": "9d4abea3c3ded72594ba630071d98b649db8348d3ab2970852317e69b5bece52"
3166
+ }
3167
+ ],
3168
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3169
+ "attributes": [
2543
3170
  {
2544
- "name": "doc-comment",
3171
+ "name": "storage",
2545
3172
  "arguments": [
2546
- " * `asset_id` - The asset to withdraw"
3173
+ "read",
3174
+ "write"
2547
3175
  ]
2548
- },
3176
+ }
3177
+ ]
3178
+ },
3179
+ {
3180
+ "name": "par_revoke_session",
3181
+ "inputs": [
2549
3182
  {
2550
- "name": "doc-comment",
2551
- "arguments": [
2552
- ""
2553
- ]
3183
+ "name": "signature",
3184
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
2554
3185
  },
2555
3186
  {
2556
- "name": "doc-comment",
2557
- "arguments": [
2558
- " # Storage Access"
2559
- ]
2560
- },
3187
+ "name": "revoke",
3188
+ "concreteTypeId": "cc16af760fc50309e1c4fae03a03d4177844d68a5db161bc63fe02eb9c29ae11"
3189
+ }
3190
+ ],
3191
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3192
+ "attributes": [
2561
3193
  {
2562
- "name": "doc-comment",
3194
+ "name": "storage",
2563
3195
  "arguments": [
2564
- ""
3196
+ "read",
3197
+ "write"
2565
3198
  ]
2566
- },
3199
+ }
3200
+ ]
3201
+ },
3202
+ {
3203
+ "name": "par_session_call_contract",
3204
+ "inputs": [
2567
3205
  {
2568
- "name": "doc-comment",
2569
- "arguments": [
2570
- " - Reads: Verifies caller is owner and checks balance"
2571
- ]
3206
+ "name": "signature",
3207
+ "concreteTypeId": "2a32867dec49ed8ddf6b7d2ed19d53c626d3f593369b5dd82a317d7b300e1c39"
2572
3208
  },
2573
3209
  {
2574
- "name": "doc-comment",
2575
- "arguments": [
2576
- " - Writes: Updates the balance after withdrawal"
2577
- ]
3210
+ "name": "nonce",
3211
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
2578
3212
  },
2579
3213
  {
2580
- "name": "doc-comment",
2581
- "arguments": [
2582
- ""
2583
- ]
2584
- },
3214
+ "name": "call",
3215
+ "concreteTypeId": "ccfcfd3d492162c7de9abda3c1a8f716eca824532d7168f183337206eb20d5c2"
3216
+ }
3217
+ ],
3218
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3219
+ "attributes": [
2585
3220
  {
2586
- "name": "doc-comment",
3221
+ "name": "storage",
2587
3222
  "arguments": [
2588
- " # Events"
3223
+ "read",
3224
+ "write"
2589
3225
  ]
2590
- },
3226
+ }
3227
+ ]
3228
+ },
3229
+ {
3230
+ "name": "par_session_call_contracts",
3231
+ "inputs": [
2591
3232
  {
2592
- "name": "doc-comment",
2593
- "arguments": [
2594
- ""
2595
- ]
3233
+ "name": "signature",
3234
+ "concreteTypeId": "2a32867dec49ed8ddf6b7d2ed19d53c626d3f593369b5dd82a317d7b300e1c39"
2596
3235
  },
2597
3236
  {
2598
- "name": "doc-comment",
2599
- "arguments": [
2600
- " - Emits `WithdrawEvent` with withdrawal details"
2601
- ]
3237
+ "name": "nonce",
3238
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
2602
3239
  },
2603
3240
  {
2604
- "name": "doc-comment",
2605
- "arguments": [
2606
- ""
2607
- ]
2608
- },
3241
+ "name": "calls",
3242
+ "concreteTypeId": "9494a67b2e86c59004dd35f25303c29392636c07d3a3cee0d6c768f89e40e821"
3243
+ }
3244
+ ],
3245
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3246
+ "attributes": [
2609
3247
  {
2610
- "name": "doc-comment",
3248
+ "name": "storage",
2611
3249
  "arguments": [
2612
- " # Reverts"
3250
+ "read",
3251
+ "write"
2613
3252
  ]
2614
- },
3253
+ }
3254
+ ]
3255
+ },
3256
+ {
3257
+ "name": "par_set_session",
3258
+ "inputs": [
2615
3259
  {
2616
- "name": "doc-comment",
2617
- "arguments": [
2618
- ""
2619
- ]
3260
+ "name": "signature",
3261
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
2620
3262
  },
2621
3263
  {
2622
- "name": "doc-comment",
2623
- "arguments": [
2624
- " - If caller is not the account owner"
2625
- ]
2626
- },
3264
+ "name": "session",
3265
+ "concreteTypeId": "621624a91c02fc7fb3cc397282d788d786ffb08c334878ff7923643395c535d1"
3266
+ }
3267
+ ],
3268
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3269
+ "attributes": [
2627
3270
  {
2628
- "name": "doc-comment",
3271
+ "name": "storage",
2629
3272
  "arguments": [
2630
- " - If insufficient balance"
3273
+ "read",
3274
+ "write"
2631
3275
  ]
2632
- },
3276
+ }
3277
+ ]
3278
+ },
3279
+ {
3280
+ "name": "par_withdraw",
3281
+ "inputs": [
2633
3282
  {
2634
- "name": "doc-comment",
2635
- "arguments": [
2636
- " - If amount is zero"
2637
- ]
3283
+ "name": "signature",
3284
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
2638
3285
  },
2639
3286
  {
2640
- "name": "doc-comment",
2641
- "arguments": [
2642
- " - If transfer fails"
2643
- ]
2644
- },
3287
+ "name": "args",
3288
+ "concreteTypeId": "61302fed749866a6cee323f72603e30dc6a595e8f650d1cacb78d9945c5bc5eb"
3289
+ }
3290
+ ],
3291
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3292
+ "attributes": [
2645
3293
  {
2646
3294
  "name": "storage",
2647
3295
  "arguments": [
@@ -2652,18 +3300,13 @@ const abi = {
2652
3300
  ]
2653
3301
  },
2654
3302
  {
2655
- "name": "call_contract_arg_type_hash",
2656
- "inputs": [
2657
- {
2658
- "name": "encoding",
2659
- "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
2660
- }
2661
- ],
2662
- "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3303
+ "name": "implementation_version",
3304
+ "inputs": [],
3305
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
2663
3306
  "attributes": null
2664
3307
  },
2665
3308
  {
2666
- "name": "call_contract_args_type_hash",
3309
+ "name": "par_call_contract_arg_type_hash",
2667
3310
  "inputs": [
2668
3311
  {
2669
3312
  "name": "encoding",
@@ -2674,7 +3317,7 @@ const abi = {
2674
3317
  "attributes": null
2675
3318
  },
2676
3319
  {
2677
- "name": "call_params_type_hash",
3320
+ "name": "par_call_contract_args_type_hash",
2678
3321
  "inputs": [
2679
3322
  {
2680
3323
  "name": "encoding",
@@ -2685,18 +3328,7 @@ const abi = {
2685
3328
  "attributes": null
2686
3329
  },
2687
3330
  {
2688
- "name": "domain_separator",
2689
- "inputs": [
2690
- {
2691
- "name": "encoding",
2692
- "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
2693
- }
2694
- ],
2695
- "output": "5f05ed49298866d467640c48af64b5e978f95a74358b7050b09adfa77ea558b2",
2696
- "attributes": null
2697
- },
2698
- {
2699
- "name": "domain_separator_hash",
3331
+ "name": "par_call_params_type_hash",
2700
3332
  "inputs": [
2701
3333
  {
2702
3334
  "name": "encoding",
@@ -2707,7 +3339,7 @@ const abi = {
2707
3339
  "attributes": null
2708
3340
  },
2709
3341
  {
2710
- "name": "multi_call_contract_args_type_hash",
3342
+ "name": "par_multi_call_contract_args_type_hash",
2711
3343
  "inputs": [
2712
3344
  {
2713
3345
  "name": "encoding",
@@ -2718,7 +3350,7 @@ const abi = {
2718
3350
  "attributes": null
2719
3351
  },
2720
3352
  {
2721
- "name": "revoke_args_type_hash",
3353
+ "name": "par_revoke_args_type_hash",
2722
3354
  "inputs": [
2723
3355
  {
2724
3356
  "name": "encoding",
@@ -2729,7 +3361,7 @@ const abi = {
2729
3361
  "attributes": null
2730
3362
  },
2731
3363
  {
2732
- "name": "session_args_type_hash",
3364
+ "name": "par_session_args_type_hash",
2733
3365
  "inputs": [
2734
3366
  {
2735
3367
  "name": "encoding",
@@ -2740,7 +3372,7 @@ const abi = {
2740
3372
  "attributes": null
2741
3373
  },
2742
3374
  {
2743
- "name": "withdraw_args_type_hash",
3375
+ "name": "par_withdraw_args_type_hash",
2744
3376
  "inputs": [
2745
3377
  {
2746
3378
  "name": "encoding",
@@ -2765,44 +3397,60 @@ const abi = {
2765
3397
  "concreteTypeId": "0e9654327e3d67d706825c5e4e2df18533389b6566d8c1c298c7bd5b5e0c6da5"
2766
3398
  },
2767
3399
  {
2768
- "logId": "8043135260348901120",
2769
- "concreteTypeId": "6f9ef4e7a983e700685ab472ed2e625822ad32b8f04de92adc81ed60911e5e77"
3400
+ "logId": "14973537172759933369",
3401
+ "concreteTypeId": "cfccb0b9b57671b92f0435d1d261690876e4ef2d8be63c837284032734825b04"
3402
+ },
3403
+ {
3404
+ "logId": "2849852257800061367",
3405
+ "concreteTypeId": "278cb587808481b72a555be60b7a1b670422d1a886b431eed10a2d0c12eaaaed"
2770
3406
  },
2771
3407
  {
2772
- "logId": "2838887922734823881",
2773
- "concreteTypeId": "2765c1864fc179c9ee1938cc4a28acedc0b1c76f0a63434b33149f432eb4e8c3"
3408
+ "logId": "787528562801511233",
3409
+ "concreteTypeId": "0aeddd0e2c420b4162249ce8bf6408c224e31586679b7278d6331df6215e28cf"
2774
3410
  },
2775
3411
  {
2776
- "logId": "17909535172322737929",
2777
- "concreteTypeId": "f88b7359b6a93f09790d042f771eb46a798919cde0d85a95d291dae15d746312"
3412
+ "logId": "2898554141114458595",
3413
+ "concreteTypeId": "2839bba2575d61e3c6cbd733c70c82e630da3bcae8c0f84e0f370c9219c57a18"
2778
3414
  },
2779
3415
  {
2780
- "logId": "11035215306127844569",
2781
- "concreteTypeId": "9924f5da95b424d9efb5403e33f96557a6fa8e766014c055159e9c3bd457ca83"
3416
+ "logId": "14629767096259480324",
3417
+ "concreteTypeId": "cb075fa9873e8b04342183de76fcad2a2bda74cdca41cc963d15a93caf2908ef"
2782
3418
  },
2783
3419
  {
2784
3420
  "logId": "14509209538366790003",
2785
3421
  "concreteTypeId": "c95b1133ba0fd973819faa015c9a3bf27edbbef753c977f859ba593b89ae22e5"
2786
3422
  },
2787
3423
  {
2788
- "logId": "821289540733930261",
2789
- "concreteTypeId": "0b65ce7c65308b155a42d67dba9a8f5ec826782ec477a1970fe592016e92d527"
3424
+ "logId": "12990477561824293476",
3425
+ "concreteTypeId": "b44772841738326423276d94a0aefeb955a2bb5ee76b862e1442870a4a4dc33f"
3426
+ },
3427
+ {
3428
+ "logId": "4520890408852222222",
3429
+ "concreteTypeId": "3ebd6ddfc81b710ec426d233001163a06ac16109348c448a7d9f534bf51a9bfc"
3430
+ },
3431
+ {
3432
+ "logId": "18416905753736754405",
3433
+ "concreteTypeId": "ff95fe34c153b4e55be9ae1db914dd147a670f8d127d4ddcd4cde2b933a15132"
3434
+ },
3435
+ {
3436
+ "logId": "11906549250004858323",
3437
+ "concreteTypeId": "a53c8f75933bb5d34aa2b4394e6a594f581587ac992ee1f04dd61459d9805f02"
2790
3438
  },
2791
3439
  {
2792
- "logId": "14888260448086063780",
2793
- "concreteTypeId": "ce9db9ff03aafaa4ef9ebd0dac288345a961aff0262337411b6ef4db9df07039"
3440
+ "logId": "10033925620227397510",
3441
+ "concreteTypeId": "8b3faa3088585786667c82ce2418fc7566e3f47890914dbcc8def3fc5bad644f"
2794
3442
  },
2795
3443
  {
2796
- "logId": "11023126350627756633",
2797
- "concreteTypeId": "98fa03034b6a5a596d6121040d525eabb78d224d2411b6d5d0151727499bbd09"
3444
+ "logId": "13293273021060208173",
3445
+ "concreteTypeId": "b87b3161c293d62d0bbf4cecef47b892cd3cf7d237ee3a24e8848f380ccc981a"
2798
3446
  },
2799
3447
  {
2800
- "logId": "2735857006735158246",
2801
- "concreteTypeId": "25f7b773d2b66be695d008d06f344b78146367854413f2041eaf21356640e568"
3448
+ "logId": "11263651236373485766",
3449
+ "concreteTypeId": "9c50871f41ee58c6222b15bdb541a8c8bccfa62f85639dc43de20a2546df6dfb"
2802
3450
  },
2803
3451
  {
2804
- "logId": "6182132059982595715",
2805
- "concreteTypeId": "55cb585aadd106832bdedaef0a231b5587db28871e2b12e5137ec4cb66b9b829"
3452
+ "logId": "6416690992090836040",
3453
+ "concreteTypeId": "590caa75d105ec48e80fe2db68d549dcce79549a9aa7834b44c376fac0f2c3f4"
2806
3454
  }
2807
3455
  ],
2808
3456
  "messagesTypes": [],
@@ -2810,13 +3458,19 @@ const abi = {
2810
3458
  {
2811
3459
  "name": "DOMAIN",
2812
3460
  "concreteTypeId": "d41cd041a54363a3d61ab80537895c873f2315f976fc58def6e5035f6b1f0710",
2813
- "offset": 83392,
3461
+ "offset": 119544,
2814
3462
  "indirect": false
2815
3463
  },
2816
3464
  {
2817
3465
  "name": "VERSION",
2818
3466
  "concreteTypeId": "6354581bfa62ac188c9f243cc30e1bf38a150773f871be8765351ef8c5db6c1e",
2819
- "offset": 83408,
3467
+ "offset": 119592,
3468
+ "indirect": false
3469
+ },
3470
+ {
3471
+ "name": "MAX_NONCE_SESSION_ID",
3472
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e",
3473
+ "offset": 119560,
2820
3474
  "indirect": false
2821
3475
  }
2822
3476
  ],