@levrbet/shared 0.1.133 → 0.1.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/contracts/abis/LevrBaseMarket.d.ts +1009 -0
- package/dist/core/contracts/abis/LevrBaseMarket.js +976 -0
- package/dist/core/contracts/abis/LevrBaseMarket.js.map +1 -0
- package/dist/core/contracts/abis/LevrConfigProvider.d.ts +1918 -2130
- package/dist/core/contracts/abis/LevrConfigProvider.js +2007 -1162
- package/dist/core/contracts/abis/LevrConfigProvider.js.map +1 -1
- package/dist/core/contracts/abis/LevrFundManager.d.ts +50 -369
- package/dist/core/contracts/abis/LevrFundManager.js +1 -180
- package/dist/core/contracts/abis/LevrFundManager.js.map +1 -1
- package/dist/core/contracts/abis/LevrLiquidationEngine.d.ts +163 -153
- package/dist/core/contracts/abis/LevrLiquidationEngine.js +182 -81
- package/dist/core/contracts/abis/LevrLiquidationEngine.js.map +1 -1
- package/dist/core/contracts/abis/LevrManager.d.ts +978 -1018
- package/dist/core/contracts/abis/LevrManager.js +835 -453
- package/dist/core/contracts/abis/LevrManager.js.map +1 -1
- package/dist/core/contracts/abis/LevrMarketFeed.d.ts +515 -515
- package/dist/core/contracts/abis/LevrMarketFeed.js +620 -272
- package/dist/core/contracts/abis/LevrMarketFeed.js.map +1 -1
- package/dist/core/contracts/abis/LevrMarketRouter.d.ts +159 -289
- package/dist/core/contracts/abis/LevrMarketRouter.js +188 -133
- package/dist/core/contracts/abis/LevrMarketRouter.js.map +1 -1
- package/dist/core/contracts/abis/LevrMvpRouter.d.ts +160 -414
- package/dist/core/contracts/abis/LevrMvpRouter.js +227 -194
- package/dist/core/contracts/abis/LevrMvpRouter.js.map +1 -1
- package/dist/core/contracts/abis/LevrOrderbook.d.ts +367 -562
- package/dist/core/contracts/abis/LevrOrderbook.js +409 -256
- package/dist/core/contracts/abis/LevrOrderbook.js.map +1 -1
- package/dist/core/contracts/abis/LevrUtil.d.ts +3 -3
- package/dist/core/contracts/abis/LevrUtil.js +3 -3
- package/dist/core/contracts/abis/LevrUtil.js.map +1 -1
- package/dist/core/contracts/abis/Storage.d.ts +34 -0
- package/dist/core/contracts/abis/Storage.js +47 -0
- package/dist/core/contracts/abis/Storage.js.map +1 -0
- package/dist/core/contracts/abis/index.d.ts +8470 -9575
- package/dist/core/contracts/abis/index.js +13 -9
- package/dist/core/contracts/abis/index.js.map +1 -1
- package/dist/core/contracts/addresses.d.ts +92 -114
- package/dist/core/contracts/addresses.js +85 -108
- package/dist/core/contracts/addresses.js.map +1 -1
- package/dist/core/contracts/constants.d.ts +3 -2
- package/dist/core/contracts/constants.js +5 -3
- package/dist/core/contracts/constants.js.map +1 -1
- package/dist/core/types/oracle/market/index.d.ts +1 -0
- package/dist/core/types/oracle/market/index.js +1 -0
- package/dist/core/types/oracle/market/index.js.map +1 -1
- package/dist/core/types/oracle/market/positions.types.d.ts +45 -0
- package/dist/core/types/oracle/market/positions.types.js +3 -0
- package/dist/core/types/oracle/market/positions.types.js.map +1 -0
- package/dist/core/types/oracle/requests/game.request.types.d.ts +1 -9
- package/dist/core/types/oracle/requests/game.request.types.js +2 -9
- package/dist/core/types/oracle/requests/game.request.types.js.map +1 -1
- package/dist/react/hooks/contracts/useContracts.d.ts +84 -80
- package/dist/server/config/kms.d.ts +1 -1
- package/dist/server/config/kms.js +5 -1
- package/dist/server/config/kms.js.map +1 -1
- package/dist/server/config/prisma.js +5 -1
- package/dist/server/config/prisma.js.map +1 -1
- package/dist/server/config/redis.js +6 -5
- package/dist/server/config/redis.js.map +1 -1
- package/dist/server/config/winston.d.ts +12 -0
- package/dist/server/config/winston.js +95 -5
- package/dist/server/config/winston.js.map +1 -1
- package/dist/server/contracts/clients/ozRelayerService.js +12 -12
- package/dist/server/contracts/clients/ozRelayerService.js.map +1 -1
- package/dist/server/index.d.ts +0 -1
- package/dist/server/index.js +0 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/middleware/auth/cloudflare.handler.js +5 -1
- package/dist/server/middleware/auth/cloudflare.handler.js.map +1 -1
- package/dist/server/middleware/auth/hmac.handler.js +2 -2
- package/dist/server/middleware/auth/hmac.handler.js.map +1 -1
- package/dist/server/middleware/multiAuth.examples.js +12 -8
- package/dist/server/middleware/multiAuth.examples.js.map +1 -1
- package/dist/server/oracle/redis-cache-manager/market.cache.service.js +2 -2
- package/dist/server/oracle/redis-cache-manager/market.cache.service.js.map +1 -1
- package/dist/server/oracle/rmq-manager/base.queue.manager.js +1 -1
- package/dist/server/oracle/rmq-manager/base.queue.manager.js.map +1 -1
- package/dist/server/services/crypto.service.js +1 -1
- package/dist/server/services/crypto.service.js.map +1 -1
- package/dist/server/test-relayers.d.ts +1 -0
- package/dist/server/test-relayers.js +17 -0
- package/dist/server/test-relayers.js.map +1 -0
- package/package.json +1 -1
- package/dist/server/logging/coralogix.logger.d.ts +0 -86
- package/dist/server/logging/coralogix.logger.js +0 -138
- package/dist/server/logging/coralogix.logger.js.map +0 -1
- package/dist/server/logging/index.d.ts +0 -1
- package/dist/server/logging/index.js +0 -18
- package/dist/server/logging/index.js.map +0 -1
|
@@ -2,426 +2,774 @@
|
|
|
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",
|
|
7
5
|
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
|
-
{
|
|
14
|
-
inputs: [
|
|
15
|
-
{ internalType: "uint256", name: "gameId", type: "uint256" },
|
|
16
|
-
{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
|
|
17
|
-
],
|
|
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
6
|
inputs: [
|
|
95
|
-
{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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" },
|
|
7
|
+
{
|
|
8
|
+
name: "_levrConfigProvider",
|
|
9
|
+
type: "address",
|
|
10
|
+
internalType: "address",
|
|
11
|
+
},
|
|
119
12
|
],
|
|
120
|
-
|
|
121
|
-
type: "event",
|
|
13
|
+
stateMutability: "nonpayable",
|
|
122
14
|
},
|
|
123
15
|
{
|
|
124
|
-
|
|
16
|
+
type: "function",
|
|
125
17
|
name: "PRICING_MARKER_CHUNK_SIZE",
|
|
126
|
-
|
|
18
|
+
inputs: [],
|
|
19
|
+
outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
|
|
127
20
|
stateMutability: "view",
|
|
128
|
-
type: "function",
|
|
129
21
|
},
|
|
130
22
|
{
|
|
23
|
+
type: "function",
|
|
24
|
+
name: "findLiquidationSliceStart",
|
|
131
25
|
inputs: [
|
|
132
|
-
{
|
|
133
|
-
|
|
26
|
+
{
|
|
27
|
+
name: "gameMarketId",
|
|
28
|
+
type: "bytes32",
|
|
29
|
+
internalType: "bytes32",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "targetTimestamp",
|
|
33
|
+
type: "uint48",
|
|
34
|
+
internalType: "uint48",
|
|
35
|
+
},
|
|
134
36
|
],
|
|
135
|
-
name: "
|
|
136
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
37
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
137
38
|
stateMutability: "view",
|
|
138
|
-
type: "function",
|
|
139
39
|
},
|
|
140
40
|
{
|
|
141
|
-
|
|
41
|
+
type: "function",
|
|
142
42
|
name: "firstInGamePriceIndex",
|
|
143
|
-
|
|
43
|
+
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
44
|
+
outputs: [{ name: "priceIndex", type: "uint256", internalType: "uint256" }],
|
|
144
45
|
stateMutability: "view",
|
|
145
|
-
type: "function",
|
|
146
46
|
},
|
|
147
47
|
{
|
|
48
|
+
type: "function",
|
|
49
|
+
name: "getLatestOdd",
|
|
148
50
|
inputs: [
|
|
149
|
-
{
|
|
150
|
-
|
|
51
|
+
{
|
|
52
|
+
name: "gameMarketId",
|
|
53
|
+
type: "bytes32",
|
|
54
|
+
internalType: "bytes32",
|
|
55
|
+
},
|
|
56
|
+
{ name: "side", type: "uint8", internalType: "enum Side" },
|
|
151
57
|
],
|
|
152
|
-
name: "
|
|
153
|
-
outputs: [{ internalType: "int256", name: "", type: "int256" }],
|
|
58
|
+
outputs: [{ name: "", type: "int256", internalType: "int256" }],
|
|
154
59
|
stateMutability: "view",
|
|
155
|
-
type: "function",
|
|
156
60
|
},
|
|
157
61
|
{
|
|
158
|
-
|
|
62
|
+
type: "function",
|
|
159
63
|
name: "getLatestOdds",
|
|
160
|
-
|
|
64
|
+
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
65
|
+
outputs: [{ name: "", type: "int256[]", internalType: "int256[]" }],
|
|
161
66
|
stateMutability: "view",
|
|
162
|
-
type: "function",
|
|
163
67
|
},
|
|
164
68
|
{
|
|
69
|
+
type: "function",
|
|
70
|
+
name: "getLatestPrice",
|
|
165
71
|
inputs: [
|
|
166
|
-
{
|
|
167
|
-
|
|
72
|
+
{
|
|
73
|
+
name: "gameMarketId",
|
|
74
|
+
type: "bytes32",
|
|
75
|
+
internalType: "bytes32",
|
|
76
|
+
},
|
|
77
|
+
{ name: "side", type: "uint8", internalType: "enum Side" },
|
|
168
78
|
],
|
|
169
|
-
name: "
|
|
170
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
79
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
171
80
|
stateMutability: "view",
|
|
172
|
-
type: "function",
|
|
173
81
|
},
|
|
174
82
|
{
|
|
175
|
-
|
|
83
|
+
type: "function",
|
|
176
84
|
name: "getLatestPrices",
|
|
177
|
-
|
|
85
|
+
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
86
|
+
outputs: [{ name: "", type: "uint256[]", internalType: "uint256[]" }],
|
|
178
87
|
stateMutability: "view",
|
|
179
|
-
type: "function",
|
|
180
88
|
},
|
|
181
89
|
{
|
|
182
|
-
|
|
90
|
+
type: "function",
|
|
183
91
|
name: "getLatestPricingData",
|
|
92
|
+
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
184
93
|
outputs: [
|
|
185
94
|
{
|
|
186
|
-
components: [
|
|
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" },
|
|
196
|
-
],
|
|
197
|
-
internalType: "struct PricingData",
|
|
198
95
|
name: "pricing",
|
|
199
96
|
type: "tuple",
|
|
97
|
+
internalType: "struct PricingData",
|
|
98
|
+
components: [
|
|
99
|
+
{ name: "gameId", type: "uint256", internalType: "uint256" },
|
|
100
|
+
{ name: "nFactor", type: "uint256", internalType: "uint256" },
|
|
101
|
+
{
|
|
102
|
+
name: "gameMarketId",
|
|
103
|
+
type: "bytes32",
|
|
104
|
+
internalType: "bytes32",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: "status",
|
|
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" },
|
|
124
|
+
],
|
|
200
125
|
},
|
|
201
126
|
],
|
|
202
127
|
stateMutability: "view",
|
|
203
|
-
type: "function",
|
|
204
128
|
},
|
|
205
129
|
{
|
|
206
|
-
|
|
130
|
+
type: "function",
|
|
207
131
|
name: "getLatestScoreData",
|
|
132
|
+
inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
|
|
208
133
|
outputs: [
|
|
209
134
|
{
|
|
210
|
-
components: [
|
|
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" },
|
|
216
|
-
],
|
|
217
|
-
internalType: "struct ScoreData",
|
|
218
135
|
name: "scores",
|
|
219
136
|
type: "tuple",
|
|
137
|
+
internalType: "struct ScoreData",
|
|
138
|
+
components: [
|
|
139
|
+
{
|
|
140
|
+
name: "status",
|
|
141
|
+
type: "uint8",
|
|
142
|
+
internalType: "enum GameStatus",
|
|
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
|
+
},
|
|
152
|
+
],
|
|
220
153
|
},
|
|
221
154
|
],
|
|
222
155
|
stateMutability: "view",
|
|
223
|
-
type: "function",
|
|
224
156
|
},
|
|
225
157
|
{
|
|
226
|
-
|
|
158
|
+
type: "function",
|
|
227
159
|
name: "getLatestScores",
|
|
160
|
+
inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
|
|
228
161
|
outputs: [
|
|
229
|
-
{
|
|
230
|
-
{
|
|
162
|
+
{ name: "scoreH", type: "uint48", internalType: "uint48" },
|
|
163
|
+
{ name: "scoreV", type: "uint48", internalType: "uint48" },
|
|
231
164
|
],
|
|
232
165
|
stateMutability: "view",
|
|
233
|
-
type: "function",
|
|
234
166
|
},
|
|
235
167
|
{
|
|
168
|
+
type: "function",
|
|
169
|
+
name: "getPriceDataForLiquidation",
|
|
236
170
|
inputs: [
|
|
237
|
-
{
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
171
|
+
{
|
|
172
|
+
name: "gameMarketId",
|
|
173
|
+
type: "bytes32",
|
|
174
|
+
internalType: "bytes32",
|
|
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
|
+
},
|
|
241
187
|
],
|
|
242
|
-
name: "getPriceDataForLiquidation",
|
|
243
188
|
outputs: [
|
|
244
189
|
{
|
|
245
|
-
components: [
|
|
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" },
|
|
255
|
-
],
|
|
256
|
-
internalType: "struct PricingData",
|
|
257
190
|
name: "liquidationPriceData",
|
|
258
191
|
type: "tuple",
|
|
192
|
+
internalType: "struct PricingData",
|
|
193
|
+
components: [
|
|
194
|
+
{ name: "gameId", type: "uint256", internalType: "uint256" },
|
|
195
|
+
{ name: "nFactor", type: "uint256", internalType: "uint256" },
|
|
196
|
+
{
|
|
197
|
+
name: "gameMarketId",
|
|
198
|
+
type: "bytes32",
|
|
199
|
+
internalType: "bytes32",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: "status",
|
|
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" },
|
|
219
|
+
],
|
|
259
220
|
},
|
|
260
221
|
],
|
|
261
222
|
stateMutability: "view",
|
|
262
|
-
type: "function",
|
|
263
223
|
},
|
|
264
224
|
{
|
|
225
|
+
type: "function",
|
|
226
|
+
name: "getPriceDataForLiquidations",
|
|
265
227
|
inputs: [
|
|
266
|
-
{
|
|
267
|
-
|
|
228
|
+
{
|
|
229
|
+
name: "levrMarketId",
|
|
230
|
+
type: "bytes16",
|
|
231
|
+
internalType: "bytes16",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: "positionIds",
|
|
235
|
+
type: "bytes32[]",
|
|
236
|
+
internalType: "bytes32[]",
|
|
237
|
+
},
|
|
268
238
|
],
|
|
269
|
-
name: "getPriceDataForLiquidations",
|
|
270
239
|
outputs: [
|
|
271
240
|
{
|
|
272
|
-
components: [
|
|
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" },
|
|
282
|
-
],
|
|
283
|
-
internalType: "struct PricingData[]",
|
|
284
241
|
name: "liquidationPriceData",
|
|
285
242
|
type: "tuple[]",
|
|
243
|
+
internalType: "struct PricingData[]",
|
|
244
|
+
components: [
|
|
245
|
+
{ name: "gameId", type: "uint256", internalType: "uint256" },
|
|
246
|
+
{ name: "nFactor", type: "uint256", internalType: "uint256" },
|
|
247
|
+
{
|
|
248
|
+
name: "gameMarketId",
|
|
249
|
+
type: "bytes32",
|
|
250
|
+
internalType: "bytes32",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "status",
|
|
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" },
|
|
270
|
+
],
|
|
286
271
|
},
|
|
287
272
|
],
|
|
288
273
|
stateMutability: "view",
|
|
289
|
-
type: "function",
|
|
290
274
|
},
|
|
291
275
|
{
|
|
292
|
-
|
|
276
|
+
type: "function",
|
|
293
277
|
name: "getPriceUpdateMarkers",
|
|
278
|
+
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
294
279
|
outputs: [
|
|
295
280
|
{
|
|
296
|
-
components: [
|
|
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" },
|
|
303
|
-
],
|
|
304
|
-
internalType: "struct PriceUpdateMarker[]",
|
|
305
281
|
name: "markers",
|
|
306
282
|
type: "tuple[]",
|
|
283
|
+
internalType: "struct PriceUpdateMarker[]",
|
|
284
|
+
components: [
|
|
285
|
+
{
|
|
286
|
+
name: "minPriceA",
|
|
287
|
+
type: "uint256",
|
|
288
|
+
internalType: "uint256",
|
|
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
|
+
},
|
|
315
|
+
],
|
|
307
316
|
},
|
|
308
317
|
],
|
|
309
318
|
stateMutability: "view",
|
|
310
|
-
type: "function",
|
|
311
319
|
},
|
|
312
320
|
{
|
|
313
|
-
|
|
321
|
+
type: "function",
|
|
314
322
|
name: "getPricingData",
|
|
323
|
+
inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
|
|
315
324
|
outputs: [
|
|
316
325
|
{
|
|
317
|
-
components: [
|
|
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" },
|
|
327
|
-
],
|
|
328
|
-
internalType: "struct PricingData[]",
|
|
329
326
|
name: "",
|
|
330
327
|
type: "tuple[]",
|
|
328
|
+
internalType: "struct PricingData[]",
|
|
329
|
+
components: [
|
|
330
|
+
{ name: "gameId", type: "uint256", internalType: "uint256" },
|
|
331
|
+
{ name: "nFactor", type: "uint256", internalType: "uint256" },
|
|
332
|
+
{
|
|
333
|
+
name: "gameMarketId",
|
|
334
|
+
type: "bytes32",
|
|
335
|
+
internalType: "bytes32",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: "status",
|
|
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" },
|
|
355
|
+
],
|
|
331
356
|
},
|
|
332
357
|
],
|
|
333
358
|
stateMutability: "view",
|
|
334
|
-
type: "function",
|
|
335
359
|
},
|
|
336
360
|
{
|
|
337
|
-
|
|
361
|
+
type: "function",
|
|
338
362
|
name: "getScoreData",
|
|
363
|
+
inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
|
|
339
364
|
outputs: [
|
|
340
365
|
{
|
|
341
|
-
components: [
|
|
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" },
|
|
347
|
-
],
|
|
348
|
-
internalType: "struct ScoreData[]",
|
|
349
366
|
name: "",
|
|
350
367
|
type: "tuple[]",
|
|
368
|
+
internalType: "struct ScoreData[]",
|
|
369
|
+
components: [
|
|
370
|
+
{
|
|
371
|
+
name: "status",
|
|
372
|
+
type: "uint8",
|
|
373
|
+
internalType: "enum GameStatus",
|
|
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
|
+
},
|
|
383
|
+
],
|
|
351
384
|
},
|
|
352
385
|
],
|
|
353
386
|
stateMutability: "view",
|
|
354
|
-
type: "function",
|
|
355
387
|
},
|
|
356
388
|
{
|
|
389
|
+
type: "function",
|
|
390
|
+
name: "initializeGameMarketFeed",
|
|
357
391
|
inputs: [
|
|
358
|
-
{
|
|
359
|
-
|
|
360
|
-
|
|
392
|
+
{
|
|
393
|
+
name: "gameMarketId",
|
|
394
|
+
type: "bytes32",
|
|
395
|
+
internalType: "bytes32",
|
|
396
|
+
},
|
|
397
|
+
{ name: "nFactor", type: "uint256", internalType: "uint256" },
|
|
398
|
+
{ name: "odds", type: "int256[]", internalType: "int256[]" },
|
|
361
399
|
],
|
|
362
|
-
name: "initializeGameMarketFeed",
|
|
363
400
|
outputs: [],
|
|
364
401
|
stateMutability: "nonpayable",
|
|
365
|
-
type: "function",
|
|
366
402
|
},
|
|
367
403
|
{
|
|
404
|
+
type: "function",
|
|
405
|
+
name: "isMarkedForLiquidation",
|
|
368
406
|
inputs: [
|
|
369
|
-
{
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
407
|
+
{
|
|
408
|
+
name: "gameMarketId",
|
|
409
|
+
type: "bytes32",
|
|
410
|
+
internalType: "bytes32",
|
|
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
|
+
},
|
|
373
423
|
],
|
|
374
|
-
name: "
|
|
375
|
-
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
424
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
376
425
|
stateMutability: "view",
|
|
377
|
-
type: "function",
|
|
378
426
|
},
|
|
379
427
|
{
|
|
380
|
-
|
|
428
|
+
type: "function",
|
|
381
429
|
name: "levrConfigProvider",
|
|
382
|
-
|
|
430
|
+
inputs: [],
|
|
431
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
383
432
|
stateMutability: "view",
|
|
384
|
-
type: "function",
|
|
385
433
|
},
|
|
386
434
|
{
|
|
387
|
-
|
|
435
|
+
type: "function",
|
|
388
436
|
name: "supportsInterface",
|
|
389
|
-
|
|
437
|
+
inputs: [{ name: "interfaceId", type: "bytes4", internalType: "bytes4" }],
|
|
438
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
390
439
|
stateMutability: "view",
|
|
391
|
-
type: "function",
|
|
392
440
|
},
|
|
393
441
|
{
|
|
442
|
+
type: "function",
|
|
443
|
+
name: "updateGameScores",
|
|
394
444
|
inputs: [
|
|
395
|
-
{
|
|
396
|
-
{
|
|
397
|
-
|
|
398
|
-
|
|
445
|
+
{ name: "gameId", type: "uint256", internalType: "uint256" },
|
|
446
|
+
{
|
|
447
|
+
name: "gameProgressBps",
|
|
448
|
+
type: "uint16",
|
|
449
|
+
internalType: "uint16",
|
|
450
|
+
},
|
|
451
|
+
{ name: "scoreH", type: "uint48", internalType: "uint48" },
|
|
452
|
+
{ name: "scoreV", type: "uint48", internalType: "uint48" },
|
|
399
453
|
],
|
|
400
|
-
name: "updateGameScores",
|
|
401
454
|
outputs: [],
|
|
402
455
|
stateMutability: "nonpayable",
|
|
403
|
-
type: "function",
|
|
404
456
|
},
|
|
405
457
|
{
|
|
406
|
-
|
|
458
|
+
type: "function",
|
|
407
459
|
name: "updateLevrConfigProvider",
|
|
460
|
+
inputs: [
|
|
461
|
+
{
|
|
462
|
+
name: "newLevrConfigProvider",
|
|
463
|
+
type: "address",
|
|
464
|
+
internalType: "address",
|
|
465
|
+
},
|
|
466
|
+
],
|
|
408
467
|
outputs: [],
|
|
409
468
|
stateMutability: "nonpayable",
|
|
410
|
-
type: "function",
|
|
411
469
|
},
|
|
412
470
|
{
|
|
471
|
+
type: "function",
|
|
472
|
+
name: "updateMarketOdds",
|
|
413
473
|
inputs: [
|
|
414
|
-
{
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
{
|
|
474
|
+
{
|
|
475
|
+
name: "gameMarketId",
|
|
476
|
+
type: "bytes32",
|
|
477
|
+
internalType: "bytes32",
|
|
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" },
|
|
420
492
|
],
|
|
421
|
-
name: "updateMarketOdds",
|
|
422
493
|
outputs: [],
|
|
423
494
|
stateMutability: "nonpayable",
|
|
424
|
-
type: "function",
|
|
425
495
|
},
|
|
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: [] },
|
|
426
774
|
];
|
|
427
775
|
//# sourceMappingURL=LevrMarketFeed.js.map
|