@provable-games/metagame-sdk 0.1.3 → 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.
package/dist/abis.js ADDED
@@ -0,0 +1,2786 @@
1
+ // src/abis/snapshotValidator.ts
2
+ var SNAPSHOT_VALIDATOR_ABI = [
3
+ {
4
+ "type": "impl",
5
+ "name": "SnapshotValidatorImpl",
6
+ "interface_name": "metagame_extensions_presets::entry_requirement::snapshot_validator::ISnapshotValidator"
7
+ },
8
+ {
9
+ "type": "struct",
10
+ "name": "metagame_extensions_presets::entry_requirement::snapshot_validator::Entry",
11
+ "members": [
12
+ {
13
+ "name": "address",
14
+ "type": "core::starknet::contract_address::ContractAddress"
15
+ },
16
+ {
17
+ "name": "count",
18
+ "type": "core::integer::u8"
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "type": "struct",
24
+ "name": "core::array::Span::<metagame_extensions_presets::entry_requirement::snapshot_validator::Entry>",
25
+ "members": [
26
+ {
27
+ "name": "snapshot",
28
+ "type": "@core::array::Array::<metagame_extensions_presets::entry_requirement::snapshot_validator::Entry>"
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "type": "enum",
34
+ "name": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotStatus",
35
+ "variants": [
36
+ {
37
+ "name": "Created",
38
+ "type": "()"
39
+ },
40
+ {
41
+ "name": "InProgress",
42
+ "type": "()"
43
+ },
44
+ {
45
+ "name": "Locked",
46
+ "type": "()"
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "type": "struct",
52
+ "name": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotMetadata",
53
+ "members": [
54
+ {
55
+ "name": "owner",
56
+ "type": "core::starknet::contract_address::ContractAddress"
57
+ },
58
+ {
59
+ "name": "status",
60
+ "type": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotStatus"
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "type": "enum",
66
+ "name": "core::option::Option::<metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotMetadata>",
67
+ "variants": [
68
+ {
69
+ "name": "Some",
70
+ "type": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotMetadata"
71
+ },
72
+ {
73
+ "name": "None",
74
+ "type": "()"
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "type": "enum",
80
+ "name": "core::bool",
81
+ "variants": [
82
+ {
83
+ "name": "False",
84
+ "type": "()"
85
+ },
86
+ {
87
+ "name": "True",
88
+ "type": "()"
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "type": "interface",
94
+ "name": "metagame_extensions_presets::entry_requirement::snapshot_validator::ISnapshotValidator",
95
+ "items": [
96
+ {
97
+ "type": "function",
98
+ "name": "create_snapshot",
99
+ "inputs": [],
100
+ "outputs": [
101
+ {
102
+ "type": "core::integer::u64"
103
+ }
104
+ ],
105
+ "state_mutability": "external"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "upload_snapshot_data",
110
+ "inputs": [
111
+ {
112
+ "name": "snapshot_id",
113
+ "type": "core::integer::u64"
114
+ },
115
+ {
116
+ "name": "snapshot_values",
117
+ "type": "core::array::Span::<metagame_extensions_presets::entry_requirement::snapshot_validator::Entry>"
118
+ }
119
+ ],
120
+ "outputs": [],
121
+ "state_mutability": "external"
122
+ },
123
+ {
124
+ "type": "function",
125
+ "name": "lock_snapshot",
126
+ "inputs": [
127
+ {
128
+ "name": "snapshot_id",
129
+ "type": "core::integer::u64"
130
+ }
131
+ ],
132
+ "outputs": [],
133
+ "state_mutability": "external"
134
+ },
135
+ {
136
+ "type": "function",
137
+ "name": "get_snapshot_metadata",
138
+ "inputs": [
139
+ {
140
+ "name": "snapshot_id",
141
+ "type": "core::integer::u64"
142
+ }
143
+ ],
144
+ "outputs": [
145
+ {
146
+ "type": "core::option::Option::<metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotMetadata>"
147
+ }
148
+ ],
149
+ "state_mutability": "view"
150
+ },
151
+ {
152
+ "type": "function",
153
+ "name": "get_snapshot_entry",
154
+ "inputs": [
155
+ {
156
+ "name": "snapshot_id",
157
+ "type": "core::integer::u64"
158
+ },
159
+ {
160
+ "name": "player_address",
161
+ "type": "core::starknet::contract_address::ContractAddress"
162
+ }
163
+ ],
164
+ "outputs": [
165
+ {
166
+ "type": "core::integer::u8"
167
+ }
168
+ ],
169
+ "state_mutability": "view"
170
+ },
171
+ {
172
+ "type": "function",
173
+ "name": "is_snapshot_locked",
174
+ "inputs": [
175
+ {
176
+ "name": "snapshot_id",
177
+ "type": "core::integer::u64"
178
+ }
179
+ ],
180
+ "outputs": [
181
+ {
182
+ "type": "core::bool"
183
+ }
184
+ ],
185
+ "state_mutability": "view"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "type": "impl",
191
+ "name": "EntryRequirementExtensionImpl",
192
+ "interface_name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension"
193
+ },
194
+ {
195
+ "type": "struct",
196
+ "name": "core::array::Span::<core::felt252>",
197
+ "members": [
198
+ {
199
+ "name": "snapshot",
200
+ "type": "@core::array::Array::<core::felt252>"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "type": "enum",
206
+ "name": "core::option::Option::<core::integer::u8>",
207
+ "variants": [
208
+ {
209
+ "name": "Some",
210
+ "type": "core::integer::u8"
211
+ },
212
+ {
213
+ "name": "None",
214
+ "type": "()"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "type": "interface",
220
+ "name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension",
221
+ "items": [
222
+ {
223
+ "type": "function",
224
+ "name": "context_owner",
225
+ "inputs": [
226
+ {
227
+ "name": "context_id",
228
+ "type": "core::integer::u64"
229
+ }
230
+ ],
231
+ "outputs": [
232
+ {
233
+ "type": "core::starknet::contract_address::ContractAddress"
234
+ }
235
+ ],
236
+ "state_mutability": "view"
237
+ },
238
+ {
239
+ "type": "function",
240
+ "name": "registration_only",
241
+ "inputs": [],
242
+ "outputs": [
243
+ {
244
+ "type": "core::bool"
245
+ }
246
+ ],
247
+ "state_mutability": "view"
248
+ },
249
+ {
250
+ "type": "function",
251
+ "name": "valid_entry",
252
+ "inputs": [
253
+ {
254
+ "name": "context_id",
255
+ "type": "core::integer::u64"
256
+ },
257
+ {
258
+ "name": "player_address",
259
+ "type": "core::starknet::contract_address::ContractAddress"
260
+ },
261
+ {
262
+ "name": "qualification",
263
+ "type": "core::array::Span::<core::felt252>"
264
+ }
265
+ ],
266
+ "outputs": [
267
+ {
268
+ "type": "core::bool"
269
+ }
270
+ ],
271
+ "state_mutability": "view"
272
+ },
273
+ {
274
+ "type": "function",
275
+ "name": "should_ban",
276
+ "inputs": [
277
+ {
278
+ "name": "context_id",
279
+ "type": "core::integer::u64"
280
+ },
281
+ {
282
+ "name": "game_token_id",
283
+ "type": "core::felt252"
284
+ },
285
+ {
286
+ "name": "current_owner",
287
+ "type": "core::starknet::contract_address::ContractAddress"
288
+ },
289
+ {
290
+ "name": "qualification",
291
+ "type": "core::array::Span::<core::felt252>"
292
+ }
293
+ ],
294
+ "outputs": [
295
+ {
296
+ "type": "core::bool"
297
+ }
298
+ ],
299
+ "state_mutability": "view"
300
+ },
301
+ {
302
+ "type": "function",
303
+ "name": "entries_left",
304
+ "inputs": [
305
+ {
306
+ "name": "context_id",
307
+ "type": "core::integer::u64"
308
+ },
309
+ {
310
+ "name": "player_address",
311
+ "type": "core::starknet::contract_address::ContractAddress"
312
+ },
313
+ {
314
+ "name": "qualification",
315
+ "type": "core::array::Span::<core::felt252>"
316
+ }
317
+ ],
318
+ "outputs": [
319
+ {
320
+ "type": "core::option::Option::<core::integer::u8>"
321
+ }
322
+ ],
323
+ "state_mutability": "view"
324
+ },
325
+ {
326
+ "type": "function",
327
+ "name": "add_config",
328
+ "inputs": [
329
+ {
330
+ "name": "context_id",
331
+ "type": "core::integer::u64"
332
+ },
333
+ {
334
+ "name": "entry_limit",
335
+ "type": "core::integer::u8"
336
+ },
337
+ {
338
+ "name": "config",
339
+ "type": "core::array::Span::<core::felt252>"
340
+ }
341
+ ],
342
+ "outputs": [],
343
+ "state_mutability": "external"
344
+ },
345
+ {
346
+ "type": "function",
347
+ "name": "add_entry",
348
+ "inputs": [
349
+ {
350
+ "name": "context_id",
351
+ "type": "core::integer::u64"
352
+ },
353
+ {
354
+ "name": "game_token_id",
355
+ "type": "core::felt252"
356
+ },
357
+ {
358
+ "name": "player_address",
359
+ "type": "core::starknet::contract_address::ContractAddress"
360
+ },
361
+ {
362
+ "name": "qualification",
363
+ "type": "core::array::Span::<core::felt252>"
364
+ }
365
+ ],
366
+ "outputs": [],
367
+ "state_mutability": "external"
368
+ },
369
+ {
370
+ "type": "function",
371
+ "name": "remove_entry",
372
+ "inputs": [
373
+ {
374
+ "name": "context_id",
375
+ "type": "core::integer::u64"
376
+ },
377
+ {
378
+ "name": "game_token_id",
379
+ "type": "core::felt252"
380
+ },
381
+ {
382
+ "name": "player_address",
383
+ "type": "core::starknet::contract_address::ContractAddress"
384
+ },
385
+ {
386
+ "name": "qualification",
387
+ "type": "core::array::Span::<core::felt252>"
388
+ }
389
+ ],
390
+ "outputs": [],
391
+ "state_mutability": "external"
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "type": "impl",
397
+ "name": "SRC5Impl",
398
+ "interface_name": "openzeppelin_interfaces::introspection::ISRC5"
399
+ },
400
+ {
401
+ "type": "interface",
402
+ "name": "openzeppelin_interfaces::introspection::ISRC5",
403
+ "items": [
404
+ {
405
+ "type": "function",
406
+ "name": "supports_interface",
407
+ "inputs": [
408
+ {
409
+ "name": "interface_id",
410
+ "type": "core::felt252"
411
+ }
412
+ ],
413
+ "outputs": [
414
+ {
415
+ "type": "core::bool"
416
+ }
417
+ ],
418
+ "state_mutability": "view"
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "type": "constructor",
424
+ "name": "constructor",
425
+ "inputs": []
426
+ },
427
+ {
428
+ "type": "event",
429
+ "name": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
430
+ "kind": "enum",
431
+ "variants": []
432
+ },
433
+ {
434
+ "type": "event",
435
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
436
+ "kind": "enum",
437
+ "variants": []
438
+ },
439
+ {
440
+ "type": "event",
441
+ "name": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotValidator::SnapshotCreated",
442
+ "kind": "struct",
443
+ "members": [
444
+ {
445
+ "name": "snapshot_id",
446
+ "type": "core::integer::u64",
447
+ "kind": "key"
448
+ },
449
+ {
450
+ "name": "owner",
451
+ "type": "core::starknet::contract_address::ContractAddress",
452
+ "kind": "key"
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "type": "event",
458
+ "name": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotValidator::SnapshotDataUploaded",
459
+ "kind": "struct",
460
+ "members": [
461
+ {
462
+ "name": "snapshot_id",
463
+ "type": "core::integer::u64",
464
+ "kind": "key"
465
+ },
466
+ {
467
+ "name": "entries",
468
+ "type": "core::array::Span::<metagame_extensions_presets::entry_requirement::snapshot_validator::Entry>",
469
+ "kind": "data"
470
+ }
471
+ ]
472
+ },
473
+ {
474
+ "type": "event",
475
+ "name": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotValidator::SnapshotLocked",
476
+ "kind": "struct",
477
+ "members": [
478
+ {
479
+ "name": "snapshot_id",
480
+ "type": "core::integer::u64",
481
+ "kind": "key"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "type": "event",
487
+ "name": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotValidator::Event",
488
+ "kind": "enum",
489
+ "variants": [
490
+ {
491
+ "name": "EntryValidatorEvent",
492
+ "type": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
493
+ "kind": "flat"
494
+ },
495
+ {
496
+ "name": "SRC5Event",
497
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
498
+ "kind": "flat"
499
+ },
500
+ {
501
+ "name": "SnapshotCreated",
502
+ "type": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotValidator::SnapshotCreated",
503
+ "kind": "nested"
504
+ },
505
+ {
506
+ "name": "SnapshotDataUploaded",
507
+ "type": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotValidator::SnapshotDataUploaded",
508
+ "kind": "nested"
509
+ },
510
+ {
511
+ "name": "SnapshotLocked",
512
+ "type": "metagame_extensions_presets::entry_requirement::snapshot_validator::SnapshotValidator::SnapshotLocked",
513
+ "kind": "nested"
514
+ }
515
+ ]
516
+ }
517
+ ];
518
+
519
+ // src/abis/erc20BalanceValidator.ts
520
+ var ERC20_BALANCE_VALIDATOR_ABI = [
521
+ {
522
+ "type": "impl",
523
+ "name": "EntryValidatorMockImpl",
524
+ "interface_name": "metagame_extensions_presets::entry_requirement::erc20_balance_validator::IEntryRequirementExtensionMock"
525
+ },
526
+ {
527
+ "type": "struct",
528
+ "name": "core::integer::u256",
529
+ "members": [
530
+ {
531
+ "name": "low",
532
+ "type": "core::integer::u128"
533
+ },
534
+ {
535
+ "name": "high",
536
+ "type": "core::integer::u128"
537
+ }
538
+ ]
539
+ },
540
+ {
541
+ "type": "interface",
542
+ "name": "metagame_extensions_presets::entry_requirement::erc20_balance_validator::IEntryRequirementExtensionMock",
543
+ "items": [
544
+ {
545
+ "type": "function",
546
+ "name": "get_token_address",
547
+ "inputs": [
548
+ {
549
+ "name": "tournament_id",
550
+ "type": "core::integer::u64"
551
+ }
552
+ ],
553
+ "outputs": [
554
+ {
555
+ "type": "core::starknet::contract_address::ContractAddress"
556
+ }
557
+ ],
558
+ "state_mutability": "view"
559
+ },
560
+ {
561
+ "type": "function",
562
+ "name": "get_min_threshold",
563
+ "inputs": [
564
+ {
565
+ "name": "tournament_id",
566
+ "type": "core::integer::u64"
567
+ }
568
+ ],
569
+ "outputs": [
570
+ {
571
+ "type": "core::integer::u256"
572
+ }
573
+ ],
574
+ "state_mutability": "view"
575
+ },
576
+ {
577
+ "type": "function",
578
+ "name": "get_max_threshold",
579
+ "inputs": [
580
+ {
581
+ "name": "tournament_id",
582
+ "type": "core::integer::u64"
583
+ }
584
+ ],
585
+ "outputs": [
586
+ {
587
+ "type": "core::integer::u256"
588
+ }
589
+ ],
590
+ "state_mutability": "view"
591
+ },
592
+ {
593
+ "type": "function",
594
+ "name": "get_value_per_entry",
595
+ "inputs": [
596
+ {
597
+ "name": "tournament_id",
598
+ "type": "core::integer::u64"
599
+ }
600
+ ],
601
+ "outputs": [
602
+ {
603
+ "type": "core::integer::u256"
604
+ }
605
+ ],
606
+ "state_mutability": "view"
607
+ },
608
+ {
609
+ "type": "function",
610
+ "name": "get_max_entries",
611
+ "inputs": [
612
+ {
613
+ "name": "tournament_id",
614
+ "type": "core::integer::u64"
615
+ }
616
+ ],
617
+ "outputs": [
618
+ {
619
+ "type": "core::integer::u8"
620
+ }
621
+ ],
622
+ "state_mutability": "view"
623
+ }
624
+ ]
625
+ },
626
+ {
627
+ "type": "impl",
628
+ "name": "EntryRequirementExtensionImpl",
629
+ "interface_name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension"
630
+ },
631
+ {
632
+ "type": "enum",
633
+ "name": "core::bool",
634
+ "variants": [
635
+ {
636
+ "name": "False",
637
+ "type": "()"
638
+ },
639
+ {
640
+ "name": "True",
641
+ "type": "()"
642
+ }
643
+ ]
644
+ },
645
+ {
646
+ "type": "struct",
647
+ "name": "core::array::Span::<core::felt252>",
648
+ "members": [
649
+ {
650
+ "name": "snapshot",
651
+ "type": "@core::array::Array::<core::felt252>"
652
+ }
653
+ ]
654
+ },
655
+ {
656
+ "type": "enum",
657
+ "name": "core::option::Option::<core::integer::u8>",
658
+ "variants": [
659
+ {
660
+ "name": "Some",
661
+ "type": "core::integer::u8"
662
+ },
663
+ {
664
+ "name": "None",
665
+ "type": "()"
666
+ }
667
+ ]
668
+ },
669
+ {
670
+ "type": "interface",
671
+ "name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension",
672
+ "items": [
673
+ {
674
+ "type": "function",
675
+ "name": "context_owner",
676
+ "inputs": [
677
+ {
678
+ "name": "context_id",
679
+ "type": "core::integer::u64"
680
+ }
681
+ ],
682
+ "outputs": [
683
+ {
684
+ "type": "core::starknet::contract_address::ContractAddress"
685
+ }
686
+ ],
687
+ "state_mutability": "view"
688
+ },
689
+ {
690
+ "type": "function",
691
+ "name": "registration_only",
692
+ "inputs": [],
693
+ "outputs": [
694
+ {
695
+ "type": "core::bool"
696
+ }
697
+ ],
698
+ "state_mutability": "view"
699
+ },
700
+ {
701
+ "type": "function",
702
+ "name": "valid_entry",
703
+ "inputs": [
704
+ {
705
+ "name": "context_id",
706
+ "type": "core::integer::u64"
707
+ },
708
+ {
709
+ "name": "player_address",
710
+ "type": "core::starknet::contract_address::ContractAddress"
711
+ },
712
+ {
713
+ "name": "qualification",
714
+ "type": "core::array::Span::<core::felt252>"
715
+ }
716
+ ],
717
+ "outputs": [
718
+ {
719
+ "type": "core::bool"
720
+ }
721
+ ],
722
+ "state_mutability": "view"
723
+ },
724
+ {
725
+ "type": "function",
726
+ "name": "should_ban",
727
+ "inputs": [
728
+ {
729
+ "name": "context_id",
730
+ "type": "core::integer::u64"
731
+ },
732
+ {
733
+ "name": "game_token_id",
734
+ "type": "core::felt252"
735
+ },
736
+ {
737
+ "name": "current_owner",
738
+ "type": "core::starknet::contract_address::ContractAddress"
739
+ },
740
+ {
741
+ "name": "qualification",
742
+ "type": "core::array::Span::<core::felt252>"
743
+ }
744
+ ],
745
+ "outputs": [
746
+ {
747
+ "type": "core::bool"
748
+ }
749
+ ],
750
+ "state_mutability": "view"
751
+ },
752
+ {
753
+ "type": "function",
754
+ "name": "entries_left",
755
+ "inputs": [
756
+ {
757
+ "name": "context_id",
758
+ "type": "core::integer::u64"
759
+ },
760
+ {
761
+ "name": "player_address",
762
+ "type": "core::starknet::contract_address::ContractAddress"
763
+ },
764
+ {
765
+ "name": "qualification",
766
+ "type": "core::array::Span::<core::felt252>"
767
+ }
768
+ ],
769
+ "outputs": [
770
+ {
771
+ "type": "core::option::Option::<core::integer::u8>"
772
+ }
773
+ ],
774
+ "state_mutability": "view"
775
+ },
776
+ {
777
+ "type": "function",
778
+ "name": "add_config",
779
+ "inputs": [
780
+ {
781
+ "name": "context_id",
782
+ "type": "core::integer::u64"
783
+ },
784
+ {
785
+ "name": "entry_limit",
786
+ "type": "core::integer::u8"
787
+ },
788
+ {
789
+ "name": "config",
790
+ "type": "core::array::Span::<core::felt252>"
791
+ }
792
+ ],
793
+ "outputs": [],
794
+ "state_mutability": "external"
795
+ },
796
+ {
797
+ "type": "function",
798
+ "name": "add_entry",
799
+ "inputs": [
800
+ {
801
+ "name": "context_id",
802
+ "type": "core::integer::u64"
803
+ },
804
+ {
805
+ "name": "game_token_id",
806
+ "type": "core::felt252"
807
+ },
808
+ {
809
+ "name": "player_address",
810
+ "type": "core::starknet::contract_address::ContractAddress"
811
+ },
812
+ {
813
+ "name": "qualification",
814
+ "type": "core::array::Span::<core::felt252>"
815
+ }
816
+ ],
817
+ "outputs": [],
818
+ "state_mutability": "external"
819
+ },
820
+ {
821
+ "type": "function",
822
+ "name": "remove_entry",
823
+ "inputs": [
824
+ {
825
+ "name": "context_id",
826
+ "type": "core::integer::u64"
827
+ },
828
+ {
829
+ "name": "game_token_id",
830
+ "type": "core::felt252"
831
+ },
832
+ {
833
+ "name": "player_address",
834
+ "type": "core::starknet::contract_address::ContractAddress"
835
+ },
836
+ {
837
+ "name": "qualification",
838
+ "type": "core::array::Span::<core::felt252>"
839
+ }
840
+ ],
841
+ "outputs": [],
842
+ "state_mutability": "external"
843
+ }
844
+ ]
845
+ },
846
+ {
847
+ "type": "impl",
848
+ "name": "SRC5Impl",
849
+ "interface_name": "openzeppelin_interfaces::introspection::ISRC5"
850
+ },
851
+ {
852
+ "type": "interface",
853
+ "name": "openzeppelin_interfaces::introspection::ISRC5",
854
+ "items": [
855
+ {
856
+ "type": "function",
857
+ "name": "supports_interface",
858
+ "inputs": [
859
+ {
860
+ "name": "interface_id",
861
+ "type": "core::felt252"
862
+ }
863
+ ],
864
+ "outputs": [
865
+ {
866
+ "type": "core::bool"
867
+ }
868
+ ],
869
+ "state_mutability": "view"
870
+ }
871
+ ]
872
+ },
873
+ {
874
+ "type": "constructor",
875
+ "name": "constructor",
876
+ "inputs": []
877
+ },
878
+ {
879
+ "type": "event",
880
+ "name": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
881
+ "kind": "enum",
882
+ "variants": []
883
+ },
884
+ {
885
+ "type": "event",
886
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
887
+ "kind": "enum",
888
+ "variants": []
889
+ },
890
+ {
891
+ "type": "event",
892
+ "name": "metagame_extensions_presets::entry_requirement::erc20_balance_validator::ERC20BalanceValidator::Event",
893
+ "kind": "enum",
894
+ "variants": [
895
+ {
896
+ "name": "EntryValidatorEvent",
897
+ "type": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
898
+ "kind": "flat"
899
+ },
900
+ {
901
+ "name": "SRC5Event",
902
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
903
+ "kind": "flat"
904
+ }
905
+ ]
906
+ }
907
+ ];
908
+
909
+ // src/abis/governanceValidator.ts
910
+ var GOVERNANCE_VALIDATOR_ABI = [
911
+ {
912
+ "type": "impl",
913
+ "name": "EntryRequirementExtensionImpl",
914
+ "interface_name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension"
915
+ },
916
+ {
917
+ "type": "enum",
918
+ "name": "core::bool",
919
+ "variants": [
920
+ {
921
+ "name": "False",
922
+ "type": "()"
923
+ },
924
+ {
925
+ "name": "True",
926
+ "type": "()"
927
+ }
928
+ ]
929
+ },
930
+ {
931
+ "type": "struct",
932
+ "name": "core::array::Span::<core::felt252>",
933
+ "members": [
934
+ {
935
+ "name": "snapshot",
936
+ "type": "@core::array::Array::<core::felt252>"
937
+ }
938
+ ]
939
+ },
940
+ {
941
+ "type": "enum",
942
+ "name": "core::option::Option::<core::integer::u8>",
943
+ "variants": [
944
+ {
945
+ "name": "Some",
946
+ "type": "core::integer::u8"
947
+ },
948
+ {
949
+ "name": "None",
950
+ "type": "()"
951
+ }
952
+ ]
953
+ },
954
+ {
955
+ "type": "interface",
956
+ "name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension",
957
+ "items": [
958
+ {
959
+ "type": "function",
960
+ "name": "context_owner",
961
+ "inputs": [
962
+ {
963
+ "name": "context_id",
964
+ "type": "core::integer::u64"
965
+ }
966
+ ],
967
+ "outputs": [
968
+ {
969
+ "type": "core::starknet::contract_address::ContractAddress"
970
+ }
971
+ ],
972
+ "state_mutability": "view"
973
+ },
974
+ {
975
+ "type": "function",
976
+ "name": "registration_only",
977
+ "inputs": [],
978
+ "outputs": [
979
+ {
980
+ "type": "core::bool"
981
+ }
982
+ ],
983
+ "state_mutability": "view"
984
+ },
985
+ {
986
+ "type": "function",
987
+ "name": "valid_entry",
988
+ "inputs": [
989
+ {
990
+ "name": "context_id",
991
+ "type": "core::integer::u64"
992
+ },
993
+ {
994
+ "name": "player_address",
995
+ "type": "core::starknet::contract_address::ContractAddress"
996
+ },
997
+ {
998
+ "name": "qualification",
999
+ "type": "core::array::Span::<core::felt252>"
1000
+ }
1001
+ ],
1002
+ "outputs": [
1003
+ {
1004
+ "type": "core::bool"
1005
+ }
1006
+ ],
1007
+ "state_mutability": "view"
1008
+ },
1009
+ {
1010
+ "type": "function",
1011
+ "name": "should_ban",
1012
+ "inputs": [
1013
+ {
1014
+ "name": "context_id",
1015
+ "type": "core::integer::u64"
1016
+ },
1017
+ {
1018
+ "name": "game_token_id",
1019
+ "type": "core::felt252"
1020
+ },
1021
+ {
1022
+ "name": "current_owner",
1023
+ "type": "core::starknet::contract_address::ContractAddress"
1024
+ },
1025
+ {
1026
+ "name": "qualification",
1027
+ "type": "core::array::Span::<core::felt252>"
1028
+ }
1029
+ ],
1030
+ "outputs": [
1031
+ {
1032
+ "type": "core::bool"
1033
+ }
1034
+ ],
1035
+ "state_mutability": "view"
1036
+ },
1037
+ {
1038
+ "type": "function",
1039
+ "name": "entries_left",
1040
+ "inputs": [
1041
+ {
1042
+ "name": "context_id",
1043
+ "type": "core::integer::u64"
1044
+ },
1045
+ {
1046
+ "name": "player_address",
1047
+ "type": "core::starknet::contract_address::ContractAddress"
1048
+ },
1049
+ {
1050
+ "name": "qualification",
1051
+ "type": "core::array::Span::<core::felt252>"
1052
+ }
1053
+ ],
1054
+ "outputs": [
1055
+ {
1056
+ "type": "core::option::Option::<core::integer::u8>"
1057
+ }
1058
+ ],
1059
+ "state_mutability": "view"
1060
+ },
1061
+ {
1062
+ "type": "function",
1063
+ "name": "add_config",
1064
+ "inputs": [
1065
+ {
1066
+ "name": "context_id",
1067
+ "type": "core::integer::u64"
1068
+ },
1069
+ {
1070
+ "name": "entry_limit",
1071
+ "type": "core::integer::u8"
1072
+ },
1073
+ {
1074
+ "name": "config",
1075
+ "type": "core::array::Span::<core::felt252>"
1076
+ }
1077
+ ],
1078
+ "outputs": [],
1079
+ "state_mutability": "external"
1080
+ },
1081
+ {
1082
+ "type": "function",
1083
+ "name": "add_entry",
1084
+ "inputs": [
1085
+ {
1086
+ "name": "context_id",
1087
+ "type": "core::integer::u64"
1088
+ },
1089
+ {
1090
+ "name": "game_token_id",
1091
+ "type": "core::felt252"
1092
+ },
1093
+ {
1094
+ "name": "player_address",
1095
+ "type": "core::starknet::contract_address::ContractAddress"
1096
+ },
1097
+ {
1098
+ "name": "qualification",
1099
+ "type": "core::array::Span::<core::felt252>"
1100
+ }
1101
+ ],
1102
+ "outputs": [],
1103
+ "state_mutability": "external"
1104
+ },
1105
+ {
1106
+ "type": "function",
1107
+ "name": "remove_entry",
1108
+ "inputs": [
1109
+ {
1110
+ "name": "context_id",
1111
+ "type": "core::integer::u64"
1112
+ },
1113
+ {
1114
+ "name": "game_token_id",
1115
+ "type": "core::felt252"
1116
+ },
1117
+ {
1118
+ "name": "player_address",
1119
+ "type": "core::starknet::contract_address::ContractAddress"
1120
+ },
1121
+ {
1122
+ "name": "qualification",
1123
+ "type": "core::array::Span::<core::felt252>"
1124
+ }
1125
+ ],
1126
+ "outputs": [],
1127
+ "state_mutability": "external"
1128
+ }
1129
+ ]
1130
+ },
1131
+ {
1132
+ "type": "impl",
1133
+ "name": "SRC5Impl",
1134
+ "interface_name": "openzeppelin_interfaces::introspection::ISRC5"
1135
+ },
1136
+ {
1137
+ "type": "interface",
1138
+ "name": "openzeppelin_interfaces::introspection::ISRC5",
1139
+ "items": [
1140
+ {
1141
+ "type": "function",
1142
+ "name": "supports_interface",
1143
+ "inputs": [
1144
+ {
1145
+ "name": "interface_id",
1146
+ "type": "core::felt252"
1147
+ }
1148
+ ],
1149
+ "outputs": [
1150
+ {
1151
+ "type": "core::bool"
1152
+ }
1153
+ ],
1154
+ "state_mutability": "view"
1155
+ }
1156
+ ]
1157
+ },
1158
+ {
1159
+ "type": "constructor",
1160
+ "name": "constructor",
1161
+ "inputs": []
1162
+ },
1163
+ {
1164
+ "type": "event",
1165
+ "name": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
1166
+ "kind": "enum",
1167
+ "variants": []
1168
+ },
1169
+ {
1170
+ "type": "event",
1171
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
1172
+ "kind": "enum",
1173
+ "variants": []
1174
+ },
1175
+ {
1176
+ "type": "event",
1177
+ "name": "metagame_extensions_presets::entry_requirement::governance_validator::GovernanceValidator::Event",
1178
+ "kind": "enum",
1179
+ "variants": [
1180
+ {
1181
+ "name": "EntryValidatorEvent",
1182
+ "type": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
1183
+ "kind": "flat"
1184
+ },
1185
+ {
1186
+ "name": "SRC5Event",
1187
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
1188
+ "kind": "flat"
1189
+ }
1190
+ ]
1191
+ }
1192
+ ];
1193
+
1194
+ // src/abis/opusTrovesValidator.ts
1195
+ var OPUS_TROVES_VALIDATOR_ABI = [
1196
+ {
1197
+ "type": "impl",
1198
+ "name": "OpusTrovesValidatorImpl",
1199
+ "interface_name": "metagame_extensions_presets::entry_requirement::opus_troves_validator::IOpusTrovesValidator"
1200
+ },
1201
+ {
1202
+ "type": "interface",
1203
+ "name": "metagame_extensions_presets::entry_requirement::opus_troves_validator::IOpusTrovesValidator",
1204
+ "items": [
1205
+ {
1206
+ "type": "function",
1207
+ "name": "get_debt_threshold",
1208
+ "inputs": [
1209
+ {
1210
+ "name": "tournament_id",
1211
+ "type": "core::integer::u64"
1212
+ }
1213
+ ],
1214
+ "outputs": [
1215
+ {
1216
+ "type": "core::integer::u128"
1217
+ }
1218
+ ],
1219
+ "state_mutability": "view"
1220
+ },
1221
+ {
1222
+ "type": "function",
1223
+ "name": "get_value_per_entry",
1224
+ "inputs": [
1225
+ {
1226
+ "name": "tournament_id",
1227
+ "type": "core::integer::u64"
1228
+ }
1229
+ ],
1230
+ "outputs": [
1231
+ {
1232
+ "type": "core::integer::u128"
1233
+ }
1234
+ ],
1235
+ "state_mutability": "view"
1236
+ },
1237
+ {
1238
+ "type": "function",
1239
+ "name": "get_max_entries",
1240
+ "inputs": [
1241
+ {
1242
+ "name": "tournament_id",
1243
+ "type": "core::integer::u64"
1244
+ }
1245
+ ],
1246
+ "outputs": [
1247
+ {
1248
+ "type": "core::integer::u8"
1249
+ }
1250
+ ],
1251
+ "state_mutability": "view"
1252
+ }
1253
+ ]
1254
+ },
1255
+ {
1256
+ "type": "impl",
1257
+ "name": "EntryRequirementExtensionImpl",
1258
+ "interface_name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension"
1259
+ },
1260
+ {
1261
+ "type": "enum",
1262
+ "name": "core::bool",
1263
+ "variants": [
1264
+ {
1265
+ "name": "False",
1266
+ "type": "()"
1267
+ },
1268
+ {
1269
+ "name": "True",
1270
+ "type": "()"
1271
+ }
1272
+ ]
1273
+ },
1274
+ {
1275
+ "type": "struct",
1276
+ "name": "core::array::Span::<core::felt252>",
1277
+ "members": [
1278
+ {
1279
+ "name": "snapshot",
1280
+ "type": "@core::array::Array::<core::felt252>"
1281
+ }
1282
+ ]
1283
+ },
1284
+ {
1285
+ "type": "enum",
1286
+ "name": "core::option::Option::<core::integer::u8>",
1287
+ "variants": [
1288
+ {
1289
+ "name": "Some",
1290
+ "type": "core::integer::u8"
1291
+ },
1292
+ {
1293
+ "name": "None",
1294
+ "type": "()"
1295
+ }
1296
+ ]
1297
+ },
1298
+ {
1299
+ "type": "interface",
1300
+ "name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension",
1301
+ "items": [
1302
+ {
1303
+ "type": "function",
1304
+ "name": "context_owner",
1305
+ "inputs": [
1306
+ {
1307
+ "name": "context_id",
1308
+ "type": "core::integer::u64"
1309
+ }
1310
+ ],
1311
+ "outputs": [
1312
+ {
1313
+ "type": "core::starknet::contract_address::ContractAddress"
1314
+ }
1315
+ ],
1316
+ "state_mutability": "view"
1317
+ },
1318
+ {
1319
+ "type": "function",
1320
+ "name": "registration_only",
1321
+ "inputs": [],
1322
+ "outputs": [
1323
+ {
1324
+ "type": "core::bool"
1325
+ }
1326
+ ],
1327
+ "state_mutability": "view"
1328
+ },
1329
+ {
1330
+ "type": "function",
1331
+ "name": "valid_entry",
1332
+ "inputs": [
1333
+ {
1334
+ "name": "context_id",
1335
+ "type": "core::integer::u64"
1336
+ },
1337
+ {
1338
+ "name": "player_address",
1339
+ "type": "core::starknet::contract_address::ContractAddress"
1340
+ },
1341
+ {
1342
+ "name": "qualification",
1343
+ "type": "core::array::Span::<core::felt252>"
1344
+ }
1345
+ ],
1346
+ "outputs": [
1347
+ {
1348
+ "type": "core::bool"
1349
+ }
1350
+ ],
1351
+ "state_mutability": "view"
1352
+ },
1353
+ {
1354
+ "type": "function",
1355
+ "name": "should_ban",
1356
+ "inputs": [
1357
+ {
1358
+ "name": "context_id",
1359
+ "type": "core::integer::u64"
1360
+ },
1361
+ {
1362
+ "name": "game_token_id",
1363
+ "type": "core::felt252"
1364
+ },
1365
+ {
1366
+ "name": "current_owner",
1367
+ "type": "core::starknet::contract_address::ContractAddress"
1368
+ },
1369
+ {
1370
+ "name": "qualification",
1371
+ "type": "core::array::Span::<core::felt252>"
1372
+ }
1373
+ ],
1374
+ "outputs": [
1375
+ {
1376
+ "type": "core::bool"
1377
+ }
1378
+ ],
1379
+ "state_mutability": "view"
1380
+ },
1381
+ {
1382
+ "type": "function",
1383
+ "name": "entries_left",
1384
+ "inputs": [
1385
+ {
1386
+ "name": "context_id",
1387
+ "type": "core::integer::u64"
1388
+ },
1389
+ {
1390
+ "name": "player_address",
1391
+ "type": "core::starknet::contract_address::ContractAddress"
1392
+ },
1393
+ {
1394
+ "name": "qualification",
1395
+ "type": "core::array::Span::<core::felt252>"
1396
+ }
1397
+ ],
1398
+ "outputs": [
1399
+ {
1400
+ "type": "core::option::Option::<core::integer::u8>"
1401
+ }
1402
+ ],
1403
+ "state_mutability": "view"
1404
+ },
1405
+ {
1406
+ "type": "function",
1407
+ "name": "add_config",
1408
+ "inputs": [
1409
+ {
1410
+ "name": "context_id",
1411
+ "type": "core::integer::u64"
1412
+ },
1413
+ {
1414
+ "name": "entry_limit",
1415
+ "type": "core::integer::u8"
1416
+ },
1417
+ {
1418
+ "name": "config",
1419
+ "type": "core::array::Span::<core::felt252>"
1420
+ }
1421
+ ],
1422
+ "outputs": [],
1423
+ "state_mutability": "external"
1424
+ },
1425
+ {
1426
+ "type": "function",
1427
+ "name": "add_entry",
1428
+ "inputs": [
1429
+ {
1430
+ "name": "context_id",
1431
+ "type": "core::integer::u64"
1432
+ },
1433
+ {
1434
+ "name": "game_token_id",
1435
+ "type": "core::felt252"
1436
+ },
1437
+ {
1438
+ "name": "player_address",
1439
+ "type": "core::starknet::contract_address::ContractAddress"
1440
+ },
1441
+ {
1442
+ "name": "qualification",
1443
+ "type": "core::array::Span::<core::felt252>"
1444
+ }
1445
+ ],
1446
+ "outputs": [],
1447
+ "state_mutability": "external"
1448
+ },
1449
+ {
1450
+ "type": "function",
1451
+ "name": "remove_entry",
1452
+ "inputs": [
1453
+ {
1454
+ "name": "context_id",
1455
+ "type": "core::integer::u64"
1456
+ },
1457
+ {
1458
+ "name": "game_token_id",
1459
+ "type": "core::felt252"
1460
+ },
1461
+ {
1462
+ "name": "player_address",
1463
+ "type": "core::starknet::contract_address::ContractAddress"
1464
+ },
1465
+ {
1466
+ "name": "qualification",
1467
+ "type": "core::array::Span::<core::felt252>"
1468
+ }
1469
+ ],
1470
+ "outputs": [],
1471
+ "state_mutability": "external"
1472
+ }
1473
+ ]
1474
+ },
1475
+ {
1476
+ "type": "impl",
1477
+ "name": "SRC5Impl",
1478
+ "interface_name": "openzeppelin_interfaces::introspection::ISRC5"
1479
+ },
1480
+ {
1481
+ "type": "interface",
1482
+ "name": "openzeppelin_interfaces::introspection::ISRC5",
1483
+ "items": [
1484
+ {
1485
+ "type": "function",
1486
+ "name": "supports_interface",
1487
+ "inputs": [
1488
+ {
1489
+ "name": "interface_id",
1490
+ "type": "core::felt252"
1491
+ }
1492
+ ],
1493
+ "outputs": [
1494
+ {
1495
+ "type": "core::bool"
1496
+ }
1497
+ ],
1498
+ "state_mutability": "view"
1499
+ }
1500
+ ]
1501
+ },
1502
+ {
1503
+ "type": "constructor",
1504
+ "name": "constructor",
1505
+ "inputs": []
1506
+ },
1507
+ {
1508
+ "type": "event",
1509
+ "name": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
1510
+ "kind": "enum",
1511
+ "variants": []
1512
+ },
1513
+ {
1514
+ "type": "event",
1515
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
1516
+ "kind": "enum",
1517
+ "variants": []
1518
+ },
1519
+ {
1520
+ "type": "event",
1521
+ "name": "metagame_extensions_presets::entry_requirement::opus_troves_validator::OpusTrovesValidator::Event",
1522
+ "kind": "enum",
1523
+ "variants": [
1524
+ {
1525
+ "name": "EntryValidatorEvent",
1526
+ "type": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
1527
+ "kind": "flat"
1528
+ },
1529
+ {
1530
+ "name": "SRC5Event",
1531
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
1532
+ "kind": "flat"
1533
+ }
1534
+ ]
1535
+ }
1536
+ ];
1537
+
1538
+ // src/abis/tournamentValidator.ts
1539
+ var TOURNAMENT_VALIDATOR_ABI = [
1540
+ {
1541
+ "type": "impl",
1542
+ "name": "TournamentValidatorImpl",
1543
+ "interface_name": "metagame_extensions_presets::entry_requirement::tournament_validator::ITournamentValidator"
1544
+ },
1545
+ {
1546
+ "type": "interface",
1547
+ "name": "metagame_extensions_presets::entry_requirement::tournament_validator::ITournamentValidator",
1548
+ "items": [
1549
+ {
1550
+ "type": "function",
1551
+ "name": "get_qualifier_type",
1552
+ "inputs": [
1553
+ {
1554
+ "name": "tournament_id",
1555
+ "type": "core::integer::u64"
1556
+ }
1557
+ ],
1558
+ "outputs": [
1559
+ {
1560
+ "type": "core::felt252"
1561
+ }
1562
+ ],
1563
+ "state_mutability": "view"
1564
+ },
1565
+ {
1566
+ "type": "function",
1567
+ "name": "get_qualifying_mode",
1568
+ "inputs": [
1569
+ {
1570
+ "name": "tournament_id",
1571
+ "type": "core::integer::u64"
1572
+ }
1573
+ ],
1574
+ "outputs": [
1575
+ {
1576
+ "type": "core::felt252"
1577
+ }
1578
+ ],
1579
+ "state_mutability": "view"
1580
+ },
1581
+ {
1582
+ "type": "function",
1583
+ "name": "get_qualifying_tournament_ids",
1584
+ "inputs": [
1585
+ {
1586
+ "name": "tournament_id",
1587
+ "type": "core::integer::u64"
1588
+ }
1589
+ ],
1590
+ "outputs": [
1591
+ {
1592
+ "type": "core::array::Array::<core::integer::u64>"
1593
+ }
1594
+ ],
1595
+ "state_mutability": "view"
1596
+ },
1597
+ {
1598
+ "type": "function",
1599
+ "name": "get_top_positions",
1600
+ "inputs": [
1601
+ {
1602
+ "name": "tournament_id",
1603
+ "type": "core::integer::u64"
1604
+ }
1605
+ ],
1606
+ "outputs": [
1607
+ {
1608
+ "type": "core::integer::u32"
1609
+ }
1610
+ ],
1611
+ "state_mutability": "view"
1612
+ }
1613
+ ]
1614
+ },
1615
+ {
1616
+ "type": "impl",
1617
+ "name": "EntryRequirementExtensionImpl",
1618
+ "interface_name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension"
1619
+ },
1620
+ {
1621
+ "type": "enum",
1622
+ "name": "core::bool",
1623
+ "variants": [
1624
+ {
1625
+ "name": "False",
1626
+ "type": "()"
1627
+ },
1628
+ {
1629
+ "name": "True",
1630
+ "type": "()"
1631
+ }
1632
+ ]
1633
+ },
1634
+ {
1635
+ "type": "struct",
1636
+ "name": "core::array::Span::<core::felt252>",
1637
+ "members": [
1638
+ {
1639
+ "name": "snapshot",
1640
+ "type": "@core::array::Array::<core::felt252>"
1641
+ }
1642
+ ]
1643
+ },
1644
+ {
1645
+ "type": "enum",
1646
+ "name": "core::option::Option::<core::integer::u8>",
1647
+ "variants": [
1648
+ {
1649
+ "name": "Some",
1650
+ "type": "core::integer::u8"
1651
+ },
1652
+ {
1653
+ "name": "None",
1654
+ "type": "()"
1655
+ }
1656
+ ]
1657
+ },
1658
+ {
1659
+ "type": "interface",
1660
+ "name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension",
1661
+ "items": [
1662
+ {
1663
+ "type": "function",
1664
+ "name": "context_owner",
1665
+ "inputs": [
1666
+ {
1667
+ "name": "context_id",
1668
+ "type": "core::integer::u64"
1669
+ }
1670
+ ],
1671
+ "outputs": [
1672
+ {
1673
+ "type": "core::starknet::contract_address::ContractAddress"
1674
+ }
1675
+ ],
1676
+ "state_mutability": "view"
1677
+ },
1678
+ {
1679
+ "type": "function",
1680
+ "name": "registration_only",
1681
+ "inputs": [],
1682
+ "outputs": [
1683
+ {
1684
+ "type": "core::bool"
1685
+ }
1686
+ ],
1687
+ "state_mutability": "view"
1688
+ },
1689
+ {
1690
+ "type": "function",
1691
+ "name": "valid_entry",
1692
+ "inputs": [
1693
+ {
1694
+ "name": "context_id",
1695
+ "type": "core::integer::u64"
1696
+ },
1697
+ {
1698
+ "name": "player_address",
1699
+ "type": "core::starknet::contract_address::ContractAddress"
1700
+ },
1701
+ {
1702
+ "name": "qualification",
1703
+ "type": "core::array::Span::<core::felt252>"
1704
+ }
1705
+ ],
1706
+ "outputs": [
1707
+ {
1708
+ "type": "core::bool"
1709
+ }
1710
+ ],
1711
+ "state_mutability": "view"
1712
+ },
1713
+ {
1714
+ "type": "function",
1715
+ "name": "should_ban",
1716
+ "inputs": [
1717
+ {
1718
+ "name": "context_id",
1719
+ "type": "core::integer::u64"
1720
+ },
1721
+ {
1722
+ "name": "game_token_id",
1723
+ "type": "core::felt252"
1724
+ },
1725
+ {
1726
+ "name": "current_owner",
1727
+ "type": "core::starknet::contract_address::ContractAddress"
1728
+ },
1729
+ {
1730
+ "name": "qualification",
1731
+ "type": "core::array::Span::<core::felt252>"
1732
+ }
1733
+ ],
1734
+ "outputs": [
1735
+ {
1736
+ "type": "core::bool"
1737
+ }
1738
+ ],
1739
+ "state_mutability": "view"
1740
+ },
1741
+ {
1742
+ "type": "function",
1743
+ "name": "entries_left",
1744
+ "inputs": [
1745
+ {
1746
+ "name": "context_id",
1747
+ "type": "core::integer::u64"
1748
+ },
1749
+ {
1750
+ "name": "player_address",
1751
+ "type": "core::starknet::contract_address::ContractAddress"
1752
+ },
1753
+ {
1754
+ "name": "qualification",
1755
+ "type": "core::array::Span::<core::felt252>"
1756
+ }
1757
+ ],
1758
+ "outputs": [
1759
+ {
1760
+ "type": "core::option::Option::<core::integer::u8>"
1761
+ }
1762
+ ],
1763
+ "state_mutability": "view"
1764
+ },
1765
+ {
1766
+ "type": "function",
1767
+ "name": "add_config",
1768
+ "inputs": [
1769
+ {
1770
+ "name": "context_id",
1771
+ "type": "core::integer::u64"
1772
+ },
1773
+ {
1774
+ "name": "entry_limit",
1775
+ "type": "core::integer::u8"
1776
+ },
1777
+ {
1778
+ "name": "config",
1779
+ "type": "core::array::Span::<core::felt252>"
1780
+ }
1781
+ ],
1782
+ "outputs": [],
1783
+ "state_mutability": "external"
1784
+ },
1785
+ {
1786
+ "type": "function",
1787
+ "name": "add_entry",
1788
+ "inputs": [
1789
+ {
1790
+ "name": "context_id",
1791
+ "type": "core::integer::u64"
1792
+ },
1793
+ {
1794
+ "name": "game_token_id",
1795
+ "type": "core::felt252"
1796
+ },
1797
+ {
1798
+ "name": "player_address",
1799
+ "type": "core::starknet::contract_address::ContractAddress"
1800
+ },
1801
+ {
1802
+ "name": "qualification",
1803
+ "type": "core::array::Span::<core::felt252>"
1804
+ }
1805
+ ],
1806
+ "outputs": [],
1807
+ "state_mutability": "external"
1808
+ },
1809
+ {
1810
+ "type": "function",
1811
+ "name": "remove_entry",
1812
+ "inputs": [
1813
+ {
1814
+ "name": "context_id",
1815
+ "type": "core::integer::u64"
1816
+ },
1817
+ {
1818
+ "name": "game_token_id",
1819
+ "type": "core::felt252"
1820
+ },
1821
+ {
1822
+ "name": "player_address",
1823
+ "type": "core::starknet::contract_address::ContractAddress"
1824
+ },
1825
+ {
1826
+ "name": "qualification",
1827
+ "type": "core::array::Span::<core::felt252>"
1828
+ }
1829
+ ],
1830
+ "outputs": [],
1831
+ "state_mutability": "external"
1832
+ }
1833
+ ]
1834
+ },
1835
+ {
1836
+ "type": "impl",
1837
+ "name": "SRC5Impl",
1838
+ "interface_name": "openzeppelin_interfaces::introspection::ISRC5"
1839
+ },
1840
+ {
1841
+ "type": "interface",
1842
+ "name": "openzeppelin_interfaces::introspection::ISRC5",
1843
+ "items": [
1844
+ {
1845
+ "type": "function",
1846
+ "name": "supports_interface",
1847
+ "inputs": [
1848
+ {
1849
+ "name": "interface_id",
1850
+ "type": "core::felt252"
1851
+ }
1852
+ ],
1853
+ "outputs": [
1854
+ {
1855
+ "type": "core::bool"
1856
+ }
1857
+ ],
1858
+ "state_mutability": "view"
1859
+ }
1860
+ ]
1861
+ },
1862
+ {
1863
+ "type": "constructor",
1864
+ "name": "constructor",
1865
+ "inputs": []
1866
+ },
1867
+ {
1868
+ "type": "event",
1869
+ "name": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
1870
+ "kind": "enum",
1871
+ "variants": []
1872
+ },
1873
+ {
1874
+ "type": "event",
1875
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
1876
+ "kind": "enum",
1877
+ "variants": []
1878
+ },
1879
+ {
1880
+ "type": "event",
1881
+ "name": "metagame_extensions_presets::entry_requirement::tournament_validator::TournamentValidator::ConfigAdded",
1882
+ "kind": "struct",
1883
+ "members": [
1884
+ {
1885
+ "name": "tournament_id",
1886
+ "type": "core::integer::u64",
1887
+ "kind": "data"
1888
+ },
1889
+ {
1890
+ "name": "qualifier_type",
1891
+ "type": "core::felt252",
1892
+ "kind": "data"
1893
+ },
1894
+ {
1895
+ "name": "qualifying_mode",
1896
+ "type": "core::felt252",
1897
+ "kind": "data"
1898
+ }
1899
+ ]
1900
+ },
1901
+ {
1902
+ "type": "event",
1903
+ "name": "metagame_extensions_presets::entry_requirement::tournament_validator::TournamentValidator::EntryRecorded",
1904
+ "kind": "struct",
1905
+ "members": [
1906
+ {
1907
+ "name": "tournament_id",
1908
+ "type": "core::integer::u64",
1909
+ "kind": "data"
1910
+ },
1911
+ {
1912
+ "name": "qualifying_token_id",
1913
+ "type": "core::integer::u64",
1914
+ "kind": "data"
1915
+ },
1916
+ {
1917
+ "name": "entries_used",
1918
+ "type": "core::integer::u8",
1919
+ "kind": "data"
1920
+ }
1921
+ ]
1922
+ },
1923
+ {
1924
+ "type": "event",
1925
+ "name": "metagame_extensions_presets::entry_requirement::tournament_validator::TournamentValidator::Event",
1926
+ "kind": "enum",
1927
+ "variants": [
1928
+ {
1929
+ "name": "EntryValidatorEvent",
1930
+ "type": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
1931
+ "kind": "flat"
1932
+ },
1933
+ {
1934
+ "name": "SRC5Event",
1935
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
1936
+ "kind": "flat"
1937
+ },
1938
+ {
1939
+ "name": "ConfigAdded",
1940
+ "type": "metagame_extensions_presets::entry_requirement::tournament_validator::TournamentValidator::ConfigAdded",
1941
+ "kind": "nested"
1942
+ },
1943
+ {
1944
+ "name": "EntryRecorded",
1945
+ "type": "metagame_extensions_presets::entry_requirement::tournament_validator::TournamentValidator::EntryRecorded",
1946
+ "kind": "nested"
1947
+ }
1948
+ ]
1949
+ }
1950
+ ];
1951
+
1952
+ // src/abis/zkPassportValidator.ts
1953
+ var ZK_PASSPORT_VALIDATOR_ABI = [
1954
+ {
1955
+ "type": "impl",
1956
+ "name": "ZkPassportValidatorImpl",
1957
+ "interface_name": "metagame_extensions_presets::entry_requirement::zkpassport_validator::IZkPassportValidator"
1958
+ },
1959
+ {
1960
+ "type": "enum",
1961
+ "name": "core::bool",
1962
+ "variants": [
1963
+ {
1964
+ "name": "False",
1965
+ "type": "()"
1966
+ },
1967
+ {
1968
+ "name": "True",
1969
+ "type": "()"
1970
+ }
1971
+ ]
1972
+ },
1973
+ {
1974
+ "type": "interface",
1975
+ "name": "metagame_extensions_presets::entry_requirement::zkpassport_validator::IZkPassportValidator",
1976
+ "items": [
1977
+ {
1978
+ "type": "function",
1979
+ "name": "get_verifier_address",
1980
+ "inputs": [
1981
+ {
1982
+ "name": "tournament_id",
1983
+ "type": "core::integer::u64"
1984
+ }
1985
+ ],
1986
+ "outputs": [
1987
+ {
1988
+ "type": "core::starknet::contract_address::ContractAddress"
1989
+ }
1990
+ ],
1991
+ "state_mutability": "view"
1992
+ },
1993
+ {
1994
+ "type": "function",
1995
+ "name": "get_expected_service_scope",
1996
+ "inputs": [
1997
+ {
1998
+ "name": "tournament_id",
1999
+ "type": "core::integer::u64"
2000
+ }
2001
+ ],
2002
+ "outputs": [
2003
+ {
2004
+ "type": "core::felt252"
2005
+ }
2006
+ ],
2007
+ "state_mutability": "view"
2008
+ },
2009
+ {
2010
+ "type": "function",
2011
+ "name": "get_expected_service_subscope",
2012
+ "inputs": [
2013
+ {
2014
+ "name": "tournament_id",
2015
+ "type": "core::integer::u64"
2016
+ }
2017
+ ],
2018
+ "outputs": [
2019
+ {
2020
+ "type": "core::felt252"
2021
+ }
2022
+ ],
2023
+ "state_mutability": "view"
2024
+ },
2025
+ {
2026
+ "type": "function",
2027
+ "name": "get_expected_param_commitment",
2028
+ "inputs": [
2029
+ {
2030
+ "name": "tournament_id",
2031
+ "type": "core::integer::u64"
2032
+ }
2033
+ ],
2034
+ "outputs": [
2035
+ {
2036
+ "type": "core::felt252"
2037
+ }
2038
+ ],
2039
+ "state_mutability": "view"
2040
+ },
2041
+ {
2042
+ "type": "function",
2043
+ "name": "get_max_proof_age",
2044
+ "inputs": [
2045
+ {
2046
+ "name": "tournament_id",
2047
+ "type": "core::integer::u64"
2048
+ }
2049
+ ],
2050
+ "outputs": [
2051
+ {
2052
+ "type": "core::integer::u64"
2053
+ }
2054
+ ],
2055
+ "state_mutability": "view"
2056
+ },
2057
+ {
2058
+ "type": "function",
2059
+ "name": "get_expected_nullifier_type",
2060
+ "inputs": [
2061
+ {
2062
+ "name": "tournament_id",
2063
+ "type": "core::integer::u64"
2064
+ }
2065
+ ],
2066
+ "outputs": [
2067
+ {
2068
+ "type": "core::felt252"
2069
+ }
2070
+ ],
2071
+ "state_mutability": "view"
2072
+ },
2073
+ {
2074
+ "type": "function",
2075
+ "name": "is_nullifier_used",
2076
+ "inputs": [
2077
+ {
2078
+ "name": "tournament_id",
2079
+ "type": "core::integer::u64"
2080
+ },
2081
+ {
2082
+ "name": "nullifier_hash",
2083
+ "type": "core::felt252"
2084
+ }
2085
+ ],
2086
+ "outputs": [
2087
+ {
2088
+ "type": "core::bool"
2089
+ }
2090
+ ],
2091
+ "state_mutability": "view"
2092
+ }
2093
+ ]
2094
+ },
2095
+ {
2096
+ "type": "impl",
2097
+ "name": "EntryRequirementExtensionImpl",
2098
+ "interface_name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension"
2099
+ },
2100
+ {
2101
+ "type": "struct",
2102
+ "name": "core::array::Span::<core::felt252>",
2103
+ "members": [
2104
+ {
2105
+ "name": "snapshot",
2106
+ "type": "@core::array::Array::<core::felt252>"
2107
+ }
2108
+ ]
2109
+ },
2110
+ {
2111
+ "type": "enum",
2112
+ "name": "core::option::Option::<core::integer::u8>",
2113
+ "variants": [
2114
+ {
2115
+ "name": "Some",
2116
+ "type": "core::integer::u8"
2117
+ },
2118
+ {
2119
+ "name": "None",
2120
+ "type": "()"
2121
+ }
2122
+ ]
2123
+ },
2124
+ {
2125
+ "type": "interface",
2126
+ "name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension",
2127
+ "items": [
2128
+ {
2129
+ "type": "function",
2130
+ "name": "context_owner",
2131
+ "inputs": [
2132
+ {
2133
+ "name": "context_id",
2134
+ "type": "core::integer::u64"
2135
+ }
2136
+ ],
2137
+ "outputs": [
2138
+ {
2139
+ "type": "core::starknet::contract_address::ContractAddress"
2140
+ }
2141
+ ],
2142
+ "state_mutability": "view"
2143
+ },
2144
+ {
2145
+ "type": "function",
2146
+ "name": "registration_only",
2147
+ "inputs": [],
2148
+ "outputs": [
2149
+ {
2150
+ "type": "core::bool"
2151
+ }
2152
+ ],
2153
+ "state_mutability": "view"
2154
+ },
2155
+ {
2156
+ "type": "function",
2157
+ "name": "valid_entry",
2158
+ "inputs": [
2159
+ {
2160
+ "name": "context_id",
2161
+ "type": "core::integer::u64"
2162
+ },
2163
+ {
2164
+ "name": "player_address",
2165
+ "type": "core::starknet::contract_address::ContractAddress"
2166
+ },
2167
+ {
2168
+ "name": "qualification",
2169
+ "type": "core::array::Span::<core::felt252>"
2170
+ }
2171
+ ],
2172
+ "outputs": [
2173
+ {
2174
+ "type": "core::bool"
2175
+ }
2176
+ ],
2177
+ "state_mutability": "view"
2178
+ },
2179
+ {
2180
+ "type": "function",
2181
+ "name": "should_ban",
2182
+ "inputs": [
2183
+ {
2184
+ "name": "context_id",
2185
+ "type": "core::integer::u64"
2186
+ },
2187
+ {
2188
+ "name": "game_token_id",
2189
+ "type": "core::felt252"
2190
+ },
2191
+ {
2192
+ "name": "current_owner",
2193
+ "type": "core::starknet::contract_address::ContractAddress"
2194
+ },
2195
+ {
2196
+ "name": "qualification",
2197
+ "type": "core::array::Span::<core::felt252>"
2198
+ }
2199
+ ],
2200
+ "outputs": [
2201
+ {
2202
+ "type": "core::bool"
2203
+ }
2204
+ ],
2205
+ "state_mutability": "view"
2206
+ },
2207
+ {
2208
+ "type": "function",
2209
+ "name": "entries_left",
2210
+ "inputs": [
2211
+ {
2212
+ "name": "context_id",
2213
+ "type": "core::integer::u64"
2214
+ },
2215
+ {
2216
+ "name": "player_address",
2217
+ "type": "core::starknet::contract_address::ContractAddress"
2218
+ },
2219
+ {
2220
+ "name": "qualification",
2221
+ "type": "core::array::Span::<core::felt252>"
2222
+ }
2223
+ ],
2224
+ "outputs": [
2225
+ {
2226
+ "type": "core::option::Option::<core::integer::u8>"
2227
+ }
2228
+ ],
2229
+ "state_mutability": "view"
2230
+ },
2231
+ {
2232
+ "type": "function",
2233
+ "name": "add_config",
2234
+ "inputs": [
2235
+ {
2236
+ "name": "context_id",
2237
+ "type": "core::integer::u64"
2238
+ },
2239
+ {
2240
+ "name": "entry_limit",
2241
+ "type": "core::integer::u8"
2242
+ },
2243
+ {
2244
+ "name": "config",
2245
+ "type": "core::array::Span::<core::felt252>"
2246
+ }
2247
+ ],
2248
+ "outputs": [],
2249
+ "state_mutability": "external"
2250
+ },
2251
+ {
2252
+ "type": "function",
2253
+ "name": "add_entry",
2254
+ "inputs": [
2255
+ {
2256
+ "name": "context_id",
2257
+ "type": "core::integer::u64"
2258
+ },
2259
+ {
2260
+ "name": "game_token_id",
2261
+ "type": "core::felt252"
2262
+ },
2263
+ {
2264
+ "name": "player_address",
2265
+ "type": "core::starknet::contract_address::ContractAddress"
2266
+ },
2267
+ {
2268
+ "name": "qualification",
2269
+ "type": "core::array::Span::<core::felt252>"
2270
+ }
2271
+ ],
2272
+ "outputs": [],
2273
+ "state_mutability": "external"
2274
+ },
2275
+ {
2276
+ "type": "function",
2277
+ "name": "remove_entry",
2278
+ "inputs": [
2279
+ {
2280
+ "name": "context_id",
2281
+ "type": "core::integer::u64"
2282
+ },
2283
+ {
2284
+ "name": "game_token_id",
2285
+ "type": "core::felt252"
2286
+ },
2287
+ {
2288
+ "name": "player_address",
2289
+ "type": "core::starknet::contract_address::ContractAddress"
2290
+ },
2291
+ {
2292
+ "name": "qualification",
2293
+ "type": "core::array::Span::<core::felt252>"
2294
+ }
2295
+ ],
2296
+ "outputs": [],
2297
+ "state_mutability": "external"
2298
+ }
2299
+ ]
2300
+ },
2301
+ {
2302
+ "type": "impl",
2303
+ "name": "SRC5Impl",
2304
+ "interface_name": "openzeppelin_interfaces::introspection::ISRC5"
2305
+ },
2306
+ {
2307
+ "type": "interface",
2308
+ "name": "openzeppelin_interfaces::introspection::ISRC5",
2309
+ "items": [
2310
+ {
2311
+ "type": "function",
2312
+ "name": "supports_interface",
2313
+ "inputs": [
2314
+ {
2315
+ "name": "interface_id",
2316
+ "type": "core::felt252"
2317
+ }
2318
+ ],
2319
+ "outputs": [
2320
+ {
2321
+ "type": "core::bool"
2322
+ }
2323
+ ],
2324
+ "state_mutability": "view"
2325
+ }
2326
+ ]
2327
+ },
2328
+ {
2329
+ "type": "constructor",
2330
+ "name": "constructor",
2331
+ "inputs": [
2332
+ {
2333
+ "name": "registration_only",
2334
+ "type": "core::bool"
2335
+ }
2336
+ ]
2337
+ },
2338
+ {
2339
+ "type": "event",
2340
+ "name": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
2341
+ "kind": "enum",
2342
+ "variants": []
2343
+ },
2344
+ {
2345
+ "type": "event",
2346
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
2347
+ "kind": "enum",
2348
+ "variants": []
2349
+ },
2350
+ {
2351
+ "type": "event",
2352
+ "name": "metagame_extensions_presets::entry_requirement::zkpassport_validator::ZkPassportValidator::Event",
2353
+ "kind": "enum",
2354
+ "variants": [
2355
+ {
2356
+ "name": "EntryValidatorEvent",
2357
+ "type": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
2358
+ "kind": "flat"
2359
+ },
2360
+ {
2361
+ "name": "SRC5Event",
2362
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
2363
+ "kind": "flat"
2364
+ }
2365
+ ]
2366
+ }
2367
+ ];
2368
+
2369
+ // src/abis/merkleValidator.ts
2370
+ var MERKLE_VALIDATOR_ABI = [
2371
+ {
2372
+ "type": "impl",
2373
+ "name": "MerkleValidatorImpl",
2374
+ "interface_name": "metagame_extensions_presets::entry_requirement::merkle_validator::IMerkleValidator"
2375
+ },
2376
+ {
2377
+ "type": "struct",
2378
+ "name": "core::array::Span::<core::felt252>",
2379
+ "members": [
2380
+ {
2381
+ "name": "snapshot",
2382
+ "type": "@core::array::Array::<core::felt252>"
2383
+ }
2384
+ ]
2385
+ },
2386
+ {
2387
+ "type": "enum",
2388
+ "name": "core::bool",
2389
+ "variants": [
2390
+ {
2391
+ "name": "False",
2392
+ "type": "()"
2393
+ },
2394
+ {
2395
+ "name": "True",
2396
+ "type": "()"
2397
+ }
2398
+ ]
2399
+ },
2400
+ {
2401
+ "type": "interface",
2402
+ "name": "metagame_extensions_presets::entry_requirement::merkle_validator::IMerkleValidator",
2403
+ "items": [
2404
+ {
2405
+ "type": "function",
2406
+ "name": "create_tree",
2407
+ "inputs": [
2408
+ {
2409
+ "name": "root",
2410
+ "type": "core::felt252"
2411
+ }
2412
+ ],
2413
+ "outputs": [
2414
+ {
2415
+ "type": "core::integer::u64"
2416
+ }
2417
+ ],
2418
+ "state_mutability": "external"
2419
+ },
2420
+ {
2421
+ "type": "function",
2422
+ "name": "get_tree_root",
2423
+ "inputs": [
2424
+ {
2425
+ "name": "tree_id",
2426
+ "type": "core::integer::u64"
2427
+ }
2428
+ ],
2429
+ "outputs": [
2430
+ {
2431
+ "type": "core::felt252"
2432
+ }
2433
+ ],
2434
+ "state_mutability": "view"
2435
+ },
2436
+ {
2437
+ "type": "function",
2438
+ "name": "get_tree_owner",
2439
+ "inputs": [
2440
+ {
2441
+ "name": "tree_id",
2442
+ "type": "core::integer::u64"
2443
+ }
2444
+ ],
2445
+ "outputs": [
2446
+ {
2447
+ "type": "core::starknet::contract_address::ContractAddress"
2448
+ }
2449
+ ],
2450
+ "state_mutability": "view"
2451
+ },
2452
+ {
2453
+ "type": "function",
2454
+ "name": "get_context_tree",
2455
+ "inputs": [
2456
+ {
2457
+ "name": "context_id",
2458
+ "type": "core::integer::u64"
2459
+ }
2460
+ ],
2461
+ "outputs": [
2462
+ {
2463
+ "type": "core::integer::u64"
2464
+ }
2465
+ ],
2466
+ "state_mutability": "view"
2467
+ },
2468
+ {
2469
+ "type": "function",
2470
+ "name": "verify_proof",
2471
+ "inputs": [
2472
+ {
2473
+ "name": "tree_id",
2474
+ "type": "core::integer::u64"
2475
+ },
2476
+ {
2477
+ "name": "player_address",
2478
+ "type": "core::starknet::contract_address::ContractAddress"
2479
+ },
2480
+ {
2481
+ "name": "count",
2482
+ "type": "core::integer::u8"
2483
+ },
2484
+ {
2485
+ "name": "proof",
2486
+ "type": "core::array::Span::<core::felt252>"
2487
+ }
2488
+ ],
2489
+ "outputs": [
2490
+ {
2491
+ "type": "core::bool"
2492
+ }
2493
+ ],
2494
+ "state_mutability": "view"
2495
+ }
2496
+ ]
2497
+ },
2498
+ {
2499
+ "type": "impl",
2500
+ "name": "EntryRequirementExtensionImpl",
2501
+ "interface_name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension"
2502
+ },
2503
+ {
2504
+ "type": "enum",
2505
+ "name": "core::option::Option::<core::integer::u8>",
2506
+ "variants": [
2507
+ {
2508
+ "name": "Some",
2509
+ "type": "core::integer::u8"
2510
+ },
2511
+ {
2512
+ "name": "None",
2513
+ "type": "()"
2514
+ }
2515
+ ]
2516
+ },
2517
+ {
2518
+ "type": "interface",
2519
+ "name": "metagame_extensions_interfaces::entry_requirement_extension::IEntryRequirementExtension",
2520
+ "items": [
2521
+ {
2522
+ "type": "function",
2523
+ "name": "context_owner",
2524
+ "inputs": [
2525
+ {
2526
+ "name": "context_id",
2527
+ "type": "core::integer::u64"
2528
+ }
2529
+ ],
2530
+ "outputs": [
2531
+ {
2532
+ "type": "core::starknet::contract_address::ContractAddress"
2533
+ }
2534
+ ],
2535
+ "state_mutability": "view"
2536
+ },
2537
+ {
2538
+ "type": "function",
2539
+ "name": "registration_only",
2540
+ "inputs": [],
2541
+ "outputs": [
2542
+ {
2543
+ "type": "core::bool"
2544
+ }
2545
+ ],
2546
+ "state_mutability": "view"
2547
+ },
2548
+ {
2549
+ "type": "function",
2550
+ "name": "valid_entry",
2551
+ "inputs": [
2552
+ {
2553
+ "name": "context_id",
2554
+ "type": "core::integer::u64"
2555
+ },
2556
+ {
2557
+ "name": "player_address",
2558
+ "type": "core::starknet::contract_address::ContractAddress"
2559
+ },
2560
+ {
2561
+ "name": "qualification",
2562
+ "type": "core::array::Span::<core::felt252>"
2563
+ }
2564
+ ],
2565
+ "outputs": [
2566
+ {
2567
+ "type": "core::bool"
2568
+ }
2569
+ ],
2570
+ "state_mutability": "view"
2571
+ },
2572
+ {
2573
+ "type": "function",
2574
+ "name": "should_ban",
2575
+ "inputs": [
2576
+ {
2577
+ "name": "context_id",
2578
+ "type": "core::integer::u64"
2579
+ },
2580
+ {
2581
+ "name": "game_token_id",
2582
+ "type": "core::felt252"
2583
+ },
2584
+ {
2585
+ "name": "current_owner",
2586
+ "type": "core::starknet::contract_address::ContractAddress"
2587
+ },
2588
+ {
2589
+ "name": "qualification",
2590
+ "type": "core::array::Span::<core::felt252>"
2591
+ }
2592
+ ],
2593
+ "outputs": [
2594
+ {
2595
+ "type": "core::bool"
2596
+ }
2597
+ ],
2598
+ "state_mutability": "view"
2599
+ },
2600
+ {
2601
+ "type": "function",
2602
+ "name": "entries_left",
2603
+ "inputs": [
2604
+ {
2605
+ "name": "context_id",
2606
+ "type": "core::integer::u64"
2607
+ },
2608
+ {
2609
+ "name": "player_address",
2610
+ "type": "core::starknet::contract_address::ContractAddress"
2611
+ },
2612
+ {
2613
+ "name": "qualification",
2614
+ "type": "core::array::Span::<core::felt252>"
2615
+ }
2616
+ ],
2617
+ "outputs": [
2618
+ {
2619
+ "type": "core::option::Option::<core::integer::u8>"
2620
+ }
2621
+ ],
2622
+ "state_mutability": "view"
2623
+ },
2624
+ {
2625
+ "type": "function",
2626
+ "name": "add_config",
2627
+ "inputs": [
2628
+ {
2629
+ "name": "context_id",
2630
+ "type": "core::integer::u64"
2631
+ },
2632
+ {
2633
+ "name": "entry_limit",
2634
+ "type": "core::integer::u8"
2635
+ },
2636
+ {
2637
+ "name": "config",
2638
+ "type": "core::array::Span::<core::felt252>"
2639
+ }
2640
+ ],
2641
+ "outputs": [],
2642
+ "state_mutability": "external"
2643
+ },
2644
+ {
2645
+ "type": "function",
2646
+ "name": "add_entry",
2647
+ "inputs": [
2648
+ {
2649
+ "name": "context_id",
2650
+ "type": "core::integer::u64"
2651
+ },
2652
+ {
2653
+ "name": "game_token_id",
2654
+ "type": "core::felt252"
2655
+ },
2656
+ {
2657
+ "name": "player_address",
2658
+ "type": "core::starknet::contract_address::ContractAddress"
2659
+ },
2660
+ {
2661
+ "name": "qualification",
2662
+ "type": "core::array::Span::<core::felt252>"
2663
+ }
2664
+ ],
2665
+ "outputs": [],
2666
+ "state_mutability": "external"
2667
+ },
2668
+ {
2669
+ "type": "function",
2670
+ "name": "remove_entry",
2671
+ "inputs": [
2672
+ {
2673
+ "name": "context_id",
2674
+ "type": "core::integer::u64"
2675
+ },
2676
+ {
2677
+ "name": "game_token_id",
2678
+ "type": "core::felt252"
2679
+ },
2680
+ {
2681
+ "name": "player_address",
2682
+ "type": "core::starknet::contract_address::ContractAddress"
2683
+ },
2684
+ {
2685
+ "name": "qualification",
2686
+ "type": "core::array::Span::<core::felt252>"
2687
+ }
2688
+ ],
2689
+ "outputs": [],
2690
+ "state_mutability": "external"
2691
+ }
2692
+ ]
2693
+ },
2694
+ {
2695
+ "type": "impl",
2696
+ "name": "SRC5Impl",
2697
+ "interface_name": "openzeppelin_interfaces::introspection::ISRC5"
2698
+ },
2699
+ {
2700
+ "type": "interface",
2701
+ "name": "openzeppelin_interfaces::introspection::ISRC5",
2702
+ "items": [
2703
+ {
2704
+ "type": "function",
2705
+ "name": "supports_interface",
2706
+ "inputs": [
2707
+ {
2708
+ "name": "interface_id",
2709
+ "type": "core::felt252"
2710
+ }
2711
+ ],
2712
+ "outputs": [
2713
+ {
2714
+ "type": "core::bool"
2715
+ }
2716
+ ],
2717
+ "state_mutability": "view"
2718
+ }
2719
+ ]
2720
+ },
2721
+ {
2722
+ "type": "constructor",
2723
+ "name": "constructor",
2724
+ "inputs": []
2725
+ },
2726
+ {
2727
+ "type": "event",
2728
+ "name": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
2729
+ "kind": "enum",
2730
+ "variants": []
2731
+ },
2732
+ {
2733
+ "type": "event",
2734
+ "name": "openzeppelin_introspection::src5::SRC5Component::Event",
2735
+ "kind": "enum",
2736
+ "variants": []
2737
+ },
2738
+ {
2739
+ "type": "event",
2740
+ "name": "metagame_extensions_presets::entry_requirement::merkle_validator::MerkleValidator::TreeCreated",
2741
+ "kind": "struct",
2742
+ "members": [
2743
+ {
2744
+ "name": "tree_id",
2745
+ "type": "core::integer::u64",
2746
+ "kind": "key"
2747
+ },
2748
+ {
2749
+ "name": "owner",
2750
+ "type": "core::starknet::contract_address::ContractAddress",
2751
+ "kind": "key"
2752
+ },
2753
+ {
2754
+ "name": "root",
2755
+ "type": "core::felt252",
2756
+ "kind": "data"
2757
+ }
2758
+ ]
2759
+ },
2760
+ {
2761
+ "type": "event",
2762
+ "name": "metagame_extensions_presets::entry_requirement::merkle_validator::MerkleValidator::Event",
2763
+ "kind": "enum",
2764
+ "variants": [
2765
+ {
2766
+ "name": "EntryValidatorEvent",
2767
+ "type": "metagame_extensions_entry_requirement::entry_requirement_extension_component::EntryRequirementExtensionComponent::Event",
2768
+ "kind": "flat"
2769
+ },
2770
+ {
2771
+ "name": "SRC5Event",
2772
+ "type": "openzeppelin_introspection::src5::SRC5Component::Event",
2773
+ "kind": "flat"
2774
+ },
2775
+ {
2776
+ "name": "TreeCreated",
2777
+ "type": "metagame_extensions_presets::entry_requirement::merkle_validator::MerkleValidator::TreeCreated",
2778
+ "kind": "nested"
2779
+ }
2780
+ ]
2781
+ }
2782
+ ];
2783
+
2784
+ export { ERC20_BALANCE_VALIDATOR_ABI, GOVERNANCE_VALIDATOR_ABI, MERKLE_VALIDATOR_ABI, OPUS_TROVES_VALIDATOR_ABI, SNAPSHOT_VALIDATOR_ABI, TOURNAMENT_VALIDATOR_ABI, ZK_PASSPORT_VALIDATOR_ABI };
2785
+ //# sourceMappingURL=abis.js.map
2786
+ //# sourceMappingURL=abis.js.map