@provable-games/metagame-sdk 0.1.3 → 0.1.5

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