@o2exchange/contracts 0.0.1 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +4 -39
  2. package/dist/OrderBook.d.ts +549 -0
  3. package/dist/OrderBook.d.ts.map +1 -0
  4. package/dist/OrderBook.js +3460 -0
  5. package/dist/OrderBook.js.map +1 -0
  6. package/dist/OrderBookBlacklist.d.ts +155 -0
  7. package/dist/OrderBookBlacklist.d.ts.map +1 -0
  8. package/dist/OrderBookBlacklist.js +379 -0
  9. package/dist/OrderBookBlacklist.js.map +1 -0
  10. package/dist/OrderBookBlacklistFactory.d.ts +9 -0
  11. package/dist/OrderBookBlacklistFactory.d.ts.map +1 -0
  12. package/dist/OrderBookBlacklistFactory.js +21 -0
  13. package/dist/OrderBookBlacklistFactory.js.map +1 -0
  14. package/dist/OrderBookFactory.d.ts +9 -0
  15. package/dist/OrderBookFactory.d.ts.map +1 -0
  16. package/dist/OrderBookFactory.js +21 -0
  17. package/dist/OrderBookFactory.js.map +1 -0
  18. package/dist/OrderBookProxy.d.ts +192 -0
  19. package/dist/OrderBookProxy.d.ts.map +1 -0
  20. package/dist/OrderBookProxy.js +850 -0
  21. package/dist/OrderBookProxy.js.map +1 -0
  22. package/dist/OrderBookProxyFactory.d.ts +9 -0
  23. package/dist/OrderBookProxyFactory.d.ts.map +1 -0
  24. package/dist/OrderBookProxyFactory.js +21 -0
  25. package/dist/OrderBookProxyFactory.js.map +1 -0
  26. package/dist/OrderBookRegistry.d.ts +237 -0
  27. package/dist/OrderBookRegistry.d.ts.map +1 -0
  28. package/dist/OrderBookRegistry.js +676 -0
  29. package/dist/OrderBookRegistry.js.map +1 -0
  30. package/dist/OrderBookRegistryFactory.d.ts +9 -0
  31. package/dist/OrderBookRegistryFactory.d.ts.map +1 -0
  32. package/dist/OrderBookRegistryFactory.js +21 -0
  33. package/dist/OrderBookRegistryFactory.js.map +1 -0
  34. package/dist/OrderBookRegistryProxy.d.ts +192 -0
  35. package/dist/OrderBookRegistryProxy.d.ts.map +1 -0
  36. package/dist/OrderBookRegistryProxy.js +850 -0
  37. package/dist/OrderBookRegistryProxy.js.map +1 -0
  38. package/dist/OrderBookRegistryProxyFactory.d.ts +9 -0
  39. package/dist/OrderBookRegistryProxyFactory.d.ts.map +1 -0
  40. package/dist/OrderBookRegistryProxyFactory.js +21 -0
  41. package/dist/OrderBookRegistryProxyFactory.js.map +1 -0
  42. package/dist/OrderBookWhitelist.d.ts +155 -0
  43. package/dist/OrderBookWhitelist.d.ts.map +1 -0
  44. package/dist/OrderBookWhitelist.js +379 -0
  45. package/dist/OrderBookWhitelist.js.map +1 -0
  46. package/dist/OrderBookWhitelistFactory.d.ts +9 -0
  47. package/dist/OrderBookWhitelistFactory.d.ts.map +1 -0
  48. package/dist/OrderBookWhitelistFactory.js +21 -0
  49. package/dist/OrderBookWhitelistFactory.js.map +1 -0
  50. package/dist/TradeAccount.d.ts +472 -0
  51. package/dist/TradeAccount.d.ts.map +1 -0
  52. package/dist/TradeAccount.js +2846 -0
  53. package/dist/TradeAccount.js.map +1 -0
  54. package/dist/TradeAccountFactory.d.ts +9 -0
  55. package/dist/TradeAccountFactory.d.ts.map +1 -0
  56. package/dist/TradeAccountFactory.js +21 -0
  57. package/dist/TradeAccountFactory.js.map +1 -0
  58. package/dist/TradeAccountOracle.d.ts +161 -0
  59. package/dist/TradeAccountOracle.d.ts.map +1 -0
  60. package/dist/TradeAccountOracle.js +1013 -0
  61. package/dist/TradeAccountOracle.js.map +1 -0
  62. package/dist/TradeAccountOracleFactory.d.ts +9 -0
  63. package/dist/TradeAccountOracleFactory.d.ts.map +1 -0
  64. package/dist/TradeAccountOracleFactory.js +21 -0
  65. package/dist/TradeAccountOracleFactory.js.map +1 -0
  66. package/dist/TradeAccountProxy.d.ts +335 -0
  67. package/dist/TradeAccountProxy.d.ts.map +1 -0
  68. package/dist/TradeAccountProxy.js +1421 -0
  69. package/dist/TradeAccountProxy.js.map +1 -0
  70. package/dist/TradeAccountProxyFactory.d.ts +9 -0
  71. package/dist/TradeAccountProxyFactory.d.ts.map +1 -0
  72. package/dist/TradeAccountProxyFactory.js +21 -0
  73. package/dist/TradeAccountProxyFactory.js.map +1 -0
  74. package/dist/TradeAccountRegistry.d.ts +271 -0
  75. package/dist/TradeAccountRegistry.d.ts.map +1 -0
  76. package/dist/TradeAccountRegistry.js +839 -0
  77. package/dist/TradeAccountRegistry.js.map +1 -0
  78. package/dist/TradeAccountRegistryFactory.d.ts +9 -0
  79. package/dist/TradeAccountRegistryFactory.d.ts.map +1 -0
  80. package/dist/TradeAccountRegistryFactory.js +21 -0
  81. package/dist/TradeAccountRegistryFactory.js.map +1 -0
  82. package/dist/TradeAccountRegistryProxy.d.ts +192 -0
  83. package/dist/TradeAccountRegistryProxy.d.ts.map +1 -0
  84. package/dist/TradeAccountRegistryProxy.js +850 -0
  85. package/dist/TradeAccountRegistryProxy.js.map +1 -0
  86. package/dist/TradeAccountRegistryProxyFactory.d.ts +9 -0
  87. package/dist/TradeAccountRegistryProxyFactory.d.ts.map +1 -0
  88. package/dist/TradeAccountRegistryProxyFactory.js +21 -0
  89. package/dist/TradeAccountRegistryProxyFactory.js.map +1 -0
  90. package/dist/common.d.ts +24 -0
  91. package/dist/common.d.ts.map +1 -0
  92. package/dist/common.js +3 -0
  93. package/dist/common.js.map +1 -0
  94. package/dist/index.d.ts +23 -0
  95. package/dist/index.d.ts.map +1 -0
  96. package/dist/index.js +30 -0
  97. package/dist/index.js.map +1 -0
  98. package/package.json +71 -8
