@levrbet/shared 0.1.130 → 0.1.132

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.
Files changed (106) hide show
  1. package/dist/core/config/urls.d.ts +0 -32
  2. package/dist/core/config/urls.js +0 -32
  3. package/dist/core/config/urls.js.map +1 -1
  4. package/dist/core/contracts/abis/LevrConfigProvider.d.ts +2125 -1913
  5. package/dist/core/contracts/abis/LevrConfigProvider.js +1165 -2010
  6. package/dist/core/contracts/abis/LevrConfigProvider.js.map +1 -1
  7. package/dist/core/contracts/abis/LevrFeeCollector.d.ts +259 -0
  8. package/dist/core/contracts/abis/LevrFeeCollector.js +143 -0
  9. package/dist/core/contracts/abis/LevrFeeCollector.js.map +1 -0
  10. package/dist/core/contracts/abis/{LevrBaseMarket.d.ts → LevrFulltimeMarket.d.ts} +726 -685
  11. package/dist/core/contracts/abis/LevrFulltimeMarket.js +462 -0
  12. package/dist/core/contracts/abis/LevrFulltimeMarket.js.map +1 -0
  13. package/dist/core/contracts/abis/LevrFundManager.d.ts +369 -50
  14. package/dist/core/contracts/abis/LevrFundManager.js +180 -1
  15. package/dist/core/contracts/abis/LevrFundManager.js.map +1 -1
  16. package/dist/core/contracts/abis/LevrLiquidationEngine.d.ts +153 -163
  17. package/dist/core/contracts/abis/LevrLiquidationEngine.js +81 -182
  18. package/dist/core/contracts/abis/LevrLiquidationEngine.js.map +1 -1
  19. package/dist/core/contracts/abis/LevrManager.d.ts +987 -947
  20. package/dist/core/contracts/abis/LevrManager.js +453 -835
  21. package/dist/core/contracts/abis/LevrManager.js.map +1 -1
  22. package/dist/core/contracts/abis/LevrMarketFeed.d.ts +516 -516
  23. package/dist/core/contracts/abis/LevrMarketFeed.js +272 -620
  24. package/dist/core/contracts/abis/LevrMarketFeed.js.map +1 -1
  25. package/dist/core/contracts/abis/LevrMarketMaker.d.ts +175 -0
  26. package/dist/core/contracts/abis/LevrMarketMaker.js +108 -0
  27. package/dist/core/contracts/abis/LevrMarketMaker.js.map +1 -0
  28. package/dist/core/contracts/abis/LevrMarketRiskSentinel.d.ts +682 -0
  29. package/dist/core/contracts/abis/LevrMarketRiskSentinel.js +323 -0
  30. package/dist/core/contracts/abis/LevrMarketRiskSentinel.js.map +1 -0
  31. package/dist/core/contracts/abis/LevrMarketRouter.d.ts +289 -159
  32. package/dist/core/contracts/abis/LevrMarketRouter.js +133 -188
  33. package/dist/core/contracts/abis/LevrMarketRouter.js.map +1 -1
  34. package/dist/core/contracts/abis/LevrMvpDepository.d.ts +766 -0
  35. package/dist/core/contracts/abis/LevrMvpDepository.js +396 -0
  36. package/dist/core/contracts/abis/LevrMvpDepository.js.map +1 -0
  37. package/dist/core/contracts/abis/LevrMvpRouter.d.ts +414 -160
  38. package/dist/core/contracts/abis/LevrMvpRouter.js +194 -227
  39. package/dist/core/contracts/abis/LevrMvpRouter.js.map +1 -1
  40. package/dist/core/contracts/abis/LevrMvpStaker.d.ts +746 -0
  41. package/dist/core/contracts/abis/LevrMvpStaker.js +386 -0
  42. package/dist/core/contracts/abis/LevrMvpStaker.js.map +1 -0
  43. package/dist/core/contracts/abis/LevrMvpToken.d.ts +341 -0
  44. package/dist/core/contracts/abis/LevrMvpToken.js +183 -0
  45. package/dist/core/contracts/abis/LevrMvpToken.js.map +1 -0
  46. package/dist/core/contracts/abis/LevrOrderbook.d.ts +551 -356
  47. package/dist/core/contracts/abis/LevrOrderbook.js +256 -409
  48. package/dist/core/contracts/abis/LevrOrderbook.js.map +1 -1
  49. package/dist/core/contracts/abis/LevrOrderbookLens.d.ts +167 -0
  50. package/dist/core/contracts/abis/LevrOrderbookLens.js +103 -0
  51. package/dist/core/contracts/abis/LevrOrderbookLens.js.map +1 -0
  52. package/dist/core/contracts/abis/LevrOverUnderMarket.d.ts +1054 -0
  53. package/dist/core/contracts/abis/LevrOverUnderMarket.js +463 -0
  54. package/dist/core/contracts/abis/LevrOverUnderMarket.js.map +1 -0
  55. package/dist/core/contracts/abis/LevrPythFeed.d.ts +225 -0
  56. package/dist/core/contracts/abis/LevrPythFeed.js +131 -0
  57. package/dist/core/contracts/abis/LevrPythFeed.js.map +1 -0
  58. package/dist/core/contracts/abis/LevrUtil.d.ts +485 -0
  59. package/dist/core/contracts/abis/LevrUtil.js +226 -0
  60. package/dist/core/contracts/abis/LevrUtil.js.map +1 -0
  61. package/dist/core/contracts/abis/index.d.ts +11663 -4619
  62. package/dist/core/contracts/abis/index.js +28 -10
  63. package/dist/core/contracts/abis/index.js.map +1 -1
  64. package/dist/core/contracts/addresses.d.ts +104 -80
  65. package/dist/core/contracts/addresses.js +88 -64
  66. package/dist/core/contracts/addresses.js.map +1 -1
  67. package/dist/core/contracts/chains.js +0 -2
  68. package/dist/core/contracts/chains.js.map +1 -1
  69. package/dist/core/contracts/clients/publicClients.js +1 -5
  70. package/dist/core/contracts/clients/publicClients.js.map +1 -1
  71. package/dist/core/contracts/constants.d.ts +2 -3
  72. package/dist/core/contracts/constants.js +3 -5
  73. package/dist/core/contracts/constants.js.map +1 -1
  74. package/dist/core/contracts/instances.d.ts +0 -16
  75. package/dist/core/contracts/instances.js +0 -36
  76. package/dist/core/contracts/instances.js.map +1 -1
  77. package/dist/core/types/blockchain/chains.types.d.ts +0 -2
  78. package/dist/core/types/blockchain/chains.types.js +0 -2
  79. package/dist/core/types/blockchain/chains.types.js.map +1 -1
  80. package/dist/core/types/blockchain/oz.relayer.types.d.ts +2 -1
  81. package/dist/core/types/blockchain/oz.relayer.types.js +1 -0
  82. package/dist/core/types/blockchain/oz.relayer.types.js.map +1 -1
  83. package/dist/core/types/oracle/market/markets.types.d.ts +0 -1
  84. package/dist/core/types/oracle/market/markets.types.js +0 -1
  85. package/dist/core/types/oracle/market/markets.types.js.map +1 -1
  86. package/dist/core/types/oracle/market/odds.types.d.ts +6 -10
  87. package/dist/index.js +1 -0
  88. package/dist/index.js.map +1 -1
  89. package/dist/react/hooks/contracts/useContracts.d.ts +95 -41
  90. package/dist/react/hooks/contracts/useContracts.js +15 -1
  91. package/dist/react/hooks/contracts/useContracts.js.map +1 -1
  92. package/dist/server/config/urls.d.ts +0 -32
  93. package/dist/server/contracts/clients/ozRelayerService.js +1 -0
  94. package/dist/server/contracts/clients/ozRelayerService.js.map +1 -1
  95. package/dist/server/contracts/instances.d.ts +1 -16
  96. package/dist/server/contracts/instances.js +0 -22
  97. package/dist/server/contracts/instances.js.map +1 -1
  98. package/package.json +1 -1
  99. package/dist/core/contracts/abis/LevrBaseMarket.js +0 -976
  100. package/dist/core/contracts/abis/LevrBaseMarket.js.map +0 -1
  101. package/dist/core/contracts/abis/Storage.d.ts +0 -34
  102. package/dist/core/contracts/abis/Storage.js +0 -47
  103. package/dist/core/contracts/abis/Storage.js.map +0 -1
  104. package/dist/server/test-relayers.d.ts +0 -1
  105. package/dist/server/test-relayers.js +0 -17
  106. package/dist/server/test-relayers.js.map +0 -1
