@ohlabs/configuration 1.1.1 → 1.2.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.
@@ -0,0 +1,1556 @@
1
+ import { CHAIN_SLUGS } from "@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.Arbitrum]: {
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
+ },
1512
+ [CHAIN_SLUGS.Story]: {
1513
+ Native: {
1514
+ WETH_ADDRESS: ''
1515
+ },
1516
+ Uniswap: {
1517
+ V2_FACTORY_ADDRESS: '',
1518
+ V2_ROUTER_ADDRESS: ''
1519
+ },
1520
+ OHL: {
1521
+ VAULT_ADDRESS: ''
1522
+ },
1523
+ MasterBlaster: {
1524
+ X9_ADDRESS: '0x7b8084392FD0e9e8a7a9c71dc700a54708b7fa67',
1525
+ HANGAR_ADDRESS: '0x83a2Fb85A7C8938674162Ad7e6121d4772555ea2',
1526
+ GAME_SCORES_ADDRESS: '0xcBAEF7Bf1b530c2C7Ef897AcbC47BdCA705185F6',
1527
+ GAME_REWARDS_ADDRESS: '',
1528
+ PRESALE_ADDRESS: '',
1529
+ REWARDS_POOL_ADDRESS: ''
1530
+ }
1531
+ },
1532
+ [CHAIN_SLUGS.Monad]: {
1533
+ Native: {
1534
+ WETH_ADDRESS: ''
1535
+ },
1536
+ Uniswap: {
1537
+ V2_FACTORY_ADDRESS: '',
1538
+ V2_ROUTER_ADDRESS: ''
1539
+ },
1540
+ OHL: {
1541
+ VAULT_ADDRESS: ''
1542
+ },
1543
+ MasterBlaster: {
1544
+ X9_ADDRESS: '',
1545
+ HANGAR_ADDRESS: '',
1546
+ GAME_SCORES_ADDRESS: '',
1547
+ GAME_REWARDS_ADDRESS: '',
1548
+ PRESALE_ADDRESS: '',
1549
+ REWARDS_POOL_ADDRESS: ''
1550
+ }
1551
+ }
1552
+ }
1553
+ }
1554
+
1555
+ export { contractIndex }
1556
+