@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.
- package/dist/core/contracts/abis/LevrBetCreditManager.d.ts +748 -743
- package/dist/core/contracts/abis/LevrBetCreditManager.js +328 -327
- package/dist/core/contracts/abis/LevrBetCreditManager.js.map +1 -1
- package/dist/core/contracts/abis/LevrConfigProvider.d.ts +2216 -2216
- package/dist/core/contracts/abis/LevrConfigProvider.js +1220 -1220
- package/dist/core/contracts/abis/LevrConfigProvider.js.map +1 -1
- package/dist/core/contracts/abis/LevrMarketRouter.d.ts +176 -176
- package/dist/core/contracts/abis/LevrMarketRouter.js +127 -127
- package/dist/core/contracts/abis/LevrMarketRouter.js.map +1 -1
- package/dist/core/contracts/abis/LevrOrderbook.d.ts +563 -563
- package/dist/core/contracts/abis/LevrOrderbook.js +267 -267
- package/dist/core/contracts/abis/LevrOrderbook.js.map +1 -1
- package/dist/core/contracts/abis/LevrOrderbookLens.d.ts +71 -71
- package/dist/core/contracts/abis/LevrOrderbookLens.js +54 -54
- package/dist/core/contracts/abis/LevrOrderbookLens.js.map +1 -1
- package/dist/core/contracts/abis/index.d.ts +8547 -8542
- package/dist/core/contracts/addresses.d.ts +6 -6
- package/dist/core/contracts/addresses.js +6 -8
- package/dist/core/contracts/addresses.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,714 +1,714 @@
|
|
|
1
1
|
declare const _default: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
2
3
|
readonly inputs: readonly [{
|
|
3
|
-
readonly internalType: "address";
|
|
4
4
|
readonly name: "_levrConfigProvider";
|
|
5
5
|
readonly type: "address";
|
|
6
|
+
readonly internalType: "address";
|
|
6
7
|
}];
|
|
7
8
|
readonly stateMutability: "nonpayable";
|
|
8
|
-
readonly type: "constructor";
|
|
9
|
-
}, {
|
|
10
|
-
readonly inputs: readonly [];
|
|
11
|
-
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
12
|
-
readonly type: "error";
|
|
13
|
-
}, {
|
|
14
|
-
readonly inputs: readonly [];
|
|
15
|
-
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
16
|
-
readonly type: "error";
|
|
17
|
-
}, {
|
|
18
|
-
readonly inputs: readonly [];
|
|
19
|
-
readonly name: "LB_NOT_LEVR_ADMIN";
|
|
20
|
-
readonly type: "error";
|
|
21
|
-
}, {
|
|
22
|
-
readonly inputs: readonly [];
|
|
23
|
-
readonly name: "LM_INVALID_PROGRESS_BPS";
|
|
24
|
-
readonly type: "error";
|
|
25
|
-
}, {
|
|
26
|
-
readonly inputs: readonly [];
|
|
27
|
-
readonly name: "LM_INVALID_TIER_FEE_PARAMS";
|
|
28
|
-
readonly type: "error";
|
|
29
|
-
}, {
|
|
30
|
-
readonly inputs: readonly [];
|
|
31
|
-
readonly name: "LM_INVALID_TOKEN_PRICE";
|
|
32
|
-
readonly type: "error";
|
|
33
9
|
}, {
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
readonly name: "levrConfigProvider";
|
|
34
12
|
readonly inputs: readonly [];
|
|
35
|
-
readonly
|
|
36
|
-
|
|
13
|
+
readonly outputs: readonly [{
|
|
14
|
+
readonly name: "";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
readonly internalType: "address";
|
|
17
|
+
}];
|
|
18
|
+
readonly stateMutability: "view";
|
|
37
19
|
}, {
|
|
20
|
+
readonly type: "function";
|
|
21
|
+
readonly name: "matchAsksToBid";
|
|
38
22
|
readonly inputs: readonly [{
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
23
|
+
readonly name: "input";
|
|
24
|
+
readonly type: "tuple";
|
|
25
|
+
readonly internalType: "struct AsksToBidInput";
|
|
26
|
+
readonly components: readonly [{
|
|
27
|
+
readonly name: "asks";
|
|
28
|
+
readonly type: "tuple[]";
|
|
29
|
+
readonly internalType: "struct Ask[]";
|
|
30
|
+
readonly components: readonly [{
|
|
31
|
+
readonly name: "positionId";
|
|
32
|
+
readonly type: "bytes32";
|
|
33
|
+
readonly internalType: "bytes32";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "tradePrice";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
readonly internalType: "uint256";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "tokenAmount";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
}];
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "gameMarketId";
|
|
45
|
+
readonly type: "bytes32";
|
|
46
|
+
readonly internalType: "bytes32";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "side";
|
|
49
|
+
readonly type: "uint8";
|
|
50
|
+
readonly internalType: "enum Side";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "buyer";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "leverage";
|
|
57
|
+
readonly type: "uint8";
|
|
58
|
+
readonly internalType: "uint8";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "levrMarketId";
|
|
61
|
+
readonly type: "bytes16";
|
|
62
|
+
readonly internalType: "bytes16";
|
|
63
|
+
}];
|
|
46
64
|
}];
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
65
|
+
readonly outputs: readonly [];
|
|
66
|
+
readonly stateMutability: "nonpayable";
|
|
49
67
|
}, {
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
readonly name: "matchBidsToAsk";
|
|
50
70
|
readonly inputs: readonly [{
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
71
|
+
readonly name: "input";
|
|
72
|
+
readonly type: "tuple";
|
|
73
|
+
readonly internalType: "struct BidsToAskInput";
|
|
74
|
+
readonly components: readonly [{
|
|
75
|
+
readonly name: "bids";
|
|
76
|
+
readonly type: "tuple[]";
|
|
77
|
+
readonly internalType: "struct Bid[]";
|
|
78
|
+
readonly components: readonly [{
|
|
79
|
+
readonly name: "tradePrice";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
readonly internalType: "uint256";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "tokenAmount";
|
|
84
|
+
readonly type: "uint256";
|
|
85
|
+
readonly internalType: "uint256";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "buyer";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
readonly internalType: "address";
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "leverage";
|
|
92
|
+
readonly type: "uint8";
|
|
93
|
+
readonly internalType: "uint8";
|
|
94
|
+
}];
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "positionId";
|
|
97
|
+
readonly type: "bytes32";
|
|
98
|
+
readonly internalType: "bytes32";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "gameMarketId";
|
|
101
|
+
readonly type: "bytes32";
|
|
102
|
+
readonly internalType: "bytes32";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "side";
|
|
105
|
+
readonly type: "uint8";
|
|
106
|
+
readonly internalType: "enum Side";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "levrMarketId";
|
|
109
|
+
readonly type: "bytes16";
|
|
110
|
+
readonly internalType: "bytes16";
|
|
111
|
+
}];
|
|
62
112
|
}];
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
113
|
+
readonly outputs: readonly [];
|
|
114
|
+
readonly stateMutability: "nonpayable";
|
|
65
115
|
}, {
|
|
116
|
+
readonly type: "function";
|
|
117
|
+
readonly name: "matchOrders";
|
|
66
118
|
readonly inputs: readonly [{
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
119
|
+
readonly name: "asksToBid";
|
|
120
|
+
readonly type: "tuple";
|
|
121
|
+
readonly internalType: "struct AsksToBidInput";
|
|
122
|
+
readonly components: readonly [{
|
|
123
|
+
readonly name: "asks";
|
|
124
|
+
readonly type: "tuple[]";
|
|
125
|
+
readonly internalType: "struct Ask[]";
|
|
126
|
+
readonly components: readonly [{
|
|
127
|
+
readonly name: "positionId";
|
|
128
|
+
readonly type: "bytes32";
|
|
129
|
+
readonly internalType: "bytes32";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "tradePrice";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
readonly internalType: "uint256";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "tokenAmount";
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
readonly internalType: "uint256";
|
|
138
|
+
}];
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "gameMarketId";
|
|
141
|
+
readonly type: "bytes32";
|
|
142
|
+
readonly internalType: "bytes32";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "side";
|
|
145
|
+
readonly type: "uint8";
|
|
146
|
+
readonly internalType: "enum Side";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "buyer";
|
|
149
|
+
readonly type: "address";
|
|
150
|
+
readonly internalType: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "leverage";
|
|
153
|
+
readonly type: "uint8";
|
|
154
|
+
readonly internalType: "uint8";
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "levrMarketId";
|
|
157
|
+
readonly type: "bytes16";
|
|
158
|
+
readonly internalType: "bytes16";
|
|
159
|
+
}];
|
|
78
160
|
}, {
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
161
|
+
readonly name: "bidsToAsk";
|
|
162
|
+
readonly type: "tuple";
|
|
163
|
+
readonly internalType: "struct BidsToAskInput";
|
|
164
|
+
readonly components: readonly [{
|
|
165
|
+
readonly name: "bids";
|
|
166
|
+
readonly type: "tuple[]";
|
|
167
|
+
readonly internalType: "struct Bid[]";
|
|
168
|
+
readonly components: readonly [{
|
|
169
|
+
readonly name: "tradePrice";
|
|
170
|
+
readonly type: "uint256";
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "tokenAmount";
|
|
174
|
+
readonly type: "uint256";
|
|
175
|
+
readonly internalType: "uint256";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "buyer";
|
|
178
|
+
readonly type: "address";
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "leverage";
|
|
182
|
+
readonly type: "uint8";
|
|
183
|
+
readonly internalType: "uint8";
|
|
184
|
+
}];
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "positionId";
|
|
187
|
+
readonly type: "bytes32";
|
|
188
|
+
readonly internalType: "bytes32";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "gameMarketId";
|
|
191
|
+
readonly type: "bytes32";
|
|
192
|
+
readonly internalType: "bytes32";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "side";
|
|
195
|
+
readonly type: "uint8";
|
|
196
|
+
readonly internalType: "enum Side";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "levrMarketId";
|
|
199
|
+
readonly type: "bytes16";
|
|
200
|
+
readonly internalType: "bytes16";
|
|
201
|
+
}];
|
|
82
202
|
}];
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
203
|
+
readonly outputs: readonly [];
|
|
204
|
+
readonly stateMutability: "nonpayable";
|
|
85
205
|
}, {
|
|
206
|
+
readonly type: "function";
|
|
207
|
+
readonly name: "matchOrders";
|
|
86
208
|
readonly inputs: readonly [{
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
209
|
+
readonly name: "asksData";
|
|
210
|
+
readonly type: "tuple[]";
|
|
211
|
+
readonly internalType: "struct AsksToBidInput[]";
|
|
212
|
+
readonly components: readonly [{
|
|
213
|
+
readonly name: "asks";
|
|
214
|
+
readonly type: "tuple[]";
|
|
215
|
+
readonly internalType: "struct Ask[]";
|
|
216
|
+
readonly components: readonly [{
|
|
217
|
+
readonly name: "positionId";
|
|
218
|
+
readonly type: "bytes32";
|
|
219
|
+
readonly internalType: "bytes32";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "tradePrice";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
readonly internalType: "uint256";
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "tokenAmount";
|
|
226
|
+
readonly type: "uint256";
|
|
227
|
+
readonly internalType: "uint256";
|
|
228
|
+
}];
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "gameMarketId";
|
|
231
|
+
readonly type: "bytes32";
|
|
232
|
+
readonly internalType: "bytes32";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "side";
|
|
235
|
+
readonly type: "uint8";
|
|
236
|
+
readonly internalType: "enum Side";
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "buyer";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
readonly internalType: "address";
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "leverage";
|
|
243
|
+
readonly type: "uint8";
|
|
244
|
+
readonly internalType: "uint8";
|
|
245
|
+
}, {
|
|
246
|
+
readonly name: "levrMarketId";
|
|
247
|
+
readonly type: "bytes16";
|
|
248
|
+
readonly internalType: "bytes16";
|
|
249
|
+
}];
|
|
110
250
|
}, {
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
251
|
+
readonly name: "bids";
|
|
252
|
+
readonly type: "tuple[]";
|
|
253
|
+
readonly internalType: "struct BidsToAskInput[]";
|
|
254
|
+
readonly components: readonly [{
|
|
255
|
+
readonly name: "bids";
|
|
256
|
+
readonly type: "tuple[]";
|
|
257
|
+
readonly internalType: "struct Bid[]";
|
|
258
|
+
readonly components: readonly [{
|
|
259
|
+
readonly name: "tradePrice";
|
|
260
|
+
readonly type: "uint256";
|
|
261
|
+
readonly internalType: "uint256";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "tokenAmount";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
readonly internalType: "uint256";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "buyer";
|
|
268
|
+
readonly type: "address";
|
|
269
|
+
readonly internalType: "address";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "leverage";
|
|
272
|
+
readonly type: "uint8";
|
|
273
|
+
readonly internalType: "uint8";
|
|
274
|
+
}];
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "positionId";
|
|
277
|
+
readonly type: "bytes32";
|
|
278
|
+
readonly internalType: "bytes32";
|
|
279
|
+
}, {
|
|
280
|
+
readonly name: "gameMarketId";
|
|
281
|
+
readonly type: "bytes32";
|
|
282
|
+
readonly internalType: "bytes32";
|
|
283
|
+
}, {
|
|
284
|
+
readonly name: "side";
|
|
285
|
+
readonly type: "uint8";
|
|
286
|
+
readonly internalType: "enum Side";
|
|
287
|
+
}, {
|
|
288
|
+
readonly name: "levrMarketId";
|
|
289
|
+
readonly type: "bytes16";
|
|
290
|
+
readonly internalType: "bytes16";
|
|
291
|
+
}];
|
|
114
292
|
}];
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
}, {
|
|
118
|
-
readonly inputs: readonly [];
|
|
119
|
-
readonly name: "LO_INVALID_GAME_PROGRESS";
|
|
120
|
-
readonly type: "error";
|
|
293
|
+
readonly outputs: readonly [];
|
|
294
|
+
readonly stateMutability: "nonpayable";
|
|
121
295
|
}, {
|
|
296
|
+
readonly type: "function";
|
|
297
|
+
readonly name: "supportsInterface";
|
|
122
298
|
readonly inputs: readonly [{
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
299
|
+
readonly name: "interfaceId";
|
|
300
|
+
readonly type: "bytes4";
|
|
301
|
+
readonly internalType: "bytes4";
|
|
126
302
|
}];
|
|
127
|
-
readonly
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
readonly name: "LO_INVALID_POSITION_ID";
|
|
132
|
-
readonly type: "error";
|
|
133
|
-
}, {
|
|
134
|
-
readonly inputs: readonly [{
|
|
135
|
-
readonly internalType: "uint256";
|
|
136
|
-
readonly name: "price";
|
|
137
|
-
readonly type: "uint256";
|
|
303
|
+
readonly outputs: readonly [{
|
|
304
|
+
readonly name: "";
|
|
305
|
+
readonly type: "bool";
|
|
306
|
+
readonly internalType: "bool";
|
|
138
307
|
}];
|
|
139
|
-
readonly
|
|
140
|
-
readonly type: "error";
|
|
308
|
+
readonly stateMutability: "view";
|
|
141
309
|
}, {
|
|
310
|
+
readonly type: "function";
|
|
311
|
+
readonly name: "updateLevrConfigProvider";
|
|
142
312
|
readonly inputs: readonly [{
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
145
|
-
readonly
|
|
313
|
+
readonly name: "newLevrConfigProvider";
|
|
314
|
+
readonly type: "address";
|
|
315
|
+
readonly internalType: "address";
|
|
146
316
|
}];
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
317
|
+
readonly outputs: readonly [];
|
|
318
|
+
readonly stateMutability: "nonpayable";
|
|
149
319
|
}, {
|
|
320
|
+
readonly type: "event";
|
|
321
|
+
readonly name: "LevrConfigProviderUpdated";
|
|
150
322
|
readonly inputs: readonly [{
|
|
151
|
-
readonly
|
|
152
|
-
readonly name: "user";
|
|
323
|
+
readonly name: "prevProvider";
|
|
153
324
|
readonly type: "address";
|
|
325
|
+
readonly indexed: true;
|
|
326
|
+
readonly internalType: "address";
|
|
154
327
|
}, {
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
|
|
159
|
-
readonly internalType: "uint8";
|
|
160
|
-
readonly name: "minULev";
|
|
161
|
-
readonly type: "uint8";
|
|
162
|
-
}, {
|
|
163
|
-
readonly internalType: "uint8";
|
|
164
|
-
readonly name: "maxULev";
|
|
165
|
-
readonly type: "uint8";
|
|
328
|
+
readonly name: "newProvider";
|
|
329
|
+
readonly type: "address";
|
|
330
|
+
readonly indexed: true;
|
|
331
|
+
readonly internalType: "address";
|
|
166
332
|
}];
|
|
167
|
-
readonly
|
|
168
|
-
readonly type: "error";
|
|
169
|
-
}, {
|
|
170
|
-
readonly inputs: readonly [];
|
|
171
|
-
readonly name: "LO_NOT_MATCH_MAKER";
|
|
172
|
-
readonly type: "error";
|
|
333
|
+
readonly anonymous: false;
|
|
173
334
|
}, {
|
|
335
|
+
readonly type: "event";
|
|
336
|
+
readonly name: "TradeExecutedBuyerDetails";
|
|
174
337
|
readonly inputs: readonly [{
|
|
175
|
-
readonly internalType: "bytes32";
|
|
176
338
|
readonly name: "gameMarketId";
|
|
177
339
|
readonly type: "bytes32";
|
|
178
|
-
|
|
340
|
+
readonly indexed: true;
|
|
179
341
|
readonly internalType: "bytes32";
|
|
180
|
-
readonly name: "positionId";
|
|
181
|
-
readonly type: "bytes32";
|
|
182
|
-
}];
|
|
183
|
-
readonly name: "LO_POSITION_MARKED_FOR_LIQUIDATION";
|
|
184
|
-
readonly type: "error";
|
|
185
|
-
}, {
|
|
186
|
-
readonly inputs: readonly [{
|
|
187
|
-
readonly internalType: "address";
|
|
188
|
-
readonly name: "user";
|
|
189
|
-
readonly type: "address";
|
|
190
342
|
}, {
|
|
191
|
-
readonly
|
|
192
|
-
readonly name: "positionId";
|
|
343
|
+
readonly name: "purchasedPositionId";
|
|
193
344
|
readonly type: "bytes32";
|
|
194
|
-
|
|
195
|
-
readonly name: "LO_POSITION_NOT_OPEN";
|
|
196
|
-
readonly type: "error";
|
|
197
|
-
}, {
|
|
198
|
-
readonly inputs: readonly [{
|
|
199
|
-
readonly internalType: "address";
|
|
200
|
-
readonly name: "seller";
|
|
201
|
-
readonly type: "address";
|
|
202
|
-
}, {
|
|
345
|
+
readonly indexed: true;
|
|
203
346
|
readonly internalType: "bytes32";
|
|
204
|
-
readonly name: "positionId";
|
|
205
|
-
readonly type: "bytes32";
|
|
206
|
-
}];
|
|
207
|
-
readonly name: "LO_SELLER_BLACKLISTED";
|
|
208
|
-
readonly type: "error";
|
|
209
|
-
}, {
|
|
210
|
-
readonly inputs: readonly [{
|
|
211
|
-
readonly internalType: "address";
|
|
212
|
-
readonly name: "buyer";
|
|
213
|
-
readonly type: "address";
|
|
214
347
|
}, {
|
|
215
|
-
readonly
|
|
216
|
-
readonly name: "sellerPositionId";
|
|
348
|
+
readonly name: "counterPartyPositionId";
|
|
217
349
|
readonly type: "bytes32";
|
|
350
|
+
readonly indexed: true;
|
|
351
|
+
readonly internalType: "bytes32";
|
|
218
352
|
}, {
|
|
219
|
-
readonly internalType: "enum Side";
|
|
220
|
-
readonly name: "positionSide";
|
|
221
|
-
readonly type: "uint8";
|
|
222
|
-
}, {
|
|
223
|
-
readonly internalType: "enum Side";
|
|
224
|
-
readonly name: "buyerSide";
|
|
225
|
-
readonly type: "uint8";
|
|
226
|
-
}];
|
|
227
|
-
readonly name: "LO_SIDE_MISMATCH";
|
|
228
|
-
readonly type: "error";
|
|
229
|
-
}, {
|
|
230
|
-
readonly inputs: readonly [{
|
|
231
|
-
readonly internalType: "address";
|
|
232
353
|
readonly name: "buyer";
|
|
233
354
|
readonly type: "address";
|
|
355
|
+
readonly indexed: false;
|
|
356
|
+
readonly internalType: "address";
|
|
234
357
|
}, {
|
|
235
|
-
readonly
|
|
236
|
-
readonly
|
|
237
|
-
readonly
|
|
358
|
+
readonly name: "levrMarketId";
|
|
359
|
+
readonly type: "bytes16";
|
|
360
|
+
readonly indexed: false;
|
|
361
|
+
readonly internalType: "bytes16";
|
|
238
362
|
}, {
|
|
239
|
-
readonly
|
|
240
|
-
readonly name: "tokenAmount";
|
|
363
|
+
readonly name: "purchaseSize";
|
|
241
364
|
readonly type: "uint256";
|
|
242
|
-
|
|
365
|
+
readonly indexed: false;
|
|
243
366
|
readonly internalType: "uint256";
|
|
244
|
-
|
|
367
|
+
}, {
|
|
368
|
+
readonly name: "purchaseCollateral";
|
|
245
369
|
readonly type: "uint256";
|
|
246
|
-
}];
|
|
247
|
-
readonly name: "LO_TOKEN_AMOUNT_EXCEEDED";
|
|
248
|
-
readonly type: "error";
|
|
249
|
-
}, {
|
|
250
|
-
readonly inputs: readonly [];
|
|
251
|
-
readonly name: "LO_TRADER_ZERO_ADDRESS";
|
|
252
|
-
readonly type: "error";
|
|
253
|
-
}, {
|
|
254
|
-
readonly anonymous: false;
|
|
255
|
-
readonly inputs: readonly [{
|
|
256
|
-
readonly indexed: true;
|
|
257
|
-
readonly internalType: "address";
|
|
258
|
-
readonly name: "prevProvider";
|
|
259
|
-
readonly type: "address";
|
|
260
|
-
}, {
|
|
261
|
-
readonly indexed: true;
|
|
262
|
-
readonly internalType: "address";
|
|
263
|
-
readonly name: "newProvider";
|
|
264
|
-
readonly type: "address";
|
|
265
|
-
}];
|
|
266
|
-
readonly name: "LevrConfigProviderUpdated";
|
|
267
|
-
readonly type: "event";
|
|
268
|
-
}, {
|
|
269
|
-
readonly anonymous: false;
|
|
270
|
-
readonly inputs: readonly [{
|
|
271
|
-
readonly indexed: true;
|
|
272
|
-
readonly internalType: "bytes32";
|
|
273
|
-
readonly name: "gameMarketId";
|
|
274
|
-
readonly type: "bytes32";
|
|
275
|
-
}, {
|
|
276
|
-
readonly indexed: true;
|
|
277
|
-
readonly internalType: "bytes32";
|
|
278
|
-
readonly name: "purchasedPositionId";
|
|
279
|
-
readonly type: "bytes32";
|
|
280
|
-
}, {
|
|
281
|
-
readonly indexed: true;
|
|
282
|
-
readonly internalType: "bytes32";
|
|
283
|
-
readonly name: "counterPartyPositionId";
|
|
284
|
-
readonly type: "bytes32";
|
|
285
|
-
}, {
|
|
286
|
-
readonly indexed: false;
|
|
287
|
-
readonly internalType: "address";
|
|
288
|
-
readonly name: "buyer";
|
|
289
|
-
readonly type: "address";
|
|
290
|
-
}, {
|
|
291
|
-
readonly indexed: false;
|
|
292
|
-
readonly internalType: "bytes16";
|
|
293
|
-
readonly name: "levrMarketId";
|
|
294
|
-
readonly type: "bytes16";
|
|
295
|
-
}, {
|
|
296
370
|
readonly indexed: false;
|
|
297
371
|
readonly internalType: "uint256";
|
|
298
|
-
readonly name: "purchaseSize";
|
|
299
|
-
readonly type: "uint256";
|
|
300
|
-
}, {
|
|
301
|
-
readonly indexed: false;
|
|
302
|
-
readonly internalType: "uint256";
|
|
303
|
-
readonly name: "purchaseCollateral";
|
|
304
|
-
readonly type: "uint256";
|
|
305
372
|
}, {
|
|
306
|
-
readonly indexed: false;
|
|
307
|
-
readonly internalType: "uint256";
|
|
308
373
|
readonly name: "purchasePositionFee";
|
|
309
374
|
readonly type: "uint256";
|
|
310
|
-
}, {
|
|
311
375
|
readonly indexed: false;
|
|
312
376
|
readonly internalType: "uint256";
|
|
377
|
+
}, {
|
|
313
378
|
readonly name: "purchaseBalanceFee";
|
|
314
379
|
readonly type: "uint256";
|
|
315
|
-
}, {
|
|
316
380
|
readonly indexed: false;
|
|
317
381
|
readonly internalType: "uint256";
|
|
382
|
+
}, {
|
|
318
383
|
readonly name: "buyerTxFee";
|
|
319
384
|
readonly type: "uint256";
|
|
320
|
-
}, {
|
|
321
385
|
readonly indexed: false;
|
|
322
386
|
readonly internalType: "uint256";
|
|
387
|
+
}, {
|
|
323
388
|
readonly name: "purchasePrice";
|
|
324
389
|
readonly type: "uint256";
|
|
390
|
+
readonly indexed: false;
|
|
391
|
+
readonly internalType: "uint256";
|
|
325
392
|
}];
|
|
326
|
-
readonly name: "TradeExecutedBuyerDetails";
|
|
327
|
-
readonly type: "event";
|
|
328
|
-
}, {
|
|
329
393
|
readonly anonymous: false;
|
|
394
|
+
}, {
|
|
395
|
+
readonly type: "event";
|
|
396
|
+
readonly name: "TradeExecutedSellerDetails";
|
|
330
397
|
readonly inputs: readonly [{
|
|
331
|
-
readonly indexed: true;
|
|
332
|
-
readonly internalType: "bytes32";
|
|
333
398
|
readonly name: "gameMarketId";
|
|
334
399
|
readonly type: "bytes32";
|
|
335
|
-
}, {
|
|
336
400
|
readonly indexed: true;
|
|
337
401
|
readonly internalType: "bytes32";
|
|
402
|
+
}, {
|
|
338
403
|
readonly name: "soldPositionId";
|
|
339
404
|
readonly type: "bytes32";
|
|
340
|
-
}, {
|
|
341
405
|
readonly indexed: true;
|
|
342
406
|
readonly internalType: "bytes32";
|
|
407
|
+
}, {
|
|
343
408
|
readonly name: "counterPartyPositionId";
|
|
344
409
|
readonly type: "bytes32";
|
|
410
|
+
readonly indexed: true;
|
|
411
|
+
readonly internalType: "bytes32";
|
|
345
412
|
}, {
|
|
346
|
-
readonly indexed: false;
|
|
347
|
-
readonly internalType: "address";
|
|
348
413
|
readonly name: "seller";
|
|
349
414
|
readonly type: "address";
|
|
350
|
-
}, {
|
|
351
415
|
readonly indexed: false;
|
|
352
|
-
readonly internalType: "
|
|
416
|
+
readonly internalType: "address";
|
|
417
|
+
}, {
|
|
353
418
|
readonly name: "levrMarketId";
|
|
354
419
|
readonly type: "bytes16";
|
|
355
|
-
}, {
|
|
356
420
|
readonly indexed: false;
|
|
357
|
-
readonly internalType: "
|
|
421
|
+
readonly internalType: "bytes16";
|
|
422
|
+
}, {
|
|
358
423
|
readonly name: "saleSize";
|
|
359
424
|
readonly type: "uint256";
|
|
360
|
-
}, {
|
|
361
425
|
readonly indexed: false;
|
|
362
426
|
readonly internalType: "uint256";
|
|
427
|
+
}, {
|
|
363
428
|
readonly name: "saleCollateral";
|
|
364
429
|
readonly type: "uint256";
|
|
365
|
-
}, {
|
|
366
430
|
readonly indexed: false;
|
|
367
431
|
readonly internalType: "uint256";
|
|
432
|
+
}, {
|
|
368
433
|
readonly name: "salePositionFee";
|
|
369
434
|
readonly type: "uint256";
|
|
370
|
-
}, {
|
|
371
435
|
readonly indexed: false;
|
|
372
436
|
readonly internalType: "uint256";
|
|
437
|
+
}, {
|
|
373
438
|
readonly name: "saleBalanceFee";
|
|
374
439
|
readonly type: "uint256";
|
|
375
|
-
}, {
|
|
376
440
|
readonly indexed: false;
|
|
377
441
|
readonly internalType: "uint256";
|
|
442
|
+
}, {
|
|
378
443
|
readonly name: "saleRealizedBorrowFee";
|
|
379
444
|
readonly type: "uint256";
|
|
380
|
-
}, {
|
|
381
445
|
readonly indexed: false;
|
|
382
446
|
readonly internalType: "uint256";
|
|
447
|
+
}, {
|
|
383
448
|
readonly name: "sellerTxFee";
|
|
384
449
|
readonly type: "uint256";
|
|
385
|
-
}, {
|
|
386
450
|
readonly indexed: false;
|
|
387
451
|
readonly internalType: "uint256";
|
|
452
|
+
}, {
|
|
388
453
|
readonly name: "salePayout";
|
|
389
454
|
readonly type: "uint256";
|
|
390
|
-
}, {
|
|
391
455
|
readonly indexed: false;
|
|
392
456
|
readonly internalType: "uint256";
|
|
457
|
+
}, {
|
|
393
458
|
readonly name: "salePrice";
|
|
394
459
|
readonly type: "uint256";
|
|
395
|
-
}, {
|
|
396
460
|
readonly indexed: false;
|
|
397
461
|
readonly internalType: "uint256";
|
|
462
|
+
}, {
|
|
398
463
|
readonly name: "saleProfit";
|
|
399
464
|
readonly type: "uint256";
|
|
465
|
+
readonly indexed: false;
|
|
466
|
+
readonly internalType: "uint256";
|
|
400
467
|
}];
|
|
401
|
-
readonly
|
|
402
|
-
|
|
468
|
+
readonly anonymous: false;
|
|
469
|
+
}, {
|
|
470
|
+
readonly type: "error";
|
|
471
|
+
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
472
|
+
readonly inputs: readonly [];
|
|
403
473
|
}, {
|
|
474
|
+
readonly type: "error";
|
|
475
|
+
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
476
|
+
readonly inputs: readonly [];
|
|
477
|
+
}, {
|
|
478
|
+
readonly type: "error";
|
|
479
|
+
readonly name: "LB_NOT_LEVR_ADMIN";
|
|
404
480
|
readonly inputs: readonly [];
|
|
405
|
-
readonly name: "levrConfigProvider";
|
|
406
|
-
readonly outputs: readonly [{
|
|
407
|
-
readonly internalType: "address";
|
|
408
|
-
readonly name: "";
|
|
409
|
-
readonly type: "address";
|
|
410
|
-
}];
|
|
411
|
-
readonly stateMutability: "view";
|
|
412
|
-
readonly type: "function";
|
|
413
481
|
}, {
|
|
482
|
+
readonly type: "error";
|
|
483
|
+
readonly name: "LM_INVALID_PROGRESS_BPS";
|
|
484
|
+
readonly inputs: readonly [];
|
|
485
|
+
}, {
|
|
486
|
+
readonly type: "error";
|
|
487
|
+
readonly name: "LM_INVALID_TIER_FEE_PARAMS";
|
|
488
|
+
readonly inputs: readonly [];
|
|
489
|
+
}, {
|
|
490
|
+
readonly type: "error";
|
|
491
|
+
readonly name: "LM_INVALID_TOKEN_PRICE";
|
|
492
|
+
readonly inputs: readonly [];
|
|
493
|
+
}, {
|
|
494
|
+
readonly type: "error";
|
|
495
|
+
readonly name: "LO_BCM_NOT_ALLOWED";
|
|
496
|
+
readonly inputs: readonly [];
|
|
497
|
+
}, {
|
|
498
|
+
readonly type: "error";
|
|
499
|
+
readonly name: "LO_BUYER_CANNOT_BE_SELLER";
|
|
414
500
|
readonly inputs: readonly [{
|
|
415
|
-
readonly
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
readonly name: "tradePrice";
|
|
423
|
-
readonly type: "uint256";
|
|
424
|
-
}, {
|
|
425
|
-
readonly internalType: "uint256";
|
|
426
|
-
readonly name: "tokenAmount";
|
|
427
|
-
readonly type: "uint256";
|
|
428
|
-
}];
|
|
429
|
-
readonly internalType: "struct Ask[]";
|
|
430
|
-
readonly name: "asks";
|
|
431
|
-
readonly type: "tuple[]";
|
|
432
|
-
}, {
|
|
433
|
-
readonly internalType: "bytes32";
|
|
434
|
-
readonly name: "gameMarketId";
|
|
435
|
-
readonly type: "bytes32";
|
|
436
|
-
}, {
|
|
437
|
-
readonly internalType: "enum Side";
|
|
438
|
-
readonly name: "side";
|
|
439
|
-
readonly type: "uint8";
|
|
440
|
-
}, {
|
|
441
|
-
readonly internalType: "address";
|
|
442
|
-
readonly name: "buyer";
|
|
443
|
-
readonly type: "address";
|
|
444
|
-
}, {
|
|
445
|
-
readonly internalType: "uint8";
|
|
446
|
-
readonly name: "leverage";
|
|
447
|
-
readonly type: "uint8";
|
|
448
|
-
}, {
|
|
449
|
-
readonly internalType: "bytes16";
|
|
450
|
-
readonly name: "levrMarketId";
|
|
451
|
-
readonly type: "bytes16";
|
|
452
|
-
}];
|
|
453
|
-
readonly internalType: "struct AsksToBidInput";
|
|
454
|
-
readonly name: "input";
|
|
455
|
-
readonly type: "tuple";
|
|
501
|
+
readonly name: "buyer";
|
|
502
|
+
readonly type: "address";
|
|
503
|
+
readonly internalType: "address";
|
|
504
|
+
}, {
|
|
505
|
+
readonly name: "askedPositionId";
|
|
506
|
+
readonly type: "bytes32";
|
|
507
|
+
readonly internalType: "bytes32";
|
|
456
508
|
}];
|
|
457
|
-
readonly name: "matchAsksToBid";
|
|
458
|
-
readonly outputs: readonly [];
|
|
459
|
-
readonly stateMutability: "nonpayable";
|
|
460
|
-
readonly type: "function";
|
|
461
509
|
}, {
|
|
510
|
+
readonly type: "error";
|
|
511
|
+
readonly name: "LO_BUYER_LIQ_PRICE_EXCEEDS_MARKET_PRICE";
|
|
462
512
|
readonly inputs: readonly [{
|
|
463
|
-
readonly
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
readonly name: "buyer";
|
|
475
|
-
readonly type: "address";
|
|
476
|
-
}, {
|
|
477
|
-
readonly internalType: "uint8";
|
|
478
|
-
readonly name: "leverage";
|
|
479
|
-
readonly type: "uint8";
|
|
480
|
-
}];
|
|
481
|
-
readonly internalType: "struct Bid[]";
|
|
482
|
-
readonly name: "bids";
|
|
483
|
-
readonly type: "tuple[]";
|
|
484
|
-
}, {
|
|
485
|
-
readonly internalType: "bytes32";
|
|
486
|
-
readonly name: "positionId";
|
|
487
|
-
readonly type: "bytes32";
|
|
488
|
-
}, {
|
|
489
|
-
readonly internalType: "bytes32";
|
|
490
|
-
readonly name: "gameMarketId";
|
|
491
|
-
readonly type: "bytes32";
|
|
492
|
-
}, {
|
|
493
|
-
readonly internalType: "enum Side";
|
|
494
|
-
readonly name: "side";
|
|
495
|
-
readonly type: "uint8";
|
|
496
|
-
}, {
|
|
497
|
-
readonly internalType: "bytes16";
|
|
498
|
-
readonly name: "levrMarketId";
|
|
499
|
-
readonly type: "bytes16";
|
|
500
|
-
}];
|
|
501
|
-
readonly internalType: "struct BidsToAskInput";
|
|
502
|
-
readonly name: "input";
|
|
503
|
-
readonly type: "tuple";
|
|
513
|
+
readonly name: "positionId";
|
|
514
|
+
readonly type: "bytes32";
|
|
515
|
+
readonly internalType: "bytes32";
|
|
516
|
+
}, {
|
|
517
|
+
readonly name: "liqPrice";
|
|
518
|
+
readonly type: "uint256";
|
|
519
|
+
readonly internalType: "uint256";
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "marketPrice";
|
|
522
|
+
readonly type: "uint256";
|
|
523
|
+
readonly internalType: "uint256";
|
|
504
524
|
}];
|
|
505
|
-
readonly name: "matchBidsToAsk";
|
|
506
|
-
readonly outputs: readonly [];
|
|
507
|
-
readonly stateMutability: "nonpayable";
|
|
508
|
-
readonly type: "function";
|
|
509
525
|
}, {
|
|
526
|
+
readonly type: "error";
|
|
527
|
+
readonly name: "LO_FEES_EXCEEDS_PAYOUT";
|
|
510
528
|
readonly inputs: readonly [{
|
|
511
|
-
readonly
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
readonly name: "positionId";
|
|
515
|
-
readonly type: "bytes32";
|
|
516
|
-
}, {
|
|
517
|
-
readonly internalType: "uint256";
|
|
518
|
-
readonly name: "tradePrice";
|
|
519
|
-
readonly type: "uint256";
|
|
520
|
-
}, {
|
|
521
|
-
readonly internalType: "uint256";
|
|
522
|
-
readonly name: "tokenAmount";
|
|
523
|
-
readonly type: "uint256";
|
|
524
|
-
}];
|
|
525
|
-
readonly internalType: "struct Ask[]";
|
|
526
|
-
readonly name: "asks";
|
|
527
|
-
readonly type: "tuple[]";
|
|
528
|
-
}, {
|
|
529
|
-
readonly internalType: "bytes32";
|
|
530
|
-
readonly name: "gameMarketId";
|
|
531
|
-
readonly type: "bytes32";
|
|
532
|
-
}, {
|
|
533
|
-
readonly internalType: "enum Side";
|
|
534
|
-
readonly name: "side";
|
|
535
|
-
readonly type: "uint8";
|
|
536
|
-
}, {
|
|
537
|
-
readonly internalType: "address";
|
|
538
|
-
readonly name: "buyer";
|
|
539
|
-
readonly type: "address";
|
|
540
|
-
}, {
|
|
541
|
-
readonly internalType: "uint8";
|
|
542
|
-
readonly name: "leverage";
|
|
543
|
-
readonly type: "uint8";
|
|
544
|
-
}, {
|
|
545
|
-
readonly internalType: "bytes16";
|
|
546
|
-
readonly name: "levrMarketId";
|
|
547
|
-
readonly type: "bytes16";
|
|
548
|
-
}];
|
|
549
|
-
readonly internalType: "struct AsksToBidInput";
|
|
550
|
-
readonly name: "asksToBid";
|
|
551
|
-
readonly type: "tuple";
|
|
529
|
+
readonly name: "positionId";
|
|
530
|
+
readonly type: "bytes32";
|
|
531
|
+
readonly internalType: "bytes32";
|
|
552
532
|
}, {
|
|
553
|
-
readonly
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
readonly name: "buyer";
|
|
565
|
-
readonly type: "address";
|
|
566
|
-
}, {
|
|
567
|
-
readonly internalType: "uint8";
|
|
568
|
-
readonly name: "leverage";
|
|
569
|
-
readonly type: "uint8";
|
|
570
|
-
}];
|
|
571
|
-
readonly internalType: "struct Bid[]";
|
|
572
|
-
readonly name: "bids";
|
|
573
|
-
readonly type: "tuple[]";
|
|
574
|
-
}, {
|
|
575
|
-
readonly internalType: "bytes32";
|
|
576
|
-
readonly name: "positionId";
|
|
577
|
-
readonly type: "bytes32";
|
|
578
|
-
}, {
|
|
579
|
-
readonly internalType: "bytes32";
|
|
580
|
-
readonly name: "gameMarketId";
|
|
581
|
-
readonly type: "bytes32";
|
|
582
|
-
}, {
|
|
583
|
-
readonly internalType: "enum Side";
|
|
584
|
-
readonly name: "side";
|
|
585
|
-
readonly type: "uint8";
|
|
586
|
-
}, {
|
|
587
|
-
readonly internalType: "bytes16";
|
|
588
|
-
readonly name: "levrMarketId";
|
|
589
|
-
readonly type: "bytes16";
|
|
590
|
-
}];
|
|
591
|
-
readonly internalType: "struct BidsToAskInput";
|
|
592
|
-
readonly name: "bidsToAsk";
|
|
593
|
-
readonly type: "tuple";
|
|
533
|
+
readonly name: "salePayout";
|
|
534
|
+
readonly type: "uint256";
|
|
535
|
+
readonly internalType: "uint256";
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "saleRealizedBorrowFee";
|
|
538
|
+
readonly type: "uint256";
|
|
539
|
+
readonly internalType: "uint256";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "saleTxFee";
|
|
542
|
+
readonly type: "uint256";
|
|
543
|
+
readonly internalType: "uint256";
|
|
594
544
|
}];
|
|
595
|
-
readonly name: "matchOrders";
|
|
596
|
-
readonly outputs: readonly [];
|
|
597
|
-
readonly stateMutability: "nonpayable";
|
|
598
|
-
readonly type: "function";
|
|
599
545
|
}, {
|
|
546
|
+
readonly type: "error";
|
|
547
|
+
readonly name: "LO_INSUFFICIENT_COLLATERAL_AFTER_FEES";
|
|
600
548
|
readonly inputs: readonly [{
|
|
601
|
-
readonly
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
readonly name: "positionId";
|
|
605
|
-
readonly type: "bytes32";
|
|
606
|
-
}, {
|
|
607
|
-
readonly internalType: "uint256";
|
|
608
|
-
readonly name: "tradePrice";
|
|
609
|
-
readonly type: "uint256";
|
|
610
|
-
}, {
|
|
611
|
-
readonly internalType: "uint256";
|
|
612
|
-
readonly name: "tokenAmount";
|
|
613
|
-
readonly type: "uint256";
|
|
614
|
-
}];
|
|
615
|
-
readonly internalType: "struct Ask[]";
|
|
616
|
-
readonly name: "asks";
|
|
617
|
-
readonly type: "tuple[]";
|
|
618
|
-
}, {
|
|
619
|
-
readonly internalType: "bytes32";
|
|
620
|
-
readonly name: "gameMarketId";
|
|
621
|
-
readonly type: "bytes32";
|
|
622
|
-
}, {
|
|
623
|
-
readonly internalType: "enum Side";
|
|
624
|
-
readonly name: "side";
|
|
625
|
-
readonly type: "uint8";
|
|
626
|
-
}, {
|
|
627
|
-
readonly internalType: "address";
|
|
628
|
-
readonly name: "buyer";
|
|
629
|
-
readonly type: "address";
|
|
630
|
-
}, {
|
|
631
|
-
readonly internalType: "uint8";
|
|
632
|
-
readonly name: "leverage";
|
|
633
|
-
readonly type: "uint8";
|
|
634
|
-
}, {
|
|
635
|
-
readonly internalType: "bytes16";
|
|
636
|
-
readonly name: "levrMarketId";
|
|
637
|
-
readonly type: "bytes16";
|
|
638
|
-
}];
|
|
639
|
-
readonly internalType: "struct AsksToBidInput[]";
|
|
640
|
-
readonly name: "asksData";
|
|
641
|
-
readonly type: "tuple[]";
|
|
549
|
+
readonly name: "buyer";
|
|
550
|
+
readonly type: "address";
|
|
551
|
+
readonly internalType: "address";
|
|
642
552
|
}, {
|
|
643
|
-
readonly
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
readonly name: "tokenAmount";
|
|
651
|
-
readonly type: "uint256";
|
|
652
|
-
}, {
|
|
653
|
-
readonly internalType: "address";
|
|
654
|
-
readonly name: "buyer";
|
|
655
|
-
readonly type: "address";
|
|
656
|
-
}, {
|
|
657
|
-
readonly internalType: "uint8";
|
|
658
|
-
readonly name: "leverage";
|
|
659
|
-
readonly type: "uint8";
|
|
660
|
-
}];
|
|
661
|
-
readonly internalType: "struct Bid[]";
|
|
662
|
-
readonly name: "bids";
|
|
663
|
-
readonly type: "tuple[]";
|
|
664
|
-
}, {
|
|
665
|
-
readonly internalType: "bytes32";
|
|
666
|
-
readonly name: "positionId";
|
|
667
|
-
readonly type: "bytes32";
|
|
668
|
-
}, {
|
|
669
|
-
readonly internalType: "bytes32";
|
|
670
|
-
readonly name: "gameMarketId";
|
|
671
|
-
readonly type: "bytes32";
|
|
672
|
-
}, {
|
|
673
|
-
readonly internalType: "enum Side";
|
|
674
|
-
readonly name: "side";
|
|
675
|
-
readonly type: "uint8";
|
|
676
|
-
}, {
|
|
677
|
-
readonly internalType: "bytes16";
|
|
678
|
-
readonly name: "levrMarketId";
|
|
679
|
-
readonly type: "bytes16";
|
|
680
|
-
}];
|
|
681
|
-
readonly internalType: "struct BidsToAskInput[]";
|
|
682
|
-
readonly name: "bids";
|
|
683
|
-
readonly type: "tuple[]";
|
|
553
|
+
readonly name: "wageredAmount";
|
|
554
|
+
readonly type: "uint256";
|
|
555
|
+
readonly internalType: "uint256";
|
|
556
|
+
}, {
|
|
557
|
+
readonly name: "totalFees";
|
|
558
|
+
readonly type: "uint256";
|
|
559
|
+
readonly internalType: "uint256";
|
|
684
560
|
}];
|
|
685
|
-
readonly name: "matchOrders";
|
|
686
|
-
readonly outputs: readonly [];
|
|
687
|
-
readonly stateMutability: "nonpayable";
|
|
688
|
-
readonly type: "function";
|
|
689
561
|
}, {
|
|
562
|
+
readonly type: "error";
|
|
563
|
+
readonly name: "LO_INVALID_GAME_PHASE";
|
|
690
564
|
readonly inputs: readonly [{
|
|
691
|
-
readonly
|
|
692
|
-
readonly
|
|
693
|
-
readonly
|
|
565
|
+
readonly name: "gameMarketId";
|
|
566
|
+
readonly type: "bytes32";
|
|
567
|
+
readonly internalType: "bytes32";
|
|
568
|
+
}, {
|
|
569
|
+
readonly name: "gameStatus";
|
|
570
|
+
readonly type: "uint8";
|
|
571
|
+
readonly internalType: "enum GameStatus";
|
|
572
|
+
}, {
|
|
573
|
+
readonly name: "expectedStatus";
|
|
574
|
+
readonly type: "uint8";
|
|
575
|
+
readonly internalType: "enum GameStatus";
|
|
694
576
|
}];
|
|
695
|
-
|
|
696
|
-
readonly
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
577
|
+
}, {
|
|
578
|
+
readonly type: "error";
|
|
579
|
+
readonly name: "LO_INVALID_GAME_PROGRESS";
|
|
580
|
+
readonly inputs: readonly [];
|
|
581
|
+
}, {
|
|
582
|
+
readonly type: "error";
|
|
583
|
+
readonly name: "LO_INVALID_ORDERS_LENGTH";
|
|
584
|
+
readonly inputs: readonly [{
|
|
585
|
+
readonly name: "length";
|
|
586
|
+
readonly type: "uint256";
|
|
587
|
+
readonly internalType: "uint256";
|
|
700
588
|
}];
|
|
701
|
-
readonly stateMutability: "view";
|
|
702
|
-
readonly type: "function";
|
|
703
589
|
}, {
|
|
590
|
+
readonly type: "error";
|
|
591
|
+
readonly name: "LO_INVALID_POSITION_ID";
|
|
592
|
+
readonly inputs: readonly [];
|
|
593
|
+
}, {
|
|
594
|
+
readonly type: "error";
|
|
595
|
+
readonly name: "LO_INVALID_PRICE";
|
|
704
596
|
readonly inputs: readonly [{
|
|
597
|
+
readonly name: "price";
|
|
598
|
+
readonly type: "uint256";
|
|
599
|
+
readonly internalType: "uint256";
|
|
600
|
+
}];
|
|
601
|
+
}, {
|
|
602
|
+
readonly type: "error";
|
|
603
|
+
readonly name: "LO_INVALID_TOKEN_AMOUNT";
|
|
604
|
+
readonly inputs: readonly [{
|
|
605
|
+
readonly name: "tokenAmount";
|
|
606
|
+
readonly type: "uint256";
|
|
607
|
+
readonly internalType: "uint256";
|
|
608
|
+
}];
|
|
609
|
+
}, {
|
|
610
|
+
readonly type: "error";
|
|
611
|
+
readonly name: "LO_INVALID_USER_LEVERAGE";
|
|
612
|
+
readonly inputs: readonly [{
|
|
613
|
+
readonly name: "user";
|
|
614
|
+
readonly type: "address";
|
|
705
615
|
readonly internalType: "address";
|
|
706
|
-
|
|
616
|
+
}, {
|
|
617
|
+
readonly name: "uLeverage";
|
|
618
|
+
readonly type: "uint8";
|
|
619
|
+
readonly internalType: "uint8";
|
|
620
|
+
}, {
|
|
621
|
+
readonly name: "minULev";
|
|
622
|
+
readonly type: "uint8";
|
|
623
|
+
readonly internalType: "uint8";
|
|
624
|
+
}, {
|
|
625
|
+
readonly name: "maxULev";
|
|
626
|
+
readonly type: "uint8";
|
|
627
|
+
readonly internalType: "uint8";
|
|
628
|
+
}];
|
|
629
|
+
}, {
|
|
630
|
+
readonly type: "error";
|
|
631
|
+
readonly name: "LO_NOT_MATCH_MAKER";
|
|
632
|
+
readonly inputs: readonly [];
|
|
633
|
+
}, {
|
|
634
|
+
readonly type: "error";
|
|
635
|
+
readonly name: "LO_POSITION_MARKED_FOR_LIQUIDATION";
|
|
636
|
+
readonly inputs: readonly [{
|
|
637
|
+
readonly name: "gameMarketId";
|
|
638
|
+
readonly type: "bytes32";
|
|
639
|
+
readonly internalType: "bytes32";
|
|
640
|
+
}, {
|
|
641
|
+
readonly name: "positionId";
|
|
642
|
+
readonly type: "bytes32";
|
|
643
|
+
readonly internalType: "bytes32";
|
|
644
|
+
}];
|
|
645
|
+
}, {
|
|
646
|
+
readonly type: "error";
|
|
647
|
+
readonly name: "LO_POSITION_NOT_OPEN";
|
|
648
|
+
readonly inputs: readonly [{
|
|
649
|
+
readonly name: "user";
|
|
707
650
|
readonly type: "address";
|
|
651
|
+
readonly internalType: "address";
|
|
652
|
+
}, {
|
|
653
|
+
readonly name: "positionId";
|
|
654
|
+
readonly type: "bytes32";
|
|
655
|
+
readonly internalType: "bytes32";
|
|
708
656
|
}];
|
|
709
|
-
|
|
710
|
-
readonly
|
|
711
|
-
readonly
|
|
712
|
-
readonly
|
|
657
|
+
}, {
|
|
658
|
+
readonly type: "error";
|
|
659
|
+
readonly name: "LO_SELLER_BLACKLISTED";
|
|
660
|
+
readonly inputs: readonly [{
|
|
661
|
+
readonly name: "seller";
|
|
662
|
+
readonly type: "address";
|
|
663
|
+
readonly internalType: "address";
|
|
664
|
+
}, {
|
|
665
|
+
readonly name: "positionId";
|
|
666
|
+
readonly type: "bytes32";
|
|
667
|
+
readonly internalType: "bytes32";
|
|
668
|
+
}];
|
|
669
|
+
}, {
|
|
670
|
+
readonly type: "error";
|
|
671
|
+
readonly name: "LO_SIDE_MISMATCH";
|
|
672
|
+
readonly inputs: readonly [{
|
|
673
|
+
readonly name: "buyer";
|
|
674
|
+
readonly type: "address";
|
|
675
|
+
readonly internalType: "address";
|
|
676
|
+
}, {
|
|
677
|
+
readonly name: "sellerPositionId";
|
|
678
|
+
readonly type: "bytes32";
|
|
679
|
+
readonly internalType: "bytes32";
|
|
680
|
+
}, {
|
|
681
|
+
readonly name: "positionSide";
|
|
682
|
+
readonly type: "uint8";
|
|
683
|
+
readonly internalType: "enum Side";
|
|
684
|
+
}, {
|
|
685
|
+
readonly name: "buyerSide";
|
|
686
|
+
readonly type: "uint8";
|
|
687
|
+
readonly internalType: "enum Side";
|
|
688
|
+
}];
|
|
689
|
+
}, {
|
|
690
|
+
readonly type: "error";
|
|
691
|
+
readonly name: "LO_TOKEN_AMOUNT_EXCEEDED";
|
|
692
|
+
readonly inputs: readonly [{
|
|
693
|
+
readonly name: "buyer";
|
|
694
|
+
readonly type: "address";
|
|
695
|
+
readonly internalType: "address";
|
|
696
|
+
}, {
|
|
697
|
+
readonly name: "sellerPositionId";
|
|
698
|
+
readonly type: "bytes32";
|
|
699
|
+
readonly internalType: "bytes32";
|
|
700
|
+
}, {
|
|
701
|
+
readonly name: "tokenAmount";
|
|
702
|
+
readonly type: "uint256";
|
|
703
|
+
readonly internalType: "uint256";
|
|
704
|
+
}, {
|
|
705
|
+
readonly name: "availableAmount";
|
|
706
|
+
readonly type: "uint256";
|
|
707
|
+
readonly internalType: "uint256";
|
|
708
|
+
}];
|
|
709
|
+
}, {
|
|
710
|
+
readonly type: "error";
|
|
711
|
+
readonly name: "LO_TRADER_ZERO_ADDRESS";
|
|
712
|
+
readonly inputs: readonly [];
|
|
713
713
|
}];
|
|
714
714
|
export default _default;
|