@ohlabs/configuration 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/contract-index.js CHANGED
@@ -1,1577 +1,1566 @@
1
- const { CHAIN_SLUGS } = require("@ohlabs/configuration/chain-slugs");
2
-
3
- const contractIndex = {
4
- production: {
5
- [CHAIN_SLUGS.B3]: {
6
- Native: {
7
- WETH_ADDRESS: ''
8
- },
9
- Uniswap: {
10
- V2_FACTORY_ADDRESS: '',
11
- V2_ROUTER_ADDRESS: ''
12
- },
13
- OHL: {
14
- VAULT_ADDRESS: ''
15
- },
16
- MasterBlaster: {
17
- X9_ADDRESS: '0x300C2542CC54dDf712f012EBc95F605A7d2A9d1f',
18
- HANGAR_ADDRESS: '0x5dD46959622E43595eA9BbF31CD2f486AF85816F',
19
- GAME_SCORES_ADDRESS: '0xF59b8Ae63208De9BC4bee0ede88211688Ab10acF',
20
- GAME_REWARDS_ADDRESS: '',
21
- PRESALE_ADDRESS: '',
22
- REWARDS_POOL_ADDRESS: ''
23
- }
24
- },
25
- [CHAIN_SLUGS.Base]: {
26
- Native: {
27
- WETH_ADDRESS: ''
28
- },
29
- Uniswap: {
30
- V2_FACTORY_ADDRESS: '',
31
- V2_ROUTER_ADDRESS: ''
32
- },
33
- OHL: {
34
- VAULT_ADDRESS: ''
35
- },
36
- MasterBlaster: {
37
- X9_ADDRESS: '',
38
- HANGAR_ADDRESS: '',
39
- GAME_SCORES_ADDRESS: '',
40
- GAME_REWARDS_ADDRESS: '',
41
- PRESALE_ADDRESS: '',
42
- REWARDS_POOL_ADDRESS: ''
43
- },
44
- WalkThePlanck: {}
45
- },
46
- [CHAIN_SLUGS.Arbitrum]: {
47
- Native: {
48
- WETH_ADDRESS: ''
49
- },
50
- Uniswap: {
51
- V2_FACTORY_ADDRESS: '',
52
- V2_ROUTER_ADDRESS: ''
53
- },
54
- OHL: {
55
- VAULT_ADDRESS: ''
56
- },
57
- MasterBlaster: {
58
- X9_ADDRESS: '',
59
- HANGAR_ADDRESS: '',
60
- GAME_SCORES_ADDRESS: '',
61
- GAME_REWARDS_ADDRESS: '',
62
- PRESALE_ADDRESS: '',
63
- REWARDS_POOL_ADDRESS: ''
64
- }
65
- },
66
- [CHAIN_SLUGS.Story]: {
67
- Native: {
68
- WETH_ADDRESS: ''
69
- },
70
- Uniswap: {
71
- V2_FACTORY_ADDRESS: '',
72
- V2_ROUTER_ADDRESS: ''
73
- },
74
- OHL: {
75
- VAULT_ADDRESS: ''
76
- },
77
- MasterBlaster: {
78
- X9_ADDRESS: '',
79
- HANGAR_ADDRESS: '',
80
- GAME_SCORES_ADDRESS: '',
81
- GAME_REWARDS_ADDRESS: '',
82
- PRESALE_ADDRESS: '',
83
- REWARDS_POOL_ADDRESS: ''
84
- }
85
- },
86
- [CHAIN_SLUGS.Monad]: {
87
- Native: {
88
- WETH_ADDRESS: ''
89
- },
90
- Uniswap: {
91
- V2_FACTORY_ADDRESS: '',
92
- V2_ROUTER_ADDRESS: ''
93
- },
94
- OHL: {
95
- VAULT_ADDRESS: ''
96
- },
97
- MasterBlaster: {
98
- X9_ADDRESS: '',
99
- HANGAR_ADDRESS: '',
100
- GAME_SCORES_ADDRESS: '',
101
- GAME_REWARDS_ADDRESS: '',
102
- PRESALE_ADDRESS: '',
103
- REWARDS_POOL_ADDRESS: ''
104
- }
105
- }
106
- },
107
- test: {
108
- [CHAIN_SLUGS.B3]: {
109
- Native: {
110
- WETH_ADDRESS: '0x518e89F88d6bb1331d22d6222D7eb72Fe58a74EC'
111
- },
112
- Uniswap: {
113
- V2_FACTORY_ADDRESS: '0xbF9490b6df41e701717AF95549D19b98C3334781',
114
- V2_ROUTER_ADDRESS: '0xaFC7978ecFb516B3561a544ee3cF312B2106caba'
115
- },
116
- OHL: {
117
- VAULT_ADDRESS: '0xF3ef01e56BD019dabF25a62b04bE34EbCf69a23c',
118
- testContract: {
119
- address: '0xTestAddress',
120
- abi: {
121
- abi: {
122
- somestuff: 'cool'
123
- }
124
- },
125
- version: '1.0.0'
126
- }
127
- },
128
- MasterBlaster: {
129
- X9_ADDRESS: '0x7df6824e8E992fc66c140d41557491d8B22c4B12',
130
- HANGAR_ADDRESS: '0xaf03eF31ac21A76bb8B5FfBe5bDaBB3611Dbddc2',
131
- GAME_SCORES_ADDRESS: '0x3727d858558861fa7A33E16B1E18788ADD506966',
132
- GAME_REWARDS_ADDRESS: '0x788125624e41B8f11F56059495d7D02c3970549F',
133
- PRESALE_ADDRESS: '0x0948a549a2da6429878f437E7dd47E7eA77dF763',
134
- REWARDS_POOL_ADDRESS: '0x518C1295796336032d8F2e8344385714D40027D2'
135
- }
136
- },
137
- [CHAIN_SLUGS.Base]: {
138
- Native: {
139
- WETH_ADDRESS: ''
140
- },
141
- Uniswap: {
142
- V2_FACTORY_ADDRESS: '',
143
- V2_ROUTER_ADDRESS: ''
144
- },
145
- OHL: {
146
- VAULT_ADDRESS: ''
147
- },
148
- MasterBlaster: {
149
- X9_ADDRESS: '',
150
- HANGAR_ADDRESS: '',
151
- GAME_SCORES_ADDRESS: '',
152
- GAME_REWARDS_ADDRESS: '',
153
- PRESALE_ADDRESS: '',
154
- REWARDS_POOL_ADDRESS: ''
155
- },
156
- WalkThePlanck: {
157
- Game: {
158
- address: '0x3899C423e68A87D4b543708351A6A54581e26D79',
159
- abi: [
160
- {
161
- inputs: [
162
- {
163
- internalType: 'address',
164
- name: 'initialOwner',
165
- type: 'address'
166
- },
167
- {
168
- internalType: 'address',
169
- name: 'initialTreasury',
170
- type: 'address'
171
- },
172
- {
173
- internalType: 'address',
174
- name: 'entropyAddress',
175
- type: 'address'
176
- }
177
- ],
178
- stateMutability: 'nonpayable',
179
- type: 'constructor'
180
- },
181
- {
182
- inputs: [],
183
- name: 'AlreadyJoined',
184
- type: 'error'
185
- },
186
- {
187
- inputs: [],
188
- name: 'EnforcedPause',
189
- type: 'error'
190
- },
191
- {
192
- inputs: [],
193
- name: 'ExpectedPause',
194
- type: 'error'
195
- },
196
- {
197
- inputs: [],
198
- name: 'IncorrectEthAmount',
199
- type: 'error'
200
- },
201
- {
202
- inputs: [
203
- {
204
- internalType: 'uint256',
205
- name: 'required',
206
- type: 'uint256'
207
- },
208
- {
209
- internalType: 'uint256',
210
- name: 'available',
211
- type: 'uint256'
212
- }
213
- ],
214
- name: 'InsufficientEntropyBalance',
215
- type: 'error'
216
- },
217
- {
218
- inputs: [
219
- {
220
- internalType: 'uint256',
221
- name: 'required',
222
- type: 'uint256'
223
- },
224
- {
225
- internalType: 'uint256',
226
- name: 'available',
227
- type: 'uint256'
228
- }
229
- ],
230
- name: 'InsufficientLobbyPot',
231
- type: 'error'
232
- },
233
- {
234
- inputs: [],
235
- name: 'InvalidEntryFee',
236
- type: 'error'
237
- },
238
- {
239
- inputs: [],
240
- name: 'InvalidLobby',
241
- type: 'error'
242
- },
243
- {
244
- inputs: [],
245
- name: 'InvalidPlayerCount',
246
- type: 'error'
247
- },
248
- {
249
- inputs: [],
250
- name: 'InvalidState',
251
- type: 'error'
252
- },
253
- {
254
- inputs: [],
255
- name: 'LobbyNotActive',
256
- type: 'error'
257
- },
258
- {
259
- inputs: [],
260
- name: 'LobbyNotCancelled',
261
- type: 'error'
262
- },
263
- {
264
- inputs: [],
265
- name: 'LobbyNotExpired',
266
- type: 'error'
267
- },
268
- {
269
- inputs: [],
270
- name: 'LobbyNotOpen',
271
- type: 'error'
272
- },
273
- {
274
- inputs: [],
275
- name: 'LobbyNotResolved',
276
- type: 'error'
277
- },
278
- {
279
- inputs: [],
280
- name: 'NotPlayersTurn',
281
- type: 'error'
282
- },
283
- {
284
- inputs: [],
285
- name: 'NothingToClaim',
286
- type: 'error'
287
- },
288
- {
289
- inputs: [],
290
- name: 'NothingToRefund',
291
- type: 'error'
292
- },
293
- {
294
- inputs: [
295
- {
296
- internalType: 'address',
297
- name: 'owner',
298
- type: 'address'
299
- }
300
- ],
301
- name: 'OwnableInvalidOwner',
302
- type: 'error'
303
- },
304
- {
305
- inputs: [
306
- {
307
- internalType: 'address',
308
- name: 'account',
309
- type: 'address'
310
- }
311
- ],
312
- name: 'OwnableUnauthorizedAccount',
313
- type: 'error'
314
- },
315
- {
316
- inputs: [],
317
- name: 'ReentrancyGuardReentrantCall',
318
- type: 'error'
319
- },
320
- {
321
- inputs: [],
322
- name: 'TransferFailed',
323
- type: 'error'
324
- },
325
- {
326
- inputs: [],
327
- name: 'UnauthorizedCallback',
328
- type: 'error'
329
- },
330
- {
331
- inputs: [],
332
- name: 'ZeroAddress',
333
- type: 'error'
334
- },
335
- {
336
- anonymous: false,
337
- inputs: [
338
- {
339
- indexed: false,
340
- internalType: 'uint256',
341
- name: 'entryFee',
342
- type: 'uint256'
343
- },
344
- {
345
- indexed: false,
346
- internalType: 'bool',
347
- name: 'allowed',
348
- type: 'bool'
349
- }
350
- ],
351
- name: 'AllowedEntryFeeSet',
352
- type: 'event'
353
- },
354
- {
355
- anonymous: false,
356
- inputs: [
357
- {
358
- indexed: true,
359
- internalType: 'uint256',
360
- name: 'lobbyId',
361
- type: 'uint256'
362
- },
363
- {
364
- indexed: true,
365
- internalType: 'address',
366
- name: 'player',
367
- type: 'address'
368
- },
369
- {
370
- indexed: false,
371
- internalType: 'uint256',
372
- name: 'amount',
373
- type: 'uint256'
374
- }
375
- ],
376
- name: 'Claimed',
377
- type: 'event'
378
- },
379
- {
380
- anonymous: false,
381
- inputs: [
382
- {
383
- indexed: true,
384
- internalType: 'address',
385
- name: 'newRouter',
386
- type: 'address'
387
- }
388
- ],
389
- name: 'EntropyRouterSet',
390
- type: 'event'
391
- },
392
- {
393
- anonymous: false,
394
- inputs: [
395
- {
396
- indexed: true,
397
- internalType: 'uint256',
398
- name: 'lobbyId',
399
- type: 'uint256'
400
- },
401
- {
402
- indexed: false,
403
- internalType: 'uint8',
404
- name: 'deathTurn',
405
- type: 'uint8'
406
- }
407
- ],
408
- name: 'LobbyActivated',
409
- type: 'event'
410
- },
411
- {
412
- anonymous: false,
413
- inputs: [
414
- {
415
- indexed: true,
416
- internalType: 'uint256',
417
- name: 'lobbyId',
418
- type: 'uint256'
419
- }
420
- ],
421
- name: 'LobbyCancelled',
422
- type: 'event'
423
- },
424
- {
425
- anonymous: false,
426
- inputs: [
427
- {
428
- indexed: true,
429
- internalType: 'uint256',
430
- name: 'lobbyId',
431
- type: 'uint256'
432
- },
433
- {
434
- indexed: true,
435
- internalType: 'uint8',
436
- name: 'maxPlayers',
437
- type: 'uint8'
438
- },
439
- {
440
- indexed: false,
441
- internalType: 'uint256',
442
- name: 'entryFee',
443
- type: 'uint256'
444
- },
445
- {
446
- indexed: false,
447
- internalType: 'uint256',
448
- name: 'deadline',
449
- type: 'uint256'
450
- }
451
- ],
452
- name: 'LobbyCreated',
453
- type: 'event'
454
- },
455
- {
456
- anonymous: false,
457
- inputs: [
458
- {
459
- indexed: false,
460
- internalType: 'uint256',
461
- name: 'newDuration',
462
- type: 'uint256'
463
- }
464
- ],
465
- name: 'LobbyDurationSet',
466
- type: 'event'
467
- },
468
- {
469
- anonymous: false,
470
- inputs: [
471
- {
472
- indexed: true,
473
- internalType: 'uint256',
474
- name: 'lobbyId',
475
- type: 'uint256'
476
- },
477
- {
478
- indexed: false,
479
- internalType: 'uint8',
480
- name: 'playerCount',
481
- type: 'uint8'
482
- }
483
- ],
484
- name: 'LobbyInitializationFailed',
485
- type: 'event'
486
- },
487
- {
488
- anonymous: false,
489
- inputs: [
490
- {
491
- indexed: true,
492
- internalType: 'uint256',
493
- name: 'sequenceNumber',
494
- type: 'uint256'
495
- }
496
- ],
497
- name: 'LobbyNotFound',
498
- type: 'event'
499
- },
500
- {
501
- anonymous: false,
502
- inputs: [
503
- {
504
- indexed: true,
505
- internalType: 'uint256',
506
- name: 'lobbyId',
507
- type: 'uint256'
508
- }
509
- ],
510
- name: 'LobbyNotResolvable',
511
- type: 'event'
512
- },
513
- {
514
- anonymous: false,
515
- inputs: [
516
- {
517
- indexed: true,
518
- internalType: 'uint256',
519
- name: 'lobbyId',
520
- type: 'uint256'
521
- },
522
- {
523
- indexed: true,
524
- internalType: 'address',
525
- name: 'loser',
526
- type: 'address'
527
- },
528
- {
529
- indexed: false,
530
- internalType: 'uint8',
531
- name: 'loserIndex',
532
- type: 'uint8'
533
- },
534
- {
535
- indexed: false,
536
- internalType: 'uint256',
537
- name: 'payoutPerSurvivor',
538
- type: 'uint256'
539
- },
540
- {
541
- indexed: false,
542
- internalType: 'uint256',
543
- name: 'houseFee',
544
- type: 'uint256'
545
- },
546
- {
547
- indexed: false,
548
- internalType: 'uint256',
549
- name: 'dust',
550
- type: 'uint256'
551
- }
552
- ],
553
- name: 'LobbyResolved',
554
- type: 'event'
555
- },
556
- {
557
- anonymous: false,
558
- inputs: [
559
- {
560
- indexed: true,
561
- internalType: 'uint256',
562
- name: 'lobbyId',
563
- type: 'uint256'
564
- },
565
- {
566
- indexed: true,
567
- internalType: 'uint64',
568
- name: 'sequenceNumber',
569
- type: 'uint64'
570
- }
571
- ],
572
- name: 'LobbyResolving',
573
- type: 'event'
574
- },
575
- {
576
- anonymous: false,
577
- inputs: [
578
- {
579
- indexed: true,
580
- internalType: 'address',
581
- name: 'previousOwner',
582
- type: 'address'
583
- },
584
- {
585
- indexed: true,
586
- internalType: 'address',
587
- name: 'newOwner',
588
- type: 'address'
589
- }
590
- ],
591
- name: 'OwnershipTransferred',
592
- type: 'event'
593
- },
594
- {
595
- anonymous: false,
596
- inputs: [
597
- {
598
- indexed: false,
599
- internalType: 'address',
600
- name: 'account',
601
- type: 'address'
602
- }
603
- ],
604
- name: 'Paused',
605
- type: 'event'
606
- },
607
- {
608
- anonymous: false,
609
- inputs: [
610
- {
611
- indexed: true,
612
- internalType: 'uint256',
613
- name: 'lobbyId',
614
- type: 'uint256'
615
- },
616
- {
617
- indexed: true,
618
- internalType: 'address',
619
- name: 'player',
620
- type: 'address'
621
- },
622
- {
623
- indexed: false,
624
- internalType: 'uint8',
625
- name: 'turn',
626
- type: 'uint8'
627
- },
628
- {
629
- indexed: false,
630
- internalType: 'bool',
631
- name: 'survived',
632
- type: 'bool'
633
- }
634
- ],
635
- name: 'PlankWalked',
636
- type: 'event'
637
- },
638
- {
639
- anonymous: false,
640
- inputs: [
641
- {
642
- indexed: true,
643
- internalType: 'uint256',
644
- name: 'lobbyId',
645
- type: 'uint256'
646
- },
647
- {
648
- indexed: true,
649
- internalType: 'address',
650
- name: 'player',
651
- type: 'address'
652
- },
653
- {
654
- indexed: false,
655
- internalType: 'uint8',
656
- name: 'playerCount',
657
- type: 'uint8'
658
- },
659
- {
660
- indexed: false,
661
- internalType: 'uint8',
662
- name: 'maxPlayers',
663
- type: 'uint8'
664
- }
665
- ],
666
- name: 'PlayerJoined',
667
- type: 'event'
668
- },
669
- {
670
- anonymous: false,
671
- inputs: [
672
- {
673
- indexed: true,
674
- internalType: 'address',
675
- name: 'to',
676
- type: 'address'
677
- },
678
- {
679
- indexed: false,
680
- internalType: 'uint256',
681
- name: 'amount',
682
- type: 'uint256'
683
- }
684
- ],
685
- name: 'ProtocolFeesWithdrawn',
686
- type: 'event'
687
- },
688
- {
689
- anonymous: false,
690
- inputs: [
691
- {
692
- indexed: true,
693
- internalType: 'uint256',
694
- name: 'lobbyId',
695
- type: 'uint256'
696
- },
697
- {
698
- indexed: true,
699
- internalType: 'address',
700
- name: 'player',
701
- type: 'address'
702
- },
703
- {
704
- indexed: false,
705
- internalType: 'uint256',
706
- name: 'amount',
707
- type: 'uint256'
708
- }
709
- ],
710
- name: 'RefundClaimed',
711
- type: 'event'
712
- },
713
- {
714
- anonymous: false,
715
- inputs: [
716
- {
717
- indexed: true,
718
- internalType: 'address',
719
- name: 'newTreasury',
720
- type: 'address'
721
- }
722
- ],
723
- name: 'TreasurySet',
724
- type: 'event'
725
- },
726
- {
727
- anonymous: false,
728
- inputs: [
729
- {
730
- indexed: false,
731
- internalType: 'address',
732
- name: 'account',
733
- type: 'address'
734
- }
735
- ],
736
- name: 'Unpaused',
737
- type: 'event'
738
- },
739
- {
740
- inputs: [],
741
- name: 'BPS_DENOMINATOR',
742
- outputs: [
743
- {
744
- internalType: 'uint256',
745
- name: '',
746
- type: 'uint256'
747
- }
748
- ],
749
- stateMutability: 'view',
750
- type: 'function'
751
- },
752
- {
753
- inputs: [],
754
- name: 'HOUSE_BPS',
755
- outputs: [
756
- {
757
- internalType: 'uint256',
758
- name: '',
759
- type: 'uint256'
760
- }
761
- ],
762
- stateMutability: 'view',
763
- type: 'function'
764
- },
765
- {
766
- inputs: [],
767
- name: 'MAX_PLAYERS',
768
- outputs: [
769
- {
770
- internalType: 'uint8',
771
- name: '',
772
- type: 'uint8'
773
- }
774
- ],
775
- stateMutability: 'view',
776
- type: 'function'
777
- },
778
- {
779
- inputs: [],
780
- name: 'MIN_PLAYERS',
781
- outputs: [
782
- {
783
- internalType: 'uint8',
784
- name: '',
785
- type: 'uint8'
786
- }
787
- ],
788
- stateMutability: 'view',
789
- type: 'function'
790
- },
791
- {
792
- inputs: [
793
- {
794
- internalType: 'uint64',
795
- name: 'sequence',
796
- type: 'uint64'
797
- },
798
- {
799
- internalType: 'address',
800
- name: 'provider',
801
- type: 'address'
802
- },
803
- {
804
- internalType: 'bytes32',
805
- name: 'randomNumber',
806
- type: 'bytes32'
807
- }
808
- ],
809
- name: '_entropyCallback',
810
- outputs: [],
811
- stateMutability: 'nonpayable',
812
- type: 'function'
813
- },
814
- {
815
- inputs: [
816
- {
817
- internalType: 'bytes32',
818
- name: '',
819
- type: 'bytes32'
820
- }
821
- ],
822
- name: 'activeLobbyByQueueKey',
823
- outputs: [
824
- {
825
- internalType: 'uint256',
826
- name: '',
827
- type: 'uint256'
828
- }
829
- ],
830
- stateMutability: 'view',
831
- type: 'function'
832
- },
833
- {
834
- inputs: [
835
- {
836
- internalType: 'uint256',
837
- name: '',
838
- type: 'uint256'
839
- }
840
- ],
841
- name: 'allowedEntryFees',
842
- outputs: [
843
- {
844
- internalType: 'bool',
845
- name: '',
846
- type: 'bool'
847
- }
848
- ],
849
- stateMutability: 'view',
850
- type: 'function'
851
- },
852
- {
853
- inputs: [
854
- {
855
- internalType: 'uint256',
856
- name: 'lobbyId',
857
- type: 'uint256'
858
- }
859
- ],
860
- name: 'cancelExpiredLobby',
861
- outputs: [],
862
- stateMutability: 'nonpayable',
863
- type: 'function'
864
- },
865
- {
866
- inputs: [
867
- {
868
- internalType: 'uint256',
869
- name: 'lobbyId',
870
- type: 'uint256'
871
- }
872
- ],
873
- name: 'claim',
874
- outputs: [],
875
- stateMutability: 'nonpayable',
876
- type: 'function'
877
- },
878
- {
879
- inputs: [
880
- {
881
- internalType: 'uint256',
882
- name: 'lobbyId',
883
- type: 'uint256'
884
- }
885
- ],
886
- name: 'claimRefund',
887
- outputs: [],
888
- stateMutability: 'nonpayable',
889
- type: 'function'
890
- },
891
- {
892
- inputs: [
893
- {
894
- internalType: 'uint256',
895
- name: '',
896
- type: 'uint256'
897
- },
898
- {
899
- internalType: 'address',
900
- name: '',
901
- type: 'address'
902
- }
903
- ],
904
- name: 'claimable',
905
- outputs: [
906
- {
907
- internalType: 'uint256',
908
- name: '',
909
- type: 'uint256'
910
- }
911
- ],
912
- stateMutability: 'view',
913
- type: 'function'
914
- },
915
- {
916
- inputs: [],
917
- name: 'entropy',
918
- outputs: [
919
- {
920
- internalType: 'contract IEntropyV2',
921
- name: '',
922
- type: 'address'
923
- }
924
- ],
925
- stateMutability: 'view',
926
- type: 'function'
927
- },
928
- {
929
- inputs: [
930
- {
931
- internalType: 'uint8',
932
- name: 'maxPlayers',
933
- type: 'uint8'
934
- },
935
- {
936
- internalType: 'uint256',
937
- name: 'entryFee',
938
- type: 'uint256'
939
- }
940
- ],
941
- name: 'getActiveLobby',
942
- outputs: [
943
- {
944
- internalType: 'uint256',
945
- name: '',
946
- type: 'uint256'
947
- }
948
- ],
949
- stateMutability: 'view',
950
- type: 'function'
951
- },
952
- {
953
- inputs: [
954
- {
955
- internalType: 'uint256',
956
- name: 'lobbyId',
957
- type: 'uint256'
958
- }
959
- ],
960
- name: 'getCurrentWalker',
961
- outputs: [
962
- {
963
- internalType: 'address',
964
- name: '',
965
- type: 'address'
966
- }
967
- ],
968
- stateMutability: 'view',
969
- type: 'function'
970
- },
971
- {
972
- inputs: [],
973
- name: 'getEntropyRequestFee',
974
- outputs: [
975
- {
976
- internalType: 'uint256',
977
- name: '',
978
- type: 'uint256'
979
- }
980
- ],
981
- stateMutability: 'view',
982
- type: 'function'
983
- },
984
- {
985
- inputs: [
986
- {
987
- internalType: 'uint256',
988
- name: 'lobbyId',
989
- type: 'uint256'
990
- }
991
- ],
992
- name: 'getLobbyPlayers',
993
- outputs: [
994
- {
995
- internalType: 'address[]',
996
- name: '',
997
- type: 'address[]'
998
- }
999
- ],
1000
- stateMutability: 'view',
1001
- type: 'function'
1002
- },
1003
- {
1004
- inputs: [
1005
- {
1006
- internalType: 'uint256',
1007
- name: 'lobbyId',
1008
- type: 'uint256'
1009
- }
1010
- ],
1011
- name: 'getTurnOrder',
1012
- outputs: [
1013
- {
1014
- internalType: 'address[]',
1015
- name: '',
1016
- type: 'address[]'
1017
- }
1018
- ],
1019
- stateMutability: 'view',
1020
- type: 'function'
1021
- },
1022
- {
1023
- inputs: [
1024
- {
1025
- internalType: 'uint256',
1026
- name: 'entryFee',
1027
- type: 'uint256'
1028
- }
1029
- ],
1030
- name: 'isAllowedEntryFee',
1031
- outputs: [
1032
- {
1033
- internalType: 'bool',
1034
- name: '',
1035
- type: 'bool'
1036
- }
1037
- ],
1038
- stateMutability: 'view',
1039
- type: 'function'
1040
- },
1041
- {
1042
- inputs: [
1043
- {
1044
- internalType: 'uint8',
1045
- name: 'maxPlayers',
1046
- type: 'uint8'
1047
- },
1048
- {
1049
- internalType: 'uint256',
1050
- name: 'entryFee',
1051
- type: 'uint256'
1052
- }
1053
- ],
1054
- name: 'joinQueue',
1055
- outputs: [
1056
- {
1057
- internalType: 'uint256',
1058
- name: 'lobbyId',
1059
- type: 'uint256'
1060
- }
1061
- ],
1062
- stateMutability: 'payable',
1063
- type: 'function'
1064
- },
1065
- {
1066
- inputs: [
1067
- {
1068
- internalType: 'uint256',
1069
- name: '',
1070
- type: 'uint256'
1071
- },
1072
- {
1073
- internalType: 'address',
1074
- name: '',
1075
- type: 'address'
1076
- }
1077
- ],
1078
- name: 'joined',
1079
- outputs: [
1080
- {
1081
- internalType: 'bool',
1082
- name: '',
1083
- type: 'bool'
1084
- }
1085
- ],
1086
- stateMutability: 'view',
1087
- type: 'function'
1088
- },
1089
- {
1090
- inputs: [
1091
- {
1092
- internalType: 'uint256',
1093
- name: '',
1094
- type: 'uint256'
1095
- }
1096
- ],
1097
- name: 'lobbies',
1098
- outputs: [
1099
- {
1100
- internalType: 'uint256',
1101
- name: 'id',
1102
- type: 'uint256'
1103
- },
1104
- {
1105
- internalType: 'uint8',
1106
- name: 'maxPlayers',
1107
- type: 'uint8'
1108
- },
1109
- {
1110
- internalType: 'uint8',
1111
- name: 'playerCount',
1112
- type: 'uint8'
1113
- },
1114
- {
1115
- internalType: 'uint256',
1116
- name: 'entryFee',
1117
- type: 'uint256'
1118
- },
1119
- {
1120
- internalType: 'uint256',
1121
- name: 'entropyFee',
1122
- type: 'uint256'
1123
- },
1124
- {
1125
- internalType: 'uint256',
1126
- name: 'totalPot',
1127
- type: 'uint256'
1128
- },
1129
- {
1130
- internalType: 'uint256',
1131
- name: 'deadline',
1132
- type: 'uint256'
1133
- },
1134
- {
1135
- internalType: 'enum WalkThePlanck.Status',
1136
- name: 'status',
1137
- type: 'uint8'
1138
- },
1139
- {
1140
- internalType: 'uint8',
1141
- name: 'loserIndex',
1142
- type: 'uint8'
1143
- },
1144
- {
1145
- internalType: 'uint8',
1146
- name: 'currentTurn',
1147
- type: 'uint8'
1148
- },
1149
- {
1150
- internalType: 'uint8',
1151
- name: 'deathTurn',
1152
- type: 'uint8'
1153
- },
1154
- {
1155
- internalType: 'uint64',
1156
- name: 'sequenceNumber',
1157
- type: 'uint64'
1158
- },
1159
- {
1160
- internalType: 'address',
1161
- name: 'loser',
1162
- type: 'address'
1163
- }
1164
- ],
1165
- stateMutability: 'view',
1166
- type: 'function'
1167
- },
1168
- {
1169
- inputs: [],
1170
- name: 'lobbyDuration',
1171
- outputs: [
1172
- {
1173
- internalType: 'uint256',
1174
- name: '',
1175
- type: 'uint256'
1176
- }
1177
- ],
1178
- stateMutability: 'view',
1179
- type: 'function'
1180
- },
1181
- {
1182
- inputs: [],
1183
- name: 'nextLobbyId',
1184
- outputs: [
1185
- {
1186
- internalType: 'uint256',
1187
- name: '',
1188
- type: 'uint256'
1189
- }
1190
- ],
1191
- stateMutability: 'view',
1192
- type: 'function'
1193
- },
1194
- {
1195
- inputs: [],
1196
- name: 'owner',
1197
- outputs: [
1198
- {
1199
- internalType: 'address',
1200
- name: '',
1201
- type: 'address'
1202
- }
1203
- ],
1204
- stateMutability: 'view',
1205
- type: 'function'
1206
- },
1207
- {
1208
- inputs: [],
1209
- name: 'pause',
1210
- outputs: [],
1211
- stateMutability: 'nonpayable',
1212
- type: 'function'
1213
- },
1214
- {
1215
- inputs: [],
1216
- name: 'paused',
1217
- outputs: [
1218
- {
1219
- internalType: 'bool',
1220
- name: '',
1221
- type: 'bool'
1222
- }
1223
- ],
1224
- stateMutability: 'view',
1225
- type: 'function'
1226
- },
1227
- {
1228
- inputs: [
1229
- {
1230
- internalType: 'uint8',
1231
- name: 'maxPlayers',
1232
- type: 'uint8'
1233
- },
1234
- {
1235
- internalType: 'uint256',
1236
- name: 'entryFee',
1237
- type: 'uint256'
1238
- }
1239
- ],
1240
- name: 'previewJoinCost',
1241
- outputs: [
1242
- {
1243
- internalType: 'uint256',
1244
- name: '',
1245
- type: 'uint256'
1246
- }
1247
- ],
1248
- stateMutability: 'view',
1249
- type: 'function'
1250
- },
1251
- {
1252
- inputs: [
1253
- {
1254
- internalType: 'uint8',
1255
- name: 'maxPlayers',
1256
- type: 'uint8'
1257
- },
1258
- {
1259
- internalType: 'uint256',
1260
- name: 'entryFee',
1261
- type: 'uint256'
1262
- }
1263
- ],
1264
- name: 'previewPayout',
1265
- outputs: [
1266
- {
1267
- internalType: 'uint256',
1268
- name: '',
1269
- type: 'uint256'
1270
- }
1271
- ],
1272
- stateMutability: 'view',
1273
- type: 'function'
1274
- },
1275
- {
1276
- inputs: [],
1277
- name: 'protocolFeesAccrued',
1278
- outputs: [
1279
- {
1280
- internalType: 'uint256',
1281
- name: '',
1282
- type: 'uint256'
1283
- }
1284
- ],
1285
- stateMutability: 'view',
1286
- type: 'function'
1287
- },
1288
- {
1289
- inputs: [
1290
- {
1291
- internalType: 'uint8',
1292
- name: 'maxPlayers',
1293
- type: 'uint8'
1294
- },
1295
- {
1296
- internalType: 'uint256',
1297
- name: 'entryFee',
1298
- type: 'uint256'
1299
- }
1300
- ],
1301
- name: 'queueKeyOf',
1302
- outputs: [
1303
- {
1304
- internalType: 'bytes32',
1305
- name: '',
1306
- type: 'bytes32'
1307
- }
1308
- ],
1309
- stateMutability: 'pure',
1310
- type: 'function'
1311
- },
1312
- {
1313
- inputs: [
1314
- {
1315
- internalType: 'uint256',
1316
- name: '',
1317
- type: 'uint256'
1318
- },
1319
- {
1320
- internalType: 'address',
1321
- name: '',
1322
- type: 'address'
1323
- }
1324
- ],
1325
- name: 'refundable',
1326
- outputs: [
1327
- {
1328
- internalType: 'uint256',
1329
- name: '',
1330
- type: 'uint256'
1331
- }
1332
- ],
1333
- stateMutability: 'view',
1334
- type: 'function'
1335
- },
1336
- {
1337
- inputs: [],
1338
- name: 'renounceOwnership',
1339
- outputs: [],
1340
- stateMutability: 'nonpayable',
1341
- type: 'function'
1342
- },
1343
- {
1344
- inputs: [
1345
- {
1346
- internalType: 'uint64',
1347
- name: '',
1348
- type: 'uint64'
1349
- }
1350
- ],
1351
- name: 'sequenceToLobbyId',
1352
- outputs: [
1353
- {
1354
- internalType: 'uint256',
1355
- name: '',
1356
- type: 'uint256'
1357
- }
1358
- ],
1359
- stateMutability: 'view',
1360
- type: 'function'
1361
- },
1362
- {
1363
- inputs: [
1364
- {
1365
- internalType: 'uint256',
1366
- name: 'entryFee',
1367
- type: 'uint256'
1368
- },
1369
- {
1370
- internalType: 'bool',
1371
- name: 'allowed',
1372
- type: 'bool'
1373
- }
1374
- ],
1375
- name: 'setAllowedEntryFee',
1376
- outputs: [],
1377
- stateMutability: 'nonpayable',
1378
- type: 'function'
1379
- },
1380
- {
1381
- inputs: [
1382
- {
1383
- internalType: 'address',
1384
- name: 'newEntropy',
1385
- type: 'address'
1386
- }
1387
- ],
1388
- name: 'setEntropyRouter',
1389
- outputs: [],
1390
- stateMutability: 'nonpayable',
1391
- type: 'function'
1392
- },
1393
- {
1394
- inputs: [
1395
- {
1396
- internalType: 'uint256',
1397
- name: 'newDuration',
1398
- type: 'uint256'
1399
- }
1400
- ],
1401
- name: 'setLobbyDuration',
1402
- outputs: [],
1403
- stateMutability: 'nonpayable',
1404
- type: 'function'
1405
- },
1406
- {
1407
- inputs: [
1408
- {
1409
- internalType: 'address',
1410
- name: 'newTreasury',
1411
- type: 'address'
1412
- }
1413
- ],
1414
- name: 'setTreasury',
1415
- outputs: [],
1416
- stateMutability: 'nonpayable',
1417
- type: 'function'
1418
- },
1419
- {
1420
- inputs: [
1421
- {
1422
- internalType: 'address',
1423
- name: 'newOwner',
1424
- type: 'address'
1425
- }
1426
- ],
1427
- name: 'transferOwnership',
1428
- outputs: [],
1429
- stateMutability: 'nonpayable',
1430
- type: 'function'
1431
- },
1432
- {
1433
- inputs: [],
1434
- name: 'treasury',
1435
- outputs: [
1436
- {
1437
- internalType: 'address',
1438
- name: '',
1439
- type: 'address'
1440
- }
1441
- ],
1442
- stateMutability: 'view',
1443
- type: 'function'
1444
- },
1445
- {
1446
- inputs: [],
1447
- name: 'unpause',
1448
- outputs: [],
1449
- stateMutability: 'nonpayable',
1450
- type: 'function'
1451
- },
1452
- {
1453
- inputs: [
1454
- {
1455
- internalType: 'uint256',
1456
- name: 'lobbyId',
1457
- type: 'uint256'
1458
- }
1459
- ],
1460
- name: 'walk',
1461
- outputs: [],
1462
- stateMutability: 'nonpayable',
1463
- type: 'function'
1464
- },
1465
- {
1466
- inputs: [
1467
- {
1468
- internalType: 'address',
1469
- name: 'to',
1470
- type: 'address'
1471
- },
1472
- {
1473
- internalType: 'uint256',
1474
- name: 'amount',
1475
- type: 'uint256'
1476
- }
1477
- ],
1478
- name: 'withdrawProtocolFees',
1479
- outputs: [],
1480
- stateMutability: 'nonpayable',
1481
- type: 'function'
1482
- },
1483
- {
1484
- stateMutability: 'payable',
1485
- type: 'receive'
1486
- }
1487
- ],
1488
- version: '0.0.0'
1489
- }
1490
- }
1491
- },
1492
- [CHAIN_SLUGS.Base]: {
1493
- Native: {
1494
- WETH_ADDRESS: ''
1495
- },
1496
- Uniswap: {
1497
- V2_FACTORY_ADDRESS: '',
1498
- V2_ROUTER_ADDRESS: ''
1499
- },
1500
- OHL: {
1501
- VAULT_ADDRESS: ''
1502
- },
1503
- MasterBlaster: {
1504
- X9_ADDRESS: '',
1505
- HANGAR_ADDRESS: '',
1506
- GAME_SCORES_ADDRESS: '',
1507
- GAME_REWARDS_ADDRESS: '',
1508
- PRESALE_ADDRESS: '',
1509
- REWARDS_POOL_ADDRESS: ''
1510
- },
1511
- WalkThePlanck: {}
1512
- },
1513
- [CHAIN_SLUGS.Arbitrum]: {
1514
- Native: {
1515
- WETH_ADDRESS: ''
1516
- },
1517
- Uniswap: {
1518
- V2_FACTORY_ADDRESS: '',
1519
- V2_ROUTER_ADDRESS: ''
1520
- },
1521
- OHL: {
1522
- VAULT_ADDRESS: ''
1523
- },
1524
- MasterBlaster: {
1525
- X9_ADDRESS: '',
1526
- HANGAR_ADDRESS: '',
1527
- GAME_SCORES_ADDRESS: '',
1528
- GAME_REWARDS_ADDRESS: '',
1529
- PRESALE_ADDRESS: '',
1530
- REWARDS_POOL_ADDRESS: ''
1531
- }
1532
- },
1533
- [CHAIN_SLUGS.Story]: {
1534
- Native: {
1535
- WETH_ADDRESS: ''
1536
- },
1537
- Uniswap: {
1538
- V2_FACTORY_ADDRESS: '',
1539
- V2_ROUTER_ADDRESS: ''
1540
- },
1541
- OHL: {
1542
- VAULT_ADDRESS: ''
1543
- },
1544
- MasterBlaster: {
1545
- X9_ADDRESS: '0x7b8084392FD0e9e8a7a9c71dc700a54708b7fa67',
1546
- HANGAR_ADDRESS: '0x83a2Fb85A7C8938674162Ad7e6121d4772555ea2',
1547
- GAME_SCORES_ADDRESS: '0xcBAEF7Bf1b530c2C7Ef897AcbC47BdCA705185F6',
1548
- GAME_REWARDS_ADDRESS: '',
1549
- PRESALE_ADDRESS: '',
1550
- REWARDS_POOL_ADDRESS: ''
1551
- }
1552
- },
1553
- [CHAIN_SLUGS.Monad]: {
1554
- Native: {
1555
- WETH_ADDRESS: ''
1556
- },
1557
- Uniswap: {
1558
- V2_FACTORY_ADDRESS: '',
1559
- V2_ROUTER_ADDRESS: ''
1560
- },
1561
- OHL: {
1562
- VAULT_ADDRESS: ''
1563
- },
1564
- MasterBlaster: {
1565
- X9_ADDRESS: '',
1566
- HANGAR_ADDRESS: '',
1567
- GAME_SCORES_ADDRESS: '',
1568
- GAME_REWARDS_ADDRESS: '',
1569
- PRESALE_ADDRESS: '',
1570
- REWARDS_POOL_ADDRESS: ''
1571
- }
1572
- }
1573
- }
1574
- }
1575
-
1576
- exports.contractIndex = contractIndex;
1
+ const { CHAIN_SLUGS } = require("@ohlabs/configuration/chain-slugs");
2
+
3
+ const contractIndex = {
4
+ production: {
5
+ [CHAIN_SLUGS.B3]: {
6
+ Native: {
7
+ WETH_ADDRESS: ''
8
+ },
9
+ Uniswap: {
10
+ V2_FACTORY_ADDRESS: '',
11
+ V2_ROUTER_ADDRESS: ''
12
+ },
13
+ OHL: {
14
+ VAULT_ADDRESS: ''
15
+ },
16
+ MasterBlaster: {
17
+ X9_ADDRESS: '0x300C2542CC54dDf712f012EBc95F605A7d2A9d1f',
18
+ HANGAR_ADDRESS: '0x5dD46959622E43595eA9BbF31CD2f486AF85816F',
19
+ GAME_SCORES_ADDRESS: '0xF59b8Ae63208De9BC4bee0ede88211688Ab10acF',
20
+ GAME_REWARDS_ADDRESS: '',
21
+ PRESALE_ADDRESS: '',
22
+ REWARDS_POOL_ADDRESS: ''
23
+ }
24
+ },
25
+ [CHAIN_SLUGS.Base]: {
26
+ Native: {
27
+ WETH_ADDRESS: ''
28
+ },
29
+ Uniswap: {
30
+ V2_FACTORY_ADDRESS: '',
31
+ V2_ROUTER_ADDRESS: ''
32
+ },
33
+ OHL: {
34
+ VAULT_ADDRESS: ''
35
+ },
36
+ MasterBlaster: {
37
+ X9_ADDRESS: '',
38
+ HANGAR_ADDRESS: '',
39
+ GAME_SCORES_ADDRESS: '',
40
+ GAME_REWARDS_ADDRESS: '',
41
+ PRESALE_ADDRESS: '',
42
+ REWARDS_POOL_ADDRESS: ''
43
+ },
44
+ WalkThePlanck: {}
45
+ },
46
+ [CHAIN_SLUGS.Arbitrum]: {
47
+ Native: {
48
+ WETH_ADDRESS: ''
49
+ },
50
+ Uniswap: {
51
+ V2_FACTORY_ADDRESS: '',
52
+ V2_ROUTER_ADDRESS: ''
53
+ },
54
+ OHL: {
55
+ VAULT_ADDRESS: ''
56
+ },
57
+ MasterBlaster: {
58
+ X9_ADDRESS: '',
59
+ HANGAR_ADDRESS: '',
60
+ GAME_SCORES_ADDRESS: '',
61
+ GAME_REWARDS_ADDRESS: '',
62
+ PRESALE_ADDRESS: '',
63
+ REWARDS_POOL_ADDRESS: ''
64
+ }
65
+ },
66
+ [CHAIN_SLUGS.Story]: {
67
+ Native: {
68
+ WETH_ADDRESS: ''
69
+ },
70
+ Uniswap: {
71
+ V2_FACTORY_ADDRESS: '',
72
+ V2_ROUTER_ADDRESS: ''
73
+ },
74
+ OHL: {
75
+ VAULT_ADDRESS: ''
76
+ },
77
+ MasterBlaster: {
78
+ X9_ADDRESS: '',
79
+ HANGAR_ADDRESS: '',
80
+ GAME_SCORES_ADDRESS: '',
81
+ GAME_REWARDS_ADDRESS: '',
82
+ PRESALE_ADDRESS: '',
83
+ REWARDS_POOL_ADDRESS: ''
84
+ }
85
+ },
86
+ [CHAIN_SLUGS.Monad]: {
87
+ Native: {
88
+ WETH_ADDRESS: ''
89
+ },
90
+ Uniswap: {
91
+ V2_FACTORY_ADDRESS: '',
92
+ V2_ROUTER_ADDRESS: ''
93
+ },
94
+ OHL: {
95
+ VAULT_ADDRESS: ''
96
+ },
97
+ MasterBlaster: {
98
+ X9_ADDRESS: '',
99
+ HANGAR_ADDRESS: '',
100
+ GAME_SCORES_ADDRESS: '',
101
+ GAME_REWARDS_ADDRESS: '',
102
+ PRESALE_ADDRESS: '',
103
+ REWARDS_POOL_ADDRESS: ''
104
+ }
105
+ }
106
+ },
107
+ test: {
108
+ [CHAIN_SLUGS.B3]: {
109
+ Native: {
110
+ WETH_ADDRESS: '0x518e89F88d6bb1331d22d6222D7eb72Fe58a74EC'
111
+ },
112
+ Uniswap: {
113
+ V2_FACTORY_ADDRESS: '0xbF9490b6df41e701717AF95549D19b98C3334781',
114
+ V2_ROUTER_ADDRESS: '0xaFC7978ecFb516B3561a544ee3cF312B2106caba'
115
+ },
116
+ OHL: {
117
+ VAULT_ADDRESS: '0xF3ef01e56BD019dabF25a62b04bE34EbCf69a23c',
118
+ testContract: {
119
+ address: '0xTestAddress',
120
+ abi: {
121
+ abi: {
122
+ somestuff: 'cool'
123
+ }
124
+ },
125
+ version: '1.0.0'
126
+ }
127
+ },
128
+ MasterBlaster: {
129
+ X9_ADDRESS: '0x7df6824e8E992fc66c140d41557491d8B22c4B12',
130
+ HANGAR_ADDRESS: '0xaf03eF31ac21A76bb8B5FfBe5bDaBB3611Dbddc2',
131
+ GAME_SCORES_ADDRESS: '0x3727d858558861fa7A33E16B1E18788ADD506966',
132
+ GAME_REWARDS_ADDRESS: '0x788125624e41B8f11F56059495d7D02c3970549F',
133
+ PRESALE_ADDRESS: '0x0948a549a2da6429878f437E7dd47E7eA77dF763',
134
+ REWARDS_POOL_ADDRESS: '0x518C1295796336032d8F2e8344385714D40027D2'
135
+ }
136
+ },
137
+ [CHAIN_SLUGS.Base]: {
138
+ Native: {
139
+ WETH_ADDRESS: ''
140
+ },
141
+ Uniswap: {
142
+ V2_FACTORY_ADDRESS: '',
143
+ V2_ROUTER_ADDRESS: ''
144
+ },
145
+ OHL: {
146
+ VAULT_ADDRESS: ''
147
+ },
148
+ MasterBlaster: {
149
+ X9_ADDRESS: '',
150
+ HANGAR_ADDRESS: '',
151
+ GAME_SCORES_ADDRESS: '',
152
+ GAME_REWARDS_ADDRESS: '',
153
+ PRESALE_ADDRESS: '',
154
+ REWARDS_POOL_ADDRESS: ''
155
+ },
156
+ WalkThePlanck: {
157
+ Game: {
158
+ address: '0xf8090765C3812c76eE118122e4D05AFb2daA1a6a',
159
+ abi: [
160
+ {
161
+ inputs: [
162
+ {
163
+ internalType: 'address',
164
+ name: 'initialOwner',
165
+ type: 'address'
166
+ },
167
+ {
168
+ internalType: 'address',
169
+ name: 'initialTreasury',
170
+ type: 'address'
171
+ },
172
+ {
173
+ internalType: 'address',
174
+ name: 'entropyAddress',
175
+ type: 'address'
176
+ }
177
+ ],
178
+ stateMutability: 'nonpayable',
179
+ type: 'constructor'
180
+ },
181
+ {
182
+ inputs: [],
183
+ name: 'AlreadyJoined',
184
+ type: 'error'
185
+ },
186
+ {
187
+ inputs: [],
188
+ name: 'EnforcedPause',
189
+ type: 'error'
190
+ },
191
+ {
192
+ inputs: [],
193
+ name: 'ExpectedPause',
194
+ type: 'error'
195
+ },
196
+ {
197
+ inputs: [],
198
+ name: 'IncorrectEthAmount',
199
+ type: 'error'
200
+ },
201
+ {
202
+ inputs: [
203
+ {
204
+ internalType: 'uint256',
205
+ name: 'required',
206
+ type: 'uint256'
207
+ },
208
+ {
209
+ internalType: 'uint256',
210
+ name: 'available',
211
+ type: 'uint256'
212
+ }
213
+ ],
214
+ name: 'InsufficientEntropyBalance',
215
+ type: 'error'
216
+ },
217
+ {
218
+ inputs: [
219
+ {
220
+ internalType: 'uint256',
221
+ name: 'required',
222
+ type: 'uint256'
223
+ },
224
+ {
225
+ internalType: 'uint256',
226
+ name: 'available',
227
+ type: 'uint256'
228
+ }
229
+ ],
230
+ name: 'InsufficientMatchPot',
231
+ type: 'error'
232
+ },
233
+ {
234
+ inputs: [],
235
+ name: 'InvalidEntryFee',
236
+ type: 'error'
237
+ },
238
+ {
239
+ inputs: [],
240
+ name: 'InvalidMatch',
241
+ type: 'error'
242
+ },
243
+ {
244
+ inputs: [],
245
+ name: 'InvalidPlayerCount',
246
+ type: 'error'
247
+ },
248
+ {
249
+ inputs: [],
250
+ name: 'InvalidState',
251
+ type: 'error'
252
+ },
253
+ {
254
+ inputs: [],
255
+ name: 'MatchNotCancelled',
256
+ type: 'error'
257
+ },
258
+ {
259
+ inputs: [],
260
+ name: 'MatchNotExpired',
261
+ type: 'error'
262
+ },
263
+ {
264
+ inputs: [],
265
+ name: 'MatchNotOpen',
266
+ type: 'error'
267
+ },
268
+ {
269
+ inputs: [],
270
+ name: 'MatchNotResolved',
271
+ type: 'error'
272
+ },
273
+ {
274
+ inputs: [],
275
+ name: 'NothingToClaim',
276
+ type: 'error'
277
+ },
278
+ {
279
+ inputs: [],
280
+ name: 'NothingToRefund',
281
+ type: 'error'
282
+ },
283
+ {
284
+ inputs: [
285
+ {
286
+ internalType: 'address',
287
+ name: 'owner',
288
+ type: 'address'
289
+ }
290
+ ],
291
+ name: 'OwnableInvalidOwner',
292
+ type: 'error'
293
+ },
294
+ {
295
+ inputs: [
296
+ {
297
+ internalType: 'address',
298
+ name: 'account',
299
+ type: 'address'
300
+ }
301
+ ],
302
+ name: 'OwnableUnauthorizedAccount',
303
+ type: 'error'
304
+ },
305
+ {
306
+ inputs: [],
307
+ name: 'ReentrancyGuardReentrantCall',
308
+ type: 'error'
309
+ },
310
+ {
311
+ inputs: [],
312
+ name: 'TransferFailed',
313
+ type: 'error'
314
+ },
315
+ {
316
+ inputs: [],
317
+ name: 'UnauthorizedCallback',
318
+ type: 'error'
319
+ },
320
+ {
321
+ inputs: [],
322
+ name: 'ZeroAddress',
323
+ type: 'error'
324
+ },
325
+ {
326
+ anonymous: false,
327
+ inputs: [
328
+ {
329
+ indexed: false,
330
+ internalType: 'uint256',
331
+ name: 'entryFee',
332
+ type: 'uint256'
333
+ },
334
+ {
335
+ indexed: false,
336
+ internalType: 'bool',
337
+ name: 'allowed',
338
+ type: 'bool'
339
+ }
340
+ ],
341
+ name: 'AllowedEntryFeeSet',
342
+ type: 'event'
343
+ },
344
+ {
345
+ anonymous: false,
346
+ inputs: [
347
+ {
348
+ indexed: true,
349
+ internalType: 'uint256',
350
+ name: 'matchId',
351
+ type: 'uint256'
352
+ },
353
+ {
354
+ indexed: true,
355
+ internalType: 'address',
356
+ name: 'player',
357
+ type: 'address'
358
+ },
359
+ {
360
+ indexed: false,
361
+ internalType: 'uint256',
362
+ name: 'amount',
363
+ type: 'uint256'
364
+ }
365
+ ],
366
+ name: 'Claimed',
367
+ type: 'event'
368
+ },
369
+ {
370
+ anonymous: false,
371
+ inputs: [
372
+ {
373
+ indexed: true,
374
+ internalType: 'address',
375
+ name: 'newRouter',
376
+ type: 'address'
377
+ }
378
+ ],
379
+ name: 'EntropyRouterSet',
380
+ type: 'event'
381
+ },
382
+ {
383
+ anonymous: false,
384
+ inputs: [
385
+ {
386
+ indexed: true,
387
+ internalType: 'uint256',
388
+ name: 'matchId',
389
+ type: 'uint256'
390
+ }
391
+ ],
392
+ name: 'MatchCancelled',
393
+ type: 'event'
394
+ },
395
+ {
396
+ anonymous: false,
397
+ inputs: [
398
+ {
399
+ indexed: true,
400
+ internalType: 'uint256',
401
+ name: 'matchId',
402
+ type: 'uint256'
403
+ },
404
+ {
405
+ indexed: true,
406
+ internalType: 'uint8',
407
+ name: 'maxPlayers',
408
+ type: 'uint8'
409
+ },
410
+ {
411
+ indexed: false,
412
+ internalType: 'uint256',
413
+ name: 'entryFee',
414
+ type: 'uint256'
415
+ },
416
+ {
417
+ indexed: false,
418
+ internalType: 'uint256',
419
+ name: 'deadline',
420
+ type: 'uint256'
421
+ }
422
+ ],
423
+ name: 'MatchCreated',
424
+ type: 'event'
425
+ },
426
+ {
427
+ anonymous: false,
428
+ inputs: [
429
+ {
430
+ indexed: false,
431
+ internalType: 'uint256',
432
+ name: 'newDuration',
433
+ type: 'uint256'
434
+ }
435
+ ],
436
+ name: 'MatchExpirationSet',
437
+ type: 'event'
438
+ },
439
+ {
440
+ anonymous: false,
441
+ inputs: [
442
+ {
443
+ indexed: true,
444
+ internalType: 'uint256',
445
+ name: 'sequenceNumber',
446
+ type: 'uint256'
447
+ }
448
+ ],
449
+ name: 'MatchNotFound',
450
+ type: 'event'
451
+ },
452
+ {
453
+ anonymous: false,
454
+ inputs: [
455
+ {
456
+ indexed: true,
457
+ internalType: 'uint256',
458
+ name: 'matchId',
459
+ type: 'uint256'
460
+ }
461
+ ],
462
+ name: 'MatchNotRunnable',
463
+ type: 'event'
464
+ },
465
+ {
466
+ anonymous: false,
467
+ inputs: [
468
+ {
469
+ indexed: true,
470
+ internalType: 'uint256',
471
+ name: 'matchId',
472
+ type: 'uint256'
473
+ },
474
+ {
475
+ indexed: true,
476
+ internalType: 'address',
477
+ name: 'loser',
478
+ type: 'address'
479
+ },
480
+ {
481
+ indexed: false,
482
+ internalType: 'uint8',
483
+ name: 'loserIndex',
484
+ type: 'uint8'
485
+ },
486
+ {
487
+ indexed: false,
488
+ internalType: 'uint256',
489
+ name: 'payoutPerSurvivor',
490
+ type: 'uint256'
491
+ },
492
+ {
493
+ indexed: false,
494
+ internalType: 'uint256',
495
+ name: 'houseFee',
496
+ type: 'uint256'
497
+ },
498
+ {
499
+ indexed: false,
500
+ internalType: 'uint256',
501
+ name: 'dust',
502
+ type: 'uint256'
503
+ }
504
+ ],
505
+ name: 'MatchResolved',
506
+ type: 'event'
507
+ },
508
+ {
509
+ anonymous: false,
510
+ inputs: [
511
+ {
512
+ indexed: true,
513
+ internalType: 'uint256',
514
+ name: 'matchId',
515
+ type: 'uint256'
516
+ },
517
+ {
518
+ indexed: true,
519
+ internalType: 'uint64',
520
+ name: 'sequenceNumber',
521
+ type: 'uint64'
522
+ }
523
+ ],
524
+ name: 'MatchResolving',
525
+ type: 'event'
526
+ },
527
+ {
528
+ anonymous: false,
529
+ inputs: [
530
+ {
531
+ indexed: true,
532
+ internalType: 'uint256',
533
+ name: 'matchId',
534
+ type: 'uint256'
535
+ },
536
+ {
537
+ indexed: false,
538
+ internalType: 'uint8',
539
+ name: 'playerCount',
540
+ type: 'uint8'
541
+ }
542
+ ],
543
+ name: 'MatchRunFailed',
544
+ type: 'event'
545
+ },
546
+ {
547
+ anonymous: false,
548
+ inputs: [
549
+ {
550
+ indexed: true,
551
+ internalType: 'address',
552
+ name: 'previousOwner',
553
+ type: 'address'
554
+ },
555
+ {
556
+ indexed: true,
557
+ internalType: 'address',
558
+ name: 'newOwner',
559
+ type: 'address'
560
+ }
561
+ ],
562
+ name: 'OwnershipTransferred',
563
+ type: 'event'
564
+ },
565
+ {
566
+ anonymous: false,
567
+ inputs: [
568
+ {
569
+ indexed: false,
570
+ internalType: 'address',
571
+ name: 'account',
572
+ type: 'address'
573
+ }
574
+ ],
575
+ name: 'Paused',
576
+ type: 'event'
577
+ },
578
+ {
579
+ anonymous: false,
580
+ inputs: [
581
+ {
582
+ indexed: true,
583
+ internalType: 'uint256',
584
+ name: 'matchId',
585
+ type: 'uint256'
586
+ },
587
+ {
588
+ indexed: true,
589
+ internalType: 'address',
590
+ name: 'player',
591
+ type: 'address'
592
+ },
593
+ {
594
+ indexed: false,
595
+ internalType: 'uint8',
596
+ name: 'playerCount',
597
+ type: 'uint8'
598
+ },
599
+ {
600
+ indexed: false,
601
+ internalType: 'uint8',
602
+ name: 'maxPlayers',
603
+ type: 'uint8'
604
+ }
605
+ ],
606
+ name: 'PlayerJoined',
607
+ type: 'event'
608
+ },
609
+ {
610
+ anonymous: false,
611
+ inputs: [
612
+ {
613
+ indexed: true,
614
+ internalType: 'address',
615
+ name: 'to',
616
+ type: 'address'
617
+ },
618
+ {
619
+ indexed: false,
620
+ internalType: 'uint256',
621
+ name: 'amount',
622
+ type: 'uint256'
623
+ }
624
+ ],
625
+ name: 'ProtocolFeesWithdrawn',
626
+ type: 'event'
627
+ },
628
+ {
629
+ anonymous: false,
630
+ inputs: [
631
+ {
632
+ indexed: true,
633
+ internalType: 'uint256',
634
+ name: 'matchId',
635
+ type: 'uint256'
636
+ },
637
+ {
638
+ indexed: true,
639
+ internalType: 'address',
640
+ name: 'player',
641
+ type: 'address'
642
+ },
643
+ {
644
+ indexed: false,
645
+ internalType: 'uint256',
646
+ name: 'amount',
647
+ type: 'uint256'
648
+ }
649
+ ],
650
+ name: 'RefundClaimed',
651
+ type: 'event'
652
+ },
653
+ {
654
+ anonymous: false,
655
+ inputs: [
656
+ {
657
+ indexed: true,
658
+ internalType: 'address',
659
+ name: 'newTreasury',
660
+ type: 'address'
661
+ }
662
+ ],
663
+ name: 'TreasurySet',
664
+ type: 'event'
665
+ },
666
+ {
667
+ anonymous: false,
668
+ inputs: [
669
+ {
670
+ indexed: false,
671
+ internalType: 'address',
672
+ name: 'account',
673
+ type: 'address'
674
+ }
675
+ ],
676
+ name: 'Unpaused',
677
+ type: 'event'
678
+ },
679
+ {
680
+ anonymous: false,
681
+ inputs: [
682
+ {
683
+ indexed: true,
684
+ internalType: 'uint256',
685
+ name: 'matchId',
686
+ type: 'uint256'
687
+ },
688
+ {
689
+ indexed: true,
690
+ internalType: 'address',
691
+ name: 'player',
692
+ type: 'address'
693
+ },
694
+ {
695
+ indexed: false,
696
+ internalType: 'uint256',
697
+ name: 'amount',
698
+ type: 'uint256'
699
+ }
700
+ ],
701
+ name: 'WinningsDeferred',
702
+ type: 'event'
703
+ },
704
+ {
705
+ anonymous: false,
706
+ inputs: [
707
+ {
708
+ indexed: true,
709
+ internalType: 'uint256',
710
+ name: 'matchId',
711
+ type: 'uint256'
712
+ },
713
+ {
714
+ indexed: true,
715
+ internalType: 'address',
716
+ name: 'player',
717
+ type: 'address'
718
+ },
719
+ {
720
+ indexed: false,
721
+ internalType: 'uint256',
722
+ name: 'amount',
723
+ type: 'uint256'
724
+ }
725
+ ],
726
+ name: 'WinningsPaid',
727
+ type: 'event'
728
+ },
729
+ {
730
+ inputs: [],
731
+ name: 'BPS_DENOMINATOR',
732
+ outputs: [
733
+ {
734
+ internalType: 'uint256',
735
+ name: '',
736
+ type: 'uint256'
737
+ }
738
+ ],
739
+ stateMutability: 'view',
740
+ type: 'function'
741
+ },
742
+ {
743
+ inputs: [],
744
+ name: 'HOUSE_BPS',
745
+ outputs: [
746
+ {
747
+ internalType: 'uint256',
748
+ name: '',
749
+ type: 'uint256'
750
+ }
751
+ ],
752
+ stateMutability: 'view',
753
+ type: 'function'
754
+ },
755
+ {
756
+ inputs: [],
757
+ name: 'MAX_PLAYERS',
758
+ outputs: [
759
+ {
760
+ internalType: 'uint8',
761
+ name: '',
762
+ type: 'uint8'
763
+ }
764
+ ],
765
+ stateMutability: 'view',
766
+ type: 'function'
767
+ },
768
+ {
769
+ inputs: [],
770
+ name: 'MIN_PLAYERS',
771
+ outputs: [
772
+ {
773
+ internalType: 'uint8',
774
+ name: '',
775
+ type: 'uint8'
776
+ }
777
+ ],
778
+ stateMutability: 'view',
779
+ type: 'function'
780
+ },
781
+ {
782
+ inputs: [
783
+ {
784
+ internalType: 'uint64',
785
+ name: 'sequence',
786
+ type: 'uint64'
787
+ },
788
+ {
789
+ internalType: 'address',
790
+ name: 'provider',
791
+ type: 'address'
792
+ },
793
+ {
794
+ internalType: 'bytes32',
795
+ name: 'randomNumber',
796
+ type: 'bytes32'
797
+ }
798
+ ],
799
+ name: '_entropyCallback',
800
+ outputs: [],
801
+ stateMutability: 'nonpayable',
802
+ type: 'function'
803
+ },
804
+ {
805
+ inputs: [
806
+ {
807
+ internalType: 'bytes32',
808
+ name: '',
809
+ type: 'bytes32'
810
+ }
811
+ ],
812
+ name: 'activeMatchByQueueKey',
813
+ outputs: [
814
+ {
815
+ internalType: 'uint256',
816
+ name: '',
817
+ type: 'uint256'
818
+ }
819
+ ],
820
+ stateMutability: 'view',
821
+ type: 'function'
822
+ },
823
+ {
824
+ inputs: [
825
+ {
826
+ internalType: 'uint256',
827
+ name: '',
828
+ type: 'uint256'
829
+ }
830
+ ],
831
+ name: 'allowedEntryFees',
832
+ outputs: [
833
+ {
834
+ internalType: 'bool',
835
+ name: '',
836
+ type: 'bool'
837
+ }
838
+ ],
839
+ stateMutability: 'view',
840
+ type: 'function'
841
+ },
842
+ {
843
+ inputs: [
844
+ {
845
+ internalType: 'uint256',
846
+ name: 'matchId',
847
+ type: 'uint256'
848
+ }
849
+ ],
850
+ name: 'cancelExpiredMatch',
851
+ outputs: [],
852
+ stateMutability: 'nonpayable',
853
+ type: 'function'
854
+ },
855
+ {
856
+ inputs: [
857
+ {
858
+ internalType: 'uint256',
859
+ name: 'matchId',
860
+ type: 'uint256'
861
+ }
862
+ ],
863
+ name: 'claim',
864
+ outputs: [],
865
+ stateMutability: 'nonpayable',
866
+ type: 'function'
867
+ },
868
+ {
869
+ inputs: [
870
+ {
871
+ internalType: 'uint256',
872
+ name: 'matchId',
873
+ type: 'uint256'
874
+ }
875
+ ],
876
+ name: 'claimRefund',
877
+ outputs: [],
878
+ stateMutability: 'nonpayable',
879
+ type: 'function'
880
+ },
881
+ {
882
+ inputs: [
883
+ {
884
+ internalType: 'uint256',
885
+ name: '',
886
+ type: 'uint256'
887
+ },
888
+ {
889
+ internalType: 'address',
890
+ name: '',
891
+ type: 'address'
892
+ }
893
+ ],
894
+ name: 'claimable',
895
+ outputs: [
896
+ {
897
+ internalType: 'uint256',
898
+ name: '',
899
+ type: 'uint256'
900
+ }
901
+ ],
902
+ stateMutability: 'view',
903
+ type: 'function'
904
+ },
905
+ {
906
+ inputs: [],
907
+ name: 'entropy',
908
+ outputs: [
909
+ {
910
+ internalType: 'contract IEntropyV2',
911
+ name: '',
912
+ type: 'address'
913
+ }
914
+ ],
915
+ stateMutability: 'view',
916
+ type: 'function'
917
+ },
918
+ {
919
+ inputs: [
920
+ {
921
+ internalType: 'uint8',
922
+ name: 'maxPlayers',
923
+ type: 'uint8'
924
+ },
925
+ {
926
+ internalType: 'uint256',
927
+ name: 'entryFee',
928
+ type: 'uint256'
929
+ }
930
+ ],
931
+ name: 'getActiveMatch',
932
+ outputs: [
933
+ {
934
+ internalType: 'uint256',
935
+ name: '',
936
+ type: 'uint256'
937
+ }
938
+ ],
939
+ stateMutability: 'view',
940
+ type: 'function'
941
+ },
942
+ {
943
+ inputs: [
944
+ {
945
+ internalType: 'address',
946
+ name: 'player',
947
+ type: 'address'
948
+ }
949
+ ],
950
+ name: 'getClaimableMatches',
951
+ outputs: [
952
+ {
953
+ internalType: 'uint256[]',
954
+ name: '',
955
+ type: 'uint256[]'
956
+ }
957
+ ],
958
+ stateMutability: 'view',
959
+ type: 'function'
960
+ },
961
+ {
962
+ inputs: [],
963
+ name: 'getEntropyRequestFee',
964
+ outputs: [
965
+ {
966
+ internalType: 'uint256',
967
+ name: '',
968
+ type: 'uint256'
969
+ }
970
+ ],
971
+ stateMutability: 'view',
972
+ type: 'function'
973
+ },
974
+ {
975
+ inputs: [
976
+ {
977
+ internalType: 'uint256',
978
+ name: 'matchId',
979
+ type: 'uint256'
980
+ }
981
+ ],
982
+ name: 'getMatchPlayers',
983
+ outputs: [
984
+ {
985
+ internalType: 'address[]',
986
+ name: '',
987
+ type: 'address[]'
988
+ }
989
+ ],
990
+ stateMutability: 'view',
991
+ type: 'function'
992
+ },
993
+ {
994
+ inputs: [
995
+ {
996
+ internalType: 'address',
997
+ name: 'player',
998
+ type: 'address'
999
+ }
1000
+ ],
1001
+ name: 'getPlayerMatches',
1002
+ outputs: [
1003
+ {
1004
+ internalType: 'uint256[]',
1005
+ name: '',
1006
+ type: 'uint256[]'
1007
+ }
1008
+ ],
1009
+ stateMutability: 'view',
1010
+ type: 'function'
1011
+ },
1012
+ {
1013
+ inputs: [
1014
+ {
1015
+ internalType: 'address',
1016
+ name: 'player',
1017
+ type: 'address'
1018
+ }
1019
+ ],
1020
+ name: 'getRefundableMatches',
1021
+ outputs: [
1022
+ {
1023
+ internalType: 'uint256[]',
1024
+ name: '',
1025
+ type: 'uint256[]'
1026
+ }
1027
+ ],
1028
+ stateMutability: 'view',
1029
+ type: 'function'
1030
+ },
1031
+ {
1032
+ inputs: [
1033
+ {
1034
+ internalType: 'uint256',
1035
+ name: 'matchId',
1036
+ type: 'uint256'
1037
+ }
1038
+ ],
1039
+ name: 'getTurnOrder',
1040
+ outputs: [
1041
+ {
1042
+ internalType: 'address[]',
1043
+ name: '',
1044
+ type: 'address[]'
1045
+ }
1046
+ ],
1047
+ stateMutability: 'view',
1048
+ type: 'function'
1049
+ },
1050
+ {
1051
+ inputs: [
1052
+ {
1053
+ internalType: 'uint256',
1054
+ name: 'entryFee',
1055
+ type: 'uint256'
1056
+ }
1057
+ ],
1058
+ name: 'isAllowedEntryFee',
1059
+ outputs: [
1060
+ {
1061
+ internalType: 'bool',
1062
+ name: '',
1063
+ type: 'bool'
1064
+ }
1065
+ ],
1066
+ stateMutability: 'view',
1067
+ type: 'function'
1068
+ },
1069
+ {
1070
+ inputs: [
1071
+ {
1072
+ internalType: 'uint8',
1073
+ name: 'maxPlayers',
1074
+ type: 'uint8'
1075
+ },
1076
+ {
1077
+ internalType: 'uint256',
1078
+ name: 'entryFee',
1079
+ type: 'uint256'
1080
+ }
1081
+ ],
1082
+ name: 'joinQueue',
1083
+ outputs: [
1084
+ {
1085
+ internalType: 'uint256',
1086
+ name: 'matchId',
1087
+ type: 'uint256'
1088
+ }
1089
+ ],
1090
+ stateMutability: 'payable',
1091
+ type: 'function'
1092
+ },
1093
+ {
1094
+ inputs: [
1095
+ {
1096
+ internalType: 'uint256',
1097
+ name: '',
1098
+ type: 'uint256'
1099
+ },
1100
+ {
1101
+ internalType: 'address',
1102
+ name: '',
1103
+ type: 'address'
1104
+ }
1105
+ ],
1106
+ name: 'joined',
1107
+ outputs: [
1108
+ {
1109
+ internalType: 'bool',
1110
+ name: '',
1111
+ type: 'bool'
1112
+ }
1113
+ ],
1114
+ stateMutability: 'view',
1115
+ type: 'function'
1116
+ },
1117
+ {
1118
+ inputs: [],
1119
+ name: 'matchExpiration',
1120
+ outputs: [
1121
+ {
1122
+ internalType: 'uint256',
1123
+ name: '',
1124
+ type: 'uint256'
1125
+ }
1126
+ ],
1127
+ stateMutability: 'view',
1128
+ type: 'function'
1129
+ },
1130
+ {
1131
+ inputs: [
1132
+ {
1133
+ internalType: 'uint256',
1134
+ name: '',
1135
+ type: 'uint256'
1136
+ }
1137
+ ],
1138
+ name: 'matches',
1139
+ outputs: [
1140
+ {
1141
+ internalType: 'uint256',
1142
+ name: 'id',
1143
+ type: 'uint256'
1144
+ },
1145
+ {
1146
+ internalType: 'uint8',
1147
+ name: 'maxPlayers',
1148
+ type: 'uint8'
1149
+ },
1150
+ {
1151
+ internalType: 'uint8',
1152
+ name: 'playerCount',
1153
+ type: 'uint8'
1154
+ },
1155
+ {
1156
+ internalType: 'uint256',
1157
+ name: 'entryFee',
1158
+ type: 'uint256'
1159
+ },
1160
+ {
1161
+ internalType: 'uint256',
1162
+ name: 'entropyFee',
1163
+ type: 'uint256'
1164
+ },
1165
+ {
1166
+ internalType: 'uint256',
1167
+ name: 'totalPot',
1168
+ type: 'uint256'
1169
+ },
1170
+ {
1171
+ internalType: 'uint256',
1172
+ name: 'deadline',
1173
+ type: 'uint256'
1174
+ },
1175
+ {
1176
+ internalType: 'enum WalkThePlanck.Status',
1177
+ name: 'status',
1178
+ type: 'uint8'
1179
+ },
1180
+ {
1181
+ internalType: 'uint8',
1182
+ name: 'loserIndex',
1183
+ type: 'uint8'
1184
+ },
1185
+ {
1186
+ internalType: 'uint8',
1187
+ name: 'deathTurn',
1188
+ type: 'uint8'
1189
+ },
1190
+ {
1191
+ internalType: 'uint64',
1192
+ name: 'sequenceNumber',
1193
+ type: 'uint64'
1194
+ },
1195
+ {
1196
+ internalType: 'address',
1197
+ name: 'loser',
1198
+ type: 'address'
1199
+ }
1200
+ ],
1201
+ stateMutability: 'view',
1202
+ type: 'function'
1203
+ },
1204
+ {
1205
+ inputs: [],
1206
+ name: 'nextMatchId',
1207
+ outputs: [
1208
+ {
1209
+ internalType: 'uint256',
1210
+ name: '',
1211
+ type: 'uint256'
1212
+ }
1213
+ ],
1214
+ stateMutability: 'view',
1215
+ type: 'function'
1216
+ },
1217
+ {
1218
+ inputs: [],
1219
+ name: 'owner',
1220
+ outputs: [
1221
+ {
1222
+ internalType: 'address',
1223
+ name: '',
1224
+ type: 'address'
1225
+ }
1226
+ ],
1227
+ stateMutability: 'view',
1228
+ type: 'function'
1229
+ },
1230
+ {
1231
+ inputs: [],
1232
+ name: 'pause',
1233
+ outputs: [],
1234
+ stateMutability: 'nonpayable',
1235
+ type: 'function'
1236
+ },
1237
+ {
1238
+ inputs: [],
1239
+ name: 'paused',
1240
+ outputs: [
1241
+ {
1242
+ internalType: 'bool',
1243
+ name: '',
1244
+ type: 'bool'
1245
+ }
1246
+ ],
1247
+ stateMutability: 'view',
1248
+ type: 'function'
1249
+ },
1250
+ {
1251
+ inputs: [
1252
+ {
1253
+ internalType: 'uint8',
1254
+ name: 'maxPlayers',
1255
+ type: 'uint8'
1256
+ },
1257
+ {
1258
+ internalType: 'uint256',
1259
+ name: 'entryFee',
1260
+ type: 'uint256'
1261
+ }
1262
+ ],
1263
+ name: 'previewJoinCost',
1264
+ outputs: [
1265
+ {
1266
+ internalType: 'uint256',
1267
+ name: '',
1268
+ type: 'uint256'
1269
+ }
1270
+ ],
1271
+ stateMutability: 'view',
1272
+ type: 'function'
1273
+ },
1274
+ {
1275
+ inputs: [
1276
+ {
1277
+ internalType: 'uint8',
1278
+ name: 'maxPlayers',
1279
+ type: 'uint8'
1280
+ },
1281
+ {
1282
+ internalType: 'uint256',
1283
+ name: 'entryFee',
1284
+ type: 'uint256'
1285
+ }
1286
+ ],
1287
+ name: 'previewPayout',
1288
+ outputs: [
1289
+ {
1290
+ internalType: 'uint256',
1291
+ name: '',
1292
+ type: 'uint256'
1293
+ }
1294
+ ],
1295
+ stateMutability: 'view',
1296
+ type: 'function'
1297
+ },
1298
+ {
1299
+ inputs: [],
1300
+ name: 'protocolFeesAccrued',
1301
+ outputs: [
1302
+ {
1303
+ internalType: 'uint256',
1304
+ name: '',
1305
+ type: 'uint256'
1306
+ }
1307
+ ],
1308
+ stateMutability: 'view',
1309
+ type: 'function'
1310
+ },
1311
+ {
1312
+ inputs: [
1313
+ {
1314
+ internalType: 'uint8',
1315
+ name: 'maxPlayers',
1316
+ type: 'uint8'
1317
+ },
1318
+ {
1319
+ internalType: 'uint256',
1320
+ name: 'entryFee',
1321
+ type: 'uint256'
1322
+ }
1323
+ ],
1324
+ name: 'queueKeyOf',
1325
+ outputs: [
1326
+ {
1327
+ internalType: 'bytes32',
1328
+ name: '',
1329
+ type: 'bytes32'
1330
+ }
1331
+ ],
1332
+ stateMutability: 'pure',
1333
+ type: 'function'
1334
+ },
1335
+ {
1336
+ inputs: [
1337
+ {
1338
+ internalType: 'uint256',
1339
+ name: '',
1340
+ type: 'uint256'
1341
+ },
1342
+ {
1343
+ internalType: 'address',
1344
+ name: '',
1345
+ type: 'address'
1346
+ }
1347
+ ],
1348
+ name: 'refundable',
1349
+ outputs: [
1350
+ {
1351
+ internalType: 'uint256',
1352
+ name: '',
1353
+ type: 'uint256'
1354
+ }
1355
+ ],
1356
+ stateMutability: 'view',
1357
+ type: 'function'
1358
+ },
1359
+ {
1360
+ inputs: [],
1361
+ name: 'renounceOwnership',
1362
+ outputs: [],
1363
+ stateMutability: 'nonpayable',
1364
+ type: 'function'
1365
+ },
1366
+ {
1367
+ inputs: [
1368
+ {
1369
+ internalType: 'uint64',
1370
+ name: '',
1371
+ type: 'uint64'
1372
+ }
1373
+ ],
1374
+ name: 'sequenceToMatchId',
1375
+ outputs: [
1376
+ {
1377
+ internalType: 'uint256',
1378
+ name: '',
1379
+ type: 'uint256'
1380
+ }
1381
+ ],
1382
+ stateMutability: 'view',
1383
+ type: 'function'
1384
+ },
1385
+ {
1386
+ inputs: [
1387
+ {
1388
+ internalType: 'uint256',
1389
+ name: 'entryFee',
1390
+ type: 'uint256'
1391
+ },
1392
+ {
1393
+ internalType: 'bool',
1394
+ name: 'allowed',
1395
+ type: 'bool'
1396
+ }
1397
+ ],
1398
+ name: 'setAllowedEntryFee',
1399
+ outputs: [],
1400
+ stateMutability: 'nonpayable',
1401
+ type: 'function'
1402
+ },
1403
+ {
1404
+ inputs: [
1405
+ {
1406
+ internalType: 'address',
1407
+ name: 'newEntropy',
1408
+ type: 'address'
1409
+ }
1410
+ ],
1411
+ name: 'setEntropyRouter',
1412
+ outputs: [],
1413
+ stateMutability: 'nonpayable',
1414
+ type: 'function'
1415
+ },
1416
+ {
1417
+ inputs: [
1418
+ {
1419
+ internalType: 'uint256',
1420
+ name: 'newDuration',
1421
+ type: 'uint256'
1422
+ }
1423
+ ],
1424
+ name: 'setMatchExpiration',
1425
+ outputs: [],
1426
+ stateMutability: 'nonpayable',
1427
+ type: 'function'
1428
+ },
1429
+ {
1430
+ inputs: [
1431
+ {
1432
+ internalType: 'address',
1433
+ name: 'newTreasury',
1434
+ type: 'address'
1435
+ }
1436
+ ],
1437
+ name: 'setTreasury',
1438
+ outputs: [],
1439
+ stateMutability: 'nonpayable',
1440
+ type: 'function'
1441
+ },
1442
+ {
1443
+ inputs: [
1444
+ {
1445
+ internalType: 'address',
1446
+ name: 'newOwner',
1447
+ type: 'address'
1448
+ }
1449
+ ],
1450
+ name: 'transferOwnership',
1451
+ outputs: [],
1452
+ stateMutability: 'nonpayable',
1453
+ type: 'function'
1454
+ },
1455
+ {
1456
+ inputs: [],
1457
+ name: 'treasury',
1458
+ outputs: [
1459
+ {
1460
+ internalType: 'address',
1461
+ name: '',
1462
+ type: 'address'
1463
+ }
1464
+ ],
1465
+ stateMutability: 'view',
1466
+ type: 'function'
1467
+ },
1468
+ {
1469
+ inputs: [],
1470
+ name: 'unpause',
1471
+ outputs: [],
1472
+ stateMutability: 'nonpayable',
1473
+ type: 'function'
1474
+ },
1475
+ {
1476
+ inputs: [
1477
+ {
1478
+ internalType: 'address',
1479
+ name: 'to',
1480
+ type: 'address'
1481
+ },
1482
+ {
1483
+ internalType: 'uint256',
1484
+ name: 'amount',
1485
+ type: 'uint256'
1486
+ }
1487
+ ],
1488
+ name: 'withdrawProtocolFees',
1489
+ outputs: [],
1490
+ stateMutability: 'nonpayable',
1491
+ type: 'function'
1492
+ },
1493
+ {
1494
+ stateMutability: 'payable',
1495
+ type: 'receive'
1496
+ }
1497
+ ],
1498
+ version: '0.0.1'
1499
+ }
1500
+ }
1501
+ },
1502
+ [CHAIN_SLUGS.Arbitrum]: {
1503
+ Native: {
1504
+ WETH_ADDRESS: ''
1505
+ },
1506
+ Uniswap: {
1507
+ V2_FACTORY_ADDRESS: '',
1508
+ V2_ROUTER_ADDRESS: ''
1509
+ },
1510
+ OHL: {
1511
+ VAULT_ADDRESS: ''
1512
+ },
1513
+ MasterBlaster: {
1514
+ X9_ADDRESS: '',
1515
+ HANGAR_ADDRESS: '',
1516
+ GAME_SCORES_ADDRESS: '',
1517
+ GAME_REWARDS_ADDRESS: '',
1518
+ PRESALE_ADDRESS: '',
1519
+ REWARDS_POOL_ADDRESS: ''
1520
+ }
1521
+ },
1522
+ [CHAIN_SLUGS.Story]: {
1523
+ Native: {
1524
+ WETH_ADDRESS: ''
1525
+ },
1526
+ Uniswap: {
1527
+ V2_FACTORY_ADDRESS: '',
1528
+ V2_ROUTER_ADDRESS: ''
1529
+ },
1530
+ OHL: {
1531
+ VAULT_ADDRESS: ''
1532
+ },
1533
+ MasterBlaster: {
1534
+ X9_ADDRESS: '0x7b8084392FD0e9e8a7a9c71dc700a54708b7fa67',
1535
+ HANGAR_ADDRESS: '0x83a2Fb85A7C8938674162Ad7e6121d4772555ea2',
1536
+ GAME_SCORES_ADDRESS: '0xcBAEF7Bf1b530c2C7Ef897AcbC47BdCA705185F6',
1537
+ GAME_REWARDS_ADDRESS: '',
1538
+ PRESALE_ADDRESS: '',
1539
+ REWARDS_POOL_ADDRESS: ''
1540
+ }
1541
+ },
1542
+ [CHAIN_SLUGS.Monad]: {
1543
+ Native: {
1544
+ WETH_ADDRESS: ''
1545
+ },
1546
+ Uniswap: {
1547
+ V2_FACTORY_ADDRESS: '',
1548
+ V2_ROUTER_ADDRESS: ''
1549
+ },
1550
+ OHL: {
1551
+ VAULT_ADDRESS: ''
1552
+ },
1553
+ MasterBlaster: {
1554
+ X9_ADDRESS: '',
1555
+ HANGAR_ADDRESS: '',
1556
+ GAME_SCORES_ADDRESS: '',
1557
+ GAME_REWARDS_ADDRESS: '',
1558
+ PRESALE_ADDRESS: '',
1559
+ REWARDS_POOL_ADDRESS: ''
1560
+ }
1561
+ }
1562
+ }
1563
+ }
1564
+
1565
+ exports.contractIndex = contractIndex;
1577
1566