@@ -0,0 +1,850 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* eslint-disable max-classes-per-file */
3
+ /* eslint-disable @typescript-eslint/no-unused-vars */
4
+ /* eslint-disable @typescript-eslint/consistent-type-imports */
5
+ /*
6
+ Fuels version: 0.103.0
7
+ */
8
+ import { Contract as __Contract, Interface } from "fuels";
9
+ export var AccessErrorInput;
10
+ (function (AccessErrorInput) {
11
+ AccessErrorInput["NotOwner"] = "NotOwner";
12
+ })(AccessErrorInput || (AccessErrorInput = {}));
13
+ ;
14
+ export var AccessErrorOutput;
15
+ (function (AccessErrorOutput) {
16
+ AccessErrorOutput["NotOwner"] = "NotOwner";
17
+ })(AccessErrorOutput || (AccessErrorOutput = {}));
18
+ ;
19
+ export var InitializationErrorInput;
20
+ (function (InitializationErrorInput) {
21
+ InitializationErrorInput["CannotReinitialized"] = "CannotReinitialized";
22
+ })(InitializationErrorInput || (InitializationErrorInput = {}));
23
+ ;
24
+ export var InitializationErrorOutput;
25
+ (function (InitializationErrorOutput) {
26
+ InitializationErrorOutput["CannotReinitialized"] = "CannotReinitialized";
27
+ })(InitializationErrorOutput || (InitializationErrorOutput = {}));
28
+ ;
29
+ export var SetProxyOwnerErrorInput;
30
+ (function (SetProxyOwnerErrorInput) {
31
+ SetProxyOwnerErrorInput["CannotUninitialize"] = "CannotUninitialize";
32
+ })(SetProxyOwnerErrorInput || (SetProxyOwnerErrorInput = {}));
33
+ ;
34
+ export var SetProxyOwnerErrorOutput;
35
+ (function (SetProxyOwnerErrorOutput) {
36
+ SetProxyOwnerErrorOutput["CannotUninitialize"] = "CannotUninitialize";
37
+ })(SetProxyOwnerErrorOutput || (SetProxyOwnerErrorOutput = {}));
38
+ ;
39
+ const abi = {
40
+ "programType": "contract",
41
+ "specVersion": "1.2",
42
+ "encodingVersion": "1",
43
+ "concreteTypes": [
44
+ {
45
+ "type": "()",
46
+ "concreteTypeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
47
+ },
48
+ {
49
+ "type": "enum ownership::errors::InitializationError",
50
+ "concreteTypeId": "b1fddf488ccb9e63d11888b2750bbd1280a1ae1c49f2d6637fd4cf1e930d1468",
51
+ "metadataTypeId": 1
52
+ },
53
+ {
54
+ "type": "enum src5::AccessError",
55
+ "concreteTypeId": "f1247475d0d1466599267010f088190f8664dd31663a40c5d5e525d8e64b995d",
56
+ "metadataTypeId": 2
57
+ },
58
+ {
59
+ "type": "enum src5::State",
60
+ "concreteTypeId": "287a382c1e0b1f11d12a422e77a248d27761327cd17515cc6e6369d528cf31ca",
61
+ "metadataTypeId": 3
62
+ },
63
+ {
64
+ "type": "enum std::identity::Identity",
65
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
66
+ "metadataTypeId": 4
67
+ },
68
+ {
69
+ "type": "enum std::option::Option<struct std::contract_id::ContractId>",
70
+ "concreteTypeId": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8",
71
+ "metadataTypeId": 5,
72
+ "typeArguments": [
73
+ "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
74
+ ]
75
+ },
76
+ {
77
+ "type": "enum upgradability::errors::SetProxyOwnerError",
78
+ "concreteTypeId": "077440f455d1eb83361f2183e189067ac3bf4bb6166b7a0630f371593ebb274e",
79
+ "metadataTypeId": 6
80
+ },
81
+ {
82
+ "type": "str",
83
+ "concreteTypeId": "8c25cb3686462e9a86d2883c5688a22fe738b0bbc85f458d2d2b5f3f667c6d5a"
84
+ },
85
+ {
86
+ "type": "struct contract_schema::proxys::OwnershipTransferredEvent",
87
+ "concreteTypeId": "1a4a391e4e527b56f6e488bce418bfd7ff45c5ee2956b4891af265057da0ae69",
88
+ "metadataTypeId": 8
89
+ },
90
+ {
91
+ "type": "struct std::contract_id::ContractId",
92
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54",
93
+ "metadataTypeId": 10
94
+ },
95
+ {
96
+ "type": "struct upgradability::events::ProxyOwnerSet",
97
+ "concreteTypeId": "3c23b359912e25002dc894bca0ea08e15bcae108cb5ed17b9cb5ca3fed321e5d",
98
+ "metadataTypeId": 12
99
+ },
100
+ {
101
+ "type": "struct upgradability::events::ProxyTargetSet",
102
+ "concreteTypeId": "47d9868a6266fb294f68de9d33690c9e627c37425d784cc82b7a7b7e5635b779",
103
+ "metadataTypeId": 13
104
+ }
105
+ ],
106
+ "metadataTypes": [
107
+ {
108
+ "type": "b256",
109
+ "metadataTypeId": 0
110
+ },
111
+ {
112
+ "type": "enum ownership::errors::InitializationError",
113
+ "metadataTypeId": 1,
114
+ "components": [
115
+ {
116
+ "name": "CannotReinitialized",
117
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "type": "enum src5::AccessError",
123
+ "metadataTypeId": 2,
124
+ "components": [
125
+ {
126
+ "name": "NotOwner",
127
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
128
+ }
129
+ ]
130
+ },
131
+ {
132
+ "type": "enum src5::State",
133
+ "metadataTypeId": 3,
134
+ "components": [
135
+ {
136
+ "name": "Uninitialized",
137
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
138
+ },
139
+ {
140
+ "name": "Initialized",
141
+ "typeId": 4
142
+ },
143
+ {
144
+ "name": "Revoked",
145
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "type": "enum std::identity::Identity",
151
+ "metadataTypeId": 4,
152
+ "components": [
153
+ {
154
+ "name": "Address",
155
+ "typeId": 9
156
+ },
157
+ {
158
+ "name": "ContractId",
159
+ "typeId": 10
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "type": "enum std::option::Option",
165
+ "metadataTypeId": 5,
166
+ "components": [
167
+ {
168
+ "name": "None",
169
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
170
+ },
171
+ {
172
+ "name": "Some",
173
+ "typeId": 7
174
+ }
175
+ ],
176
+ "typeParameters": [
177
+ 7
178
+ ]
179
+ },
180
+ {
181
+ "type": "enum upgradability::errors::SetProxyOwnerError",
182
+ "metadataTypeId": 6,
183
+ "components": [
184
+ {
185
+ "name": "CannotUninitialize",
186
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "type": "generic T",
192
+ "metadataTypeId": 7
193
+ },
194
+ {
195
+ "type": "struct contract_schema::proxys::OwnershipTransferredEvent",
196
+ "metadataTypeId": 8,
197
+ "components": [
198
+ {
199
+ "name": "previous_owner",
200
+ "typeId": 5,
201
+ "typeArguments": [
202
+ {
203
+ "name": "",
204
+ "typeId": 4
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ "name": "new_owner",
210
+ "typeId": 4
211
+ },
212
+ {
213
+ "name": "timestamp",
214
+ "typeId": 11
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "type": "struct std::address::Address",
220
+ "metadataTypeId": 9,
221
+ "components": [
222
+ {
223
+ "name": "bits",
224
+ "typeId": 0
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "type": "struct std::contract_id::ContractId",
230
+ "metadataTypeId": 10,
231
+ "components": [
232
+ {
233
+ "name": "bits",
234
+ "typeId": 0
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "type": "struct std::time::Time",
240
+ "metadataTypeId": 11,
241
+ "components": [
242
+ {
243
+ "name": "unix",
244
+ "typeId": 14
245
+ }
246
+ ]
247
+ },
248
+ {
249
+ "type": "struct upgradability::events::ProxyOwnerSet",
250
+ "metadataTypeId": 12,
251
+ "components": [
252
+ {
253
+ "name": "new_proxy_owner",
254
+ "typeId": 3
255
+ }
256
+ ]
257
+ },
258
+ {
259
+ "type": "struct upgradability::events::ProxyTargetSet",
260
+ "metadataTypeId": 13,
261
+ "components": [
262
+ {
263
+ "name": "new_target",
264
+ "typeId": 10
265
+ }
266
+ ]
267
+ },
268
+ {
269
+ "type": "u64",
270
+ "metadataTypeId": 14
271
+ }
272
+ ],
273
+ "functions": [
274
+ {
275
+ "name": "proxy_target",
276
+ "inputs": [],
277
+ "output": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8",
278
+ "attributes": [
279
+ {
280
+ "name": "doc-comment",
281
+ "arguments": [
282
+ " Returns the target contract of the proxy contract."
283
+ ]
284
+ },
285
+ {
286
+ "name": "doc-comment",
287
+ "arguments": [
288
+ ""
289
+ ]
290
+ },
291
+ {
292
+ "name": "doc-comment",
293
+ "arguments": [
294
+ " # Returns"
295
+ ]
296
+ },
297
+ {
298
+ "name": "doc-comment",
299
+ "arguments": [
300
+ ""
301
+ ]
302
+ },
303
+ {
304
+ "name": "doc-comment",
305
+ "arguments": [
306
+ " * [Option<ContractId>] - The new proxy contract to which all fallback calls will be passed or `None`."
307
+ ]
308
+ },
309
+ {
310
+ "name": "doc-comment",
311
+ "arguments": [
312
+ ""
313
+ ]
314
+ },
315
+ {
316
+ "name": "doc-comment",
317
+ "arguments": [
318
+ " # Number of Storage Accesses"
319
+ ]
320
+ },
321
+ {
322
+ "name": "doc-comment",
323
+ "arguments": [
324
+ ""
325
+ ]
326
+ },
327
+ {
328
+ "name": "doc-comment",
329
+ "arguments": [
330
+ " * Reads: `1`"
331
+ ]
332
+ },
333
+ {
334
+ "name": "storage",
335
+ "arguments": [
336
+ "read"
337
+ ]
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ "name": "set_proxy_target",
343
+ "inputs": [
344
+ {
345
+ "name": "new_target",
346
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
347
+ }
348
+ ],
349
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
350
+ "attributes": [
351
+ {
352
+ "name": "doc-comment",
353
+ "arguments": [
354
+ " Change the target contract of the proxy contract."
355
+ ]
356
+ },
357
+ {
358
+ "name": "doc-comment",
359
+ "arguments": [
360
+ ""
361
+ ]
362
+ },
363
+ {
364
+ "name": "doc-comment",
365
+ "arguments": [
366
+ " # Additional Information"
367
+ ]
368
+ },
369
+ {
370
+ "name": "doc-comment",
371
+ "arguments": [
372
+ ""
373
+ ]
374
+ },
375
+ {
376
+ "name": "doc-comment",
377
+ "arguments": [
378
+ " This method can only be called by the `proxy_owner`."
379
+ ]
380
+ },
381
+ {
382
+ "name": "doc-comment",
383
+ "arguments": [
384
+ ""
385
+ ]
386
+ },
387
+ {
388
+ "name": "doc-comment",
389
+ "arguments": [
390
+ " # Arguments"
391
+ ]
392
+ },
393
+ {
394
+ "name": "doc-comment",
395
+ "arguments": [
396
+ ""
397
+ ]
398
+ },
399
+ {
400
+ "name": "doc-comment",
401
+ "arguments": [
402
+ " * `new_target`: [ContractId] - The new proxy contract to which all fallback calls will be passed."
403
+ ]
404
+ },
405
+ {
406
+ "name": "doc-comment",
407
+ "arguments": [
408
+ ""
409
+ ]
410
+ },
411
+ {
412
+ "name": "doc-comment",
413
+ "arguments": [
414
+ " # Reverts"
415
+ ]
416
+ },
417
+ {
418
+ "name": "doc-comment",
419
+ "arguments": [
420
+ ""
421
+ ]
422
+ },
423
+ {
424
+ "name": "doc-comment",
425
+ "arguments": [
426
+ " * When not called by `proxy_owner`."
427
+ ]
428
+ },
429
+ {
430
+ "name": "doc-comment",
431
+ "arguments": [
432
+ ""
433
+ ]
434
+ },
435
+ {
436
+ "name": "doc-comment",
437
+ "arguments": [
438
+ " # Number of Storage Accesses"
439
+ ]
440
+ },
441
+ {
442
+ "name": "doc-comment",
443
+ "arguments": [
444
+ ""
445
+ ]
446
+ },
447
+ {
448
+ "name": "doc-comment",
449
+ "arguments": [
450
+ " * Reads: `1`"
451
+ ]
452
+ },
453
+ {
454
+ "name": "doc-comment",
455
+ "arguments": [
456
+ " * Write: `1`"
457
+ ]
458
+ },
459
+ {
460
+ "name": "storage",
461
+ "arguments": [
462
+ "read",
463
+ "write"
464
+ ]
465
+ }
466
+ ]
467
+ },
468
+ {
469
+ "name": "proxy_owner",
470
+ "inputs": [],
471
+ "output": "287a382c1e0b1f11d12a422e77a248d27761327cd17515cc6e6369d528cf31ca",
472
+ "attributes": [
473
+ {
474
+ "name": "doc-comment",
475
+ "arguments": [
476
+ " Returns the owner of the proxy contract."
477
+ ]
478
+ },
479
+ {
480
+ "name": "doc-comment",
481
+ "arguments": [
482
+ ""
483
+ ]
484
+ },
485
+ {
486
+ "name": "doc-comment",
487
+ "arguments": [
488
+ " # Returns"
489
+ ]
490
+ },
491
+ {
492
+ "name": "doc-comment",
493
+ "arguments": [
494
+ ""
495
+ ]
496
+ },
497
+ {
498
+ "name": "doc-comment",
499
+ "arguments": [
500
+ " * [State] - Represents the state of ownership for this contract."
501
+ ]
502
+ },
503
+ {
504
+ "name": "doc-comment",
505
+ "arguments": [
506
+ ""
507
+ ]
508
+ },
509
+ {
510
+ "name": "doc-comment",
511
+ "arguments": [
512
+ " # Number of Storage Accesses"
513
+ ]
514
+ },
515
+ {
516
+ "name": "doc-comment",
517
+ "arguments": [
518
+ ""
519
+ ]
520
+ },
521
+ {
522
+ "name": "doc-comment",
523
+ "arguments": [
524
+ " * Reads: `1`"
525
+ ]
526
+ },
527
+ {
528
+ "name": "storage",
529
+ "arguments": [
530
+ "read"
531
+ ]
532
+ }
533
+ ]
534
+ },
535
+ {
536
+ "name": "initialize_proxy",
537
+ "inputs": [],
538
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
539
+ "attributes": [
540
+ {
541
+ "name": "doc-comment",
542
+ "arguments": [
543
+ " Initializes the proxy contract."
544
+ ]
545
+ },
546
+ {
547
+ "name": "doc-comment",
548
+ "arguments": [
549
+ ""
550
+ ]
551
+ },
552
+ {
553
+ "name": "doc-comment",
554
+ "arguments": [
555
+ " # Additional Information"
556
+ ]
557
+ },
558
+ {
559
+ "name": "doc-comment",
560
+ "arguments": [
561
+ ""
562
+ ]
563
+ },
564
+ {
565
+ "name": "doc-comment",
566
+ "arguments": [
567
+ " This method sets the storage values using the values of the configurable constants `INITIAL_TARGET` and `INITIAL_OWNER`."
568
+ ]
569
+ },
570
+ {
571
+ "name": "doc-comment",
572
+ "arguments": [
573
+ " This then allows methods that write to storage to be called."
574
+ ]
575
+ },
576
+ {
577
+ "name": "doc-comment",
578
+ "arguments": [
579
+ " This method can only be called once."
580
+ ]
581
+ },
582
+ {
583
+ "name": "doc-comment",
584
+ "arguments": [
585
+ ""
586
+ ]
587
+ },
588
+ {
589
+ "name": "doc-comment",
590
+ "arguments": [
591
+ " # Reverts"
592
+ ]
593
+ },
594
+ {
595
+ "name": "doc-comment",
596
+ "arguments": [
597
+ ""
598
+ ]
599
+ },
600
+ {
601
+ "name": "doc-comment",
602
+ "arguments": [
603
+ " * When `storage::SRC14.proxy_owner` is not [State::Uninitialized]."
604
+ ]
605
+ },
606
+ {
607
+ "name": "doc-comment",
608
+ "arguments": [
609
+ ""
610
+ ]
611
+ },
612
+ {
613
+ "name": "doc-comment",
614
+ "arguments": [
615
+ " # Number of Storage Accesses"
616
+ ]
617
+ },
618
+ {
619
+ "name": "doc-comment",
620
+ "arguments": [
621
+ ""
622
+ ]
623
+ },
624
+ {
625
+ "name": "doc-comment",
626
+ "arguments": [
627
+ " * Writes: `2`"
628
+ ]
629
+ },
630
+ {
631
+ "name": "storage",
632
+ "arguments": [
633
+ "write"
634
+ ]
635
+ }
636
+ ]
637
+ },
638
+ {
639
+ "name": "set_owner",
640
+ "inputs": [
641
+ {
642
+ "name": "new_owner",
643
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
644
+ }
645
+ ],
646
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
647
+ "attributes": [
648
+ {
649
+ "name": "doc-comment",
650
+ "arguments": [
651
+ " Changes proxy ownership to the passed State."
652
+ ]
653
+ },
654
+ {
655
+ "name": "doc-comment",
656
+ "arguments": [
657
+ ""
658
+ ]
659
+ },
660
+ {
661
+ "name": "doc-comment",
662
+ "arguments": [
663
+ " # Additional Information"
664
+ ]
665
+ },
666
+ {
667
+ "name": "doc-comment",
668
+ "arguments": [
669
+ ""
670
+ ]
671
+ },
672
+ {
673
+ "name": "doc-comment",
674
+ "arguments": [
675
+ " This method can be used to transfer ownership between Identities or to revoke ownership."
676
+ ]
677
+ },
678
+ {
679
+ "name": "doc-comment",
680
+ "arguments": [
681
+ ""
682
+ ]
683
+ },
684
+ {
685
+ "name": "doc-comment",
686
+ "arguments": [
687
+ " # Arguments"
688
+ ]
689
+ },
690
+ {
691
+ "name": "doc-comment",
692
+ "arguments": [
693
+ ""
694
+ ]
695
+ },
696
+ {
697
+ "name": "doc-comment",
698
+ "arguments": [
699
+ " * `new_proxy_owner`: [State] - The new state of the proxy ownership."
700
+ ]
701
+ },
702
+ {
703
+ "name": "doc-comment",
704
+ "arguments": [
705
+ ""
706
+ ]
707
+ },
708
+ {
709
+ "name": "doc-comment",
710
+ "arguments": [
711
+ " # Reverts"
712
+ ]
713
+ },
714
+ {
715
+ "name": "doc-comment",
716
+ "arguments": [
717
+ ""
718
+ ]
719
+ },
720
+ {
721
+ "name": "doc-comment",
722
+ "arguments": [
723
+ " * When the sender is not the current proxy owner."
724
+ ]
725
+ },
726
+ {
727
+ "name": "doc-comment",
728
+ "arguments": [
729
+ " * When the new state of the proxy ownership is [State::Uninitialized]."
730
+ ]
731
+ },
732
+ {
733
+ "name": "doc-comment",
734
+ "arguments": [
735
+ ""
736
+ ]
737
+ },
738
+ {
739
+ "name": "doc-comment",
740
+ "arguments": [
741
+ " # Number of Storage Accesses"
742
+ ]
743
+ },
744
+ {
745
+ "name": "doc-comment",
746
+ "arguments": [
747
+ ""
748
+ ]
749
+ },
750
+ {
751
+ "name": "doc-comment",
752
+ "arguments": [
753
+ " * Reads: `1`"
754
+ ]
755
+ },
756
+ {
757
+ "name": "doc-comment",
758
+ "arguments": [
759
+ " * Writes: `1`"
760
+ ]
761
+ },
762
+ {
763
+ "name": "storage",
764
+ "arguments": [
765
+ "read",
766
+ "write"
767
+ ]
768
+ }
769
+ ]
770
+ }
771
+ ],
772
+ "loggedTypes": [
773
+ {
774
+ "logId": "17376141311665587813",
775
+ "concreteTypeId": "f1247475d0d1466599267010f088190f8664dd31663a40c5d5e525d8e64b995d"
776
+ },
777
+ {
778
+ "logId": "537125673719950211",
779
+ "concreteTypeId": "077440f455d1eb83361f2183e189067ac3bf4bb6166b7a0630f371593ebb274e"
780
+ },
781
+ {
782
+ "logId": "4333504463729730816",
783
+ "concreteTypeId": "3c23b359912e25002dc894bca0ea08e15bcae108cb5ed17b9cb5ca3fed321e5d"
784
+ },
785
+ {
786
+ "logId": "1894389395588545366",
787
+ "concreteTypeId": "1a4a391e4e527b56f6e488bce418bfd7ff45c5ee2956b4891af265057da0ae69"
788
+ },
789
+ {
790
+ "logId": "10098701174489624218",
791
+ "concreteTypeId": "8c25cb3686462e9a86d2883c5688a22fe738b0bbc85f458d2d2b5f3f667c6d5a"
792
+ },
793
+ {
794
+ "logId": "5177317175553620777",
795
+ "concreteTypeId": "47d9868a6266fb294f68de9d33690c9e627c37425d784cc82b7a7b7e5635b779"
796
+ },
797
+ {
798
+ "logId": "12825652816513834595",
799
+ "concreteTypeId": "b1fddf488ccb9e63d11888b2750bbd1280a1ae1c49f2d6637fd4cf1e930d1468"
800
+ }
801
+ ],
802
+ "messagesTypes": [],
803
+ "configurables": [
804
+ {
805
+ "name": "INITIAL_OWNER",
806
+ "concreteTypeId": "287a382c1e0b1f11d12a422e77a248d27761327cd17515cc6e6369d528cf31ca",
807
+ "offset": 9616,
808
+ "indirect": false
809
+ },
810
+ {
811
+ "name": "INITIAL_TARGET",
812
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54",
813
+ "offset": 9664,
814
+ "indirect": false
815
+ }
816
+ ],
817
+ "errorCodes": {},
818
+ "panickingCalls": {}
819
+ };
820
+ const storageSlots = [
821
+ {
822
+ "key": "7bb458adc1d118713319a5baa00a2d049dd64d2916477d2688d76970c898cd55",
823
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
824
+ },
825
+ {
826
+ "key": "7bb458adc1d118713319a5baa00a2d049dd64d2916477d2688d76970c898cd56",
827
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
828
+ },
829
+ {
830
+ "key": "bb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea754",
831
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
832
+ },
833
+ {
834
+ "key": "bb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea755",
835
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
836
+ }
837
+ ];
838
+ export class OrderBookProxyInterface extends Interface {
839
+ constructor() {
840
+ super(abi);
841
+ }
842
+ }
843
+ export class OrderBookProxy extends __Contract {
844
+ static abi = abi;
845
+ static storageSlots = storageSlots;
846
+ constructor(id, accountOrProvider) {
847
+ super(id, abi, accountOrProvider);
848
+ }
849
+ }
850
+ //# sourceMappingURL=OrderBookProxy.js.map