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