@@ -2,1089 +2,707 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = [
4
4
  {
5
- type: "constructor",
6
- inputs: [{ name: "_levrConfig", type: "address", internalType: "address" }],
5
+ inputs: [{ internalType: "address", name: "_levrConfig", type: "address" }],
7
6
  stateMutability: "nonpayable",
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: "LM_CANNOT_CANCEL_POST_GAME_MARKET", type: "error" },
13
+ { inputs: [], name: "LM_CANNOT_OVERRIDE_WINNER_IN_PRE_GAME", type: "error" },
14
+ {
15
+ inputs: [{ internalType: "address", name: "marketContract", type: "address" }],
16
+ name: "LM_DEPRECATED_MARKET_CONTRACT",
17
+ type: "error",
18
+ },
19
+ {
20
+ inputs: [{ internalType: "address", name: "marketContract", type: "address" }],
21
+ name: "LM_DUPLICATE_MARKET_CONTRACT",
22
+ type: "error",
23
+ },
24
+ { inputs: [{ internalType: "string", name: "marketName", type: "string" }], name: "LM_DUPLICATE_MARKET_NAME", type: "error" },
25
+ { inputs: [{ internalType: "string", name: "sportName", type: "string" }], name: "LM_DUPLICATE_SPORT_NAME", type: "error" },
26
+ {
27
+ inputs: [{ internalType: "string", name: "tournamentName", type: "string" }],
28
+ name: "LM_DUPLICATE_TOURNAMENT_NAME",
29
+ type: "error",
30
+ },
31
+ {
32
+ inputs: [
33
+ { internalType: "uint256", name: "gameId", type: "uint256" },
34
+ { internalType: "enum Side", name: "winner", type: "uint8" },
35
+ ],
36
+ name: "LM_GAME_ALREADY_SETTLED",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [{ internalType: "bytes32", name: "gameMarketId", type: "bytes32" }],
41
+ name: "LM_GAME_MARKET_NOT_ACTIVE",
42
+ type: "error",
43
+ },
44
+ { inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }], name: "LM_GAME_NOT_ENDED", type: "error" },
45
+ { inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }], name: "LM_GAME_NOT_LIVE", type: "error" },
46
+ { inputs: [], name: "LM_INVALID_ADDRESS", type: "error" },
47
+ { inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }], name: "LM_INVALID_GAME_ID", type: "error" },
48
+ {
49
+ inputs: [
50
+ { internalType: "enum GameStatus", name: "prevStatus", type: "uint8" },
51
+ { internalType: "enum GameStatus", name: "newStatus", type: "uint8" },
52
+ ],
53
+ name: "LM_INVALID_GAME_STATUS_SWITCH",
54
+ type: "error",
55
+ },
56
+ { inputs: [], name: "LM_INVALID_GAME_WINNER", type: "error" },
57
+ {
58
+ inputs: [
59
+ { internalType: "string", name: "leagueName", type: "string" },
60
+ { internalType: "string", name: "location", type: "string" },
61
+ ],
62
+ name: "LM_INVALID_LEAGUE",
63
+ type: "error",
64
+ },
65
+ { inputs: [{ internalType: "bytes8", name: "leagueId", type: "bytes8" }], name: "LM_INVALID_LEVR_LEAGUE", type: "error" },
66
+ {
67
+ inputs: [{ internalType: "bytes16", name: "marketId", type: "bytes16" }],
68
+ name: "LM_INVALID_LEVR_MARKET_ID",
69
+ type: "error",
70
+ },
71
+ { inputs: [], name: "LM_INVALID_PARAMS_LENGTH", type: "error" },
72
+ { inputs: [], name: "LM_INVALID_PROGRESS_BPS", type: "error" },
73
+ { inputs: [{ internalType: "enum Side", name: "side", type: "uint8" }], name: "LM_INVALID_SIDE", type: "error" },
74
+ { inputs: [], name: "LM_INVALID_SIDE_GROUP", type: "error" },
75
+ { inputs: [], name: "LM_INVALID_SPORT_ID", type: "error" },
76
+ { inputs: [], name: "LM_INVALID_STRING", type: "error" },
77
+ {
78
+ inputs: [{ internalType: "bytes6", name: "tournamentId", type: "bytes6" }],
79
+ name: "LM_INVALID_TOURNAMENT_ID",
80
+ type: "error",
81
+ },
82
+ { inputs: [], name: "LM_MARKET_CONTRACT_HAS_ACTIVE_MARKETS", type: "error" },
83
+ { inputs: [], name: "LM_NOT_FEED_PROVIDER_OR_MARKET_FEED_CONTRACT", type: "error" },
84
+ { inputs: [], name: "LM_NOT_GAME_ADMIN", type: "error" },
85
+ { inputs: [], name: "LM_NOT_LEVR_ADMIN", type: "error" },
86
+ {
87
+ anonymous: false,
88
+ inputs: [
89
+ { indexed: true, internalType: "address", name: "prevProvider", type: "address" },
90
+ { indexed: true, internalType: "address", name: "newProvider", type: "address" },
91
+ ],
92
+ name: "LevrConfigProviderUpdated",
93
+ type: "event",
94
+ },
95
+ {
96
+ anonymous: false,
97
+ inputs: [
98
+ { indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
99
+ { indexed: false, internalType: "string", name: "teamH", type: "string" },
100
+ { indexed: false, internalType: "string", name: "teamV", type: "string" },
101
+ { indexed: true, internalType: "bytes12", name: "levrSportId", type: "bytes12" },
102
+ { indexed: true, internalType: "bytes8", name: "levrLeagueId", type: "bytes8" },
103
+ ],
104
+ name: "LevrGameCreated",
105
+ type: "event",
106
+ },
107
+ {
108
+ anonymous: false,
109
+ inputs: [
110
+ { indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
111
+ { indexed: false, internalType: "bool", name: "paused", type: "bool" },
112
+ ],
113
+ name: "LevrGamePaused",
114
+ type: "event",
115
+ },
116
+ {
117
+ anonymous: false,
118
+ inputs: [
119
+ { indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
120
+ { indexed: false, internalType: "uint16", name: "progressBps", type: "uint16" },
121
+ ],
122
+ name: "LevrGameProgressUpdated",
123
+ type: "event",
124
+ },
125
+ {
126
+ anonymous: false,
127
+ inputs: [
128
+ { indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
129
+ { indexed: false, internalType: "enum Side", name: "winner", type: "uint8" },
130
+ { indexed: false, internalType: "uint48", name: "settledAt", type: "uint48" },
131
+ ],
132
+ name: "LevrGameSettled",
133
+ type: "event",
134
+ },
135
+ {
136
+ anonymous: false,
137
+ inputs: [
138
+ { indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
139
+ { indexed: false, internalType: "enum GameStatus", name: "status", type: "uint8" },
140
+ { indexed: false, internalType: "uint48", name: "updatedAt", type: "uint48" },
141
+ ],
142
+ name: "LevrGameStatusUpdated",
143
+ type: "event",
144
+ },
145
+ {
146
+ anonymous: false,
147
+ inputs: [
148
+ { indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
149
+ { indexed: true, internalType: "bytes6", name: "tournamentId", type: "bytes6" },
150
+ ],
151
+ name: "LevrGameTournamentUpdated",
152
+ type: "event",
153
+ },
154
+ {
155
+ anonymous: false,
156
+ inputs: [
157
+ { indexed: true, internalType: "uint256", name: "gameId", type: "uint256" },
158
+ { indexed: false, internalType: "uint48", name: "unpausedAt", type: "uint48" },
159
+ ],
160
+ name: "LevrGameUnpaused",
161
+ type: "event",
162
+ },
163
+ {
164
+ anonymous: false,
165
+ inputs: [
166
+ { indexed: true, internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
167
+ { indexed: true, internalType: "address", name: "prevMarketAddress", type: "address" },
168
+ { indexed: true, internalType: "address", name: "newMarketAddress", type: "address" },
169
+ ],
170
+ name: "LevrMarketContractUpdated",
171
+ type: "event",
172
+ },
173
+ {
174
+ anonymous: false,
175
+ inputs: [
176
+ { indexed: true, internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
177
+ { indexed: true, internalType: "enum Side", name: "winner", type: "uint8" },
178
+ { indexed: false, internalType: "enum Side", name: "winnerOverride", type: "uint8" },
179
+ ],
180
+ name: "MarketSettledWithOverride",
181
+ type: "event",
182
+ },
183
+ {
184
+ anonymous: false,
185
+ inputs: [
186
+ { indexed: true, internalType: "bytes8", name: "leagueId", type: "bytes8" },
187
+ { indexed: true, internalType: "bytes12", name: "levrSportId", type: "bytes12" },
188
+ { indexed: false, internalType: "string", name: "leagueName", type: "string" },
189
+ { indexed: false, internalType: "string", name: "location", type: "string" },
190
+ ],
191
+ name: "NewLevrLeague",
192
+ type: "event",
193
+ },
194
+ {
195
+ anonymous: false,
196
+ inputs: [
197
+ { indexed: true, internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
198
+ { indexed: false, internalType: "string", name: "name", type: "string" },
199
+ ],
200
+ name: "NewLevrMarket",
201
+ type: "event",
202
+ },
203
+ {
204
+ anonymous: false,
205
+ inputs: [
206
+ { indexed: true, internalType: "bytes12", name: "levrSportId", type: "bytes12" },
207
+ { indexed: false, internalType: "string", name: "name", type: "string" },
208
+ ],
209
+ name: "NewLevrSport",
210
+ type: "event",
211
+ },
212
+ {
213
+ anonymous: false,
214
+ inputs: [
215
+ { indexed: true, internalType: "bytes6", name: "tournamentId", type: "bytes6" },
216
+ { indexed: false, internalType: "string", name: "tournamentName", type: "string" },
217
+ { indexed: false, internalType: "string", name: "description", type: "string" },
218
+ { indexed: false, internalType: "bool", name: "exclusive", type: "bool" },
219
+ ],
220
+ name: "NewLevrTournament",
221
+ type: "event",
222
+ },
223
+ {
224
+ anonymous: false,
225
+ inputs: [
226
+ { indexed: true, internalType: "bytes6", name: "tournamentId", type: "bytes6" },
227
+ { indexed: false, internalType: "bool", name: "exclusive", type: "bool" },
228
+ ],
229
+ name: "TournamentExclusivityUpdated",
230
+ type: "event",
8
231
  },
9
232
  {
10
- type: "function",
11
- name: "addLevrLeague",
12
233
  inputs: [
13
- { name: "leagueName", type: "string", internalType: "string" },
14
- { name: "location", type: "string", internalType: "string" },
15
- { name: "levrSportId", type: "bytes12", internalType: "bytes12" },
234
+ { internalType: "string", name: "leagueName", type: "string" },
235
+ { internalType: "string", name: "location", type: "string" },
236
+ { internalType: "bytes12", name: "levrSportId", type: "bytes12" },
16
237
  ],
238
+ name: "addLevrLeague",
17
239
  outputs: [],
18
240
  stateMutability: "nonpayable",
241
+ type: "function",
19
242
  },
20
243
  {
21
- type: "function",
22
- name: "addLevrMarket",
23
244
  inputs: [
24
- {
25
- name: "marketContract",
26
- type: "address",
27
- internalType: "address",
28
- },
29
- { name: "marketName", type: "string", internalType: "string" },
30
- { name: "allowedSideGroup", type: "uint8", internalType: "uint8" },
245
+ { internalType: "address", name: "marketContract", type: "address" },
246
+ { internalType: "string", name: "marketName", type: "string" },
247
+ { internalType: "uint8", name: "allowedSideGroup", type: "uint8" },
31
248
  ],
249
+ name: "addLevrMarket",
32
250
  outputs: [],
33
251
  stateMutability: "nonpayable",
252
+ type: "function",
34
253
  },
35
254
  {
36
- type: "function",
37
- name: "addLevrSport",
38
255
  inputs: [
39
- { name: "sportsName", type: "string", internalType: "string" },
40
- { name: "scoringType", type: "string", internalType: "string" },
41
- { name: "hasDrawMarket", type: "bool", internalType: "bool" },
256
+ { internalType: "string", name: "sportsName", type: "string" },
257
+ { internalType: "string", name: "scoringType", type: "string" },
258
+ { internalType: "bool", name: "hasDrawMarket", type: "bool" },
42
259
  ],
260
+ name: "addLevrSport",
43
261
  outputs: [],
44
262
  stateMutability: "nonpayable",
263
+ type: "function",
45
264
  },
46
265
  {
47
- type: "function",
48
- name: "addLevrTournament",
49
266
  inputs: [
50
- { name: "name", type: "string", internalType: "string" },
51
- { name: "description", type: "string", internalType: "string" },
52
- { name: "exclusive", type: "bool", internalType: "bool" },
267
+ { internalType: "string", name: "name", type: "string" },
268
+ { internalType: "string", name: "description", type: "string" },
269
+ { internalType: "bool", name: "exclusive", type: "bool" },
53
270
  ],
271
+ name: "addLevrTournament",
54
272
  outputs: [],
55
273
  stateMutability: "nonpayable",
274
+ type: "function",
56
275
  },
57
276
  {
58
- type: "function",
59
- name: "cancelLevrGame",
60
277
  inputs: [
61
- { name: "gameId", type: "uint256", internalType: "uint256" },
62
- {
63
- name: "winnerOverride",
64
- type: "uint8",
65
- internalType: "enum Side",
66
- },
67
- { name: "autoResolveMarkets", type: "bool", internalType: "bool" },
278
+ { internalType: "uint256", name: "gameId", type: "uint256" },
279
+ { internalType: "enum Side", name: "winnerOverride", type: "uint8" },
280
+ { internalType: "bool", name: "autoResolveMarkets", type: "bool" },
68
281
  ],
282
+ name: "cancelLevrGame",
69
283
  outputs: [],
70
284
  stateMutability: "nonpayable",
285
+ type: "function",
71
286
  },
72
287
  {
73
- type: "function",
74
- name: "cancelLevrGameMarket",
75
288
  inputs: [
76
- { name: "gameId", type: "uint256", internalType: "uint256" },
77
- {
78
- name: "marketWinnerOverride",
79
- type: "uint8",
80
- internalType: "enum Side",
81
- },
82
- { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
289
+ { internalType: "uint256", name: "gameId", type: "uint256" },
290
+ { internalType: "enum Side", name: "marketWinnerOverride", type: "uint8" },
291
+ { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
83
292
  ],
293
+ name: "cancelLevrGameMarket",
84
294
  outputs: [],
85
295
  stateMutability: "nonpayable",
296
+ type: "function",
86
297
  },
87
298
  {
88
- type: "function",
89
- name: "changeGameTournamentId",
90
299
  inputs: [
91
- { name: "gameId", type: "uint256", internalType: "uint256" },
92
- { name: "tournamentId", type: "bytes6", internalType: "bytes6" },
300
+ { internalType: "uint256", name: "gameId", type: "uint256" },
301
+ { internalType: "bytes6", name: "tournamentId", type: "bytes6" },
93
302
  ],
303
+ name: "changeGameTournamentId",
94
304
  outputs: [],
95
305
  stateMutability: "nonpayable",
306
+ type: "function",
96
307
  },
97
308
  {
98
- type: "function",
99
- name: "createGameMarket",
100
309
  inputs: [
101
- { name: "gameId", type: "uint256", internalType: "uint256" },
102
- {
103
- name: "levrMarketId",
104
- type: "bytes16",
105
- internalType: "bytes16",
106
- },
107
- { name: "params", type: "bytes", internalType: "bytes" },
310
+ { internalType: "uint256", name: "gameId", type: "uint256" },
311
+ { internalType: "bytes16[]", name: "_levrMarketIds", type: "bytes16[]" },
312
+ { internalType: "bytes[]", name: "params", type: "bytes[]" },
108
313
  ],
314
+ name: "createGameMarket",
109
315
  outputs: [],
110
316
  stateMutability: "nonpayable",
317
+ type: "function",
111
318
  },
112
319
  {
113
- type: "function",
114
- name: "createLevrGame",
115
320
  inputs: [
116
- { name: "teamH", type: "string", internalType: "string" },
117
- { name: "teamV", type: "string", internalType: "string" },
118
- { name: "levrSportId", type: "bytes12", internalType: "bytes12" },
119
- { name: "levrLeagueId", type: "bytes8", internalType: "bytes8" },
120
- { name: "tournamentId", type: "bytes6", internalType: "bytes6" },
121
- {
122
- name: "initLevrMarkets",
123
- type: "bytes16[]",
124
- internalType: "bytes16[]",
125
- },
126
- {
127
- name: "initMarketRiskData",
128
- type: "bytes[]",
129
- internalType: "bytes[]",
130
- },
131
- { name: "customGameData", type: "bytes", internalType: "bytes" },
321
+ { internalType: "string", name: "teamH", type: "string" },
322
+ { internalType: "string", name: "teamV", type: "string" },
323
+ { internalType: "bytes12", name: "levrSportId", type: "bytes12" },
324
+ { internalType: "bytes8", name: "levrLeagueId", type: "bytes8" },
325
+ { internalType: "bytes6", name: "tournamentId", type: "bytes6" },
326
+ { internalType: "bytes16[]", name: "initLevrMarkets", type: "bytes16[]" },
327
+ { internalType: "bytes[]", name: "initMarketData", type: "bytes[]" },
328
+ { internalType: "bytes", name: "customGameData", type: "bytes" },
132
329
  ],
330
+ name: "createLevrGame",
133
331
  outputs: [],
134
332
  stateMutability: "nonpayable",
333
+ type: "function",
135
334
  },
136
335
  {
137
- type: "function",
138
- name: "gameCount",
139
336
  inputs: [],
140
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
337
+ name: "gameCount",
338
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
141
339
  stateMutability: "view",
340
+ type: "function",
142
341
  },
143
342
  {
144
- type: "function",
343
+ inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
145
344
  name: "getActiveLevrMarketsForGame",
146
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
147
- outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
345
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
148
346
  stateMutability: "view",
347
+ type: "function",
149
348
  },
150
349
  {
151
- type: "function",
152
- name: "getDeprecatedMarketContracts",
153
350
  inputs: [],
154
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
351
+ name: "getDeprecatedMarketContracts",
352
+ outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
155
353
  stateMutability: "view",
354
+ type: "function",
156
355
  },
157
356
  {
158
- type: "function",
357
+ inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
159
358
  name: "getGameActiveMarketIds",
160
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
161
- outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
359
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
162
360
  stateMutability: "view",
361
+ type: "function",
362
+ },
363
+ {
364
+ inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
365
+ name: "getGameProgressBps",
366
+ outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
367
+ stateMutability: "view",
368
+ type: "function",
163
369
  },
164
370
  {
371
+ inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
372
+ name: "getGameStatusAndProgress",
373
+ outputs: [
374
+ { internalType: "enum GameStatus", name: "status", type: "uint8" },
375
+ { internalType: "uint16", name: "progressBps", type: "uint16" },
376
+ ],
377
+ stateMutability: "view",
165
378
  type: "function",
379
+ },
380
+ {
381
+ inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
166
382
  name: "getLevrGame",
167
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
168
383
  outputs: [
169
384
  {
170
- name: "",
171
- type: "tuple",
172
- internalType: "struct LevrGame",
173
385
  components: [
174
- { name: "teamH", type: "string", internalType: "string" },
175
- { name: "teamV", type: "string", internalType: "string" },
176
- { name: "gameId", type: "uint256", internalType: "uint256" },
177
- {
178
- name: "status",
179
- type: "uint8",
180
- internalType: "enum GameStatus",
181
- },
182
- { name: "winner", type: "uint8", internalType: "enum Side" },
183
- {
184
- name: "registeredAt",
185
- type: "uint48",
186
- internalType: "uint48",
187
- },
188
- { name: "startedAt", type: "uint48", internalType: "uint48" },
189
- { name: "endedAt", type: "uint48", internalType: "uint48" },
190
- {
191
- name: "levrSportId",
192
- type: "bytes12",
193
- internalType: "bytes12",
194
- },
195
- {
196
- name: "levrLeagueId",
197
- type: "bytes8",
198
- internalType: "bytes8",
199
- },
200
- {
201
- name: "tournamentId",
202
- type: "bytes6",
203
- internalType: "bytes6",
204
- },
205
- {
206
- name: "progressBps",
207
- type: "uint16",
208
- internalType: "uint16",
209
- },
210
- { name: "paused", type: "bool", internalType: "bool" },
211
- { name: "customData", type: "bytes", internalType: "bytes" },
386
+ { internalType: "string", name: "teamH", type: "string" },
387
+ { internalType: "string", name: "teamV", type: "string" },
388
+ { internalType: "uint256", name: "gameId", type: "uint256" },
389
+ { internalType: "enum GameStatus", name: "status", type: "uint8" },
390
+ { internalType: "enum Side", name: "winner", type: "uint8" },
391
+ { internalType: "uint48", name: "registeredAt", type: "uint48" },
392
+ { internalType: "uint48", name: "startedAt", type: "uint48" },
393
+ { internalType: "uint48", name: "endedAt", type: "uint48" },
394
+ { internalType: "bytes12", name: "levrSportId", type: "bytes12" },
395
+ { internalType: "bytes8", name: "levrLeagueId", type: "bytes8" },
396
+ { internalType: "bytes6", name: "tournamentId", type: "bytes6" },
397
+ { internalType: "uint16", name: "progressBps", type: "uint16" },
398
+ { internalType: "bool", name: "paused", type: "bool" },
399
+ { internalType: "bytes", name: "customData", type: "bytes" },
212
400
  ],
401
+ internalType: "struct LevrGame",
402
+ name: "",
403
+ type: "tuple",
213
404
  },
214
405
  ],
215
406
  stateMutability: "view",
407
+ type: "function",
216
408
  },
217
409
  {
218
- type: "function",
410
+ inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
219
411
  name: "getLevrGameStatus",
220
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
221
- outputs: [{ name: "", type: "uint8", internalType: "enum GameStatus" }],
412
+ outputs: [{ internalType: "enum GameStatus", name: "", type: "uint8" }],
222
413
  stateMutability: "view",
414
+ type: "function",
223
415
  },
224
416
  {
225
- type: "function",
226
- name: "getLevrLeagueIds",
227
417
  inputs: [],
228
- outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
418
+ name: "getLevrLeagueIds",
419
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
229
420
  stateMutability: "view",
421
+ type: "function",
230
422
  },
231
423
  {
232
- type: "function",
424
+ inputs: [{ internalType: "bytes8", name: "leagueId", type: "bytes8" }],
233
425
  name: "getLevrLeagueMetadata",
234
- inputs: [{ name: "leagueId", type: "bytes8", internalType: "bytes8" }],
235
426
  outputs: [
236
427
  {
237
- name: "",
238
- type: "tuple",
239
- internalType: "struct LevrLeagueMetadata",
240
428
  components: [
241
- { name: "name", type: "string", internalType: "string" },
242
- { name: "location", type: "string", internalType: "string" },
243
- {
244
- name: "levrSportId",
245
- type: "bytes12",
246
- internalType: "bytes12",
247
- },
248
- { name: "leagueId", type: "bytes8", internalType: "bytes8" },
429
+ { internalType: "string", name: "name", type: "string" },
430
+ { internalType: "string", name: "location", type: "string" },
431
+ { internalType: "bytes12", name: "levrSportId", type: "bytes12" },
432
+ { internalType: "bytes8", name: "leagueId", type: "bytes8" },
249
433
  ],
434
+ internalType: "struct LevrLeagueMetadata",
435
+ name: "",
436
+ type: "tuple",
250
437
  },
251
438
  ],
252
439
  stateMutability: "view",
440
+ type: "function",
253
441
  },
254
442
  {
255
- type: "function",
443
+ inputs: [{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" }],
256
444
  name: "getLevrMarketContractAddress",
257
- inputs: [{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" }],
258
- outputs: [{ name: "", type: "address", internalType: "address" }],
445
+ outputs: [{ internalType: "address", name: "", type: "address" }],
259
446
  stateMutability: "view",
447
+ type: "function",
260
448
  },
261
449
  {
262
- type: "function",
450
+ inputs: [{ internalType: "bool", name: "includeDeprecated", type: "bool" }],
263
451
  name: "getLevrMarketContracts",
264
- inputs: [{ name: "includeDeprecated", type: "bool", internalType: "bool" }],
265
- outputs: [
266
- {
267
- name: "marketContracts",
268
- type: "address[]",
269
- internalType: "address[]",
270
- },
271
- ],
452
+ outputs: [{ internalType: "address[]", name: "marketContracts", type: "address[]" }],
272
453
  stateMutability: "view",
454
+ type: "function",
273
455
  },
274
456
  {
275
- type: "function",
276
- name: "getLevrMarketIds",
277
457
  inputs: [],
278
- outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
458
+ name: "getLevrMarketIds",
459
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
279
460
  stateMutability: "view",
461
+ type: "function",
280
462
  },
281
463
  {
282
- type: "function",
464
+ inputs: [{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" }],
283
465
  name: "getLevrMarketMetadata",
284
- inputs: [{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" }],
285
466
  outputs: [
286
467
  {
287
- name: "",
288
- type: "tuple",
289
- internalType: "struct LevrMarketMetadata",
290
468
  components: [
291
- {
292
- name: "marketName",
293
- type: "string",
294
- internalType: "string",
295
- },
296
- {
297
- name: "marketAddress",
298
- type: "address",
299
- internalType: "address",
300
- },
301
- {
302
- name: "marketId",
303
- type: "bytes16",
304
- internalType: "bytes16",
305
- },
306
- {
307
- name: "allowedSideGroup",
308
- type: "uint8",
309
- internalType: "uint8",
310
- },
469
+ { internalType: "string", name: "marketName", type: "string" },
470
+ { internalType: "address", name: "marketAddress", type: "address" },
471
+ { internalType: "bytes16", name: "marketId", type: "bytes16" },
472
+ { internalType: "uint8", name: "allowedSideGroup", type: "uint8" },
311
473
  ],
312
- },
474
+ internalType: "struct LevrMarketMetadata",
475
+ name: "",
476
+ type: "tuple",
477
+ },
313
478
  ],
314
479
  stateMutability: "view",
480
+ type: "function",
315
481
  },
316
482
  {
317
- type: "function",
318
- name: "getLevrSportIds",
319
483
  inputs: [],
320
- outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
484
+ name: "getLevrSportIds",
485
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
321
486
  stateMutability: "view",
487
+ type: "function",
322
488
  },
323
489
  {
324
- type: "function",
490
+ inputs: [{ internalType: "bytes12", name: "levrSportId", type: "bytes12" }],
325
491
  name: "getLevrSportsMetadata",
326
- inputs: [{ name: "levrSportId", type: "bytes12", internalType: "bytes12" }],
327
492
  outputs: [
328
493
  {
329
- name: "",
330
- type: "tuple",
331
- internalType: "struct LevrSportMetadata",
332
494
  components: [
333
- { name: "name", type: "string", internalType: "string" },
334
- { name: "scoreType", type: "string", internalType: "string" },
335
- {
336
- name: "levrSportId",
337
- type: "bytes12",
338
- internalType: "bytes12",
339
- },
340
- { name: "hasDraw", type: "bool", internalType: "bool" },
495
+ { internalType: "string", name: "name", type: "string" },
496
+ { internalType: "string", name: "scoreType", type: "string" },
497
+ { internalType: "bytes12", name: "levrSportId", type: "bytes12" },
498
+ { internalType: "bool", name: "hasDraw", type: "bool" },
341
499
  ],
500
+ internalType: "struct LevrSportMetadata",
501
+ name: "",
502
+ type: "tuple",
342
503
  },
343
504
  ],
344
505
  stateMutability: "view",
506
+ type: "function",
345
507
  },
346
508
  {
347
- type: "function",
348
- name: "getLevrTournamentIds",
349
509
  inputs: [],
350
- outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
510
+ name: "getLevrTournamentIds",
511
+ outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
351
512
  stateMutability: "view",
513
+ type: "function",
352
514
  },
353
515
  {
354
- type: "function",
516
+ inputs: [{ internalType: "bytes6", name: "tournamentId", type: "bytes6" }],
355
517
  name: "getLevrTournamentMetadata",
356
- inputs: [{ name: "tournamentId", type: "bytes6", internalType: "bytes6" }],
357
518
  outputs: [
358
519
  {
359
- name: "",
360
- type: "tuple",
361
- internalType: "struct LevrTournamentMetadata",
362
520
  components: [
363
- { name: "name", type: "string", internalType: "string" },
364
- {
365
- name: "description",
366
- type: "string",
367
- internalType: "string",
368
- },
369
- {
370
- name: "tournamentId",
371
- type: "bytes6",
372
- internalType: "bytes6",
373
- },
374
- { name: "exclusive", type: "bool", internalType: "bool" },
521
+ { internalType: "string", name: "name", type: "string" },
522
+ { internalType: "string", name: "description", type: "string" },
523
+ { internalType: "bytes6", name: "tournamentId", type: "bytes6" },
524
+ { internalType: "bool", name: "exclusive", type: "bool" },
375
525
  ],
526
+ internalType: "struct LevrTournamentMetadata",
527
+ name: "",
528
+ type: "tuple",
376
529
  },
377
530
  ],
378
531
  stateMutability: "view",
532
+ type: "function",
379
533
  },
380
534
  {
381
- type: "function",
382
- name: "isActiveLevrMarketForGame",
383
535
  inputs: [
384
- { name: "gameId", type: "uint256", internalType: "uint256" },
385
- { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
536
+ { internalType: "uint256", name: "gameId", type: "uint256" },
537
+ { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
386
538
  ],
387
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
539
+ name: "isActiveLevrMarketForGame",
540
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
388
541
  stateMutability: "view",
542
+ type: "function",
389
543
  },
390
544
  {
391
- type: "function",
545
+ inputs: [{ internalType: "address", name: "marketContract", type: "address" }],
392
546
  name: "isDeprecatedMarketContract",
393
- inputs: [
394
- {
395
- name: "marketContract",
396
- type: "address",
397
- internalType: "address",
398
- },
399
- ],
400
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
547
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
401
548
  stateMutability: "view",
549
+ type: "function",
402
550
  },
403
551
  {
404
- type: "function",
405
- name: "isGameActiveMarket",
406
552
  inputs: [
407
- { name: "gameId", type: "uint256", internalType: "uint256" },
408
- { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
553
+ { internalType: "uint256", name: "gameId", type: "uint256" },
554
+ { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
409
555
  ],
410
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
556
+ name: "isGameActiveMarket",
557
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
411
558
  stateMutability: "view",
559
+ type: "function",
412
560
  },
413
561
  {
414
- type: "function",
562
+ inputs: [{ internalType: "bytes8", name: "leagueId", type: "bytes8" }],
415
563
  name: "isLevrLeagueId",
416
- inputs: [{ name: "leagueId", type: "bytes8", internalType: "bytes8" }],
417
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
564
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
418
565
  stateMutability: "view",
566
+ type: "function",
419
567
  },
420
568
  {
421
- type: "function",
569
+ inputs: [{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" }],
422
570
  name: "isLevrMarketId",
423
- inputs: [{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" }],
424
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
571
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
425
572
  stateMutability: "view",
573
+ type: "function",
426
574
  },
427
575
  {
428
- type: "function",
576
+ inputs: [{ internalType: "bytes12", name: "levrSportId", type: "bytes12" }],
429
577
  name: "isLevrSportId",
430
- inputs: [{ name: "levrSportId", type: "bytes12", internalType: "bytes12" }],
431
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
578
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
432
579
  stateMutability: "view",
580
+ type: "function",
433
581
  },
434
582
  {
435
- type: "function",
583
+ inputs: [{ internalType: "bytes6", name: "tournamentId", type: "bytes6" }],
436
584
  name: "isLevrTournamentId",
437
- inputs: [{ name: "tournamentId", type: "bytes6", internalType: "bytes6" }],
438
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
585
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
439
586
  stateMutability: "view",
587
+ type: "function",
440
588
  },
441
589
  {
442
- type: "function",
443
- name: "levrConfigProvider",
444
590
  inputs: [],
445
- outputs: [{ name: "", type: "address", internalType: "address" }],
591
+ name: "levrConfigProvider",
592
+ outputs: [{ internalType: "address", name: "", type: "address" }],
446
593
  stateMutability: "view",
594
+ type: "function",
447
595
  },
448
596
  {
449
- type: "function",
597
+ inputs: [{ internalType: "address", name: "", type: "address" }],
450
598
  name: "levrMarketIdByAddress",
451
- inputs: [{ name: "", type: "address", internalType: "address" }],
452
- outputs: [{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" }],
599
+ outputs: [{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" }],
453
600
  stateMutability: "view",
601
+ type: "function",
454
602
  },
455
603
  {
456
- type: "function",
457
- name: "openOrCloseGameMarket",
458
604
  inputs: [
459
- {
460
- name: "gameMarketId",
461
- type: "bytes32",
462
- internalType: "bytes32",
463
- },
464
- {
465
- name: "levrMarketId",
466
- type: "bytes16",
467
- internalType: "bytes16",
468
- },
469
- { name: "open", type: "bool", internalType: "bool" },
605
+ { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
606
+ { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
607
+ { internalType: "bool", name: "open", type: "bool" },
470
608
  ],
609
+ name: "openOrCloseGameMarket",
471
610
  outputs: [],
472
611
  stateMutability: "nonpayable",
612
+ type: "function",
473
613
  },
474
614
  {
475
- type: "function",
476
- name: "pauseOrUnpauseGame",
477
615
  inputs: [
478
- { name: "gameId", type: "uint256", internalType: "uint256" },
479
- { name: "pause", type: "bool", internalType: "bool" },
616
+ { internalType: "uint256", name: "gameId", type: "uint256" },
617
+ { internalType: "bool", name: "pause", type: "bool" },
480
618
  ],
619
+ name: "pauseOrUnpauseGame",
481
620
  outputs: [],
482
621
  stateMutability: "nonpayable",
622
+ type: "function",
483
623
  },
484
624
  {
485
- type: "function",
625
+ inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
486
626
  name: "settleAllGameMarkets",
487
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
488
627
  outputs: [],
489
628
  stateMutability: "nonpayable",
629
+ type: "function",
490
630
  },
491
631
  {
492
- type: "function",
493
- name: "settleGame",
494
632
  inputs: [
495
- { name: "gameId", type: "uint256", internalType: "uint256" },
496
- { name: "winner", type: "uint8", internalType: "enum Side" },
497
- { name: "autoResolveMarkets", type: "bool", internalType: "bool" },
633
+ { internalType: "uint256", name: "gameId", type: "uint256" },
634
+ { internalType: "enum Side", name: "winner", type: "uint8" },
635
+ { internalType: "bool", name: "autoResolveMarkets", type: "bool" },
498
636
  ],
637
+ name: "settleGame",
499
638
  outputs: [],
500
639
  stateMutability: "nonpayable",
640
+ type: "function",
501
641
  },
502
642
  {
503
- type: "function",
504
- name: "settleGameMarket",
505
643
  inputs: [
506
- { name: "gameId", type: "uint256", internalType: "uint256" },
507
- {
508
- name: "levrMarketId",
509
- type: "bytes16",
510
- internalType: "bytes16",
511
- },
512
- {
513
- name: "winnerOverride",
514
- type: "uint8",
515
- internalType: "enum Side",
516
- },
644
+ { internalType: "uint256", name: "gameId", type: "uint256" },
645
+ { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
646
+ { internalType: "enum Side", name: "winnerOverride", type: "uint8" },
517
647
  ],
648
+ name: "settleGameMarket",
518
649
  outputs: [],
519
650
  stateMutability: "nonpayable",
651
+ type: "function",
520
652
  },
521
653
  {
522
- type: "function",
654
+ inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
523
655
  name: "supportsInterface",
524
- inputs: [{ name: "interfaceId", type: "bytes4", internalType: "bytes4" }],
525
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
656
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
526
657
  stateMutability: "view",
658
+ type: "function",
527
659
  },
528
660
  {
529
- type: "function",
530
- name: "updateGameProgress",
531
661
  inputs: [
532
- { name: "gameId", type: "uint256", internalType: "uint256" },
533
- { name: "progressBps", type: "uint16", internalType: "uint16" },
534
- ],
535
- outputs: [
536
- {
537
- name: "updatedProgressBps",
538
- type: "uint16",
539
- internalType: "uint16",
540
- },
662
+ { internalType: "uint256", name: "gameId", type: "uint256" },
663
+ { internalType: "uint16", name: "progressBps", type: "uint16" },
541
664
  ],
665
+ name: "updateGameProgress",
666
+ outputs: [{ internalType: "uint16", name: "updatedProgressBps", type: "uint16" }],
542
667
  stateMutability: "nonpayable",
668
+ type: "function",
543
669
  },
544
670
  {
545
- type: "function",
546
- name: "updateGameStatus",
547
671
  inputs: [
548
- { name: "gameId", type: "uint256", internalType: "uint256" },
549
- { name: "status", type: "uint8", internalType: "enum GameStatus" },
672
+ { internalType: "uint256", name: "gameId", type: "uint256" },
673
+ { internalType: "enum GameStatus", name: "status", type: "uint8" },
550
674
  ],
675
+ name: "updateGameStatus",
551
676
  outputs: [],
552
677
  stateMutability: "nonpayable",
678
+ type: "function",
553
679
  },
554
680
  {
555
- type: "function",
681
+ inputs: [{ internalType: "address", name: "newLevrConfigProvider", type: "address" }],
556
682
  name: "updateLevrConfigProvider",
557
- inputs: [
558
- {
559
- name: "newLevrConfigProvider",
560
- type: "address",
561
- internalType: "address",
562
- },
563
- ],
564
683
  outputs: [],
565
684
  stateMutability: "nonpayable",
685
+ type: "function",
566
686
  },
567
687
  {
568
- type: "function",
569
- name: "updateLevrMarketAddress",
570
688
  inputs: [
571
- {
572
- name: "levrMarketId",
573
- type: "bytes16",
574
- internalType: "bytes16",
575
- },
576
- {
577
- name: "newMarketAddress",
578
- type: "address",
579
- internalType: "address",
580
- },
689
+ { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
690
+ { internalType: "address", name: "newMarketAddress", type: "address" },
581
691
  ],
692
+ name: "updateLevrMarketAddress",
582
693
  outputs: [],
583
694
  stateMutability: "nonpayable",
695
+ type: "function",
584
696
  },
585
697
  {
586
- type: "function",
587
- name: "updateTournamentExclusivity",
588
698
  inputs: [
589
- { name: "tournamentId", type: "bytes6", internalType: "bytes6" },
590
- { name: "exclusive", type: "bool", internalType: "bool" },
699
+ { internalType: "bytes6", name: "tournamentId", type: "bytes6" },
700
+ { internalType: "bool", name: "exclusive", type: "bool" },
591
701
  ],
702
+ name: "updateTournamentExclusivity",
592
703
  outputs: [],
593
704
  stateMutability: "nonpayable",
705
+ type: "function",
594
706
  },
595
- {
596
- type: "event",
597
- name: "LevrConfigProviderUpdated",
598
- inputs: [
599
- {
600
- name: "prevProvider",
601
- type: "address",
602
- indexed: true,
603
- internalType: "address",
604
- },
605
- {
606
- name: "newProvider",
607
- type: "address",
608
- indexed: true,
609
- internalType: "address",
610
- },
611
- ],
612
- anonymous: false,
613
- },
614
- {
615
- type: "event",
616
- name: "LevrGameCreated",
617
- inputs: [
618
- {
619
- name: "gameId",
620
- type: "uint256",
621
- indexed: true,
622
- internalType: "uint256",
623
- },
624
- {
625
- name: "teamH",
626
- type: "string",
627
- indexed: false,
628
- internalType: "string",
629
- },
630
- {
631
- name: "teamV",
632
- type: "string",
633
- indexed: false,
634
- internalType: "string",
635
- },
636
- {
637
- name: "levrSportId",
638
- type: "bytes12",
639
- indexed: true,
640
- internalType: "bytes12",
641
- },
642
- {
643
- name: "levrLeagueId",
644
- type: "bytes8",
645
- indexed: true,
646
- internalType: "bytes8",
647
- },
648
- ],
649
- anonymous: false,
650
- },
651
- {
652
- type: "event",
653
- name: "LevrGamePaused",
654
- inputs: [
655
- {
656
- name: "gameId",
657
- type: "uint256",
658
- indexed: true,
659
- internalType: "uint256",
660
- },
661
- {
662
- name: "pausedAt",
663
- type: "uint48",
664
- indexed: false,
665
- internalType: "uint48",
666
- },
667
- ],
668
- anonymous: false,
669
- },
670
- {
671
- type: "event",
672
- name: "LevrGameProgressUpdated",
673
- inputs: [
674
- {
675
- name: "gameId",
676
- type: "uint256",
677
- indexed: true,
678
- internalType: "uint256",
679
- },
680
- {
681
- name: "progressBps",
682
- type: "uint16",
683
- indexed: false,
684
- internalType: "uint16",
685
- },
686
- ],
687
- anonymous: false,
688
- },
689
- {
690
- type: "event",
691
- name: "LevrGameSettled",
692
- inputs: [
693
- {
694
- name: "gameId",
695
- type: "uint256",
696
- indexed: true,
697
- internalType: "uint256",
698
- },
699
- {
700
- name: "winner",
701
- type: "uint8",
702
- indexed: false,
703
- internalType: "enum Side",
704
- },
705
- {
706
- name: "settledAt",
707
- type: "uint48",
708
- indexed: false,
709
- internalType: "uint48",
710
- },
711
- ],
712
- anonymous: false,
713
- },
714
- {
715
- type: "event",
716
- name: "LevrGameStatusUpdated",
717
- inputs: [
718
- {
719
- name: "gameId",
720
- type: "uint256",
721
- indexed: true,
722
- internalType: "uint256",
723
- },
724
- {
725
- name: "status",
726
- type: "uint8",
727
- indexed: false,
728
- internalType: "enum GameStatus",
729
- },
730
- {
731
- name: "updatedAt",
732
- type: "uint48",
733
- indexed: false,
734
- internalType: "uint48",
735
- },
736
- ],
737
- anonymous: false,
738
- },
739
- {
740
- type: "event",
741
- name: "LevrGameTournamentUpdated",
742
- inputs: [
743
- {
744
- name: "gameId",
745
- type: "uint256",
746
- indexed: true,
747
- internalType: "uint256",
748
- },
749
- {
750
- name: "tournamentId",
751
- type: "bytes6",
752
- indexed: true,
753
- internalType: "bytes6",
754
- },
755
- ],
756
- anonymous: false,
757
- },
758
- {
759
- type: "event",
760
- name: "LevrGameUnpaused",
761
- inputs: [
762
- {
763
- name: "gameId",
764
- type: "uint256",
765
- indexed: true,
766
- internalType: "uint256",
767
- },
768
- {
769
- name: "unpausedAt",
770
- type: "uint48",
771
- indexed: false,
772
- internalType: "uint48",
773
- },
774
- ],
775
- anonymous: false,
776
- },
777
- {
778
- type: "event",
779
- name: "LevrMarketContractUpdated",
780
- inputs: [
781
- {
782
- name: "levrMarketId",
783
- type: "bytes16",
784
- indexed: true,
785
- internalType: "bytes16",
786
- },
787
- {
788
- name: "prevMarketAddress",
789
- type: "address",
790
- indexed: true,
791
- internalType: "address",
792
- },
793
- {
794
- name: "newMarketAddress",
795
- type: "address",
796
- indexed: true,
797
- internalType: "address",
798
- },
799
- ],
800
- anonymous: false,
801
- },
802
- {
803
- type: "event",
804
- name: "MarketSettledWithOverride",
805
- inputs: [
806
- {
807
- name: "gameMarketId",
808
- type: "bytes32",
809
- indexed: true,
810
- internalType: "bytes32",
811
- },
812
- {
813
- name: "winner",
814
- type: "uint8",
815
- indexed: true,
816
- internalType: "enum Side",
817
- },
818
- {
819
- name: "winnerOverride",
820
- type: "uint8",
821
- indexed: false,
822
- internalType: "enum Side",
823
- },
824
- ],
825
- anonymous: false,
826
- },
827
- {
828
- type: "event",
829
- name: "NewLevrLeague",
830
- inputs: [
831
- {
832
- name: "leagueId",
833
- type: "bytes8",
834
- indexed: true,
835
- internalType: "bytes8",
836
- },
837
- {
838
- name: "levrSportId",
839
- type: "bytes12",
840
- indexed: true,
841
- internalType: "bytes12",
842
- },
843
- {
844
- name: "leagueName",
845
- type: "string",
846
- indexed: false,
847
- internalType: "string",
848
- },
849
- {
850
- name: "location",
851
- type: "string",
852
- indexed: false,
853
- internalType: "string",
854
- },
855
- ],
856
- anonymous: false,
857
- },
858
- {
859
- type: "event",
860
- name: "NewLevrMarket",
861
- inputs: [
862
- {
863
- name: "levrMarketId",
864
- type: "bytes16",
865
- indexed: true,
866
- internalType: "bytes16",
867
- },
868
- {
869
- name: "name",
870
- type: "string",
871
- indexed: false,
872
- internalType: "string",
873
- },
874
- ],
875
- anonymous: false,
876
- },
877
- {
878
- type: "event",
879
- name: "NewLevrSport",
880
- inputs: [
881
- {
882
- name: "levrSportId",
883
- type: "bytes12",
884
- indexed: true,
885
- internalType: "bytes12",
886
- },
887
- {
888
- name: "name",
889
- type: "string",
890
- indexed: false,
891
- internalType: "string",
892
- },
893
- ],
894
- anonymous: false,
895
- },
896
- {
897
- type: "event",
898
- name: "NewLevrTournament",
899
- inputs: [
900
- {
901
- name: "tournamentId",
902
- type: "bytes6",
903
- indexed: true,
904
- internalType: "bytes6",
905
- },
906
- {
907
- name: "tournamentName",
908
- type: "string",
909
- indexed: false,
910
- internalType: "string",
911
- },
912
- {
913
- name: "description",
914
- type: "string",
915
- indexed: false,
916
- internalType: "string",
917
- },
918
- {
919
- name: "exclusive",
920
- type: "bool",
921
- indexed: false,
922
- internalType: "bool",
923
- },
924
- ],
925
- anonymous: false,
926
- },
927
- {
928
- type: "event",
929
- name: "TournamentExclusivityUpdated",
930
- inputs: [
931
- {
932
- name: "tournamentId",
933
- type: "bytes6",
934
- indexed: true,
935
- internalType: "bytes6",
936
- },
937
- {
938
- name: "exclusive",
939
- type: "bool",
940
- indexed: false,
941
- internalType: "bool",
942
- },
943
- ],
944
- anonymous: false,
945
- },
946
- { type: "error", name: "LB_CONFIG_INVALID_INTERFACE", inputs: [] },
947
- {
948
- type: "error",
949
- name: "LB_CONFIG_PROVIDER_NOT_CONTRACT",
950
- inputs: [],
951
- },
952
- { type: "error", name: "LB_NOT_LEVR_ADMIN", inputs: [] },
953
- {
954
- type: "error",
955
- name: "LM_CANNOT_CANCEL_POST_GAME_MARKET",
956
- inputs: [],
957
- },
958
- {
959
- type: "error",
960
- name: "LM_CANNOT_OVERRIDE_WINNER_IN_PRE_GAME",
961
- inputs: [],
962
- },
963
- {
964
- type: "error",
965
- name: "LM_DEPRECATED_MARKET_CONTRACT",
966
- inputs: [
967
- {
968
- name: "marketContract",
969
- type: "address",
970
- internalType: "address",
971
- },
972
- ],
973
- },
974
- {
975
- type: "error",
976
- name: "LM_DUPLICATE_MARKET_CONTRACT",
977
- inputs: [
978
- {
979
- name: "marketContract",
980
- type: "address",
981
- internalType: "address",
982
- },
983
- ],
984
- },
985
- {
986
- type: "error",
987
- name: "LM_DUPLICATE_MARKET_NAME",
988
- inputs: [{ name: "marketName", type: "string", internalType: "string" }],
989
- },
990
- {
991
- type: "error",
992
- name: "LM_DUPLICATE_SPORT_NAME",
993
- inputs: [{ name: "sportName", type: "string", internalType: "string" }],
994
- },
995
- {
996
- type: "error",
997
- name: "LM_DUPLICATE_TOURNAMENT_NAME",
998
- inputs: [{ name: "tournamentName", type: "string", internalType: "string" }],
999
- },
1000
- {
1001
- type: "error",
1002
- name: "LM_GAME_ALREADY_SETTLED",
1003
- inputs: [
1004
- { name: "gameId", type: "uint256", internalType: "uint256" },
1005
- { name: "winner", type: "uint8", internalType: "enum Side" },
1006
- ],
1007
- },
1008
- {
1009
- type: "error",
1010
- name: "LM_GAME_MARKET_NOT_ACTIVE",
1011
- inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
1012
- },
1013
- {
1014
- type: "error",
1015
- name: "LM_GAME_NOT_ENDED",
1016
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
1017
- },
1018
- {
1019
- type: "error",
1020
- name: "LM_GAME_NOT_STARTED",
1021
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
1022
- },
1023
- { type: "error", name: "LM_INVALID_ADDRESS", inputs: [] },
1024
- {
1025
- type: "error",
1026
- name: "LM_INVALID_GAME_ID",
1027
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
1028
- },
1029
- {
1030
- type: "error",
1031
- name: "LM_INVALID_GAME_STATUS_SWITCH",
1032
- inputs: [
1033
- {
1034
- name: "prevStatus",
1035
- type: "uint8",
1036
- internalType: "enum GameStatus",
1037
- },
1038
- {
1039
- name: "newStatus",
1040
- type: "uint8",
1041
- internalType: "enum GameStatus",
1042
- },
1043
- ],
1044
- },
1045
- { type: "error", name: "LM_INVALID_GAME_WINNER", inputs: [] },
1046
- {
1047
- type: "error",
1048
- name: "LM_INVALID_LEAGUE",
1049
- inputs: [
1050
- { name: "leagueName", type: "string", internalType: "string" },
1051
- { name: "location", type: "string", internalType: "string" },
1052
- ],
1053
- },
1054
- {
1055
- type: "error",
1056
- name: "LM_INVALID_LEVR_LEAGUE",
1057
- inputs: [{ name: "leagueId", type: "bytes8", internalType: "bytes8" }],
1058
- },
1059
- {
1060
- type: "error",
1061
- name: "LM_INVALID_LEVR_MARKET_ID",
1062
- inputs: [{ name: "marketId", type: "bytes16", internalType: "bytes16" }],
1063
- },
1064
- {
1065
- type: "error",
1066
- name: "LM_INVALID_SIDE",
1067
- inputs: [{ name: "side", type: "uint8", internalType: "enum Side" }],
1068
- },
1069
- { type: "error", name: "LM_INVALID_SIDE_GROUP", inputs: [] },
1070
- { type: "error", name: "LM_INVALID_SPORT_ID", inputs: [] },
1071
- { type: "error", name: "LM_INVALID_STRING", inputs: [] },
1072
- {
1073
- type: "error",
1074
- name: "LM_INVALID_TOURNAMENT_ID",
1075
- inputs: [{ name: "tournamentId", type: "bytes6", internalType: "bytes6" }],
1076
- },
1077
- {
1078
- type: "error",
1079
- name: "LM_MARKET_CONTRACT_HAS_ACTIVE_MARKETS",
1080
- inputs: [],
1081
- },
1082
- { type: "error", name: "LM_NOT_GAME_ADMIN", inputs: [] },
1083
- {
1084
- type: "error",
1085
- name: "LM_NOT_GAME_ADMIN_OR_MARKET_FEED",
1086
- inputs: [],
1087
- },
1088
- { type: "error", name: "LM_NOT_LEVR_ADMIN", inputs: [] },
1089
707
  ];
1090
708
  //# sourceMappingURL=LevrManager.js.map