@o2exchange/contracts 0.2.1-rc → 0.2.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.
@@ -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,133 @@ 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::ParallelCallContractArgs",
301
+ "concreteTypeId": "bcb864588e4de0cfed9235a42c859a520a296e4cb3acab92dab913134c6a068f",
302
+ "metadataTypeId": 35
303
+ },
304
+ {
305
+ "type": "struct contract_schema::trade_account_par::ParallelMultiCallContractArgs",
306
+ "concreteTypeId": "9d4abea3c3ded72594ba630071d98b649db8348d3ab2970852317e69b5bece52",
307
+ "metadataTypeId": 36
308
+ },
309
+ {
310
+ "type": "struct contract_schema::trade_account_par::ParallelNonceUsedEvent",
311
+ "concreteTypeId": "0aeddd0e2c420b4162249ce8bf6408c224e31586679b7278d6331df6215e28cf",
312
+ "metadataTypeId": 37
313
+ },
314
+ {
315
+ "type": "struct contract_schema::trade_account_par::ParallelRevokeArgs",
316
+ "concreteTypeId": "cc16af760fc50309e1c4fae03a03d4177844d68a5db161bc63fe02eb9c29ae11",
317
+ "metadataTypeId": 38
318
+ },
319
+ {
320
+ "type": "struct contract_schema::trade_account_par::ParallelSessionArgs",
321
+ "concreteTypeId": "621624a91c02fc7fb3cc397282d788d786ffb08c334878ff7923643395c535d1",
322
+ "metadataTypeId": 39
323
+ },
324
+ {
325
+ "type": "struct contract_schema::trade_account_par::ParallelWithdrawArgs",
326
+ "concreteTypeId": "61302fed749866a6cee323f72603e30dc6a595e8f650d1cacb78d9945c5bc5eb",
327
+ "metadataTypeId": 40
254
328
  },
255
329
  {
256
330
  "type": "struct std::asset_id::AssetId",
257
331
  "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
258
- "metadataTypeId": 30
332
+ "metadataTypeId": 42
259
333
  },
260
334
  {
261
335
  "type": "struct std::vec::Vec<struct contract_schema::trade_account::CallContractArg>",
262
336
  "concreteTypeId": "d5d0add462df804d0d75443e00c45391dcc2f0c5c02c439a798cc7549b528449",
263
- "metadataTypeId": 41,
337
+ "metadataTypeId": 53,
264
338
  "typeArguments": [
265
339
  "2e811073316cb5af9b64bcd703b0f5957a35112aa0f1f86782a8fd42b485c3d4"
266
340
  ]
267
341
  },
