@o2exchange/contracts 0.0.1 → 0.0.2

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