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