@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.
Files changed (89) hide show
  1. package/dist/core/contracts/abis/LevrBaseMarket.d.ts +1009 -0
  2. package/dist/core/contracts/abis/LevrBaseMarket.js +976 -0
  3. package/dist/core/contracts/abis/LevrBaseMarket.js.map +1 -0
  4. package/dist/core/contracts/abis/LevrConfigProvider.d.ts +1918 -2130
  5. package/dist/core/contracts/abis/LevrConfigProvider.js +2007 -1162
  6. package/dist/core/contracts/abis/LevrConfigProvider.js.map +1 -1
  7. package/dist/core/contracts/abis/LevrFundManager.d.ts +50 -369
  8. package/dist/core/contracts/abis/LevrFundManager.js +1 -180
  9. package/dist/core/contracts/abis/LevrFundManager.js.map +1 -1
  10. package/dist/core/contracts/abis/LevrLiquidationEngine.d.ts +163 -153
  11. package/dist/core/contracts/abis/LevrLiquidationEngine.js +182 -81
  12. package/dist/core/contracts/abis/LevrLiquidationEngine.js.map +1 -1
  13. package/dist/core/contracts/abis/LevrManager.d.ts +978 -1018
  14. package/dist/core/contracts/abis/LevrManager.js +835 -453
  15. package/dist/core/contracts/abis/LevrManager.js.map +1 -1
  16. package/dist/core/contracts/abis/LevrMarketFeed.d.ts +515 -515
  17. package/dist/core/contracts/abis/LevrMarketFeed.js +620 -272
  18. package/dist/core/contracts/abis/LevrMarketFeed.js.map +1 -1
  19. package/dist/core/contracts/abis/LevrMarketRouter.d.ts +159 -289
  20. package/dist/core/contracts/abis/LevrMarketRouter.js +188 -133
  21. package/dist/core/contracts/abis/LevrMarketRouter.js.map +1 -1
  22. package/dist/core/contracts/abis/LevrMvpRouter.d.ts +160 -414
  23. package/dist/core/contracts/abis/LevrMvpRouter.js +227 -194
  24. package/dist/core/contracts/abis/LevrMvpRouter.js.map +1 -1
  25. package/dist/core/contracts/abis/LevrOrderbook.d.ts +367 -562
  26. package/dist/core/contracts/abis/LevrOrderbook.js +409 -256
  27. package/dist/core/contracts/abis/LevrOrderbook.js.map +1 -1
  28. package/dist/core/contracts/abis/LevrUtil.d.ts +3 -3
  29. package/dist/core/contracts/abis/LevrUtil.js +3 -3
  30. package/dist/core/contracts/abis/LevrUtil.js.map +1 -1
  31. package/dist/core/contracts/abis/Storage.d.ts +34 -0
  32. package/dist/core/contracts/abis/Storage.js +47 -0
  33. package/dist/core/contracts/abis/Storage.js.map +1 -0
  34. package/dist/core/contracts/abis/index.d.ts +8470 -9575
  35. package/dist/core/contracts/abis/index.js +13 -9
  36. package/dist/core/contracts/abis/index.js.map +1 -1
  37. package/dist/core/contracts/addresses.d.ts +92 -114
  38. package/dist/core/contracts/addresses.js +85 -108
  39. package/dist/core/contracts/addresses.js.map +1 -1
  40. package/dist/core/contracts/constants.d.ts +3 -2
  41. package/dist/core/contracts/constants.js +5 -3
  42. package/dist/core/contracts/constants.js.map +1 -1
  43. package/dist/core/types/oracle/market/index.d.ts +1 -0
  44. package/dist/core/types/oracle/market/index.js +1 -0
  45. package/dist/core/types/oracle/market/index.js.map +1 -1
  46. package/dist/core/types/oracle/market/positions.types.d.ts +45 -0
  47. package/dist/core/types/oracle/market/positions.types.js +3 -0
  48. package/dist/core/types/oracle/market/positions.types.js.map +1 -0
  49. package/dist/core/types/oracle/requests/game.request.types.d.ts +1 -9
  50. package/dist/core/types/oracle/requests/game.request.types.js +2 -9
  51. package/dist/core/types/oracle/requests/game.request.types.js.map +1 -1
  52. package/dist/react/hooks/contracts/useContracts.d.ts +84 -80
  53. package/dist/server/config/kms.d.ts +1 -1
  54. package/dist/server/config/kms.js +5 -1
  55. package/dist/server/config/kms.js.map +1 -1
  56. package/dist/server/config/prisma.js +5 -1
  57. package/dist/server/config/prisma.js.map +1 -1
  58. package/dist/server/config/redis.js +6 -5
  59. package/dist/server/config/redis.js.map +1 -1
  60. package/dist/server/config/winston.d.ts +12 -0
  61. package/dist/server/config/winston.js +95 -5
  62. package/dist/server/config/winston.js.map +1 -1
  63. package/dist/server/contracts/clients/ozRelayerService.js +12 -12
  64. package/dist/server/contracts/clients/ozRelayerService.js.map +1 -1
  65. package/dist/server/index.d.ts +0 -1
  66. package/dist/server/index.js +0 -1
  67. package/dist/server/index.js.map +1 -1
  68. package/dist/server/middleware/auth/cloudflare.handler.js +5 -1
  69. package/dist/server/middleware/auth/cloudflare.handler.js.map +1 -1
  70. package/dist/server/middleware/auth/hmac.handler.js +2 -2
  71. package/dist/server/middleware/auth/hmac.handler.js.map +1 -1
  72. package/dist/server/middleware/multiAuth.examples.js +12 -8
  73. package/dist/server/middleware/multiAuth.examples.js.map +1 -1
  74. package/dist/server/oracle/redis-cache-manager/market.cache.service.js +2 -2
  75. package/dist/server/oracle/redis-cache-manager/market.cache.service.js.map +1 -1
  76. package/dist/server/oracle/rmq-manager/base.queue.manager.js +1 -1
  77. package/dist/server/oracle/rmq-manager/base.queue.manager.js.map +1 -1
  78. package/dist/server/services/crypto.service.js +1 -1
  79. package/dist/server/services/crypto.service.js.map +1 -1
  80. package/dist/server/test-relayers.d.ts +1 -0
  81. package/dist/server/test-relayers.js +17 -0
  82. package/dist/server/test-relayers.js.map +1 -0
  83. package/package.json +1 -1
  84. package/dist/server/logging/coralogix.logger.d.ts +0 -86
  85. package/dist/server/logging/coralogix.logger.js +0 -138
  86. package/dist/server/logging/coralogix.logger.js.map +0 -1
  87. package/dist/server/logging/index.d.ts +0 -1
  88. package/dist/server/logging/index.js +0 -18
  89. package/dist/server/logging/index.js.map +0 -1
