@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,3460 @@
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 FeeErrorInput;
20
+ (function (FeeErrorInput) {
21
+ FeeErrorInput["NoFeesAvailable"] = "NoFeesAvailable";
22
+ })(FeeErrorInput || (FeeErrorInput = {}));
23
+ ;
24
+ export var FeeErrorOutput;
25
+ (function (FeeErrorOutput) {
26
+ FeeErrorOutput["NoFeesAvailable"] = "NoFeesAvailable";
27
+ })(FeeErrorOutput || (FeeErrorOutput = {}));
28
+ ;
29
+ export var InitializationErrorInput;
30
+ (function (InitializationErrorInput) {
31
+ InitializationErrorInput["CannotReinitialized"] = "CannotReinitialized";
32
+ })(InitializationErrorInput || (InitializationErrorInput = {}));
33
+ ;
34
+ export var InitializationErrorOutput;
35
+ (function (InitializationErrorOutput) {
36
+ InitializationErrorOutput["CannotReinitialized"] = "CannotReinitialized";
37
+ })(InitializationErrorOutput || (InitializationErrorOutput = {}));
38
+ ;
39
+ export var OrderBookInitializationErrorInput;
40
+ (function (OrderBookInitializationErrorInput) {
41
+ OrderBookInitializationErrorInput["InvalidAsset"] = "InvalidAsset";
42
+ OrderBookInitializationErrorInput["InvalidDecimals"] = "InvalidDecimals";
43
+ OrderBookInitializationErrorInput["InvalidPriceWindow"] = "InvalidPriceWindow";
44
+ OrderBookInitializationErrorInput["InvalidPricePrecision"] = "InvalidPricePrecision";
45
+ OrderBookInitializationErrorInput["OwnerNotSet"] = "OwnerNotSet";
46
+ OrderBookInitializationErrorInput["InvalidMinOrder"] = "InvalidMinOrder";
47
+ })(OrderBookInitializationErrorInput || (OrderBookInitializationErrorInput = {}));
48
+ ;
49
+ export var OrderBookInitializationErrorOutput;
50
+ (function (OrderBookInitializationErrorOutput) {
51
+ OrderBookInitializationErrorOutput["InvalidAsset"] = "InvalidAsset";
52
+ OrderBookInitializationErrorOutput["InvalidDecimals"] = "InvalidDecimals";
53
+ OrderBookInitializationErrorOutput["InvalidPriceWindow"] = "InvalidPriceWindow";
54
+ OrderBookInitializationErrorOutput["InvalidPricePrecision"] = "InvalidPricePrecision";
55
+ OrderBookInitializationErrorOutput["OwnerNotSet"] = "OwnerNotSet";
56
+ OrderBookInitializationErrorOutput["InvalidMinOrder"] = "InvalidMinOrder";
57
+ })(OrderBookInitializationErrorOutput || (OrderBookInitializationErrorOutput = {}));
58
+ ;
59
+ export var OrderCancelErrorInput;
60
+ (function (OrderCancelErrorInput) {
61
+ OrderCancelErrorInput["NotOrderOwner"] = "NotOrderOwner";
62
+ OrderCancelErrorInput["TraderNotBlacklisted"] = "TraderNotBlacklisted";
63
+ OrderCancelErrorInput["NoBlacklist"] = "NoBlacklist";
64
+ })(OrderCancelErrorInput || (OrderCancelErrorInput = {}));
65
+ ;
66
+ export var OrderCancelErrorOutput;
67
+ (function (OrderCancelErrorOutput) {
68
+ OrderCancelErrorOutput["NotOrderOwner"] = "NotOrderOwner";
69
+ OrderCancelErrorOutput["TraderNotBlacklisted"] = "TraderNotBlacklisted";
70
+ OrderCancelErrorOutput["NoBlacklist"] = "NoBlacklist";
71
+ })(OrderCancelErrorOutput || (OrderCancelErrorOutput = {}));
72
+ ;
73
+ export var PauseErrorInput;
74
+ (function (PauseErrorInput) {
75
+ PauseErrorInput["Paused"] = "Paused";
76
+ PauseErrorInput["NotPaused"] = "NotPaused";
77
+ })(PauseErrorInput || (PauseErrorInput = {}));
78
+ ;
79
+ export var PauseErrorOutput;
80
+ (function (PauseErrorOutput) {
81
+ PauseErrorOutput["Paused"] = "Paused";
82
+ PauseErrorOutput["NotPaused"] = "NotPaused";
83
+ })(PauseErrorOutput || (PauseErrorOutput = {}));
84
+ ;
85
+ export var SideInput;
86
+ (function (SideInput) {
87
+ SideInput["Buy"] = "Buy";
88
+ SideInput["Sell"] = "Sell";
89
+ })(SideInput || (SideInput = {}));
90
+ ;
91
+ export var SideOutput;
92
+ (function (SideOutput) {
93
+ SideOutput["Buy"] = "Buy";
94
+ SideOutput["Sell"] = "Sell";
95
+ })(SideOutput || (SideOutput = {}));
96
+ ;
97
+ const abi = {
98
+ "programType": "contract",
99
+ "specVersion": "1.2",
100
+ "encodingVersion": "1",
101
+ "concreteTypes": [
102
+ {
103
+ "type": "()",
104
+ "concreteTypeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
105
+ },
106
+ {
107
+ "type": "(u64, struct std::time::Time)",
108
+ "concreteTypeId": "3639c0c1fb291a3e7e7ab4d9fe1d6762d6ff0fde0777d0ef8f3799d2f3d70a95",
109
+ "metadataTypeId": 0
110
+ },
111
+ {
112
+ "type": "(u64, u64)",
113
+ "concreteTypeId": "41bd1a98f0a59642d8f824c805b798a5f268d1f7d05808eb05c4189c493f1be0",
114
+ "metadataTypeId": 1
115
+ },
116
+ {
117
+ "type": "b256",
118
+ "concreteTypeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
119
+ },
120
+ {
121
+ "type": "bool",
122
+ "concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
123
+ },
124
+ {
125
+ "type": "enum contract_schema::order_book::FeeError",
126
+ "concreteTypeId": "41ffdde08d41a5769627d4e77a60cbf9ef0a0e9194114652b57247e64a9ce7f0",
127
+ "metadataTypeId": 2
128
+ },
129
+ {
130
+ "type": "enum contract_schema::order_book::OrderBookInitializationError",
131
+ "concreteTypeId": "7beea8d3e75df4e367b45e1567e03c81f969faef517cea9a4ff938fed6ee9f6a",
132
+ "metadataTypeId": 3
133
+ },
134
+ {
135
+ "type": "enum contract_schema::order_book::OrderCancelError",
136
+ "concreteTypeId": "0e7d0742559c4d2c273298fdc0b9b7e9b07f7f944855ca3020dba8617515e2f0",
137
+ "metadataTypeId": 4
138
+ },
139
+ {
140
+ "type": "enum contract_schema::order_book::OrderCreationError",
141
+ "concreteTypeId": "a700a0d30e8d2803040dc79b7b7b259d0c308ca5187f6c742da1df21c27bf24a",
142
+ "metadataTypeId": 5
143
+ },
144
+ {
145
+ "type": "enum contract_schema::order_book::Side",
146
+ "concreteTypeId": "9a10e2c94a13825d2af23f4a4743379feba2acfcec8e2d775e945c5452e84708",
147
+ "metadataTypeId": 7
148
+ },
149
+ {
150
+ "type": "enum ownership::errors::InitializationError",
151
+ "concreteTypeId": "b1fddf488ccb9e63d11888b2750bbd1280a1ae1c49f2d6637fd4cf1e930d1468",
152
+ "metadataTypeId": 8
153
+ },
154
+ {
155
+ "type": "enum pausable::errors::PauseError",
156
+ "concreteTypeId": "455b46a49016f5c03c18ce54b969ea3d0d33c9b00263b3dcc36aa8da27558b8a",
157
+ "metadataTypeId": 9
158
+ },
159
+ {
160
+ "type": "enum src5::AccessError",
161
+ "concreteTypeId": "f1247475d0d1466599267010f088190f8664dd31663a40c5d5e525d8e64b995d",
162
+ "metadataTypeId": 10
163
+ },
164
+ {
165
+ "type": "enum src5::State",
166
+ "concreteTypeId": "287a382c1e0b1f11d12a422e77a248d27761327cd17515cc6e6369d528cf31ca",
167
+ "metadataTypeId": 11
168
+ },
169
+ {
170
+ "type": "enum std::identity::Identity",
171
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335",
172
+ "metadataTypeId": 12
173
+ },
174
+ {
175
+ "type": "enum std::option::Option<struct contract_schema::order_book::Order>",
176
+ "concreteTypeId": "6cbb9ddffc993ba68abb27bb88aae72e4d50123c3fc8f05d663246d7c9f70724",
177
+ "metadataTypeId": 13,
178
+ "typeArguments": [
179
+ "8269f147d8b1fed93590ca56380b11413a1bed10c13c00627a887a6a5e042cea"
180
+ ]
181
+ },
182
+ {
183
+ "type": "enum std::option::Option<struct std::contract_id::ContractId>",
184
+ "concreteTypeId": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8",
185
+ "metadataTypeId": 13,
186
+ "typeArguments": [
187
+ "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54"
188
+ ]
189
+ },
190
+ {
191
+ "type": "enum std::option::Option<u64>",
192
+ "concreteTypeId": "d852149004cc9ec0bbe7dc4e37bffea1d41469b759512b6136f2e865a4c06e7d",
193
+ "metadataTypeId": 13,
194
+ "typeArguments": [
195
+ "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
196
+ ]
197
+ },
198
+ {
199
+ "type": "str[10]",
200
+ "concreteTypeId": "338a25cb65b9251663dcce6362b744fe10aa849758299590f4efed5dd299bf50"
201
+ },
202
+ {
203
+ "type": "struct contract_schema::order_book::ExpireMakerEvent",
204
+ "concreteTypeId": "937c43727e43c6ad683c47ad69885cf2783ecf73d59460fe1d7033a78ad5963c",
205
+ "metadataTypeId": 16
206
+ },
207
+ {
208
+ "type": "struct contract_schema::order_book::FeesClaimedEvent",
209
+ "concreteTypeId": "2e0368c222981c3e3cbba54d7dafbda77dd2c48809b2fd989773b4ae092d8b47",
210
+ "metadataTypeId": 17
211
+ },
212
+ {
213
+ "type": "struct contract_schema::order_book::FeesCollectedEvent",
214
+ "concreteTypeId": "814befd15e7d0ec83c54b78f1248f65890b6e4db618d7f067940385064ae00fa",
215
+ "metadataTypeId": 18
216
+ },
217
+ {
218
+ "type": "struct contract_schema::order_book::Order",
219
+ "concreteTypeId": "8269f147d8b1fed93590ca56380b11413a1bed10c13c00627a887a6a5e042cea",
220
+ "metadataTypeId": 20
221
+ },
222
+ {
223
+ "type": "struct contract_schema::order_book::OrderArgs",
224
+ "concreteTypeId": "027cfee5b9839be8e12b3b56eaf1315f269a86a23ae0a392f084185f7b54a410",
225
+ "metadataTypeId": 21
226
+ },
227
+ {
228
+ "type": "struct contract_schema::order_book::OrderBookBlacklistEvent",
229
+ "concreteTypeId": "15e58f365af5d32c8a830ec43e70fce6cfbad16f88ed89b35bb7878f15f5b75d",
230
+ "metadataTypeId": 22
231
+ },
232
+ {
233
+ "type": "struct contract_schema::order_book::OrderBookConfigEvent",
234
+ "concreteTypeId": "0959a811c54f76a36f4b1ca7a14729eba6801a5c03356f2cfb12233f574d0ce2",
235
+ "metadataTypeId": 23
236
+ },
237
+ {
238
+ "type": "struct contract_schema::order_book::OrderBookSymbolsEvent",
239
+ "concreteTypeId": "99b332e010c1fe173601492be1e50767afba39d95f5aebb83f07fdf4c2103104",
240
+ "metadataTypeId": 24
241
+ },
242
+ {
243
+ "type": "struct contract_schema::order_book::OrderBookWhitelistEvent",
244
+ "concreteTypeId": "39cbf43d52ecef8290e4f6e639a22b50f2ea8ce7d673930c83622422c7653026",
245
+ "metadataTypeId": 25
246
+ },
247
+ {
248
+ "type": "struct contract_schema::order_book::OrderCancelledEvent",
249
+ "concreteTypeId": "82fb068ba8a0739f1b0a907ff1fbcbc8b1e5a31d5a2f1b46742e4c5fca967c18",
250
+ "metadataTypeId": 26
251
+ },
252
+ {
253
+ "type": "struct contract_schema::order_book::OrderCancelledInternalEvent",
254
+ "concreteTypeId": "6e6744800e6fc84d4680e9492774bc9e0cab52bb665d518bdfd2ba21b3a4866c",
255
+ "metadataTypeId": 27
256
+ },
257
+ {
258
+ "type": "struct contract_schema::order_book::OrderCreatedEvent",
259
+ "concreteTypeId": "df21162bb6a03b08040f043d238f4b5275e591737c8b5f068f7422be87168258",
260
+ "metadataTypeId": 28
261
+ },
262
+ {
263
+ "type": "struct contract_schema::order_book::OrderMatchedEvent",
264
+ "concreteTypeId": "cd2ccf60c8a1d69c9f5a8c9d17ec658f09cd58dac7f0f991a3ce3161c494ea88",
265
+ "metadataTypeId": 29
266
+ },
267
+ {
268
+ "type": "struct contract_schema::order_book::OrderOutOfGasEvent",
269
+ "concreteTypeId": "d7fc4e0e366f46285d7ebf08fe5d7a450b649532159d67ce60a329a2d468c5c1",
270
+ "metadataTypeId": 30
271
+ },
272
+ {
273
+ "type": "struct contract_schema::order_book::OrderTooSmallEvent",
274
+ "concreteTypeId": "2fed5c339537969e7d6569d8f1607e8476b5829cc3ef3185c9c4ae8f3a4f5edd",
275
+ "metadataTypeId": 31
276
+ },
277
+ {
278
+ "type": "struct contract_schema::order_book::WithdrawSettledTradeEvent",
279
+ "concreteTypeId": "b145f499e90557447a26156cda458d1c0284a487ef8b8a90646411a33ee5e241",
280
+ "metadataTypeId": 32
281
+ },
282
+ {
283
+ "type": "struct ownership::events::OwnershipSet",
284
+ "concreteTypeId": "8c0d2488561c35a28ef795bb8bcc4c43999cdd1e3ecbd10c226e0a68660c54d4",
285
+ "metadataTypeId": 33
286
+ },
287
+ {
288
+ "type": "struct ownership::events::OwnershipTransferred",
289
+ "concreteTypeId": "a2a2643e0252b510328c0323a0ea60724fb4cb3309a2322ab31b27566ff9a79d",
290
+ "metadataTypeId": 34
291
+ },
292
+ {
293
+ "type": "struct pausable::events::PauseEvent",
294
+ "concreteTypeId": "692983a9aba767e36b5014d3eb842447c736e341cc3b30fcb051b1f5a3d5f80a",
295
+ "metadataTypeId": 35
296
+ },
297
+ {
298
+ "type": "struct pausable::events::UnpauseEvent",
299
+ "concreteTypeId": "0026d386ad84e75b525bec3e7c8b6a63df3fcd108a8c4b26438c8a7a2e2c218b",
300
+ "metadataTypeId": 36
301
+ },
302
+ {
303
+ "type": "struct std::asset_id::AssetId",
304
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
305
+ "metadataTypeId": 38
306
+ },
307
+ {
308
+ "type": "struct std::contract_id::ContractId",
309
+ "concreteTypeId": "29c10735d33b5159f0c71ee1dbd17b36a3e69e41f00fab0d42e1bd9f428d8a54",
310
+ "metadataTypeId": 41
311
+ },
312
+ {
313
+ "type": "struct std::vec::Vec<b256>",
314
+ "concreteTypeId": "32559685d0c9845f059bf9d472a0a38cf77d36c23dfcffe5489e86a65cdd9198",
315
+ "metadataTypeId": 45,
316
+ "typeArguments": [
317
+ "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
318
+ ]
319
+ },
320
+ {
321
+ "type": "struct std::vec::Vec<enum std::identity::Identity>",
322
+ "concreteTypeId": "2f79033d0d3729398611309f48578b56cf5162ba85e50f4d8fb79c9d9d1abc7b",
323
+ "metadataTypeId": 45,
324
+ "typeArguments": [
325
+ "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
326
+ ]
327
+ },
328
+ {
329
+ "type": "struct std::vec::Vec<struct contract_schema::order_book::Order>",
330
+ "concreteTypeId": "d390c7062efc85cc0e3e0a9339016565cda69d055c218f82d362776998f4e505",
331
+ "metadataTypeId": 45,
332
+ "typeArguments": [
333
+ "8269f147d8b1fed93590ca56380b11413a1bed10c13c00627a887a6a5e042cea"
334
+ ]
335
+ },
336
+ {
337
+ "type": "u256",
338
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e"
339
+ },
340
+ {
341
+ "type": "u64",
342
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
343
+ }
344
+ ],
345
+ "metadataTypes": [
346
+ {
347
+ "type": "(_, _)",
348
+ "metadataTypeId": 0,
349
+ "components": [
350
+ {
351
+ "name": "__tuple_element",
352
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
353
+ },
354
+ {
355
+ "name": "__tuple_element",
356
+ "typeId": 43
357
+ }
358
+ ]
359
+ },
360
+ {
361
+ "type": "(_, _)",
362
+ "metadataTypeId": 1,
363
+ "components": [
364
+ {
365
+ "name": "__tuple_element",
366
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
367
+ },
368
+ {
369
+ "name": "__tuple_element",
370
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "type": "enum contract_schema::order_book::FeeError",
376
+ "metadataTypeId": 2,
377
+ "components": [
378
+ {
379
+ "name": "NoFeesAvailable",
380
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "type": "enum contract_schema::order_book::OrderBookInitializationError",
386
+ "metadataTypeId": 3,
387
+ "components": [
388
+ {
389
+ "name": "InvalidAsset",
390
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
391
+ },
392
+ {
393
+ "name": "InvalidDecimals",
394
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
395
+ },
396
+ {
397
+ "name": "InvalidPriceWindow",
398
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
399
+ },
400
+ {
401
+ "name": "InvalidPricePrecision",
402
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
403
+ },
404
+ {
405
+ "name": "OwnerNotSet",
406
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
407
+ },
408
+ {
409
+ "name": "InvalidMinOrder",
410
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
411
+ }
412
+ ]
413
+ },
414
+ {
415
+ "type": "enum contract_schema::order_book::OrderCancelError",
416
+ "metadataTypeId": 4,
417
+ "components": [
418
+ {
419
+ "name": "NotOrderOwner",
420
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
421
+ },
422
+ {
423
+ "name": "TraderNotBlacklisted",
424
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
425
+ },
426
+ {
427
+ "name": "NoBlacklist",
428
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
429
+ }
430
+ ]
431
+ },
432
+ {
433
+ "type": "enum contract_schema::order_book::OrderCreationError",
434
+ "metadataTypeId": 5,
435
+ "components": [
436
+ {
437
+ "name": "InvalidOrderArgs",
438
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
439
+ },
440
+ {
441
+ "name": "InvalidInputAmount",
442
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
443
+ },
444
+ {
445
+ "name": "InvalidAsset",
446
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
447
+ },
448
+ {
449
+ "name": "PriceExceedsRange",
450
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
451
+ },
452
+ {
453
+ "name": "PricePrecision",
454
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
455
+ },
456
+ {
457
+ "name": "InvalidHeapPrices",
458
+ "typeId": 1
459
+ },
460
+ {
461
+ "name": "FractionalPrice",
462
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
463
+ },
464
+ {
465
+ "name": "OrderNotFilled",
466
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
467
+ },
468
+ {
469
+ "name": "OrderPartiallyFilled",
470
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
471
+ },
472
+ {
473
+ "name": "TraderNotWhiteListed",
474
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
475
+ },
476
+ {
477
+ "name": "TraderBlackListed",
478
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
479
+ },
480
+ {
481
+ "name": "InvalidMarketOrder",
482
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
483
+ },
484
+ {
485
+ "name": "InvalidMarketOrderArgs",
486
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
487
+ }
488
+ ]
489
+ },
490
+ {
491
+ "type": "enum contract_schema::order_book::OrderType",
492
+ "metadataTypeId": 6,
493
+ "components": [
494
+ {
495
+ "name": "Limit",
496
+ "typeId": 0
497
+ },
498
+ {
499
+ "name": "Spot",
500
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
501
+ },
502
+ {
503
+ "name": "FillOrKill",
504
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
505
+ },
506
+ {
507
+ "name": "PostOnly",
508
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
509
+ },
510
+ {
511
+ "name": "Market",
512
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
513
+ },
514
+ {
515
+ "name": "BoundedMarket",
516
+ "typeId": 1
517
+ }
518
+ ]
519
+ },
520
+ {
521
+ "type": "enum contract_schema::order_book::Side",
522
+ "metadataTypeId": 7,
523
+ "components": [
524
+ {
525
+ "name": "Buy",
526
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
527
+ },
528
+ {
529
+ "name": "Sell",
530
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "type": "enum ownership::errors::InitializationError",
536
+ "metadataTypeId": 8,
537
+ "components": [
538
+ {
539
+ "name": "CannotReinitialized",
540
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
541
+ }
542
+ ]
543
+ },
544
+ {
545
+ "type": "enum pausable::errors::PauseError",
546
+ "metadataTypeId": 9,
547
+ "components": [
548
+ {
549
+ "name": "Paused",
550
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
551
+ },
552
+ {
553
+ "name": "NotPaused",
554
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
555
+ }
556
+ ]
557
+ },
558
+ {
559
+ "type": "enum src5::AccessError",
560
+ "metadataTypeId": 10,
561
+ "components": [
562
+ {
563
+ "name": "NotOwner",
564
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
565
+ }
566
+ ]
567
+ },
568
+ {
569
+ "type": "enum src5::State",
570
+ "metadataTypeId": 11,
571
+ "components": [
572
+ {
573
+ "name": "Uninitialized",
574
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
575
+ },
576
+ {
577
+ "name": "Initialized",
578
+ "typeId": 12
579
+ },
580
+ {
581
+ "name": "Revoked",
582
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
583
+ }
584
+ ]
585
+ },
586
+ {
587
+ "type": "enum std::identity::Identity",
588
+ "metadataTypeId": 12,
589
+ "components": [
590
+ {
591
+ "name": "Address",
592
+ "typeId": 37
593
+ },
594
+ {
595
+ "name": "ContractId",
596
+ "typeId": 41
597
+ }
598
+ ]
599
+ },
600
+ {
601
+ "type": "enum std::option::Option",
602
+ "metadataTypeId": 13,
603
+ "components": [
604
+ {
605
+ "name": "None",
606
+ "typeId": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d"
607
+ },
608
+ {
609
+ "name": "Some",
610
+ "typeId": 14
611
+ }
612
+ ],
613
+ "typeParameters": [
614
+ 14
615
+ ]
616
+ },
617
+ {
618
+ "type": "generic T",
619
+ "metadataTypeId": 14
620
+ },
621
+ {
622
+ "type": "raw untyped ptr",
623
+ "metadataTypeId": 15
624
+ },
625
+ {
626
+ "type": "struct contract_schema::order_book::ExpireMakerEvent",
627
+ "metadataTypeId": 16,
628
+ "components": [
629
+ {
630
+ "name": "order_id",
631
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
632
+ },
633
+ {
634
+ "name": "timestamp",
635
+ "typeId": 43
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "type": "struct contract_schema::order_book::FeesClaimedEvent",
641
+ "metadataTypeId": 17,
642
+ "components": [
643
+ {
644
+ "name": "base_fees",
645
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
646
+ },
647
+ {
648
+ "name": "quote_fees",
649
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "type": "struct contract_schema::order_book::FeesCollectedEvent",
655
+ "metadataTypeId": 18,
656
+ "components": [
657
+ {
658
+ "name": "base_fees",
659
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
660
+ },
661
+ {
662
+ "name": "quote_fees",
663
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
664
+ }
665
+ ]
666
+ },
667
+ {
668
+ "type": "struct contract_schema::order_book::MatchId",
669
+ "metadataTypeId": 19,
670
+ "components": [
671
+ {
672
+ "name": "maker_id",
673
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
674
+ },
675
+ {
676
+ "name": "taker_id",
677
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
678
+ }
679
+ ]
680
+ },
681
+ {
682
+ "type": "struct contract_schema::order_book::Order",
683
+ "metadataTypeId": 20,
684
+ "components": [
685
+ {
686
+ "name": "order_id",
687
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
688
+ },
689
+ {
690
+ "name": "trader_id",
691
+ "typeId": 12
692
+ },
693
+ {
694
+ "name": "side",
695
+ "typeId": 7
696
+ },
697
+ {
698
+ "name": "price",
699
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
700
+ },
701
+ {
702
+ "name": "quantity",
703
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
704
+ },
705
+ {
706
+ "name": "order_type",
707
+ "typeId": 6
708
+ }
709
+ ]
710
+ },
711
+ {
712
+ "type": "struct contract_schema::order_book::OrderArgs",
713
+ "metadataTypeId": 21,
714
+ "components": [
715
+ {
716
+ "name": "price",
717
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
718
+ },
719
+ {
720
+ "name": "quantity",
721
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
722
+ },
723
+ {
724
+ "name": "order_type",
725
+ "typeId": 6
726
+ }
727
+ ]
728
+ },
729
+ {
730
+ "type": "struct contract_schema::order_book::OrderBookBlacklistEvent",
731
+ "metadataTypeId": 22,
732
+ "components": [
733
+ {
734
+ "name": "blacklist",
735
+ "typeId": 13,
736
+ "typeArguments": [
737
+ {
738
+ "name": "",
739
+ "typeId": 41
740
+ }
741
+ ]
742
+ }
743
+ ]
744
+ },
745
+ {
746
+ "type": "struct contract_schema::order_book::OrderBookConfigEvent",
747
+ "metadataTypeId": 23,
748
+ "components": [
749
+ {
750
+ "name": "base_asset",
751
+ "typeId": 38
752
+ },
753
+ {
754
+ "name": "quote_asset",
755
+ "typeId": 38
756
+ },
757
+ {
758
+ "name": "base_decimals",
759
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
760
+ },
761
+ {
762
+ "name": "quote_decimals",
763
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
764
+ },
765
+ {
766
+ "name": "min_order",
767
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
768
+ },
769
+ {
770
+ "name": "maker_fee",
771
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
772
+ },
773
+ {
774
+ "name": "taker_fee",
775
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
776
+ },
777
+ {
778
+ "name": "price_precision",
779
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
780
+ },
781
+ {
782
+ "name": "quantity_precision",
783
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
784
+ },
785
+ {
786
+ "name": "price_window",
787
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
788
+ },
789
+ {
790
+ "name": "dust",
791
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
792
+ },
793
+ {
794
+ "name": "allow_fractional_price",
795
+ "typeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
796
+ }
797
+ ]
798
+ },
799
+ {
800
+ "type": "struct contract_schema::order_book::OrderBookSymbolsEvent",
801
+ "metadataTypeId": 24,
802
+ "components": [
803
+ {
804
+ "name": "base_symbol",
805
+ "typeId": 42
806
+ },
807
+ {
808
+ "name": "quote_symbol",
809
+ "typeId": 42
810
+ }
811
+ ]
812
+ },
813
+ {
814
+ "type": "struct contract_schema::order_book::OrderBookWhitelistEvent",
815
+ "metadataTypeId": 25,
816
+ "components": [
817
+ {
818
+ "name": "whitelist",
819
+ "typeId": 13,
820
+ "typeArguments": [
821
+ {
822
+ "name": "",
823
+ "typeId": 41
824
+ }
825
+ ]
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ "type": "struct contract_schema::order_book::OrderCancelledEvent",
831
+ "metadataTypeId": 26,
832
+ "components": [
833
+ {
834
+ "name": "order_id",
835
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
836
+ },
837
+ {
838
+ "name": "timestamp",
839
+ "typeId": 43
840
+ }
841
+ ]
842
+ },
843
+ {
844
+ "type": "struct contract_schema::order_book::OrderCancelledInternalEvent",
845
+ "metadataTypeId": 27,
846
+ "components": [
847
+ {
848
+ "name": "order_id",
849
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
850
+ },
851
+ {
852
+ "name": "timestamp",
853
+ "typeId": 43
854
+ }
855
+ ]
856
+ },
857
+ {
858
+ "type": "struct contract_schema::order_book::OrderCreatedEvent",
859
+ "metadataTypeId": 28,
860
+ "components": [
861
+ {
862
+ "name": "order_id",
863
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
864
+ },
865
+ {
866
+ "name": "trader_id",
867
+ "typeId": 12
868
+ },
869
+ {
870
+ "name": "order_side",
871
+ "typeId": 7
872
+ },
873
+ {
874
+ "name": "order_type",
875
+ "typeId": 6
876
+ },
877
+ {
878
+ "name": "quantity",
879
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
880
+ },
881
+ {
882
+ "name": "price",
883
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
884
+ },
885
+ {
886
+ "name": "timestamp",
887
+ "typeId": 43
888
+ }
889
+ ]
890
+ },
891
+ {
892
+ "type": "struct contract_schema::order_book::OrderMatchedEvent",
893
+ "metadataTypeId": 29,
894
+ "components": [
895
+ {
896
+ "name": "match_id",
897
+ "typeId": 19
898
+ },
899
+ {
900
+ "name": "quantity",
901
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
902
+ },
903
+ {
904
+ "name": "price",
905
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
906
+ },
907
+ {
908
+ "name": "timestamp",
909
+ "typeId": 43
910
+ }
911
+ ]
912
+ },
913
+ {
914
+ "type": "struct contract_schema::order_book::OrderOutOfGasEvent",
915
+ "metadataTypeId": 30,
916
+ "components": [
917
+ {
918
+ "name": "order_id",
919
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
920
+ },
921
+ {
922
+ "name": "timestamp",
923
+ "typeId": 43
924
+ }
925
+ ]
926
+ },
927
+ {
928
+ "type": "struct contract_schema::order_book::OrderTooSmallEvent",
929
+ "metadataTypeId": 31,
930
+ "components": [
931
+ {
932
+ "name": "order_id",
933
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
934
+ },
935
+ {
936
+ "name": "timestamp",
937
+ "typeId": 43
938
+ }
939
+ ]
940
+ },
941
+ {
942
+ "type": "struct contract_schema::order_book::WithdrawSettledTradeEvent",
943
+ "metadataTypeId": 32,
944
+ "components": [
945
+ {
946
+ "name": "trader_id",
947
+ "typeId": 12
948
+ },
949
+ {
950
+ "name": "base_amount",
951
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
952
+ },
953
+ {
954
+ "name": "quote_amount",
955
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
956
+ }
957
+ ]
958
+ },
959
+ {
960
+ "type": "struct ownership::events::OwnershipSet",
961
+ "metadataTypeId": 33,
962
+ "components": [
963
+ {
964
+ "name": "new_owner",
965
+ "typeId": 12
966
+ }
967
+ ]
968
+ },
969
+ {
970
+ "type": "struct ownership::events::OwnershipTransferred",
971
+ "metadataTypeId": 34,
972
+ "components": [
973
+ {
974
+ "name": "new_owner",
975
+ "typeId": 12
976
+ },
977
+ {
978
+ "name": "previous_owner",
979
+ "typeId": 12
980
+ }
981
+ ]
982
+ },
983
+ {
984
+ "type": "struct pausable::events::PauseEvent",
985
+ "metadataTypeId": 35,
986
+ "components": [
987
+ {
988
+ "name": "caller",
989
+ "typeId": 12
990
+ }
991
+ ]
992
+ },
993
+ {
994
+ "type": "struct pausable::events::UnpauseEvent",
995
+ "metadataTypeId": 36,
996
+ "components": [
997
+ {
998
+ "name": "caller",
999
+ "typeId": 12
1000
+ }
1001
+ ]
1002
+ },
1003
+ {
1004
+ "type": "struct std::address::Address",
1005
+ "metadataTypeId": 37,
1006
+ "components": [
1007
+ {
1008
+ "name": "bits",
1009
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
1010
+ }
1011
+ ]
1012
+ },
1013
+ {
1014
+ "type": "struct std::asset_id::AssetId",
1015
+ "metadataTypeId": 38,
1016
+ "components": [
1017
+ {
1018
+ "name": "bits",
1019
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
1020
+ }
1021
+ ]
1022
+ },
1023
+ {
1024
+ "type": "struct std::bytes::Bytes",
1025
+ "metadataTypeId": 39,
1026
+ "components": [
1027
+ {
1028
+ "name": "buf",
1029
+ "typeId": 40
1030
+ },
1031
+ {
1032
+ "name": "len",
1033
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1034
+ }
1035
+ ]
1036
+ },
1037
+ {
1038
+ "type": "struct std::bytes::RawBytes",
1039
+ "metadataTypeId": 40,
1040
+ "components": [
1041
+ {
1042
+ "name": "ptr",
1043
+ "typeId": 15
1044
+ },
1045
+ {
1046
+ "name": "cap",
1047
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1048
+ }
1049
+ ]
1050
+ },
1051
+ {
1052
+ "type": "struct std::contract_id::ContractId",
1053
+ "metadataTypeId": 41,
1054
+ "components": [
1055
+ {
1056
+ "name": "bits",
1057
+ "typeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
1058
+ }
1059
+ ]
1060
+ },
1061
+ {
1062
+ "type": "struct std::string::String",
1063
+ "metadataTypeId": 42,
1064
+ "components": [
1065
+ {
1066
+ "name": "bytes",
1067
+ "typeId": 39
1068
+ }
1069
+ ]
1070
+ },
1071
+ {
1072
+ "type": "struct std::time::Time",
1073
+ "metadataTypeId": 43,
1074
+ "components": [
1075
+ {
1076
+ "name": "unix",
1077
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1078
+ }
1079
+ ]
1080
+ },
1081
+ {
1082
+ "type": "struct std::vec::RawVec",
1083
+ "metadataTypeId": 44,
1084
+ "components": [
1085
+ {
1086
+ "name": "ptr",
1087
+ "typeId": 15
1088
+ },
1089
+ {
1090
+ "name": "cap",
1091
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1092
+ }
1093
+ ],
1094
+ "typeParameters": [
1095
+ 14
1096
+ ]
1097
+ },
1098
+ {
1099
+ "type": "struct std::vec::Vec",
1100
+ "metadataTypeId": 45,
1101
+ "components": [
1102
+ {
1103
+ "name": "buf",
1104
+ "typeId": 44,
1105
+ "typeArguments": [
1106
+ {
1107
+ "name": "",
1108
+ "typeId": 14
1109
+ }
1110
+ ]
1111
+ },
1112
+ {
1113
+ "name": "len",
1114
+ "typeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1115
+ }
1116
+ ],
1117
+ "typeParameters": [
1118
+ 14
1119
+ ]
1120
+ }
1121
+ ],
1122
+ "functions": [
1123
+ {
1124
+ "name": "cancel_order",
1125
+ "inputs": [
1126
+ {
1127
+ "name": "order_id",
1128
+ "concreteTypeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
1129
+ }
1130
+ ],
1131
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
1132
+ "attributes": [
1133
+ {
1134
+ "name": "doc-comment",
1135
+ "arguments": [
1136
+ " Cancels an active order."
1137
+ ]
1138
+ },
1139
+ {
1140
+ "name": "doc-comment",
1141
+ "arguments": [
1142
+ " Only the original trader who created the order can cancel it."
1143
+ ]
1144
+ },
1145
+ {
1146
+ "name": "doc-comment",
1147
+ "arguments": [
1148
+ ""
1149
+ ]
1150
+ },
1151
+ {
1152
+ "name": "doc-comment",
1153
+ "arguments": [
1154
+ " # Arguments"
1155
+ ]
1156
+ },
1157
+ {
1158
+ "name": "doc-comment",
1159
+ "arguments": [
1160
+ ""
1161
+ ]
1162
+ },
1163
+ {
1164
+ "name": "doc-comment",
1165
+ "arguments": [
1166
+ " * `order_id` - The unique identifier of the order to cancel"
1167
+ ]
1168
+ },
1169
+ {
1170
+ "name": "doc-comment",
1171
+ "arguments": [
1172
+ ""
1173
+ ]
1174
+ },
1175
+ {
1176
+ "name": "doc-comment",
1177
+ "arguments": [
1178
+ " # Context Requirements"
1179
+ ]
1180
+ },
1181
+ {
1182
+ "name": "doc-comment",
1183
+ "arguments": [
1184
+ ""
1185
+ ]
1186
+ },
1187
+ {
1188
+ "name": "doc-comment",
1189
+ "arguments": [
1190
+ " * `msg_sender` - Must match the trader_id of the order being cancelled"
1191
+ ]
1192
+ },
1193
+ {
1194
+ "name": "doc-comment",
1195
+ "arguments": [
1196
+ ""
1197
+ ]
1198
+ },
1199
+ {
1200
+ "name": "doc-comment",
1201
+ "arguments": [
1202
+ " # Returns"
1203
+ ]
1204
+ },
1205
+ {
1206
+ "name": "doc-comment",
1207
+ "arguments": [
1208
+ ""
1209
+ ]
1210
+ },
1211
+ {
1212
+ "name": "doc-comment",
1213
+ "arguments": [
1214
+ " * `bool` - True if cancellation was successful, false otherwise"
1215
+ ]
1216
+ },
1217
+ {
1218
+ "name": "doc-comment",
1219
+ "arguments": [
1220
+ ""
1221
+ ]
1222
+ },
1223
+ {
1224
+ "name": "doc-comment",
1225
+ "arguments": [
1226
+ " # Storage Access"
1227
+ ]
1228
+ },
1229
+ {
1230
+ "name": "doc-comment",
1231
+ "arguments": [
1232
+ ""
1233
+ ]
1234
+ },
1235
+ {
1236
+ "name": "doc-comment",
1237
+ "arguments": [
1238
+ " - Reads: Order details to verify ownership (trader_id) and status"
1239
+ ]
1240
+ },
1241
+ {
1242
+ "name": "doc-comment",
1243
+ "arguments": [
1244
+ " - Writes: Updates order status and removes from active order book"
1245
+ ]
1246
+ },
1247
+ {
1248
+ "name": "doc-comment",
1249
+ "arguments": [
1250
+ ""
1251
+ ]
1252
+ },
1253
+ {
1254
+ "name": "doc-comment",
1255
+ "arguments": [
1256
+ " # Security"
1257
+ ]
1258
+ },
1259
+ {
1260
+ "name": "doc-comment",
1261
+ "arguments": [
1262
+ ""
1263
+ ]
1264
+ },
1265
+ {
1266
+ "name": "doc-comment",
1267
+ "arguments": [
1268
+ " - Verifies that msg_sender == order.trader_id before allowing cancellation"
1269
+ ]
1270
+ },
1271
+ {
1272
+ "name": "doc-comment",
1273
+ "arguments": [
1274
+ ""
1275
+ ]
1276
+ },
1277
+ {
1278
+ "name": "doc-comment",
1279
+ "arguments": [
1280
+ " # Events"
1281
+ ]
1282
+ },
1283
+ {
1284
+ "name": "doc-comment",
1285
+ "arguments": [
1286
+ ""
1287
+ ]
1288
+ },
1289
+ {
1290
+ "name": "doc-comment",
1291
+ "arguments": [
1292
+ " - Emits `OrderCancelledEvent` on successful cancellation"
1293
+ ]
1294
+ },
1295
+ {
1296
+ "name": "doc-comment",
1297
+ "arguments": [
1298
+ ""
1299
+ ]
1300
+ },
1301
+ {
1302
+ "name": "doc-comment",
1303
+ "arguments": [
1304
+ " # Reverts"
1305
+ ]
1306
+ },
1307
+ {
1308
+ "name": "doc-comment",
1309
+ "arguments": [
1310
+ ""
1311
+ ]
1312
+ },
1313
+ {
1314
+ "name": "doc-comment",
1315
+ "arguments": [
1316
+ " - If order does not exist"
1317
+ ]
1318
+ },
1319
+ {
1320
+ "name": "doc-comment",
1321
+ "arguments": [
1322
+ " - If msg_sender != order.trader_id (unauthorized cancellation attempt)"
1323
+ ]
1324
+ },
1325
+ {
1326
+ "name": "doc-comment",
1327
+ "arguments": [
1328
+ " - If order is already executed or cancelled"
1329
+ ]
1330
+ },
1331
+ {
1332
+ "name": "storage",
1333
+ "arguments": [
1334
+ "read",
1335
+ "write"
1336
+ ]
1337
+ }
1338
+ ]
1339
+ },
1340
+ {
1341
+ "name": "create_order",
1342
+ "inputs": [
1343
+ {
1344
+ "name": "order_args",
1345
+ "concreteTypeId": "027cfee5b9839be8e12b3b56eaf1315f269a86a23ae0a392f084185f7b54a410"
1346
+ }
1347
+ ],
1348
+ "output": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
1349
+ "attributes": [
1350
+ {
1351
+ "name": "doc-comment",
1352
+ "arguments": [
1353
+ " Creates a new order in the order book."
1354
+ ]
1355
+ },
1356
+ {
1357
+ "name": "doc-comment",
1358
+ "arguments": [
1359
+ " The order type (buy/sell) is automatically determined from the asset being sent."
1360
+ ]
1361
+ },
1362
+ {
1363
+ "name": "doc-comment",
1364
+ "arguments": [
1365
+ " If the order can be immediately matched with existing orders, it will be executed."
1366
+ ]
1367
+ },
1368
+ {
1369
+ "name": "doc-comment",
1370
+ "arguments": [
1371
+ " Otherwise, it will be added to the order book as an active order."
1372
+ ]
1373
+ },
1374
+ {
1375
+ "name": "doc-comment",
1376
+ "arguments": [
1377
+ ""
1378
+ ]
1379
+ },
1380
+ {
1381
+ "name": "doc-comment",
1382
+ "arguments": [
1383
+ " # Arguments"
1384
+ ]
1385
+ },
1386
+ {
1387
+ "name": "doc-comment",
1388
+ "arguments": [
1389
+ ""
1390
+ ]
1391
+ },
1392
+ {
1393
+ "name": "doc-comment",
1394
+ "arguments": [
1395
+ " * `order` - OrderArgs pub struct containing:"
1396
+ ]
1397
+ },
1398
+ {
1399
+ "name": "doc-comment",
1400
+ "arguments": [
1401
+ " - `price`: The limit price for the order"
1402
+ ]
1403
+ },
1404
+ {
1405
+ "name": "doc-comment",
1406
+ "arguments": [
1407
+ " - `quantity`: The amount to buy or sell"
1408
+ ]
1409
+ },
1410
+ {
1411
+ "name": "doc-comment",
1412
+ "arguments": [
1413
+ ""
1414
+ ]
1415
+ },
1416
+ {
1417
+ "name": "doc-comment",
1418
+ "arguments": [
1419
+ " # Context Requirements"
1420
+ ]
1421
+ },
1422
+ {
1423
+ "name": "doc-comment",
1424
+ "arguments": [
1425
+ ""
1426
+ ]
1427
+ },
1428
+ {
1429
+ "name": "doc-comment",
1430
+ "arguments": [
1431
+ " * `msg_sender` - The trader's identity (automatically captured from transaction context)"
1432
+ ]
1433
+ },
1434
+ {
1435
+ "name": "doc-comment",
1436
+ "arguments": [
1437
+ " * `msg_asset_id` - Determines the order type:"
1438
+ ]
1439
+ },
1440
+ {
1441
+ "name": "doc-comment",
1442
+ "arguments": [
1443
+ " - If QUOTE_ASSET is sent → Buy order (buying base with quote)"
1444
+ ]
1445
+ },
1446
+ {
1447
+ "name": "doc-comment",
1448
+ "arguments": [
1449
+ " - If BASE_ASSET is sent → Sell order (selling base for quote)"
1450
+ ]
1451
+ },
1452
+ {
1453
+ "name": "doc-comment",
1454
+ "arguments": [
1455
+ " * `msg_amount` - The amount of asset being sent:"
1456
+ ]
1457
+ },
1458
+ {
1459
+ "name": "doc-comment",
1460
+ "arguments": [
1461
+ " - For buy orders: quote amount (should equal quantity * price)"
1462
+ ]
1463
+ },
1464
+ {
1465
+ "name": "doc-comment",
1466
+ "arguments": [
1467
+ " - For sell orders: base amount (should equal quantity)"
1468
+ ]
1469
+ },
1470
+ {
1471
+ "name": "doc-comment",
1472
+ "arguments": [
1473
+ ""
1474
+ ]
1475
+ },
1476
+ {
1477
+ "name": "doc-comment",
1478
+ "arguments": [
1479
+ " # Returns"
1480
+ ]
1481
+ },
1482
+ {
1483
+ "name": "doc-comment",
1484
+ "arguments": [
1485
+ ""
1486
+ ]
1487
+ },
1488
+ {
1489
+ "name": "doc-comment",
1490
+ "arguments": [
1491
+ " * `OrderId` - Unique identifier for the created order"
1492
+ ]
1493
+ },
1494
+ {
1495
+ "name": "doc-comment",
1496
+ "arguments": [
1497
+ ""
1498
+ ]
1499
+ },
1500
+ {
1501
+ "name": "doc-comment",
1502
+ "arguments": [
1503
+ " # Storage Access"
1504
+ ]
1505
+ },
1506
+ {
1507
+ "name": "doc-comment",
1508
+ "arguments": [
1509
+ ""
1510
+ ]
1511
+ },
1512
+ {
1513
+ "name": "doc-comment",
1514
+ "arguments": [
1515
+ " - Reads: Current order book state to check for matches"
1516
+ ]
1517
+ },
1518
+ {
1519
+ "name": "doc-comment",
1520
+ "arguments": [
1521
+ " - Writes: Updates order book with new order or executes trades"
1522
+ ]
1523
+ },
1524
+ {
1525
+ "name": "doc-comment",
1526
+ "arguments": [
1527
+ ""
1528
+ ]
1529
+ },
1530
+ {
1531
+ "name": "doc-comment",
1532
+ "arguments": [
1533
+ " # Events"
1534
+ ]
1535
+ },
1536
+ {
1537
+ "name": "doc-comment",
1538
+ "arguments": [
1539
+ ""
1540
+ ]
1541
+ },
1542
+ {
1543
+ "name": "doc-comment",
1544
+ "arguments": [
1545
+ " - Emits `OrderCreatedEvent` if order is added to book"
1546
+ ]
1547
+ },
1548
+ {
1549
+ "name": "doc-comment",
1550
+ "arguments": [
1551
+ " - Emits `OrderMatchedEvent` for each match executed"
1552
+ ]
1553
+ },
1554
+ {
1555
+ "name": "doc-comment",
1556
+ "arguments": [
1557
+ ""
1558
+ ]
1559
+ },
1560
+ {
1561
+ "name": "doc-comment",
1562
+ "arguments": [
1563
+ " # Reverts"
1564
+ ]
1565
+ },
1566
+ {
1567
+ "name": "doc-comment",
1568
+ "arguments": [
1569
+ ""
1570
+ ]
1571
+ },
1572
+ {
1573
+ "name": "doc-comment",
1574
+ "arguments": [
1575
+ " - If quantity is zero"
1576
+ ]
1577
+ },
1578
+ {
1579
+ "name": "doc-comment",
1580
+ "arguments": [
1581
+ " - If price is zero"
1582
+ ]
1583
+ },
1584
+ {
1585
+ "name": "doc-comment",
1586
+ "arguments": [
1587
+ " - If msg_asset_id is neither BASE_ASSET nor QUOTE_ASSET"
1588
+ ]
1589
+ },
1590
+ {
1591
+ "name": "doc-comment",
1592
+ "arguments": [
1593
+ " - If msg_amount doesn't match expected amount:"
1594
+ ]
1595
+ },
1596
+ {
1597
+ "name": "doc-comment",
1598
+ "arguments": [
1599
+ " - Buy orders: msg_amount != quantity * price"
1600
+ ]
1601
+ },
1602
+ {
1603
+ "name": "doc-comment",
1604
+ "arguments": [
1605
+ " - Sell orders: msg_amount != quantity"
1606
+ ]
1607
+ },
1608
+ {
1609
+ "name": "storage",
1610
+ "arguments": [
1611
+ "read",
1612
+ "write"
1613
+ ]
1614
+ },
1615
+ {
1616
+ "name": "payable",
1617
+ "arguments": []
1618
+ }
1619
+ ]
1620
+ },
1621
+ {
1622
+ "name": "get_base_asset",
1623
+ "inputs": [],
1624
+ "output": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
1625
+ "attributes": [
1626
+ {
1627
+ "name": "doc-comment",
1628
+ "arguments": [
1629
+ " Returns the base asset of this trading pair."
1630
+ ]
1631
+ },
1632
+ {
1633
+ "name": "doc-comment",
1634
+ "arguments": [
1635
+ " This is set at contract deployment via configurables."
1636
+ ]
1637
+ },
1638
+ {
1639
+ "name": "doc-comment",
1640
+ "arguments": [
1641
+ ""
1642
+ ]
1643
+ },
1644
+ {
1645
+ "name": "doc-comment",
1646
+ "arguments": [
1647
+ " # Returns"
1648
+ ]
1649
+ },
1650
+ {
1651
+ "name": "doc-comment",
1652
+ "arguments": [
1653
+ ""
1654
+ ]
1655
+ },
1656
+ {
1657
+ "name": "doc-comment",
1658
+ "arguments": [
1659
+ " * `AssetId` - The base asset identifier (e.g., BTC in BTC/USDC)"
1660
+ ]
1661
+ }
1662
+ ]
1663
+ },
1664
+ {
1665
+ "name": "get_best_buy",
1666
+ "inputs": [],
1667
+ "output": "d852149004cc9ec0bbe7dc4e37bffea1d41469b759512b6136f2e865a4c06e7d",
1668
+ "attributes": [
1669
+ {
1670
+ "name": "doc-comment",
1671
+ "arguments": [
1672
+ " Returns the best (highest) buy price in the order book."
1673
+ ]
1674
+ },
1675
+ {
1676
+ "name": "doc-comment",
1677
+ "arguments": [
1678
+ " The best buy represents the highest price a buyer is willing to pay."
1679
+ ]
1680
+ },
1681
+ {
1682
+ "name": "doc-comment",
1683
+ "arguments": [
1684
+ ""
1685
+ ]
1686
+ },
1687
+ {
1688
+ "name": "doc-comment",
1689
+ "arguments": [
1690
+ " # Returns"
1691
+ ]
1692
+ },
1693
+ {
1694
+ "name": "doc-comment",
1695
+ "arguments": [
1696
+ ""
1697
+ ]
1698
+ },
1699
+ {
1700
+ "name": "doc-comment",
1701
+ "arguments": [
1702
+ " * `Option<Price>` - The best buy price, or None if no buy orders exist"
1703
+ ]
1704
+ },
1705
+ {
1706
+ "name": "doc-comment",
1707
+ "arguments": [
1708
+ ""
1709
+ ]
1710
+ },
1711
+ {
1712
+ "name": "doc-comment",
1713
+ "arguments": [
1714
+ " # Storage Access"
1715
+ ]
1716
+ },
1717
+ {
1718
+ "name": "doc-comment",
1719
+ "arguments": [
1720
+ ""
1721
+ ]
1722
+ },
1723
+ {
1724
+ "name": "doc-comment",
1725
+ "arguments": [
1726
+ " - Reads: Buy side order book"
1727
+ ]
1728
+ },
1729
+ {
1730
+ "name": "storage",
1731
+ "arguments": [
1732
+ "read"
1733
+ ]
1734
+ }
1735
+ ]
1736
+ },
1737
+ {
1738
+ "name": "get_best_sell",
1739
+ "inputs": [],
1740
+ "output": "d852149004cc9ec0bbe7dc4e37bffea1d41469b759512b6136f2e865a4c06e7d",
1741
+ "attributes": [
1742
+ {
1743
+ "name": "doc-comment",
1744
+ "arguments": [
1745
+ " Returns the best (lowest) sell price in the order book."
1746
+ ]
1747
+ },
1748
+ {
1749
+ "name": "doc-comment",
1750
+ "arguments": [
1751
+ " The best sell represents the lowest price a seller is willing to accept."
1752
+ ]
1753
+ },
1754
+ {
1755
+ "name": "doc-comment",
1756
+ "arguments": [
1757
+ ""
1758
+ ]
1759
+ },
1760
+ {
1761
+ "name": "doc-comment",
1762
+ "arguments": [
1763
+ " # Returns"
1764
+ ]
1765
+ },
1766
+ {
1767
+ "name": "doc-comment",
1768
+ "arguments": [
1769
+ ""
1770
+ ]
1771
+ },
1772
+ {
1773
+ "name": "doc-comment",
1774
+ "arguments": [
1775
+ " * `Option<Price>` - The best sell price, or None if no sell orders exist"
1776
+ ]
1777
+ },
1778
+ {
1779
+ "name": "doc-comment",
1780
+ "arguments": [
1781
+ ""
1782
+ ]
1783
+ },
1784
+ {
1785
+ "name": "doc-comment",
1786
+ "arguments": [
1787
+ " # Storage Access"
1788
+ ]
1789
+ },
1790
+ {
1791
+ "name": "doc-comment",
1792
+ "arguments": [
1793
+ ""
1794
+ ]
1795
+ },
1796
+ {
1797
+ "name": "doc-comment",
1798
+ "arguments": [
1799
+ " - Reads: Sell side order book"
1800
+ ]
1801
+ },
1802
+ {
1803
+ "name": "storage",
1804
+ "arguments": [
1805
+ "read"
1806
+ ]
1807
+ }
1808
+ ]
1809
+ },
1810
+ {
1811
+ "name": "get_blacklist_id",
1812
+ "inputs": [],
1813
+ "output": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8",
1814
+ "attributes": null
1815
+ },
1816
+ {
1817
+ "name": "get_heap_price",
1818
+ "inputs": [
1819
+ {
1820
+ "name": "side",
1821
+ "concreteTypeId": "9a10e2c94a13825d2af23f4a4743379feba2acfcec8e2d775e945c5452e84708"
1822
+ },
1823
+ {
1824
+ "name": "price",
1825
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
1826
+ }
1827
+ ],
1828
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
1829
+ "attributes": [
1830
+ {
1831
+ "name": "doc-comment",
1832
+ "arguments": [
1833
+ " Returns true if orders exist at a specific price and side in the price heap."
1834
+ ]
1835
+ },
1836
+ {
1837
+ "name": "doc-comment",
1838
+ "arguments": [
1839
+ ""
1840
+ ]
1841
+ },
1842
+ {
1843
+ "name": "doc-comment",
1844
+ "arguments": [
1845
+ " # Arguments"
1846
+ ]
1847
+ },
1848
+ {
1849
+ "name": "doc-comment",
1850
+ "arguments": [
1851
+ ""
1852
+ ]
1853
+ },
1854
+ {
1855
+ "name": "doc-comment",
1856
+ "arguments": [
1857
+ " * `side`: [Side] - Either the buy or sell orders."
1858
+ ]
1859
+ },
1860
+ {
1861
+ "name": "doc-comment",
1862
+ "arguments": [
1863
+ " * `price`: [u64] - The price level to fetch."
1864
+ ]
1865
+ },
1866
+ {
1867
+ "name": "doc-comment",
1868
+ "arguments": [
1869
+ ""
1870
+ ]
1871
+ },
1872
+ {
1873
+ "name": "doc-comment",
1874
+ "arguments": [
1875
+ " # Returns"
1876
+ ]
1877
+ },
1878
+ {
1879
+ "name": "doc-comment",
1880
+ "arguments": [
1881
+ ""
1882
+ ]
1883
+ },
1884
+ {
1885
+ "name": "doc-comment",
1886
+ "arguments": [
1887
+ " * `bool` - `true` if orders exist at the price level, otherwise `false`."
1888
+ ]
1889
+ },
1890
+ {
1891
+ "name": "storage",
1892
+ "arguments": [
1893
+ "read"
1894
+ ]
1895
+ }
1896
+ ]
1897
+ },
1898
+ {
1899
+ "name": "get_last_traded_price",
1900
+ "inputs": [],
1901
+ "output": "3639c0c1fb291a3e7e7ab4d9fe1d6762d6ff0fde0777d0ef8f3799d2f3d70a95",
1902
+ "attributes": [
1903
+ {
1904
+ "name": "doc-comment",
1905
+ "arguments": [
1906
+ " Returns the last traded price and timestamp."
1907
+ ]
1908
+ },
1909
+ {
1910
+ "name": "doc-comment",
1911
+ "arguments": [
1912
+ " Useful for tracking market activity and price discovery."
1913
+ ]
1914
+ },
1915
+ {
1916
+ "name": "doc-comment",
1917
+ "arguments": [
1918
+ ""
1919
+ ]
1920
+ },
1921
+ {
1922
+ "name": "doc-comment",
1923
+ "arguments": [
1924
+ " # Returns"
1925
+ ]
1926
+ },
1927
+ {
1928
+ "name": "doc-comment",
1929
+ "arguments": [
1930
+ ""
1931
+ ]
1932
+ },
1933
+ {
1934
+ "name": "doc-comment",
1935
+ "arguments": [
1936
+ " * `(Price, Time)` - Tuple containing:"
1937
+ ]
1938
+ },
1939
+ {
1940
+ "name": "doc-comment",
1941
+ "arguments": [
1942
+ " - Price: The last execution price"
1943
+ ]
1944
+ },
1945
+ {
1946
+ "name": "doc-comment",
1947
+ "arguments": [
1948
+ " - Time: Unix timestamp of the last trade"
1949
+ ]
1950
+ },
1951
+ {
1952
+ "name": "doc-comment",
1953
+ "arguments": [
1954
+ " - Returns (0, 0) if no trades have occurred"
1955
+ ]
1956
+ },
1957
+ {
1958
+ "name": "doc-comment",
1959
+ "arguments": [
1960
+ ""
1961
+ ]
1962
+ },
1963
+ {
1964
+ "name": "doc-comment",
1965
+ "arguments": [
1966
+ " # Storage Access"
1967
+ ]
1968
+ },
1969
+ {
1970
+ "name": "doc-comment",
1971
+ "arguments": [
1972
+ ""
1973
+ ]
1974
+ },
1975
+ {
1976
+ "name": "doc-comment",
1977
+ "arguments": [
1978
+ " - Reads: Last traded price from storage"
1979
+ ]
1980
+ },
1981
+ {
1982
+ "name": "storage",
1983
+ "arguments": [
1984
+ "read"
1985
+ ]
1986
+ }
1987
+ ]
1988
+ },
1989
+ {
1990
+ "name": "get_maker_fee",
1991
+ "inputs": [],
1992
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
1993
+ "attributes": [
1994
+ {
1995
+ "name": "doc-comment",
1996
+ "arguments": [
1997
+ " Returns the maker fee percentage."
1998
+ ]
1999
+ },
2000
+ {
2001
+ "name": "doc-comment",
2002
+ "arguments": [
2003
+ " Makers are orders that add liquidity to the order book."
2004
+ ]
2005
+ },
2006
+ {
2007
+ "name": "doc-comment",
2008
+ "arguments": [
2009
+ ""
2010
+ ]
2011
+ },
2012
+ {
2013
+ "name": "doc-comment",
2014
+ "arguments": [
2015
+ " # Returns"
2016
+ ]
2017
+ },
2018
+ {
2019
+ "name": "doc-comment",
2020
+ "arguments": [
2021
+ ""
2022
+ ]
2023
+ },
2024
+ {
2025
+ "name": "doc-comment",
2026
+ "arguments": [
2027
+ " * `u64` - Fee percentage with 6 decimal precision"
2028
+ ]
2029
+ },
2030
+ {
2031
+ "name": "doc-comment",
2032
+ "arguments": [
2033
+ " - 1_000_000 represents 100%"
2034
+ ]
2035
+ },
2036
+ {
2037
+ "name": "doc-comment",
2038
+ "arguments": [
2039
+ " - 200 represents 0.02%"
2040
+ ]
2041
+ },
2042
+ {
2043
+ "name": "doc-comment",
2044
+ "arguments": [
2045
+ " - 0 means no maker fee"
2046
+ ]
2047
+ },
2048
+ {
2049
+ "name": "doc-comment",
2050
+ "arguments": [
2051
+ ""
2052
+ ]
2053
+ },
2054
+ {
2055
+ "name": "doc-comment",
2056
+ "arguments": [
2057
+ " # Note"
2058
+ ]
2059
+ },
2060
+ {
2061
+ "name": "doc-comment",
2062
+ "arguments": [
2063
+ ""
2064
+ ]
2065
+ },
2066
+ {
2067
+ "name": "doc-comment",
2068
+ "arguments": [
2069
+ " This is a configurable value set at contract deployment"
2070
+ ]
2071
+ }
2072
+ ]
2073
+ },
2074
+ {
2075
+ "name": "get_minimum_trade_amount",
2076
+ "inputs": [],
2077
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
2078
+ "attributes": [
2079
+ {
2080
+ "name": "doc-comment",
2081
+ "arguments": [
2082
+ " Returns the minimum volume amount to create an order."
2083
+ ]
2084
+ },
2085
+ {
2086
+ "name": "doc-comment",
2087
+ "arguments": [
2088
+ " Prevents dust orders and ensures economic viability."
2089
+ ]
2090
+ },
2091
+ {
2092
+ "name": "doc-comment",
2093
+ "arguments": [
2094
+ ""
2095
+ ]
2096
+ },
2097
+ {
2098
+ "name": "doc-comment",
2099
+ "arguments": [
2100
+ " # Returns"
2101
+ ]
2102
+ },
2103
+ {
2104
+ "name": "doc-comment",
2105
+ "arguments": [
2106
+ ""
2107
+ ]
2108
+ },
2109
+ {
2110
+ "name": "doc-comment",
2111
+ "arguments": [
2112
+ " * `u64` - Minimum trade amount (e.g., 20 USDC)"
2113
+ ]
2114
+ },
2115
+ {
2116
+ "name": "doc-comment",
2117
+ "arguments": [
2118
+ ""
2119
+ ]
2120
+ },
2121
+ {
2122
+ "name": "doc-comment",
2123
+ "arguments": [
2124
+ " # Note"
2125
+ ]
2126
+ },
2127
+ {
2128
+ "name": "doc-comment",
2129
+ "arguments": [
2130
+ ""
2131
+ ]
2132
+ },
2133
+ {
2134
+ "name": "doc-comment",
2135
+ "arguments": [
2136
+ " This is a configurable value set at contract deployment"
2137
+ ]
2138
+ }
2139
+ ]
2140
+ },
2141
+ {
2142
+ "name": "get_order",
2143
+ "inputs": [
2144
+ {
2145
+ "name": "order_id",
2146
+ "concreteTypeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b"
2147
+ }
2148
+ ],
2149
+ "output": "6cbb9ddffc993ba68abb27bb88aae72e4d50123c3fc8f05d663246d7c9f70724",
2150
+ "attributes": [
2151
+ {
2152
+ "name": "doc-comment",
2153
+ "arguments": [
2154
+ " Retrieves the details of a specific order."
2155
+ ]
2156
+ },
2157
+ {
2158
+ "name": "doc-comment",
2159
+ "arguments": [
2160
+ ""
2161
+ ]
2162
+ },
2163
+ {
2164
+ "name": "doc-comment",
2165
+ "arguments": [
2166
+ " # Arguments"
2167
+ ]
2168
+ },
2169
+ {
2170
+ "name": "doc-comment",
2171
+ "arguments": [
2172
+ ""
2173
+ ]
2174
+ },
2175
+ {
2176
+ "name": "doc-comment",
2177
+ "arguments": [
2178
+ " * `order_id` - The unique identifier of the order"
2179
+ ]
2180
+ },
2181
+ {
2182
+ "name": "doc-comment",
2183
+ "arguments": [
2184
+ ""
2185
+ ]
2186
+ },
2187
+ {
2188
+ "name": "doc-comment",
2189
+ "arguments": [
2190
+ " # Returns"
2191
+ ]
2192
+ },
2193
+ {
2194
+ "name": "doc-comment",
2195
+ "arguments": [
2196
+ ""
2197
+ ]
2198
+ },
2199
+ {
2200
+ "name": "doc-comment",
2201
+ "arguments": [
2202
+ " * `Option<Order>` - Order details if found, None if order doesn't exist"
2203
+ ]
2204
+ },
2205
+ {
2206
+ "name": "doc-comment",
2207
+ "arguments": [
2208
+ ""
2209
+ ]
2210
+ },
2211
+ {
2212
+ "name": "doc-comment",
2213
+ "arguments": [
2214
+ " # Storage Access"
2215
+ ]
2216
+ },
2217
+ {
2218
+ "name": "doc-comment",
2219
+ "arguments": [
2220
+ ""
2221
+ ]
2222
+ },
2223
+ {
2224
+ "name": "doc-comment",
2225
+ "arguments": [
2226
+ " - Reads: Order information from storage"
2227
+ ]
2228
+ },
2229
+ {
2230
+ "name": "storage",
2231
+ "arguments": [
2232
+ "read"
2233
+ ]
2234
+ }
2235
+ ]
2236
+ },
2237
+ {
2238
+ "name": "get_orders_at_price",
2239
+ "inputs": [
2240
+ {
2241
+ "name": "side",
2242
+ "concreteTypeId": "9a10e2c94a13825d2af23f4a4743379feba2acfcec8e2d775e945c5452e84708"
2243
+ },
2244
+ {
2245
+ "name": "price",
2246
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
2247
+ }
2248
+ ],
2249
+ "output": "d390c7062efc85cc0e3e0a9339016565cda69d055c218f82d362776998f4e505",
2250
+ "attributes": [
2251
+ {
2252
+ "name": "doc-comment",
2253
+ "arguments": [
2254
+ " Retrieves the orders at a specific price level and side"
2255
+ ]
2256
+ },
2257
+ {
2258
+ "name": "doc-comment",
2259
+ "arguments": [
2260
+ ""
2261
+ ]
2262
+ },
2263
+ {
2264
+ "name": "doc-comment",
2265
+ "arguments": [
2266
+ " # Arguments"
2267
+ ]
2268
+ },
2269
+ {
2270
+ "name": "doc-comment",
2271
+ "arguments": [
2272
+ ""
2273
+ ]
2274
+ },
2275
+ {
2276
+ "name": "doc-comment",
2277
+ "arguments": [
2278
+ " * `side`: [Side] - Either the buy or sell orders."
2279
+ ]
2280
+ },
2281
+ {
2282
+ "name": "doc-comment",
2283
+ "arguments": [
2284
+ " * `price`: [u64] - The price level to fetch."
2285
+ ]
2286
+ },
2287
+ {
2288
+ "name": "doc-comment",
2289
+ "arguments": [
2290
+ ""
2291
+ ]
2292
+ },
2293
+ {
2294
+ "name": "doc-comment",
2295
+ "arguments": [
2296
+ " # Returns"
2297
+ ]
2298
+ },
2299
+ {
2300
+ "name": "doc-comment",
2301
+ "arguments": [
2302
+ ""
2303
+ ]
2304
+ },
2305
+ {
2306
+ "name": "doc-comment",
2307
+ "arguments": [
2308
+ " * `Vec<Order>` - The orders at the specific price level."
2309
+ ]
2310
+ },
2311
+ {
2312
+ "name": "storage",
2313
+ "arguments": [
2314
+ "read"
2315
+ ]
2316
+ }
2317
+ ]
2318
+ },
2319
+ {
2320
+ "name": "get_price_precision",
2321
+ "inputs": [],
2322
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
2323
+ "attributes": null
2324
+ },
2325
+ {
2326
+ "name": "get_quantity_precision",
2327
+ "inputs": [],
2328
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
2329
+ "attributes": null
2330
+ },
2331
+ {
2332
+ "name": "get_quote_asset",
2333
+ "inputs": [],
2334
+ "output": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
2335
+ "attributes": [
2336
+ {
2337
+ "name": "doc-comment",
2338
+ "arguments": [
2339
+ " Returns the quote asset of this trading pair."
2340
+ ]
2341
+ },
2342
+ {
2343
+ "name": "doc-comment",
2344
+ "arguments": [
2345
+ " This is set at contract deployment via configurables."
2346
+ ]
2347
+ },
2348
+ {
2349
+ "name": "doc-comment",
2350
+ "arguments": [
2351
+ ""
2352
+ ]
2353
+ },
2354
+ {
2355
+ "name": "doc-comment",
2356
+ "arguments": [
2357
+ " # Returns"
2358
+ ]
2359
+ },
2360
+ {
2361
+ "name": "doc-comment",
2362
+ "arguments": [
2363
+ ""
2364
+ ]
2365
+ },
2366
+ {
2367
+ "name": "doc-comment",
2368
+ "arguments": [
2369
+ " * `AssetId` - The quote asset identifier (e.g., USDC in BTC/USDC)"
2370
+ ]
2371
+ }
2372
+ ]
2373
+ },
2374
+ {
2375
+ "name": "get_settled_balance_of",
2376
+ "inputs": [
2377
+ {
2378
+ "name": "trader",
2379
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
2380
+ }
2381
+ ],
2382
+ "output": "41bd1a98f0a59642d8f824c805b798a5f268d1f7d05808eb05c4189c493f1be0",
2383
+ "attributes": [
2384
+ {
2385
+ "name": "doc-comment",
2386
+ "arguments": [
2387
+ " Returns the settled balance of a trader."
2388
+ ]
2389
+ },
2390
+ {
2391
+ "name": "doc-comment",
2392
+ "arguments": [
2393
+ ""
2394
+ ]
2395
+ },
2396
+ {
2397
+ "name": "doc-comment",
2398
+ "arguments": [
2399
+ " # Arguments"
2400
+ ]
2401
+ },
2402
+ {
2403
+ "name": "doc-comment",
2404
+ "arguments": [
2405
+ ""
2406
+ ]
2407
+ },
2408
+ {
2409
+ "name": "doc-comment",
2410
+ "arguments": [
2411
+ " * `trader`: [Identity] - Which trader to check the settled balance of."
2412
+ ]
2413
+ },
2414
+ {
2415
+ "name": "doc-comment",
2416
+ "arguments": [
2417
+ ""
2418
+ ]
2419
+ },
2420
+ {
2421
+ "name": "doc-comment",
2422
+ "arguments": [
2423
+ " # Returns"
2424
+ ]
2425
+ },
2426
+ {
2427
+ "name": "doc-comment",
2428
+ "arguments": [
2429
+ ""
2430
+ ]
2431
+ },
2432
+ {
2433
+ "name": "doc-comment",
2434
+ "arguments": [
2435
+ " * `(u64, u64)` - The (BASE_ASSET, QUOTE_ASSET) tuple balance."
2436
+ ]
2437
+ },
2438
+ {
2439
+ "name": "storage",
2440
+ "arguments": [
2441
+ "read"
2442
+ ]
2443
+ }
2444
+ ]
2445
+ },
2446
+ {
2447
+ "name": "get_taker_fee",
2448
+ "inputs": [],
2449
+ "output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
2450
+ "attributes": [
2451
+ {
2452
+ "name": "doc-comment",
2453
+ "arguments": [
2454
+ " Returns the taker fee percentage."
2455
+ ]
2456
+ },
2457
+ {
2458
+ "name": "doc-comment",
2459
+ "arguments": [
2460
+ " Takers are orders that remove liquidity from the order book."
2461
+ ]
2462
+ },
2463
+ {
2464
+ "name": "doc-comment",
2465
+ "arguments": [
2466
+ ""
2467
+ ]
2468
+ },
2469
+ {
2470
+ "name": "doc-comment",
2471
+ "arguments": [
2472
+ " # Returns"
2473
+ ]
2474
+ },
2475
+ {
2476
+ "name": "doc-comment",
2477
+ "arguments": [
2478
+ ""
2479
+ ]
2480
+ },
2481
+ {
2482
+ "name": "doc-comment",
2483
+ "arguments": [
2484
+ " * `u64` - Fee percentage with 6 decimal precision"
2485
+ ]
2486
+ },
2487
+ {
2488
+ "name": "doc-comment",
2489
+ "arguments": [
2490
+ " - 1_000_000 represents 100%"
2491
+ ]
2492
+ },
2493
+ {
2494
+ "name": "doc-comment",
2495
+ "arguments": [
2496
+ " - 200 represents 0.02%"
2497
+ ]
2498
+ },
2499
+ {
2500
+ "name": "doc-comment",
2501
+ "arguments": [
2502
+ " - 0 means no taker fee"
2503
+ ]
2504
+ },
2505
+ {
2506
+ "name": "doc-comment",
2507
+ "arguments": [
2508
+ ""
2509
+ ]
2510
+ },
2511
+ {
2512
+ "name": "doc-comment",
2513
+ "arguments": [
2514
+ " # Note"
2515
+ ]
2516
+ },
2517
+ {
2518
+ "name": "doc-comment",
2519
+ "arguments": [
2520
+ ""
2521
+ ]
2522
+ },
2523
+ {
2524
+ "name": "doc-comment",
2525
+ "arguments": [
2526
+ " This is a configurable value set at contract deployment"
2527
+ ]
2528
+ }
2529
+ ]
2530
+ },
2531
+ {
2532
+ "name": "get_whitelist_id",
2533
+ "inputs": [],
2534
+ "output": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8",
2535
+ "attributes": null
2536
+ },
2537
+ {
2538
+ "name": "settle_balance",
2539
+ "inputs": [
2540
+ {
2541
+ "name": "trader",
2542
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
2543
+ }
2544
+ ],
2545
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2546
+ "attributes": [
2547
+ {
2548
+ "name": "doc-comment",
2549
+ "arguments": [
2550
+ " Withdraws the settled trade balances of a single trader."
2551
+ ]
2552
+ },
2553
+ {
2554
+ "name": "doc-comment",
2555
+ "arguments": [
2556
+ ""
2557
+ ]
2558
+ },
2559
+ {
2560
+ "name": "doc-comment",
2561
+ "arguments": [
2562
+ " # Argument"
2563
+ ]
2564
+ },
2565
+ {
2566
+ "name": "doc-comment",
2567
+ "arguments": [
2568
+ ""
2569
+ ]
2570
+ },
2571
+ {
2572
+ "name": "doc-comment",
2573
+ "arguments": [
2574
+ " * `trader`: [Identity] - The trader to settle their balance."
2575
+ ]
2576
+ },
2577
+ {
2578
+ "name": "storage",
2579
+ "arguments": [
2580
+ "read",
2581
+ "write"
2582
+ ]
2583
+ }
2584
+ ]
2585
+ },
2586
+ {
2587
+ "name": "settle_balances",
2588
+ "inputs": [
2589
+ {
2590
+ "name": "traders",
2591
+ "concreteTypeId": "2f79033d0d3729398611309f48578b56cf5162ba85e50f4d8fb79c9d9d1abc7b"
2592
+ }
2593
+ ],
2594
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2595
+ "attributes": [
2596
+ {
2597
+ "name": "doc-comment",
2598
+ "arguments": [
2599
+ " Withdraws the settled trade balances of a list of traders."
2600
+ ]
2601
+ },
2602
+ {
2603
+ "name": "doc-comment",
2604
+ "arguments": [
2605
+ ""
2606
+ ]
2607
+ },
2608
+ {
2609
+ "name": "doc-comment",
2610
+ "arguments": [
2611
+ " # Argument"
2612
+ ]
2613
+ },
2614
+ {
2615
+ "name": "doc-comment",
2616
+ "arguments": [
2617
+ ""
2618
+ ]
2619
+ },
2620
+ {
2621
+ "name": "doc-comment",
2622
+ "arguments": [
2623
+ " * `traders`: [Vec<Identity>] - The list of traders to settle their balances."
2624
+ ]
2625
+ },
2626
+ {
2627
+ "name": "storage",
2628
+ "arguments": [
2629
+ "read",
2630
+ "write"
2631
+ ]
2632
+ }
2633
+ ]
2634
+ },
2635
+ {
2636
+ "name": "cancel_blacklist_orders",
2637
+ "inputs": [
2638
+ {
2639
+ "name": "orders",
2640
+ "concreteTypeId": "32559685d0c9845f059bf9d472a0a38cf77d36c23dfcffe5489e86a65cdd9198"
2641
+ }
2642
+ ],
2643
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2644
+ "attributes": [
2645
+ {
2646
+ "name": "doc-comment",
2647
+ "arguments": [
2648
+ " Force cancels the given orders only if the trader is blacklisted."
2649
+ ]
2650
+ },
2651
+ {
2652
+ "name": "doc-comment",
2653
+ "arguments": [
2654
+ ""
2655
+ ]
2656
+ },
2657
+ {
2658
+ "name": "doc-comment",
2659
+ "arguments": [
2660
+ " # Arguments"
2661
+ ]
2662
+ },
2663
+ {
2664
+ "name": "doc-comment",
2665
+ "arguments": [
2666
+ ""
2667
+ ]
2668
+ },
2669
+ {
2670
+ "name": "doc-comment",
2671
+ "arguments": [
2672
+ " * [orders]: `Vec<OrderID>` - A vec of orders to cancel."
2673
+ ]
2674
+ },
2675
+ {
2676
+ "name": "doc-comment",
2677
+ "arguments": [
2678
+ ""
2679
+ ]
2680
+ },
2681
+ {
2682
+ "name": "doc-comment",
2683
+ "arguments": [
2684
+ " # Reverts"
2685
+ ]
2686
+ },
2687
+ {
2688
+ "name": "doc-comment",
2689
+ "arguments": [
2690
+ ""
2691
+ ]
2692
+ },
2693
+ {
2694
+ "name": "doc-comment",
2695
+ "arguments": [
2696
+ " * When not called by the owner."
2697
+ ]
2698
+ },
2699
+ {
2700
+ "name": "doc-comment",
2701
+ "arguments": [
2702
+ " * When the trader is not blacklisted."
2703
+ ]
2704
+ },
2705
+ {
2706
+ "name": "storage",
2707
+ "arguments": [
2708
+ "read",
2709
+ "write"
2710
+ ]
2711
+ }
2712
+ ]
2713
+ },
2714
+ {
2715
+ "name": "collect_fees",
2716
+ "inputs": [
2717
+ {
2718
+ "name": "fee_recipient",
2719
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
2720
+ }
2721
+ ],
2722
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2723
+ "attributes": [
2724
+ {
2725
+ "name": "doc-comment",
2726
+ "arguments": [
2727
+ " Withdraws the collected fees to a recipient."
2728
+ ]
2729
+ },
2730
+ {
2731
+ "name": "doc-comment",
2732
+ "arguments": [
2733
+ ""
2734
+ ]
2735
+ },
2736
+ {
2737
+ "name": "doc-comment",
2738
+ "arguments": [
2739
+ " # Arguments"
2740
+ ]
2741
+ },
2742
+ {
2743
+ "name": "doc-comment",
2744
+ "arguments": [
2745
+ ""
2746
+ ]
2747
+ },
2748
+ {
2749
+ "name": "doc-comment",
2750
+ "arguments": [
2751
+ " * [fee_recipient]: `Identity` - The entity which shall receive the fees collected."
2752
+ ]
2753
+ },
2754
+ {
2755
+ "name": "doc-comment",
2756
+ "arguments": [
2757
+ ""
2758
+ ]
2759
+ },
2760
+ {
2761
+ "name": "doc-comment",
2762
+ "arguments": [
2763
+ " # Reverts"
2764
+ ]
2765
+ },
2766
+ {
2767
+ "name": "doc-comment",
2768
+ "arguments": [
2769
+ ""
2770
+ ]
2771
+ },
2772
+ {
2773
+ "name": "doc-comment",
2774
+ "arguments": [
2775
+ " * When no fees are available."
2776
+ ]
2777
+ },
2778
+ {
2779
+ "name": "doc-comment",
2780
+ "arguments": [
2781
+ " * When not called by the owner."
2782
+ ]
2783
+ },
2784
+ {
2785
+ "name": "storage",
2786
+ "arguments": [
2787
+ "read",
2788
+ "write"
2789
+ ]
2790
+ }
2791
+ ]
2792
+ },
2793
+ {
2794
+ "name": "current_fees",
2795
+ "inputs": [],
2796
+ "output": "41bd1a98f0a59642d8f824c805b798a5f268d1f7d05808eb05c4189c493f1be0",
2797
+ "attributes": [
2798
+ {
2799
+ "name": "doc-comment",
2800
+ "arguments": [
2801
+ " Returns the amount of fees available to withdraw."
2802
+ ]
2803
+ },
2804
+ {
2805
+ "name": "doc-comment",
2806
+ "arguments": [
2807
+ ""
2808
+ ]
2809
+ },
2810
+ {
2811
+ "name": "doc-comment",
2812
+ "arguments": [
2813
+ " # Additional Information"
2814
+ ]
2815
+ },
2816
+ {
2817
+ "name": "doc-comment",
2818
+ "arguments": [
2819
+ ""
2820
+ ]
2821
+ },
2822
+ {
2823
+ "name": "doc-comment",
2824
+ "arguments": [
2825
+ " The first `u64` is the amount of `BASE_ASSET` and the second `u64` is the amount of `QUOTE_ASSET`."
2826
+ ]
2827
+ },
2828
+ {
2829
+ "name": "doc-comment",
2830
+ "arguments": [
2831
+ ""
2832
+ ]
2833
+ },
2834
+ {
2835
+ "name": "doc-comment",
2836
+ "arguments": [
2837
+ " # Returns"
2838
+ ]
2839
+ },
2840
+ {
2841
+ "name": "doc-comment",
2842
+ "arguments": [
2843
+ ""
2844
+ ]
2845
+ },
2846
+ {
2847
+ "name": "doc-comment",
2848
+ "arguments": [
2849
+ " * `(u64, u64)` - The amount of (BASE_ASSET, QUOTE_ASSET) available to withdraw."
2850
+ ]
2851
+ },
2852
+ {
2853
+ "name": "storage",
2854
+ "arguments": [
2855
+ "read"
2856
+ ]
2857
+ }
2858
+ ]
2859
+ },
2860
+ {
2861
+ "name": "emit_orderbook_config",
2862
+ "inputs": [],
2863
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2864
+ "attributes": [
2865
+ {
2866
+ "name": "doc-comment",
2867
+ "arguments": [
2868
+ " Emits a log of the fees."
2869
+ ]
2870
+ },
2871
+ {
2872
+ "name": "doc-comment",
2873
+ "arguments": [
2874
+ ""
2875
+ ]
2876
+ },
2877
+ {
2878
+ "name": "doc-comment",
2879
+ "arguments": [
2880
+ " # Additional Information"
2881
+ ]
2882
+ },
2883
+ {
2884
+ "name": "doc-comment",
2885
+ "arguments": [
2886
+ ""
2887
+ ]
2888
+ },
2889
+ {
2890
+ "name": "doc-comment",
2891
+ "arguments": [
2892
+ " Used when the contract is upgraded and the fee changes."
2893
+ ]
2894
+ },
2895
+ {
2896
+ "name": "doc-comment",
2897
+ "arguments": [
2898
+ ""
2899
+ ]
2900
+ },
2901
+ {
2902
+ "name": "doc-comment",
2903
+ "arguments": [
2904
+ " # Events"
2905
+ ]
2906
+ },
2907
+ {
2908
+ "name": "doc-comment",
2909
+ "arguments": [
2910
+ ""
2911
+ ]
2912
+ },
2913
+ {
2914
+ "name": "doc-comment",
2915
+ "arguments": [
2916
+ " * `FeeEvent`"
2917
+ ]
2918
+ }
2919
+ ]
2920
+ },
2921
+ {
2922
+ "name": "force_cancel_orders",
2923
+ "inputs": [
2924
+ {
2925
+ "name": "orders",
2926
+ "concreteTypeId": "32559685d0c9845f059bf9d472a0a38cf77d36c23dfcffe5489e86a65cdd9198"
2927
+ }
2928
+ ],
2929
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
2930
+ "attributes": [
2931
+ {
2932
+ "name": "doc-comment",
2933
+ "arguments": [
2934
+ " Force cancels the given orders."
2935
+ ]
2936
+ },
2937
+ {
2938
+ "name": "doc-comment",
2939
+ "arguments": [
2940
+ ""
2941
+ ]
2942
+ },
2943
+ {
2944
+ "name": "doc-comment",
2945
+ "arguments": [
2946
+ " # Arguments"
2947
+ ]
2948
+ },
2949
+ {
2950
+ "name": "doc-comment",
2951
+ "arguments": [
2952
+ ""
2953
+ ]
2954
+ },
2955
+ {
2956
+ "name": "doc-comment",
2957
+ "arguments": [
2958
+ " * [orders]: `Vec<OrderID>` - A vec of orders to cancel."
2959
+ ]
2960
+ },
2961
+ {
2962
+ "name": "doc-comment",
2963
+ "arguments": [
2964
+ ""
2965
+ ]
2966
+ },
2967
+ {
2968
+ "name": "doc-comment",
2969
+ "arguments": [
2970
+ " # Reverts"
2971
+ ]
2972
+ },
2973
+ {
2974
+ "name": "doc-comment",
2975
+ "arguments": [
2976
+ ""
2977
+ ]
2978
+ },
2979
+ {
2980
+ "name": "doc-comment",
2981
+ "arguments": [
2982
+ " * When not called by the owner."
2983
+ ]
2984
+ },
2985
+ {
2986
+ "name": "doc-comment",
2987
+ "arguments": [
2988
+ " * When the contract is not paused."
2989
+ ]
2990
+ },
2991
+ {
2992
+ "name": "storage",
2993
+ "arguments": [
2994
+ "read",
2995
+ "write"
2996
+ ]
2997
+ }
2998
+ ]
2999
+ },
3000
+ {
3001
+ "name": "initialize",
3002
+ "inputs": [],
3003
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3004
+ "attributes": [
3005
+ {
3006
+ "name": "doc-comment",
3007
+ "arguments": [
3008
+ " Initializes the contract with an owner."
3009
+ ]
3010
+ },
3011
+ {
3012
+ "name": "doc-comment",
3013
+ "arguments": [
3014
+ ""
3015
+ ]
3016
+ },
3017
+ {
3018
+ "name": "doc-comment",
3019
+ "arguments": [
3020
+ " # Reverts"
3021
+ ]
3022
+ },
3023
+ {
3024
+ "name": "doc-comment",
3025
+ "arguments": [
3026
+ ""
3027
+ ]
3028
+ },
3029
+ {
3030
+ "name": "doc-comment",
3031
+ "arguments": [
3032
+ " * When the contract has already been initialized."
3033
+ ]
3034
+ },
3035
+ {
3036
+ "name": "doc-comment",
3037
+ "arguments": [
3038
+ ""
3039
+ ]
3040
+ },
3041
+ {
3042
+ "name": "doc-comment",
3043
+ "arguments": [
3044
+ " # Events"
3045
+ ]
3046
+ },
3047
+ {
3048
+ "name": "doc-comment",
3049
+ "arguments": [
3050
+ ""
3051
+ ]
3052
+ },
3053
+ {
3054
+ "name": "doc-comment",
3055
+ "arguments": [
3056
+ " * `FeeEvent`"
3057
+ ]
3058
+ },
3059
+ {
3060
+ "name": "storage",
3061
+ "arguments": [
3062
+ "read",
3063
+ "write"
3064
+ ]
3065
+ }
3066
+ ]
3067
+ },
3068
+ {
3069
+ "name": "transfer_ownership",
3070
+ "inputs": [
3071
+ {
3072
+ "name": "new_owner",
3073
+ "concreteTypeId": "ab7cd04e05be58e3fc15d424c2c4a57f824a2a2d97d67252440a3925ebdc1335"
3074
+ }
3075
+ ],
3076
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3077
+ "attributes": [
3078
+ {
3079
+ "name": "doc-comment",
3080
+ "arguments": [
3081
+ " Transfers ownership to a new owner."
3082
+ ]
3083
+ },
3084
+ {
3085
+ "name": "doc-comment",
3086
+ "arguments": [
3087
+ ""
3088
+ ]
3089
+ },
3090
+ {
3091
+ "name": "doc-comment",
3092
+ "arguments": [
3093
+ " # Arguments"
3094
+ ]
3095
+ },
3096
+ {
3097
+ "name": "doc-comment",
3098
+ "arguments": [
3099
+ ""
3100
+ ]
3101
+ },
3102
+ {
3103
+ "name": "doc-comment",
3104
+ "arguments": [
3105
+ " * [new_owner]: `Identity` - The new owner to be set."
3106
+ ]
3107
+ },
3108
+ {
3109
+ "name": "doc-comment",
3110
+ "arguments": [
3111
+ ""
3112
+ ]
3113
+ },
3114
+ {
3115
+ "name": "doc-comment",
3116
+ "arguments": [
3117
+ " # Reverts"
3118
+ ]
3119
+ },
3120
+ {
3121
+ "name": "doc-comment",
3122
+ "arguments": [
3123
+ ""
3124
+ ]
3125
+ },
3126
+ {
3127
+ "name": "doc-comment",
3128
+ "arguments": [
3129
+ " * When not called by the owner."
3130
+ ]
3131
+ },
3132
+ {
3133
+ "name": "storage",
3134
+ "arguments": [
3135
+ "read",
3136
+ "write"
3137
+ ]
3138
+ }
3139
+ ]
3140
+ },
3141
+ {
3142
+ "name": "owner",
3143
+ "inputs": [],
3144
+ "output": "287a382c1e0b1f11d12a422e77a248d27761327cd17515cc6e6369d528cf31ca",
3145
+ "attributes": [
3146
+ {
3147
+ "name": "storage",
3148
+ "arguments": [
3149
+ "read"
3150
+ ]
3151
+ }
3152
+ ]
3153
+ },
3154
+ {
3155
+ "name": "is_paused",
3156
+ "inputs": [],
3157
+ "output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
3158
+ "attributes": [
3159
+ {
3160
+ "name": "storage",
3161
+ "arguments": [
3162
+ "read"
3163
+ ]
3164
+ }
3165
+ ]
3166
+ },
3167
+ {
3168
+ "name": "pause",
3169
+ "inputs": [],
3170
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3171
+ "attributes": [
3172
+ {
3173
+ "name": "storage",
3174
+ "arguments": [
3175
+ "write"
3176
+ ]
3177
+ }
3178
+ ]
3179
+ },
3180
+ {
3181
+ "name": "unpause",
3182
+ "inputs": [],
3183
+ "output": "2e38e77b22c314a449e91fafed92a43826ac6aa403ae6a8acb6cf58239fbaf5d",
3184
+ "attributes": [
3185
+ {
3186
+ "name": "storage",
3187
+ "arguments": [
3188
+ "write"
3189
+ ]
3190
+ }
3191
+ ]
3192
+ }
3193
+ ],
3194
+ "loggedTypes": [
3195
+ {
3196
+ "logId": "17376141311665587813",
3197
+ "concreteTypeId": "f1247475d0d1466599267010f088190f8664dd31663a40c5d5e525d8e64b995d"
3198
+ },
3199
+ {
3200
+ "logId": "7577732612780156899",
3201
+ "concreteTypeId": "692983a9aba767e36b5014d3eb842447c736e341cc3b30fcb051b1f5a3d5f80a"
3202
+ },
3203
+ {
3204
+ "logId": "10928624505251675",
3205
+ "concreteTypeId": "0026d386ad84e75b525bec3e7c8b6a63df3fcd108a8c4b26438c8a7a2e2c218b"
3206
+ },
3207
+ {
3208
+ "logId": "12825652816513834595",
3209
+ "concreteTypeId": "b1fddf488ccb9e63d11888b2750bbd1280a1ae1c49f2d6637fd4cf1e930d1468"
3210
+ },
3211
+ {
3212
+ "logId": "10091762507985991074",
3213
+ "concreteTypeId": "8c0d2488561c35a28ef795bb8bcc4c43999cdd1e3ecbd10c226e0a68660c54d4"
3214
+ },
3215
+ {
3216
+ "logId": "8930260739195532515",
3217
+ "concreteTypeId": "7beea8d3e75df4e367b45e1567e03c81f969faef517cea9a4ff938fed6ee9f6a"
3218
+ },
3219
+ {
3220
+ "logId": "673754413546829475",
3221
+ "concreteTypeId": "0959a811c54f76a36f4b1ca7a14729eba6801a5c03356f2cfb12233f574d0ce2"
3222
+ },
3223
+ {
3224
+ "logId": "11075251846569393687",
3225
+ "concreteTypeId": "99b332e010c1fe173601492be1e50767afba39d95f5aebb83f07fdf4c2103104"
3226
+ },
3227
+ {
3228
+ "logId": "4164690824655597442",
3229
+ "concreteTypeId": "39cbf43d52ecef8290e4f6e639a22b50f2ea8ce7d673930c83622422c7653026"
3230
+ },
3231
+ {
3232
+ "logId": "1577824708080292652",
3233
+ "concreteTypeId": "15e58f365af5d32c8a830ec43e70fce6cfbad16f88ed89b35bb7878f15f5b75d"
3234
+ },
3235
+ {
3236
+ "logId": "4997665884103701952",
3237
+ "concreteTypeId": "455b46a49016f5c03c18ce54b969ea3d0d33c9b00263b3dcc36aa8da27558b8a"
3238
+ },
3239
+ {
3240
+ "logId": "1043998670105365804",
3241
+ "concreteTypeId": "0e7d0742559c4d2c273298fdc0b9b7e9b07f7f944855ca3020dba8617515e2f0"
3242
+ },
3243
+ {
3244
+ "logId": "9438144640984314783",
3245
+ "concreteTypeId": "82fb068ba8a0739f1b0a907ff1fbcbc8b1e5a31d5a2f1b46742e4c5fca967c18"
3246
+ },
3247
+ {
3248
+ "logId": "7955402583561979981",
3249
+ "concreteTypeId": "6e6744800e6fc84d4680e9492774bc9e0cab52bb665d518bdfd2ba21b3a4866c"
3250
+ },
3251
+ {
3252
+ "logId": "12033795032676640771",
3253
+ "concreteTypeId": "a700a0d30e8d2803040dc79b7b7b259d0c308ca5187f6c742da1df21c27bf24a"
3254
+ },
3255
+ {
3256
+ "logId": "16078156521692740360",
3257
+ "concreteTypeId": "df21162bb6a03b08040f043d238f4b5275e591737c8b5f068f7422be87168258"
3258
+ },
3259
+ {
3260
+ "logId": "10627443379711231661",
3261
+ "concreteTypeId": "937c43727e43c6ad683c47ad69885cf2783ecf73d59460fe1d7033a78ad5963c"
3262
+ },
3263
+ {
3264
+ "logId": "14784419691340355228",
3265
+ "concreteTypeId": "cd2ccf60c8a1d69c9f5a8c9d17ec658f09cd58dac7f0f991a3ce3161c494ea88"
3266
+ },
3267
+ {
3268
+ "logId": "3453517865879574174",
3269
+ "concreteTypeId": "2fed5c339537969e7d6569d8f1607e8476b5829cc3ef3185c9c4ae8f3a4f5edd"
3270
+ },
3271
+ {
3272
+ "logId": "9316803936658460360",
3273
+ "concreteTypeId": "814befd15e7d0ec83c54b78f1248f65890b6e4db618d7f067940385064ae00fa"
3274
+ },
3275
+ {
3276
+ "logId": "15563400235235362344",
3277
+ "concreteTypeId": "d7fc4e0e366f46285d7ebf08fe5d7a450b649532159d67ce60a329a2d468c5c1"
3278
+ },
3279
+ {
3280
+ "logId": "4755763688038835574",
3281
+ "concreteTypeId": "41ffdde08d41a5769627d4e77a60cbf9ef0a0e9194114652b57247e64a9ce7f0"
3282
+ },
3283
+ {
3284
+ "logId": "3315608933688155198",
3285
+ "concreteTypeId": "2e0368c222981c3e3cbba54d7dafbda77dd2c48809b2fd989773b4ae092d8b47"
3286
+ },
3287
+ {
3288
+ "logId": "12773884859982894916",
3289
+ "concreteTypeId": "b145f499e90557447a26156cda458d1c0284a487ef8b8a90646411a33ee5e241"
3290
+ },
3291
+ {
3292
+ "logId": "11719039397861176592",
3293
+ "concreteTypeId": "a2a2643e0252b510328c0323a0ea60724fb4cb3309a2322ab31b27566ff9a79d"
3294
+ }
3295
+ ],
3296
+ "messagesTypes": [],
3297
+ "configurables": [
3298
+ {
3299
+ "name": "INITIAL_OWNER",
3300
+ "concreteTypeId": "287a382c1e0b1f11d12a422e77a248d27761327cd17515cc6e6369d528cf31ca",
3301
+ "offset": 76896,
3302
+ "indirect": false
3303
+ },
3304
+ {
3305
+ "name": "BASE_ASSET",
3306
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
3307
+ "offset": 76784,
3308
+ "indirect": false
3309
+ },
3310
+ {
3311
+ "name": "QUOTE_ASSET",
3312
+ "concreteTypeId": "c0710b6731b1dd59799cf6bef33eee3b3b04a2e40e80a0724090215bbf2ca974",
3313
+ "offset": 77040,
3314
+ "indirect": false
3315
+ },
3316
+ {
3317
+ "name": "MIN_ORDER",
3318
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3319
+ "offset": 77008,
3320
+ "indirect": false
3321
+ },
3322
+ {
3323
+ "name": "MAKER_FEE",
3324
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e",
3325
+ "offset": 76944,
3326
+ "indirect": false
3327
+ },
3328
+ {
3329
+ "name": "TAKER_FEE",
3330
+ "concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e",
3331
+ "offset": 77096,
3332
+ "indirect": false
3333
+ },
3334
+ {
3335
+ "name": "BASE_DECIMALS",
3336
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3337
+ "offset": 76816,
3338
+ "indirect": false
3339
+ },
3340
+ {
3341
+ "name": "QUOTE_DECIMALS",
3342
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3343
+ "offset": 77072,
3344
+ "indirect": false
3345
+ },
3346
+ {
3347
+ "name": "PRICE_WINDOW",
3348
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3349
+ "offset": 77024,
3350
+ "indirect": false
3351
+ },
3352
+ {
3353
+ "name": "PRICE_PRECISION",
3354
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3355
+ "offset": 77016,
3356
+ "indirect": false
3357
+ },
3358
+ {
3359
+ "name": "QUANTITY_PRECISION",
3360
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3361
+ "offset": 77032,
3362
+ "indirect": false
3363
+ },
3364
+ {
3365
+ "name": "DUST",
3366
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3367
+ "offset": 76888,
3368
+ "indirect": false
3369
+ },
3370
+ {
3371
+ "name": "BASE_GAS",
3372
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3373
+ "offset": 76824,
3374
+ "indirect": false
3375
+ },
3376
+ {
3377
+ "name": "MATCH_EVENT_GAS",
3378
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3379
+ "offset": 76976,
3380
+ "indirect": false
3381
+ },
3382
+ {
3383
+ "name": "MATCH_SINGLE_LEVEL_GAS",
3384
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3385
+ "offset": 76992,
3386
+ "indirect": false
3387
+ },
3388
+ {
3389
+ "name": "MATCH_MULTI_LEVEL_GAS",
3390
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3391
+ "offset": 76984,
3392
+ "indirect": false
3393
+ },
3394
+ {
3395
+ "name": "MIN_GAS",
3396
+ "concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
3397
+ "offset": 77000,
3398
+ "indirect": false
3399
+ },
3400
+ {
3401
+ "name": "ALLOW_FRACTIONAL_PRICE",
3402
+ "concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
3403
+ "offset": 76776,
3404
+ "indirect": false
3405
+ },
3406
+ {
3407
+ "name": "BASE_SYMBOL",
3408
+ "concreteTypeId": "338a25cb65b9251663dcce6362b744fe10aa849758299590f4efed5dd299bf50",
3409
+ "offset": 76832,
3410
+ "indirect": false
3411
+ },
3412
+ {
3413
+ "name": "QUOTE_SYMBOL",
3414
+ "concreteTypeId": "338a25cb65b9251663dcce6362b744fe10aa849758299590f4efed5dd299bf50",
3415
+ "offset": 77080,
3416
+ "indirect": false
3417
+ },
3418
+ {
3419
+ "name": "WHITE_LIST_CONTRACT",
3420
+ "concreteTypeId": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8",
3421
+ "offset": 77128,
3422
+ "indirect": false
3423
+ },
3424
+ {
3425
+ "name": "BLACK_LIST_CONTRACT",
3426
+ "concreteTypeId": "0d79387ad3bacdc3b7aad9da3a96f4ce60d9a1b6002df254069ad95a3931d5c8",
3427
+ "offset": 76848,
3428
+ "indirect": false
3429
+ }
3430
+ ],
3431
+ "errorCodes": {},
3432
+ "panickingCalls": {}
3433
+ };
3434
+ const storageSlots = [
3435
+ {
3436
+ "key": "7ceadc98468d452f30f6b180bc1065fbce8620efac57fef287b5c34e4c9687f4",
3437
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
3438
+ },
3439
+ {
3440
+ "key": "94562ed6a33cd104a4b1178db53400bb5e2c1b193d36ecc66f033ef73d68d216",
3441
+ "value": "0000000000000000000000000000000000000000000000000000000000000000"
3442
+ },
3443
+ {
3444
+ "key": "ad467f799b8cd85bf32c612ea056ff074c7e9fef2ca8673e7a9b34743223d66f",
3445
+ "value": "000000000000000000000000000000000000000000000000ffffffffffffffff"
3446
+ }
3447
+ ];
3448
+ export class OrderBookInterface extends Interface {
3449
+ constructor() {
3450
+ super(abi);
3451
+ }
3452
+ }
3453
+ export class OrderBook extends __Contract {
3454
+ static abi = abi;
3455
+ static storageSlots = storageSlots;
3456
+ constructor(id, accountOrProvider) {
3457
+ super(id, abi, accountOrProvider);
3458
+ }
3459
+ }
3460
+ //# sourceMappingURL=OrderBook.js.map