@levrbet/shared 0.1.2 → 0.1.4

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