@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
|
@@ -2,774 +2,426 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = [
|
|
4
4
|
{
|
|
5
|
+
inputs: [{ internalType: "address", name: "_levrConfigProvider", type: "address" }],
|
|
6
|
+
stateMutability: "nonpayable",
|
|
5
7
|
type: "constructor",
|
|
8
|
+
},
|
|
9
|
+
{ inputs: [], name: "LB_CONFIG_INVALID_INTERFACE", type: "error" },
|
|
10
|
+
{ inputs: [], name: "LB_CONFIG_PROVIDER_NOT_CONTRACT", type: "error" },
|
|
11
|
+
{ inputs: [], name: "LB_NOT_LEVR_ADMIN", type: "error" },
|
|
12
|
+
{ inputs: [], name: "LMF_CANNOT_SETTLE_MARKET", type: "error" },
|
|
13
|
+
{
|
|
6
14
|
inputs: [
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
type: "address",
|
|
10
|
-
internalType: "address",
|
|
11
|
-
},
|
|
15
|
+
{ internalType: "uint256", name: "gameId", type: "uint256" },
|
|
16
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
12
17
|
],
|
|
13
|
-
|
|
18
|
+
name: "LMF_FEED_ALREADY_INITIALIZED",
|
|
19
|
+
type: "error",
|
|
20
|
+
},
|
|
21
|
+
{ inputs: [], name: "LMF_GAME_ENDED_OR_CANCELED", type: "error" },
|
|
22
|
+
{ inputs: [], name: "LMF_GAME_NOT_ENDED", type: "error" },
|
|
23
|
+
{ inputs: [], name: "LMF_GAME_NOT_LIVE", type: "error" },
|
|
24
|
+
{ inputs: [], name: "LMF_INVALID_ADDRESS", type: "error" },
|
|
25
|
+
{
|
|
26
|
+
inputs: [
|
|
27
|
+
{ internalType: "enum GameStatus", name: "from", type: "uint8" },
|
|
28
|
+
{ internalType: "enum GameStatus", name: "to", type: "uint8" },
|
|
29
|
+
],
|
|
30
|
+
name: "LMF_INVALID_GAME_PHASE_SWITCH",
|
|
31
|
+
type: "error",
|
|
32
|
+
},
|
|
33
|
+
{ inputs: [], name: "LMF_INVALID_LEVR_GAME_ID", type: "error" },
|
|
34
|
+
{ inputs: [], name: "LMF_INVALID_N_FACTOR", type: "error" },
|
|
35
|
+
{ inputs: [], name: "LMF_INVALID_ODDS", type: "error" },
|
|
36
|
+
{ inputs: [], name: "LMF_INVALID_ODDS_GROUP", type: "error" },
|
|
37
|
+
{ inputs: [], name: "LMF_INVALID_ODDS_LENGTH", type: "error" },
|
|
38
|
+
{ inputs: [], name: "LMF_INVALID_SIDE", type: "error" },
|
|
39
|
+
{ inputs: [], name: "LMF_MARKET_ALREADY_SETTLED", type: "error" },
|
|
40
|
+
{ inputs: [], name: "LMF_NOT_FEED_PROVIDER", type: "error" },
|
|
41
|
+
{ inputs: [], name: "LMF_NOT_GAME_ADMIN", type: "error" },
|
|
42
|
+
{ inputs: [], name: "LMF_NOT_MARKET_CONTRACT", type: "error" },
|
|
43
|
+
{ inputs: [], name: "LMF_NOT_SETTLER", type: "error" },
|
|
44
|
+
{
|
|
45
|
+
inputs: [{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" }],
|
|
46
|
+
name: "LMF_PRICE_FEED_NOT_INITIALIZED",
|
|
47
|
+
type: "error",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
|
|
51
|
+
name: "LMF_SCORE_FEED_NOT_INITIALIZED",
|
|
52
|
+
type: "error",
|
|
53
|
+
},
|
|
54
|
+
{ inputs: [], name: "LM_ZERO_N_FACTOR", type: "error" },
|
|
55
|
+
{ inputs: [], name: "LM_ZERO_ODDS", type: "error" },
|
|
56
|
+
{
|
|
57
|
+
anonymous: false,
|
|
58
|
+
inputs: [
|
|
59
|
+
{ indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
|
|
60
|
+
{ indexed: true, internalType: "uint16", name: "levrSportsId", type: "uint16" },
|
|
61
|
+
{ indexed: false, internalType: "uint48", name: "registeredAt", type: "uint48" },
|
|
62
|
+
],
|
|
63
|
+
name: "GameFeedInitialized",
|
|
64
|
+
type: "event",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
anonymous: false,
|
|
68
|
+
inputs: [
|
|
69
|
+
{ indexed: true, internalType: "address", name: "prevProvider", type: "address" },
|
|
70
|
+
{ indexed: true, internalType: "address", name: "newProvider", type: "address" },
|
|
71
|
+
],
|
|
72
|
+
name: "LevrConfigProviderUpdated",
|
|
73
|
+
type: "event",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
anonymous: false,
|
|
77
|
+
inputs: [
|
|
78
|
+
{ indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
|
|
79
|
+
{ indexed: true, internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
80
|
+
{ indexed: true, internalType: "bytes12", name: "levrSportsId", type: "bytes12" },
|
|
81
|
+
{ indexed: false, internalType: "uint48", name: "initializedAt", type: "uint48" },
|
|
82
|
+
{ indexed: false, internalType: "int256", name: "oddA", type: "int256" },
|
|
83
|
+
{ indexed: false, internalType: "int256", name: "oddB", type: "int256" },
|
|
84
|
+
{ indexed: false, internalType: "int256", name: "oddC", type: "int256" },
|
|
85
|
+
{ indexed: false, internalType: "uint256", name: "priceA", type: "uint256" },
|
|
86
|
+
{ indexed: false, internalType: "uint256", name: "priceB", type: "uint256" },
|
|
87
|
+
{ indexed: false, internalType: "uint256", name: "priceC", type: "uint256" },
|
|
88
|
+
],
|
|
89
|
+
name: "MarketPricingInitialized",
|
|
90
|
+
type: "event",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
anonymous: false,
|
|
94
|
+
inputs: [
|
|
95
|
+
{ indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
|
|
96
|
+
{ indexed: true, internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
97
|
+
{ indexed: true, internalType: "bytes12", name: "levrSportsId", type: "bytes12" },
|
|
98
|
+
{ indexed: false, internalType: "enum GameStatus", name: "gameStatus", type: "uint8" },
|
|
99
|
+
{ indexed: false, internalType: "uint48", name: "updatedAt", type: "uint48" },
|
|
100
|
+
{ indexed: false, internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
101
|
+
{ indexed: false, internalType: "int256", name: "oddA", type: "int256" },
|
|
102
|
+
{ indexed: false, internalType: "int256", name: "oddB", type: "int256" },
|
|
103
|
+
{ indexed: false, internalType: "int256", name: "oddC", type: "int256" },
|
|
104
|
+
{ indexed: false, internalType: "uint256", name: "priceA", type: "uint256" },
|
|
105
|
+
{ indexed: false, internalType: "uint256", name: "priceB", type: "uint256" },
|
|
106
|
+
{ indexed: false, internalType: "uint256", name: "priceC", type: "uint256" },
|
|
107
|
+
],
|
|
108
|
+
name: "MarketPricingUpdated",
|
|
109
|
+
type: "event",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
anonymous: false,
|
|
113
|
+
inputs: [
|
|
114
|
+
{ indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
|
|
115
|
+
{ indexed: true, internalType: "bytes12", name: "levrSportId", type: "bytes12" },
|
|
116
|
+
{ indexed: false, internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
117
|
+
{ indexed: false, internalType: "uint48", name: "scoreH", type: "uint48" },
|
|
118
|
+
{ indexed: false, internalType: "uint48", name: "scoreV", type: "uint48" },
|
|
119
|
+
],
|
|
120
|
+
name: "ScoreDataUpdated",
|
|
121
|
+
type: "event",
|
|
14
122
|
},
|
|
15
123
|
{
|
|
16
|
-
type: "function",
|
|
17
|
-
name: "PRICING_MARKER_CHUNK_SIZE",
|
|
18
124
|
inputs: [],
|
|
19
|
-
|
|
125
|
+
name: "PRICING_MARKER_CHUNK_SIZE",
|
|
126
|
+
outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
|
|
20
127
|
stateMutability: "view",
|
|
128
|
+
type: "function",
|
|
21
129
|
},
|
|
22
130
|
{
|
|
23
|
-
type: "function",
|
|
24
|
-
name: "findLiquidationSliceStart",
|
|
25
131
|
inputs: [
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
type: "bytes32",
|
|
29
|
-
internalType: "bytes32",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: "targetTimestamp",
|
|
33
|
-
type: "uint48",
|
|
34
|
-
internalType: "uint48",
|
|
35
|
-
},
|
|
132
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
133
|
+
{ internalType: "uint48", name: "targetTimestamp", type: "uint48" },
|
|
36
134
|
],
|
|
37
|
-
|
|
135
|
+
name: "findLiquidationSliceStart",
|
|
136
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
38
137
|
stateMutability: "view",
|
|
138
|
+
type: "function",
|
|
39
139
|
},
|
|
40
140
|
{
|
|
41
|
-
type: "
|
|
141
|
+
inputs: [{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" }],
|
|
42
142
|
name: "firstInGamePriceIndex",
|
|
43
|
-
|
|
44
|
-
outputs: [{ name: "priceIndex", type: "uint256", internalType: "uint256" }],
|
|
143
|
+
outputs: [{ internalType: "uint256", name: "priceIndex", type: "uint256" }],
|
|
45
144
|
stateMutability: "view",
|
|
145
|
+
type: "function",
|
|
46
146
|
},
|
|
47
147
|
{
|
|
48
|
-
type: "function",
|
|
49
|
-
name: "getLatestOdd",
|
|
50
148
|
inputs: [
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
type: "bytes32",
|
|
54
|
-
internalType: "bytes32",
|
|
55
|
-
},
|
|
56
|
-
{ name: "side", type: "uint8", internalType: "enum Side" },
|
|
149
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
150
|
+
{ internalType: "enum Side", name: "side", type: "uint8" },
|
|
57
151
|
],
|
|
58
|
-
|
|
152
|
+
name: "getLatestOdd",
|
|
153
|
+
outputs: [{ internalType: "int256", name: "", type: "int256" }],
|
|
59
154
|
stateMutability: "view",
|
|
155
|
+
type: "function",
|
|
60
156
|
},
|
|
61
157
|
{
|
|
62
|
-
type: "
|
|
158
|
+
inputs: [{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" }],
|
|
63
159
|
name: "getLatestOdds",
|
|
64
|
-
|
|
65
|
-
outputs: [{ name: "", type: "int256[]", internalType: "int256[]" }],
|
|
160
|
+
outputs: [{ internalType: "int256[]", name: "", type: "int256[]" }],
|
|
66
161
|
stateMutability: "view",
|
|
162
|
+
type: "function",
|
|
67
163
|
},
|
|
68
164
|
{
|
|
69
|
-
type: "function",
|
|
70
|
-
name: "getLatestPrice",
|
|
71
165
|
inputs: [
|
|
72
|
-
{
|
|
73
|
-
|
|
74
|
-
type: "bytes32",
|
|
75
|
-
internalType: "bytes32",
|
|
76
|
-
},
|
|
77
|
-
{ name: "side", type: "uint8", internalType: "enum Side" },
|
|
166
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
167
|
+
{ internalType: "enum Side", name: "side", type: "uint8" },
|
|
78
168
|
],
|
|
79
|
-
|
|
169
|
+
name: "getLatestPrice",
|
|
170
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
80
171
|
stateMutability: "view",
|
|
172
|
+
type: "function",
|
|
81
173
|
},
|
|
82
174
|
{
|
|
83
|
-
type: "
|
|
175
|
+
inputs: [{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" }],
|
|
84
176
|
name: "getLatestPrices",
|
|
85
|
-
|
|
86
|
-
outputs: [{ name: "", type: "uint256[]", internalType: "uint256[]" }],
|
|
177
|
+
outputs: [{ internalType: "uint256[]", name: "", type: "uint256[]" }],
|
|
87
178
|
stateMutability: "view",
|
|
179
|
+
type: "function",
|
|
88
180
|
},
|
|
89
181
|
{
|
|
90
|
-
type: "
|
|
182
|
+
inputs: [{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" }],
|
|
91
183
|
name: "getLatestPricingData",
|
|
92
|
-
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
93
184
|
outputs: [
|
|
94
185
|
{
|
|
95
|
-
name: "pricing",
|
|
96
|
-
type: "tuple",
|
|
97
|
-
internalType: "struct PricingData",
|
|
98
186
|
components: [
|
|
99
|
-
{
|
|
100
|
-
{
|
|
101
|
-
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
|
|
108
|
-
type: "uint8",
|
|
109
|
-
internalType: "enum GameStatus",
|
|
110
|
-
},
|
|
111
|
-
{ name: "odds", type: "int256[]", internalType: "int256[]" },
|
|
112
|
-
{
|
|
113
|
-
name: "prices",
|
|
114
|
-
type: "uint256[]",
|
|
115
|
-
internalType: "uint256[]",
|
|
116
|
-
},
|
|
117
|
-
{ name: "updatedAt", type: "uint48", internalType: "uint48" },
|
|
118
|
-
{
|
|
119
|
-
name: "gameProgressBps",
|
|
120
|
-
type: "uint16",
|
|
121
|
-
internalType: "uint16",
|
|
122
|
-
},
|
|
123
|
-
{ name: "customData", type: "bytes", internalType: "bytes" },
|
|
187
|
+
{ internalType: "uint256", name: "gameId", type: "uint256" },
|
|
188
|
+
{ internalType: "uint256", name: "nFactor", type: "uint256" },
|
|
189
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
190
|
+
{ internalType: "enum GameStatus", name: "status", type: "uint8" },
|
|
191
|
+
{ internalType: "int256[]", name: "odds", type: "int256[]" },
|
|
192
|
+
{ internalType: "uint256[]", name: "prices", type: "uint256[]" },
|
|
193
|
+
{ internalType: "uint48", name: "updatedAt", type: "uint48" },
|
|
194
|
+
{ internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
195
|
+
{ internalType: "bytes", name: "customData", type: "bytes" },
|
|
124
196
|
],
|
|
197
|
+
internalType: "struct PricingData",
|
|
198
|
+
name: "pricing",
|
|
199
|
+
type: "tuple",
|
|
125
200
|
},
|
|
126
201
|
],
|
|
127
202
|
stateMutability: "view",
|
|
203
|
+
type: "function",
|
|
128
204
|
},
|
|
129
205
|
{
|
|
130
|
-
type: "
|
|
206
|
+
inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
|
|
131
207
|
name: "getLatestScoreData",
|
|
132
|
-
inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
|
|
133
208
|
outputs: [
|
|
134
209
|
{
|
|
135
|
-
name: "scores",
|
|
136
|
-
type: "tuple",
|
|
137
|
-
internalType: "struct ScoreData",
|
|
138
210
|
components: [
|
|
139
|
-
{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
},
|
|
144
|
-
{ name: "scoreH", type: "uint48", internalType: "uint48" },
|
|
145
|
-
{ name: "scoreV", type: "uint48", internalType: "uint48" },
|
|
146
|
-
{ name: "updatedAt", type: "uint48", internalType: "uint48" },
|
|
147
|
-
{
|
|
148
|
-
name: "gameProgressBps",
|
|
149
|
-
type: "uint16",
|
|
150
|
-
internalType: "uint16",
|
|
151
|
-
},
|
|
211
|
+
{ internalType: "enum GameStatus", name: "status", type: "uint8" },
|
|
212
|
+
{ internalType: "uint48", name: "scoreH", type: "uint48" },
|
|
213
|
+
{ internalType: "uint48", name: "scoreV", type: "uint48" },
|
|
214
|
+
{ internalType: "uint48", name: "updatedAt", type: "uint48" },
|
|
215
|
+
{ internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
152
216
|
],
|
|
217
|
+
internalType: "struct ScoreData",
|
|
218
|
+
name: "scores",
|
|
219
|
+
type: "tuple",
|
|
153
220
|
},
|
|
154
221
|
],
|
|
155
222
|
stateMutability: "view",
|
|
223
|
+
type: "function",
|
|
156
224
|
},
|
|
157
225
|
{
|
|
158
|
-
type: "
|
|
226
|
+
inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
|
|
159
227
|
name: "getLatestScores",
|
|
160
|
-
inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
|
|
161
228
|
outputs: [
|
|
162
|
-
{
|
|
163
|
-
{
|
|
229
|
+
{ internalType: "uint48", name: "scoreH", type: "uint48" },
|
|
230
|
+
{ internalType: "uint48", name: "scoreV", type: "uint48" },
|
|
164
231
|
],
|
|
165
232
|
stateMutability: "view",
|
|
233
|
+
type: "function",
|
|
166
234
|
},
|
|
167
235
|
{
|
|
168
|
-
type: "function",
|
|
169
|
-
name: "getPriceDataForLiquidation",
|
|
170
236
|
inputs: [
|
|
171
|
-
{
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: "liquidationPrice",
|
|
178
|
-
type: "uint256",
|
|
179
|
-
internalType: "uint256",
|
|
180
|
-
},
|
|
181
|
-
{ name: "side", type: "uint8", internalType: "enum Side" },
|
|
182
|
-
{
|
|
183
|
-
name: "positionOpenedAt",
|
|
184
|
-
type: "uint48",
|
|
185
|
-
internalType: "uint48",
|
|
186
|
-
},
|
|
237
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
238
|
+
{ internalType: "uint256", name: "liquidationPrice", type: "uint256" },
|
|
239
|
+
{ internalType: "enum Side", name: "side", type: "uint8" },
|
|
240
|
+
{ internalType: "uint48", name: "positionOpenedAt", type: "uint48" },
|
|
187
241
|
],
|
|
242
|
+
name: "getPriceDataForLiquidation",
|
|
188
243
|
outputs: [
|
|
189
244
|
{
|
|
190
|
-
name: "liquidationPriceData",
|
|
191
|
-
type: "tuple",
|
|
192
|
-
internalType: "struct PricingData",
|
|
193
245
|
components: [
|
|
194
|
-
{
|
|
195
|
-
{
|
|
196
|
-
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
|
|
203
|
-
type: "uint8",
|
|
204
|
-
internalType: "enum GameStatus",
|
|
205
|
-
},
|
|
206
|
-
{ name: "odds", type: "int256[]", internalType: "int256[]" },
|
|
207
|
-
{
|
|
208
|
-
name: "prices",
|
|
209
|
-
type: "uint256[]",
|
|
210
|
-
internalType: "uint256[]",
|
|
211
|
-
},
|
|
212
|
-
{ name: "updatedAt", type: "uint48", internalType: "uint48" },
|
|
213
|
-
{
|
|
214
|
-
name: "gameProgressBps",
|
|
215
|
-
type: "uint16",
|
|
216
|
-
internalType: "uint16",
|
|
217
|
-
},
|
|
218
|
-
{ name: "customData", type: "bytes", internalType: "bytes" },
|
|
246
|
+
{ internalType: "uint256", name: "gameId", type: "uint256" },
|
|
247
|
+
{ internalType: "uint256", name: "nFactor", type: "uint256" },
|
|
248
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
249
|
+
{ internalType: "enum GameStatus", name: "status", type: "uint8" },
|
|
250
|
+
{ internalType: "int256[]", name: "odds", type: "int256[]" },
|
|
251
|
+
{ internalType: "uint256[]", name: "prices", type: "uint256[]" },
|
|
252
|
+
{ internalType: "uint48", name: "updatedAt", type: "uint48" },
|
|
253
|
+
{ internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
254
|
+
{ internalType: "bytes", name: "customData", type: "bytes" },
|
|
219
255
|
],
|
|
256
|
+
internalType: "struct PricingData",
|
|
257
|
+
name: "liquidationPriceData",
|
|
258
|
+
type: "tuple",
|
|
220
259
|
},
|
|
221
260
|
],
|
|
222
261
|
stateMutability: "view",
|
|
262
|
+
type: "function",
|
|
223
263
|
},
|
|
224
264
|
{
|
|
225
|
-
type: "function",
|
|
226
|
-
name: "getPriceDataForLiquidations",
|
|
227
265
|
inputs: [
|
|
228
|
-
{
|
|
229
|
-
|
|
230
|
-
type: "bytes16",
|
|
231
|
-
internalType: "bytes16",
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
name: "positionIds",
|
|
235
|
-
type: "bytes32[]",
|
|
236
|
-
internalType: "bytes32[]",
|
|
237
|
-
},
|
|
266
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
267
|
+
{ internalType: "bytes32[]", name: "positionIds", type: "bytes32[]" },
|
|
238
268
|
],
|
|
269
|
+
name: "getPriceDataForLiquidations",
|
|
239
270
|
outputs: [
|
|
240
271
|
{
|
|
241
|
-
name: "liquidationPriceData",
|
|
242
|
-
type: "tuple[]",
|
|
243
|
-
internalType: "struct PricingData[]",
|
|
244
272
|
components: [
|
|
245
|
-
{
|
|
246
|
-
{
|
|
247
|
-
{
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
|
|
254
|
-
type: "uint8",
|
|
255
|
-
internalType: "enum GameStatus",
|
|
256
|
-
},
|
|
257
|
-
{ name: "odds", type: "int256[]", internalType: "int256[]" },
|
|
258
|
-
{
|
|
259
|
-
name: "prices",
|
|
260
|
-
type: "uint256[]",
|
|
261
|
-
internalType: "uint256[]",
|
|
262
|
-
},
|
|
263
|
-
{ name: "updatedAt", type: "uint48", internalType: "uint48" },
|
|
264
|
-
{
|
|
265
|
-
name: "gameProgressBps",
|
|
266
|
-
type: "uint16",
|
|
267
|
-
internalType: "uint16",
|
|
268
|
-
},
|
|
269
|
-
{ name: "customData", type: "bytes", internalType: "bytes" },
|
|
273
|
+
{ internalType: "uint256", name: "gameId", type: "uint256" },
|
|
274
|
+
{ internalType: "uint256", name: "nFactor", type: "uint256" },
|
|
275
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
276
|
+
{ internalType: "enum GameStatus", name: "status", type: "uint8" },
|
|
277
|
+
{ internalType: "int256[]", name: "odds", type: "int256[]" },
|
|
278
|
+
{ internalType: "uint256[]", name: "prices", type: "uint256[]" },
|
|
279
|
+
{ internalType: "uint48", name: "updatedAt", type: "uint48" },
|
|
280
|
+
{ internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
281
|
+
{ internalType: "bytes", name: "customData", type: "bytes" },
|
|
270
282
|
],
|
|
283
|
+
internalType: "struct PricingData[]",
|
|
284
|
+
name: "liquidationPriceData",
|
|
285
|
+
type: "tuple[]",
|
|
271
286
|
},
|
|
272
287
|
],
|
|
273
288
|
stateMutability: "view",
|
|
289
|
+
type: "function",
|
|
274
290
|
},
|
|
275
291
|
{
|
|
276
|
-
type: "
|
|
292
|
+
inputs: [{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" }],
|
|
277
293
|
name: "getPriceUpdateMarkers",
|
|
278
|
-
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
279
294
|
outputs: [
|
|
280
295
|
{
|
|
281
|
-
name: "markers",
|
|
282
|
-
type: "tuple[]",
|
|
283
|
-
internalType: "struct PriceUpdateMarker[]",
|
|
284
296
|
components: [
|
|
285
|
-
{
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
name: "minPriceB",
|
|
292
|
-
type: "uint256",
|
|
293
|
-
internalType: "uint256",
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
name: "minPriceC",
|
|
297
|
-
type: "uint256",
|
|
298
|
-
internalType: "uint256",
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
name: "maxPriceA",
|
|
302
|
-
type: "uint256",
|
|
303
|
-
internalType: "uint256",
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
name: "maxPriceB",
|
|
307
|
-
type: "uint256",
|
|
308
|
-
internalType: "uint256",
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
name: "maxPriceC",
|
|
312
|
-
type: "uint256",
|
|
313
|
-
internalType: "uint256",
|
|
314
|
-
},
|
|
297
|
+
{ internalType: "uint256", name: "minPriceA", type: "uint256" },
|
|
298
|
+
{ internalType: "uint256", name: "minPriceB", type: "uint256" },
|
|
299
|
+
{ internalType: "uint256", name: "minPriceC", type: "uint256" },
|
|
300
|
+
{ internalType: "uint256", name: "maxPriceA", type: "uint256" },
|
|
301
|
+
{ internalType: "uint256", name: "maxPriceB", type: "uint256" },
|
|
302
|
+
{ internalType: "uint256", name: "maxPriceC", type: "uint256" },
|
|
315
303
|
],
|
|
304
|
+
internalType: "struct PriceUpdateMarker[]",
|
|
305
|
+
name: "markers",
|
|
306
|
+
type: "tuple[]",
|
|
316
307
|
},
|
|
317
308
|
],
|
|
318
309
|
stateMutability: "view",
|
|
310
|
+
type: "function",
|
|
319
311
|
},
|
|
320
312
|
{
|
|
321
|
-
type: "
|
|
313
|
+
inputs: [{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" }],
|
|
322
314
|
name: "getPricingData",
|
|
323
|
-
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
324
315
|
outputs: [
|
|
325
316
|
{
|
|
326
|
-
name: "",
|
|
327
|
-
type: "tuple[]",
|
|
328
|
-
internalType: "struct PricingData[]",
|
|
329
317
|
components: [
|
|
330
|
-
{
|
|
331
|
-
{
|
|
332
|
-
{
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
|
|
339
|
-
type: "uint8",
|
|
340
|
-
internalType: "enum GameStatus",
|
|
341
|
-
},
|
|
342
|
-
{ name: "odds", type: "int256[]", internalType: "int256[]" },
|
|
343
|
-
{
|
|
344
|
-
name: "prices",
|
|
345
|
-
type: "uint256[]",
|
|
346
|
-
internalType: "uint256[]",
|
|
347
|
-
},
|
|
348
|
-
{ name: "updatedAt", type: "uint48", internalType: "uint48" },
|
|
349
|
-
{
|
|
350
|
-
name: "gameProgressBps",
|
|
351
|
-
type: "uint16",
|
|
352
|
-
internalType: "uint16",
|
|
353
|
-
},
|
|
354
|
-
{ name: "customData", type: "bytes", internalType: "bytes" },
|
|
318
|
+
{ internalType: "uint256", name: "gameId", type: "uint256" },
|
|
319
|
+
{ internalType: "uint256", name: "nFactor", type: "uint256" },
|
|
320
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
321
|
+
{ internalType: "enum GameStatus", name: "status", type: "uint8" },
|
|
322
|
+
{ internalType: "int256[]", name: "odds", type: "int256[]" },
|
|
323
|
+
{ internalType: "uint256[]", name: "prices", type: "uint256[]" },
|
|
324
|
+
{ internalType: "uint48", name: "updatedAt", type: "uint48" },
|
|
325
|
+
{ internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
326
|
+
{ internalType: "bytes", name: "customData", type: "bytes" },
|
|
355
327
|
],
|
|
328
|
+
internalType: "struct PricingData[]",
|
|
329
|
+
name: "",
|
|
330
|
+
type: "tuple[]",
|
|
356
331
|
},
|
|
357
332
|
],
|
|
358
333
|
stateMutability: "view",
|
|
334
|
+
type: "function",
|
|
359
335
|
},
|
|
360
336
|
{
|
|
361
|
-
type: "
|
|
337
|
+
inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
|
|
362
338
|
name: "getScoreData",
|
|
363
|
-
inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
|
|
364
339
|
outputs: [
|
|
365
340
|
{
|
|
366
|
-
name: "",
|
|
367
|
-
type: "tuple[]",
|
|
368
|
-
internalType: "struct ScoreData[]",
|
|
369
341
|
components: [
|
|
370
|
-
{
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
{ name: "scoreH", type: "uint48", internalType: "uint48" },
|
|
376
|
-
{ name: "scoreV", type: "uint48", internalType: "uint48" },
|
|
377
|
-
{ name: "updatedAt", type: "uint48", internalType: "uint48" },
|
|
378
|
-
{
|
|
379
|
-
name: "gameProgressBps",
|
|
380
|
-
type: "uint16",
|
|
381
|
-
internalType: "uint16",
|
|
382
|
-
},
|
|
342
|
+
{ internalType: "enum GameStatus", name: "status", type: "uint8" },
|
|
343
|
+
{ internalType: "uint48", name: "scoreH", type: "uint48" },
|
|
344
|
+
{ internalType: "uint48", name: "scoreV", type: "uint48" },
|
|
345
|
+
{ internalType: "uint48", name: "updatedAt", type: "uint48" },
|
|
346
|
+
{ internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
383
347
|
],
|
|
348
|
+
internalType: "struct ScoreData[]",
|
|
349
|
+
name: "",
|
|
350
|
+
type: "tuple[]",
|
|
384
351
|
},
|
|
385
352
|
],
|
|
386
353
|
stateMutability: "view",
|
|
354
|
+
type: "function",
|
|
387
355
|
},
|
|
388
356
|
{
|
|
389
|
-
type: "function",
|
|
390
|
-
name: "initializeGameMarketFeed",
|
|
391
357
|
inputs: [
|
|
392
|
-
{
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
internalType: "bytes32",
|
|
396
|
-
},
|
|
397
|
-
{ name: "nFactor", type: "uint256", internalType: "uint256" },
|
|
398
|
-
{ name: "odds", type: "int256[]", internalType: "int256[]" },
|
|
358
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
359
|
+
{ internalType: "uint256", name: "nFactor", type: "uint256" },
|
|
360
|
+
{ internalType: "int256[]", name: "odds", type: "int256[]" },
|
|
399
361
|
],
|
|
362
|
+
name: "initializeGameMarketFeed",
|
|
400
363
|
outputs: [],
|
|
401
364
|
stateMutability: "nonpayable",
|
|
365
|
+
type: "function",
|
|
402
366
|
},
|
|
403
367
|
{
|
|
404
|
-
type: "function",
|
|
405
|
-
name: "isMarkedForLiquidation",
|
|
406
368
|
inputs: [
|
|
407
|
-
{
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
name: "liquidationPrice",
|
|
414
|
-
type: "uint256",
|
|
415
|
-
internalType: "uint256",
|
|
416
|
-
},
|
|
417
|
-
{ name: "side", type: "uint8", internalType: "enum Side" },
|
|
418
|
-
{
|
|
419
|
-
name: "positionOpenedAt",
|
|
420
|
-
type: "uint48",
|
|
421
|
-
internalType: "uint48",
|
|
422
|
-
},
|
|
369
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
370
|
+
{ internalType: "uint256", name: "liquidationPrice", type: "uint256" },
|
|
371
|
+
{ internalType: "enum Side", name: "side", type: "uint8" },
|
|
372
|
+
{ internalType: "uint48", name: "positionOpenedAt", type: "uint48" },
|
|
423
373
|
],
|
|
424
|
-
|
|
374
|
+
name: "isMarkedForLiquidation",
|
|
375
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
425
376
|
stateMutability: "view",
|
|
377
|
+
type: "function",
|
|
426
378
|
},
|
|
427
379
|
{
|
|
428
|
-
type: "function",
|
|
429
|
-
name: "levrConfigProvider",
|
|
430
380
|
inputs: [],
|
|
431
|
-
|
|
381
|
+
name: "levrConfigProvider",
|
|
382
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
432
383
|
stateMutability: "view",
|
|
384
|
+
type: "function",
|
|
433
385
|
},
|
|
434
386
|
{
|
|
435
|
-
type: "
|
|
387
|
+
inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
|
|
436
388
|
name: "supportsInterface",
|
|
437
|
-
|
|
438
|
-
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
389
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
439
390
|
stateMutability: "view",
|
|
391
|
+
type: "function",
|
|
440
392
|
},
|
|
441
393
|
{
|
|
442
|
-
type: "function",
|
|
443
|
-
name: "updateGameScores",
|
|
444
394
|
inputs: [
|
|
445
|
-
{
|
|
446
|
-
{
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
internalType: "uint16",
|
|
450
|
-
},
|
|
451
|
-
{ name: "scoreH", type: "uint48", internalType: "uint48" },
|
|
452
|
-
{ name: "scoreV", type: "uint48", internalType: "uint48" },
|
|
395
|
+
{ internalType: "uint256", name: "gameId", type: "uint256" },
|
|
396
|
+
{ internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
397
|
+
{ internalType: "uint48", name: "scoreH", type: "uint48" },
|
|
398
|
+
{ internalType: "uint48", name: "scoreV", type: "uint48" },
|
|
453
399
|
],
|
|
400
|
+
name: "updateGameScores",
|
|
454
401
|
outputs: [],
|
|
455
402
|
stateMutability: "nonpayable",
|
|
403
|
+
type: "function",
|
|
456
404
|
},
|
|
457
405
|
{
|
|
458
|
-
type: "
|
|
406
|
+
inputs: [{ internalType: "address", name: "newLevrConfigProvider", type: "address" }],
|
|
459
407
|
name: "updateLevrConfigProvider",
|
|
460
|
-
inputs: [
|
|
461
|
-
{
|
|
462
|
-
name: "newLevrConfigProvider",
|
|
463
|
-
type: "address",
|
|
464
|
-
internalType: "address",
|
|
465
|
-
},
|
|
466
|
-
],
|
|
467
408
|
outputs: [],
|
|
468
409
|
stateMutability: "nonpayable",
|
|
410
|
+
type: "function",
|
|
469
411
|
},
|
|
470
412
|
{
|
|
471
|
-
type: "function",
|
|
472
|
-
name: "updateMarketOdds",
|
|
473
413
|
inputs: [
|
|
474
|
-
{
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
name: "levrMarketId",
|
|
481
|
-
type: "bytes16",
|
|
482
|
-
internalType: "bytes16",
|
|
483
|
-
},
|
|
484
|
-
{ name: "nFactor", type: "uint256", internalType: "uint256" },
|
|
485
|
-
{
|
|
486
|
-
name: "gameProgressBps",
|
|
487
|
-
type: "uint16",
|
|
488
|
-
internalType: "uint16",
|
|
489
|
-
},
|
|
490
|
-
{ name: "odds", type: "int256[]", internalType: "int256[]" },
|
|
491
|
-
{ name: "data", type: "bytes", internalType: "bytes" },
|
|
414
|
+
{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
|
|
415
|
+
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
416
|
+
{ internalType: "uint256", name: "nFactor", type: "uint256" },
|
|
417
|
+
{ internalType: "uint16", name: "gameProgressBps", type: "uint16" },
|
|
418
|
+
{ internalType: "int256[]", name: "odds", type: "int256[]" },
|
|
419
|
+
{ internalType: "bytes", name: "data", type: "bytes" },
|
|
492
420
|
],
|
|
421
|
+
name: "updateMarketOdds",
|
|
493
422
|
outputs: [],
|
|
494
423
|
stateMutability: "nonpayable",
|
|
424
|
+
type: "function",
|
|
495
425
|
},
|
|
496
|
-
{
|
|
497
|
-
type: "event",
|
|
498
|
-
name: "GameFeedInitialized",
|
|
499
|
-
inputs: [
|
|
500
|
-
{
|
|
501
|
-
name: "gameId",
|
|
502
|
-
type: "uint256",
|
|
503
|
-
indexed: true,
|
|
504
|
-
internalType: "uint256",
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
name: "levrSportsId",
|
|
508
|
-
type: "uint16",
|
|
509
|
-
indexed: true,
|
|
510
|
-
internalType: "uint16",
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
name: "registeredAt",
|
|
514
|
-
type: "uint48",
|
|
515
|
-
indexed: false,
|
|
516
|
-
internalType: "uint48",
|
|
517
|
-
},
|
|
518
|
-
],
|
|
519
|
-
anonymous: false,
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
type: "event",
|
|
523
|
-
name: "LevrConfigProviderUpdated",
|
|
524
|
-
inputs: [
|
|
525
|
-
{
|
|
526
|
-
name: "prevProvider",
|
|
527
|
-
type: "address",
|
|
528
|
-
indexed: true,
|
|
529
|
-
internalType: "address",
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
name: "newProvider",
|
|
533
|
-
type: "address",
|
|
534
|
-
indexed: true,
|
|
535
|
-
internalType: "address",
|
|
536
|
-
},
|
|
537
|
-
],
|
|
538
|
-
anonymous: false,
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
type: "event",
|
|
542
|
-
name: "MarketPricingInitialized",
|
|
543
|
-
inputs: [
|
|
544
|
-
{
|
|
545
|
-
name: "gameId",
|
|
546
|
-
type: "uint256",
|
|
547
|
-
indexed: true,
|
|
548
|
-
internalType: "uint256",
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
name: "gameMarketId",
|
|
552
|
-
type: "bytes32",
|
|
553
|
-
indexed: true,
|
|
554
|
-
internalType: "bytes32",
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
name: "levrSportsId",
|
|
558
|
-
type: "bytes12",
|
|
559
|
-
indexed: true,
|
|
560
|
-
internalType: "bytes12",
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
name: "initializedAt",
|
|
564
|
-
type: "uint48",
|
|
565
|
-
indexed: false,
|
|
566
|
-
internalType: "uint48",
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
name: "oddA",
|
|
570
|
-
type: "int256",
|
|
571
|
-
indexed: false,
|
|
572
|
-
internalType: "int256",
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
name: "oddB",
|
|
576
|
-
type: "int256",
|
|
577
|
-
indexed: false,
|
|
578
|
-
internalType: "int256",
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
name: "oddC",
|
|
582
|
-
type: "int256",
|
|
583
|
-
indexed: false,
|
|
584
|
-
internalType: "int256",
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
name: "priceA",
|
|
588
|
-
type: "uint256",
|
|
589
|
-
indexed: false,
|
|
590
|
-
internalType: "uint256",
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
name: "priceB",
|
|
594
|
-
type: "uint256",
|
|
595
|
-
indexed: false,
|
|
596
|
-
internalType: "uint256",
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
name: "priceC",
|
|
600
|
-
type: "uint256",
|
|
601
|
-
indexed: false,
|
|
602
|
-
internalType: "uint256",
|
|
603
|
-
},
|
|
604
|
-
],
|
|
605
|
-
anonymous: false,
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
type: "event",
|
|
609
|
-
name: "MarketPricingUpdated",
|
|
610
|
-
inputs: [
|
|
611
|
-
{
|
|
612
|
-
name: "gameId",
|
|
613
|
-
type: "uint256",
|
|
614
|
-
indexed: true,
|
|
615
|
-
internalType: "uint256",
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
name: "gameMarketId",
|
|
619
|
-
type: "bytes32",
|
|
620
|
-
indexed: true,
|
|
621
|
-
internalType: "bytes32",
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
name: "levrSportsId",
|
|
625
|
-
type: "bytes12",
|
|
626
|
-
indexed: true,
|
|
627
|
-
internalType: "bytes12",
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
name: "gameStatus",
|
|
631
|
-
type: "uint8",
|
|
632
|
-
indexed: false,
|
|
633
|
-
internalType: "enum GameStatus",
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
name: "updatedAt",
|
|
637
|
-
type: "uint48",
|
|
638
|
-
indexed: false,
|
|
639
|
-
internalType: "uint48",
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
name: "gameProgressBps",
|
|
643
|
-
type: "uint16",
|
|
644
|
-
indexed: false,
|
|
645
|
-
internalType: "uint16",
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
name: "oddA",
|
|
649
|
-
type: "int256",
|
|
650
|
-
indexed: false,
|
|
651
|
-
internalType: "int256",
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
name: "oddB",
|
|
655
|
-
type: "int256",
|
|
656
|
-
indexed: false,
|
|
657
|
-
internalType: "int256",
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
name: "oddC",
|
|
661
|
-
type: "int256",
|
|
662
|
-
indexed: false,
|
|
663
|
-
internalType: "int256",
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
name: "priceA",
|
|
667
|
-
type: "uint256",
|
|
668
|
-
indexed: false,
|
|
669
|
-
internalType: "uint256",
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
name: "priceB",
|
|
673
|
-
type: "uint256",
|
|
674
|
-
indexed: false,
|
|
675
|
-
internalType: "uint256",
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
name: "priceC",
|
|
679
|
-
type: "uint256",
|
|
680
|
-
indexed: false,
|
|
681
|
-
internalType: "uint256",
|
|
682
|
-
},
|
|
683
|
-
],
|
|
684
|
-
anonymous: false,
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
type: "event",
|
|
688
|
-
name: "ScoreDataUpdated",
|
|
689
|
-
inputs: [
|
|
690
|
-
{
|
|
691
|
-
name: "gameId",
|
|
692
|
-
type: "uint256",
|
|
693
|
-
indexed: true,
|
|
694
|
-
internalType: "uint256",
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
name: "levrSportId",
|
|
698
|
-
type: "bytes12",
|
|
699
|
-
indexed: true,
|
|
700
|
-
internalType: "bytes12",
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
name: "gameProgressBps",
|
|
704
|
-
type: "uint16",
|
|
705
|
-
indexed: false,
|
|
706
|
-
internalType: "uint16",
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
name: "scoreH",
|
|
710
|
-
type: "uint48",
|
|
711
|
-
indexed: false,
|
|
712
|
-
internalType: "uint48",
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
name: "scoreV",
|
|
716
|
-
type: "uint48",
|
|
717
|
-
indexed: false,
|
|
718
|
-
internalType: "uint48",
|
|
719
|
-
},
|
|
720
|
-
],
|
|
721
|
-
anonymous: false,
|
|
722
|
-
},
|
|
723
|
-
{ type: "error", name: "LB_CONFIG_INVALID_INTERFACE", inputs: [] },
|
|
724
|
-
{
|
|
725
|
-
type: "error",
|
|
726
|
-
name: "LB_CONFIG_PROVIDER_NOT_CONTRACT",
|
|
727
|
-
inputs: [],
|
|
728
|
-
},
|
|
729
|
-
{ type: "error", name: "LB_NOT_LEVR_ADMIN", inputs: [] },
|
|
730
|
-
{ type: "error", name: "LMF_CANNOT_SETTLE_MARKET", inputs: [] },
|
|
731
|
-
{
|
|
732
|
-
type: "error",
|
|
733
|
-
name: "LMF_FEED_ALREADY_INITIALIZED",
|
|
734
|
-
inputs: [
|
|
735
|
-
{ name: "gameId", type: "uint256", internalType: "uint256" },
|
|
736
|
-
{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
|
|
737
|
-
],
|
|
738
|
-
},
|
|
739
|
-
{ type: "error", name: "LMF_GAME_ENDED_OR_CANCELED", inputs: [] },
|
|
740
|
-
{ type: "error", name: "LMF_GAME_NOT_ENDED", inputs: [] },
|
|
741
|
-
{ type: "error", name: "LMF_GAME_NOT_LIVE", inputs: [] },
|
|
742
|
-
{ type: "error", name: "LMF_INVALID_ADDRESS", inputs: [] },
|
|
743
|
-
{
|
|
744
|
-
type: "error",
|
|
745
|
-
name: "LMF_INVALID_GAME_PHASE_SWITCH",
|
|
746
|
-
inputs: [
|
|
747
|
-
{ name: "from", type: "uint8", internalType: "enum GameStatus" },
|
|
748
|
-
{ name: "to", type: "uint8", internalType: "enum GameStatus" },
|
|
749
|
-
],
|
|
750
|
-
},
|
|
751
|
-
{ type: "error", name: "LMF_INVALID_LEVR_GAME_ID", inputs: [] },
|
|
752
|
-
{ type: "error", name: "LMF_INVALID_N_FACTOR", inputs: [] },
|
|
753
|
-
{ type: "error", name: "LMF_INVALID_ODDS", inputs: [] },
|
|
754
|
-
{ type: "error", name: "LMF_INVALID_ODDS_GROUP", inputs: [] },
|
|
755
|
-
{ type: "error", name: "LMF_INVALID_ODDS_LENGTH", inputs: [] },
|
|
756
|
-
{ type: "error", name: "LMF_INVALID_SIDE", inputs: [] },
|
|
757
|
-
{ type: "error", name: "LMF_MARKET_ALREADY_SETTLED", inputs: [] },
|
|
758
|
-
{ type: "error", name: "LMF_NOT_FEED_PROVIDER", inputs: [] },
|
|
759
|
-
{ type: "error", name: "LMF_NOT_GAME_ADMIN", inputs: [] },
|
|
760
|
-
{ type: "error", name: "LMF_NOT_MARKET_CONTRACT", inputs: [] },
|
|
761
|
-
{ type: "error", name: "LMF_NOT_SETTLER", inputs: [] },
|
|
762
|
-
{
|
|
763
|
-
type: "error",
|
|
764
|
-
name: "LMF_PRICE_FEED_NOT_INITIALIZED",
|
|
765
|
-
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
type: "error",
|
|
769
|
-
name: "LMF_SCORE_FEED_NOT_INITIALIZED",
|
|
770
|
-
inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
|
|
771
|
-
},
|
|
772
|
-
{ type: "error", name: "LM_ZERO_N_FACTOR", inputs: [] },
|
|
773
|
-
{ type: "error", name: "LM_ZERO_ODDS", inputs: [] },
|
|
774
426
|
];
|
|
775
427
|
//# sourceMappingURL=LevrMarketFeed.js.map
|