@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,1149 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = [
4
- {
5
- type: "function",
6
- name: "cancelMarket",
7
- inputs: [
8
- {
9
- name: "gameMarketId",
10
- type: "bytes32",
11
- internalType: "bytes32",
12
- },
13
- { name: "data", type: "bytes", internalType: "bytes" },
14
- ],
15
- outputs: [],
16
- stateMutability: "nonpayable",
17
- },
18
- {
19
- type: "function",
20
- name: "getActiveGameMarkets",
21
- inputs: [],
22
- outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
23
- stateMutability: "view",
24
- },
25
- {
26
- type: "function",
27
- name: "getGameMarket",
28
- inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
29
- outputs: [
30
- {
31
- name: "",
32
- type: "tuple",
33
- internalType: "struct LevrMarket",
34
- components: [
35
- { name: "gameId", type: "uint256", internalType: "uint256" },
36
- {
37
- name: "totalACollateral",
38
- type: "uint256",
39
- internalType: "uint256",
40
- },
41
- {
42
- name: "totalBCollateral",
43
- type: "uint256",
44
- internalType: "uint256",
45
- },
46
- {
47
- name: "totalCCollateral",
48
- type: "uint256",
49
- internalType: "uint256",
50
- },
51
- {
52
- name: "pendingProfits",
53
- type: "uint256",
54
- internalType: "uint256",
55
- },
56
- {
57
- name: "paidProfits",
58
- type: "uint256",
59
- internalType: "uint256",
60
- },
61
- {
62
- name: "forfeitedCollateral",
63
- type: "uint256",
64
- internalType: "uint256",
65
- },
66
- {
67
- name: "pendingFulltimeBorrowFee",
68
- type: "uint256",
69
- internalType: "uint256",
70
- },
71
- {
72
- name: "pendingImbalanceFee",
73
- type: "uint256",
74
- internalType: "uint256",
75
- },
76
- {
77
- name: "status",
78
- type: "uint8",
79
- internalType: "enum MarketStatus",
80
- },
81
- { name: "winner", type: "uint8", internalType: "enum Side" },
82
- {
83
- name: "collateralAsset",
84
- type: "address",
85
- internalType: "address",
86
- },
87
- {
88
- name: "levrSportId",
89
- type: "bytes12",
90
- internalType: "bytes12",
91
- },
92
- {
93
- name: "targetScore",
94
- type: "uint16",
95
- internalType: "uint16",
96
- },
97
- {
98
- name: "borrowFeeBps",
99
- type: "uint16",
100
- internalType: "uint16",
101
- },
102
- {
103
- name: "allowedSideGroup",
104
- type: "uint8",
105
- internalType: "uint8",
106
- },
107
- ],
108
- },
109
- ],
110
- stateMutability: "view",
111
- },
112
- {
113
- type: "function",
114
- name: "getGameMarketId",
115
- inputs: [{ name: "gameId", type: "uint256", internalType: "uint256" }],
116
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
117
- stateMutability: "view",
118
- },
119
- {
120
- type: "function",
121
- name: "getPositions",
122
- inputs: [
123
- {
124
- name: "positionIds",
125
- type: "bytes32[]",
126
- internalType: "bytes32[]",
127
- },
128
- ],
129
- outputs: [
130
- {
131
- name: "",
132
- type: "tuple[]",
133
- internalType: "struct UserPosition[]",
134
- components: [
135
- {
136
- name: "positionId",
137
- type: "bytes32",
138
- internalType: "bytes32",
139
- },
140
- {
141
- name: "gameMarketId",
142
- type: "bytes32",
143
- internalType: "bytes32",
144
- },
145
- {
146
- name: "collateralAmount",
147
- type: "uint256",
148
- internalType: "uint256",
149
- },
150
- {
151
- name: "positionSize",
152
- type: "uint256",
153
- internalType: "uint256",
154
- },
155
- {
156
- name: "tokensBought",
157
- type: "uint256",
158
- internalType: "uint256",
159
- },
160
- {
161
- name: "tokenAmount",
162
- type: "uint256",
163
- internalType: "uint256",
164
- },
165
- {
166
- name: "boundedLoss",
167
- type: "uint256",
168
- internalType: "uint256",
169
- },
170
- {
171
- name: "positionFee",
172
- type: "uint256",
173
- internalType: "uint256",
174
- },
175
- {
176
- name: "borrowFee",
177
- type: "uint256",
178
- internalType: "uint256",
179
- },
180
- {
181
- name: "imbalanceFee",
182
- type: "uint256",
183
- internalType: "uint256",
184
- },
185
- {
186
- name: "userLeverage",
187
- type: "uint256",
188
- internalType: "uint256",
189
- },
190
- {
191
- name: "effectiveLeverage",
192
- type: "uint256",
193
- internalType: "uint256",
194
- },
195
- {
196
- name: "entryPrice",
197
- type: "uint256",
198
- internalType: "uint256",
199
- },
200
- {
201
- name: "liquidationPrice",
202
- type: "uint256",
203
- internalType: "uint256",
204
- },
205
- { name: "paidOut", type: "uint256", internalType: "uint256" },
206
- {
207
- name: "status",
208
- type: "uint8",
209
- internalType: "enum PositionStatus",
210
- },
211
- { name: "side", type: "uint8", internalType: "enum Side" },
212
- { name: "user", type: "address", internalType: "address" },
213
- { name: "openedAt", type: "uint48", internalType: "uint48" },
214
- { name: "closedAt", type: "uint48", internalType: "uint48" },
215
- {
216
- name: "gameProgressAtOpen",
217
- type: "uint16",
218
- internalType: "uint16",
219
- },
220
- {
221
- name: "gameProgressAtClose",
222
- type: "uint16",
223
- internalType: "uint16",
224
- },
225
- ],
226
- },
227
- ],
228
- stateMutability: "view",
229
- },
230
- {
231
- type: "function",
232
- name: "getUserLeveragePosition",
233
- inputs: [{ name: "positionId", type: "bytes32", internalType: "bytes32" }],
234
- outputs: [
235
- {
236
- name: "",
237
- type: "tuple",
238
- internalType: "struct UserPosition",
239
- components: [
240
- {
241
- name: "positionId",
242
- type: "bytes32",
243
- internalType: "bytes32",
244
- },
245
- {
246
- name: "gameMarketId",
247
- type: "bytes32",
248
- internalType: "bytes32",
249
- },
250
- {
251
- name: "collateralAmount",
252
- type: "uint256",
253
- internalType: "uint256",
254
- },
255
- {
256
- name: "positionSize",
257
- type: "uint256",
258
- internalType: "uint256",
259
- },
260
- {
261
- name: "tokensBought",
262
- type: "uint256",
263
- internalType: "uint256",
264
- },
265
- {
266
- name: "tokenAmount",
267
- type: "uint256",
268
- internalType: "uint256",
269
- },
270
- {
271
- name: "boundedLoss",
272
- type: "uint256",
273
- internalType: "uint256",
274
- },
275
- {
276
- name: "positionFee",
277
- type: "uint256",
278
- internalType: "uint256",
279
- },
280
- {
281
- name: "borrowFee",
282
- type: "uint256",
283
- internalType: "uint256",
284
- },
285
- {
286
- name: "imbalanceFee",
287
- type: "uint256",
288
- internalType: "uint256",
289
- },
290
- {
291
- name: "userLeverage",
292
- type: "uint256",
293
- internalType: "uint256",
294
- },
295
- {
296
- name: "effectiveLeverage",
297
- type: "uint256",
298
- internalType: "uint256",
299
- },
300
- {
301
- name: "entryPrice",
302
- type: "uint256",
303
- internalType: "uint256",
304
- },
305
- {
306
- name: "liquidationPrice",
307
- type: "uint256",
308
- internalType: "uint256",
309
- },
310
- { name: "paidOut", type: "uint256", internalType: "uint256" },
311
- {
312
- name: "status",
313
- type: "uint8",
314
- internalType: "enum PositionStatus",
315
- },
316
- { name: "side", type: "uint8", internalType: "enum Side" },
317
- { name: "user", type: "address", internalType: "address" },
318
- { name: "openedAt", type: "uint48", internalType: "uint48" },
319
- { name: "closedAt", type: "uint48", internalType: "uint48" },
320
- {
321
- name: "gameProgressAtOpen",
322
- type: "uint16",
323
- internalType: "uint16",
324
- },
325
- {
326
- name: "gameProgressAtClose",
327
- type: "uint16",
328
- internalType: "uint16",
329
- },
330
- ],
331
- },
332
- ],
333
- stateMutability: "view",
334
- },
335
- {
336
- type: "function",
337
- name: "getUserNextPositionId",
338
- inputs: [
339
- {
340
- name: "gameMarketId",
341
- type: "bytes32",
342
- internalType: "bytes32",
343
- },
344
- { name: "user", type: "address", internalType: "address" },
345
- ],
346
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
347
- stateMutability: "nonpayable",
348
- },
349
- {
350
- type: "function",
351
- name: "getUserPosition",
352
- inputs: [{ name: "positionId", type: "bytes32", internalType: "bytes32" }],
353
- outputs: [
354
- {
355
- name: "",
356
- type: "tuple",
357
- internalType: "struct UserPosition",
358
- components: [
359
- {
360
- name: "positionId",
361
- type: "bytes32",
362
- internalType: "bytes32",
363
- },
364
- {
365
- name: "gameMarketId",
366
- type: "bytes32",
367
- internalType: "bytes32",
368
- },
369
- {
370
- name: "collateralAmount",
371
- type: "uint256",
372
- internalType: "uint256",
373
- },
374
- {
375
- name: "positionSize",
376
- type: "uint256",
377
- internalType: "uint256",
378
- },
379
- {
380
- name: "tokensBought",
381
- type: "uint256",
382
- internalType: "uint256",
383
- },
384
- {
385
- name: "tokenAmount",
386
- type: "uint256",
387
- internalType: "uint256",
388
- },
389
- {
390
- name: "boundedLoss",
391
- type: "uint256",
392
- internalType: "uint256",
393
- },
394
- {
395
- name: "positionFee",
396
- type: "uint256",
397
- internalType: "uint256",
398
- },
399
- {
400
- name: "borrowFee",
401
- type: "uint256",
402
- internalType: "uint256",
403
- },
404
- {
405
- name: "imbalanceFee",
406
- type: "uint256",
407
- internalType: "uint256",
408
- },
409
- {
410
- name: "userLeverage",
411
- type: "uint256",
412
- internalType: "uint256",
413
- },
414
- {
415
- name: "effectiveLeverage",
416
- type: "uint256",
417
- internalType: "uint256",
418
- },
419
- {
420
- name: "entryPrice",
421
- type: "uint256",
422
- internalType: "uint256",
423
- },
424
- {
425
- name: "liquidationPrice",
426
- type: "uint256",
427
- internalType: "uint256",
428
- },
429
- { name: "paidOut", type: "uint256", internalType: "uint256" },
430
- {
431
- name: "status",
432
- type: "uint8",
433
- internalType: "enum PositionStatus",
434
- },
435
- { name: "side", type: "uint8", internalType: "enum Side" },
436
- { name: "user", type: "address", internalType: "address" },
437
- { name: "openedAt", type: "uint48", internalType: "uint48" },
438
- { name: "closedAt", type: "uint48", internalType: "uint48" },
439
- {
440
- name: "gameProgressAtOpen",
441
- type: "uint16",
442
- internalType: "uint16",
443
- },
444
- {
445
- name: "gameProgressAtClose",
446
- type: "uint16",
447
- internalType: "uint16",
448
- },
449
- ],
450
- },
451
- ],
452
- stateMutability: "view",
453
- },
454
- {
455
- type: "function",
456
- name: "getUserPositionId",
457
- inputs: [
458
- {
459
- name: "gameMarketId",
460
- type: "bytes32",
461
- internalType: "bytes32",
462
- },
463
- { name: "nonce", type: "uint256", internalType: "uint256" },
464
- { name: "user", type: "address", internalType: "address" },
465
- ],
466
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
467
- stateMutability: "pure",
468
- },
469
- {
470
- type: "function",
471
- name: "getUserPositionIdsForGameMarket",
472
- inputs: [
473
- {
474
- name: "gameMarketId",
475
- type: "bytes32",
476
- internalType: "bytes32",
477
- },
478
- { name: "user", type: "address", internalType: "address" },
479
- ],
480
- outputs: [{ name: "", type: "bytes32[]", internalType: "bytes32[]" }],
481
- stateMutability: "view",
482
- },
483
- {
484
- type: "function",
485
- name: "hasActiveMarkets",
486
- inputs: [],
487
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
488
- stateMutability: "view",
489
- },
490
- {
491
- type: "function",
492
- name: "initializeGameMarket",
493
- inputs: [
494
- { name: "gameId", type: "uint256", internalType: "uint256" },
495
- { name: "levrSportId", type: "bytes12", internalType: "bytes12" },
496
- {
497
- name: "gameMarketInitData",
498
- type: "bytes",
499
- internalType: "bytes",
500
- },
501
- ],
502
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
503
- stateMutability: "nonpayable",
504
- },
505
- {
506
- type: "function",
507
- name: "initializeMarketId",
508
- inputs: [{ name: "marketId", type: "bytes16", internalType: "bytes16" }],
509
- outputs: [],
510
- stateMutability: "nonpayable",
511
- },
512
- {
513
- type: "function",
514
- name: "isActiveGameMarket",
515
- inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
516
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
517
- stateMutability: "view",
518
- },
519
- {
520
- type: "function",
521
- name: "levrConfigProvider",
522
- inputs: [],
523
- outputs: [{ name: "", type: "address", internalType: "address" }],
524
- stateMutability: "view",
525
- },
526
- {
527
- type: "function",
528
- name: "levrMarketId",
529
- inputs: [],
530
- outputs: [{ name: "", type: "bytes16", internalType: "bytes16" }],
531
- stateMutability: "view",
532
- },
533
- {
534
- type: "function",
535
- name: "marketMakerCollateral",
536
- inputs: [
537
- {
538
- name: "gameMarketId",
539
- type: "bytes32",
540
- internalType: "bytes32",
541
- },
542
- { name: "side", type: "uint8", internalType: "enum Side" },
543
- ],
544
- outputs: [{ name: "collateral", type: "uint256", internalType: "uint256" }],
545
- stateMutability: "view",
546
- },
547
- {
548
- type: "function",
549
- name: "marketName",
550
- inputs: [],
551
- outputs: [{ name: "", type: "string", internalType: "string" }],
552
- stateMutability: "view",
553
- },
554
- {
555
- type: "function",
556
- name: "mutatePositions",
557
- inputs: [
558
- {
559
- name: "gameMarketId",
560
- type: "bytes32",
561
- internalType: "bytes32",
562
- },
563
- { name: "params", type: "bytes", internalType: "bytes" },
564
- ],
565
- outputs: [],
566
- stateMutability: "nonpayable",
567
- },
568
- {
569
- type: "function",
570
- name: "openOrCloseMarket",
571
- inputs: [
572
- {
573
- name: "gameMarketId",
574
- type: "bytes32",
575
- internalType: "bytes32",
576
- },
577
- { name: "open", type: "bool", internalType: "bool" },
578
- ],
579
- outputs: [],
580
- stateMutability: "nonpayable",
581
- },
582
- {
583
- type: "function",
584
- name: "openPosition",
585
- inputs: [
586
- {
587
- name: "gameMarketId",
588
- type: "bytes32",
589
- internalType: "bytes32",
590
- },
591
- { name: "params", type: "bytes", internalType: "bytes" },
592
- ],
593
- outputs: [],
594
- stateMutability: "nonpayable",
595
- },
596
- {
597
- type: "function",
598
- name: "paused",
599
- inputs: [],
600
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
601
- stateMutability: "view",
602
- },
603
- {
604
- type: "function",
605
- name: "redeemPosition",
606
- inputs: [
607
- {
608
- name: "gameMarketId",
609
- type: "bytes32",
610
- internalType: "bytes32",
611
- },
612
- { name: "params", type: "bytes", internalType: "bytes" },
613
- ],
614
- outputs: [],
615
- stateMutability: "nonpayable",
616
- },
617
- {
618
- type: "function",
619
- name: "settleMarket",
620
- inputs: [
621
- {
622
- name: "gameMarketId",
623
- type: "bytes32",
624
- internalType: "bytes32",
625
- },
626
- { name: "params", type: "bytes", internalType: "bytes" },
627
- ],
628
- outputs: [],
629
- stateMutability: "nonpayable",
630
- },
631
- {
632
- type: "function",
633
- name: "updateLevrConfigProvider",
634
- inputs: [
635
- {
636
- name: "newLevrConfigProvider",
637
- type: "address",
638
- internalType: "address",
639
- },
640
- ],
641
- outputs: [],
642
- stateMutability: "nonpayable",
643
- },
644
- {
645
- type: "function",
646
- name: "userNonce",
647
- inputs: [{ name: "user", type: "address", internalType: "address" }],
648
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
649
- stateMutability: "view",
650
- },
651
- {
652
- type: "event",
653
- name: "GameMarketInitialized",
654
- inputs: [
655
- {
656
- name: "gameId",
657
- type: "uint256",
658
- indexed: true,
659
- internalType: "uint256",
660
- },
661
- {
662
- name: "gameMarketId",
663
- type: "bytes32",
664
- indexed: true,
665
- internalType: "bytes32",
666
- },
667
- {
668
- name: "levrSportId",
669
- type: "bytes12",
670
- indexed: true,
671
- internalType: "bytes12",
672
- },
673
- ],
674
- anonymous: false,
675
- },
676
- {
677
- type: "event",
678
- name: "LevrConfigProviderUpdated",
679
- inputs: [
680
- {
681
- name: "prevProvider",
682
- type: "address",
683
- indexed: true,
684
- internalType: "address",
685
- },
686
- {
687
- name: "newProvider",
688
- type: "address",
689
- indexed: true,
690
- internalType: "address",
691
- },
692
- ],
693
- anonymous: false,
694
- },
695
- {
696
- type: "event",
697
- name: "LevrMarketContractInitialized",
698
- inputs: [
699
- {
700
- name: "levrMarketId",
701
- type: "bytes16",
702
- indexed: true,
703
- internalType: "bytes16",
704
- },
705
- ],
706
- anonymous: false,
707
- },
708
- {
709
- type: "event",
710
- name: "MarketCanceled",
711
- inputs: [
712
- {
713
- name: "gameMarketId",
714
- type: "bytes32",
715
- indexed: false,
716
- internalType: "bytes32",
717
- },
718
- {
719
- name: "settledAs",
720
- type: "uint8",
721
- indexed: false,
722
- internalType: "enum MarketStatus",
723
- },
724
- {
725
- name: "winner",
726
- type: "uint8",
727
- indexed: false,
728
- internalType: "enum Side",
729
- },
730
- {
731
- name: "canceledAt",
732
- type: "uint48",
733
- indexed: false,
734
- internalType: "uint48",
735
- },
736
- ],
737
- anonymous: false,
738
- },
739
- {
740
- type: "event",
741
- name: "MarketPhaseUpdated",
742
- inputs: [
743
- {
744
- name: "gameMarketId",
745
- type: "bytes32",
746
- indexed: true,
747
- internalType: "bytes32",
748
- },
749
- {
750
- name: "prevPhase",
751
- type: "uint8",
752
- indexed: false,
753
- internalType: "enum MarketStatus",
754
- },
755
- {
756
- name: "newPhase",
757
- type: "uint8",
758
- indexed: false,
759
- internalType: "enum MarketStatus",
760
- },
761
- {
762
- name: "updatedAt",
763
- type: "uint48",
764
- indexed: false,
765
- internalType: "uint48",
766
- },
767
- ],
768
- anonymous: false,
769
- },
770
- {
771
- type: "event",
772
- name: "MarketSettled",
773
- inputs: [
774
- {
775
- name: "gameMarketId",
776
- type: "bytes32",
777
- indexed: true,
778
- internalType: "bytes32",
779
- },
780
- {
781
- name: "gameId",
782
- type: "uint256",
783
- indexed: true,
784
- internalType: "uint256",
785
- },
786
- {
787
- name: "winner",
788
- type: "uint8",
789
- indexed: true,
790
- internalType: "enum Side",
791
- },
792
- {
793
- name: "totalForfeitedCollateral",
794
- type: "uint256",
795
- indexed: false,
796
- internalType: "uint256",
797
- },
798
- {
799
- name: "totalImbalanceFee",
800
- type: "uint256",
801
- indexed: false,
802
- internalType: "uint256",
803
- },
804
- {
805
- name: "totalBorrowFee",
806
- type: "uint256",
807
- indexed: false,
808
- internalType: "uint256",
809
- },
810
- {
811
- name: "totalProfitsAllocated",
812
- type: "uint256",
813
- indexed: false,
814
- internalType: "uint256",
815
- },
816
- ],
817
- anonymous: false,
818
- },
819
- {
820
- type: "event",
821
- name: "Paused",
822
- inputs: [
823
- {
824
- name: "account",
825
- type: "address",
826
- indexed: false,
827
- internalType: "address",
828
- },
829
- ],
830
- anonymous: false,
831
- },
832
- {
833
- type: "event",
834
- name: "PositionOpened",
835
- inputs: [
836
- {
837
- name: "gameMarketId",
838
- type: "bytes32",
839
- indexed: true,
840
- internalType: "bytes32",
841
- },
842
- {
843
- name: "positionId",
844
- type: "bytes32",
845
- indexed: true,
846
- internalType: "bytes32",
847
- },
848
- {
849
- name: "receiver",
850
- type: "address",
851
- indexed: true,
852
- internalType: "address",
853
- },
854
- {
855
- name: "asset",
856
- type: "address",
857
- indexed: false,
858
- internalType: "address",
859
- },
860
- {
861
- name: "tokenAmount",
862
- type: "uint256",
863
- indexed: false,
864
- internalType: "uint256",
865
- },
866
- {
867
- name: "assetAmount",
868
- type: "uint256",
869
- indexed: false,
870
- internalType: "uint256",
871
- },
872
- {
873
- name: "positionSize",
874
- type: "uint256",
875
- indexed: false,
876
- internalType: "uint256",
877
- },
878
- {
879
- name: "boundedLoss",
880
- type: "uint256",
881
- indexed: false,
882
- internalType: "uint256",
883
- },
884
- {
885
- name: "eLeverage",
886
- type: "uint256",
887
- indexed: false,
888
- internalType: "uint256",
889
- },
890
- {
891
- name: "price",
892
- type: "uint256",
893
- indexed: false,
894
- internalType: "uint256",
895
- },
896
- {
897
- name: "positionFee",
898
- type: "uint256",
899
- indexed: false,
900
- internalType: "uint256",
901
- },
902
- {
903
- name: "imbalanceFee",
904
- type: "uint256",
905
- indexed: false,
906
- internalType: "uint256",
907
- },
908
- {
909
- name: "side",
910
- type: "uint8",
911
- indexed: false,
912
- internalType: "uint8",
913
- },
914
- ],
915
- anonymous: false,
916
- },
917
- {
918
- type: "event",
919
- name: "PositionRedeemed",
920
- inputs: [
921
- {
922
- name: "owner",
923
- type: "address",
924
- indexed: true,
925
- internalType: "address",
926
- },
927
- {
928
- name: "receiver",
929
- type: "address",
930
- indexed: true,
931
- internalType: "address",
932
- },
933
- {
934
- name: "positionId",
935
- type: "bytes32",
936
- indexed: true,
937
- internalType: "bytes32",
938
- },
939
- {
940
- name: "gameMarketId",
941
- type: "bytes32",
942
- indexed: false,
943
- internalType: "bytes32",
944
- },
945
- {
946
- name: "side",
947
- type: "uint8",
948
- indexed: false,
949
- internalType: "enum Side",
950
- },
951
- {
952
- name: "marketWinner",
953
- type: "uint8",
954
- indexed: false,
955
- internalType: "enum Side",
956
- },
957
- {
958
- name: "profit",
959
- type: "uint256",
960
- indexed: false,
961
- internalType: "uint256",
962
- },
963
- {
964
- name: "loss",
965
- type: "uint256",
966
- indexed: false,
967
- internalType: "uint256",
968
- },
969
- {
970
- name: "borrowFee",
971
- type: "uint256",
972
- indexed: false,
973
- internalType: "uint256",
974
- },
975
- {
976
- name: "imbalanceFee",
977
- type: "uint256",
978
- indexed: false,
979
- internalType: "uint256",
980
- },
981
- ],
982
- anonymous: false,
983
- },
984
- {
985
- type: "event",
986
- name: "Unpaused",
987
- inputs: [
988
- {
989
- name: "account",
990
- type: "address",
991
- indexed: false,
992
- internalType: "address",
993
- },
994
- ],
995
- anonymous: false,
996
- },
997
- { type: "error", name: "EnforcedPause", inputs: [] },
998
- { type: "error", name: "ExpectedPause", inputs: [] },
999
- {
1000
- type: "error",
1001
- name: "LBM_CANNOT_LIQUIDATE_MARKET_MAKER",
1002
- inputs: [],
1003
- },
1004
- { type: "error", name: "LBM_DUPLICATE_MARKET", inputs: [] },
1005
- {
1006
- type: "error",
1007
- name: "LBM_INACTIVE_MARKET_FOR_GAME",
1008
- inputs: [
1009
- { name: "gameId", type: "uint256", internalType: "uint256" },
1010
- { name: "gameMarketId", type: "bytes32", internalType: "bytes32" },
1011
- ],
1012
- },
1013
- {
1014
- type: "error",
1015
- name: "LBM_INEXISTENT_GAME_MARKET",
1016
- inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
1017
- },
1018
- {
1019
- type: "error",
1020
- name: "LBM_INVALID_AMOUNT",
1021
- inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
1022
- },
1023
- { type: "error", name: "LBM_INVALID_BUYERS_DATA", inputs: [] },
1024
- {
1025
- type: "error",
1026
- name: "LBM_INVALID_GAME_PHASE",
1027
- inputs: [
1028
- { name: "gameId", type: "uint256", internalType: "uint256" },
1029
- {
1030
- name: "currentPhase",
1031
- type: "uint8",
1032
- internalType: "enum GameStatus",
1033
- },
1034
- {
1035
- name: "expectedPhase",
1036
- type: "uint8",
1037
- internalType: "enum GameStatus",
1038
- },
1039
- ],
1040
- },
1041
- { type: "error", name: "LBM_INVALID_LEVR_MARKET_ID", inputs: [] },
1042
- {
1043
- type: "error",
1044
- name: "LBM_INVALID_MARKET_PHASE",
1045
- inputs: [
1046
- {
1047
- name: "gameMarketId",
1048
- type: "bytes32",
1049
- internalType: "bytes32",
1050
- },
1051
- {
1052
- name: "currentPhase",
1053
- type: "uint8",
1054
- internalType: "enum MarketStatus",
1055
- },
1056
- {
1057
- name: "expectedPhase",
1058
- type: "uint8",
1059
- internalType: "enum MarketStatus",
1060
- },
1061
- ],
1062
- },
1063
- { type: "error", name: "LBM_INVALID_RECEIVER", inputs: [] },
1064
- { type: "error", name: "LBM_INVALID_RISK_DATA", inputs: [] },
1065
- { type: "error", name: "LBM_INVALID_SELLERS_DATA", inputs: [] },
1066
- {
1067
- type: "error",
1068
- name: "LBM_INVALID_SIDE",
1069
- inputs: [{ name: "side", type: "uint8", internalType: "enum Side" }],
1070
- },
1071
- { type: "error", name: "LBM_INVALID_SIDE_GROUP", inputs: [] },
1072
- { type: "error", name: "LBM_INVALID_TRADE_DATA", inputs: [] },
1073
- {
1074
- type: "error",
1075
- name: "LBM_INVALID_USER_LEVERAGE",
1076
- inputs: [
1077
- { name: "uLeverage", type: "uint8", internalType: "uint8" },
1078
- { name: "minULev", type: "uint8", internalType: "uint8" },
1079
- { name: "maxULev", type: "uint8", internalType: "uint8" },
1080
- ],
1081
- },
1082
- {
1083
- type: "error",
1084
- name: "LBM_MARKET_CLOSED",
1085
- inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
1086
- },
1087
- {
1088
- type: "error",
1089
- name: "LBM_MARKET_ID_ALREADY_INITIALIZED",
1090
- inputs: [],
1091
- },
1092
- {
1093
- type: "error",
1094
- name: "LBM_MARKET_SETTLED",
1095
- inputs: [{ name: "gameMarketId", type: "bytes32", internalType: "bytes32" }],
1096
- },
1097
- { type: "error", name: "LBM_NOT_GAME_ADMIN", inputs: [] },
1098
- { type: "error", name: "LBM_NOT_LEVR_ADMIN", inputs: [] },
1099
- { type: "error", name: "LBM_NOT_LEVR_MANAGER", inputs: [] },
1100
- { type: "error", name: "LBM_NOT_LEVR_ORDERBOOK", inputs: [] },
1101
- { type: "error", name: "LBM_NOT_MARKETS_ROUTER", inputs: [] },
1102
- {
1103
- type: "error",
1104
- name: "LBM_NOT_MARKETS_ROUTER_OR_POSITION_OWNER",
1105
- inputs: [
1106
- { name: "caller", type: "address", internalType: "address" },
1107
- { name: "owner", type: "address", internalType: "address" },
1108
- ],
1109
- },
1110
- { type: "error", name: "LBM_NOT_SETTLED_OR_DRAWN", inputs: [] },
1111
- {
1112
- type: "error",
1113
- name: "LBM_POSITION_MARKED_FOR_LIQUIDATION",
1114
- inputs: [
1115
- {
1116
- name: "gameMarketId",
1117
- type: "bytes32",
1118
- internalType: "bytes32",
1119
- },
1120
- { name: "positionId", type: "bytes32", internalType: "bytes32" },
1121
- ],
1122
- },
1123
- {
1124
- type: "error",
1125
- name: "LBM_POSITION_NOT_OPEN",
1126
- inputs: [
1127
- { name: "user", type: "address", internalType: "address" },
1128
- { name: "positionId", type: "bytes32", internalType: "bytes32" },
1129
- ],
1130
- },
1131
- {
1132
- type: "error",
1133
- name: "LBM_POSITION_NOT_UNDERWATER",
1134
- inputs: [
1135
- { name: "user", type: "address", internalType: "address" },
1136
- { name: "positionId", type: "bytes32", internalType: "bytes32" },
1137
- ],
1138
- },
1139
- { type: "error", name: "LBM_UNAUTHORIZED_MUTATION", inputs: [] },
1140
- { type: "error", name: "LB_CONFIG_INVALID_INTERFACE", inputs: [] },
1141
- {
1142
- type: "error",
1143
- name: "LB_CONFIG_PROVIDER_NOT_CONTRACT",
1144
- inputs: [],
1145
- },
1146
- { type: "error", name: "LB_NOT_CONFIG_PROVIDER", inputs: [] },
1147
- { type: "error", name: "MathOverflowedMulDiv", inputs: [] },
1148
- ];
1149
- //# sourceMappingURL=LevrBaseMarket.js.map