@levrbet/shared 0.5.55 → 0.5.57

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.
@@ -2,358 +2,359 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = [
4
4
  {
5
- inputs: [{ internalType: "address", name: "_levrConfigProvider", type: "address" }],
6
- stateMutability: "nonpayable",
7
5
  type: "constructor",
8
- },
9
- { inputs: [], name: "LB_CONFIG_INVALID_INTERFACE", type: "error" },
10
- { inputs: [], name: "LB_CONFIG_PROVIDER_NOT_CONTRACT", type: "error" },
11
- { inputs: [], name: "LB_NOT_LEVR_ADMIN", type: "error" },
12
- { inputs: [], name: "LM_INVALID_PROGRESS_BPS", type: "error" },
13
- { inputs: [], name: "LM_INVALID_TIER_FEE_PARAMS", type: "error" },
14
- { inputs: [], name: "LM_INVALID_TOKEN_PRICE", type: "error" },
15
- {
16
- inputs: [
17
- { internalType: "address", name: "buyer", type: "address" },
18
- { internalType: "bytes32", name: "askedPositionId", type: "bytes32" },
19
- ],
20
- name: "LO_BUYER_CANNOT_BE_SELLER",
21
- type: "error",
22
- },
23
- {
24
- inputs: [
25
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
26
- { internalType: "uint256", name: "liqPrice", type: "uint256" },
27
- { internalType: "uint256", name: "marketPrice", type: "uint256" },
28
- ],
29
- name: "LO_BUYER_LIQ_PRICE_EXCEEDS_MARKET_PRICE",
30
- type: "error",
31
- },
32
- {
33
- inputs: [
34
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
35
- { internalType: "uint256", name: "salePayout", type: "uint256" },
36
- { internalType: "uint256", name: "saleRealizedBorrowFee", type: "uint256" },
37
- { internalType: "uint256", name: "saleTxFee", type: "uint256" },
38
- ],
39
- name: "LO_FEES_EXCEEDS_PAYOUT",
40
- type: "error",
41
- },
42
- {
43
- inputs: [
44
- { internalType: "address", name: "buyer", type: "address" },
45
- { internalType: "uint256", name: "wageredAmount", type: "uint256" },
46
- { internalType: "uint256", name: "totalFees", type: "uint256" },
47
- ],
48
- name: "LO_INSUFFICIENT_COLLATERAL_AFTER_FEES",
49
- type: "error",
50
- },
51
- {
52
- inputs: [
53
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
54
- { internalType: "enum GameStatus", name: "gameStatus", type: "uint8" },
55
- { internalType: "enum GameStatus", name: "expectedStatus", type: "uint8" },
56
- ],
57
- name: "LO_INVALID_GAME_PHASE",
58
- type: "error",
59
- },
60
- { inputs: [], name: "LO_INVALID_GAME_PROGRESS", type: "error" },
61
- { inputs: [{ internalType: "uint256", name: "length", type: "uint256" }], name: "LO_INVALID_ORDERS_LENGTH", type: "error" },
62
- { inputs: [], name: "LO_INVALID_POSITION_ID", type: "error" },
63
- { inputs: [{ internalType: "uint256", name: "price", type: "uint256" }], name: "LO_INVALID_PRICE", type: "error" },
64
- {
65
- inputs: [{ internalType: "uint256", name: "tokenAmount", type: "uint256" }],
66
- name: "LO_INVALID_TOKEN_AMOUNT",
67
- type: "error",
68
- },
69
- {
70
- inputs: [
71
- { internalType: "address", name: "user", type: "address" },
72
- { internalType: "uint8", name: "uLeverage", type: "uint8" },
73
- { internalType: "uint8", name: "minULev", type: "uint8" },
74
- { internalType: "uint8", name: "maxULev", type: "uint8" },
75
- ],
76
- name: "LO_INVALID_USER_LEVERAGE",
77
- type: "error",
78
- },
79
- { inputs: [], name: "LO_NOT_MATCH_MAKER", type: "error" },
80
- {
81
- inputs: [
82
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
83
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
84
- ],
85
- name: "LO_POSITION_MARKED_FOR_LIQUIDATION",
86
- type: "error",
87
- },
88
- {
89
- inputs: [
90
- { internalType: "address", name: "user", type: "address" },
91
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
92
- ],
93
- name: "LO_POSITION_NOT_OPEN",
94
- type: "error",
95
- },
96
- {
97
- inputs: [
98
- { internalType: "address", name: "seller", type: "address" },
99
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
100
- ],
101
- name: "LO_SELLER_BLACKLISTED",
102
- type: "error",
103
- },
104
- {
105
- inputs: [
106
- { internalType: "address", name: "buyer", type: "address" },
107
- { internalType: "bytes32", name: "sellerPositionId", type: "bytes32" },
108
- { internalType: "enum Side", name: "positionSide", type: "uint8" },
109
- { internalType: "enum Side", name: "buyerSide", type: "uint8" },
110
- ],
111
- name: "LO_SIDE_MISMATCH",
112
- type: "error",
113
- },
114
- {
115
- inputs: [
116
- { internalType: "address", name: "buyer", type: "address" },
117
- { internalType: "bytes32", name: "sellerPositionId", type: "bytes32" },
118
- { internalType: "uint256", name: "tokenAmount", type: "uint256" },
119
- { internalType: "uint256", name: "availableAmount", type: "uint256" },
120
- ],
121
- name: "LO_TOKEN_AMOUNT_EXCEEDED",
122
- type: "error",
123
- },
124
- { inputs: [], name: "LO_TRADER_ZERO_ADDRESS", type: "error" },
125
- {
126
- anonymous: false,
127
- inputs: [
128
- { indexed: true, internalType: "address", name: "prevProvider", type: "address" },
129
- { indexed: true, internalType: "address", name: "newProvider", type: "address" },
130
- ],
131
- name: "LevrConfigProviderUpdated",
132
- type: "event",
133
- },
134
- {
135
- anonymous: false,
136
- inputs: [
137
- { indexed: true, internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
138
- { indexed: true, internalType: "bytes32", name: "purchasedPositionId", type: "bytes32" },
139
- { indexed: true, internalType: "bytes32", name: "counterPartyPositionId", type: "bytes32" },
140
- { indexed: false, internalType: "address", name: "buyer", type: "address" },
141
- { indexed: false, internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
142
- { indexed: false, internalType: "uint256", name: "purchaseSize", type: "uint256" },
143
- { indexed: false, internalType: "uint256", name: "purchaseCollateral", type: "uint256" },
144
- { indexed: false, internalType: "uint256", name: "purchasePositionFee", type: "uint256" },
145
- { indexed: false, internalType: "uint256", name: "purchaseBalanceFee", type: "uint256" },
146
- { indexed: false, internalType: "uint256", name: "buyerTxFee", type: "uint256" },
147
- { indexed: false, internalType: "uint256", name: "purchasePrice", type: "uint256" },
148
- ],
149
- name: "TradeExecutedBuyerDetails",
150
- type: "event",
151
- },
152
- {
153
- anonymous: false,
154
- inputs: [
155
- { indexed: true, internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
156
- { indexed: true, internalType: "bytes32", name: "soldPositionId", type: "bytes32" },
157
- { indexed: true, internalType: "bytes32", name: "counterPartyPositionId", type: "bytes32" },
158
- { indexed: false, internalType: "address", name: "seller", type: "address" },
159
- { indexed: false, internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
160
- { indexed: false, internalType: "uint256", name: "saleSize", type: "uint256" },
161
- { indexed: false, internalType: "uint256", name: "saleCollateral", type: "uint256" },
162
- { indexed: false, internalType: "uint256", name: "salePositionFee", type: "uint256" },
163
- { indexed: false, internalType: "uint256", name: "saleBalanceFee", type: "uint256" },
164
- { indexed: false, internalType: "uint256", name: "saleRealizedBorrowFee", type: "uint256" },
165
- { indexed: false, internalType: "uint256", name: "sellerTxFee", type: "uint256" },
166
- { indexed: false, internalType: "uint256", name: "salePayout", type: "uint256" },
167
- { indexed: false, internalType: "uint256", name: "salePrice", type: "uint256" },
168
- { indexed: false, internalType: "uint256", name: "saleProfit", type: "uint256" },
169
- ],
170
- name: "TradeExecutedSellerDetails",
171
- type: "event",
6
+ inputs: [{ name: "_levrConfigProvider", type: "address", internalType: "address" }],
7
+ stateMutability: "nonpayable",
172
8
  },
173
9
  {
174
- inputs: [],
10
+ type: "function",
175
11
  name: "levrConfigProvider",
176
- outputs: [{ internalType: "address", name: "", type: "address" }],
12
+ inputs: [],
13
+ outputs: [{ name: "", type: "address", internalType: "address" }],
177
14
  stateMutability: "view",
178
- type: "function",
179
15
  },
180
16
  {
17
+ type: "function",
18
+ name: "matchAsksToBid",
181
19
  inputs: [
182
20
  {
21
+ name: "input",
22
+ type: "tuple",
23
+ internalType: "struct AsksToBidInput",
183
24
  components: [
184
25
  {
185
- components: [
186
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
187
- { internalType: "uint256", name: "tradePrice", type: "uint256" },
188
- { internalType: "uint256", name: "tokenAmount", type: "uint256" },
189
- ],
190
- internalType: "struct Ask[]",
191
26
  name: "asks",
192
27
  type: "tuple[]",
28
+ internalType: "struct Ask[]",
29
+ components: [
30
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
31
+ { name: "tradePrice", type: "uint256", internalType: "uint256" },
32
+ { name: "tokenAmount", type: "uint256", internalType: "uint256" },
33
+ ],
193
34
  },
194
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
195
- { internalType: "enum Side", name: "side", type: "uint8" },
196
- { internalType: "address", name: "buyer", type: "address" },
197
- { internalType: "uint8", name: "leverage", type: "uint8" },
198
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
35
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
36
+ { name: "side", type: "uint8", internalType: "enum Side" },
37
+ { name: "buyer", type: "address", internalType: "address" },
38
+ { name: "leverage", type: "uint8", internalType: "uint8" },
39
+ { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
199
40
  ],
200
- internalType: "struct AsksToBidInput",
201
- name: "input",
202
- type: "tuple",
203
41
  },
204
42
  ],
205
- name: "matchAsksToBid",
206
43
  outputs: [],
207
44
  stateMutability: "nonpayable",
208
- type: "function",
209
45
  },
210
46
  {
47
+ type: "function",
48
+ name: "matchBidsToAsk",
211
49
  inputs: [
212
50
  {
51
+ name: "input",
52
+ type: "tuple",
53
+ internalType: "struct BidsToAskInput",
213
54
  components: [
214
55
  {
215
- components: [
216
- { internalType: "uint256", name: "tradePrice", type: "uint256" },
217
- { internalType: "uint256", name: "tokenAmount", type: "uint256" },
218
- { internalType: "address", name: "buyer", type: "address" },
219
- { internalType: "uint8", name: "leverage", type: "uint8" },
220
- ],
221
- internalType: "struct Bid[]",
222
56
  name: "bids",
223
57
  type: "tuple[]",
58
+ internalType: "struct Bid[]",
59
+ components: [
60
+ { name: "tradePrice", type: "uint256", internalType: "uint256" },
61
+ { name: "tokenAmount", type: "uint256", internalType: "uint256" },
62
+ { name: "buyer", type: "address", internalType: "address" },
63
+ { name: "leverage", type: "uint8", internalType: "uint8" },
64
+ ],
224
65
  },
225
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
226
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
227
- { internalType: "enum Side", name: "side", type: "uint8" },
228
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
66
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
67
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
68
+ { name: "side", type: "uint8", internalType: "enum Side" },
69
+ { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
229
70
  ],
230
- internalType: "struct BidsToAskInput",
231
- name: "input",
232
- type: "tuple",
233
71
  },
234
72
  ],
235
- name: "matchBidsToAsk",
236
73
  outputs: [],
237
74
  stateMutability: "nonpayable",
238
- type: "function",
239
75
  },
240
76
  {
77
+ type: "function",
78
+ name: "matchOrders",
241
79
  inputs: [
242
80
  {
81
+ name: "asksToBid",
82
+ type: "tuple",
83
+ internalType: "struct AsksToBidInput",
243
84
  components: [
244
85
  {
245
- components: [
246
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
247
- { internalType: "uint256", name: "tradePrice", type: "uint256" },
248
- { internalType: "uint256", name: "tokenAmount", type: "uint256" },
249
- ],
250
- internalType: "struct Ask[]",
251
86
  name: "asks",
252
87
  type: "tuple[]",
88
+ internalType: "struct Ask[]",
89
+ components: [
90
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
91
+ { name: "tradePrice", type: "uint256", internalType: "uint256" },
92
+ { name: "tokenAmount", type: "uint256", internalType: "uint256" },
93
+ ],
253
94
  },
254
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
255
- { internalType: "enum Side", name: "side", type: "uint8" },
256
- { internalType: "address", name: "buyer", type: "address" },
257
- { internalType: "uint8", name: "leverage", type: "uint8" },
258
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
95
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
96
+ { name: "side", type: "uint8", internalType: "enum Side" },
97
+ { name: "buyer", type: "address", internalType: "address" },
98
+ { name: "leverage", type: "uint8", internalType: "uint8" },
99
+ { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
259
100
  ],
260
- internalType: "struct AsksToBidInput",
261
- name: "asksToBid",
262
- type: "tuple",
263
101
  },
264
102
  {
103
+ name: "bidsToAsk",
104
+ type: "tuple",
105
+ internalType: "struct BidsToAskInput",
265
106
  components: [
266
107
  {
267
- components: [
268
- { internalType: "uint256", name: "tradePrice", type: "uint256" },
269
- { internalType: "uint256", name: "tokenAmount", type: "uint256" },
270
- { internalType: "address", name: "buyer", type: "address" },
271
- { internalType: "uint8", name: "leverage", type: "uint8" },
272
- ],
273
- internalType: "struct Bid[]",
274
108
  name: "bids",
275
109
  type: "tuple[]",
110
+ internalType: "struct Bid[]",
111
+ components: [
112
+ { name: "tradePrice", type: "uint256", internalType: "uint256" },
113
+ { name: "tokenAmount", type: "uint256", internalType: "uint256" },
114
+ { name: "buyer", type: "address", internalType: "address" },
115
+ { name: "leverage", type: "uint8", internalType: "uint8" },
116
+ ],
276
117
  },
277
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
278
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
279
- { internalType: "enum Side", name: "side", type: "uint8" },
280
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
118
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
119
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
120
+ { name: "side", type: "uint8", internalType: "enum Side" },
121
+ { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
281
122
  ],
282
- internalType: "struct BidsToAskInput",
283
- name: "bidsToAsk",
284
- type: "tuple",
285
123
  },
286
124
  ],
287
- name: "matchOrders",
288
125
  outputs: [],
289
126
  stateMutability: "nonpayable",
290
- type: "function",
291
127
  },
292
128
  {
129
+ type: "function",
130
+ name: "matchOrders",
293
131
  inputs: [
294
132
  {
133
+ name: "asksData",
134
+ type: "tuple[]",
135
+ internalType: "struct AsksToBidInput[]",
295
136
  components: [
296
137
  {
297
- components: [
298
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
299
- { internalType: "uint256", name: "tradePrice", type: "uint256" },
300
- { internalType: "uint256", name: "tokenAmount", type: "uint256" },
301
- ],
302
- internalType: "struct Ask[]",
303
138
  name: "asks",
304
139
  type: "tuple[]",
140
+ internalType: "struct Ask[]",
141
+ components: [
142
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
143
+ { name: "tradePrice", type: "uint256", internalType: "uint256" },
144
+ { name: "tokenAmount", type: "uint256", internalType: "uint256" },
145
+ ],
305
146
  },
306
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
307
- { internalType: "enum Side", name: "side", type: "uint8" },
308
- { internalType: "address", name: "buyer", type: "address" },
309
- { internalType: "uint8", name: "leverage", type: "uint8" },
310
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
147
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
148
+ { name: "side", type: "uint8", internalType: "enum Side" },
149
+ { name: "buyer", type: "address", internalType: "address" },
150
+ { name: "leverage", type: "uint8", internalType: "uint8" },
151
+ { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
311
152
  ],
312
- internalType: "struct AsksToBidInput[]",
313
- name: "asksData",
314
- type: "tuple[]",
315
153
  },
316
154
  {
155
+ name: "bids",
156
+ type: "tuple[]",
157
+ internalType: "struct BidsToAskInput[]",
317
158
  components: [
318
159
  {
319
- components: [
320
- { internalType: "uint256", name: "tradePrice", type: "uint256" },
321
- { internalType: "uint256", name: "tokenAmount", type: "uint256" },
322
- { internalType: "address", name: "buyer", type: "address" },
323
- { internalType: "uint8", name: "leverage", type: "uint8" },
324
- ],
325
- internalType: "struct Bid[]",
326
160
  name: "bids",
327
161
  type: "tuple[]",
162
+ internalType: "struct Bid[]",
163
+ components: [
164
+ { name: "tradePrice", type: "uint256", internalType: "uint256" },
165
+ { name: "tokenAmount", type: "uint256", internalType: "uint256" },
166
+ { name: "buyer", type: "address", internalType: "address" },
167
+ { name: "leverage", type: "uint8", internalType: "uint8" },
168
+ ],
328
169
  },
329
- { internalType: "bytes32", name: "positionId", type: "bytes32" },
330
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
331
- { internalType: "enum Side", name: "side", type: "uint8" },
332
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
170
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
171
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
172
+ { name: "side", type: "uint8", internalType: "enum Side" },
173
+ { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
333
174
  ],
334
- internalType: "struct BidsToAskInput[]",
335
- name: "bids",
336
- type: "tuple[]",
337
175
  },
338
176
  ],
339
- name: "matchOrders",
340
177
  outputs: [],
341
178
  stateMutability: "nonpayable",
342
- type: "function",
343
179
  },
344
180
  {
345
- inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
181
+ type: "function",
346
182
  name: "supportsInterface",
347
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
183
+ inputs: [{ name: "interfaceId", type: "bytes4", internalType: "bytes4" }],
184
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
348
185
  stateMutability: "view",
349
- type: "function",
350
186
  },
351
187
  {
352
- inputs: [{ internalType: "address", name: "newLevrConfigProvider", type: "address" }],
188
+ type: "function",
353
189
  name: "updateLevrConfigProvider",
190
+ inputs: [{ name: "newLevrConfigProvider", type: "address", internalType: "address" }],
354
191
  outputs: [],
355
192
  stateMutability: "nonpayable",
356
- type: "function",
357
193
  },
194
+ {
195
+ type: "event",
196
+ name: "LevrConfigProviderUpdated",
197
+ inputs: [
198
+ { name: "prevProvider", type: "address", indexed: true, internalType: "address" },
199
+ { name: "newProvider", type: "address", indexed: true, internalType: "address" },
200
+ ],
201
+ anonymous: false,
202
+ },
203
+ {
204
+ type: "event",
205
+ name: "TradeExecutedBuyerDetails",
206
+ inputs: [
207
+ { name: "gameMarketId", type: "bytes32", indexed: true, internalType: "bytes32" },
208
+ { name: "purchasedPositionId", type: "bytes32", indexed: true, internalType: "bytes32" },
209
+ { name: "counterPartyPositionId", type: "bytes32", indexed: true, internalType: "bytes32" },
210
+ { name: "buyer", type: "address", indexed: false, internalType: "address" },
211
+ { name: "levrMarketId", type: "bytes16", indexed: false, internalType: "bytes16" },
212
+ { name: "purchaseSize", type: "uint256", indexed: false, internalType: "uint256" },
213
+ { name: "purchaseCollateral", type: "uint256", indexed: false, internalType: "uint256" },
214
+ { name: "purchasePositionFee", type: "uint256", indexed: false, internalType: "uint256" },
215
+ { name: "purchaseBalanceFee", type: "uint256", indexed: false, internalType: "uint256" },
216
+ { name: "buyerTxFee", type: "uint256", indexed: false, internalType: "uint256" },
217
+ { name: "purchasePrice", type: "uint256", indexed: false, internalType: "uint256" },
218
+ ],
219
+ anonymous: false,
220
+ },
221
+ {
222
+ type: "event",
223
+ name: "TradeExecutedSellerDetails",
224
+ inputs: [
225
+ { name: "gameMarketId", type: "bytes32", indexed: true, internalType: "bytes32" },
226
+ { name: "soldPositionId", type: "bytes32", indexed: true, internalType: "bytes32" },
227
+ { name: "counterPartyPositionId", type: "bytes32", indexed: true, internalType: "bytes32" },
228
+ { name: "seller", type: "address", indexed: false, internalType: "address" },
229
+ { name: "levrMarketId", type: "bytes16", indexed: false, internalType: "bytes16" },
230
+ { name: "saleSize", type: "uint256", indexed: false, internalType: "uint256" },
231
+ { name: "saleCollateral", type: "uint256", indexed: false, internalType: "uint256" },
232
+ { name: "salePositionFee", type: "uint256", indexed: false, internalType: "uint256" },
233
+ { name: "saleBalanceFee", type: "uint256", indexed: false, internalType: "uint256" },
234
+ { name: "saleRealizedBorrowFee", type: "uint256", indexed: false, internalType: "uint256" },
235
+ { name: "sellerTxFee", type: "uint256", indexed: false, internalType: "uint256" },
236
+ { name: "salePayout", type: "uint256", indexed: false, internalType: "uint256" },
237
+ { name: "salePrice", type: "uint256", indexed: false, internalType: "uint256" },
238
+ { name: "saleProfit", type: "uint256", indexed: false, internalType: "uint256" },
239
+ ],
240
+ anonymous: false,
241
+ },
242
+ { type: "error", name: "LB_CONFIG_INVALID_INTERFACE", inputs: [] },
243
+ { type: "error", name: "LB_CONFIG_PROVIDER_NOT_CONTRACT", inputs: [] },
244
+ { type: "error", name: "LB_NOT_LEVR_ADMIN", inputs: [] },
245
+ { type: "error", name: "LM_INVALID_PROGRESS_BPS", inputs: [] },
246
+ { type: "error", name: "LM_INVALID_TIER_FEE_PARAMS", inputs: [] },
247
+ { type: "error", name: "LM_INVALID_TOKEN_PRICE", inputs: [] },
248
+ { type: "error", name: "LO_BCM_NOT_ALLOWED", inputs: [] },
249
+ {
250
+ type: "error",
251
+ name: "LO_BUYER_CANNOT_BE_SELLER",
252
+ inputs: [
253
+ { name: "buyer", type: "address", internalType: "address" },
254
+ { name: "askedPositionId", type: "bytes32", internalType: "bytes32" },
255
+ ],
256
+ },
257
+ {
258
+ type: "error",
259
+ name: "LO_BUYER_LIQ_PRICE_EXCEEDS_MARKET_PRICE",
260
+ inputs: [
261
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
262
+ { name: "liqPrice", type: "uint256", internalType: "uint256" },
263
+ { name: "marketPrice", type: "uint256", internalType: "uint256" },
264
+ ],
265
+ },
266
+ {
267
+ type: "error",
268
+ name: "LO_FEES_EXCEEDS_PAYOUT",
269
+ inputs: [
270
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
271
+ { name: "salePayout", type: "uint256", internalType: "uint256" },
272
+ { name: "saleRealizedBorrowFee", type: "uint256", internalType: "uint256" },
273
+ { name: "saleTxFee", type: "uint256", internalType: "uint256" },
274
+ ],
275
+ },
276
+ {
277
+ type: "error",
278
+ name: "LO_INSUFFICIENT_COLLATERAL_AFTER_FEES",
279
+ inputs: [
280
+ { name: "buyer", type: "address", internalType: "address" },
281
+ { name: "wageredAmount", type: "uint256", internalType: "uint256" },
282
+ { name: "totalFees", type: "uint256", internalType: "uint256" },
283
+ ],
284
+ },
285
+ {
286
+ type: "error",
287
+ name: "LO_INVALID_GAME_PHASE",
288
+ inputs: [
289
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
290
+ { name: "gameStatus", type: "uint8", internalType: "enum GameStatus" },
291
+ { name: "expectedStatus", type: "uint8", internalType: "enum GameStatus" },
292
+ ],
293
+ },
294
+ { type: "error", name: "LO_INVALID_GAME_PROGRESS", inputs: [] },
295
+ { type: "error", name: "LO_INVALID_ORDERS_LENGTH", inputs: [{ name: "length", type: "uint256", internalType: "uint256" }] },
296
+ { type: "error", name: "LO_INVALID_POSITION_ID", inputs: [] },
297
+ { type: "error", name: "LO_INVALID_PRICE", inputs: [{ name: "price", type: "uint256", internalType: "uint256" }] },
298
+ {
299
+ type: "error",
300
+ name: "LO_INVALID_TOKEN_AMOUNT",
301
+ inputs: [{ name: "tokenAmount", type: "uint256", internalType: "uint256" }],
302
+ },
303
+ {
304
+ type: "error",
305
+ name: "LO_INVALID_USER_LEVERAGE",
306
+ inputs: [
307
+ { name: "user", type: "address", internalType: "address" },
308
+ { name: "uLeverage", type: "uint8", internalType: "uint8" },
309
+ { name: "minULev", type: "uint8", internalType: "uint8" },
310
+ { name: "maxULev", type: "uint8", internalType: "uint8" },
311
+ ],
312
+ },
313
+ { type: "error", name: "LO_NOT_MATCH_MAKER", inputs: [] },
314
+ {
315
+ type: "error",
316
+ name: "LO_POSITION_MARKED_FOR_LIQUIDATION",
317
+ inputs: [
318
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
319
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
320
+ ],
321
+ },
322
+ {
323
+ type: "error",
324
+ name: "LO_POSITION_NOT_OPEN",
325
+ inputs: [
326
+ { name: "user", type: "address", internalType: "address" },
327
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
328
+ ],
329
+ },
330
+ {
331
+ type: "error",
332
+ name: "LO_SELLER_BLACKLISTED",
333
+ inputs: [
334
+ { name: "seller", type: "address", internalType: "address" },
335
+ { name: "positionId", type: "bytes32", internalType: "bytes32" },
336
+ ],
337
+ },
338
+ {
339
+ type: "error",
340
+ name: "LO_SIDE_MISMATCH",
341
+ inputs: [
342
+ { name: "buyer", type: "address", internalType: "address" },
343
+ { name: "sellerPositionId", type: "bytes32", internalType: "bytes32" },
344
+ { name: "positionSide", type: "uint8", internalType: "enum Side" },
345
+ { name: "buyerSide", type: "uint8", internalType: "enum Side" },
346
+ ],
347
+ },
348
+ {
349
+ type: "error",
350
+ name: "LO_TOKEN_AMOUNT_EXCEEDED",
351
+ inputs: [
352
+ { name: "buyer", type: "address", internalType: "address" },
353
+ { name: "sellerPositionId", type: "bytes32", internalType: "bytes32" },
354
+ { name: "tokenAmount", type: "uint256", internalType: "uint256" },
355
+ { name: "availableAmount", type: "uint256", internalType: "uint256" },
356
+ ],
357
+ },
358
+ { type: "error", name: "LO_TRADER_ZERO_ADDRESS", inputs: [] },
358
359
  ];
359
360
  //# sourceMappingURL=LevrOrderbook.js.map