@levrbet/shared 0.1.129 → 0.1.131
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/config/urls.d.ts +0 -32
- package/dist/core/config/urls.js +0 -32
- package/dist/core/config/urls.js.map +1 -1
- package/dist/core/contracts/abis/LevrConfigProvider.d.ts +2125 -1913
- package/dist/core/contracts/abis/LevrConfigProvider.js +1165 -2010
- package/dist/core/contracts/abis/LevrConfigProvider.js.map +1 -1
- package/dist/core/contracts/abis/LevrFeeCollector.d.ts +259 -0
- package/dist/core/contracts/abis/LevrFeeCollector.js +143 -0
- package/dist/core/contracts/abis/LevrFeeCollector.js.map +1 -0
- package/dist/core/contracts/abis/{LevrBaseMarket.d.ts → LevrFulltimeMarket.d.ts} +726 -685
- package/dist/core/contracts/abis/LevrFulltimeMarket.js +462 -0
- package/dist/core/contracts/abis/LevrFulltimeMarket.js.map +1 -0
- package/dist/core/contracts/abis/LevrFundManager.d.ts +369 -50
- package/dist/core/contracts/abis/LevrFundManager.js +180 -1
- package/dist/core/contracts/abis/LevrFundManager.js.map +1 -1
- package/dist/core/contracts/abis/LevrLiquidationEngine.d.ts +153 -163
- package/dist/core/contracts/abis/LevrLiquidationEngine.js +81 -182
- package/dist/core/contracts/abis/LevrLiquidationEngine.js.map +1 -1
- package/dist/core/contracts/abis/LevrManager.d.ts +987 -947
- package/dist/core/contracts/abis/LevrManager.js +453 -835
- package/dist/core/contracts/abis/LevrManager.js.map +1 -1
- package/dist/core/contracts/abis/LevrMarketFeed.d.ts +516 -516
- package/dist/core/contracts/abis/LevrMarketFeed.js +272 -620
- package/dist/core/contracts/abis/LevrMarketFeed.js.map +1 -1
- package/dist/core/contracts/abis/LevrMarketMaker.d.ts +175 -0
- package/dist/core/contracts/abis/LevrMarketMaker.js +108 -0
- package/dist/core/contracts/abis/LevrMarketMaker.js.map +1 -0
- package/dist/core/contracts/abis/LevrMarketRiskSentinel.d.ts +682 -0
- package/dist/core/contracts/abis/LevrMarketRiskSentinel.js +323 -0
- package/dist/core/contracts/abis/LevrMarketRiskSentinel.js.map +1 -0
- package/dist/core/contracts/abis/LevrMarketRouter.d.ts +289 -159
- package/dist/core/contracts/abis/LevrMarketRouter.js +133 -188
- package/dist/core/contracts/abis/LevrMarketRouter.js.map +1 -1
- package/dist/core/contracts/abis/LevrMvpDepository.d.ts +766 -0
- package/dist/core/contracts/abis/LevrMvpDepository.js +396 -0
- package/dist/core/contracts/abis/LevrMvpDepository.js.map +1 -0
- package/dist/core/contracts/abis/LevrMvpRouter.d.ts +414 -160
- package/dist/core/contracts/abis/LevrMvpRouter.js +194 -227
- package/dist/core/contracts/abis/LevrMvpRouter.js.map +1 -1
- package/dist/core/contracts/abis/LevrMvpStaker.d.ts +746 -0
- package/dist/core/contracts/abis/LevrMvpStaker.js +386 -0
- package/dist/core/contracts/abis/LevrMvpStaker.js.map +1 -0
- package/dist/core/contracts/abis/LevrMvpToken.d.ts +341 -0
- package/dist/core/contracts/abis/LevrMvpToken.js +183 -0
- package/dist/core/contracts/abis/LevrMvpToken.js.map +1 -0
- package/dist/core/contracts/abis/LevrOrderbook.d.ts +551 -356
- package/dist/core/contracts/abis/LevrOrderbook.js +256 -409
- package/dist/core/contracts/abis/LevrOrderbook.js.map +1 -1
- package/dist/core/contracts/abis/LevrOrderbookLens.d.ts +167 -0
- package/dist/core/contracts/abis/LevrOrderbookLens.js +103 -0
- package/dist/core/contracts/abis/LevrOrderbookLens.js.map +1 -0
- package/dist/core/contracts/abis/LevrOverUnderMarket.d.ts +1054 -0
- package/dist/core/contracts/abis/LevrOverUnderMarket.js +463 -0
- package/dist/core/contracts/abis/LevrOverUnderMarket.js.map +1 -0
- package/dist/core/contracts/abis/LevrPythFeed.d.ts +225 -0
- package/dist/core/contracts/abis/LevrPythFeed.js +131 -0
- package/dist/core/contracts/abis/LevrPythFeed.js.map +1 -0
- package/dist/core/contracts/abis/LevrUtil.d.ts +485 -0
- package/dist/core/contracts/abis/LevrUtil.js +226 -0
- package/dist/core/contracts/abis/LevrUtil.js.map +1 -0
- package/dist/core/contracts/abis/index.d.ts +11663 -4619
- package/dist/core/contracts/abis/index.js +28 -10
- package/dist/core/contracts/abis/index.js.map +1 -1
- package/dist/core/contracts/addresses.d.ts +64 -40
- package/dist/core/contracts/addresses.js +88 -64
- package/dist/core/contracts/addresses.js.map +1 -1
- package/dist/core/contracts/chains.js +0 -2
- package/dist/core/contracts/chains.js.map +1 -1
- package/dist/core/contracts/clients/publicClients.js +1 -5
- package/dist/core/contracts/clients/publicClients.js.map +1 -1
- package/dist/core/contracts/constants.d.ts +2 -3
- package/dist/core/contracts/constants.js +3 -5
- package/dist/core/contracts/constants.js.map +1 -1
- package/dist/core/contracts/instances.d.ts +0 -16
- package/dist/core/contracts/instances.js +0 -36
- package/dist/core/contracts/instances.js.map +1 -1
- package/dist/core/prisma/generated/edge.js +3 -3
- package/dist/core/prisma/generated/index.d.ts +1 -7
- package/dist/core/prisma/generated/index.js +3 -3
- package/dist/core/prisma/generated/package.json +1 -1
- package/dist/core/prisma/generated/schema.prisma +0 -1
- package/dist/core/prisma/generated/wasm.js +2 -2
- package/dist/core/types/blockchain/chains.types.d.ts +0 -2
- package/dist/core/types/blockchain/chains.types.js +0 -2
- package/dist/core/types/blockchain/chains.types.js.map +1 -1
- package/dist/core/types/blockchain/oz.relayer.types.d.ts +2 -1
- package/dist/core/types/blockchain/oz.relayer.types.js +1 -0
- package/dist/core/types/blockchain/oz.relayer.types.js.map +1 -1
- package/dist/core/types/oracle/market/markets.types.d.ts +0 -1
- package/dist/core/types/oracle/market/markets.types.js +0 -1
- package/dist/core/types/oracle/market/markets.types.js.map +1 -1
- package/dist/core/types/oracle/market/odds.types.d.ts +6 -10
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react/hooks/contracts/useContracts.d.ts +79 -25
- package/dist/react/hooks/contracts/useContracts.js +15 -1
- package/dist/react/hooks/contracts/useContracts.js.map +1 -1
- package/dist/server/config/urls.d.ts +0 -32
- package/dist/server/contracts/clients/ozRelayerService.js +1 -0
- package/dist/server/contracts/clients/ozRelayerService.js.map +1 -1
- package/dist/server/contracts/instances.d.ts +1 -16
- package/dist/server/contracts/instances.js +0 -22
- package/dist/server/contracts/instances.js.map +1 -1
- package/package.json +1 -1
- package/dist/core/contracts/abis/LevrBaseMarket.js +0 -976
- package/dist/core/contracts/abis/LevrBaseMarket.js.map +0 -1
- package/dist/core/contracts/abis/Storage.d.ts +0 -34
- package/dist/core/contracts/abis/Storage.js +0 -47
- package/dist/core/contracts/abis/Storage.js.map +0 -1
- package/dist/server/test-relayers.d.ts +0 -1
- package/dist/server/test-relayers.js +0 -17
- package/dist/server/test-relayers.js.map +0 -1
|
@@ -1,1009 +1,1050 @@
|
|
|
1
1
|
declare const _default: readonly [{
|
|
2
|
-
readonly type: "function";
|
|
3
|
-
readonly name: "cancelMarket";
|
|
4
2
|
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_levrConfigProvider";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly stateMutability: "nonpayable";
|
|
8
|
+
readonly type: "constructor";
|
|
9
|
+
}, {
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly name: "EnforcedPause";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly name: "ExpectedPause";
|
|
16
|
+
readonly type: "error";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "LBM_CANNOT_LIQUIDATE_MARKET_MAKER";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [];
|
|
23
|
+
readonly name: "LBM_CANNOT_OVERRIDE_IN_PRE_GAME";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "LBM_DUPLICATE_MARKET";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly internalType: "bytes32";
|
|
32
|
+
readonly name: "gameMarketId";
|
|
33
|
+
readonly type: "bytes32";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "LBM_INACTIVE_GAME_MARKET";
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly internalType: "bytes32";
|
|
40
|
+
readonly name: "gameMarketId";
|
|
41
|
+
readonly type: "bytes32";
|
|
42
|
+
}];
|
|
43
|
+
readonly name: "LBM_INEXISTENT_GAME_MARKET";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "LBM_INVALID_BUYERS_DATA";
|
|
48
|
+
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [{
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly name: "gameId";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}, {
|
|
55
|
+
readonly internalType: "enum GameStatus";
|
|
56
|
+
readonly name: "currentStatus";
|
|
57
|
+
readonly type: "uint8";
|
|
58
|
+
}, {
|
|
59
|
+
readonly internalType: "enum GameStatus";
|
|
60
|
+
readonly name: "expectedStatus";
|
|
61
|
+
readonly type: "uint8";
|
|
62
|
+
}];
|
|
63
|
+
readonly name: "LBM_INVALID_GAME_STATUS";
|
|
64
|
+
readonly type: "error";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "LBM_INVALID_LEVR_MARKET_ID";
|
|
68
|
+
readonly type: "error";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly internalType: "bytes32";
|
|
72
|
+
readonly name: "gameMarketId";
|
|
73
|
+
readonly type: "bytes32";
|
|
74
|
+
}, {
|
|
75
|
+
readonly internalType: "enum MarketStatus";
|
|
76
|
+
readonly name: "currentPhase";
|
|
77
|
+
readonly type: "uint8";
|
|
78
|
+
}, {
|
|
79
|
+
readonly internalType: "enum MarketStatus";
|
|
80
|
+
readonly name: "expectedPhase";
|
|
81
|
+
readonly type: "uint8";
|
|
82
|
+
}];
|
|
83
|
+
readonly name: "LBM_INVALID_MARKET_PHASE";
|
|
84
|
+
readonly type: "error";
|
|
85
|
+
}, {
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly internalType: "bytes32";
|
|
88
|
+
readonly name: "positionId";
|
|
89
|
+
readonly type: "bytes32";
|
|
90
|
+
}, {
|
|
91
|
+
readonly internalType: "bytes32";
|
|
92
|
+
readonly name: "gameMarketId";
|
|
93
|
+
readonly type: "bytes32";
|
|
94
|
+
}];
|
|
95
|
+
readonly name: "LBM_INVALID_POSITION_ID_FOR_GAME_MARKET";
|
|
96
|
+
readonly type: "error";
|
|
97
|
+
}, {
|
|
98
|
+
readonly inputs: readonly [];
|
|
99
|
+
readonly name: "LBM_INVALID_RISK_DATA";
|
|
100
|
+
readonly type: "error";
|
|
101
|
+
}, {
|
|
102
|
+
readonly inputs: readonly [];
|
|
103
|
+
readonly name: "LBM_INVALID_SELLERS_DATA";
|
|
104
|
+
readonly type: "error";
|
|
105
|
+
}, {
|
|
106
|
+
readonly inputs: readonly [{
|
|
107
|
+
readonly internalType: "enum Side";
|
|
108
|
+
readonly name: "side";
|
|
109
|
+
readonly type: "uint8";
|
|
110
|
+
}];
|
|
111
|
+
readonly name: "LBM_INVALID_SIDE";
|
|
112
|
+
readonly type: "error";
|
|
113
|
+
}, {
|
|
114
|
+
readonly inputs: readonly [];
|
|
115
|
+
readonly name: "LBM_INVALID_SIDE_GROUP";
|
|
116
|
+
readonly type: "error";
|
|
117
|
+
}, {
|
|
118
|
+
readonly inputs: readonly [];
|
|
119
|
+
readonly name: "LBM_INVALID_TARGET_SCORE";
|
|
120
|
+
readonly type: "error";
|
|
121
|
+
}, {
|
|
122
|
+
readonly inputs: readonly [];
|
|
123
|
+
readonly name: "LBM_INVALID_TRADE_DATA";
|
|
124
|
+
readonly type: "error";
|
|
125
|
+
}, {
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly internalType: "bytes32";
|
|
128
|
+
readonly name: "gameMarketId";
|
|
129
|
+
readonly type: "bytes32";
|
|
130
|
+
}];
|
|
131
|
+
readonly name: "LBM_MARKET_CLOSED";
|
|
132
|
+
readonly type: "error";
|
|
133
|
+
}, {
|
|
134
|
+
readonly inputs: readonly [];
|
|
135
|
+
readonly name: "LBM_MARKET_ID_ALREADY_INITIALIZED";
|
|
136
|
+
readonly type: "error";
|
|
137
|
+
}, {
|
|
138
|
+
readonly inputs: readonly [{
|
|
139
|
+
readonly internalType: "bytes32";
|
|
140
|
+
readonly name: "gameMarketId";
|
|
141
|
+
readonly type: "bytes32";
|
|
142
|
+
}];
|
|
143
|
+
readonly name: "LBM_MARKET_SETTLED";
|
|
144
|
+
readonly type: "error";
|
|
145
|
+
}, {
|
|
146
|
+
readonly inputs: readonly [];
|
|
147
|
+
readonly name: "LBM_NOT_LEVR_ADMIN";
|
|
148
|
+
readonly type: "error";
|
|
149
|
+
}, {
|
|
150
|
+
readonly inputs: readonly [];
|
|
151
|
+
readonly name: "LBM_NOT_LEVR_MANAGER";
|
|
152
|
+
readonly type: "error";
|
|
153
|
+
}, {
|
|
154
|
+
readonly inputs: readonly [];
|
|
155
|
+
readonly name: "LBM_NOT_LEVR_ORDERBOOK";
|
|
156
|
+
readonly type: "error";
|
|
157
|
+
}, {
|
|
158
|
+
readonly inputs: readonly [];
|
|
159
|
+
readonly name: "LBM_NOT_MARKETS_ROUTER";
|
|
160
|
+
readonly type: "error";
|
|
161
|
+
}, {
|
|
162
|
+
readonly inputs: readonly [];
|
|
163
|
+
readonly name: "LBM_UNAUTHORIZED_MUTATION";
|
|
164
|
+
readonly type: "error";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [];
|
|
167
|
+
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
168
|
+
readonly type: "error";
|
|
169
|
+
}, {
|
|
170
|
+
readonly inputs: readonly [];
|
|
171
|
+
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
172
|
+
readonly type: "error";
|
|
173
|
+
}, {
|
|
174
|
+
readonly inputs: readonly [];
|
|
175
|
+
readonly name: "LB_NOT_LEVR_ADMIN";
|
|
176
|
+
readonly type: "error";
|
|
177
|
+
}, {
|
|
178
|
+
readonly inputs: readonly [];
|
|
179
|
+
readonly name: "LM_INVALID_PROGRESS_BPS";
|
|
180
|
+
readonly type: "error";
|
|
181
|
+
}, {
|
|
182
|
+
readonly anonymous: false;
|
|
183
|
+
readonly inputs: readonly [{
|
|
184
|
+
readonly indexed: true;
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
readonly name: "gameId";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}, {
|
|
189
|
+
readonly indexed: true;
|
|
190
|
+
readonly internalType: "bytes32";
|
|
191
|
+
readonly name: "gameMarketId";
|
|
192
|
+
readonly type: "bytes32";
|
|
193
|
+
}, {
|
|
194
|
+
readonly indexed: true;
|
|
195
|
+
readonly internalType: "bytes12";
|
|
196
|
+
readonly name: "levrSportId";
|
|
197
|
+
readonly type: "bytes12";
|
|
198
|
+
}];
|
|
199
|
+
readonly name: "GameMarketInitialized";
|
|
200
|
+
readonly type: "event";
|
|
201
|
+
}, {
|
|
202
|
+
readonly anonymous: false;
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly indexed: true;
|
|
205
|
+
readonly internalType: "address";
|
|
206
|
+
readonly name: "prevProvider";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}, {
|
|
209
|
+
readonly indexed: true;
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly name: "newProvider";
|
|
212
|
+
readonly type: "address";
|
|
213
|
+
}];
|
|
214
|
+
readonly name: "LevrConfigProviderUpdated";
|
|
215
|
+
readonly type: "event";
|
|
216
|
+
}, {
|
|
217
|
+
readonly anonymous: false;
|
|
218
|
+
readonly inputs: readonly [{
|
|
219
|
+
readonly indexed: true;
|
|
220
|
+
readonly internalType: "bytes16";
|
|
221
|
+
readonly name: "levrMarketId";
|
|
222
|
+
readonly type: "bytes16";
|
|
223
|
+
}];
|
|
224
|
+
readonly name: "LevrMarketContractInitialized";
|
|
225
|
+
readonly type: "event";
|
|
226
|
+
}, {
|
|
227
|
+
readonly anonymous: false;
|
|
228
|
+
readonly inputs: readonly [{
|
|
229
|
+
readonly indexed: true;
|
|
230
|
+
readonly internalType: "bytes32";
|
|
231
|
+
readonly name: "gameMarketId";
|
|
232
|
+
readonly type: "bytes32";
|
|
233
|
+
}, {
|
|
234
|
+
readonly indexed: false;
|
|
235
|
+
readonly internalType: "enum MarketStatus";
|
|
236
|
+
readonly name: "prevPhase";
|
|
237
|
+
readonly type: "uint8";
|
|
238
|
+
}, {
|
|
239
|
+
readonly indexed: false;
|
|
240
|
+
readonly internalType: "enum MarketStatus";
|
|
241
|
+
readonly name: "newPhase";
|
|
242
|
+
readonly type: "uint8";
|
|
243
|
+
}, {
|
|
244
|
+
readonly indexed: false;
|
|
245
|
+
readonly internalType: "uint48";
|
|
246
|
+
readonly name: "updatedAt";
|
|
247
|
+
readonly type: "uint48";
|
|
248
|
+
}];
|
|
249
|
+
readonly name: "MarketPhaseUpdated";
|
|
250
|
+
readonly type: "event";
|
|
251
|
+
}, {
|
|
252
|
+
readonly anonymous: false;
|
|
253
|
+
readonly inputs: readonly [{
|
|
254
|
+
readonly indexed: true;
|
|
255
|
+
readonly internalType: "bytes32";
|
|
256
|
+
readonly name: "gameMarketId";
|
|
257
|
+
readonly type: "bytes32";
|
|
258
|
+
}, {
|
|
259
|
+
readonly indexed: true;
|
|
260
|
+
readonly internalType: "uint256";
|
|
261
|
+
readonly name: "gameId";
|
|
262
|
+
readonly type: "uint256";
|
|
263
|
+
}, {
|
|
264
|
+
readonly indexed: true;
|
|
265
|
+
readonly internalType: "enum Side";
|
|
266
|
+
readonly name: "winner";
|
|
267
|
+
readonly type: "uint8";
|
|
268
|
+
}, {
|
|
269
|
+
readonly indexed: false;
|
|
270
|
+
readonly internalType: "enum MarketStatus";
|
|
271
|
+
readonly name: "settledAs";
|
|
272
|
+
readonly type: "uint8";
|
|
273
|
+
}, {
|
|
274
|
+
readonly indexed: false;
|
|
275
|
+
readonly internalType: "uint256";
|
|
276
|
+
readonly name: "totalCapturedCollateral";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
}, {
|
|
279
|
+
readonly indexed: false;
|
|
280
|
+
readonly internalType: "uint256";
|
|
281
|
+
readonly name: "totalBorrowFee";
|
|
282
|
+
readonly type: "uint256";
|
|
283
|
+
}, {
|
|
284
|
+
readonly indexed: false;
|
|
285
|
+
readonly internalType: "uint256";
|
|
286
|
+
readonly name: "borrowFeeDeferred";
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
}, {
|
|
289
|
+
readonly indexed: false;
|
|
290
|
+
readonly internalType: "uint256";
|
|
291
|
+
readonly name: "borrowFeeDeficitReduced";
|
|
292
|
+
readonly type: "uint256";
|
|
293
|
+
}, {
|
|
294
|
+
readonly indexed: false;
|
|
295
|
+
readonly internalType: "uint256";
|
|
296
|
+
readonly name: "totalProfitsAllocated";
|
|
297
|
+
readonly type: "uint256";
|
|
298
|
+
}];
|
|
299
|
+
readonly name: "MarketSettled";
|
|
300
|
+
readonly type: "event";
|
|
301
|
+
}, {
|
|
302
|
+
readonly anonymous: false;
|
|
303
|
+
readonly inputs: readonly [{
|
|
304
|
+
readonly indexed: false;
|
|
305
|
+
readonly internalType: "address";
|
|
306
|
+
readonly name: "account";
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
}];
|
|
309
|
+
readonly name: "Paused";
|
|
310
|
+
readonly type: "event";
|
|
311
|
+
}, {
|
|
312
|
+
readonly anonymous: false;
|
|
313
|
+
readonly inputs: readonly [{
|
|
314
|
+
readonly indexed: true;
|
|
315
|
+
readonly internalType: "bytes32";
|
|
316
|
+
readonly name: "gameMarketId";
|
|
317
|
+
readonly type: "bytes32";
|
|
318
|
+
}, {
|
|
319
|
+
readonly indexed: true;
|
|
320
|
+
readonly internalType: "bytes32";
|
|
321
|
+
readonly name: "positionId";
|
|
322
|
+
readonly type: "bytes32";
|
|
323
|
+
}, {
|
|
324
|
+
readonly indexed: true;
|
|
325
|
+
readonly internalType: "address";
|
|
326
|
+
readonly name: "receiver";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
}, {
|
|
329
|
+
readonly indexed: false;
|
|
330
|
+
readonly internalType: "address";
|
|
331
|
+
readonly name: "asset";
|
|
332
|
+
readonly type: "address";
|
|
333
|
+
}, {
|
|
334
|
+
readonly indexed: false;
|
|
335
|
+
readonly internalType: "uint256";
|
|
336
|
+
readonly name: "tokenAmount";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
}, {
|
|
339
|
+
readonly indexed: false;
|
|
340
|
+
readonly internalType: "uint256";
|
|
341
|
+
readonly name: "assetAmount";
|
|
342
|
+
readonly type: "uint256";
|
|
343
|
+
}, {
|
|
344
|
+
readonly indexed: false;
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
readonly name: "positionSize";
|
|
347
|
+
readonly type: "uint256";
|
|
348
|
+
}, {
|
|
349
|
+
readonly indexed: false;
|
|
350
|
+
readonly internalType: "uint256";
|
|
351
|
+
readonly name: "boundedLoss";
|
|
352
|
+
readonly type: "uint256";
|
|
353
|
+
}, {
|
|
354
|
+
readonly indexed: false;
|
|
355
|
+
readonly internalType: "uint256";
|
|
356
|
+
readonly name: "eLeverage";
|
|
357
|
+
readonly type: "uint256";
|
|
358
|
+
}, {
|
|
359
|
+
readonly indexed: false;
|
|
360
|
+
readonly internalType: "uint256";
|
|
361
|
+
readonly name: "entryPrice";
|
|
362
|
+
readonly type: "uint256";
|
|
363
|
+
}, {
|
|
364
|
+
readonly indexed: false;
|
|
365
|
+
readonly internalType: "uint256";
|
|
366
|
+
readonly name: "liqPrice";
|
|
367
|
+
readonly type: "uint256";
|
|
368
|
+
}, {
|
|
369
|
+
readonly indexed: false;
|
|
370
|
+
readonly internalType: "uint256";
|
|
371
|
+
readonly name: "positionFee";
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
}, {
|
|
374
|
+
readonly indexed: false;
|
|
375
|
+
readonly internalType: "uint256";
|
|
376
|
+
readonly name: "imbalanceFee";
|
|
377
|
+
readonly type: "uint256";
|
|
378
|
+
}, {
|
|
379
|
+
readonly indexed: false;
|
|
380
|
+
readonly internalType: "uint256";
|
|
381
|
+
readonly name: "gameId";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
}, {
|
|
384
|
+
readonly indexed: false;
|
|
385
|
+
readonly internalType: "enum Side";
|
|
386
|
+
readonly name: "side";
|
|
387
|
+
readonly type: "uint8";
|
|
388
|
+
}];
|
|
389
|
+
readonly name: "PositionOpened";
|
|
390
|
+
readonly type: "event";
|
|
391
|
+
}, {
|
|
392
|
+
readonly anonymous: false;
|
|
393
|
+
readonly inputs: readonly [{
|
|
394
|
+
readonly indexed: true;
|
|
395
|
+
readonly internalType: "address";
|
|
396
|
+
readonly name: "owner";
|
|
397
|
+
readonly type: "address";
|
|
398
|
+
}, {
|
|
399
|
+
readonly indexed: true;
|
|
400
|
+
readonly internalType: "address";
|
|
401
|
+
readonly name: "receiver";
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
}, {
|
|
404
|
+
readonly indexed: true;
|
|
405
|
+
readonly internalType: "bytes32";
|
|
406
|
+
readonly name: "positionId";
|
|
407
|
+
readonly type: "bytes32";
|
|
408
|
+
}, {
|
|
409
|
+
readonly indexed: false;
|
|
410
|
+
readonly internalType: "bytes32";
|
|
5
411
|
readonly name: "gameMarketId";
|
|
6
412
|
readonly type: "bytes32";
|
|
413
|
+
}, {
|
|
414
|
+
readonly indexed: false;
|
|
415
|
+
readonly internalType: "enum Side";
|
|
416
|
+
readonly name: "side";
|
|
417
|
+
readonly type: "uint8";
|
|
418
|
+
}, {
|
|
419
|
+
readonly indexed: false;
|
|
420
|
+
readonly internalType: "enum Side";
|
|
421
|
+
readonly name: "marketWinner";
|
|
422
|
+
readonly type: "uint8";
|
|
423
|
+
}, {
|
|
424
|
+
readonly indexed: false;
|
|
425
|
+
readonly internalType: "uint256";
|
|
426
|
+
readonly name: "profit";
|
|
427
|
+
readonly type: "uint256";
|
|
428
|
+
}, {
|
|
429
|
+
readonly indexed: false;
|
|
430
|
+
readonly internalType: "uint256";
|
|
431
|
+
readonly name: "loss";
|
|
432
|
+
readonly type: "uint256";
|
|
433
|
+
}, {
|
|
434
|
+
readonly indexed: false;
|
|
435
|
+
readonly internalType: "uint256";
|
|
436
|
+
readonly name: "borrowFee";
|
|
437
|
+
readonly type: "uint256";
|
|
438
|
+
}, {
|
|
439
|
+
readonly indexed: false;
|
|
440
|
+
readonly internalType: "uint256";
|
|
441
|
+
readonly name: "imbalanceFee";
|
|
442
|
+
readonly type: "uint256";
|
|
443
|
+
}];
|
|
444
|
+
readonly name: "PositionRedeemed";
|
|
445
|
+
readonly type: "event";
|
|
446
|
+
}, {
|
|
447
|
+
readonly anonymous: false;
|
|
448
|
+
readonly inputs: readonly [{
|
|
449
|
+
readonly indexed: false;
|
|
450
|
+
readonly internalType: "address";
|
|
451
|
+
readonly name: "account";
|
|
452
|
+
readonly type: "address";
|
|
453
|
+
}];
|
|
454
|
+
readonly name: "Unpaused";
|
|
455
|
+
readonly type: "event";
|
|
456
|
+
}, {
|
|
457
|
+
readonly inputs: readonly [{
|
|
458
|
+
readonly internalType: "address";
|
|
459
|
+
readonly name: "asset";
|
|
460
|
+
readonly type: "address";
|
|
461
|
+
}];
|
|
462
|
+
readonly name: "borrowFeeDeficit";
|
|
463
|
+
readonly outputs: readonly [{
|
|
464
|
+
readonly internalType: "uint256";
|
|
465
|
+
readonly name: "";
|
|
466
|
+
readonly type: "uint256";
|
|
467
|
+
}];
|
|
468
|
+
readonly stateMutability: "view";
|
|
469
|
+
readonly type: "function";
|
|
470
|
+
}, {
|
|
471
|
+
readonly inputs: readonly [{
|
|
7
472
|
readonly internalType: "bytes32";
|
|
473
|
+
readonly name: "gameMarketId";
|
|
474
|
+
readonly type: "bytes32";
|
|
8
475
|
}, {
|
|
476
|
+
readonly internalType: "bytes";
|
|
9
477
|
readonly name: "data";
|
|
10
478
|
readonly type: "bytes";
|
|
11
|
-
readonly internalType: "bytes";
|
|
12
479
|
}];
|
|
480
|
+
readonly name: "cancelMarket";
|
|
13
481
|
readonly outputs: readonly [];
|
|
14
482
|
readonly stateMutability: "nonpayable";
|
|
15
|
-
}, {
|
|
16
483
|
readonly type: "function";
|
|
17
|
-
|
|
484
|
+
}, {
|
|
18
485
|
readonly inputs: readonly [];
|
|
486
|
+
readonly name: "getActiveGameMarkets";
|
|
19
487
|
readonly outputs: readonly [{
|
|
488
|
+
readonly internalType: "bytes32[]";
|
|
20
489
|
readonly name: "";
|
|
21
490
|
readonly type: "bytes32[]";
|
|
22
|
-
readonly internalType: "bytes32[]";
|
|
23
491
|
}];
|
|
24
492
|
readonly stateMutability: "view";
|
|
25
|
-
}, {
|
|
26
493
|
readonly type: "function";
|
|
27
|
-
|
|
494
|
+
}, {
|
|
28
495
|
readonly inputs: readonly [{
|
|
496
|
+
readonly internalType: "bytes32";
|
|
29
497
|
readonly name: "gameMarketId";
|
|
30
498
|
readonly type: "bytes32";
|
|
31
|
-
readonly internalType: "bytes32";
|
|
32
499
|
}];
|
|
500
|
+
readonly name: "getGameMarket";
|
|
33
501
|
readonly outputs: readonly [{
|
|
34
|
-
readonly name: "";
|
|
35
|
-
readonly type: "tuple";
|
|
36
|
-
readonly internalType: "struct LevrMarket";
|
|
37
502
|
readonly components: readonly [{
|
|
503
|
+
readonly internalType: "uint256";
|
|
38
504
|
readonly name: "gameId";
|
|
39
505
|
readonly type: "uint256";
|
|
40
|
-
readonly internalType: "uint256";
|
|
41
506
|
}, {
|
|
507
|
+
readonly internalType: "uint256";
|
|
42
508
|
readonly name: "totalCollateralA";
|
|
43
509
|
readonly type: "uint256";
|
|
44
|
-
readonly internalType: "uint256";
|
|
45
510
|
}, {
|
|
511
|
+
readonly internalType: "uint256";
|
|
46
512
|
readonly name: "totalCollateralB";
|
|
47
513
|
readonly type: "uint256";
|
|
48
|
-
readonly internalType: "uint256";
|
|
49
514
|
}, {
|
|
515
|
+
readonly internalType: "uint256";
|
|
50
516
|
readonly name: "totalCollateralC";
|
|
51
517
|
readonly type: "uint256";
|
|
52
|
-
readonly internalType: "uint256";
|
|
53
518
|
}, {
|
|
519
|
+
readonly internalType: "uint256";
|
|
54
520
|
readonly name: "pendingProfits";
|
|
55
521
|
readonly type: "uint256";
|
|
56
|
-
readonly internalType: "uint256";
|
|
57
522
|
}, {
|
|
523
|
+
readonly internalType: "uint256";
|
|
58
524
|
readonly name: "paidProfits";
|
|
59
525
|
readonly type: "uint256";
|
|
60
|
-
readonly internalType: "uint256";
|
|
61
526
|
}, {
|
|
527
|
+
readonly internalType: "uint256";
|
|
62
528
|
readonly name: "forfeitedCollateral";
|
|
63
529
|
readonly type: "uint256";
|
|
64
|
-
readonly internalType: "uint256";
|
|
65
530
|
}, {
|
|
531
|
+
readonly internalType: "uint256";
|
|
66
532
|
readonly name: "pendingBorrowFee";
|
|
67
533
|
readonly type: "uint256";
|
|
68
|
-
readonly internalType: "uint256";
|
|
69
534
|
}, {
|
|
535
|
+
readonly internalType: "uint256";
|
|
70
536
|
readonly name: "weightedPendingBorrowFee";
|
|
71
537
|
readonly type: "uint256";
|
|
72
|
-
readonly internalType: "uint256";
|
|
73
538
|
}, {
|
|
539
|
+
readonly internalType: "uint256";
|
|
74
540
|
readonly name: "borrowFeeA";
|
|
75
541
|
readonly type: "uint256";
|
|
76
|
-
readonly internalType: "uint256";
|
|
77
542
|
}, {
|
|
543
|
+
readonly internalType: "uint256";
|
|
78
544
|
readonly name: "borrowFeeB";
|
|
79
545
|
readonly type: "uint256";
|
|
80
|
-
readonly internalType: "uint256";
|
|
81
546
|
}, {
|
|
547
|
+
readonly internalType: "uint256";
|
|
82
548
|
readonly name: "borrowFeeC";
|
|
83
549
|
readonly type: "uint256";
|
|
84
|
-
readonly internalType: "uint256";
|
|
85
550
|
}, {
|
|
551
|
+
readonly internalType: "enum MarketStatus";
|
|
86
552
|
readonly name: "status";
|
|
87
553
|
readonly type: "uint8";
|
|
88
|
-
readonly internalType: "enum MarketStatus";
|
|
89
554
|
}, {
|
|
555
|
+
readonly internalType: "enum Side";
|
|
90
556
|
readonly name: "winner";
|
|
91
557
|
readonly type: "uint8";
|
|
92
|
-
readonly internalType: "enum Side";
|
|
93
558
|
}, {
|
|
559
|
+
readonly internalType: "uint256";
|
|
94
560
|
readonly name: "targetScore";
|
|
95
561
|
readonly type: "uint256";
|
|
96
|
-
readonly internalType: "uint256";
|
|
97
562
|
}, {
|
|
563
|
+
readonly internalType: "address";
|
|
98
564
|
readonly name: "collateralAsset";
|
|
99
565
|
readonly type: "address";
|
|
100
|
-
readonly internalType: "address";
|
|
101
566
|
}, {
|
|
567
|
+
readonly internalType: "bytes12";
|
|
102
568
|
readonly name: "levrSportId";
|
|
103
569
|
readonly type: "bytes12";
|
|
104
|
-
readonly internalType: "bytes12";
|
|
105
570
|
}, {
|
|
571
|
+
readonly internalType: "uint16";
|
|
106
572
|
readonly name: "borrowFeeBps";
|
|
107
573
|
readonly type: "uint16";
|
|
108
|
-
readonly internalType: "uint16";
|
|
109
574
|
}, {
|
|
575
|
+
readonly internalType: "uint8";
|
|
110
576
|
readonly name: "allowedSideGroup";
|
|
111
577
|
readonly type: "uint8";
|
|
112
|
-
readonly internalType: "uint8";
|
|
113
578
|
}];
|
|
579
|
+
readonly internalType: "struct LevrMarket";
|
|
580
|
+
readonly name: "";
|
|
581
|
+
readonly type: "tuple";
|
|
114
582
|
}];
|
|
115
583
|
readonly stateMutability: "view";
|
|
116
|
-
}, {
|
|
117
584
|
readonly type: "function";
|
|
118
|
-
|
|
585
|
+
}, {
|
|
119
586
|
readonly inputs: readonly [{
|
|
587
|
+
readonly internalType: "uint256";
|
|
120
588
|
readonly name: "gameId";
|
|
121
589
|
readonly type: "uint256";
|
|
122
|
-
readonly internalType: "uint256";
|
|
123
590
|
}];
|
|
591
|
+
readonly name: "getGameMarketId";
|
|
124
592
|
readonly outputs: readonly [{
|
|
593
|
+
readonly internalType: "bytes32";
|
|
125
594
|
readonly name: "";
|
|
126
595
|
readonly type: "bytes32";
|
|
127
|
-
readonly internalType: "bytes32";
|
|
128
596
|
}];
|
|
129
597
|
readonly stateMutability: "view";
|
|
130
|
-
}, {
|
|
131
598
|
readonly type: "function";
|
|
132
|
-
|
|
599
|
+
}, {
|
|
133
600
|
readonly inputs: readonly [{
|
|
601
|
+
readonly internalType: "bytes32[]";
|
|
134
602
|
readonly name: "positionIds";
|
|
135
603
|
readonly type: "bytes32[]";
|
|
136
|
-
readonly internalType: "bytes32[]";
|
|
137
604
|
}];
|
|
605
|
+
readonly name: "getPositions";
|
|
138
606
|
readonly outputs: readonly [{
|
|
139
|
-
readonly name: "positions";
|
|
140
|
-
readonly type: "tuple[]";
|
|
141
|
-
readonly internalType: "struct UserPosition[]";
|
|
142
607
|
readonly components: readonly [{
|
|
608
|
+
readonly internalType: "bytes32";
|
|
143
609
|
readonly name: "positionId";
|
|
144
610
|
readonly type: "bytes32";
|
|
145
|
-
readonly internalType: "bytes32";
|
|
146
611
|
}, {
|
|
612
|
+
readonly internalType: "bytes32";
|
|
147
613
|
readonly name: "gameMarketId";
|
|
148
614
|
readonly type: "bytes32";
|
|
149
|
-
readonly internalType: "bytes32";
|
|
150
615
|
}, {
|
|
616
|
+
readonly internalType: "uint256";
|
|
151
617
|
readonly name: "collateralAmount";
|
|
152
618
|
readonly type: "uint256";
|
|
153
|
-
readonly internalType: "uint256";
|
|
154
619
|
}, {
|
|
620
|
+
readonly internalType: "uint256";
|
|
155
621
|
readonly name: "positionSize";
|
|
156
622
|
readonly type: "uint256";
|
|
157
|
-
readonly internalType: "uint256";
|
|
158
623
|
}, {
|
|
624
|
+
readonly internalType: "uint256";
|
|
159
625
|
readonly name: "tokensBought";
|
|
160
626
|
readonly type: "uint256";
|
|
161
|
-
readonly internalType: "uint256";
|
|
162
627
|
}, {
|
|
628
|
+
readonly internalType: "uint256";
|
|
163
629
|
readonly name: "tokenAmount";
|
|
164
630
|
readonly type: "uint256";
|
|
165
|
-
readonly internalType: "uint256";
|
|
166
631
|
}, {
|
|
632
|
+
readonly internalType: "uint256";
|
|
167
633
|
readonly name: "boundedLoss";
|
|
168
634
|
readonly type: "uint256";
|
|
169
|
-
readonly internalType: "uint256";
|
|
170
635
|
}, {
|
|
636
|
+
readonly internalType: "uint256";
|
|
171
637
|
readonly name: "positionFee";
|
|
172
638
|
readonly type: "uint256";
|
|
173
|
-
readonly internalType: "uint256";
|
|
174
639
|
}, {
|
|
640
|
+
readonly internalType: "uint256";
|
|
175
641
|
readonly name: "borrowFee";
|
|
176
642
|
readonly type: "uint256";
|
|
177
|
-
readonly internalType: "uint256";
|
|
178
643
|
}, {
|
|
644
|
+
readonly internalType: "uint256";
|
|
179
645
|
readonly name: "imbalanceFee";
|
|
180
646
|
readonly type: "uint256";
|
|
181
|
-
readonly internalType: "uint256";
|
|
182
647
|
}, {
|
|
648
|
+
readonly internalType: "uint256";
|
|
183
649
|
readonly name: "userLeverage";
|
|
184
650
|
readonly type: "uint256";
|
|
185
|
-
readonly internalType: "uint256";
|
|
186
651
|
}, {
|
|
652
|
+
readonly internalType: "uint256";
|
|
187
653
|
readonly name: "effectiveLeverage";
|
|
188
654
|
readonly type: "uint256";
|
|
189
|
-
readonly internalType: "uint256";
|
|
190
655
|
}, {
|
|
656
|
+
readonly internalType: "uint256";
|
|
191
657
|
readonly name: "entryPrice";
|
|
192
658
|
readonly type: "uint256";
|
|
193
|
-
readonly internalType: "uint256";
|
|
194
659
|
}, {
|
|
660
|
+
readonly internalType: "uint256";
|
|
195
661
|
readonly name: "liquidationPrice";
|
|
196
662
|
readonly type: "uint256";
|
|
197
|
-
readonly internalType: "uint256";
|
|
198
663
|
}, {
|
|
664
|
+
readonly internalType: "uint256";
|
|
199
665
|
readonly name: "paidOut";
|
|
200
666
|
readonly type: "uint256";
|
|
201
|
-
readonly internalType: "uint256";
|
|
202
667
|
}, {
|
|
668
|
+
readonly internalType: "enum PositionStatus";
|
|
203
669
|
readonly name: "status";
|
|
204
670
|
readonly type: "uint8";
|
|
205
|
-
readonly internalType: "enum PositionStatus";
|
|
206
671
|
}, {
|
|
672
|
+
readonly internalType: "enum Side";
|
|
207
673
|
readonly name: "side";
|
|
208
674
|
readonly type: "uint8";
|
|
209
|
-
readonly internalType: "enum Side";
|
|
210
675
|
}, {
|
|
676
|
+
readonly internalType: "address";
|
|
211
677
|
readonly name: "user";
|
|
212
678
|
readonly type: "address";
|
|
213
|
-
readonly internalType: "address";
|
|
214
679
|
}, {
|
|
680
|
+
readonly internalType: "uint48";
|
|
215
681
|
readonly name: "openedAt";
|
|
216
682
|
readonly type: "uint48";
|
|
217
|
-
readonly internalType: "uint48";
|
|
218
683
|
}, {
|
|
684
|
+
readonly internalType: "uint48";
|
|
219
685
|
readonly name: "closedAt";
|
|
220
686
|
readonly type: "uint48";
|
|
221
|
-
readonly internalType: "uint48";
|
|
222
687
|
}, {
|
|
688
|
+
readonly internalType: "uint16";
|
|
223
689
|
readonly name: "gameProgressAtOpen";
|
|
224
690
|
readonly type: "uint16";
|
|
225
|
-
readonly internalType: "uint16";
|
|
226
691
|
}, {
|
|
692
|
+
readonly internalType: "uint16";
|
|
227
693
|
readonly name: "gameProgressAtClose";
|
|
228
694
|
readonly type: "uint16";
|
|
229
|
-
readonly internalType: "uint16";
|
|
230
695
|
}];
|
|
696
|
+
readonly internalType: "struct UserPosition[]";
|
|
697
|
+
readonly name: "positions";
|
|
698
|
+
readonly type: "tuple[]";
|
|
231
699
|
}];
|
|
232
700
|
readonly stateMutability: "view";
|
|
233
|
-
}, {
|
|
234
701
|
readonly type: "function";
|
|
235
|
-
|
|
702
|
+
}, {
|
|
236
703
|
readonly inputs: readonly [{
|
|
704
|
+
readonly internalType: "bytes32";
|
|
237
705
|
readonly name: "gameMarketId";
|
|
238
706
|
readonly type: "bytes32";
|
|
239
|
-
readonly internalType: "bytes32";
|
|
240
707
|
}, {
|
|
708
|
+
readonly internalType: "address";
|
|
241
709
|
readonly name: "user";
|
|
242
710
|
readonly type: "address";
|
|
243
|
-
readonly internalType: "address";
|
|
244
711
|
}];
|
|
712
|
+
readonly name: "getUserNextPositionId";
|
|
245
713
|
readonly outputs: readonly [{
|
|
714
|
+
readonly internalType: "bytes32";
|
|
246
715
|
readonly name: "";
|
|
247
716
|
readonly type: "bytes32";
|
|
248
|
-
readonly internalType: "bytes32";
|
|
249
717
|
}];
|
|
250
718
|
readonly stateMutability: "nonpayable";
|
|
251
|
-
}, {
|
|
252
719
|
readonly type: "function";
|
|
253
|
-
|
|
720
|
+
}, {
|
|
254
721
|
readonly inputs: readonly [{
|
|
722
|
+
readonly internalType: "bytes32";
|
|
255
723
|
readonly name: "positionId";
|
|
256
724
|
readonly type: "bytes32";
|
|
257
|
-
readonly internalType: "bytes32";
|
|
258
725
|
}];
|
|
726
|
+
readonly name: "getUserPosition";
|
|
259
727
|
readonly outputs: readonly [{
|
|
260
|
-
readonly name: "";
|
|
261
|
-
readonly type: "tuple";
|
|
262
|
-
readonly internalType: "struct UserPosition";
|
|
263
728
|
readonly components: readonly [{
|
|
729
|
+
readonly internalType: "bytes32";
|
|
264
730
|
readonly name: "positionId";
|
|
265
731
|
readonly type: "bytes32";
|
|
266
|
-
readonly internalType: "bytes32";
|
|
267
732
|
}, {
|
|
733
|
+
readonly internalType: "bytes32";
|
|
268
734
|
readonly name: "gameMarketId";
|
|
269
735
|
readonly type: "bytes32";
|
|
270
|
-
readonly internalType: "bytes32";
|
|
271
736
|
}, {
|
|
737
|
+
readonly internalType: "uint256";
|
|
272
738
|
readonly name: "collateralAmount";
|
|
273
739
|
readonly type: "uint256";
|
|
274
|
-
readonly internalType: "uint256";
|
|
275
740
|
}, {
|
|
741
|
+
readonly internalType: "uint256";
|
|
276
742
|
readonly name: "positionSize";
|
|
277
743
|
readonly type: "uint256";
|
|
278
|
-
readonly internalType: "uint256";
|
|
279
744
|
}, {
|
|
745
|
+
readonly internalType: "uint256";
|
|
280
746
|
readonly name: "tokensBought";
|
|
281
747
|
readonly type: "uint256";
|
|
282
|
-
readonly internalType: "uint256";
|
|
283
748
|
}, {
|
|
749
|
+
readonly internalType: "uint256";
|
|
284
750
|
readonly name: "tokenAmount";
|
|
285
751
|
readonly type: "uint256";
|
|
286
|
-
readonly internalType: "uint256";
|
|
287
752
|
}, {
|
|
753
|
+
readonly internalType: "uint256";
|
|
288
754
|
readonly name: "boundedLoss";
|
|
289
755
|
readonly type: "uint256";
|
|
290
|
-
readonly internalType: "uint256";
|
|
291
756
|
}, {
|
|
757
|
+
readonly internalType: "uint256";
|
|
292
758
|
readonly name: "positionFee";
|
|
293
759
|
readonly type: "uint256";
|
|
294
|
-
readonly internalType: "uint256";
|
|
295
760
|
}, {
|
|
761
|
+
readonly internalType: "uint256";
|
|
296
762
|
readonly name: "borrowFee";
|
|
297
763
|
readonly type: "uint256";
|
|
298
|
-
readonly internalType: "uint256";
|
|
299
764
|
}, {
|
|
765
|
+
readonly internalType: "uint256";
|
|
300
766
|
readonly name: "imbalanceFee";
|
|
301
767
|
readonly type: "uint256";
|
|
302
|
-
readonly internalType: "uint256";
|
|
303
768
|
}, {
|
|
769
|
+
readonly internalType: "uint256";
|
|
304
770
|
readonly name: "userLeverage";
|
|
305
771
|
readonly type: "uint256";
|
|
306
|
-
readonly internalType: "uint256";
|
|
307
772
|
}, {
|
|
773
|
+
readonly internalType: "uint256";
|
|
308
774
|
readonly name: "effectiveLeverage";
|
|
309
775
|
readonly type: "uint256";
|
|
310
|
-
readonly internalType: "uint256";
|
|
311
776
|
}, {
|
|
777
|
+
readonly internalType: "uint256";
|
|
312
778
|
readonly name: "entryPrice";
|
|
313
779
|
readonly type: "uint256";
|
|
314
|
-
readonly internalType: "uint256";
|
|
315
780
|
}, {
|
|
781
|
+
readonly internalType: "uint256";
|
|
316
782
|
readonly name: "liquidationPrice";
|
|
317
783
|
readonly type: "uint256";
|
|
318
|
-
readonly internalType: "uint256";
|
|
319
784
|
}, {
|
|
785
|
+
readonly internalType: "uint256";
|
|
320
786
|
readonly name: "paidOut";
|
|
321
787
|
readonly type: "uint256";
|
|
322
|
-
readonly internalType: "uint256";
|
|
323
788
|
}, {
|
|
789
|
+
readonly internalType: "enum PositionStatus";
|
|
324
790
|
readonly name: "status";
|
|
325
791
|
readonly type: "uint8";
|
|
326
|
-
readonly internalType: "enum PositionStatus";
|
|
327
792
|
}, {
|
|
793
|
+
readonly internalType: "enum Side";
|
|
328
794
|
readonly name: "side";
|
|
329
795
|
readonly type: "uint8";
|
|
330
|
-
readonly internalType: "enum Side";
|
|
331
796
|
}, {
|
|
797
|
+
readonly internalType: "address";
|
|
332
798
|
readonly name: "user";
|
|
333
799
|
readonly type: "address";
|
|
334
|
-
readonly internalType: "address";
|
|
335
800
|
}, {
|
|
801
|
+
readonly internalType: "uint48";
|
|
336
802
|
readonly name: "openedAt";
|
|
337
803
|
readonly type: "uint48";
|
|
338
|
-
readonly internalType: "uint48";
|
|
339
804
|
}, {
|
|
805
|
+
readonly internalType: "uint48";
|
|
340
806
|
readonly name: "closedAt";
|
|
341
807
|
readonly type: "uint48";
|
|
342
|
-
readonly internalType: "uint48";
|
|
343
|
-
}, {
|
|
344
|
-
readonly name: "gameProgressAtOpen";
|
|
345
|
-
readonly type: "uint16";
|
|
346
|
-
readonly internalType: "uint16";
|
|
347
808
|
}, {
|
|
348
|
-
readonly
|
|
349
|
-
readonly
|
|
350
|
-
readonly
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
readonly inputs: readonly [{
|
|
358
|
-
readonly name: "gameMarketId";
|
|
359
|
-
readonly type: "bytes32";
|
|
360
|
-
readonly internalType: "bytes32";
|
|
361
|
-
}, {
|
|
362
|
-
readonly name: "nonce";
|
|
363
|
-
readonly type: "uint256";
|
|
364
|
-
readonly internalType: "uint256";
|
|
365
|
-
}, {
|
|
366
|
-
readonly name: "user";
|
|
367
|
-
readonly type: "address";
|
|
368
|
-
readonly internalType: "address";
|
|
369
|
-
}];
|
|
370
|
-
readonly outputs: readonly [{
|
|
371
|
-
readonly name: "";
|
|
372
|
-
readonly type: "bytes32";
|
|
373
|
-
readonly internalType: "bytes32";
|
|
374
|
-
}];
|
|
375
|
-
readonly stateMutability: "pure";
|
|
376
|
-
}, {
|
|
377
|
-
readonly type: "function";
|
|
378
|
-
readonly name: "getUserPositionIdsForGameMarket";
|
|
379
|
-
readonly inputs: readonly [{
|
|
380
|
-
readonly name: "gameMarketId";
|
|
381
|
-
readonly type: "bytes32";
|
|
382
|
-
readonly internalType: "bytes32";
|
|
383
|
-
}, {
|
|
384
|
-
readonly name: "user";
|
|
385
|
-
readonly type: "address";
|
|
386
|
-
readonly internalType: "address";
|
|
387
|
-
}];
|
|
388
|
-
readonly outputs: readonly [{
|
|
389
|
-
readonly name: "";
|
|
390
|
-
readonly type: "bytes32[]";
|
|
391
|
-
readonly internalType: "bytes32[]";
|
|
392
|
-
}];
|
|
393
|
-
readonly stateMutability: "view";
|
|
394
|
-
}, {
|
|
395
|
-
readonly type: "function";
|
|
396
|
-
readonly name: "initializeGameMarket";
|
|
397
|
-
readonly inputs: readonly [{
|
|
398
|
-
readonly name: "gameId";
|
|
399
|
-
readonly type: "uint256";
|
|
400
|
-
readonly internalType: "uint256";
|
|
401
|
-
}, {
|
|
402
|
-
readonly name: "levrSportId";
|
|
403
|
-
readonly type: "bytes12";
|
|
404
|
-
readonly internalType: "bytes12";
|
|
405
|
-
}, {
|
|
406
|
-
readonly name: "gameMarketInitData";
|
|
407
|
-
readonly type: "bytes";
|
|
408
|
-
readonly internalType: "bytes";
|
|
409
|
-
}];
|
|
410
|
-
readonly outputs: readonly [{
|
|
411
|
-
readonly name: "";
|
|
412
|
-
readonly type: "bytes32";
|
|
413
|
-
readonly internalType: "bytes32";
|
|
414
|
-
}];
|
|
415
|
-
readonly stateMutability: "nonpayable";
|
|
416
|
-
}, {
|
|
417
|
-
readonly type: "function";
|
|
418
|
-
readonly name: "initializeLevrMarketId";
|
|
419
|
-
readonly inputs: readonly [{
|
|
420
|
-
readonly name: "marketId";
|
|
421
|
-
readonly type: "bytes16";
|
|
422
|
-
readonly internalType: "bytes16";
|
|
423
|
-
}];
|
|
424
|
-
readonly outputs: readonly [];
|
|
425
|
-
readonly stateMutability: "nonpayable";
|
|
426
|
-
}, {
|
|
427
|
-
readonly type: "function";
|
|
428
|
-
readonly name: "levrConfigProvider";
|
|
429
|
-
readonly inputs: readonly [];
|
|
430
|
-
readonly outputs: readonly [{
|
|
431
|
-
readonly name: "";
|
|
432
|
-
readonly type: "address";
|
|
433
|
-
readonly internalType: "address";
|
|
434
|
-
}];
|
|
435
|
-
readonly stateMutability: "view";
|
|
436
|
-
}, {
|
|
437
|
-
readonly type: "function";
|
|
438
|
-
readonly name: "levrMarketId";
|
|
439
|
-
readonly inputs: readonly [];
|
|
440
|
-
readonly outputs: readonly [{
|
|
441
|
-
readonly name: "";
|
|
442
|
-
readonly type: "bytes16";
|
|
443
|
-
readonly internalType: "bytes16";
|
|
444
|
-
}];
|
|
445
|
-
readonly stateMutability: "view";
|
|
446
|
-
}, {
|
|
447
|
-
readonly type: "function";
|
|
448
|
-
readonly name: "marketMakerCollateral";
|
|
449
|
-
readonly inputs: readonly [{
|
|
450
|
-
readonly name: "gameMarketId";
|
|
451
|
-
readonly type: "bytes32";
|
|
452
|
-
readonly internalType: "bytes32";
|
|
453
|
-
}, {
|
|
454
|
-
readonly name: "side";
|
|
455
|
-
readonly type: "uint8";
|
|
456
|
-
readonly internalType: "enum Side";
|
|
457
|
-
}];
|
|
458
|
-
readonly outputs: readonly [{
|
|
459
|
-
readonly name: "collateral";
|
|
460
|
-
readonly type: "uint256";
|
|
461
|
-
readonly internalType: "uint256";
|
|
462
|
-
}];
|
|
463
|
-
readonly stateMutability: "view";
|
|
464
|
-
}, {
|
|
465
|
-
readonly type: "function";
|
|
466
|
-
readonly name: "marketName";
|
|
467
|
-
readonly inputs: readonly [];
|
|
468
|
-
readonly outputs: readonly [{
|
|
469
|
-
readonly name: "";
|
|
470
|
-
readonly type: "string";
|
|
471
|
-
readonly internalType: "string";
|
|
472
|
-
}];
|
|
473
|
-
readonly stateMutability: "view";
|
|
474
|
-
}, {
|
|
475
|
-
readonly type: "function";
|
|
476
|
-
readonly name: "mutatePositions";
|
|
477
|
-
readonly inputs: readonly [{
|
|
478
|
-
readonly name: "gameMarketId";
|
|
479
|
-
readonly type: "bytes32";
|
|
480
|
-
readonly internalType: "bytes32";
|
|
481
|
-
}, {
|
|
482
|
-
readonly name: "params";
|
|
483
|
-
readonly type: "bytes";
|
|
484
|
-
readonly internalType: "bytes";
|
|
485
|
-
}];
|
|
486
|
-
readonly outputs: readonly [];
|
|
487
|
-
readonly stateMutability: "nonpayable";
|
|
488
|
-
}, {
|
|
489
|
-
readonly type: "function";
|
|
490
|
-
readonly name: "openOrCloseMarket";
|
|
491
|
-
readonly inputs: readonly [{
|
|
492
|
-
readonly name: "gameMarketId";
|
|
493
|
-
readonly type: "bytes32";
|
|
494
|
-
readonly internalType: "bytes32";
|
|
495
|
-
}, {
|
|
496
|
-
readonly name: "open";
|
|
497
|
-
readonly type: "bool";
|
|
498
|
-
readonly internalType: "bool";
|
|
499
|
-
}];
|
|
500
|
-
readonly outputs: readonly [];
|
|
501
|
-
readonly stateMutability: "nonpayable";
|
|
502
|
-
}, {
|
|
503
|
-
readonly type: "function";
|
|
504
|
-
readonly name: "openPosition";
|
|
505
|
-
readonly inputs: readonly [{
|
|
506
|
-
readonly name: "gameMarketId";
|
|
507
|
-
readonly type: "bytes32";
|
|
508
|
-
readonly internalType: "bytes32";
|
|
509
|
-
}, {
|
|
510
|
-
readonly name: "params";
|
|
511
|
-
readonly type: "bytes";
|
|
512
|
-
readonly internalType: "bytes";
|
|
513
|
-
}];
|
|
514
|
-
readonly outputs: readonly [];
|
|
515
|
-
readonly stateMutability: "nonpayable";
|
|
516
|
-
}, {
|
|
517
|
-
readonly type: "function";
|
|
518
|
-
readonly name: "paused";
|
|
519
|
-
readonly inputs: readonly [];
|
|
520
|
-
readonly outputs: readonly [{
|
|
521
|
-
readonly name: "";
|
|
522
|
-
readonly type: "bool";
|
|
523
|
-
readonly internalType: "bool";
|
|
524
|
-
}];
|
|
525
|
-
readonly stateMutability: "view";
|
|
526
|
-
}, {
|
|
527
|
-
readonly type: "function";
|
|
528
|
-
readonly name: "redeemPosition";
|
|
529
|
-
readonly inputs: readonly [{
|
|
530
|
-
readonly name: "gameMarketId";
|
|
531
|
-
readonly type: "bytes32";
|
|
532
|
-
readonly internalType: "bytes32";
|
|
533
|
-
}, {
|
|
534
|
-
readonly name: "params";
|
|
535
|
-
readonly type: "bytes";
|
|
536
|
-
readonly internalType: "bytes";
|
|
537
|
-
}];
|
|
538
|
-
readonly outputs: readonly [];
|
|
539
|
-
readonly stateMutability: "nonpayable";
|
|
540
|
-
}, {
|
|
541
|
-
readonly type: "function";
|
|
542
|
-
readonly name: "settleMarket";
|
|
543
|
-
readonly inputs: readonly [{
|
|
544
|
-
readonly name: "gameMarketId";
|
|
545
|
-
readonly type: "bytes32";
|
|
546
|
-
readonly internalType: "bytes32";
|
|
547
|
-
}, {
|
|
548
|
-
readonly name: "params";
|
|
549
|
-
readonly type: "bytes";
|
|
550
|
-
readonly internalType: "bytes";
|
|
551
|
-
}];
|
|
552
|
-
readonly outputs: readonly [];
|
|
553
|
-
readonly stateMutability: "nonpayable";
|
|
554
|
-
}, {
|
|
555
|
-
readonly type: "function";
|
|
556
|
-
readonly name: "supportsInterface";
|
|
557
|
-
readonly inputs: readonly [{
|
|
558
|
-
readonly name: "interfaceId";
|
|
559
|
-
readonly type: "bytes4";
|
|
560
|
-
readonly internalType: "bytes4";
|
|
561
|
-
}];
|
|
562
|
-
readonly outputs: readonly [{
|
|
563
|
-
readonly name: "";
|
|
564
|
-
readonly type: "bool";
|
|
565
|
-
readonly internalType: "bool";
|
|
566
|
-
}];
|
|
567
|
-
readonly stateMutability: "view";
|
|
568
|
-
}, {
|
|
569
|
-
readonly type: "function";
|
|
570
|
-
readonly name: "updateLevrConfigProvider";
|
|
571
|
-
readonly inputs: readonly [{
|
|
572
|
-
readonly name: "newLevrConfigProvider";
|
|
573
|
-
readonly type: "address";
|
|
574
|
-
readonly internalType: "address";
|
|
575
|
-
}];
|
|
576
|
-
readonly outputs: readonly [];
|
|
577
|
-
readonly stateMutability: "nonpayable";
|
|
578
|
-
}, {
|
|
579
|
-
readonly type: "function";
|
|
580
|
-
readonly name: "userNonce";
|
|
581
|
-
readonly inputs: readonly [{
|
|
582
|
-
readonly name: "user";
|
|
583
|
-
readonly type: "address";
|
|
584
|
-
readonly internalType: "address";
|
|
585
|
-
}];
|
|
586
|
-
readonly outputs: readonly [{
|
|
809
|
+
readonly internalType: "uint16";
|
|
810
|
+
readonly name: "gameProgressAtOpen";
|
|
811
|
+
readonly type: "uint16";
|
|
812
|
+
}, {
|
|
813
|
+
readonly internalType: "uint16";
|
|
814
|
+
readonly name: "gameProgressAtClose";
|
|
815
|
+
readonly type: "uint16";
|
|
816
|
+
}];
|
|
817
|
+
readonly internalType: "struct UserPosition";
|
|
587
818
|
readonly name: "";
|
|
588
|
-
readonly type: "
|
|
589
|
-
readonly internalType: "uint256";
|
|
819
|
+
readonly type: "tuple";
|
|
590
820
|
}];
|
|
591
821
|
readonly stateMutability: "view";
|
|
822
|
+
readonly type: "function";
|
|
592
823
|
}, {
|
|
593
|
-
readonly type: "event";
|
|
594
|
-
readonly name: "GameMarketInitialized";
|
|
595
|
-
readonly inputs: readonly [{
|
|
596
|
-
readonly name: "gameId";
|
|
597
|
-
readonly type: "uint256";
|
|
598
|
-
readonly indexed: true;
|
|
599
|
-
readonly internalType: "uint256";
|
|
600
|
-
}, {
|
|
601
|
-
readonly name: "gameMarketId";
|
|
602
|
-
readonly type: "bytes32";
|
|
603
|
-
readonly indexed: true;
|
|
604
|
-
readonly internalType: "bytes32";
|
|
605
|
-
}, {
|
|
606
|
-
readonly name: "levrSportId";
|
|
607
|
-
readonly type: "bytes12";
|
|
608
|
-
readonly indexed: true;
|
|
609
|
-
readonly internalType: "bytes12";
|
|
610
|
-
}];
|
|
611
|
-
readonly anonymous: false;
|
|
612
|
-
}, {
|
|
613
|
-
readonly type: "event";
|
|
614
|
-
readonly name: "LevrConfigProviderUpdated";
|
|
615
|
-
readonly inputs: readonly [{
|
|
616
|
-
readonly name: "prevProvider";
|
|
617
|
-
readonly type: "address";
|
|
618
|
-
readonly indexed: true;
|
|
619
|
-
readonly internalType: "address";
|
|
620
|
-
}, {
|
|
621
|
-
readonly name: "newProvider";
|
|
622
|
-
readonly type: "address";
|
|
623
|
-
readonly indexed: true;
|
|
624
|
-
readonly internalType: "address";
|
|
625
|
-
}];
|
|
626
|
-
readonly anonymous: false;
|
|
627
|
-
}, {
|
|
628
|
-
readonly type: "event";
|
|
629
|
-
readonly name: "LevrMarketContractInitialized";
|
|
630
|
-
readonly inputs: readonly [{
|
|
631
|
-
readonly name: "levrMarketId";
|
|
632
|
-
readonly type: "bytes16";
|
|
633
|
-
readonly indexed: true;
|
|
634
|
-
readonly internalType: "bytes16";
|
|
635
|
-
}];
|
|
636
|
-
readonly anonymous: false;
|
|
637
|
-
}, {
|
|
638
|
-
readonly type: "event";
|
|
639
|
-
readonly name: "MarketPhaseUpdated";
|
|
640
824
|
readonly inputs: readonly [{
|
|
641
|
-
readonly name: "gameMarketId";
|
|
642
|
-
readonly type: "bytes32";
|
|
643
|
-
readonly indexed: true;
|
|
644
825
|
readonly internalType: "bytes32";
|
|
645
|
-
}, {
|
|
646
|
-
readonly name: "prevPhase";
|
|
647
|
-
readonly type: "uint8";
|
|
648
|
-
readonly indexed: false;
|
|
649
|
-
readonly internalType: "enum MarketStatus";
|
|
650
|
-
}, {
|
|
651
|
-
readonly name: "newPhase";
|
|
652
|
-
readonly type: "uint8";
|
|
653
|
-
readonly indexed: false;
|
|
654
|
-
readonly internalType: "enum MarketStatus";
|
|
655
|
-
}, {
|
|
656
|
-
readonly name: "updatedAt";
|
|
657
|
-
readonly type: "uint48";
|
|
658
|
-
readonly indexed: false;
|
|
659
|
-
readonly internalType: "uint48";
|
|
660
|
-
}];
|
|
661
|
-
readonly anonymous: false;
|
|
662
|
-
}, {
|
|
663
|
-
readonly type: "event";
|
|
664
|
-
readonly name: "MarketSettled";
|
|
665
|
-
readonly inputs: readonly [{
|
|
666
826
|
readonly name: "gameMarketId";
|
|
667
827
|
readonly type: "bytes32";
|
|
668
|
-
readonly indexed: true;
|
|
669
|
-
readonly internalType: "bytes32";
|
|
670
|
-
}, {
|
|
671
|
-
readonly name: "gameId";
|
|
672
|
-
readonly type: "uint256";
|
|
673
|
-
readonly indexed: true;
|
|
674
|
-
readonly internalType: "uint256";
|
|
675
|
-
}, {
|
|
676
|
-
readonly name: "winner";
|
|
677
|
-
readonly type: "uint8";
|
|
678
|
-
readonly indexed: true;
|
|
679
|
-
readonly internalType: "enum Side";
|
|
680
828
|
}, {
|
|
681
|
-
readonly name: "settledAs";
|
|
682
|
-
readonly type: "uint8";
|
|
683
|
-
readonly indexed: false;
|
|
684
|
-
readonly internalType: "enum MarketStatus";
|
|
685
|
-
}, {
|
|
686
|
-
readonly name: "totalCapturedCollateral";
|
|
687
|
-
readonly type: "uint256";
|
|
688
|
-
readonly indexed: false;
|
|
689
829
|
readonly internalType: "uint256";
|
|
690
|
-
|
|
691
|
-
readonly name: "totalBorrowFee";
|
|
830
|
+
readonly name: "nonce";
|
|
692
831
|
readonly type: "uint256";
|
|
693
|
-
readonly indexed: false;
|
|
694
|
-
readonly internalType: "uint256";
|
|
695
832
|
}, {
|
|
696
|
-
readonly name: "totalProfitsAllocated";
|
|
697
|
-
readonly type: "uint256";
|
|
698
|
-
readonly indexed: false;
|
|
699
|
-
readonly internalType: "uint256";
|
|
700
|
-
}];
|
|
701
|
-
readonly anonymous: false;
|
|
702
|
-
}, {
|
|
703
|
-
readonly type: "event";
|
|
704
|
-
readonly name: "Paused";
|
|
705
|
-
readonly inputs: readonly [{
|
|
706
|
-
readonly name: "account";
|
|
707
|
-
readonly type: "address";
|
|
708
|
-
readonly indexed: false;
|
|
709
833
|
readonly internalType: "address";
|
|
834
|
+
readonly name: "user";
|
|
835
|
+
readonly type: "address";
|
|
710
836
|
}];
|
|
711
|
-
readonly
|
|
837
|
+
readonly name: "getUserPositionId";
|
|
838
|
+
readonly outputs: readonly [{
|
|
839
|
+
readonly internalType: "bytes32";
|
|
840
|
+
readonly name: "";
|
|
841
|
+
readonly type: "bytes32";
|
|
842
|
+
}];
|
|
843
|
+
readonly stateMutability: "pure";
|
|
844
|
+
readonly type: "function";
|
|
712
845
|
}, {
|
|
713
|
-
readonly type: "event";
|
|
714
|
-
readonly name: "PositionOpened";
|
|
715
846
|
readonly inputs: readonly [{
|
|
716
|
-
readonly name: "gameMarketId";
|
|
717
|
-
readonly type: "bytes32";
|
|
718
|
-
readonly indexed: true;
|
|
719
847
|
readonly internalType: "bytes32";
|
|
720
|
-
|
|
721
|
-
readonly name: "positionId";
|
|
848
|
+
readonly name: "gameMarketId";
|
|
722
849
|
readonly type: "bytes32";
|
|
723
|
-
readonly indexed: true;
|
|
724
|
-
readonly internalType: "bytes32";
|
|
725
850
|
}, {
|
|
726
|
-
readonly name: "receiver";
|
|
727
|
-
readonly type: "address";
|
|
728
|
-
readonly indexed: true;
|
|
729
851
|
readonly internalType: "address";
|
|
730
|
-
|
|
731
|
-
readonly name: "asset";
|
|
852
|
+
readonly name: "user";
|
|
732
853
|
readonly type: "address";
|
|
733
|
-
readonly indexed: false;
|
|
734
|
-
readonly internalType: "address";
|
|
735
|
-
}, {
|
|
736
|
-
readonly name: "tokenAmount";
|
|
737
|
-
readonly type: "uint256";
|
|
738
|
-
readonly indexed: false;
|
|
739
|
-
readonly internalType: "uint256";
|
|
740
|
-
}, {
|
|
741
|
-
readonly name: "assetAmount";
|
|
742
|
-
readonly type: "uint256";
|
|
743
|
-
readonly indexed: false;
|
|
744
|
-
readonly internalType: "uint256";
|
|
745
|
-
}, {
|
|
746
|
-
readonly name: "positionSize";
|
|
747
|
-
readonly type: "uint256";
|
|
748
|
-
readonly indexed: false;
|
|
749
|
-
readonly internalType: "uint256";
|
|
750
|
-
}, {
|
|
751
|
-
readonly name: "boundedLoss";
|
|
752
|
-
readonly type: "uint256";
|
|
753
|
-
readonly indexed: false;
|
|
754
|
-
readonly internalType: "uint256";
|
|
755
|
-
}, {
|
|
756
|
-
readonly name: "eLeverage";
|
|
757
|
-
readonly type: "uint256";
|
|
758
|
-
readonly indexed: false;
|
|
759
|
-
readonly internalType: "uint256";
|
|
760
|
-
}, {
|
|
761
|
-
readonly name: "price";
|
|
762
|
-
readonly type: "uint256";
|
|
763
|
-
readonly indexed: false;
|
|
764
|
-
readonly internalType: "uint256";
|
|
765
|
-
}, {
|
|
766
|
-
readonly name: "positionFee";
|
|
767
|
-
readonly type: "uint256";
|
|
768
|
-
readonly indexed: false;
|
|
769
|
-
readonly internalType: "uint256";
|
|
770
|
-
}, {
|
|
771
|
-
readonly name: "imbalanceFee";
|
|
772
|
-
readonly type: "uint256";
|
|
773
|
-
readonly indexed: false;
|
|
774
|
-
readonly internalType: "uint256";
|
|
775
|
-
}, {
|
|
776
|
-
readonly name: "gameId";
|
|
777
|
-
readonly type: "uint256";
|
|
778
|
-
readonly indexed: false;
|
|
779
|
-
readonly internalType: "uint256";
|
|
780
|
-
}, {
|
|
781
|
-
readonly name: "side";
|
|
782
|
-
readonly type: "uint8";
|
|
783
|
-
readonly indexed: false;
|
|
784
|
-
readonly internalType: "enum Side";
|
|
785
854
|
}];
|
|
786
|
-
readonly
|
|
855
|
+
readonly name: "getUserPositionIdsForGameMarket";
|
|
856
|
+
readonly outputs: readonly [{
|
|
857
|
+
readonly internalType: "bytes32[]";
|
|
858
|
+
readonly name: "";
|
|
859
|
+
readonly type: "bytes32[]";
|
|
860
|
+
}];
|
|
861
|
+
readonly stateMutability: "view";
|
|
862
|
+
readonly type: "function";
|
|
787
863
|
}, {
|
|
788
|
-
readonly type: "event";
|
|
789
|
-
readonly name: "PositionRedeemed";
|
|
790
864
|
readonly inputs: readonly [{
|
|
791
|
-
readonly name: "owner";
|
|
792
|
-
readonly type: "address";
|
|
793
|
-
readonly indexed: true;
|
|
794
|
-
readonly internalType: "address";
|
|
795
|
-
}, {
|
|
796
|
-
readonly name: "receiver";
|
|
797
|
-
readonly type: "address";
|
|
798
|
-
readonly indexed: true;
|
|
799
|
-
readonly internalType: "address";
|
|
800
|
-
}, {
|
|
801
|
-
readonly name: "positionId";
|
|
802
|
-
readonly type: "bytes32";
|
|
803
|
-
readonly indexed: true;
|
|
804
|
-
readonly internalType: "bytes32";
|
|
805
|
-
}, {
|
|
806
|
-
readonly name: "gameMarketId";
|
|
807
|
-
readonly type: "bytes32";
|
|
808
|
-
readonly indexed: false;
|
|
809
|
-
readonly internalType: "bytes32";
|
|
810
|
-
}, {
|
|
811
|
-
readonly name: "side";
|
|
812
|
-
readonly type: "uint8";
|
|
813
|
-
readonly indexed: false;
|
|
814
|
-
readonly internalType: "enum Side";
|
|
815
|
-
}, {
|
|
816
|
-
readonly name: "marketWinner";
|
|
817
|
-
readonly type: "uint8";
|
|
818
|
-
readonly indexed: false;
|
|
819
|
-
readonly internalType: "enum Side";
|
|
820
|
-
}, {
|
|
821
|
-
readonly name: "profit";
|
|
822
|
-
readonly type: "uint256";
|
|
823
|
-
readonly indexed: false;
|
|
824
865
|
readonly internalType: "uint256";
|
|
825
|
-
|
|
826
|
-
readonly name: "loss";
|
|
866
|
+
readonly name: "gameId";
|
|
827
867
|
readonly type: "uint256";
|
|
828
|
-
readonly indexed: false;
|
|
829
|
-
readonly internalType: "uint256";
|
|
830
868
|
}, {
|
|
831
|
-
readonly
|
|
832
|
-
readonly
|
|
833
|
-
readonly
|
|
834
|
-
readonly internalType: "uint256";
|
|
869
|
+
readonly internalType: "bytes12";
|
|
870
|
+
readonly name: "levrSportId";
|
|
871
|
+
readonly type: "bytes12";
|
|
835
872
|
}, {
|
|
836
|
-
readonly
|
|
837
|
-
readonly
|
|
838
|
-
readonly
|
|
839
|
-
readonly internalType: "uint256";
|
|
873
|
+
readonly internalType: "bytes";
|
|
874
|
+
readonly name: "gameMarketInitData";
|
|
875
|
+
readonly type: "bytes";
|
|
840
876
|
}];
|
|
841
|
-
readonly
|
|
877
|
+
readonly name: "initializeGameMarket";
|
|
878
|
+
readonly outputs: readonly [{
|
|
879
|
+
readonly internalType: "bytes32";
|
|
880
|
+
readonly name: "";
|
|
881
|
+
readonly type: "bytes32";
|
|
882
|
+
}];
|
|
883
|
+
readonly stateMutability: "nonpayable";
|
|
884
|
+
readonly type: "function";
|
|
842
885
|
}, {
|
|
843
|
-
readonly type: "event";
|
|
844
|
-
readonly name: "Unpaused";
|
|
845
886
|
readonly inputs: readonly [{
|
|
846
|
-
readonly
|
|
847
|
-
readonly
|
|
848
|
-
readonly
|
|
849
|
-
readonly internalType: "address";
|
|
887
|
+
readonly internalType: "bytes16";
|
|
888
|
+
readonly name: "marketId";
|
|
889
|
+
readonly type: "bytes16";
|
|
850
890
|
}];
|
|
851
|
-
readonly
|
|
852
|
-
|
|
853
|
-
readonly
|
|
854
|
-
readonly
|
|
855
|
-
readonly inputs: readonly [];
|
|
856
|
-
}, {
|
|
857
|
-
readonly type: "error";
|
|
858
|
-
readonly name: "ExpectedPause";
|
|
859
|
-
readonly inputs: readonly [];
|
|
891
|
+
readonly name: "initializeLevrMarketId";
|
|
892
|
+
readonly outputs: readonly [];
|
|
893
|
+
readonly stateMutability: "nonpayable";
|
|
894
|
+
readonly type: "function";
|
|
860
895
|
}, {
|
|
861
|
-
readonly type: "error";
|
|
862
|
-
readonly name: "LBM_CANNOT_LIQUIDATE_MARKET_MAKER";
|
|
863
896
|
readonly inputs: readonly [];
|
|
897
|
+
readonly name: "levrConfigProvider";
|
|
898
|
+
readonly outputs: readonly [{
|
|
899
|
+
readonly internalType: "address";
|
|
900
|
+
readonly name: "";
|
|
901
|
+
readonly type: "address";
|
|
902
|
+
}];
|
|
903
|
+
readonly stateMutability: "view";
|
|
904
|
+
readonly type: "function";
|
|
864
905
|
}, {
|
|
865
|
-
readonly type: "error";
|
|
866
|
-
readonly name: "LBM_CANNOT_OVERRIDE_IN_PRE_GAME";
|
|
867
906
|
readonly inputs: readonly [];
|
|
907
|
+
readonly name: "levrMarketId";
|
|
908
|
+
readonly outputs: readonly [{
|
|
909
|
+
readonly internalType: "bytes16";
|
|
910
|
+
readonly name: "";
|
|
911
|
+
readonly type: "bytes16";
|
|
912
|
+
}];
|
|
913
|
+
readonly stateMutability: "view";
|
|
914
|
+
readonly type: "function";
|
|
868
915
|
}, {
|
|
869
|
-
readonly type: "error";
|
|
870
|
-
readonly name: "LBM_DUPLICATE_MARKET";
|
|
871
916
|
readonly inputs: readonly [];
|
|
917
|
+
readonly name: "marketName";
|
|
918
|
+
readonly outputs: readonly [{
|
|
919
|
+
readonly internalType: "string";
|
|
920
|
+
readonly name: "";
|
|
921
|
+
readonly type: "string";
|
|
922
|
+
}];
|
|
923
|
+
readonly stateMutability: "view";
|
|
924
|
+
readonly type: "function";
|
|
872
925
|
}, {
|
|
873
|
-
readonly type: "error";
|
|
874
|
-
readonly name: "LBM_INACTIVE_MARKET_FOR_GAME";
|
|
875
926
|
readonly inputs: readonly [{
|
|
927
|
+
readonly internalType: "bytes32";
|
|
876
928
|
readonly name: "gameMarketId";
|
|
877
929
|
readonly type: "bytes32";
|
|
878
|
-
|
|
930
|
+
}, {
|
|
931
|
+
readonly internalType: "bytes";
|
|
932
|
+
readonly name: "params";
|
|
933
|
+
readonly type: "bytes";
|
|
879
934
|
}];
|
|
935
|
+
readonly name: "mutatePositions";
|
|
936
|
+
readonly outputs: readonly [];
|
|
937
|
+
readonly stateMutability: "nonpayable";
|
|
938
|
+
readonly type: "function";
|
|
880
939
|
}, {
|
|
881
|
-
readonly type: "error";
|
|
882
|
-
readonly name: "LBM_INEXISTENT_GAME_MARKET";
|
|
883
940
|
readonly inputs: readonly [{
|
|
941
|
+
readonly internalType: "bytes32";
|
|
884
942
|
readonly name: "gameMarketId";
|
|
885
943
|
readonly type: "bytes32";
|
|
886
|
-
readonly internalType: "bytes32";
|
|
887
|
-
}];
|
|
888
|
-
}, {
|
|
889
|
-
readonly type: "error";
|
|
890
|
-
readonly name: "LBM_INVALID_BUYERS_DATA";
|
|
891
|
-
readonly inputs: readonly [];
|
|
892
|
-
}, {
|
|
893
|
-
readonly type: "error";
|
|
894
|
-
readonly name: "LBM_INVALID_GAME_STATUS";
|
|
895
|
-
readonly inputs: readonly [{
|
|
896
|
-
readonly name: "gameId";
|
|
897
|
-
readonly type: "uint256";
|
|
898
|
-
readonly internalType: "uint256";
|
|
899
|
-
}, {
|
|
900
|
-
readonly name: "currentStatus";
|
|
901
|
-
readonly type: "uint8";
|
|
902
|
-
readonly internalType: "enum GameStatus";
|
|
903
944
|
}, {
|
|
904
|
-
readonly
|
|
905
|
-
readonly
|
|
906
|
-
readonly
|
|
945
|
+
readonly internalType: "bool";
|
|
946
|
+
readonly name: "open";
|
|
947
|
+
readonly type: "bool";
|
|
907
948
|
}];
|
|
949
|
+
readonly name: "openOrCloseMarket";
|
|
950
|
+
readonly outputs: readonly [];
|
|
951
|
+
readonly stateMutability: "nonpayable";
|
|
952
|
+
readonly type: "function";
|
|
908
953
|
}, {
|
|
909
|
-
readonly type: "error";
|
|
910
|
-
readonly name: "LBM_INVALID_LEVR_MARKET_ID";
|
|
911
|
-
readonly inputs: readonly [];
|
|
912
|
-
}, {
|
|
913
|
-
readonly type: "error";
|
|
914
|
-
readonly name: "LBM_INVALID_MARKET_PHASE";
|
|
915
954
|
readonly inputs: readonly [{
|
|
955
|
+
readonly internalType: "bytes32";
|
|
916
956
|
readonly name: "gameMarketId";
|
|
917
957
|
readonly type: "bytes32";
|
|
918
|
-
readonly internalType: "bytes32";
|
|
919
|
-
}, {
|
|
920
|
-
readonly name: "currentPhase";
|
|
921
|
-
readonly type: "uint8";
|
|
922
|
-
readonly internalType: "enum MarketStatus";
|
|
923
958
|
}, {
|
|
924
|
-
readonly
|
|
925
|
-
readonly
|
|
926
|
-
readonly
|
|
959
|
+
readonly internalType: "bytes";
|
|
960
|
+
readonly name: "params";
|
|
961
|
+
readonly type: "bytes";
|
|
927
962
|
}];
|
|
963
|
+
readonly name: "openPosition";
|
|
964
|
+
readonly outputs: readonly [];
|
|
965
|
+
readonly stateMutability: "nonpayable";
|
|
966
|
+
readonly type: "function";
|
|
928
967
|
}, {
|
|
929
|
-
readonly type: "error";
|
|
930
|
-
readonly name: "LBM_INVALID_RISK_DATA";
|
|
931
968
|
readonly inputs: readonly [];
|
|
969
|
+
readonly name: "pauseUnpause";
|
|
970
|
+
readonly outputs: readonly [];
|
|
971
|
+
readonly stateMutability: "nonpayable";
|
|
972
|
+
readonly type: "function";
|
|
932
973
|
}, {
|
|
933
|
-
readonly type: "error";
|
|
934
|
-
readonly name: "LBM_INVALID_SELLERS_DATA";
|
|
935
974
|
readonly inputs: readonly [];
|
|
936
|
-
|
|
937
|
-
readonly
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
readonly
|
|
941
|
-
readonly type: "uint8";
|
|
942
|
-
readonly internalType: "enum Side";
|
|
975
|
+
readonly name: "paused";
|
|
976
|
+
readonly outputs: readonly [{
|
|
977
|
+
readonly internalType: "bool";
|
|
978
|
+
readonly name: "";
|
|
979
|
+
readonly type: "bool";
|
|
943
980
|
}];
|
|
981
|
+
readonly stateMutability: "view";
|
|
982
|
+
readonly type: "function";
|
|
944
983
|
}, {
|
|
945
|
-
readonly type: "error";
|
|
946
|
-
readonly name: "LBM_INVALID_SIDE_GROUP";
|
|
947
|
-
readonly inputs: readonly [];
|
|
948
|
-
}, {
|
|
949
|
-
readonly type: "error";
|
|
950
|
-
readonly name: "LBM_INVALID_TARGET_SCORE";
|
|
951
|
-
readonly inputs: readonly [];
|
|
952
|
-
}, {
|
|
953
|
-
readonly type: "error";
|
|
954
|
-
readonly name: "LBM_INVALID_TRADE_DATA";
|
|
955
|
-
readonly inputs: readonly [];
|
|
956
|
-
}, {
|
|
957
|
-
readonly type: "error";
|
|
958
|
-
readonly name: "LBM_MARKET_CLOSED";
|
|
959
984
|
readonly inputs: readonly [{
|
|
985
|
+
readonly internalType: "bytes32";
|
|
960
986
|
readonly name: "gameMarketId";
|
|
961
987
|
readonly type: "bytes32";
|
|
962
|
-
|
|
988
|
+
}, {
|
|
989
|
+
readonly internalType: "bytes";
|
|
990
|
+
readonly name: "params";
|
|
991
|
+
readonly type: "bytes";
|
|
963
992
|
}];
|
|
993
|
+
readonly name: "redeemPosition";
|
|
994
|
+
readonly outputs: readonly [];
|
|
995
|
+
readonly stateMutability: "nonpayable";
|
|
996
|
+
readonly type: "function";
|
|
964
997
|
}, {
|
|
965
|
-
readonly type: "error";
|
|
966
|
-
readonly name: "LBM_MARKET_ID_ALREADY_INITIALIZED";
|
|
967
|
-
readonly inputs: readonly [];
|
|
968
|
-
}, {
|
|
969
|
-
readonly type: "error";
|
|
970
|
-
readonly name: "LBM_MARKET_SETTLED";
|
|
971
998
|
readonly inputs: readonly [{
|
|
999
|
+
readonly internalType: "bytes32";
|
|
972
1000
|
readonly name: "gameMarketId";
|
|
973
1001
|
readonly type: "bytes32";
|
|
974
|
-
|
|
1002
|
+
}, {
|
|
1003
|
+
readonly internalType: "bytes";
|
|
1004
|
+
readonly name: "params";
|
|
1005
|
+
readonly type: "bytes";
|
|
975
1006
|
}];
|
|
1007
|
+
readonly name: "settleMarket";
|
|
1008
|
+
readonly outputs: readonly [];
|
|
1009
|
+
readonly stateMutability: "nonpayable";
|
|
1010
|
+
readonly type: "function";
|
|
976
1011
|
}, {
|
|
977
|
-
readonly
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
readonly name: "
|
|
983
|
-
readonly
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
readonly type: "
|
|
990
|
-
readonly name: "LBM_UNAUTHORIZED_MUTATION";
|
|
991
|
-
readonly inputs: readonly [];
|
|
992
|
-
}, {
|
|
993
|
-
readonly type: "error";
|
|
994
|
-
readonly name: "LB_CONFIG_INVALID_INTERFACE";
|
|
995
|
-
readonly inputs: readonly [];
|
|
996
|
-
}, {
|
|
997
|
-
readonly type: "error";
|
|
998
|
-
readonly name: "LB_CONFIG_PROVIDER_NOT_CONTRACT";
|
|
999
|
-
readonly inputs: readonly [];
|
|
1012
|
+
readonly inputs: readonly [{
|
|
1013
|
+
readonly internalType: "bytes4";
|
|
1014
|
+
readonly name: "interfaceId";
|
|
1015
|
+
readonly type: "bytes4";
|
|
1016
|
+
}];
|
|
1017
|
+
readonly name: "supportsInterface";
|
|
1018
|
+
readonly outputs: readonly [{
|
|
1019
|
+
readonly internalType: "bool";
|
|
1020
|
+
readonly name: "";
|
|
1021
|
+
readonly type: "bool";
|
|
1022
|
+
}];
|
|
1023
|
+
readonly stateMutability: "view";
|
|
1024
|
+
readonly type: "function";
|
|
1000
1025
|
}, {
|
|
1001
|
-
readonly
|
|
1002
|
-
|
|
1003
|
-
|
|
1026
|
+
readonly inputs: readonly [{
|
|
1027
|
+
readonly internalType: "address";
|
|
1028
|
+
readonly name: "newLevrConfigProvider";
|
|
1029
|
+
readonly type: "address";
|
|
1030
|
+
}];
|
|
1031
|
+
readonly name: "updateLevrConfigProvider";
|
|
1032
|
+
readonly outputs: readonly [];
|
|
1033
|
+
readonly stateMutability: "nonpayable";
|
|
1034
|
+
readonly type: "function";
|
|
1004
1035
|
}, {
|
|
1005
|
-
readonly
|
|
1006
|
-
|
|
1007
|
-
|
|
1036
|
+
readonly inputs: readonly [{
|
|
1037
|
+
readonly internalType: "address";
|
|
1038
|
+
readonly name: "user";
|
|
1039
|
+
readonly type: "address";
|
|
1040
|
+
}];
|
|
1041
|
+
readonly name: "userNonce";
|
|
1042
|
+
readonly outputs: readonly [{
|
|
1043
|
+
readonly internalType: "uint256";
|
|
1044
|
+
readonly name: "";
|
|
1045
|
+
readonly type: "uint256";
|
|
1046
|
+
}];
|
|
1047
|
+
readonly stateMutability: "view";
|
|
1048
|
+
readonly type: "function";
|
|
1008
1049
|
}];
|
|
1009
1050
|
export default _default;
|