@levrbet/shared 0.5.56 → 0.5.58
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/dist/core/types/oracle/market/positions.types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,457 +1,457 @@
|
|
|
1
1
|
declare const _default: readonly [{
|
|
2
|
-
readonly inputs: readonly [{
|
|
3
|
-
readonly internalType: "address";
|
|
4
|
-
readonly name: "_levrConfigProvider";
|
|
5
|
-
readonly type: "address";
|
|
6
|
-
}];
|
|
7
|
-
readonly stateMutability: "nonpayable";
|
|
8
2
|
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: "LMR_ARRAY_INPUT_LENGTH_MISMATCH";
|
|
24
|
-
readonly type: "error";
|
|
25
|
-
}, {
|
|
26
|
-
readonly inputs: readonly [{
|
|
27
|
-
readonly internalType: "uint256";
|
|
28
|
-
readonly name: "gameId";
|
|
29
|
-
readonly type: "uint256";
|
|
30
|
-
}];
|
|
31
|
-
readonly name: "LMR_BAD_MARKET_DATA_FOR_GAME";
|
|
32
|
-
readonly type: "error";
|
|
33
|
-
}, {
|
|
34
|
-
readonly inputs: readonly [];
|
|
35
|
-
readonly name: "LMR_INVALID_LEVR_MARKET_ID";
|
|
36
|
-
readonly type: "error";
|
|
37
|
-
}, {
|
|
38
|
-
readonly inputs: readonly [];
|
|
39
|
-
readonly name: "LMR_INVALID_USER";
|
|
40
|
-
readonly type: "error";
|
|
41
|
-
}, {
|
|
42
|
-
readonly inputs: readonly [];
|
|
43
|
-
readonly name: "LMR_NOT_POSITION_HANDLER";
|
|
44
|
-
readonly type: "error";
|
|
45
|
-
}, {
|
|
46
|
-
readonly inputs: readonly [];
|
|
47
|
-
readonly name: "LMR_NOT_POSITION_LIQUIDATOR";
|
|
48
|
-
readonly type: "error";
|
|
49
|
-
}, {
|
|
50
|
-
readonly inputs: readonly [];
|
|
51
|
-
readonly name: "LMR_NO_POSITIONS_TO_LIQUIDATE";
|
|
52
|
-
readonly type: "error";
|
|
53
|
-
}, {
|
|
54
|
-
readonly inputs: readonly [];
|
|
55
|
-
readonly name: "LMR_NO_POSITIONS_TO_OPEN";
|
|
56
|
-
readonly type: "error";
|
|
57
|
-
}, {
|
|
58
|
-
readonly inputs: readonly [];
|
|
59
|
-
readonly name: "LMR_NO_POSITIONS_TO_REDEEM";
|
|
60
|
-
readonly type: "error";
|
|
61
|
-
}, {
|
|
62
|
-
readonly inputs: readonly [];
|
|
63
|
-
readonly name: "LMR_USER_IS_BCM";
|
|
64
|
-
readonly type: "error";
|
|
65
|
-
}, {
|
|
66
|
-
readonly anonymous: false;
|
|
67
3
|
readonly inputs: readonly [{
|
|
68
|
-
readonly
|
|
69
|
-
readonly internalType: "address";
|
|
70
|
-
readonly name: "prevProvider";
|
|
4
|
+
readonly name: "_levrConfigProvider";
|
|
71
5
|
readonly type: "address";
|
|
72
|
-
}, {
|
|
73
|
-
readonly indexed: true;
|
|
74
6
|
readonly internalType: "address";
|
|
75
|
-
readonly name: "newProvider";
|
|
76
|
-
readonly type: "address";
|
|
77
7
|
}];
|
|
78
|
-
readonly
|
|
79
|
-
readonly type: "event";
|
|
8
|
+
readonly stateMutability: "nonpayable";
|
|
80
9
|
}, {
|
|
81
|
-
readonly
|
|
10
|
+
readonly type: "function";
|
|
82
11
|
readonly name: "levrConfigProvider";
|
|
12
|
+
readonly inputs: readonly [];
|
|
83
13
|
readonly outputs: readonly [{
|
|
84
|
-
readonly internalType: "address";
|
|
85
14
|
readonly name: "";
|
|
86
15
|
readonly type: "address";
|
|
16
|
+
readonly internalType: "address";
|
|
87
17
|
}];
|
|
88
18
|
readonly stateMutability: "view";
|
|
89
|
-
readonly type: "function";
|
|
90
19
|
}, {
|
|
20
|
+
readonly type: "function";
|
|
21
|
+
readonly name: "openPosition";
|
|
91
22
|
readonly inputs: readonly [{
|
|
92
|
-
readonly internalType: "bytes32";
|
|
93
23
|
readonly name: "gameMarketId";
|
|
94
24
|
readonly type: "bytes32";
|
|
25
|
+
readonly internalType: "bytes32";
|
|
95
26
|
}, {
|
|
96
|
-
readonly internalType: "bytes16";
|
|
97
27
|
readonly name: "levrMarketId";
|
|
98
28
|
readonly type: "bytes16";
|
|
29
|
+
readonly internalType: "bytes16";
|
|
99
30
|
}, {
|
|
100
|
-
readonly internalType: "uint256";
|
|
101
31
|
readonly name: "assetAmount";
|
|
102
32
|
readonly type: "uint256";
|
|
103
|
-
}, {
|
|
104
33
|
readonly internalType: "uint256";
|
|
34
|
+
}, {
|
|
105
35
|
readonly name: "minTokensOut";
|
|
106
36
|
readonly type: "uint256";
|
|
37
|
+
readonly internalType: "uint256";
|
|
107
38
|
}, {
|
|
108
|
-
readonly internalType: "enum Side";
|
|
109
39
|
readonly name: "side";
|
|
110
40
|
readonly type: "uint8";
|
|
41
|
+
readonly internalType: "enum Side";
|
|
111
42
|
}, {
|
|
112
|
-
readonly internalType: "uint8";
|
|
113
43
|
readonly name: "leverage";
|
|
114
44
|
readonly type: "uint8";
|
|
45
|
+
readonly internalType: "uint8";
|
|
115
46
|
}, {
|
|
116
|
-
readonly internalType: "bytes32[]";
|
|
117
47
|
readonly name: "whitelistProof";
|
|
118
48
|
readonly type: "bytes32[]";
|
|
49
|
+
readonly internalType: "bytes32[]";
|
|
119
50
|
}];
|
|
120
|
-
readonly name: "openPosition";
|
|
121
51
|
readonly outputs: readonly [];
|
|
122
52
|
readonly stateMutability: "nonpayable";
|
|
123
|
-
readonly type: "function";
|
|
124
53
|
}, {
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly name: "openPositionFor";
|
|
125
56
|
readonly inputs: readonly [{
|
|
126
|
-
readonly internalType: "bytes32";
|
|
127
57
|
readonly name: "gameMarketId";
|
|
128
58
|
readonly type: "bytes32";
|
|
59
|
+
readonly internalType: "bytes32";
|
|
129
60
|
}, {
|
|
130
|
-
readonly internalType: "address";
|
|
131
61
|
readonly name: "user";
|
|
132
62
|
readonly type: "address";
|
|
63
|
+
readonly internalType: "address";
|
|
133
64
|
}, {
|
|
134
|
-
readonly internalType: "bytes16";
|
|
135
65
|
readonly name: "levrMarketId";
|
|
136
66
|
readonly type: "bytes16";
|
|
67
|
+
readonly internalType: "bytes16";
|
|
137
68
|
}, {
|
|
138
|
-
readonly internalType: "uint256";
|
|
139
69
|
readonly name: "assetAmount";
|
|
140
70
|
readonly type: "uint256";
|
|
141
|
-
}, {
|
|
142
71
|
readonly internalType: "uint256";
|
|
72
|
+
}, {
|
|
143
73
|
readonly name: "minTokensOut";
|
|
144
74
|
readonly type: "uint256";
|
|
75
|
+
readonly internalType: "uint256";
|
|
145
76
|
}, {
|
|
146
|
-
readonly internalType: "enum Side";
|
|
147
77
|
readonly name: "side";
|
|
148
78
|
readonly type: "uint8";
|
|
79
|
+
readonly internalType: "enum Side";
|
|
149
80
|
}, {
|
|
150
|
-
readonly internalType: "uint8";
|
|
151
81
|
readonly name: "leverage";
|
|
152
82
|
readonly type: "uint8";
|
|
83
|
+
readonly internalType: "uint8";
|
|
153
84
|
}, {
|
|
154
|
-
readonly internalType: "bytes32[]";
|
|
155
85
|
readonly name: "whitelistProof";
|
|
156
86
|
readonly type: "bytes32[]";
|
|
87
|
+
readonly internalType: "bytes32[]";
|
|
157
88
|
}];
|
|
158
|
-
readonly name: "openPositionFor";
|
|
159
89
|
readonly outputs: readonly [];
|
|
160
90
|
readonly stateMutability: "nonpayable";
|
|
161
|
-
readonly type: "function";
|
|
162
91
|
}, {
|
|
92
|
+
readonly type: "function";
|
|
93
|
+
readonly name: "openPositions";
|
|
163
94
|
readonly inputs: readonly [{
|
|
164
|
-
readonly internalType: "bytes32[]";
|
|
165
95
|
readonly name: "gameMarketIds";
|
|
166
96
|
readonly type: "bytes32[]";
|
|
97
|
+
readonly internalType: "bytes32[]";
|
|
167
98
|
}, {
|
|
168
|
-
readonly internalType: "bytes16[]";
|
|
169
99
|
readonly name: "levrMarketIds";
|
|
170
100
|
readonly type: "bytes16[]";
|
|
101
|
+
readonly internalType: "bytes16[]";
|
|
171
102
|
}, {
|
|
172
|
-
readonly internalType: "uint256[]";
|
|
173
103
|
readonly name: "assetAmounts";
|
|
174
104
|
readonly type: "uint256[]";
|
|
175
|
-
}, {
|
|
176
105
|
readonly internalType: "uint256[]";
|
|
106
|
+
}, {
|
|
177
107
|
readonly name: "minTokensOut";
|
|
178
108
|
readonly type: "uint256[]";
|
|
109
|
+
readonly internalType: "uint256[]";
|
|
179
110
|
}, {
|
|
180
|
-
readonly internalType: "enum Side[]";
|
|
181
111
|
readonly name: "sides";
|
|
182
112
|
readonly type: "uint8[]";
|
|
113
|
+
readonly internalType: "enum Side[]";
|
|
183
114
|
}, {
|
|
184
|
-
readonly internalType: "uint8[]";
|
|
185
115
|
readonly name: "leverages";
|
|
186
116
|
readonly type: "uint8[]";
|
|
117
|
+
readonly internalType: "uint8[]";
|
|
187
118
|
}, {
|
|
188
|
-
readonly internalType: "bytes32[][]";
|
|
189
119
|
readonly name: "whitelistProofs";
|
|
190
120
|
readonly type: "bytes32[][]";
|
|
121
|
+
readonly internalType: "bytes32[][]";
|
|
191
122
|
}];
|
|
192
|
-
readonly name: "openPositions";
|
|
193
123
|
readonly outputs: readonly [];
|
|
194
124
|
readonly stateMutability: "nonpayable";
|
|
195
|
-
readonly type: "function";
|
|
196
125
|
}, {
|
|
126
|
+
readonly type: "function";
|
|
127
|
+
readonly name: "openPositionsFor";
|
|
197
128
|
readonly inputs: readonly [{
|
|
198
|
-
readonly internalType: "bytes32[]";
|
|
199
129
|
readonly name: "gameMarketIds";
|
|
200
130
|
readonly type: "bytes32[]";
|
|
131
|
+
readonly internalType: "bytes32[]";
|
|
201
132
|
}, {
|
|
202
|
-
readonly internalType: "bytes16[]";
|
|
203
133
|
readonly name: "levrMarketIds";
|
|
204
134
|
readonly type: "bytes16[]";
|
|
135
|
+
readonly internalType: "bytes16[]";
|
|
205
136
|
}, {
|
|
206
|
-
readonly internalType: "uint256[]";
|
|
207
137
|
readonly name: "assetAmounts";
|
|
208
138
|
readonly type: "uint256[]";
|
|
209
|
-
}, {
|
|
210
139
|
readonly internalType: "uint256[]";
|
|
140
|
+
}, {
|
|
211
141
|
readonly name: "minTokensOut";
|
|
212
142
|
readonly type: "uint256[]";
|
|
143
|
+
readonly internalType: "uint256[]";
|
|
213
144
|
}, {
|
|
214
|
-
readonly internalType: "enum Side[]";
|
|
215
145
|
readonly name: "sides";
|
|
216
146
|
readonly type: "uint8[]";
|
|
147
|
+
readonly internalType: "enum Side[]";
|
|
217
148
|
}, {
|
|
218
|
-
readonly internalType: "uint8[]";
|
|
219
149
|
readonly name: "leverages";
|
|
220
150
|
readonly type: "uint8[]";
|
|
151
|
+
readonly internalType: "uint8[]";
|
|
221
152
|
}, {
|
|
222
|
-
readonly internalType: "bytes32[][]";
|
|
223
153
|
readonly name: "whitelistProofs";
|
|
224
154
|
readonly type: "bytes32[][]";
|
|
155
|
+
readonly internalType: "bytes32[][]";
|
|
225
156
|
}, {
|
|
226
|
-
readonly internalType: "address";
|
|
227
157
|
readonly name: "user";
|
|
228
158
|
readonly type: "address";
|
|
159
|
+
readonly internalType: "address";
|
|
229
160
|
}];
|
|
230
|
-
readonly name: "openPositionsFor";
|
|
231
161
|
readonly outputs: readonly [];
|
|
232
162
|
readonly stateMutability: "nonpayable";
|
|
233
|
-
readonly type: "function";
|
|
234
163
|
}, {
|
|
164
|
+
readonly type: "function";
|
|
165
|
+
readonly name: "previewOpenPosition";
|
|
235
166
|
readonly inputs: readonly [{
|
|
236
|
-
readonly internalType: "address[]";
|
|
237
167
|
readonly name: "users";
|
|
238
168
|
readonly type: "address[]";
|
|
169
|
+
readonly internalType: "address[]";
|
|
239
170
|
}, {
|
|
240
|
-
readonly internalType: "bytes32[]";
|
|
241
171
|
readonly name: "gameMarketIds";
|
|
242
172
|
readonly type: "bytes32[]";
|
|
173
|
+
readonly internalType: "bytes32[]";
|
|
243
174
|
}, {
|
|
244
|
-
readonly internalType: "bytes16[]";
|
|
245
175
|
readonly name: "levrMarketIds";
|
|
246
176
|
readonly type: "bytes16[]";
|
|
177
|
+
readonly internalType: "bytes16[]";
|
|
247
178
|
}, {
|
|
248
|
-
readonly internalType: "uint256[]";
|
|
249
179
|
readonly name: "assetAmounts";
|
|
250
180
|
readonly type: "uint256[]";
|
|
251
|
-
}, {
|
|
252
181
|
readonly internalType: "uint256[]";
|
|
182
|
+
}, {
|
|
253
183
|
readonly name: "minTokensOut";
|
|
254
184
|
readonly type: "uint256[]";
|
|
185
|
+
readonly internalType: "uint256[]";
|
|
255
186
|
}, {
|
|
256
|
-
readonly internalType: "enum Side[]";
|
|
257
187
|
readonly name: "sides";
|
|
258
188
|
readonly type: "uint8[]";
|
|
189
|
+
readonly internalType: "enum Side[]";
|
|
259
190
|
}, {
|
|
260
|
-
readonly internalType: "uint8[]";
|
|
261
191
|
readonly name: "leverages";
|
|
262
192
|
readonly type: "uint8[]";
|
|
193
|
+
readonly internalType: "uint8[]";
|
|
263
194
|
}, {
|
|
264
|
-
readonly internalType: "bytes32[][]";
|
|
265
195
|
readonly name: "whitelistProofs";
|
|
266
196
|
readonly type: "bytes32[][]";
|
|
197
|
+
readonly internalType: "bytes32[][]";
|
|
267
198
|
}];
|
|
268
|
-
readonly name: "previewOpenPosition";
|
|
269
199
|
readonly outputs: readonly [];
|
|
270
200
|
readonly stateMutability: "nonpayable";
|
|
271
|
-
readonly type: "function";
|
|
272
201
|
}, {
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
readonly name: "previewRedeemPositions";
|
|
273
204
|
readonly inputs: readonly [{
|
|
274
|
-
readonly internalType: "address[]";
|
|
275
205
|
readonly name: "users";
|
|
276
206
|
readonly type: "address[]";
|
|
207
|
+
readonly internalType: "address[]";
|
|
277
208
|
}, {
|
|
278
|
-
readonly internalType: "bytes32[]";
|
|
279
209
|
readonly name: "gameMarketIds";
|
|
280
210
|
readonly type: "bytes32[]";
|
|
211
|
+
readonly internalType: "bytes32[]";
|
|
281
212
|
}, {
|
|
282
|
-
readonly internalType: "bytes16[]";
|
|
283
213
|
readonly name: "levrMarketIds";
|
|
284
214
|
readonly type: "bytes16[]";
|
|
215
|
+
readonly internalType: "bytes16[]";
|
|
285
216
|
}, {
|
|
286
|
-
readonly internalType: "bytes32[]";
|
|
287
217
|
readonly name: "positionIds";
|
|
288
218
|
readonly type: "bytes32[]";
|
|
219
|
+
readonly internalType: "bytes32[]";
|
|
289
220
|
}];
|
|
290
|
-
readonly name: "previewRedeemPositions";
|
|
291
221
|
readonly outputs: readonly [];
|
|
292
222
|
readonly stateMutability: "nonpayable";
|
|
293
|
-
readonly type: "function";
|
|
294
223
|
}, {
|
|
224
|
+
readonly type: "function";
|
|
225
|
+
readonly name: "redeemAllPositionsInGame";
|
|
295
226
|
readonly inputs: readonly [{
|
|
296
|
-
readonly internalType: "uint256";
|
|
297
227
|
readonly name: "gameId";
|
|
298
228
|
readonly type: "uint256";
|
|
229
|
+
readonly internalType: "uint256";
|
|
299
230
|
}];
|
|
300
|
-
readonly name: "redeemAllPositionsInGame";
|
|
301
231
|
readonly outputs: readonly [];
|
|
302
232
|
readonly stateMutability: "nonpayable";
|
|
303
|
-
readonly type: "function";
|
|
304
233
|
}, {
|
|
234
|
+
readonly type: "function";
|
|
235
|
+
readonly name: "redeemAllPositionsInGameFor";
|
|
305
236
|
readonly inputs: readonly [{
|
|
306
|
-
readonly internalType: "uint256";
|
|
307
237
|
readonly name: "gameId";
|
|
308
238
|
readonly type: "uint256";
|
|
239
|
+
readonly internalType: "uint256";
|
|
309
240
|
}, {
|
|
310
|
-
readonly internalType: "address";
|
|
311
241
|
readonly name: "user";
|
|
312
242
|
readonly type: "address";
|
|
243
|
+
readonly internalType: "address";
|
|
313
244
|
}];
|
|
314
|
-
readonly name: "redeemAllPositionsInGameFor";
|
|
315
245
|
readonly outputs: readonly [];
|
|
316
246
|
readonly stateMutability: "nonpayable";
|
|
317
|
-
readonly type: "function";
|
|
318
247
|
}, {
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
readonly name: "redeemAllPositionsInGameMarket";
|
|
319
250
|
readonly inputs: readonly [{
|
|
320
|
-
readonly internalType: "bytes32";
|
|
321
251
|
readonly name: "gameMarketId";
|
|
322
252
|
readonly type: "bytes32";
|
|
253
|
+
readonly internalType: "bytes32";
|
|
323
254
|
}];
|
|
324
|
-
readonly name: "redeemAllPositionsInGameMarket";
|
|
325
255
|
readonly outputs: readonly [];
|
|
326
256
|
readonly stateMutability: "nonpayable";
|
|
327
|
-
readonly type: "function";
|
|
328
257
|
}, {
|
|
258
|
+
readonly type: "function";
|
|
259
|
+
readonly name: "redeemAllPositionsInGameMarketFor";
|
|
329
260
|
readonly inputs: readonly [{
|
|
330
|
-
readonly internalType: "bytes32";
|
|
331
261
|
readonly name: "gameMarketId";
|
|
332
262
|
readonly type: "bytes32";
|
|
263
|
+
readonly internalType: "bytes32";
|
|
333
264
|
}, {
|
|
334
|
-
readonly internalType: "address";
|
|
335
265
|
readonly name: "user";
|
|
336
266
|
readonly type: "address";
|
|
267
|
+
readonly internalType: "address";
|
|
337
268
|
}];
|
|
338
|
-
readonly name: "redeemAllPositionsInGameMarketFor";
|
|
339
269
|
readonly outputs: readonly [];
|
|
340
270
|
readonly stateMutability: "nonpayable";
|
|
341
|
-
readonly type: "function";
|
|
342
271
|
}, {
|
|
272
|
+
readonly type: "function";
|
|
273
|
+
readonly name: "redeemAllPositionsInMarket";
|
|
343
274
|
readonly inputs: readonly [{
|
|
344
|
-
readonly internalType: "bytes32";
|
|
345
275
|
readonly name: "gameMarketId";
|
|
346
276
|
readonly type: "bytes32";
|
|
277
|
+
readonly internalType: "bytes32";
|
|
347
278
|
}, {
|
|
348
|
-
readonly internalType: "bytes16";
|
|
349
279
|
readonly name: "levrMarketId";
|
|
350
280
|
readonly type: "bytes16";
|
|
281
|
+
readonly internalType: "bytes16";
|
|
351
282
|
}];
|
|
352
|
-
readonly name: "redeemAllPositionsInMarket";
|
|
353
283
|
readonly outputs: readonly [];
|
|
354
284
|
readonly stateMutability: "nonpayable";
|
|
355
|
-
readonly type: "function";
|
|
356
285
|
}, {
|
|
286
|
+
readonly type: "function";
|
|
287
|
+
readonly name: "redeemAllPositionsInMarketFor";
|
|
357
288
|
readonly inputs: readonly [{
|
|
358
|
-
readonly internalType: "bytes32";
|
|
359
289
|
readonly name: "gameMarketId";
|
|
360
290
|
readonly type: "bytes32";
|
|
291
|
+
readonly internalType: "bytes32";
|
|
361
292
|
}, {
|
|
362
|
-
readonly internalType: "bytes16";
|
|
363
293
|
readonly name: "levrMarketId";
|
|
364
294
|
readonly type: "bytes16";
|
|
295
|
+
readonly internalType: "bytes16";
|
|
365
296
|
}, {
|
|
366
|
-
readonly internalType: "address";
|
|
367
297
|
readonly name: "user";
|
|
368
298
|
readonly type: "address";
|
|
299
|
+
readonly internalType: "address";
|
|
369
300
|
}];
|
|
370
|
-
readonly name: "redeemAllPositionsInMarketFor";
|
|
371
301
|
readonly outputs: readonly [];
|
|
372
302
|
readonly stateMutability: "nonpayable";
|
|
373
|
-
readonly type: "function";
|
|
374
303
|
}, {
|
|
304
|
+
readonly type: "function";
|
|
305
|
+
readonly name: "redeemPosition";
|
|
375
306
|
readonly inputs: readonly [{
|
|
376
|
-
readonly internalType: "bytes32";
|
|
377
307
|
readonly name: "gameMarketId";
|
|
378
308
|
readonly type: "bytes32";
|
|
309
|
+
readonly internalType: "bytes32";
|
|
379
310
|
}, {
|
|
380
|
-
readonly internalType: "bytes16";
|
|
381
311
|
readonly name: "levrMarketId";
|
|
382
312
|
readonly type: "bytes16";
|
|
313
|
+
readonly internalType: "bytes16";
|
|
383
314
|
}, {
|
|
384
|
-
readonly internalType: "bytes32";
|
|
385
315
|
readonly name: "positionId";
|
|
386
316
|
readonly type: "bytes32";
|
|
317
|
+
readonly internalType: "bytes32";
|
|
387
318
|
}];
|
|
388
|
-
readonly name: "redeemPosition";
|
|
389
319
|
readonly outputs: readonly [];
|
|
390
320
|
readonly stateMutability: "nonpayable";
|
|
391
|
-
readonly type: "function";
|
|
392
321
|
}, {
|
|
322
|
+
readonly type: "function";
|
|
323
|
+
readonly name: "redeemPositionFor";
|
|
393
324
|
readonly inputs: readonly [{
|
|
394
|
-
readonly internalType: "bytes32";
|
|
395
325
|
readonly name: "gameMarketId";
|
|
396
326
|
readonly type: "bytes32";
|
|
327
|
+
readonly internalType: "bytes32";
|
|
397
328
|
}, {
|
|
398
|
-
readonly internalType: "bytes16";
|
|
399
329
|
readonly name: "levrMarketId";
|
|
400
330
|
readonly type: "bytes16";
|
|
331
|
+
readonly internalType: "bytes16";
|
|
401
332
|
}, {
|
|
402
|
-
readonly internalType: "bytes32";
|
|
403
333
|
readonly name: "positionId";
|
|
404
334
|
readonly type: "bytes32";
|
|
335
|
+
readonly internalType: "bytes32";
|
|
405
336
|
}, {
|
|
406
|
-
readonly internalType: "address";
|
|
407
337
|
readonly name: "user";
|
|
408
338
|
readonly type: "address";
|
|
339
|
+
readonly internalType: "address";
|
|
409
340
|
}];
|
|
410
|
-
readonly name: "redeemPositionFor";
|
|
411
341
|
readonly outputs: readonly [];
|
|
412
342
|
readonly stateMutability: "nonpayable";
|
|
413
|
-
readonly type: "function";
|
|
414
343
|
}, {
|
|
344
|
+
readonly type: "function";
|
|
345
|
+
readonly name: "redeemPositions";
|
|
415
346
|
readonly inputs: readonly [{
|
|
416
|
-
readonly internalType: "bytes32[]";
|
|
417
347
|
readonly name: "gameMarketIds";
|
|
418
348
|
readonly type: "bytes32[]";
|
|
349
|
+
readonly internalType: "bytes32[]";
|
|
419
350
|
}, {
|
|
420
|
-
readonly internalType: "bytes16[]";
|
|
421
351
|
readonly name: "levrMarketIds";
|
|
422
352
|
readonly type: "bytes16[]";
|
|
353
|
+
readonly internalType: "bytes16[]";
|
|
423
354
|
}, {
|
|
424
|
-
readonly internalType: "bytes32[]";
|
|
425
355
|
readonly name: "positionIds";
|
|
426
356
|
readonly type: "bytes32[]";
|
|
357
|
+
readonly internalType: "bytes32[]";
|
|
427
358
|
}];
|
|
428
|
-
readonly name: "redeemPositions";
|
|
429
359
|
readonly outputs: readonly [];
|
|
430
360
|
readonly stateMutability: "nonpayable";
|
|
431
|
-
readonly type: "function";
|
|
432
361
|
}, {
|
|
362
|
+
readonly type: "function";
|
|
363
|
+
readonly name: "supportsInterface";
|
|
433
364
|
readonly inputs: readonly [{
|
|
434
|
-
readonly internalType: "bytes4";
|
|
435
365
|
readonly name: "interfaceId";
|
|
436
366
|
readonly type: "bytes4";
|
|
367
|
+
readonly internalType: "bytes4";
|
|
437
368
|
}];
|
|
438
|
-
readonly name: "supportsInterface";
|
|
439
369
|
readonly outputs: readonly [{
|
|
440
|
-
readonly internalType: "bool";
|
|
441
370
|
readonly name: "";
|
|
442
371
|
readonly type: "bool";
|
|
372
|
+
readonly internalType: "bool";
|
|
443
373
|
}];
|
|
444
374
|
readonly stateMutability: "view";
|
|
445
|
-
readonly type: "function";
|
|
446
375
|
}, {
|
|
376
|
+
readonly type: "function";
|
|
377
|
+
readonly name: "updateLevrConfigProvider";
|
|
447
378
|
readonly inputs: readonly [{
|
|
448
|
-
readonly internalType: "address";
|
|
449
379
|
readonly name: "newLevrConfigProvider";
|
|
450
380
|
readonly type: "address";
|
|
381
|
+
readonly internalType: "address";
|
|
451
382
|
}];
|
|
452
|
-
readonly name: "updateLevrConfigProvider";
|
|
453
383
|
readonly outputs: readonly [];
|
|
454
384
|
readonly stateMutability: "nonpayable";
|
|
455
|
-
|
|
385
|
+
}, {
|
|
386
|
+
readonly type: "event";
|
|
387
|
+
readonly name: "LevrConfigProviderUpdated";
|
|
388
|
+
readonly inputs: readonly [{
|
|
389
|
+
readonly name: "prevProvider";
|
|
390
|
+
readonly type: "address";
|
|
391
|
+
readonly indexed: true;
|
|
392
|
+
readonly internalType: "address";
|
|
393
|
+
}, {
|
|
394
|
+
readonly name: "newProvider";
|
|
395
|
+
readonly type: "address";
|
|
396
|
+
readonly indexed: true;
|
|
397
|
+
readonly internalType: "address";
|
|
398
|
+
}];
|
|
399
|
+
readonly anonymous: false;
|
|
400
|
+
}, {
|
|
401
|
+
readonly type: "error";
|
|
402
|
+
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
403
|
+
readonly inputs: readonly [];
|
|
404
|
+
}, {
|
|
405
|
+
readonly type: "error";
|
|
406
|
+
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
407
|
+
readonly inputs: readonly [];
|
|
408
|
+
}, {
|
|
409
|
+
readonly type: "error";
|
|
410
|
+
readonly name: "LB_NOT_LEVR_ADMIN";
|
|
411
|
+
readonly inputs: readonly [];
|
|
412
|
+
}, {
|
|
413
|
+
readonly type: "error";
|
|
414
|
+
readonly name: "LMR_ARRAY_INPUT_LENGTH_MISMATCH";
|
|
415
|
+
readonly inputs: readonly [];
|
|
416
|
+
}, {
|
|
417
|
+
readonly type: "error";
|
|
418
|
+
readonly name: "LMR_BAD_MARKET_DATA_FOR_GAME";
|
|
419
|
+
readonly inputs: readonly [{
|
|
420
|
+
readonly name: "gameId";
|
|
421
|
+
readonly type: "uint256";
|
|
422
|
+
readonly internalType: "uint256";
|
|
423
|
+
}];
|
|
424
|
+
}, {
|
|
425
|
+
readonly type: "error";
|
|
426
|
+
readonly name: "LMR_INVALID_LEVR_MARKET_ID";
|
|
427
|
+
readonly inputs: readonly [];
|
|
428
|
+
}, {
|
|
429
|
+
readonly type: "error";
|
|
430
|
+
readonly name: "LMR_INVALID_USER";
|
|
431
|
+
readonly inputs: readonly [];
|
|
432
|
+
}, {
|
|
433
|
+
readonly type: "error";
|
|
434
|
+
readonly name: "LMR_NOT_POSITION_HANDLER";
|
|
435
|
+
readonly inputs: readonly [];
|
|
436
|
+
}, {
|
|
437
|
+
readonly type: "error";
|
|
438
|
+
readonly name: "LMR_NOT_POSITION_LIQUIDATOR";
|
|
439
|
+
readonly inputs: readonly [];
|
|
440
|
+
}, {
|
|
441
|
+
readonly type: "error";
|
|
442
|
+
readonly name: "LMR_NO_POSITIONS_TO_LIQUIDATE";
|
|
443
|
+
readonly inputs: readonly [];
|
|
444
|
+
}, {
|
|
445
|
+
readonly type: "error";
|
|
446
|
+
readonly name: "LMR_NO_POSITIONS_TO_OPEN";
|
|
447
|
+
readonly inputs: readonly [];
|
|
448
|
+
}, {
|
|
449
|
+
readonly type: "error";
|
|
450
|
+
readonly name: "LMR_NO_POSITIONS_TO_REDEEM";
|
|
451
|
+
readonly inputs: readonly [];
|
|
452
|
+
}, {
|
|
453
|
+
readonly type: "error";
|
|
454
|
+
readonly name: "LMR_USER_IS_BCM";
|
|
455
|
+
readonly inputs: readonly [];
|
|
456
456
|
}];
|
|
457
457
|
export default _default;
|