342
+ {
343
+ "type": "struct std::vec::Vec<struct contract_schema::trade_account_par::NonceSessionWindow>",
344
+ "concreteTypeId": "2a0b29d8abc10bfd4d3f4684fc07113309302cdfb843d3d57120906949758fae",
345
+ "metadataTypeId": 53,
346
+ "typeArguments": [
347
+ "67c5930a2e12f4035de71fcc3cd0496d4f4e48801fa464e77002520fddf176f4"
348
+ ]
349
+ },
350
+ {
351
+ "type": "u256",
352
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
353
+ },
268
354
  {
269
355
  "type": "u64",
270
356
  "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
@@ -277,27 +363,51 @@ const abi = {
277
363
  "components": [
278
364
  {
279
365
  "name": "__array_element",
280
- "typeId": 43
366
+ "typeId": 54
281
367
  }
282
368
  ]
283
369
  },
284
370
  {
285
- "type": "enum contract_schema::src16::Domain",
371
+ "type": "[_; 8]",
286
372
  "metadataTypeId": 1,
373
+ "components": [
374
+ {
375
+ "name": "__array_element",
376
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
377
+ }
378
+ ]
379
+ },
380
+ {
381
+ "type": "enum contract_schema::session::SessionError",
382
+ "metadataTypeId": 2,
383
+ "components": [
384
+ {
385
+ "name": "SessionInThePast",
386
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
387
+ },
388
+ {
389
+ "name": "NoApprovedContractIdsProvided",
390
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "type": "enum contract_schema::src16::Domain",
396
+ "metadataTypeId": 3,
287
397
  "components": [
288
398
  {
289
399
  "name": "SRC16Domain",
290
- "typeId": 16
400
+ "typeId": 26
291
401
  },
292
402
  {
293
403
  "name": "EIP712Domain",
294
- "typeId": 15
404
+ "typeId": 25
295
405
  }
296
406
  ]
297
407
  },
298
408
  {
299
409
  "type": "enum contract_schema::src16::Encoding",
300
- "metadataTypeId": 2,
410
+ "metadataTypeId": 4,
301
411
  "components": [
302
412
  {
303
413
  "name": "SRC16",
@@ -310,8 +420,8 @@ const abi = {
310
420
  ]
311
421
  },
312
422
  {
313
- "type": "enum contract_schema::trade_account::CallerError",
314
- "metadataTypeId": 3,
423
+ "type": "enum contract_schema::trade_account_errors::CallerError",
424
+ "metadataTypeId": 5,
315
425
  "components": [
316
426
  {
317
427
  "name": "InvalidCaller",
@@ -320,32 +430,48 @@ const abi = {
320
430
  ]
321
431
  },
322
432
  {
323
- "type": "enum contract_schema::trade_account::NonceError",
324
- "metadataTypeId": 4,
433
+ "type": "enum contract_schema::trade_account_errors::ExtendedNonceError",
434
+ "metadataTypeId": 6,
325
435
  "components": [
326
436
  {
327
- "name": "InvalidNonce",
437
+ "name": "ReservedBitsSet",
438
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
439
+ },
440
+ {
441
+ "name": "BitmapPositionOutOfRange",
442
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
443
+ },
444
+ {
445
+ "name": "NonceSessionIdOutOfRange",
446
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
447
+ },
448
+ {
449
+ "name": "Expired",
450
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
451
+ },
452
+ {
453
+ "name": "WordPosOutOfWindow",
454
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
455
+ },
456
+ {
457
+ "name": "AlreadyUsed",
328
458
  "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
329
459
  }
330
460
  ]
331
461
  },
332
462
  {
333
- "type": "enum contract_schema::trade_account::SessionError",
334
- "metadataTypeId": 5,
463
+ "type": "enum contract_schema::trade_account_errors::NonceError",
464
+ "metadataTypeId": 7,
335
465
  "components": [
336
466
  {
337
- "name": "SessionInThePast",
338
- "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
339
- },
340
- {
341
- "name": "NoApprovedContractIdsProvided",
467
+ "name": "InvalidNonce",
342
468
  "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
343
469
  }
344
470
  ]
345
471
  },
346
472
  {
347
- "type": "enum contract_schema::trade_account::SignerError",
348
- "metadataTypeId": 6,
473
+ "type": "enum contract_schema::trade_account_errors::SignerError",
474
+ "metadataTypeId": 8,
349
475
  "components": [
350
476
  {
351
477
  "name": "InvalidSigner",
@@ -358,8 +484,8 @@ const abi = {
358
484
  ]
359
485
  },
360
486
  {
361
- "type": "enum contract_schema::trade_account::WithdrawError",
362
- "metadataTypeId": 7,
487
+ "type": "enum contract_schema::trade_account_errors::WithdrawError",
488
+ "metadataTypeId": 9,
363
489
  "components": [
364
490
  {
365
491
  "name": "AmountIsZero",
@@ -373,25 +499,25 @@ const abi = {
373
499
  },
374
500
  {
375
501
  "type": "enum std::crypto::signature::Signature",
376
- "metadataTypeId": 8,
502
+ "metadataTypeId": 10,
377
503
  "components": [
378
504
  {
379
505
  "name": "Secp256k1",
380
- "typeId": 35
506
+ "typeId": 47
381
507
  },
382
508
  {
383
509
  "name": "Secp256r1",
384
- "typeId": 36
510
+ "typeId": 48
385
511
  },
386
512
  {
387
513
  "name": "Ed25519",
388
- "typeId": 34
514
+ "typeId": 46
389
515
  }
390
516
  ]
391
517
  },
392
518
  {
393
519
  "type": "enum std::crypto::signature_error::SignatureError",
394
- "metadataTypeId": 9,
520
+ "metadataTypeId": 11,
395
521
  "components": [
396
522
  {
397
523
  "name": "UnrecoverablePublicKey",
@@ -413,21 +539,21 @@ const abi = {
413
539
  },
414
540
  {
415
541
  "type": "enum std::identity::Identity",
416
- "metadataTypeId": 10,
542
+ "metadataTypeId": 12,
417
543
  "components": [
418
544
  {
419
545
  "name": "Address",
420
- "typeId": 29
546
+ "typeId": 41
421
547
  },
422
548
  {
423
549
  "name": "ContractId",
424
- "typeId": 33
550
+ "typeId": 45
425
551
  }
426
552
  ]
427
553
  },
428
554
  {
429
555
  "type": "enum std::option::Option",
430
- "metadataTypeId": 11,
556
+ "metadataTypeId": 13,
431
557
  "components": [
432
558
  {
433
559
  "name": "None",
@@ -435,24 +561,46 @@ const abi = {
435
561
  },
436
562
  {
437
563
  "name": "Some",
438
- "typeId": 12
564
+ "typeId": 16
565
+ }
566
+ ],
567
+ "typeParameters": [
568
+ 16
569
+ ]
570
+ },
571
+ {
572
+ "type": "enum std::result::Result",
573
+ "metadataTypeId": 14,
574
+ "components": [
575
+ {
576
+ "name": "Ok",
577
+ "typeId": 16
578
+ },
579
+ {
580
+ "name": "Err",
581
+ "typeId": 15
439
582
  }
440
583
  ],
441
584
  "typeParameters": [
442
- 12
585
+ 16,
586
+ 15
443
587
  ]
444
588
  },
589
+ {
590
+ "type": "generic E",
591
+ "metadataTypeId": 15
592
+ },
445
593
  {
446
594
  "type": "generic T",
447
- "metadataTypeId": 12
595
+ "metadataTypeId": 16
448
596
  },
449
597
  {
450
598
  "type": "raw untyped ptr",
451
- "metadataTypeId": 13
599
+ "metadataTypeId": 17
452
600
  },
453
601
  {
454
602
  "type": "struct contract_libs::signature::IncrementNonceEvent",
455
- "metadataTypeId": 14,
603
+ "metadataTypeId": 18,
456
604
  "components": [
457
605
  {
458
606
  "name": "nonce",
@@ -461,108 +609,214 @@ const abi = {
461
609
  ]
462
610
  },
463
611
  {
464
- "type": "struct contract_schema::src16::EIP712Domain",
465
- "metadataTypeId": 15,
612
+ "type": "struct contract_schema::session::ExtendedNonceSessionContractCallEvent",
613
+ "metadataTypeId": 19,
466
614
  "components": [
467
615
  {
468
- "name": "name",
469
- "typeId": 11,
470
- "typeArguments": [
471
- {
472
- "name": "",
473
- "typeId": 38
474
- }
475
- ]
616
+ "name": "session_id",
617
+ "typeId": 12
476
618
  },
477
619
  {
478
- "name": "version",
479
- "typeId": 11,
480
- "typeArguments": [
481
- {
482
- "name": "",
483
- "typeId": 38
484
- }
485
- ]
620
+ "name": "called_contract",
621
+ "typeId": 45
486
622
  },
487
623
  {
488
- "name": "chain_id",
489
- "typeId": 11,
490
- "typeArguments": [
491
- {
492
- "name": "",
493
- "typeId": 42
494
- }
495
- ]
624
+ "name": "nonce",
625
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
626
+ }
627
+ ]
628
+ },
629
+ {
630
+ "type": "struct contract_schema::session::FailedToValidateEvent",
631
+ "metadataTypeId": 20,
632
+ "components": [
633
+ {
634
+ "name": "account",
635
+ "typeId": 12
496
636
  },
497
637
  {
498
- "name": "verifying_contract",
499
- "typeId": 11,
500
- "typeArguments": [
501
- {
502
- "name": "",
503
- "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
504
- }
505
- ]
638
+ "name": "reason",
639
+ "typeId": 50
506
640
  },
507
641
  {
508
- "name": "salt",
509
- "typeId": 11,
510
- "typeArguments": [
511
- {
512
- "name": "",
513
- "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
514
- }
515
- ]
642
+ "name": "timestamp",
643
+ "typeId": 51
516
644
  }
517
645
  ]
518
646
  },
519
647
  {
520
- "type": "struct contract_schema::src16::SRC16Domain",
521
- "metadataTypeId": 16,
648
+ "type": "struct contract_schema::session::Session",
649
+ "metadataTypeId": 21,
522
650
  "components": [
523
651
  {
524
- "name": "name",
525
- "typeId": 11,
526
- "typeArguments": [
527
- {
528
- "name": "",
529
- "typeId": 38
530
- }
531
- ]
652
+ "name": "session_id",
653
+ "typeId": 12
532
654
  },
533
655
  {
534
- "name": "version",
535
- "typeId": 11,
536
- "typeArguments": [
537
- {
538
- "name": "",
539
- "typeId": 38
540
- }
541
- ]
656
+ "name": "expiry",
657
+ "typeId": 51
542
658
  },
543
659
  {
544
- "name": "chain_id",
545
- "typeId": 11,
660
+ "name": "contract_ids",
661
+ "typeId": 53,
546
662
  "typeArguments": [
547
663
  {
548
664
  "name": "",
549
- "typeId": 42
665
+ "typeId": 45
550
666
  }
551
667
  ]
668
+ }
669
+ ]
670
+ },
671
+ {
672
+ "type": "struct contract_schema::session::SessionContractCallEvent",
673
+ "metadataTypeId": 22,
674
+ "components": [
675
+ {
676
+ "name": "session_id",
677
+ "typeId": 12
552
678
  },
553
679
  {
554
- "name": "verifying_contract",
555
- "typeId": 11,
556
- "typeArguments": [
680
+ "name": "called_contract",
681
+ "typeId": 45
682
+ },
683
+ {
684
+ "name": "nonce",
685
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
686
+ }
687
+ ]
688
+ },
689
+ {
690
+ "type": "struct contract_schema::session::SessionCreatedEvent",
691
+ "metadataTypeId": 23,
692
+ "components": [
693
+ {
694
+ "name": "account",
695
+ "typeId": 12
696
+ },
697
+ {
698
+ "name": "session",
699
+ "typeId": 21
700
+ }
701
+ ]
702
+ },
703
+ {
704
+ "type": "struct contract_schema::session::SessionRevokedEvent",
705
+ "metadataTypeId": 24,
706
+ "components": [
707
+ {
708
+ "name": "account",
709
+ "typeId": 12
710
+ },
711
+ {
712
+ "name": "session_id",
713
+ "typeId": 12
714
+ }
715
+ ]
716
+ },
717
+ {
718
+ "type": "struct contract_schema::src16::EIP712Domain",
719
+ "metadataTypeId": 25,
720
+ "components": [
721
+ {
722
+ "name": "name",
723
+ "typeId": 13,
724
+ "typeArguments": [
725
+ {
726
+ "name": "",
727
+ "typeId": 50
728
+ }
729
+ ]
730
+ },
731
+ {
732
+ "name": "version",
733
+ "typeId": 13,
734
+ "typeArguments": [
735
+ {
736
+ "name": "",
737
+ "typeId": 50
738
+ }
739
+ ]
740
+ },
741
+ {
742
+ "name": "chain_id",
743
+ "typeId": 13,
744
+ "typeArguments": [
745
+ {
746
+ "name": "",
747
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
748
+ }
749
+ ]
750
+ },
751
+ {
752
+ "name": "verifying_contract",
753
+ "typeId": 13,
754
+ "typeArguments": [
557
755
  {
558
756
  "name": "",
559
- "typeId": 33
757
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
758
+ }
759
+ ]
760
+ },
761
+ {
762
+ "name": "salt",
763
+ "typeId": 13,
764
+ "typeArguments": [
765
+ {
766
+ "name": "",
767
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
768
+ }
769
+ ]
770
+ }
771
+ ]
772
+ },
773
+ {
774
+ "type": "struct contract_schema::src16::SRC16Domain",
775
+ "metadataTypeId": 26,
776
+ "components": [
777
+ {
778
+ "name": "name",
779
+ "typeId": 13,
780
+ "typeArguments": [
781
+ {
782
+ "name": "",
783
+ "typeId": 50
784
+ }
785
+ ]
786
+ },
787
+ {
788
+ "name": "version",
789
+ "typeId": 13,
790
+ "typeArguments": [
791
+ {
792
+ "name": "",
793
+ "typeId": 50
794
+ }
795
+ ]
796
+ },
797
+ {
798
+ "name": "chain_id",
799
+ "typeId": 13,
800
+ "typeArguments": [
801
+ {
802
+ "name": "",
803
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
804
+ }
805
+ ]
806
+ },
807
+ {
808
+ "name": "verifying_contract",
809
+ "typeId": 13,
810
+ "typeArguments": [
811
+ {
812
+ "name": "",
813
+ "typeId": 45
560
814
  }
561
815
  ]
562
816
  },
563
817
  {
564
818
  "name": "salt",
565
- "typeId": 11,
819
+ "typeId": 13,
566
820
  "typeArguments": [
567
821
  {
568
822
  "name": "",
@@ -574,27 +828,27 @@ const abi = {
574
828
  },
575
829
  {
576
830
  "type": "struct contract_schema::trade_account::CallContractArg",
577
- "metadataTypeId": 17,
831
+ "metadataTypeId": 27,
578
832
  "components": [
579
833
  {
580
834
  "name": "contract_id",
581
- "typeId": 33
835
+ "typeId": 45
582
836
  },
583
837
  {
584
838
  "name": "function_selector",
585
- "typeId": 31
839
+ "typeId": 43
586
840
  },
587
841
  {
588
842
  "name": "call_params",
589
- "typeId": 37
843
+ "typeId": 49
590
844
  },
591
845
  {
592
846
  "name": "call_data",
593
- "typeId": 11,
847
+ "typeId": 13,
594
848
  "typeArguments": [
595
849
  {
596
850
  "name": "",
597
- "typeId": 31
851
+ "typeId": 43
598
852
  }
599
853
  ]
600
854
  }
@@ -602,7 +856,7 @@ const abi = {
602
856
  },
603
857
  {
604
858
  "type": "struct contract_schema::trade_account::CallContractArgs",
605
- "metadataTypeId": 18,
859
+ "metadataTypeId": 28,
606
860
  "components": [
607
861
  {
608
862
  "name": "nonce",
@@ -610,31 +864,13 @@ const abi = {
610
864
  },
611
865
  {
612
866
  "name": "call_contract_args",
613
- "typeId": 17
614
- }
615
- ]
616
- },
617
- {
618
- "type": "struct contract_schema::trade_account::FailedToValidateEvent",
619
- "metadataTypeId": 19,
620
- "components": [
621
- {
622
- "name": "account",
623
- "typeId": 10
624
- },
625
- {
626
- "name": "reason",
627
- "typeId": 38
628
- },
629
- {
630
- "name": "timestamp",
631
- "typeId": 39
867
+ "typeId": 27
632
868
  }
633
869
  ]
634
870
  },
635
871
  {
636
872
  "type": "struct contract_schema::trade_account::MultiCallContractArgs",
637
- "metadataTypeId": 20,
873
+ "metadataTypeId": 29,
638
874
  "components": [
639
875
  {
640
876
  "name": "nonce",
@@ -642,11 +878,11 @@ const abi = {
642
878
  },
643
879
  {
644
880
  "name": "call_contract_args",
645
- "typeId": 41,
881
+ "typeId": 53,
646
882
  "typeArguments": [
647
883
  {
648
884
  "name": "",
649
- "typeId": 17
885
+ "typeId": 27
650
886
  }
651
887
  ]
652
888
  }
@@ -654,7 +890,7 @@ const abi = {
654
890
  },
655
891
  {
656
892
  "type": "struct contract_schema::trade_account::RevokeArgs",
657
- "metadataTypeId": 21,
893
+ "metadataTypeId": 30,
658
894
  "components": [
659
895
  {
660
896
  "name": "nonce",
@@ -663,136 +899,188 @@ const abi = {
663
899
  ]
664
900
  },
665
901
  {
666
- "type": "struct contract_schema::trade_account::Session",
667
- "metadataTypeId": 22,
902
+ "type": "struct contract_schema::trade_account::SessionArgs",
903
+ "metadataTypeId": 31,
668
904
  "components": [
905
+ {
906
+ "name": "nonce",
907
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
908
+ },
669
909
  {
670
910
  "name": "session_id",
671
- "typeId": 10
911
+ "typeId": 12
672
912
  },
673
913
  {
674
914
  "name": "expiry",
675
- "typeId": 39
915
+ "typeId": 51
676
916
  },
677
917
  {
678
918
  "name": "contract_ids",
679
- "typeId": 41,
919
+ "typeId": 53,
680
920
  "typeArguments": [
681
921
  {
682
922
  "name": "",
683
- "typeId": 33
923
+ "typeId": 45
684
924
  }
685
925
  ]
686
926
  }
687
927
  ]
688
928
  },
689
929
  {
690
- "type": "struct contract_schema::trade_account::SessionArgs",
691
- "metadataTypeId": 23,
930
+ "type": "struct contract_schema::trade_account::WithdrawArgs",
931
+ "metadataTypeId": 32,
692
932
  "components": [
693
933
  {
694
934
  "name": "nonce",
695
935
  "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
696
936
  },
697
937
  {
698
- "name": "session_id",
699
- "typeId": 10
938
+ "name": "to",
939
+ "typeId": 12
700
940
  },
701
941
  {
702
- "name": "expiry",
703
- "typeId": 39
942
+ "name": "amount",
943
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
704
944
  },
705
945
  {
706
- "name": "contract_ids",
707
- "typeId": 41,
708
- "typeArguments": [
709
- {
710
- "name": "",
711
- "typeId": 33
712
- }
713
- ]
946
+ "name": "asset_id",
947
+ "typeId": 42
714
948
  }
715
949
  ]
716
950
  },
717
951
  {
718
- "type": "struct contract_schema::trade_account::SessionContractCallEvent",
719
- "metadataTypeId": 24,
952
+ "type": "struct contract_schema::trade_account::WithdrawEvent",
953
+ "metadataTypeId": 33,
720
954
  "components": [
721
955
  {
722
- "name": "session_id",
723
- "typeId": 10
956
+ "name": "account",
957
+ "typeId": 12
724
958
  },
725
959
  {
726
- "name": "called_contract",
727
- "typeId": 33
960
+ "name": "to",
961
+ "typeId": 12
728
962
  },
729
963
  {
730
- "name": "nonce",
964
+ "name": "amount",
731
965
  "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
966
+ },
967
+ {
968
+ "name": "asset_id",
969
+ "typeId": 42
970
+ },
971
+ {
972
+ "name": "timestamp",
973
+ "typeId": 51
732
974
  }
733
975
  ]
734
976
  },
735
977
  {
736
- "type": "struct contract_schema::trade_account::SessionCreatedEvent",
737
- "metadataTypeId": 25,
978
+ "type": "struct contract_schema::trade_account_par::NonceSessionWindow",
979
+ "metadataTypeId": 34,
738
980
  "components": [
739
981
  {
740
- "name": "account",
741
- "typeId": 10
982
+ "name": "base",
983
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
742
984
  },
743
985
  {
744
- "name": "session",
745
- "typeId": 22
986
+ "name": "slots",
987
+ "typeId": 1
746
988
  }
747
989
  ]
748
990
  },
749
991
  {
750
- "type": "struct contract_schema::trade_account::SessionRevokedEvent",
751
- "metadataTypeId": 26,
992
+ "type": "struct contract_schema::trade_account_par::ParallelCallContractArgs",
993
+ "metadataTypeId": 35,
752
994
  "components": [
753
995
  {
754
- "name": "account",
755
- "typeId": 10
996
+ "name": "nonce",
997
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
756
998
  },
757
999
  {
758
- "name": "session_id",
759
- "typeId": 10
1000
+ "name": "call_contract_args",
1001
+ "typeId": 27
760
1002
  }
761
1003
  ]
762
1004
  },
763
1005
  {
764
- "type": "struct contract_schema::trade_account::WithdrawArgs",
765
- "metadataTypeId": 27,
1006
+ "type": "struct contract_schema::trade_account_par::ParallelMultiCallContractArgs",
1007
+ "metadataTypeId": 36,
766
1008
  "components": [
767
1009
  {
768
1010
  "name": "nonce",
769
- "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1011
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
770
1012
  },
771
1013
  {
772
- "name": "to",
773
- "typeId": 10
1014
+ "name": "call_contract_args",
1015
+ "typeId": 53,
1016
+ "typeArguments": [
1017
+ {
1018
+ "name": "",
1019
+ "typeId": 27
1020
+ }
1021
+ ]
1022
+ }
1023
+ ]
1024
+ },
1025
+ {
1026
+ "type": "struct contract_schema::trade_account_par::ParallelNonceUsedEvent",
1027
+ "metadataTypeId": 37,
1028
+ "components": [
1029
+ {
1030
+ "name": "nonce",
1031
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
1032
+ }
1033
+ ]
1034
+ },
1035
+ {
1036
+ "type": "struct contract_schema::trade_account_par::ParallelRevokeArgs",
1037
+ "metadataTypeId": 38,
1038
+ "components": [
1039
+ {
1040
+ "name": "nonce",
1041
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
1042
+ }
1043
+ ]
1044
+ },
1045
+ {
1046
+ "type": "struct contract_schema::trade_account_par::ParallelSessionArgs",
1047
+ "metadataTypeId": 39,
1048
+ "components": [
1049
+ {
1050
+ "name": "nonce",
1051
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
774
1052
  },
775
1053
  {
776
- "name": "amount",
777
- "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1054
+ "name": "session_id",
1055
+ "typeId": 12
778
1056
  },
779
1057
  {
780
- "name": "asset_id",
781
- "typeId": 30
1058
+ "name": "expiry",
1059
+ "typeId": 51
1060
+ },
1061
+ {
1062
+ "name": "contract_ids",
1063
+ "typeId": 53,
1064
+ "typeArguments": [
1065
+ {
1066
+ "name": "",
1067
+ "typeId": 45
1068
+ }
1069
+ ]
782
1070
  }
783
1071
  ]
784
1072
  },
785
1073
  {
786
- "type": "struct contract_schema::trade_account::WithdrawEvent",
787
- "metadataTypeId": 28,
1074
+ "type": "struct contract_schema::trade_account_par::ParallelWithdrawArgs",
1075
+ "metadataTypeId": 40,
788
1076
  "components": [
789
1077
  {
790
- "name": "account",
791
- "typeId": 10
1078
+ "name": "nonce",
1079
+ "typeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
792
1080
  },
793
1081
  {
794
1082
  "name": "to",
795
- "typeId": 10
1083
+ "typeId": 12
796
1084
  },
797
1085
  {
798
1086
  "name": "amount",
@@ -800,17 +1088,13 @@ const abi = {
800
1088
  },
801
1089
  {
802
1090
  "name": "asset_id",
803
- "typeId": 30
804
- },
805
- {
806
- "name": "timestamp",
807
- "typeId": 39
1091
+ "typeId": 42
808
1092
  }
809
1093
  ]
810
1094
  },
811
1095
  {
812
1096
  "type": "struct std::address::Address",
813
- "metadataTypeId": 29,
1097
+ "metadataTypeId": 41,
814
1098
  "components": [
815
1099
  {
816
1100
  "name": "bits",
@@ -820,7 +1104,7 @@ const abi = {
820
1104
  },
821
1105
  {
822
1106
  "type": "struct std::asset_id::AssetId",
823
- "metadataTypeId": 30,
1107
+ "metadataTypeId": 42,
824
1108
  "components": [
825
1109
  {
826
1110
  "name": "bits",
@@ -830,11 +1114,11 @@ const abi = {
830
1114
  },
831
1115
  {
832
1116
  "type": "struct std::bytes::Bytes",
833
- "metadataTypeId": 31,
1117
+ "metadataTypeId": 43,
834
1118
  "components": [
835
1119
  {
836
1120
  "name": "buf",
837
- "typeId": 32
1121
+ "typeId": 44
838
1122
  },
839
1123
  {
840
1124
  "name": "len",
@@ -844,11 +1128,11 @@ const abi = {
844
1128
  },
845
1129
  {
846
1130
  "type": "struct std::bytes::RawBytes",
847
- "metadataTypeId": 32,
1131
+ "metadataTypeId": 44,
848
1132
  "components": [
849
1133
  {
850
1134
  "name": "ptr",
851
- "typeId": 13
1135
+ "typeId": 17
852
1136
  },
853
1137
  {
854
1138
  "name": "cap",
@@ -858,7 +1142,7 @@ const abi = {
858
1142
  },
859
1143
  {
860
1144
  "type": "struct std::contract_id::ContractId",
861
- "metadataTypeId": 33,
1145
+ "metadataTypeId": 45,
862
1146
  "components": [
863
1147
  {
864
1148
  "name": "bits",
@@ -868,7 +1152,7 @@ const abi = {
868
1152
  },
869
1153
  {
870
1154
  "type": "struct std::crypto::ed25519::Ed25519",
871
- "metadataTypeId": 34,
1155
+ "metadataTypeId": 46,
872
1156
  "components": [
873
1157
  {
874
1158
  "name": "bits",
@@ -878,7 +1162,7 @@ const abi = {
878
1162
  },
879
1163
  {
880
1164
  "type": "struct std::crypto::secp256k1::Secp256k1",
881
- "metadataTypeId": 35,
1165
+ "metadataTypeId": 47,
882
1166
  "components": [
883
1167
  {
884
1168
  "name": "bits",
@@ -888,7 +1172,7 @@ const abi = {
888
1172
  },
889
1173
  {
890
1174
  "type": "struct std::crypto::secp256r1::Secp256r1",
891
- "metadataTypeId": 36,
1175
+ "metadataTypeId": 48,
892
1176
  "components": [
893
1177
  {
894
1178
  "name": "bits",
@@ -898,7 +1182,7 @@ const abi = {
898
1182
  },
899
1183
  {
900
1184
  "type": "struct std::low_level_call::CallParams",
901
- "metadataTypeId": 37,
1185
+ "metadataTypeId": 49,
902
1186
  "components": [
903
1187
  {
904
1188
  "name": "coins",
@@ -906,7 +1190,7 @@ const abi = {
906
1190
  },
907
1191
  {
908
1192
  "name": "asset_id",
909
- "typeId": 30
1193
+ "typeId": 42
910
1194
  },
911
1195
  {
912
1196
  "name": "gas",
@@ -916,17 +1200,17 @@ const abi = {
916
1200
  },
917
1201
  {
918
1202
  "type": "struct std::string::String",
919
- "metadataTypeId": 38,
1203
+ "metadataTypeId": 50,
920
1204
  "components": [
921
1205
  {
922
1206
  "name": "bytes",
923
- "typeId": 31
1207
+ "typeId": 43
924
1208
  }
925
1209
  ]
926
1210
  },
927
1211
  {
928
1212
  "type": "struct std::time::Time",
929
- "metadataTypeId": 39,
1213
+ "metadataTypeId": 51,
930
1214
  "components": [
931
1215
  {
932
1216
  "name": "unix",
@@ -936,11 +1220,11 @@ const abi = {
936
1220
  },
937
1221
  {
938
1222
  "type": "struct std::vec::RawVec",
939
- "metadataTypeId": 40,
1223
+ "metadataTypeId": 52,
940
1224
  "components": [
941
1225
  {
942
1226
  "name": "ptr",
943
- "typeId": 13
1227
+ "typeId": 17
944
1228
  },
945
1229
  {
946
1230
  "name": "cap",
@@ -948,20 +1232,20 @@ const abi = {
948
1232
  }
949
1233
  ],
950
1234
  "typeParameters": [
951
- 12
1235
+ 16
952
1236
  ]
953
1237
  },
954
1238
  {
955
1239
  "type": "struct std::vec::Vec",
956
- "metadataTypeId": 41,
1240
+ "metadataTypeId": 53,
957
1241
  "components": [
958
1242
  {
959
1243
  "name": "buf",
960
- "typeId": 40,
1244
+ "typeId": 52,
961
1245
  "typeArguments": [
962
1246
  {
963
1247
  "name": "",
964
- "typeId": 12
1248
+ "typeId": 16
965
1249
  }
966
1250
  ]
967
1251
  },
@@ -971,16 +1255,12 @@ const abi = {
971
1255
  }
972
1256
  ],
973
1257
  "typeParameters": [
974
- 12
1258
+ 16
975
1259
  ]
976
1260
  },
977
- {
978
- "type": "u256",
979
- "metadataTypeId": 42
980
- },
981
1261
  {
982
1262
  "type": "u8",
983
- "metadataTypeId": 43
1263
+ "metadataTypeId": 54
984
1264
  }
985
1265
  ],
986
1266
  "functions": [
@@ -1405,7 +1685,7 @@ const abi = {
1405
1685
  {
1406
1686
  "name": "get_current_session",
1407
1687
  "inputs": [],
1408
- "output": "db4bc0201be00cc6d049122ba4e5eaf2e1a8d67e87ae531c85204a496c41add4",
1688
+ "output": "8ee10917cb48b981cfce7fd1dea6bbb5cc8be7fe49d3e5d54044cd2c41a53bd7",
1409
1689
  "attributes": [
1410
1690
  {
1411
1691
  "name": "doc-comment",
@@ -2029,7 +2309,7 @@ const abi = {
2029
2309
  },
2030
2310
  {
2031
2311
  "name": "session",
2032
- "concreteTypeId": "db4bc0201be00cc6d049122ba4e5eaf2e1a8d67e87ae531c85204a496c41add4"
2312
+ "concreteTypeId": "8ee10917cb48b981cfce7fd1dea6bbb5cc8be7fe49d3e5d54044cd2c41a53bd7"
2033
2313
  }
2034
2314
  ],
2035
2315
  "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
@@ -2749,6 +3029,296 @@ const abi = {
2749
3029
  ],
2750
3030
  "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
2751
3031
  "attributes": null
3032
+ },
3033
+ {
3034
+ "name": "get_nonce_session_window",
3035
+ "inputs": [
3036
+ {
3037
+ "name": "nonce_session_id",
3038
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
3039
+ }
3040
+ ],
3041
+ "output": "67c5930a2e12f4035de71fcc3cd0496d4f4e48801fa464e77002520fddf176f4",
3042
+ "attributes": [
3043
+ {
3044
+ "name": "storage",
3045
+ "arguments": [
3046
+ "read"
3047
+ ]
3048
+ }
3049
+ ]
3050
+ },
3051
+ {
3052
+ "name": "get_nonce_session_windows",
3053
+ "inputs": [],
3054
+ "output": "2a0b29d8abc10bfd4d3f4684fc07113309302cdfb843d3d57120906949758fae",
3055
+ "attributes": [
3056
+ {
3057
+ "name": "storage",
3058
+ "arguments": [
3059
+ "read"
3060
+ ]
3061
+ }
3062
+ ]
3063
+ },
3064
+ {
3065
+ "name": "nonce_is_available",
3066
+ "inputs": [
3067
+ {
3068
+ "name": "nonce",
3069
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
3070
+ }
3071
+ ],
3072
+ "output": "edeec773f10b1c35ceeb107f134494c71c4b910a91fb4896d97407c97c6a8d26",
3073
+ "attributes": [
3074
+ {
3075
+ "name": "storage",
3076
+ "arguments": [
3077
+ "read"
3078
+ ]
3079
+ }
3080
+ ]
3081
+ },
3082
+ {
3083
+ "name": "par_call_contract",
3084
+ "inputs": [
3085
+ {
3086
+ "name": "signature",
3087
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
3088
+ },
3089
+ {
3090
+ "name": "call",
3091
+ "concreteTypeId": "bcb864588e4de0cfed9235a42c859a520a296e4cb3acab92dab913134c6a068f"
3092
+ }
3093
+ ],
3094
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3095
+ "attributes": [
3096
+ {
3097
+ "name": "storage",
3098
+ "arguments": [
3099
+ "read",
3100
+ "write"
3101
+ ]
3102
+ }
3103
+ ]
3104
+ },
3105
+ {
3106
+ "name": "par_call_contracts",
3107
+ "inputs": [
3108
+ {
3109
+ "name": "signature",
3110
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
3111
+ },
3112
+ {
3113
+ "name": "calls",
3114
+ "concreteTypeId": "9d4abea3c3ded72594ba630071d98b649db8348d3ab2970852317e69b5bece52"
3115
+ }
3116
+ ],
3117
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3118
+ "attributes": [
3119
+ {
3120
+ "name": "storage",
3121
+ "arguments": [
3122
+ "read",
3123
+ "write"
3124
+ ]
3125
+ }
3126
+ ]
3127
+ },
3128
+ {
3129
+ "name": "par_revoke_session",
3130
+ "inputs": [
3131
+ {
3132
+ "name": "signature",
3133
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
3134
+ },
3135
+ {
3136
+ "name": "revoke",
3137
+ "concreteTypeId": "cc16af760fc50309e1c4fae03a03d4177844d68a5db161bc63fe02eb9c29ae11"
3138
+ }
3139
+ ],
3140
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3141
+ "attributes": [
3142
+ {
3143
+ "name": "storage",
3144
+ "arguments": [
3145
+ "read",
3146
+ "write"
3147
+ ]
3148
+ }
3149
+ ]
3150
+ },
3151
+ {
3152
+ "name": "par_session_call_contract",
3153
+ "inputs": [
3154
+ {
3155
+ "name": "signature",
3156
+ "concreteTypeId": "2a32867dec49ed8ddf6b7d2ed19d53c626d3f593369b5dd82a317d7b300e1c39"
3157
+ },
3158
+ {
3159
+ "name": "nonce",
3160
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
3161
+ },
3162
+ {
3163
+ "name": "call",
3164
+ "concreteTypeId": "2e811073316cb5af9b64bcd703b0f5957a35112aa0f1f86782a8fd42b485c3d4"
3165
+ }
3166
+ ],
3167
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3168
+ "attributes": [
3169
+ {
3170
+ "name": "storage",
3171
+ "arguments": [
3172
+ "read",
3173
+ "write"
3174
+ ]
3175
+ }
3176
+ ]
3177
+ },
3178
+ {
3179
+ "name": "par_session_call_contracts",
3180
+ "inputs": [
3181
+ {
3182
+ "name": "signature",
3183
+ "concreteTypeId": "2a32867dec49ed8ddf6b7d2ed19d53c626d3f593369b5dd82a317d7b300e1c39"
3184
+ },
3185
+ {
3186
+ "name": "nonce",
3187
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
3188
+ },
3189
+ {
3190
+ "name": "calls",
3191
+ "concreteTypeId": "d5d0add462df804d0d75443e00c45391dcc2f0c5c02c439a798cc7549b528449"
3192
+ }
3193
+ ],
3194
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3195
+ "attributes": [
3196
+ {
3197
+ "name": "storage",
3198
+ "arguments": [
3199
+ "read",
3200
+ "write"
3201
+ ]
3202
+ }
3203
+ ]
3204
+ },
3205
+ {
3206
+ "name": "par_set_session",
3207
+ "inputs": [
3208
+ {
3209
+ "name": "signature",
3210
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
3211
+ },
3212
+ {
3213
+ "name": "session",
3214
+ "concreteTypeId": "621624a91c02fc7fb3cc397282d788d786ffb08c334878ff7923643395c535d1"
3215
+ }
3216
+ ],
3217
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3218
+ "attributes": [
3219
+ {
3220
+ "name": "storage",
3221
+ "arguments": [
3222
+ "read",
3223
+ "write"
3224
+ ]
3225
+ }
3226
+ ]
3227
+ },
3228
+ {
3229
+ "name": "par_withdraw",
3230
+ "inputs": [
3231
+ {
3232
+ "name": "signature",
3233
+ "concreteTypeId": "8c8a9aeea8dc1a1ac1f1fe31c77823653152feda3fa93cd494eedbf84395ca40"
3234
+ },
3235
+ {
3236
+ "name": "args",
3237
+ "concreteTypeId": "61302fed749866a6cee323f72603e30dc6a595e8f650d1cacb78d9945c5bc5eb"
3238
+ }
3239
+ ],
3240
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3241
+ "attributes": [
3242
+ {
3243
+ "name": "storage",
3244
+ "arguments": [
3245
+ "read",
3246
+ "write"
3247
+ ]
3248
+ }
3249
+ ]
3250
+ },
3251
+ {
3252
+ "name": "implementation_version",
3253
+ "inputs": [],
3254
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3255
+ "attributes": null
3256
+ },
3257
+ {
3258
+ "name": "par_call_contract_args_type_hash",
3259
+ "inputs": [
3260
+ {
3261
+ "name": "encoding",
3262
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3263
+ }
3264
+ ],
3265
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3266
+ "attributes": null
3267
+ },
3268
+ {
3269
+ "name": "par_call_params_type_hash",
3270
+ "inputs": [
3271
+ {
3272
+ "name": "encoding",
3273
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3274
+ }
3275
+ ],
3276
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3277
+ "attributes": null
3278
+ },
3279
+ {
3280
+ "name": "par_multi_call_contract_args_type_hash",
3281
+ "inputs": [
3282
+ {
3283
+ "name": "encoding",
3284
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3285
+ }
3286
+ ],
3287
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3288
+ "attributes": null
3289
+ },
3290
+ {
3291
+ "name": "par_revoke_args_type_hash",
3292
+ "inputs": [
3293
+ {
3294
+ "name": "encoding",
3295
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3296
+ }
3297
+ ],
3298
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3299
+ "attributes": null
3300
+ },
3301
+ {
3302
+ "name": "par_session_args_type_hash",
3303
+ "inputs": [
3304
+ {
3305
+ "name": "encoding",
3306
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3307
+ }
3308
+ ],
3309
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3310
+ "attributes": null
3311
+ },
3312
+ {
3313
+ "name": "par_withdraw_args_type_hash",
3314
+ "inputs": [
3315
+ {
3316
+ "name": "encoding",
3317
+ "concreteTypeId": "5eb19a24b67b9922247392ca34ef7e4726b323401f4d6b3f65d4a8f382632a07"
3318
+ }
3319
+ ],
3320
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
3321
+ "attributes": null
2752
3322
  }
2753
3323
  ],
2754
3324
  "loggedTypes": [
@@ -2765,44 +3335,56 @@ const abi = {
2765
3335
  "concreteTypeId": "0e9654327e3d67d706825c5e4e2df18533389b6566d8c1c298c7bd5b5e0c6da5"
2766
3336
  },
2767
3337
  {
2768
- "logId": "8043135260348901120",
2769
- "concreteTypeId": "6f9ef4e7a983e700685ab472ed2e625822ad32b8f04de92adc81ed60911e5e77"
3338
+ "logId": "14973537172759933369",
3339
+ "concreteTypeId": "cfccb0b9b57671b92f0435d1d261690876e4ef2d8be63c837284032734825b04"
2770
3340
  },
2771
3341
  {
2772
- "logId": "2838887922734823881",
2773
- "concreteTypeId": "2765c1864fc179c9ee1938cc4a28acedc0b1c76f0a63434b33149f432eb4e8c3"
3342
+ "logId": "2849852257800061367",
3343
+ "concreteTypeId": "278cb587808481b72a555be60b7a1b670422d1a886b431eed10a2d0c12eaaaed"
2774
3344
  },
2775
3345
  {
2776
- "logId": "17909535172322737929",
2777
- "concreteTypeId": "f88b7359b6a93f09790d042f771eb46a798919cde0d85a95d291dae15d746312"
3346
+ "logId": "787528562801511233",
3347
+ "concreteTypeId": "0aeddd0e2c420b4162249ce8bf6408c224e31586679b7278d6331df6215e28cf"
2778
3348
  },
2779
3349
  {
2780
- "logId": "11035215306127844569",
2781
- "concreteTypeId": "9924f5da95b424d9efb5403e33f96557a6fa8e766014c055159e9c3bd457ca83"
3350
+ "logId": "2898554141114458595",
3351
+ "concreteTypeId": "2839bba2575d61e3c6cbd733c70c82e630da3bcae8c0f84e0f370c9219c57a18"
3352
+ },
3353
+ {
3354
+ "logId": "14629767096259480324",
3355
+ "concreteTypeId": "cb075fa9873e8b04342183de76fcad2a2bda74cdca41cc963d15a93caf2908ef"
2782
3356
  },
2783
3357
  {
2784
3358
  "logId": "14509209538366790003",
2785
3359
  "concreteTypeId": "c95b1133ba0fd973819faa015c9a3bf27edbbef753c977f859ba593b89ae22e5"
2786
3360
  },
2787
3361
  {
2788
- "logId": "821289540733930261",
2789
- "concreteTypeId": "0b65ce7c65308b155a42d67dba9a8f5ec826782ec477a1970fe592016e92d527"
3362
+ "logId": "12990477561824293476",
3363
+ "concreteTypeId": "b44772841738326423276d94a0aefeb955a2bb5ee76b862e1442870a4a4dc33f"
3364
+ },
3365
+ {
3366
+ "logId": "4520890408852222222",
3367
+ "concreteTypeId": "3ebd6ddfc81b710ec426d233001163a06ac16109348c448a7d9f534bf51a9bfc"
3368
+ },
3369
+ {
3370
+ "logId": "11906549250004858323",
3371
+ "concreteTypeId": "a53c8f75933bb5d34aa2b4394e6a594f581587ac992ee1f04dd61459d9805f02"
2790
3372
  },
2791
3373
  {
2792
- "logId": "14888260448086063780",
2793
- "concreteTypeId": "ce9db9ff03aafaa4ef9ebd0dac288345a961aff0262337411b6ef4db9df07039"
3374
+ "logId": "10033925620227397510",
3375
+ "concreteTypeId": "8b3faa3088585786667c82ce2418fc7566e3f47890914dbcc8def3fc5bad644f"
2794
3376
  },
2795
3377
  {
2796
- "logId": "11023126350627756633",
2797
- "concreteTypeId": "98fa03034b6a5a596d6121040d525eabb78d224d2411b6d5d0151727499bbd09"
3378
+ "logId": "13293273021060208173",
3379
+ "concreteTypeId": "b87b3161c293d62d0bbf4cecef47b892cd3cf7d237ee3a24e8848f380ccc981a"
2798
3380
  },
2799
3381
  {
2800
- "logId": "2735857006735158246",
2801
- "concreteTypeId": "25f7b773d2b66be695d008d06f344b78146367854413f2041eaf21356640e568"
3382
+ "logId": "11263651236373485766",
3383
+ "concreteTypeId": "9c50871f41ee58c6222b15bdb541a8c8bccfa62f85639dc43de20a2546df6dfb"
2802
3384
  },
2803
3385
  {
2804
- "logId": "6182132059982595715",
2805
- "concreteTypeId": "55cb585aadd106832bdedaef0a231b5587db28871e2b12e5137ec4cb66b9b829"
3386
+ "logId": "6416690992090836040",
3387
+ "concreteTypeId": "590caa75d105ec48e80fe2db68d549dcce79549a9aa7834b44c376fac0f2c3f4"
2806
3388
  }
2807
3389
  ],
2808
3390
  "messagesTypes": [],
@@ -2810,13 +3392,19 @@ const abi = {
2810
3392
  {
2811
3393
  "name": "DOMAIN",
2812
3394
  "concreteTypeId": "d41cd041a54363a3d61ab80537895c873f2315f976fc58def6e5035f6b1f0710",
2813
- "offset": 83392,
3395
+ "offset": 119280,
2814
3396
  "indirect": false
2815
3397
  },
2816
3398
  {
2817
3399
  "name": "VERSION",
2818
3400
  "concreteTypeId": "6354581bfa62ac188c9f243cc30e1bf38a150773f871be8765351ef8c5db6c1e",
2819
- "offset": 83408,
3401
+ "offset": 119328,
3402
+ "indirect": false
3403
+ },
3404
+ {
3405
+ "name": "MAX_NONCE_SESSION_ID",
3406
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e",
3407
+ "offset": 119296,
2820
3408
  "indirect": false
2821
3409
  }
2822
3410
  ],