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