@@ -2,707 +2,1089 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = [
4
4
  {
5
- inputs: [{ internalType: "address", name: "_levrConfig", 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: "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",
6
+ inputs: [{ name: "_levrConfig", type: "address", internalType: "address" }],
7
+ stateMutability: "nonpayable",
231
8
  },
232
9
  {
10
+ type: "function",
11
+ name: "addLevrLeague",
233
12
  inputs: [
234
- { internalType: "string", name: "leagueName", type: "string" },
235
- { internalType: "string", name: "location", type: "string" },
236
- { internalType: "bytes12", name: "levrSportId", type: "bytes12" },
13
+ { name: "leagueName", type: "string", internalType: "string" },
14
+ { name: "location", type: "string", internalType: "string" },
15
+ { name: "levrSportId", type: "bytes12", internalType: "bytes12" },
237
16
  ],
238
- name: "addLevrLeague",
239
17
  outputs: [],
240
18
  stateMutability: "nonpayable",
241
- type: "function",
242
19
  },
243
20
  {
21
+ type: "function",
22
+ name: "addLevrMarket",
244
23
  inputs: [
245
- { internalType: "address", name: "marketContract", type: "address" },
246
- { internalType: "string", name: "marketName", type: "string" },
247
- { internalType: "uint8", name: "allowedSideGroup", type: "uint8" },
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" },
248
31
  ],
249
- name: "addLevrMarket",
250
32
  outputs: [],
251
33
  stateMutability: "nonpayable",
252
- type: "function",
253
34
  },
254
35
  {
36
+ type: "function",
37
+ name: "addLevrSport",
255
38
  inputs: [
256
- { internalType: "string", name: "sportsName", type: "string" },
257
- { internalType: "string", name: "scoringType", type: "string" },
258
- { internalType: "bool", name: "hasDrawMarket", type: "bool" },
39
+ { name: "sportsName", type: "string", internalType: "string" },
40
+ { name: "scoringType", type: "string", internalType: "string" },
41
+ { name: "hasDrawMarket", type: "bool", internalType: "bool" },
259
42
  ],
260
- name: "addLevrSport",
261
43
  outputs: [],
262
44
  stateMutability: "nonpayable",
263
- type: "function",
264
45
  },
265
46
  {
47
+ type: "function",
48
+ name: "addLevrTournament",
266
49
  inputs: [
267
- { internalType: "string", name: "name", type: "string" },
268
- { internalType: "string", name: "description", type: "string" },
269
- { internalType: "bool", name: "exclusive", type: "bool" },
50
+ { name: "name", type: "string", internalType: "string" },
51
+ { name: "description", type: "string", internalType: "string" },
52
+ { name: "exclusive", type: "bool", internalType: "bool" },
270
53
  ],
271
- name: "addLevrTournament",
272
54
  outputs: [],
273
55
  stateMutability: "nonpayable",
274
- type: "function",
275
56
  },
276
57
  {
58
+ type: "function",
59
+ name: "cancelLevrGame",
277
60
  inputs: [
278
- { internalType: "uint256", name: "gameId", type: "uint256" },
279
- { internalType: "enum Side", name: "winnerOverride", type: "uint8" },
280
- { internalType: "bool", name: "autoResolveMarkets", type: "bool" },
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" },
281
68
  ],
282
- name: "cancelLevrGame",
283
69
  outputs: [],
284
70
  stateMutability: "nonpayable",
285
- type: "function",
286
71
  },
287
72
  {
73
+ type: "function",
74
+ name: "cancelLevrGameMarket",
288
75
  inputs: [
289
- { internalType: "uint256", name: "gameId", type: "uint256" },
290
- { internalType: "enum Side", name: "marketWinnerOverride", type: "uint8" },
291
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
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" },
292
83
  ],
293
- name: "cancelLevrGameMarket",
294
84
  outputs: [],
295
85
  stateMutability: "nonpayable",
296
- type: "function",
297
86
  },
298
87
  {
88
+ type: "function",
89
+ name: "changeGameTournamentId",
299
90
  inputs: [
300
- { internalType: "uint256", name: "gameId", type: "uint256" },
301
- { internalType: "bytes6", name: "tournamentId", type: "bytes6" },
91
+ { name: "gameId", type: "uint256", internalType: "uint256" },
92
+ { name: "tournamentId", type: "bytes6", internalType: "bytes6" },
302
93
  ],
303
- name: "changeGameTournamentId",
304
94
  outputs: [],
305
95
  stateMutability: "nonpayable",
306
- type: "function",
307
96
  },
308
97
  {
98
+ type: "function",
99
+ name: "createGameMarket",
309
100
  inputs: [
310
- { internalType: "uint256", name: "gameId", type: "uint256" },
311
- { internalType: "bytes16[]", name: "_levrMarketIds", type: "bytes16[]" },
312
- { internalType: "bytes[]", name: "params", type: "bytes[]" },
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" },
313
108
  ],
314
- name: "createGameMarket",
315
109
  outputs: [],
316
110
  stateMutability: "nonpayable",
317
- type: "function",
318
111
  },
319
112
  {
113
+ type: "function",
114
+ name: "createLevrGame",
320
115
  inputs: [
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" },
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" },
329
132
  ],
330
- name: "createLevrGame",
331
133
  outputs: [],
332
134
  stateMutability: "nonpayable",
333
- type: "function",
334
135
  },
335
136
  {
336
- inputs: [],
137
+ type: "function",
337
138
  name: "gameCount",
338
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
139
+ inputs: [],
140
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
339
141
  stateMutability: "view",
340
- type: "function",
341
142
  },
342
143
  {
343
- inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
144
+ type: "function",
344
145
  name: "getActiveLevrMarketsForGame",
345
- outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
146
+ inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
147
+ outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
346
148
  stateMutability: "view",
347
- type: "function",
348
149
  },
349
150
  {
350
- inputs: [],
151
+ type: "function",
351
152
  name: "getDeprecatedMarketContracts",
352
- outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
153
+ inputs: [],
154
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
353
155
  stateMutability: "view",
354
- type: "function",
355
156
  },
356
157
  {
357
- inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
358
- name: "getGameActiveMarketIds",
359
- outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
360
- stateMutability: "view",
361
158
  type: "function",
362
- },
363
- {
364
- inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
365
- name: "getGameProgressBps",
366
- outputs: [{ internalType: "uint16", name: "", type: "uint16" }],
159
+ name: "getGameActiveMarketIds",
160
+ inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
161
+ outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
367
162
  stateMutability: "view",
368
- type: "function",
369
163
  },
370
164
  {
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",
378
165
  type: "function",
379
- },
380
- {
381
- inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
382
166
  name: "getLevrGame",
167
+ inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
383
168
  outputs: [
384
169
  {
385
- components: [
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" },
400
- ],
401
- internalType: "struct LevrGame",
402
170
  name: "",
403
171
  type: "tuple",
172
+ internalType: "struct LevrGame",
173
+ 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" },
212
+ ],
404
213
  },
405
214
  ],
406
215
  stateMutability: "view",
407
- type: "function",
408
216
  },
409
217
  {
410
- inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
218
+ type: "function",
411
219
  name: "getLevrGameStatus",
412
- outputs: [{ internalType: "enum GameStatus", name: "", type: "uint8" }],
220
+ inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
221
+ outputs: [{ name: "", type: "uint8", internalType: "enum GameStatus" }],
413
222
  stateMutability: "view",
414
- type: "function",
415
223
  },
416
224
  {
417
- inputs: [],
225
+ type: "function",
418
226
  name: "getLevrLeagueIds",
419
- outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
227
+ inputs: [],
228
+ outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
420
229
  stateMutability: "view",
421
- type: "function",
422
230
  },
423
231
  {
424
- inputs: [{ internalType: "bytes8", name: "leagueId", type: "bytes8" }],
232
+ type: "function",
425
233
  name: "getLevrLeagueMetadata",
234
+ inputs: [{ name: "leagueId", type: "bytes8", internalType: "bytes8" }],
426
235
  outputs: [
427
236
  {
428
- components: [
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" },
433
- ],
434
- internalType: "struct LevrLeagueMetadata",
435
237
  name: "",
436
238
  type: "tuple",
239
+ internalType: "struct LevrLeagueMetadata",
240
+ 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" },
249
+ ],
437
250
  },
438
251
  ],
439
252
  stateMutability: "view",
440
- type: "function",
441
253
  },
442
254
  {
443
- inputs: [{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" }],
255
+ type: "function",
444
256
  name: "getLevrMarketContractAddress",
445
- outputs: [{ internalType: "address", name: "", type: "address" }],
257
+ inputs: [{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" }],
258
+ outputs: [{ name: "", type: "address", internalType: "address" }],
446
259
  stateMutability: "view",
447
- type: "function",
448
260
  },
449
261
  {
450
- inputs: [{ internalType: "bool", name: "includeDeprecated", type: "bool" }],
262
+ type: "function",
451
263
  name: "getLevrMarketContracts",
452
- outputs: [{ internalType: "address[]", name: "marketContracts", type: "address[]" }],
264
+ inputs: [{ name: "includeDeprecated", type: "bool", internalType: "bool" }],
265
+ outputs: [
266
+ {
267
+ name: "marketContracts",
268
+ type: "address[]",
269
+ internalType: "address[]",
270
+ },
271
+ ],
453
272
  stateMutability: "view",
454
- type: "function",
455
273
  },
456
274
  {
457
- inputs: [],
275
+ type: "function",
458
276
  name: "getLevrMarketIds",
459
- outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
277
+ inputs: [],
278
+ outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
460
279
  stateMutability: "view",
461
- type: "function",
462
280
  },
463
281
  {
464
- inputs: [{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" }],
282
+ type: "function",
465
283
  name: "getLevrMarketMetadata",
284
+ inputs: [{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" }],
466
285
  outputs: [
467
286
  {
468
- components: [
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" },
473
- ],
474
- internalType: "struct LevrMarketMetadata",
475
287
  name: "",
476
288
  type: "tuple",
477
- },
289
+ internalType: "struct LevrMarketMetadata",
290
+ 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
+ },
311
+ ],
312
+ },
478
313
  ],
479
314
  stateMutability: "view",
480
- type: "function",
481
315
  },
482
316
  {
483
- inputs: [],
317
+ type: "function",
484
318
  name: "getLevrSportIds",
485
- outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
319
+ inputs: [],
320
+ outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
486
321
  stateMutability: "view",
487
- type: "function",
488
322
  },
489
323
  {
490
- inputs: [{ internalType: "bytes12", name: "levrSportId", type: "bytes12" }],
324
+ type: "function",
491
325
  name: "getLevrSportsMetadata",
326
+ inputs: [{ name: "levrSportId", type: "bytes12", internalType: "bytes12" }],
492
327
  outputs: [
493
328
  {
494
- components: [
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" },
499
- ],
500
- internalType: "struct LevrSportMetadata",
501
329
  name: "",
502
330
  type: "tuple",
331
+ internalType: "struct LevrSportMetadata",
332
+ 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" },
341
+ ],
503
342
  },
504
343
  ],
505
344
  stateMutability: "view",
506
- type: "function",
507
345
  },
508
346
  {
509
- inputs: [],
347
+ type: "function",
510
348
  name: "getLevrTournamentIds",
511
- outputs: [{ internalType: "bytes32[]", name: "", type: "bytes32[]" }],
349
+ inputs: [],
350
+ outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
512
351
  stateMutability: "view",
513
- type: "function",
514
352
  },
515
353
  {
516
- inputs: [{ internalType: "bytes6", name: "tournamentId", type: "bytes6" }],
354
+ type: "function",
517
355
  name: "getLevrTournamentMetadata",
356
+ inputs: [{ name: "tournamentId", type: "bytes6", internalType: "bytes6" }],
518
357
  outputs: [
519
358
  {
520
- components: [
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" },
525
- ],
526
- internalType: "struct LevrTournamentMetadata",
527
359
  name: "",
528
360
  type: "tuple",
361
+ internalType: "struct LevrTournamentMetadata",
362
+ 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" },
375
+ ],
529
376
  },
530
377
  ],
531
378
  stateMutability: "view",
532
- type: "function",
533
379
  },
534
380
  {
381
+ type: "function",
382
+ name: "isActiveLevrMarketForGame",
535
383
  inputs: [
536
- { internalType: "uint256", name: "gameId", type: "uint256" },
537
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
384
+ { name: "gameId", type: "uint256", internalType: "uint256" },
385
+ { name: "levrMarketId", type: "bytes16", internalType: "bytes16" },
538
386
  ],
539
- name: "isActiveLevrMarketForGame",
540
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
387
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
541
388
  stateMutability: "view",
542
- type: "function",
543
389
  },
544
390
  {
545
- inputs: [{ internalType: "address", name: "marketContract", type: "address" }],
391
+ type: "function",
546
392
  name: "isDeprecatedMarketContract",
547
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
393
+ inputs: [
394
+ {
395
+ name: "marketContract",
396
+ type: "address",
397
+ internalType: "address",
398
+ },
399
+ ],
400
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
548
401
  stateMutability: "view",
549
- type: "function",
550
402
  },
551
403
  {
404
+ type: "function",
405
+ name: "isGameActiveMarket",
552
406
  inputs: [
553
- { internalType: "uint256", name: "gameId", type: "uint256" },
554
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
407
+ { name: "gameId", type: "uint256", internalType: "uint256" },
408
+ { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
555
409
  ],
556
- name: "isGameActiveMarket",
557
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
410
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
558
411
  stateMutability: "view",
559
- type: "function",
560
412
  },
561
413
  {
562
- inputs: [{ internalType: "bytes8", name: "leagueId", type: "bytes8" }],
414
+ type: "function",
563
415
  name: "isLevrLeagueId",
564
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
416
+ inputs: [{ name: "leagueId", type: "bytes8", internalType: "bytes8" }],
417
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
565
418
  stateMutability: "view",
566
- type: "function",
567
419
  },
568
420
  {
569
- inputs: [{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" }],
421
+ type: "function",
570
422
  name: "isLevrMarketId",
571
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
423
+ inputs: [{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" }],
424
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
572
425
  stateMutability: "view",
573
- type: "function",
574
426
  },
575
427
  {
576
- inputs: [{ internalType: "bytes12", name: "levrSportId", type: "bytes12" }],
428
+ type: "function",
577
429
  name: "isLevrSportId",
578
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
430
+ inputs: [{ name: "levrSportId", type: "bytes12", internalType: "bytes12" }],
431
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
579
432
  stateMutability: "view",
580
- type: "function",
581
433
  },
582
434
  {
583
- inputs: [{ internalType: "bytes6", name: "tournamentId", type: "bytes6" }],
435
+ type: "function",
584
436
  name: "isLevrTournamentId",
585
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
437
+ inputs: [{ name: "tournamentId", type: "bytes6", internalType: "bytes6" }],
438
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
586
439
  stateMutability: "view",
587
- type: "function",
588
440
  },
589
441
  {
590
- inputs: [],
442
+ type: "function",
591
443
  name: "levrConfigProvider",
592
- outputs: [{ internalType: "address", name: "", type: "address" }],
444
+ inputs: [],
445
+ outputs: [{ name: "", type: "address", internalType: "address" }],
593
446
  stateMutability: "view",
594
- type: "function",
595
447
  },
596
448
  {
597
- inputs: [{ internalType: "address", name: "", type: "address" }],
449
+ type: "function",
598
450
  name: "levrMarketIdByAddress",
599
- outputs: [{ internalType: "bytes16", name: "levrMarketId", type: "bytes16" }],
451
+ inputs: [{ name: "", type: "address", internalType: "address" }],
452
+ outputs: [{ name: "levrMarketId", type: "bytes16", internalType: "bytes16" }],
600
453
  stateMutability: "view",
601
- type: "function",
602
454
  },
603
455
  {
456
+ type: "function",
457
+ name: "openOrCloseGameMarket",
604
458
  inputs: [
605
- { internalType: "bytes32", name: "gameMarketId", type: "bytes32" },
606
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
607
- { internalType: "bool", name: "open", type: "bool" },
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" },
608
470
  ],
609
- name: "openOrCloseGameMarket",
610
471
  outputs: [],
611
472
  stateMutability: "nonpayable",
612
- type: "function",
613
473
  },
614
474
  {
475
+ type: "function",
476
+ name: "pauseOrUnpauseGame",
615
477
  inputs: [
616
- { internalType: "uint256", name: "gameId", type: "uint256" },
617
- { internalType: "bool", name: "pause", type: "bool" },
478
+ { name: "gameId", type: "uint256", internalType: "uint256" },
479
+ { name: "pause", type: "bool", internalType: "bool" },
618
480
  ],
619
- name: "pauseOrUnpauseGame",
620
481
  outputs: [],
621
482
  stateMutability: "nonpayable",
622
- type: "function",
623
483
  },
624
484
  {
625
- inputs: [{ internalType: "uint256", name: "gameId", type: "uint256" }],
485
+ type: "function",
626
486
  name: "settleAllGameMarkets",
487
+ inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
627
488
  outputs: [],
628
489
  stateMutability: "nonpayable",
629
- type: "function",
630
490
  },
631
491
  {
492
+ type: "function",
493
+ name: "settleGame",
632
494
  inputs: [
633
- { internalType: "uint256", name: "gameId", type: "uint256" },
634
- { internalType: "enum Side", name: "winner", type: "uint8" },
635
- { internalType: "bool", name: "autoResolveMarkets", type: "bool" },
495
+ { name: "gameId", type: "uint256", internalType: "uint256" },
496
+ { name: "winner", type: "uint8", internalType: "enum Side" },
497
+ { name: "autoResolveMarkets", type: "bool", internalType: "bool" },
636
498
  ],
637
- name: "settleGame",
638
499
  outputs: [],
639
500
  stateMutability: "nonpayable",
640
- type: "function",
641
501
  },
642
502
  {
503
+ type: "function",
504
+ name: "settleGameMarket",
643
505
  inputs: [
644
- { internalType: "uint256", name: "gameId", type: "uint256" },
645
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
646
- { internalType: "enum Side", name: "winnerOverride", type: "uint8" },
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
+ },
647
517
  ],
648
- name: "settleGameMarket",
649
518
  outputs: [],
650
519
  stateMutability: "nonpayable",
651
- type: "function",
652
520
  },
653
521
  {
654
- inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
522
+ type: "function",
655
523
  name: "supportsInterface",
656
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
524
+ inputs: [{ name: "interfaceId", type: "bytes4", internalType: "bytes4" }],
525
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
657
526
  stateMutability: "view",
658
- type: "function",
659
527
  },
660
528
  {
529
+ type: "function",
530
+ name: "updateGameProgress",
661
531
  inputs: [
662
- { internalType: "uint256", name: "gameId", type: "uint256" },
663
- { internalType: "uint16", name: "progressBps", type: "uint16" },
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
+ },
664
541
  ],
665
- name: "updateGameProgress",
666
- outputs: [{ internalType: "uint16", name: "updatedProgressBps", type: "uint16" }],
667
542
  stateMutability: "nonpayable",
668
- type: "function",
669
543
  },
670
544
  {
545
+ type: "function",
546
+ name: "updateGameStatus",
671
547
  inputs: [
672
- { internalType: "uint256", name: "gameId", type: "uint256" },
673
- { internalType: "enum GameStatus", name: "status", type: "uint8" },
548
+ { name: "gameId", type: "uint256", internalType: "uint256" },
549
+ { name: "status", type: "uint8", internalType: "enum GameStatus" },
674
550
  ],
675
- name: "updateGameStatus",
676
551
  outputs: [],
677
552
  stateMutability: "nonpayable",
678
- type: "function",
679
553
  },
680
554
  {
681
- inputs: [{ internalType: "address", name: "newLevrConfigProvider", type: "address" }],
555
+ type: "function",
682
556
  name: "updateLevrConfigProvider",
557
+ inputs: [
558
+ {
559
+ name: "newLevrConfigProvider",
560
+ type: "address",
561
+ internalType: "address",
562
+ },
563
+ ],
683
564
  outputs: [],
684
565
  stateMutability: "nonpayable",
685
- type: "function",
686
566
  },
687
567
  {
568
+ type: "function",
569
+ name: "updateLevrMarketAddress",
688
570
  inputs: [
689
- { internalType: "bytes16", name: "levrMarketId", type: "bytes16" },
690
- { internalType: "address", name: "newMarketAddress", type: "address" },
571
+ {
572
+ name: "levrMarketId",
573
+ type: "bytes16",
574
+ internalType: "bytes16",
575
+ },
576
+ {
577
+ name: "newMarketAddress",
578
+ type: "address",
579
+ internalType: "address",
580
+ },
691
581
  ],
692
- name: "updateLevrMarketAddress",
693
582
  outputs: [],
694
583
  stateMutability: "nonpayable",
695
- type: "function",
696
584
  },
697
585
  {
586
+ type: "function",
587
+ name: "updateTournamentExclusivity",
698
588
  inputs: [
699
- { internalType: "bytes6", name: "tournamentId", type: "bytes6" },
700
- { internalType: "bool", name: "exclusive", type: "bool" },
589
+ { name: "tournamentId", type: "bytes6", internalType: "bytes6" },
590
+ { name: "exclusive", type: "bool", internalType: "bool" },
701
591
  ],
702
- name: "updateTournamentExclusivity",
703
592
  outputs: [],
704
593
  stateMutability: "nonpayable",
705
- type: "function",
706
594
  },
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: [] },
707
1089
  ];
708
1090
  //# sourceMappingURL=LevrManager.js.map