@peeramid-labs/sdk 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/cli/abis/ArguableVotingTournament.js +13 -2
  2. package/cli/abis/ArguableVotingTournament.js.map +1 -1
  3. package/cli/abis/EIP712InspectorFacet.js +10 -0
  4. package/cli/abis/EIP712InspectorFacet.js.map +1 -1
  5. package/cli/abis/IRankifyInstance.js +31 -0
  6. package/cli/abis/IRankifyInstance.js.map +1 -1
  7. package/cli/abis/MAODistribution.js +23 -12
  8. package/cli/abis/MAODistribution.js.map +1 -1
  9. package/cli/abis/RankifyDiamondInstance.js +282 -163
  10. package/cli/abis/RankifyDiamondInstance.js.map +1 -1
  11. package/cli/abis/RankifyInstanceInit.js +10 -0
  12. package/cli/abis/RankifyInstanceInit.js.map +1 -1
  13. package/cli/abis/RankifyInstanceMainFacet.js +59 -163
  14. package/cli/abis/RankifyInstanceMainFacet.js.map +1 -1
  15. package/cli/abis/RankifyInstanceRequirementsFacet.js +213 -0
  16. package/cli/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
  17. package/cli/abis/ShortStrings.js +23 -0
  18. package/cli/abis/ShortStrings.js.map +1 -0
  19. package/cli/abis/index.js +5 -1
  20. package/cli/abis/index.js.map +1 -1
  21. package/cli/cli/client.js +23 -1
  22. package/cli/cli/client.js.map +1 -1
  23. package/cli/cli/commands/distributions/add.js +1 -1
  24. package/cli/cli/commands/distributions/add.js.map +1 -1
  25. package/cli/cli/commands/distributions/list.js +1 -1
  26. package/cli/cli/commands/distributions/list.js.map +1 -1
  27. package/cli/cli/commands/distributions/state.js +1 -1
  28. package/cli/cli/commands/distributions/state.js.map +1 -1
  29. package/cli/cli/commands/eds/index.js +2 -2
  30. package/cli/cli/commands/eds/index.js.map +1 -1
  31. package/cli/cli/commands/fellowship/create.js +1 -1
  32. package/cli/cli/commands/fellowship/create.js.map +1 -1
  33. package/cli/cli/commands/fellowship/eip712.js +46 -0
  34. package/cli/cli/commands/fellowship/eip712.js.map +1 -0
  35. package/cli/cli/commands/fellowship/games.js +34 -0
  36. package/cli/cli/commands/fellowship/games.js.map +1 -0
  37. package/cli/cli/commands/fellowship/index.js +10 -4
  38. package/cli/cli/commands/fellowship/index.js.map +1 -1
  39. package/cli/cli/commands/fellowship/list.js +36 -0
  40. package/cli/cli/commands/fellowship/list.js.map +1 -0
  41. package/cli/cli/commands/fellowship/metadata.js +1 -1
  42. package/cli/cli/commands/fellowship/metadata.js.map +1 -1
  43. package/cli/cli/commands/instances/list.js +5 -1
  44. package/cli/cli/commands/instances/list.js.map +1 -1
  45. package/cli/cli/commands/multipass/contract.js +1 -1
  46. package/cli/cli/commands/multipass/contract.js.map +1 -1
  47. package/cli/cli/commands/multipass/domain.js +6 -6
  48. package/cli/cli/commands/multipass/domain.js.map +1 -1
  49. package/cli/cli/commands/multipass/domains.js +2 -2
  50. package/cli/cli/commands/multipass/domains.js.map +1 -1
  51. package/cli/cli/commands/rankify/games.js +34 -0
  52. package/cli/cli/commands/rankify/games.js.map +1 -0
  53. package/cli/cli/index.js +1 -1
  54. package/cli/cli/index.js.map +1 -1
  55. package/cli/eds/Distributor.js +1 -1
  56. package/cli/eds/Distributor.js.map +1 -1
  57. package/cli/rankify/InstanceBase.js +524 -0
  58. package/cli/rankify/InstanceBase.js.map +1 -0
  59. package/cli/rankify/MAODistributor.js +1 -1
  60. package/cli/rankify/MAODistributor.js.map +1 -1
  61. package/docs/classes/GameMaster.md +51 -430
  62. package/docs/classes/InstanceBase.md +46 -18
  63. package/docs/classes/InstancePlayer.md +55 -17
  64. package/docs/classes/MAODistributorClient.md +2 -1
  65. package/docs/docs/classes/GameMaster.md +51 -430
  66. package/docs/docs/classes/InstanceBase.md +46 -18
  67. package/docs/docs/classes/InstancePlayer.md +55 -17
  68. package/docs/docs/classes/MAODistributorClient.md +2 -1
  69. package/docs/docs/index.md +10 -9
  70. package/docs/index.md +10 -9
  71. package/lib.commonjs/abis/ArguableVotingTournament.d.ts +10 -2
  72. package/lib.commonjs/abis/ArguableVotingTournament.d.ts.map +1 -1
  73. package/lib.commonjs/abis/ArguableVotingTournament.js +13 -2
  74. package/lib.commonjs/abis/ArguableVotingTournament.js.map +1 -1
  75. package/lib.commonjs/abis/EIP712InspectorFacet.d.ts +8 -0
  76. package/lib.commonjs/abis/EIP712InspectorFacet.d.ts.map +1 -1
  77. package/lib.commonjs/abis/EIP712InspectorFacet.js +10 -0
  78. package/lib.commonjs/abis/EIP712InspectorFacet.js.map +1 -1
  79. package/lib.commonjs/abis/IRankifyInstance.d.ts +25 -0
  80. package/lib.commonjs/abis/IRankifyInstance.d.ts.map +1 -1
  81. package/lib.commonjs/abis/IRankifyInstance.js +31 -0
  82. package/lib.commonjs/abis/IRankifyInstance.js.map +1 -1
  83. package/lib.commonjs/abis/MAODistribution.d.ts +18 -10
  84. package/lib.commonjs/abis/MAODistribution.d.ts.map +1 -1
  85. package/lib.commonjs/abis/MAODistribution.js +23 -12
  86. package/lib.commonjs/abis/MAODistribution.js.map +1 -1
  87. package/lib.commonjs/abis/RankifyDiamondInstance.d.ts +222 -128
  88. package/lib.commonjs/abis/RankifyDiamondInstance.d.ts.map +1 -1
  89. package/lib.commonjs/abis/RankifyDiamondInstance.js +282 -163
  90. package/lib.commonjs/abis/RankifyDiamondInstance.js.map +1 -1
  91. package/lib.commonjs/abis/RankifyInstanceInit.d.ts +8 -0
  92. package/lib.commonjs/abis/RankifyInstanceInit.d.ts.map +1 -1
  93. package/lib.commonjs/abis/RankifyInstanceInit.js +10 -0
  94. package/lib.commonjs/abis/RankifyInstanceInit.js.map +1 -1
  95. package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts +47 -128
  96. package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
  97. package/lib.commonjs/abis/RankifyInstanceMainFacet.js +59 -163
  98. package/lib.commonjs/abis/RankifyInstanceMainFacet.js.map +1 -1
  99. package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts +167 -0
  100. package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
  101. package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js +213 -0
  102. package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
  103. package/lib.commonjs/abis/ShortStrings.d.ts +15 -0
  104. package/lib.commonjs/abis/ShortStrings.d.ts.map +1 -0
  105. package/lib.commonjs/abis/ShortStrings.js +23 -0
  106. package/lib.commonjs/abis/ShortStrings.js.map +1 -0
  107. package/lib.commonjs/abis/index.d.ts +603 -352
  108. package/lib.commonjs/abis/index.d.ts.map +1 -1
  109. package/lib.commonjs/abis/index.js +5 -1
  110. package/lib.commonjs/abis/index.js.map +1 -1
  111. package/lib.commonjs/eds/Distributor.js +1 -1
  112. package/lib.commonjs/eds/Distributor.js.map +1 -1
  113. package/lib.commonjs/rankify/GameMaster.d.ts +49 -18
  114. package/lib.commonjs/rankify/GameMaster.d.ts.map +1 -1
  115. package/lib.commonjs/rankify/GameMaster.js +37 -39
  116. package/lib.commonjs/rankify/GameMaster.js.map +1 -1
  117. package/lib.commonjs/rankify/InstanceBase.d.ts +1813 -1173
  118. package/lib.commonjs/rankify/InstanceBase.d.ts.map +1 -1
  119. package/lib.commonjs/rankify/InstanceBase.js +100 -54
  120. package/lib.commonjs/rankify/InstanceBase.js.map +1 -1
  121. package/lib.commonjs/rankify/MAODistributor.d.ts +1 -0
  122. package/lib.commonjs/rankify/MAODistributor.d.ts.map +1 -1
  123. package/lib.commonjs/rankify/MAODistributor.js +1 -1
  124. package/lib.commonjs/rankify/MAODistributor.js.map +1 -1
  125. package/lib.esm/abis/ArguableVotingTournament.d.ts +10 -2
  126. package/lib.esm/abis/ArguableVotingTournament.d.ts.map +1 -1
  127. package/lib.esm/abis/ArguableVotingTournament.js +13 -2
  128. package/lib.esm/abis/ArguableVotingTournament.js.map +1 -1
  129. package/lib.esm/abis/EIP712InspectorFacet.d.ts +8 -0
  130. package/lib.esm/abis/EIP712InspectorFacet.d.ts.map +1 -1
  131. package/lib.esm/abis/EIP712InspectorFacet.js +10 -0
  132. package/lib.esm/abis/EIP712InspectorFacet.js.map +1 -1
  133. package/lib.esm/abis/IRankifyInstance.d.ts +25 -0
  134. package/lib.esm/abis/IRankifyInstance.d.ts.map +1 -1
  135. package/lib.esm/abis/IRankifyInstance.js +31 -0
  136. package/lib.esm/abis/IRankifyInstance.js.map +1 -1
  137. package/lib.esm/abis/MAODistribution.d.ts +18 -10
  138. package/lib.esm/abis/MAODistribution.d.ts.map +1 -1
  139. package/lib.esm/abis/MAODistribution.js +23 -12
  140. package/lib.esm/abis/MAODistribution.js.map +1 -1
  141. package/lib.esm/abis/RankifyDiamondInstance.d.ts +222 -128
  142. package/lib.esm/abis/RankifyDiamondInstance.d.ts.map +1 -1
  143. package/lib.esm/abis/RankifyDiamondInstance.js +282 -163
  144. package/lib.esm/abis/RankifyDiamondInstance.js.map +1 -1
  145. package/lib.esm/abis/RankifyInstanceInit.d.ts +8 -0
  146. package/lib.esm/abis/RankifyInstanceInit.d.ts.map +1 -1
  147. package/lib.esm/abis/RankifyInstanceInit.js +10 -0
  148. package/lib.esm/abis/RankifyInstanceInit.js.map +1 -1
  149. package/lib.esm/abis/RankifyInstanceMainFacet.d.ts +47 -128
  150. package/lib.esm/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
  151. package/lib.esm/abis/RankifyInstanceMainFacet.js +59 -163
  152. package/lib.esm/abis/RankifyInstanceMainFacet.js.map +1 -1
  153. package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts +167 -0
  154. package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
  155. package/lib.esm/abis/RankifyInstanceRequirementsFacet.js +213 -0
  156. package/lib.esm/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
  157. package/lib.esm/abis/ShortStrings.d.ts +15 -0
  158. package/lib.esm/abis/ShortStrings.d.ts.map +1 -0
  159. package/lib.esm/abis/ShortStrings.js +20 -0
  160. package/lib.esm/abis/ShortStrings.js.map +1 -0
  161. package/lib.esm/abis/index.d.ts +603 -352
  162. package/lib.esm/abis/index.d.ts.map +1 -1
  163. package/lib.esm/abis/index.js +3 -0
  164. package/lib.esm/abis/index.js.map +1 -1
  165. package/lib.esm/eds/Distributor.js +1 -1
  166. package/lib.esm/eds/Distributor.js.map +1 -1
  167. package/lib.esm/rankify/GameMaster.d.ts +49 -18
  168. package/lib.esm/rankify/GameMaster.d.ts.map +1 -1
  169. package/lib.esm/rankify/GameMaster.js +37 -39
  170. package/lib.esm/rankify/GameMaster.js.map +1 -1
  171. package/lib.esm/rankify/InstanceBase.d.ts +1813 -1173
  172. package/lib.esm/rankify/InstanceBase.d.ts.map +1 -1
  173. package/lib.esm/rankify/InstanceBase.js +100 -54
  174. package/lib.esm/rankify/InstanceBase.js.map +1 -1
  175. package/lib.esm/rankify/MAODistributor.d.ts +1 -0
  176. package/lib.esm/rankify/MAODistributor.d.ts.map +1 -1
  177. package/lib.esm/rankify/MAODistributor.js +1 -1
  178. package/lib.esm/rankify/MAODistributor.js.map +1 -1
  179. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { Address, PublicClient, type GetContractReturnType, type Block } from "viem";
1
+ import { Address, PublicClient, type GetContractReturnType, type Block, ContractFunctionReturnType } from "viem";
2
2
  import instanceAbi from "../abis/RankifyDiamondInstance";
3
3
  /**
4
4
  * Enum representing different states of a game instance
@@ -20,6 +20,16 @@ export declare enum gameStatusEnum {
20
20
  /** Game was not found */
21
21
  notFound = "not found"
22
22
  }
23
+ interface GameState extends ContractFunctionReturnType<typeof instanceAbi, "view", "getGameState"> {
24
+ joinRequirements: ContractFunctionReturnType<typeof instanceAbi, "view", "getJoinRequirements">;
25
+ requirementsPerContract: ContractFunctionReturnType<typeof instanceAbi, "view", "getJoinRequirementsByToken">[];
26
+ scores: readonly [readonly `0x${string}`[], readonly bigint[]];
27
+ isLastTurn: boolean;
28
+ isOpen: boolean;
29
+ canStart: boolean;
30
+ gamePhase: gameStatusEnum;
31
+ currentPhaseTimeoutAt: bigint;
32
+ }
23
33
  /**
24
34
  * Base class for interacting with a Rankify game instance
25
35
  * Provides core functionality for managing game state and interactions
@@ -87,6 +97,14 @@ export default class InstanceBase {
87
97
  readonly internalType: "bytes32";
88
98
  readonly name: "_TYPE_HASH";
89
99
  readonly type: "bytes32";
100
+ }, {
101
+ readonly internalType: "string";
102
+ readonly name: "_NAME";
103
+ readonly type: "string";
104
+ }, {
105
+ readonly internalType: "string";
106
+ readonly name: "_VERSION";
107
+ readonly type: "string";
90
108
  }];
91
109
  readonly stateMutability: "view";
92
110
  readonly type: "function";
@@ -428,6 +446,31 @@ export default class InstanceBase {
428
446
  }];
429
447
  readonly name: "PlayerLeft";
430
448
  readonly type: "event";
449
+ }, {
450
+ readonly anonymous: false;
451
+ readonly inputs: readonly [{
452
+ readonly indexed: true;
453
+ readonly internalType: "address";
454
+ readonly name: "player";
455
+ readonly type: "address";
456
+ }, {
457
+ readonly indexed: false;
458
+ readonly internalType: "uint256";
459
+ readonly name: "rankId";
460
+ readonly type: "uint256";
461
+ }, {
462
+ readonly indexed: false;
463
+ readonly internalType: "uint256";
464
+ readonly name: "amount";
465
+ readonly type: "uint256";
466
+ }, {
467
+ readonly indexed: false;
468
+ readonly internalType: "uint256";
469
+ readonly name: "_toMint";
470
+ readonly type: "uint256";
471
+ }];
472
+ readonly name: "RankTokenExited";
473
+ readonly type: "event";
431
474
  }, {
432
475
  readonly anonymous: false;
433
476
  readonly inputs: readonly [{
@@ -562,6 +605,20 @@ export default class InstanceBase {
562
605
  }];
563
606
  readonly stateMutability: "pure";
564
607
  readonly type: "function";
608
+ }, {
609
+ readonly inputs: readonly [{
610
+ readonly internalType: "uint256";
611
+ readonly name: "rankId";
612
+ readonly type: "uint256";
613
+ }, {
614
+ readonly internalType: "uint256";
615
+ readonly name: "amount";
616
+ readonly type: "uint256";
617
+ }];
618
+ readonly name: "exitRankToken";
619
+ readonly outputs: readonly [];
620
+ readonly stateMutability: "nonpayable";
621
+ readonly type: "function";
565
622
  }, {
566
623
  readonly inputs: readonly [{
567
624
  readonly internalType: "uint256";
@@ -609,6 +666,14 @@ export default class InstanceBase {
609
666
  readonly internalType: "address";
610
667
  readonly name: "beneficiary";
611
668
  readonly type: "address";
669
+ }, {
670
+ readonly internalType: "uint256";
671
+ readonly name: "minimumParticipantsInCircle";
672
+ readonly type: "uint256";
673
+ }, {
674
+ readonly internalType: "address";
675
+ readonly name: "derivedToken";
676
+ readonly type: "address";
612
677
  }];
613
678
  readonly internalType: "struct LibRankify.CommonParams";
614
679
  readonly name: "commonParams";
@@ -648,134 +713,6 @@ export default class InstanceBase {
648
713
  }];
649
714
  readonly stateMutability: "view";
650
715
  readonly type: "function";
651
- }, {
652
- readonly inputs: readonly [{
653
- readonly internalType: "uint256";
654
- readonly name: "gameId";
655
- readonly type: "uint256";
656
- }];
657
- readonly name: "getGameState";
658
- readonly outputs: readonly [{
659
- readonly components: readonly [{
660
- readonly internalType: "uint256";
661
- readonly name: "rank";
662
- readonly type: "uint256";
663
- }, {
664
- readonly internalType: "uint256";
665
- readonly name: "minGameTime";
666
- readonly type: "uint256";
667
- }, {
668
- readonly internalType: "address";
669
- readonly name: "createdBy";
670
- readonly type: "address";
671
- }, {
672
- readonly internalType: "uint256";
673
- readonly name: "numOngoingProposals";
674
- readonly type: "uint256";
675
- }, {
676
- readonly internalType: "uint256";
677
- readonly name: "numPrevProposals";
678
- readonly type: "uint256";
679
- }, {
680
- readonly internalType: "uint256";
681
- readonly name: "numCommitments";
682
- readonly type: "uint256";
683
- }, {
684
- readonly internalType: "uint256";
685
- readonly name: "numVotesThisTurn";
686
- readonly type: "uint256";
687
- }, {
688
- readonly internalType: "uint256";
689
- readonly name: "numVotesPrevTurn";
690
- readonly type: "uint256";
691
- }, {
692
- readonly components: readonly [{
693
- readonly internalType: "uint256";
694
- readonly name: "voteCredits";
695
- readonly type: "uint256";
696
- }, {
697
- readonly internalType: "uint256";
698
- readonly name: "maxQuadraticPoints";
699
- readonly type: "uint256";
700
- }, {
701
- readonly internalType: "uint256";
702
- readonly name: "minQuadraticPositions";
703
- readonly type: "uint256";
704
- }];
705
- readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
706
- readonly name: "voting";
707
- readonly type: "tuple";
708
- }, {
709
- readonly internalType: "uint256";
710
- readonly name: "currentTurn";
711
- readonly type: "uint256";
712
- }, {
713
- readonly internalType: "uint256";
714
- readonly name: "turnStartedAt";
715
- readonly type: "uint256";
716
- }, {
717
- readonly internalType: "uint256";
718
- readonly name: "registrationOpenAt";
719
- readonly type: "uint256";
720
- }, {
721
- readonly internalType: "uint256";
722
- readonly name: "startedAt";
723
- readonly type: "uint256";
724
- }, {
725
- readonly internalType: "bool";
726
- readonly name: "hasStarted";
727
- readonly type: "bool";
728
- }, {
729
- readonly internalType: "bool";
730
- readonly name: "hasEnded";
731
- readonly type: "bool";
732
- }, {
733
- readonly internalType: "uint256";
734
- readonly name: "numPlayersMadeMove";
735
- readonly type: "uint256";
736
- }, {
737
- readonly internalType: "uint256";
738
- readonly name: "numActivePlayers";
739
- readonly type: "uint256";
740
- }, {
741
- readonly internalType: "bool";
742
- readonly name: "isOvertime";
743
- readonly type: "bool";
744
- }, {
745
- readonly internalType: "uint256";
746
- readonly name: "timePerTurn";
747
- readonly type: "uint256";
748
- }, {
749
- readonly internalType: "uint256";
750
- readonly name: "maxPlayerCnt";
751
- readonly type: "uint256";
752
- }, {
753
- readonly internalType: "uint256";
754
- readonly name: "minPlayerCnt";
755
- readonly type: "uint256";
756
- }, {
757
- readonly internalType: "uint256";
758
- readonly name: "timeToJoin";
759
- readonly type: "uint256";
760
- }, {
761
- readonly internalType: "uint256";
762
- readonly name: "maxTurns";
763
- readonly type: "uint256";
764
- }, {
765
- readonly internalType: "uint256";
766
- readonly name: "voteCredits";
767
- readonly type: "uint256";
768
- }, {
769
- readonly internalType: "address";
770
- readonly name: "gameMaster";
771
- readonly type: "address";
772
- }];
773
- readonly internalType: "struct IRankifyInstance.GameStateOutput";
774
- readonly name: "state";
775
- readonly type: "tuple";
776
- }];
777
- readonly stateMutability: "view";
778
- readonly type: "function";
779
716
  }, {
780
717
  readonly inputs: readonly [{
781
718
  readonly internalType: "uint256";
@@ -1215,68 +1152,39 @@ export default class InstanceBase {
1215
1152
  readonly name: "RequirementsConfigured";
1216
1153
  readonly type: "event";
1217
1154
  }, {
1218
- readonly inputs: readonly [{
1219
- readonly internalType: "uint256";
1220
- readonly name: "gameId";
1221
- readonly type: "uint256";
1222
- }];
1223
- readonly name: "getJoinRequirements";
1155
+ readonly inputs: readonly [];
1156
+ readonly name: "getCommonParams";
1224
1157
  readonly outputs: readonly [{
1225
1158
  readonly components: readonly [{
1226
- readonly components: readonly [{
1227
- readonly internalType: "uint256";
1228
- readonly name: "have";
1229
- readonly type: "uint256";
1230
- }, {
1231
- readonly internalType: "uint256";
1232
- readonly name: "lock";
1233
- readonly type: "uint256";
1234
- }, {
1235
- readonly internalType: "uint256";
1236
- readonly name: "burn";
1237
- readonly type: "uint256";
1238
- }, {
1239
- readonly internalType: "uint256";
1240
- readonly name: "pay";
1241
- readonly type: "uint256";
1242
- }, {
1243
- readonly internalType: "uint256";
1244
- readonly name: "bet";
1245
- readonly type: "uint256";
1246
- }];
1247
- readonly internalType: "struct LibCoinVending.NumericCondition";
1248
- readonly name: "ethValues";
1249
- readonly type: "tuple";
1250
- }, {
1251
1159
  readonly internalType: "uint256";
1252
- readonly name: "timesRefunded";
1160
+ readonly name: "principalCost";
1253
1161
  readonly type: "uint256";
1254
1162
  }, {
1255
- readonly internalType: "uint256";
1256
- readonly name: "timesReleased";
1257
- readonly type: "uint256";
1163
+ readonly internalType: "uint96";
1164
+ readonly name: "principalTimeConstant";
1165
+ readonly type: "uint96";
1258
1166
  }, {
1259
- readonly internalType: "uint256";
1260
- readonly name: "timesFunded";
1261
- readonly type: "uint256";
1167
+ readonly internalType: "address";
1168
+ readonly name: "gamePaymentToken";
1169
+ readonly type: "address";
1262
1170
  }, {
1263
- readonly internalType: "address[]";
1264
- readonly name: "contractAddresses";
1265
- readonly type: "address[]";
1171
+ readonly internalType: "address";
1172
+ readonly name: "rankTokenAddress";
1173
+ readonly type: "address";
1266
1174
  }, {
1267
- readonly internalType: "uint256[]";
1268
- readonly name: "contractIds";
1269
- readonly type: "uint256[]";
1175
+ readonly internalType: "address";
1176
+ readonly name: "beneficiary";
1177
+ readonly type: "address";
1270
1178
  }, {
1271
- readonly internalType: "enum LibCoinVending.ContractTypes[]";
1272
- readonly name: "contractTypes";
1273
- readonly type: "uint8[]";
1179
+ readonly internalType: "uint256";
1180
+ readonly name: "minimumParticipantsInCircle";
1181
+ readonly type: "uint256";
1274
1182
  }, {
1275
- readonly internalType: "bool";
1276
- readonly name: "_isConfigured";
1277
- readonly type: "bool";
1183
+ readonly internalType: "address";
1184
+ readonly name: "derivedToken";
1185
+ readonly type: "address";
1278
1186
  }];
1279
- readonly internalType: "struct LibCoinVending.ConditionReturn";
1187
+ readonly internalType: "struct LibRankify.CommonParams";
1280
1188
  readonly name: "";
1281
1189
  readonly type: "tuple";
1282
1190
  }];
@@ -1287,27 +1195,223 @@ export default class InstanceBase {
1287
1195
  readonly internalType: "uint256";
1288
1196
  readonly name: "gameId";
1289
1197
  readonly type: "uint256";
1290
- }, {
1291
- readonly internalType: "address";
1292
- readonly name: "contractAddress";
1293
- readonly type: "address";
1294
- }, {
1295
- readonly internalType: "uint256";
1296
- readonly name: "contractId";
1297
- readonly type: "uint256";
1298
- }, {
1299
- readonly internalType: "enum LibCoinVending.ContractTypes";
1300
- readonly name: "contractType";
1301
- readonly type: "uint8";
1302
1198
  }];
1303
- readonly name: "getJoinRequirementsByToken";
1199
+ readonly name: "getGameState";
1304
1200
  readonly outputs: readonly [{
1305
1201
  readonly components: readonly [{
1306
- readonly components: readonly [{
1307
- readonly internalType: "bytes";
1308
- readonly name: "data";
1309
- readonly type: "bytes";
1310
- }, {
1202
+ readonly internalType: "uint256";
1203
+ readonly name: "rank";
1204
+ readonly type: "uint256";
1205
+ }, {
1206
+ readonly internalType: "uint256";
1207
+ readonly name: "minGameTime";
1208
+ readonly type: "uint256";
1209
+ }, {
1210
+ readonly internalType: "address";
1211
+ readonly name: "createdBy";
1212
+ readonly type: "address";
1213
+ }, {
1214
+ readonly internalType: "uint256";
1215
+ readonly name: "numOngoingProposals";
1216
+ readonly type: "uint256";
1217
+ }, {
1218
+ readonly internalType: "uint256";
1219
+ readonly name: "numPrevProposals";
1220
+ readonly type: "uint256";
1221
+ }, {
1222
+ readonly internalType: "uint256";
1223
+ readonly name: "numCommitments";
1224
+ readonly type: "uint256";
1225
+ }, {
1226
+ readonly internalType: "uint256";
1227
+ readonly name: "numVotesThisTurn";
1228
+ readonly type: "uint256";
1229
+ }, {
1230
+ readonly internalType: "uint256";
1231
+ readonly name: "numVotesPrevTurn";
1232
+ readonly type: "uint256";
1233
+ }, {
1234
+ readonly components: readonly [{
1235
+ readonly internalType: "uint256";
1236
+ readonly name: "voteCredits";
1237
+ readonly type: "uint256";
1238
+ }, {
1239
+ readonly internalType: "uint256";
1240
+ readonly name: "maxQuadraticPoints";
1241
+ readonly type: "uint256";
1242
+ }, {
1243
+ readonly internalType: "uint256";
1244
+ readonly name: "minQuadraticPositions";
1245
+ readonly type: "uint256";
1246
+ }];
1247
+ readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
1248
+ readonly name: "voting";
1249
+ readonly type: "tuple";
1250
+ }, {
1251
+ readonly internalType: "uint256";
1252
+ readonly name: "currentTurn";
1253
+ readonly type: "uint256";
1254
+ }, {
1255
+ readonly internalType: "uint256";
1256
+ readonly name: "turnStartedAt";
1257
+ readonly type: "uint256";
1258
+ }, {
1259
+ readonly internalType: "uint256";
1260
+ readonly name: "registrationOpenAt";
1261
+ readonly type: "uint256";
1262
+ }, {
1263
+ readonly internalType: "uint256";
1264
+ readonly name: "startedAt";
1265
+ readonly type: "uint256";
1266
+ }, {
1267
+ readonly internalType: "bool";
1268
+ readonly name: "hasStarted";
1269
+ readonly type: "bool";
1270
+ }, {
1271
+ readonly internalType: "bool";
1272
+ readonly name: "hasEnded";
1273
+ readonly type: "bool";
1274
+ }, {
1275
+ readonly internalType: "uint256";
1276
+ readonly name: "numPlayersMadeMove";
1277
+ readonly type: "uint256";
1278
+ }, {
1279
+ readonly internalType: "uint256";
1280
+ readonly name: "numActivePlayers";
1281
+ readonly type: "uint256";
1282
+ }, {
1283
+ readonly internalType: "bool";
1284
+ readonly name: "isOvertime";
1285
+ readonly type: "bool";
1286
+ }, {
1287
+ readonly internalType: "uint256";
1288
+ readonly name: "timePerTurn";
1289
+ readonly type: "uint256";
1290
+ }, {
1291
+ readonly internalType: "uint256";
1292
+ readonly name: "maxPlayerCnt";
1293
+ readonly type: "uint256";
1294
+ }, {
1295
+ readonly internalType: "uint256";
1296
+ readonly name: "minPlayerCnt";
1297
+ readonly type: "uint256";
1298
+ }, {
1299
+ readonly internalType: "uint256";
1300
+ readonly name: "timeToJoin";
1301
+ readonly type: "uint256";
1302
+ }, {
1303
+ readonly internalType: "uint256";
1304
+ readonly name: "maxTurns";
1305
+ readonly type: "uint256";
1306
+ }, {
1307
+ readonly internalType: "uint256";
1308
+ readonly name: "voteCredits";
1309
+ readonly type: "uint256";
1310
+ }, {
1311
+ readonly internalType: "address";
1312
+ readonly name: "gameMaster";
1313
+ readonly type: "address";
1314
+ }];
1315
+ readonly internalType: "struct IRankifyInstance.GameStateOutput";
1316
+ readonly name: "state";
1317
+ readonly type: "tuple";
1318
+ }];
1319
+ readonly stateMutability: "view";
1320
+ readonly type: "function";
1321
+ }, {
1322
+ readonly inputs: readonly [{
1323
+ readonly internalType: "uint256";
1324
+ readonly name: "gameId";
1325
+ readonly type: "uint256";
1326
+ }];
1327
+ readonly name: "getJoinRequirements";
1328
+ readonly outputs: readonly [{
1329
+ readonly components: readonly [{
1330
+ readonly components: readonly [{
1331
+ readonly internalType: "uint256";
1332
+ readonly name: "have";
1333
+ readonly type: "uint256";
1334
+ }, {
1335
+ readonly internalType: "uint256";
1336
+ readonly name: "lock";
1337
+ readonly type: "uint256";
1338
+ }, {
1339
+ readonly internalType: "uint256";
1340
+ readonly name: "burn";
1341
+ readonly type: "uint256";
1342
+ }, {
1343
+ readonly internalType: "uint256";
1344
+ readonly name: "pay";
1345
+ readonly type: "uint256";
1346
+ }, {
1347
+ readonly internalType: "uint256";
1348
+ readonly name: "bet";
1349
+ readonly type: "uint256";
1350
+ }];
1351
+ readonly internalType: "struct LibCoinVending.NumericCondition";
1352
+ readonly name: "ethValues";
1353
+ readonly type: "tuple";
1354
+ }, {
1355
+ readonly internalType: "uint256";
1356
+ readonly name: "timesRefunded";
1357
+ readonly type: "uint256";
1358
+ }, {
1359
+ readonly internalType: "uint256";
1360
+ readonly name: "timesReleased";
1361
+ readonly type: "uint256";
1362
+ }, {
1363
+ readonly internalType: "uint256";
1364
+ readonly name: "timesFunded";
1365
+ readonly type: "uint256";
1366
+ }, {
1367
+ readonly internalType: "address[]";
1368
+ readonly name: "contractAddresses";
1369
+ readonly type: "address[]";
1370
+ }, {
1371
+ readonly internalType: "uint256[]";
1372
+ readonly name: "contractIds";
1373
+ readonly type: "uint256[]";
1374
+ }, {
1375
+ readonly internalType: "enum LibCoinVending.ContractTypes[]";
1376
+ readonly name: "contractTypes";
1377
+ readonly type: "uint8[]";
1378
+ }, {
1379
+ readonly internalType: "bool";
1380
+ readonly name: "_isConfigured";
1381
+ readonly type: "bool";
1382
+ }];
1383
+ readonly internalType: "struct LibCoinVending.ConditionReturn";
1384
+ readonly name: "";
1385
+ readonly type: "tuple";
1386
+ }];
1387
+ readonly stateMutability: "view";
1388
+ readonly type: "function";
1389
+ }, {
1390
+ readonly inputs: readonly [{
1391
+ readonly internalType: "uint256";
1392
+ readonly name: "gameId";
1393
+ readonly type: "uint256";
1394
+ }, {
1395
+ readonly internalType: "address";
1396
+ readonly name: "contractAddress";
1397
+ readonly type: "address";
1398
+ }, {
1399
+ readonly internalType: "uint256";
1400
+ readonly name: "contractId";
1401
+ readonly type: "uint256";
1402
+ }, {
1403
+ readonly internalType: "enum LibCoinVending.ContractTypes";
1404
+ readonly name: "contractType";
1405
+ readonly type: "uint8";
1406
+ }];
1407
+ readonly name: "getJoinRequirementsByToken";
1408
+ readonly outputs: readonly [{
1409
+ readonly components: readonly [{
1410
+ readonly components: readonly [{
1411
+ readonly internalType: "bytes";
1412
+ readonly name: "data";
1413
+ readonly type: "bytes";
1414
+ }, {
1311
1415
  readonly internalType: "uint256";
1312
1416
  readonly name: "amount";
1313
1417
  readonly type: "uint256";
@@ -1651,6 +1755,14 @@ export default class InstanceBase {
1651
1755
  readonly internalType: "bytes32";
1652
1756
  readonly name: "_TYPE_HASH";
1653
1757
  readonly type: "bytes32";
1758
+ }, {
1759
+ readonly internalType: "string";
1760
+ readonly name: "_NAME";
1761
+ readonly type: "string";
1762
+ }, {
1763
+ readonly internalType: "string";
1764
+ readonly name: "_VERSION";
1765
+ readonly type: "string";
1654
1766
  }];
1655
1767
  readonly stateMutability: "view";
1656
1768
  readonly type: "function";
@@ -1992,6 +2104,31 @@ export default class InstanceBase {
1992
2104
  }];
1993
2105
  readonly name: "PlayerLeft";
1994
2106
  readonly type: "event";
2107
+ }, {
2108
+ readonly anonymous: false;
2109
+ readonly inputs: readonly [{
2110
+ readonly indexed: true;
2111
+ readonly internalType: "address";
2112
+ readonly name: "player";
2113
+ readonly type: "address";
2114
+ }, {
2115
+ readonly indexed: false;
2116
+ readonly internalType: "uint256";
2117
+ readonly name: "rankId";
2118
+ readonly type: "uint256";
2119
+ }, {
2120
+ readonly indexed: false;
2121
+ readonly internalType: "uint256";
2122
+ readonly name: "amount";
2123
+ readonly type: "uint256";
2124
+ }, {
2125
+ readonly indexed: false;
2126
+ readonly internalType: "uint256";
2127
+ readonly name: "_toMint";
2128
+ readonly type: "uint256";
2129
+ }];
2130
+ readonly name: "RankTokenExited";
2131
+ readonly type: "event";
1995
2132
  }, {
1996
2133
  readonly anonymous: false;
1997
2134
  readonly inputs: readonly [{
@@ -2126,6 +2263,20 @@ export default class InstanceBase {
2126
2263
  }];
2127
2264
  readonly stateMutability: "pure";
2128
2265
  readonly type: "function";
2266
+ }, {
2267
+ readonly inputs: readonly [{
2268
+ readonly internalType: "uint256";
2269
+ readonly name: "rankId";
2270
+ readonly type: "uint256";
2271
+ }, {
2272
+ readonly internalType: "uint256";
2273
+ readonly name: "amount";
2274
+ readonly type: "uint256";
2275
+ }];
2276
+ readonly name: "exitRankToken";
2277
+ readonly outputs: readonly [];
2278
+ readonly stateMutability: "nonpayable";
2279
+ readonly type: "function";
2129
2280
  }, {
2130
2281
  readonly inputs: readonly [{
2131
2282
  readonly internalType: "uint256";
@@ -2173,11 +2324,19 @@ export default class InstanceBase {
2173
2324
  readonly internalType: "address";
2174
2325
  readonly name: "beneficiary";
2175
2326
  readonly type: "address";
2176
- }];
2177
- readonly internalType: "struct LibRankify.CommonParams";
2178
- readonly name: "commonParams";
2179
- readonly type: "tuple";
2180
- }];
2327
+ }, {
2328
+ readonly internalType: "uint256";
2329
+ readonly name: "minimumParticipantsInCircle";
2330
+ readonly type: "uint256";
2331
+ }, {
2332
+ readonly internalType: "address";
2333
+ readonly name: "derivedToken";
2334
+ readonly type: "address";
2335
+ }];
2336
+ readonly internalType: "struct LibRankify.CommonParams";
2337
+ readonly name: "commonParams";
2338
+ readonly type: "tuple";
2339
+ }];
2181
2340
  readonly internalType: "struct LibRankify.InstanceState";
2182
2341
  readonly name: "";
2183
2342
  readonly type: "tuple";
@@ -2212,134 +2371,6 @@ export default class InstanceBase {
2212
2371
  }];
2213
2372
  readonly stateMutability: "view";
2214
2373
  readonly type: "function";
2215
- }, {
2216
- readonly inputs: readonly [{
2217
- readonly internalType: "uint256";
2218
- readonly name: "gameId";
2219
- readonly type: "uint256";
2220
- }];
2221
- readonly name: "getGameState";
2222
- readonly outputs: readonly [{
2223
- readonly components: readonly [{
2224
- readonly internalType: "uint256";
2225
- readonly name: "rank";
2226
- readonly type: "uint256";
2227
- }, {
2228
- readonly internalType: "uint256";
2229
- readonly name: "minGameTime";
2230
- readonly type: "uint256";
2231
- }, {
2232
- readonly internalType: "address";
2233
- readonly name: "createdBy";
2234
- readonly type: "address";
2235
- }, {
2236
- readonly internalType: "uint256";
2237
- readonly name: "numOngoingProposals";
2238
- readonly type: "uint256";
2239
- }, {
2240
- readonly internalType: "uint256";
2241
- readonly name: "numPrevProposals";
2242
- readonly type: "uint256";
2243
- }, {
2244
- readonly internalType: "uint256";
2245
- readonly name: "numCommitments";
2246
- readonly type: "uint256";
2247
- }, {
2248
- readonly internalType: "uint256";
2249
- readonly name: "numVotesThisTurn";
2250
- readonly type: "uint256";
2251
- }, {
2252
- readonly internalType: "uint256";
2253
- readonly name: "numVotesPrevTurn";
2254
- readonly type: "uint256";
2255
- }, {
2256
- readonly components: readonly [{
2257
- readonly internalType: "uint256";
2258
- readonly name: "voteCredits";
2259
- readonly type: "uint256";
2260
- }, {
2261
- readonly internalType: "uint256";
2262
- readonly name: "maxQuadraticPoints";
2263
- readonly type: "uint256";
2264
- }, {
2265
- readonly internalType: "uint256";
2266
- readonly name: "minQuadraticPositions";
2267
- readonly type: "uint256";
2268
- }];
2269
- readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
2270
- readonly name: "voting";
2271
- readonly type: "tuple";
2272
- }, {
2273
- readonly internalType: "uint256";
2274
- readonly name: "currentTurn";
2275
- readonly type: "uint256";
2276
- }, {
2277
- readonly internalType: "uint256";
2278
- readonly name: "turnStartedAt";
2279
- readonly type: "uint256";
2280
- }, {
2281
- readonly internalType: "uint256";
2282
- readonly name: "registrationOpenAt";
2283
- readonly type: "uint256";
2284
- }, {
2285
- readonly internalType: "uint256";
2286
- readonly name: "startedAt";
2287
- readonly type: "uint256";
2288
- }, {
2289
- readonly internalType: "bool";
2290
- readonly name: "hasStarted";
2291
- readonly type: "bool";
2292
- }, {
2293
- readonly internalType: "bool";
2294
- readonly name: "hasEnded";
2295
- readonly type: "bool";
2296
- }, {
2297
- readonly internalType: "uint256";
2298
- readonly name: "numPlayersMadeMove";
2299
- readonly type: "uint256";
2300
- }, {
2301
- readonly internalType: "uint256";
2302
- readonly name: "numActivePlayers";
2303
- readonly type: "uint256";
2304
- }, {
2305
- readonly internalType: "bool";
2306
- readonly name: "isOvertime";
2307
- readonly type: "bool";
2308
- }, {
2309
- readonly internalType: "uint256";
2310
- readonly name: "timePerTurn";
2311
- readonly type: "uint256";
2312
- }, {
2313
- readonly internalType: "uint256";
2314
- readonly name: "maxPlayerCnt";
2315
- readonly type: "uint256";
2316
- }, {
2317
- readonly internalType: "uint256";
2318
- readonly name: "minPlayerCnt";
2319
- readonly type: "uint256";
2320
- }, {
2321
- readonly internalType: "uint256";
2322
- readonly name: "timeToJoin";
2323
- readonly type: "uint256";
2324
- }, {
2325
- readonly internalType: "uint256";
2326
- readonly name: "maxTurns";
2327
- readonly type: "uint256";
2328
- }, {
2329
- readonly internalType: "uint256";
2330
- readonly name: "voteCredits";
2331
- readonly type: "uint256";
2332
- }, {
2333
- readonly internalType: "address";
2334
- readonly name: "gameMaster";
2335
- readonly type: "address";
2336
- }];
2337
- readonly internalType: "struct IRankifyInstance.GameStateOutput";
2338
- readonly name: "state";
2339
- readonly type: "tuple";
2340
- }];
2341
- readonly stateMutability: "view";
2342
- readonly type: "function";
2343
2374
  }, {
2344
2375
  readonly inputs: readonly [{
2345
2376
  readonly internalType: "uint256";
@@ -2778,68 +2809,235 @@ export default class InstanceBase {
2778
2809
  }];
2779
2810
  readonly name: "RequirementsConfigured";
2780
2811
  readonly type: "event";
2812
+ }, {
2813
+ readonly inputs: readonly [];
2814
+ readonly name: "getCommonParams";
2815
+ readonly outputs: readonly [{
2816
+ readonly components: readonly [{
2817
+ readonly internalType: "uint256";
2818
+ readonly name: "principalCost";
2819
+ readonly type: "uint256";
2820
+ }, {
2821
+ readonly internalType: "uint96";
2822
+ readonly name: "principalTimeConstant";
2823
+ readonly type: "uint96";
2824
+ }, {
2825
+ readonly internalType: "address";
2826
+ readonly name: "gamePaymentToken";
2827
+ readonly type: "address";
2828
+ }, {
2829
+ readonly internalType: "address";
2830
+ readonly name: "rankTokenAddress";
2831
+ readonly type: "address";
2832
+ }, {
2833
+ readonly internalType: "address";
2834
+ readonly name: "beneficiary";
2835
+ readonly type: "address";
2836
+ }, {
2837
+ readonly internalType: "uint256";
2838
+ readonly name: "minimumParticipantsInCircle";
2839
+ readonly type: "uint256";
2840
+ }, {
2841
+ readonly internalType: "address";
2842
+ readonly name: "derivedToken";
2843
+ readonly type: "address";
2844
+ }];
2845
+ readonly internalType: "struct LibRankify.CommonParams";
2846
+ readonly name: "";
2847
+ readonly type: "tuple";
2848
+ }];
2849
+ readonly stateMutability: "view";
2850
+ readonly type: "function";
2781
2851
  }, {
2782
2852
  readonly inputs: readonly [{
2783
2853
  readonly internalType: "uint256";
2784
2854
  readonly name: "gameId";
2785
2855
  readonly type: "uint256";
2786
2856
  }];
2787
- readonly name: "getJoinRequirements";
2857
+ readonly name: "getGameState";
2788
2858
  readonly outputs: readonly [{
2789
2859
  readonly components: readonly [{
2860
+ readonly internalType: "uint256";
2861
+ readonly name: "rank";
2862
+ readonly type: "uint256";
2863
+ }, {
2864
+ readonly internalType: "uint256";
2865
+ readonly name: "minGameTime";
2866
+ readonly type: "uint256";
2867
+ }, {
2868
+ readonly internalType: "address";
2869
+ readonly name: "createdBy";
2870
+ readonly type: "address";
2871
+ }, {
2872
+ readonly internalType: "uint256";
2873
+ readonly name: "numOngoingProposals";
2874
+ readonly type: "uint256";
2875
+ }, {
2876
+ readonly internalType: "uint256";
2877
+ readonly name: "numPrevProposals";
2878
+ readonly type: "uint256";
2879
+ }, {
2880
+ readonly internalType: "uint256";
2881
+ readonly name: "numCommitments";
2882
+ readonly type: "uint256";
2883
+ }, {
2884
+ readonly internalType: "uint256";
2885
+ readonly name: "numVotesThisTurn";
2886
+ readonly type: "uint256";
2887
+ }, {
2888
+ readonly internalType: "uint256";
2889
+ readonly name: "numVotesPrevTurn";
2890
+ readonly type: "uint256";
2891
+ }, {
2790
2892
  readonly components: readonly [{
2791
2893
  readonly internalType: "uint256";
2792
- readonly name: "have";
2793
- readonly type: "uint256";
2794
- }, {
2795
- readonly internalType: "uint256";
2796
- readonly name: "lock";
2797
- readonly type: "uint256";
2798
- }, {
2799
- readonly internalType: "uint256";
2800
- readonly name: "burn";
2894
+ readonly name: "voteCredits";
2801
2895
  readonly type: "uint256";
2802
2896
  }, {
2803
2897
  readonly internalType: "uint256";
2804
- readonly name: "pay";
2898
+ readonly name: "maxQuadraticPoints";
2805
2899
  readonly type: "uint256";
2806
2900
  }, {
2807
2901
  readonly internalType: "uint256";
2808
- readonly name: "bet";
2902
+ readonly name: "minQuadraticPositions";
2809
2903
  readonly type: "uint256";
2810
2904
  }];
2811
- readonly internalType: "struct LibCoinVending.NumericCondition";
2812
- readonly name: "ethValues";
2905
+ readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
2906
+ readonly name: "voting";
2813
2907
  readonly type: "tuple";
2814
2908
  }, {
2815
2909
  readonly internalType: "uint256";
2816
- readonly name: "timesRefunded";
2910
+ readonly name: "currentTurn";
2817
2911
  readonly type: "uint256";
2818
2912
  }, {
2819
2913
  readonly internalType: "uint256";
2820
- readonly name: "timesReleased";
2914
+ readonly name: "turnStartedAt";
2821
2915
  readonly type: "uint256";
2822
2916
  }, {
2823
2917
  readonly internalType: "uint256";
2824
- readonly name: "timesFunded";
2918
+ readonly name: "registrationOpenAt";
2825
2919
  readonly type: "uint256";
2826
2920
  }, {
2827
- readonly internalType: "address[]";
2828
- readonly name: "contractAddresses";
2829
- readonly type: "address[]";
2921
+ readonly internalType: "uint256";
2922
+ readonly name: "startedAt";
2923
+ readonly type: "uint256";
2830
2924
  }, {
2831
- readonly internalType: "uint256[]";
2832
- readonly name: "contractIds";
2833
- readonly type: "uint256[]";
2925
+ readonly internalType: "bool";
2926
+ readonly name: "hasStarted";
2927
+ readonly type: "bool";
2834
2928
  }, {
2835
- readonly internalType: "enum LibCoinVending.ContractTypes[]";
2836
- readonly name: "contractTypes";
2837
- readonly type: "uint8[]";
2929
+ readonly internalType: "bool";
2930
+ readonly name: "hasEnded";
2931
+ readonly type: "bool";
2932
+ }, {
2933
+ readonly internalType: "uint256";
2934
+ readonly name: "numPlayersMadeMove";
2935
+ readonly type: "uint256";
2936
+ }, {
2937
+ readonly internalType: "uint256";
2938
+ readonly name: "numActivePlayers";
2939
+ readonly type: "uint256";
2838
2940
  }, {
2839
2941
  readonly internalType: "bool";
2840
- readonly name: "_isConfigured";
2942
+ readonly name: "isOvertime";
2841
2943
  readonly type: "bool";
2842
- }];
2944
+ }, {
2945
+ readonly internalType: "uint256";
2946
+ readonly name: "timePerTurn";
2947
+ readonly type: "uint256";
2948
+ }, {
2949
+ readonly internalType: "uint256";
2950
+ readonly name: "maxPlayerCnt";
2951
+ readonly type: "uint256";
2952
+ }, {
2953
+ readonly internalType: "uint256";
2954
+ readonly name: "minPlayerCnt";
2955
+ readonly type: "uint256";
2956
+ }, {
2957
+ readonly internalType: "uint256";
2958
+ readonly name: "timeToJoin";
2959
+ readonly type: "uint256";
2960
+ }, {
2961
+ readonly internalType: "uint256";
2962
+ readonly name: "maxTurns";
2963
+ readonly type: "uint256";
2964
+ }, {
2965
+ readonly internalType: "uint256";
2966
+ readonly name: "voteCredits";
2967
+ readonly type: "uint256";
2968
+ }, {
2969
+ readonly internalType: "address";
2970
+ readonly name: "gameMaster";
2971
+ readonly type: "address";
2972
+ }];
2973
+ readonly internalType: "struct IRankifyInstance.GameStateOutput";
2974
+ readonly name: "state";
2975
+ readonly type: "tuple";
2976
+ }];
2977
+ readonly stateMutability: "view";
2978
+ readonly type: "function";
2979
+ }, {
2980
+ readonly inputs: readonly [{
2981
+ readonly internalType: "uint256";
2982
+ readonly name: "gameId";
2983
+ readonly type: "uint256";
2984
+ }];
2985
+ readonly name: "getJoinRequirements";
2986
+ readonly outputs: readonly [{
2987
+ readonly components: readonly [{
2988
+ readonly components: readonly [{
2989
+ readonly internalType: "uint256";
2990
+ readonly name: "have";
2991
+ readonly type: "uint256";
2992
+ }, {
2993
+ readonly internalType: "uint256";
2994
+ readonly name: "lock";
2995
+ readonly type: "uint256";
2996
+ }, {
2997
+ readonly internalType: "uint256";
2998
+ readonly name: "burn";
2999
+ readonly type: "uint256";
3000
+ }, {
3001
+ readonly internalType: "uint256";
3002
+ readonly name: "pay";
3003
+ readonly type: "uint256";
3004
+ }, {
3005
+ readonly internalType: "uint256";
3006
+ readonly name: "bet";
3007
+ readonly type: "uint256";
3008
+ }];
3009
+ readonly internalType: "struct LibCoinVending.NumericCondition";
3010
+ readonly name: "ethValues";
3011
+ readonly type: "tuple";
3012
+ }, {
3013
+ readonly internalType: "uint256";
3014
+ readonly name: "timesRefunded";
3015
+ readonly type: "uint256";
3016
+ }, {
3017
+ readonly internalType: "uint256";
3018
+ readonly name: "timesReleased";
3019
+ readonly type: "uint256";
3020
+ }, {
3021
+ readonly internalType: "uint256";
3022
+ readonly name: "timesFunded";
3023
+ readonly type: "uint256";
3024
+ }, {
3025
+ readonly internalType: "address[]";
3026
+ readonly name: "contractAddresses";
3027
+ readonly type: "address[]";
3028
+ }, {
3029
+ readonly internalType: "uint256[]";
3030
+ readonly name: "contractIds";
3031
+ readonly type: "uint256[]";
3032
+ }, {
3033
+ readonly internalType: "enum LibCoinVending.ContractTypes[]";
3034
+ readonly name: "contractTypes";
3035
+ readonly type: "uint8[]";
3036
+ }, {
3037
+ readonly internalType: "bool";
3038
+ readonly name: "_isConfigured";
3039
+ readonly type: "bool";
3040
+ }];
2843
3041
  readonly internalType: "struct LibCoinVending.ConditionReturn";
2844
3042
  readonly name: "";
2845
3043
  readonly type: "tuple";
@@ -3222,6 +3420,14 @@ export default class InstanceBase {
3222
3420
  readonly internalType: "bytes32";
3223
3421
  readonly name: "_TYPE_HASH";
3224
3422
  readonly type: "bytes32";
3423
+ }, {
3424
+ readonly internalType: "string";
3425
+ readonly name: "_NAME";
3426
+ readonly type: "string";
3427
+ }, {
3428
+ readonly internalType: "string";
3429
+ readonly name: "_VERSION";
3430
+ readonly type: "string";
3225
3431
  }];
3226
3432
  readonly stateMutability: "view";
3227
3433
  readonly type: "function";
@@ -3563,6 +3769,31 @@ export default class InstanceBase {
3563
3769
  }];
3564
3770
  readonly name: "PlayerLeft";
3565
3771
  readonly type: "event";
3772
+ }, {
3773
+ readonly anonymous: false;
3774
+ readonly inputs: readonly [{
3775
+ readonly indexed: true;
3776
+ readonly internalType: "address";
3777
+ readonly name: "player";
3778
+ readonly type: "address";
3779
+ }, {
3780
+ readonly indexed: false;
3781
+ readonly internalType: "uint256";
3782
+ readonly name: "rankId";
3783
+ readonly type: "uint256";
3784
+ }, {
3785
+ readonly indexed: false;
3786
+ readonly internalType: "uint256";
3787
+ readonly name: "amount";
3788
+ readonly type: "uint256";
3789
+ }, {
3790
+ readonly indexed: false;
3791
+ readonly internalType: "uint256";
3792
+ readonly name: "_toMint";
3793
+ readonly type: "uint256";
3794
+ }];
3795
+ readonly name: "RankTokenExited";
3796
+ readonly type: "event";
3566
3797
  }, {
3567
3798
  readonly anonymous: false;
3568
3799
  readonly inputs: readonly [{
@@ -3697,6 +3928,20 @@ export default class InstanceBase {
3697
3928
  }];
3698
3929
  readonly stateMutability: "pure";
3699
3930
  readonly type: "function";
3931
+ }, {
3932
+ readonly inputs: readonly [{
3933
+ readonly internalType: "uint256";
3934
+ readonly name: "rankId";
3935
+ readonly type: "uint256";
3936
+ }, {
3937
+ readonly internalType: "uint256";
3938
+ readonly name: "amount";
3939
+ readonly type: "uint256";
3940
+ }];
3941
+ readonly name: "exitRankToken";
3942
+ readonly outputs: readonly [];
3943
+ readonly stateMutability: "nonpayable";
3944
+ readonly type: "function";
3700
3945
  }, {
3701
3946
  readonly inputs: readonly [{
3702
3947
  readonly internalType: "uint256";
@@ -3744,6 +3989,14 @@ export default class InstanceBase {
3744
3989
  readonly internalType: "address";
3745
3990
  readonly name: "beneficiary";
3746
3991
  readonly type: "address";
3992
+ }, {
3993
+ readonly internalType: "uint256";
3994
+ readonly name: "minimumParticipantsInCircle";
3995
+ readonly type: "uint256";
3996
+ }, {
3997
+ readonly internalType: "address";
3998
+ readonly name: "derivedToken";
3999
+ readonly type: "address";
3747
4000
  }];
3748
4001
  readonly internalType: "struct LibRankify.CommonParams";
3749
4002
  readonly name: "commonParams";
@@ -3789,135 +4042,7 @@ export default class InstanceBase {
3789
4042
  readonly name: "gameId";
3790
4043
  readonly type: "uint256";
3791
4044
  }];
3792
- readonly name: "getGameState";
3793
- readonly outputs: readonly [{
3794
- readonly components: readonly [{
3795
- readonly internalType: "uint256";
3796
- readonly name: "rank";
3797
- readonly type: "uint256";
3798
- }, {
3799
- readonly internalType: "uint256";
3800
- readonly name: "minGameTime";
3801
- readonly type: "uint256";
3802
- }, {
3803
- readonly internalType: "address";
3804
- readonly name: "createdBy";
3805
- readonly type: "address";
3806
- }, {
3807
- readonly internalType: "uint256";
3808
- readonly name: "numOngoingProposals";
3809
- readonly type: "uint256";
3810
- }, {
3811
- readonly internalType: "uint256";
3812
- readonly name: "numPrevProposals";
3813
- readonly type: "uint256";
3814
- }, {
3815
- readonly internalType: "uint256";
3816
- readonly name: "numCommitments";
3817
- readonly type: "uint256";
3818
- }, {
3819
- readonly internalType: "uint256";
3820
- readonly name: "numVotesThisTurn";
3821
- readonly type: "uint256";
3822
- }, {
3823
- readonly internalType: "uint256";
3824
- readonly name: "numVotesPrevTurn";
3825
- readonly type: "uint256";
3826
- }, {
3827
- readonly components: readonly [{
3828
- readonly internalType: "uint256";
3829
- readonly name: "voteCredits";
3830
- readonly type: "uint256";
3831
- }, {
3832
- readonly internalType: "uint256";
3833
- readonly name: "maxQuadraticPoints";
3834
- readonly type: "uint256";
3835
- }, {
3836
- readonly internalType: "uint256";
3837
- readonly name: "minQuadraticPositions";
3838
- readonly type: "uint256";
3839
- }];
3840
- readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
3841
- readonly name: "voting";
3842
- readonly type: "tuple";
3843
- }, {
3844
- readonly internalType: "uint256";
3845
- readonly name: "currentTurn";
3846
- readonly type: "uint256";
3847
- }, {
3848
- readonly internalType: "uint256";
3849
- readonly name: "turnStartedAt";
3850
- readonly type: "uint256";
3851
- }, {
3852
- readonly internalType: "uint256";
3853
- readonly name: "registrationOpenAt";
3854
- readonly type: "uint256";
3855
- }, {
3856
- readonly internalType: "uint256";
3857
- readonly name: "startedAt";
3858
- readonly type: "uint256";
3859
- }, {
3860
- readonly internalType: "bool";
3861
- readonly name: "hasStarted";
3862
- readonly type: "bool";
3863
- }, {
3864
- readonly internalType: "bool";
3865
- readonly name: "hasEnded";
3866
- readonly type: "bool";
3867
- }, {
3868
- readonly internalType: "uint256";
3869
- readonly name: "numPlayersMadeMove";
3870
- readonly type: "uint256";
3871
- }, {
3872
- readonly internalType: "uint256";
3873
- readonly name: "numActivePlayers";
3874
- readonly type: "uint256";
3875
- }, {
3876
- readonly internalType: "bool";
3877
- readonly name: "isOvertime";
3878
- readonly type: "bool";
3879
- }, {
3880
- readonly internalType: "uint256";
3881
- readonly name: "timePerTurn";
3882
- readonly type: "uint256";
3883
- }, {
3884
- readonly internalType: "uint256";
3885
- readonly name: "maxPlayerCnt";
3886
- readonly type: "uint256";
3887
- }, {
3888
- readonly internalType: "uint256";
3889
- readonly name: "minPlayerCnt";
3890
- readonly type: "uint256";
3891
- }, {
3892
- readonly internalType: "uint256";
3893
- readonly name: "timeToJoin";
3894
- readonly type: "uint256";
3895
- }, {
3896
- readonly internalType: "uint256";
3897
- readonly name: "maxTurns";
3898
- readonly type: "uint256";
3899
- }, {
3900
- readonly internalType: "uint256";
3901
- readonly name: "voteCredits";
3902
- readonly type: "uint256";
3903
- }, {
3904
- readonly internalType: "address";
3905
- readonly name: "gameMaster";
3906
- readonly type: "address";
3907
- }];
3908
- readonly internalType: "struct IRankifyInstance.GameStateOutput";
3909
- readonly name: "state";
3910
- readonly type: "tuple";
3911
- }];
3912
- readonly stateMutability: "view";
3913
- readonly type: "function";
3914
- }, {
3915
- readonly inputs: readonly [{
3916
- readonly internalType: "uint256";
3917
- readonly name: "gameId";
3918
- readonly type: "uint256";
3919
- }];
3920
- readonly name: "getPlayerVotedArray";
4045
+ readonly name: "getPlayerVotedArray";
3921
4046
  readonly outputs: readonly [{
3922
4047
  readonly internalType: "bool[]";
3923
4048
  readonly name: "";
@@ -4349,6 +4474,173 @@ export default class InstanceBase {
4349
4474
  }];
4350
4475
  readonly name: "RequirementsConfigured";
4351
4476
  readonly type: "event";
4477
+ }, {
4478
+ readonly inputs: readonly [];
4479
+ readonly name: "getCommonParams";
4480
+ readonly outputs: readonly [{
4481
+ readonly components: readonly [{
4482
+ readonly internalType: "uint256";
4483
+ readonly name: "principalCost";
4484
+ readonly type: "uint256";
4485
+ }, {
4486
+ readonly internalType: "uint96";
4487
+ readonly name: "principalTimeConstant";
4488
+ readonly type: "uint96";
4489
+ }, {
4490
+ readonly internalType: "address";
4491
+ readonly name: "gamePaymentToken";
4492
+ readonly type: "address";
4493
+ }, {
4494
+ readonly internalType: "address";
4495
+ readonly name: "rankTokenAddress";
4496
+ readonly type: "address";
4497
+ }, {
4498
+ readonly internalType: "address";
4499
+ readonly name: "beneficiary";
4500
+ readonly type: "address";
4501
+ }, {
4502
+ readonly internalType: "uint256";
4503
+ readonly name: "minimumParticipantsInCircle";
4504
+ readonly type: "uint256";
4505
+ }, {
4506
+ readonly internalType: "address";
4507
+ readonly name: "derivedToken";
4508
+ readonly type: "address";
4509
+ }];
4510
+ readonly internalType: "struct LibRankify.CommonParams";
4511
+ readonly name: "";
4512
+ readonly type: "tuple";
4513
+ }];
4514
+ readonly stateMutability: "view";
4515
+ readonly type: "function";
4516
+ }, {
4517
+ readonly inputs: readonly [{
4518
+ readonly internalType: "uint256";
4519
+ readonly name: "gameId";
4520
+ readonly type: "uint256";
4521
+ }];
4522
+ readonly name: "getGameState";
4523
+ readonly outputs: readonly [{
4524
+ readonly components: readonly [{
4525
+ readonly internalType: "uint256";
4526
+ readonly name: "rank";
4527
+ readonly type: "uint256";
4528
+ }, {
4529
+ readonly internalType: "uint256";
4530
+ readonly name: "minGameTime";
4531
+ readonly type: "uint256";
4532
+ }, {
4533
+ readonly internalType: "address";
4534
+ readonly name: "createdBy";
4535
+ readonly type: "address";
4536
+ }, {
4537
+ readonly internalType: "uint256";
4538
+ readonly name: "numOngoingProposals";
4539
+ readonly type: "uint256";
4540
+ }, {
4541
+ readonly internalType: "uint256";
4542
+ readonly name: "numPrevProposals";
4543
+ readonly type: "uint256";
4544
+ }, {
4545
+ readonly internalType: "uint256";
4546
+ readonly name: "numCommitments";
4547
+ readonly type: "uint256";
4548
+ }, {
4549
+ readonly internalType: "uint256";
4550
+ readonly name: "numVotesThisTurn";
4551
+ readonly type: "uint256";
4552
+ }, {
4553
+ readonly internalType: "uint256";
4554
+ readonly name: "numVotesPrevTurn";
4555
+ readonly type: "uint256";
4556
+ }, {
4557
+ readonly components: readonly [{
4558
+ readonly internalType: "uint256";
4559
+ readonly name: "voteCredits";
4560
+ readonly type: "uint256";
4561
+ }, {
4562
+ readonly internalType: "uint256";
4563
+ readonly name: "maxQuadraticPoints";
4564
+ readonly type: "uint256";
4565
+ }, {
4566
+ readonly internalType: "uint256";
4567
+ readonly name: "minQuadraticPositions";
4568
+ readonly type: "uint256";
4569
+ }];
4570
+ readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
4571
+ readonly name: "voting";
4572
+ readonly type: "tuple";
4573
+ }, {
4574
+ readonly internalType: "uint256";
4575
+ readonly name: "currentTurn";
4576
+ readonly type: "uint256";
4577
+ }, {
4578
+ readonly internalType: "uint256";
4579
+ readonly name: "turnStartedAt";
4580
+ readonly type: "uint256";
4581
+ }, {
4582
+ readonly internalType: "uint256";
4583
+ readonly name: "registrationOpenAt";
4584
+ readonly type: "uint256";
4585
+ }, {
4586
+ readonly internalType: "uint256";
4587
+ readonly name: "startedAt";
4588
+ readonly type: "uint256";
4589
+ }, {
4590
+ readonly internalType: "bool";
4591
+ readonly name: "hasStarted";
4592
+ readonly type: "bool";
4593
+ }, {
4594
+ readonly internalType: "bool";
4595
+ readonly name: "hasEnded";
4596
+ readonly type: "bool";
4597
+ }, {
4598
+ readonly internalType: "uint256";
4599
+ readonly name: "numPlayersMadeMove";
4600
+ readonly type: "uint256";
4601
+ }, {
4602
+ readonly internalType: "uint256";
4603
+ readonly name: "numActivePlayers";
4604
+ readonly type: "uint256";
4605
+ }, {
4606
+ readonly internalType: "bool";
4607
+ readonly name: "isOvertime";
4608
+ readonly type: "bool";
4609
+ }, {
4610
+ readonly internalType: "uint256";
4611
+ readonly name: "timePerTurn";
4612
+ readonly type: "uint256";
4613
+ }, {
4614
+ readonly internalType: "uint256";
4615
+ readonly name: "maxPlayerCnt";
4616
+ readonly type: "uint256";
4617
+ }, {
4618
+ readonly internalType: "uint256";
4619
+ readonly name: "minPlayerCnt";
4620
+ readonly type: "uint256";
4621
+ }, {
4622
+ readonly internalType: "uint256";
4623
+ readonly name: "timeToJoin";
4624
+ readonly type: "uint256";
4625
+ }, {
4626
+ readonly internalType: "uint256";
4627
+ readonly name: "maxTurns";
4628
+ readonly type: "uint256";
4629
+ }, {
4630
+ readonly internalType: "uint256";
4631
+ readonly name: "voteCredits";
4632
+ readonly type: "uint256";
4633
+ }, {
4634
+ readonly internalType: "address";
4635
+ readonly name: "gameMaster";
4636
+ readonly type: "address";
4637
+ }];
4638
+ readonly internalType: "struct IRankifyInstance.GameStateOutput";
4639
+ readonly name: "state";
4640
+ readonly type: "tuple";
4641
+ }];
4642
+ readonly stateMutability: "view";
4643
+ readonly type: "function";
4352
4644
  }, {
4353
4645
  readonly inputs: readonly [{
4354
4646
  readonly internalType: "uint256";
@@ -4780,6 +5072,14 @@ export default class InstanceBase {
4780
5072
  readonly internalType: "bytes32";
4781
5073
  readonly name: "_TYPE_HASH";
4782
5074
  readonly type: "bytes32";
5075
+ }, {
5076
+ readonly internalType: "string";
5077
+ readonly name: "_NAME";
5078
+ readonly type: "string";
5079
+ }, {
5080
+ readonly internalType: "string";
5081
+ readonly name: "_VERSION";
5082
+ readonly type: "string";
4783
5083
  }];
4784
5084
  readonly stateMutability: "view";
4785
5085
  readonly type: "function";
@@ -5121,6 +5421,31 @@ export default class InstanceBase {
5121
5421
  }];
5122
5422
  readonly name: "PlayerLeft";
5123
5423
  readonly type: "event";
5424
+ }, {
5425
+ readonly anonymous: false;
5426
+ readonly inputs: readonly [{
5427
+ readonly indexed: true;
5428
+ readonly internalType: "address";
5429
+ readonly name: "player";
5430
+ readonly type: "address";
5431
+ }, {
5432
+ readonly indexed: false;
5433
+ readonly internalType: "uint256";
5434
+ readonly name: "rankId";
5435
+ readonly type: "uint256";
5436
+ }, {
5437
+ readonly indexed: false;
5438
+ readonly internalType: "uint256";
5439
+ readonly name: "amount";
5440
+ readonly type: "uint256";
5441
+ }, {
5442
+ readonly indexed: false;
5443
+ readonly internalType: "uint256";
5444
+ readonly name: "_toMint";
5445
+ readonly type: "uint256";
5446
+ }];
5447
+ readonly name: "RankTokenExited";
5448
+ readonly type: "event";
5124
5449
  }, {
5125
5450
  readonly anonymous: false;
5126
5451
  readonly inputs: readonly [{
@@ -5255,6 +5580,20 @@ export default class InstanceBase {
5255
5580
  }];
5256
5581
  readonly stateMutability: "pure";
5257
5582
  readonly type: "function";
5583
+ }, {
5584
+ readonly inputs: readonly [{
5585
+ readonly internalType: "uint256";
5586
+ readonly name: "rankId";
5587
+ readonly type: "uint256";
5588
+ }, {
5589
+ readonly internalType: "uint256";
5590
+ readonly name: "amount";
5591
+ readonly type: "uint256";
5592
+ }];
5593
+ readonly name: "exitRankToken";
5594
+ readonly outputs: readonly [];
5595
+ readonly stateMutability: "nonpayable";
5596
+ readonly type: "function";
5258
5597
  }, {
5259
5598
  readonly inputs: readonly [{
5260
5599
  readonly internalType: "uint256";
@@ -5302,6 +5641,14 @@ export default class InstanceBase {
5302
5641
  readonly internalType: "address";
5303
5642
  readonly name: "beneficiary";
5304
5643
  readonly type: "address";
5644
+ }, {
5645
+ readonly internalType: "uint256";
5646
+ readonly name: "minimumParticipantsInCircle";
5647
+ readonly type: "uint256";
5648
+ }, {
5649
+ readonly internalType: "address";
5650
+ readonly name: "derivedToken";
5651
+ readonly type: "address";
5305
5652
  }];
5306
5653
  readonly internalType: "struct LibRankify.CommonParams";
5307
5654
  readonly name: "commonParams";
@@ -5341,134 +5688,6 @@ export default class InstanceBase {
5341
5688
  }];
5342
5689
  readonly stateMutability: "view";
5343
5690
  readonly type: "function";
5344
- }, {
5345
- readonly inputs: readonly [{
5346
- readonly internalType: "uint256";
5347
- readonly name: "gameId";
5348
- readonly type: "uint256";
5349
- }];
5350
- readonly name: "getGameState";
5351
- readonly outputs: readonly [{
5352
- readonly components: readonly [{
5353
- readonly internalType: "uint256";
5354
- readonly name: "rank";
5355
- readonly type: "uint256";
5356
- }, {
5357
- readonly internalType: "uint256";
5358
- readonly name: "minGameTime";
5359
- readonly type: "uint256";
5360
- }, {
5361
- readonly internalType: "address";
5362
- readonly name: "createdBy";
5363
- readonly type: "address";
5364
- }, {
5365
- readonly internalType: "uint256";
5366
- readonly name: "numOngoingProposals";
5367
- readonly type: "uint256";
5368
- }, {
5369
- readonly internalType: "uint256";
5370
- readonly name: "numPrevProposals";
5371
- readonly type: "uint256";
5372
- }, {
5373
- readonly internalType: "uint256";
5374
- readonly name: "numCommitments";
5375
- readonly type: "uint256";
5376
- }, {
5377
- readonly internalType: "uint256";
5378
- readonly name: "numVotesThisTurn";
5379
- readonly type: "uint256";
5380
- }, {
5381
- readonly internalType: "uint256";
5382
- readonly name: "numVotesPrevTurn";
5383
- readonly type: "uint256";
5384
- }, {
5385
- readonly components: readonly [{
5386
- readonly internalType: "uint256";
5387
- readonly name: "voteCredits";
5388
- readonly type: "uint256";
5389
- }, {
5390
- readonly internalType: "uint256";
5391
- readonly name: "maxQuadraticPoints";
5392
- readonly type: "uint256";
5393
- }, {
5394
- readonly internalType: "uint256";
5395
- readonly name: "minQuadraticPositions";
5396
- readonly type: "uint256";
5397
- }];
5398
- readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
5399
- readonly name: "voting";
5400
- readonly type: "tuple";
5401
- }, {
5402
- readonly internalType: "uint256";
5403
- readonly name: "currentTurn";
5404
- readonly type: "uint256";
5405
- }, {
5406
- readonly internalType: "uint256";
5407
- readonly name: "turnStartedAt";
5408
- readonly type: "uint256";
5409
- }, {
5410
- readonly internalType: "uint256";
5411
- readonly name: "registrationOpenAt";
5412
- readonly type: "uint256";
5413
- }, {
5414
- readonly internalType: "uint256";
5415
- readonly name: "startedAt";
5416
- readonly type: "uint256";
5417
- }, {
5418
- readonly internalType: "bool";
5419
- readonly name: "hasStarted";
5420
- readonly type: "bool";
5421
- }, {
5422
- readonly internalType: "bool";
5423
- readonly name: "hasEnded";
5424
- readonly type: "bool";
5425
- }, {
5426
- readonly internalType: "uint256";
5427
- readonly name: "numPlayersMadeMove";
5428
- readonly type: "uint256";
5429
- }, {
5430
- readonly internalType: "uint256";
5431
- readonly name: "numActivePlayers";
5432
- readonly type: "uint256";
5433
- }, {
5434
- readonly internalType: "bool";
5435
- readonly name: "isOvertime";
5436
- readonly type: "bool";
5437
- }, {
5438
- readonly internalType: "uint256";
5439
- readonly name: "timePerTurn";
5440
- readonly type: "uint256";
5441
- }, {
5442
- readonly internalType: "uint256";
5443
- readonly name: "maxPlayerCnt";
5444
- readonly type: "uint256";
5445
- }, {
5446
- readonly internalType: "uint256";
5447
- readonly name: "minPlayerCnt";
5448
- readonly type: "uint256";
5449
- }, {
5450
- readonly internalType: "uint256";
5451
- readonly name: "timeToJoin";
5452
- readonly type: "uint256";
5453
- }, {
5454
- readonly internalType: "uint256";
5455
- readonly name: "maxTurns";
5456
- readonly type: "uint256";
5457
- }, {
5458
- readonly internalType: "uint256";
5459
- readonly name: "voteCredits";
5460
- readonly type: "uint256";
5461
- }, {
5462
- readonly internalType: "address";
5463
- readonly name: "gameMaster";
5464
- readonly type: "address";
5465
- }];
5466
- readonly internalType: "struct IRankifyInstance.GameStateOutput";
5467
- readonly name: "state";
5468
- readonly type: "tuple";
5469
- }];
5470
- readonly stateMutability: "view";
5471
- readonly type: "function";
5472
5691
  }, {
5473
5692
  readonly inputs: readonly [{
5474
5693
  readonly internalType: "uint256";
@@ -5900,13 +6119,180 @@ export default class InstanceBase {
5900
6119
  readonly name: "contracts";
5901
6120
  readonly type: "tuple[]";
5902
6121
  }];
5903
- readonly indexed: false;
5904
- readonly internalType: "struct LibCoinVending.ConfigPosition";
5905
- readonly name: "config";
6122
+ readonly indexed: false;
6123
+ readonly internalType: "struct LibCoinVending.ConfigPosition";
6124
+ readonly name: "config";
6125
+ readonly type: "tuple";
6126
+ }];
6127
+ readonly name: "RequirementsConfigured";
6128
+ readonly type: "event";
6129
+ }, {
6130
+ readonly inputs: readonly [];
6131
+ readonly name: "getCommonParams";
6132
+ readonly outputs: readonly [{
6133
+ readonly components: readonly [{
6134
+ readonly internalType: "uint256";
6135
+ readonly name: "principalCost";
6136
+ readonly type: "uint256";
6137
+ }, {
6138
+ readonly internalType: "uint96";
6139
+ readonly name: "principalTimeConstant";
6140
+ readonly type: "uint96";
6141
+ }, {
6142
+ readonly internalType: "address";
6143
+ readonly name: "gamePaymentToken";
6144
+ readonly type: "address";
6145
+ }, {
6146
+ readonly internalType: "address";
6147
+ readonly name: "rankTokenAddress";
6148
+ readonly type: "address";
6149
+ }, {
6150
+ readonly internalType: "address";
6151
+ readonly name: "beneficiary";
6152
+ readonly type: "address";
6153
+ }, {
6154
+ readonly internalType: "uint256";
6155
+ readonly name: "minimumParticipantsInCircle";
6156
+ readonly type: "uint256";
6157
+ }, {
6158
+ readonly internalType: "address";
6159
+ readonly name: "derivedToken";
6160
+ readonly type: "address";
6161
+ }];
6162
+ readonly internalType: "struct LibRankify.CommonParams";
6163
+ readonly name: "";
6164
+ readonly type: "tuple";
6165
+ }];
6166
+ readonly stateMutability: "view";
6167
+ readonly type: "function";
6168
+ }, {
6169
+ readonly inputs: readonly [{
6170
+ readonly internalType: "uint256";
6171
+ readonly name: "gameId";
6172
+ readonly type: "uint256";
6173
+ }];
6174
+ readonly name: "getGameState";
6175
+ readonly outputs: readonly [{
6176
+ readonly components: readonly [{
6177
+ readonly internalType: "uint256";
6178
+ readonly name: "rank";
6179
+ readonly type: "uint256";
6180
+ }, {
6181
+ readonly internalType: "uint256";
6182
+ readonly name: "minGameTime";
6183
+ readonly type: "uint256";
6184
+ }, {
6185
+ readonly internalType: "address";
6186
+ readonly name: "createdBy";
6187
+ readonly type: "address";
6188
+ }, {
6189
+ readonly internalType: "uint256";
6190
+ readonly name: "numOngoingProposals";
6191
+ readonly type: "uint256";
6192
+ }, {
6193
+ readonly internalType: "uint256";
6194
+ readonly name: "numPrevProposals";
6195
+ readonly type: "uint256";
6196
+ }, {
6197
+ readonly internalType: "uint256";
6198
+ readonly name: "numCommitments";
6199
+ readonly type: "uint256";
6200
+ }, {
6201
+ readonly internalType: "uint256";
6202
+ readonly name: "numVotesThisTurn";
6203
+ readonly type: "uint256";
6204
+ }, {
6205
+ readonly internalType: "uint256";
6206
+ readonly name: "numVotesPrevTurn";
6207
+ readonly type: "uint256";
6208
+ }, {
6209
+ readonly components: readonly [{
6210
+ readonly internalType: "uint256";
6211
+ readonly name: "voteCredits";
6212
+ readonly type: "uint256";
6213
+ }, {
6214
+ readonly internalType: "uint256";
6215
+ readonly name: "maxQuadraticPoints";
6216
+ readonly type: "uint256";
6217
+ }, {
6218
+ readonly internalType: "uint256";
6219
+ readonly name: "minQuadraticPositions";
6220
+ readonly type: "uint256";
6221
+ }];
6222
+ readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
6223
+ readonly name: "voting";
6224
+ readonly type: "tuple";
6225
+ }, {
6226
+ readonly internalType: "uint256";
6227
+ readonly name: "currentTurn";
6228
+ readonly type: "uint256";
6229
+ }, {
6230
+ readonly internalType: "uint256";
6231
+ readonly name: "turnStartedAt";
6232
+ readonly type: "uint256";
6233
+ }, {
6234
+ readonly internalType: "uint256";
6235
+ readonly name: "registrationOpenAt";
6236
+ readonly type: "uint256";
6237
+ }, {
6238
+ readonly internalType: "uint256";
6239
+ readonly name: "startedAt";
6240
+ readonly type: "uint256";
6241
+ }, {
6242
+ readonly internalType: "bool";
6243
+ readonly name: "hasStarted";
6244
+ readonly type: "bool";
6245
+ }, {
6246
+ readonly internalType: "bool";
6247
+ readonly name: "hasEnded";
6248
+ readonly type: "bool";
6249
+ }, {
6250
+ readonly internalType: "uint256";
6251
+ readonly name: "numPlayersMadeMove";
6252
+ readonly type: "uint256";
6253
+ }, {
6254
+ readonly internalType: "uint256";
6255
+ readonly name: "numActivePlayers";
6256
+ readonly type: "uint256";
6257
+ }, {
6258
+ readonly internalType: "bool";
6259
+ readonly name: "isOvertime";
6260
+ readonly type: "bool";
6261
+ }, {
6262
+ readonly internalType: "uint256";
6263
+ readonly name: "timePerTurn";
6264
+ readonly type: "uint256";
6265
+ }, {
6266
+ readonly internalType: "uint256";
6267
+ readonly name: "maxPlayerCnt";
6268
+ readonly type: "uint256";
6269
+ }, {
6270
+ readonly internalType: "uint256";
6271
+ readonly name: "minPlayerCnt";
6272
+ readonly type: "uint256";
6273
+ }, {
6274
+ readonly internalType: "uint256";
6275
+ readonly name: "timeToJoin";
6276
+ readonly type: "uint256";
6277
+ }, {
6278
+ readonly internalType: "uint256";
6279
+ readonly name: "maxTurns";
6280
+ readonly type: "uint256";
6281
+ }, {
6282
+ readonly internalType: "uint256";
6283
+ readonly name: "voteCredits";
6284
+ readonly type: "uint256";
6285
+ }, {
6286
+ readonly internalType: "address";
6287
+ readonly name: "gameMaster";
6288
+ readonly type: "address";
6289
+ }];
6290
+ readonly internalType: "struct IRankifyInstance.GameStateOutput";
6291
+ readonly name: "state";
5906
6292
  readonly type: "tuple";
5907
6293
  }];
5908
- readonly name: "RequirementsConfigured";
5909
- readonly type: "event";
6294
+ readonly stateMutability: "view";
6295
+ readonly type: "function";
5910
6296
  }, {
5911
6297
  readonly inputs: readonly [{
5912
6298
  readonly internalType: "uint256";
@@ -6344,6 +6730,14 @@ export default class InstanceBase {
6344
6730
  readonly internalType: "bytes32";
6345
6731
  readonly name: "_TYPE_HASH";
6346
6732
  readonly type: "bytes32";
6733
+ }, {
6734
+ readonly internalType: "string";
6735
+ readonly name: "_NAME";
6736
+ readonly type: "string";
6737
+ }, {
6738
+ readonly internalType: "string";
6739
+ readonly name: "_VERSION";
6740
+ readonly type: "string";
6347
6741
  }];
6348
6742
  readonly stateMutability: "view";
6349
6743
  readonly type: "function";
@@ -6685,6 +7079,31 @@ export default class InstanceBase {
6685
7079
  }];
6686
7080
  readonly name: "PlayerLeft";
6687
7081
  readonly type: "event";
7082
+ }, {
7083
+ readonly anonymous: false;
7084
+ readonly inputs: readonly [{
7085
+ readonly indexed: true;
7086
+ readonly internalType: "address";
7087
+ readonly name: "player";
7088
+ readonly type: "address";
7089
+ }, {
7090
+ readonly indexed: false;
7091
+ readonly internalType: "uint256";
7092
+ readonly name: "rankId";
7093
+ readonly type: "uint256";
7094
+ }, {
7095
+ readonly indexed: false;
7096
+ readonly internalType: "uint256";
7097
+ readonly name: "amount";
7098
+ readonly type: "uint256";
7099
+ }, {
7100
+ readonly indexed: false;
7101
+ readonly internalType: "uint256";
7102
+ readonly name: "_toMint";
7103
+ readonly type: "uint256";
7104
+ }];
7105
+ readonly name: "RankTokenExited";
7106
+ readonly type: "event";
6688
7107
  }, {
6689
7108
  readonly anonymous: false;
6690
7109
  readonly inputs: readonly [{
@@ -6819,6 +7238,20 @@ export default class InstanceBase {
6819
7238
  }];
6820
7239
  readonly stateMutability: "pure";
6821
7240
  readonly type: "function";
7241
+ }, {
7242
+ readonly inputs: readonly [{
7243
+ readonly internalType: "uint256";
7244
+ readonly name: "rankId";
7245
+ readonly type: "uint256";
7246
+ }, {
7247
+ readonly internalType: "uint256";
7248
+ readonly name: "amount";
7249
+ readonly type: "uint256";
7250
+ }];
7251
+ readonly name: "exitRankToken";
7252
+ readonly outputs: readonly [];
7253
+ readonly stateMutability: "nonpayable";
7254
+ readonly type: "function";
6822
7255
  }, {
6823
7256
  readonly inputs: readonly [{
6824
7257
  readonly internalType: "uint256";
@@ -6849,188 +7282,68 @@ export default class InstanceBase {
6849
7282
  readonly components: readonly [{
6850
7283
  readonly internalType: "uint256";
6851
7284
  readonly name: "principalCost";
6852
- readonly type: "uint256";
6853
- }, {
6854
- readonly internalType: "uint96";
6855
- readonly name: "principalTimeConstant";
6856
- readonly type: "uint96";
6857
- }, {
6858
- readonly internalType: "address";
6859
- readonly name: "gamePaymentToken";
6860
- readonly type: "address";
6861
- }, {
6862
- readonly internalType: "address";
6863
- readonly name: "rankTokenAddress";
6864
- readonly type: "address";
6865
- }, {
6866
- readonly internalType: "address";
6867
- readonly name: "beneficiary";
6868
- readonly type: "address";
6869
- }];
6870
- readonly internalType: "struct LibRankify.CommonParams";
6871
- readonly name: "commonParams";
6872
- readonly type: "tuple";
6873
- }];
6874
- readonly internalType: "struct LibRankify.InstanceState";
6875
- readonly name: "";
6876
- readonly type: "tuple";
6877
- }];
6878
- readonly stateMutability: "pure";
6879
- readonly type: "function";
6880
- }, {
6881
- readonly inputs: readonly [{
6882
- readonly internalType: "uint256";
6883
- readonly name: "gameId";
6884
- readonly type: "uint256";
6885
- }];
6886
- readonly name: "getGM";
6887
- readonly outputs: readonly [{
6888
- readonly internalType: "address";
6889
- readonly name: "";
6890
- readonly type: "address";
6891
- }];
6892
- readonly stateMutability: "view";
6893
- readonly type: "function";
6894
- }, {
6895
- readonly inputs: readonly [{
6896
- readonly internalType: "uint256";
6897
- readonly name: "gameId";
6898
- readonly type: "uint256";
6899
- }];
6900
- readonly name: "getGameRank";
6901
- readonly outputs: readonly [{
6902
- readonly internalType: "uint256";
6903
- readonly name: "";
6904
- readonly type: "uint256";
6905
- }];
6906
- readonly stateMutability: "view";
6907
- readonly type: "function";
6908
- }, {
6909
- readonly inputs: readonly [{
6910
- readonly internalType: "uint256";
6911
- readonly name: "gameId";
6912
- readonly type: "uint256";
6913
- }];
6914
- readonly name: "getGameState";
6915
- readonly outputs: readonly [{
6916
- readonly components: readonly [{
6917
- readonly internalType: "uint256";
6918
- readonly name: "rank";
6919
- readonly type: "uint256";
6920
- }, {
6921
- readonly internalType: "uint256";
6922
- readonly name: "minGameTime";
6923
- readonly type: "uint256";
6924
- }, {
6925
- readonly internalType: "address";
6926
- readonly name: "createdBy";
6927
- readonly type: "address";
6928
- }, {
6929
- readonly internalType: "uint256";
6930
- readonly name: "numOngoingProposals";
6931
- readonly type: "uint256";
6932
- }, {
6933
- readonly internalType: "uint256";
6934
- readonly name: "numPrevProposals";
6935
- readonly type: "uint256";
6936
- }, {
6937
- readonly internalType: "uint256";
6938
- readonly name: "numCommitments";
6939
- readonly type: "uint256";
6940
- }, {
6941
- readonly internalType: "uint256";
6942
- readonly name: "numVotesThisTurn";
6943
- readonly type: "uint256";
6944
- }, {
6945
- readonly internalType: "uint256";
6946
- readonly name: "numVotesPrevTurn";
6947
- readonly type: "uint256";
6948
- }, {
6949
- readonly components: readonly [{
6950
- readonly internalType: "uint256";
6951
- readonly name: "voteCredits";
6952
- readonly type: "uint256";
6953
- }, {
6954
- readonly internalType: "uint256";
6955
- readonly name: "maxQuadraticPoints";
6956
- readonly type: "uint256";
6957
- }, {
6958
- readonly internalType: "uint256";
6959
- readonly name: "minQuadraticPositions";
6960
- readonly type: "uint256";
6961
- }];
6962
- readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
6963
- readonly name: "voting";
6964
- readonly type: "tuple";
6965
- }, {
6966
- readonly internalType: "uint256";
6967
- readonly name: "currentTurn";
6968
- readonly type: "uint256";
6969
- }, {
6970
- readonly internalType: "uint256";
6971
- readonly name: "turnStartedAt";
6972
- readonly type: "uint256";
6973
- }, {
6974
- readonly internalType: "uint256";
6975
- readonly name: "registrationOpenAt";
6976
- readonly type: "uint256";
6977
- }, {
6978
- readonly internalType: "uint256";
6979
- readonly name: "startedAt";
6980
- readonly type: "uint256";
6981
- }, {
6982
- readonly internalType: "bool";
6983
- readonly name: "hasStarted";
6984
- readonly type: "bool";
6985
- }, {
6986
- readonly internalType: "bool";
6987
- readonly name: "hasEnded";
6988
- readonly type: "bool";
6989
- }, {
6990
- readonly internalType: "uint256";
6991
- readonly name: "numPlayersMadeMove";
6992
- readonly type: "uint256";
6993
- }, {
6994
- readonly internalType: "uint256";
6995
- readonly name: "numActivePlayers";
6996
- readonly type: "uint256";
6997
- }, {
6998
- readonly internalType: "bool";
6999
- readonly name: "isOvertime";
7000
- readonly type: "bool";
7001
- }, {
7002
- readonly internalType: "uint256";
7003
- readonly name: "timePerTurn";
7004
- readonly type: "uint256";
7005
- }, {
7006
- readonly internalType: "uint256";
7007
- readonly name: "maxPlayerCnt";
7008
- readonly type: "uint256";
7009
- }, {
7010
- readonly internalType: "uint256";
7011
- readonly name: "minPlayerCnt";
7012
- readonly type: "uint256";
7013
- }, {
7014
- readonly internalType: "uint256";
7015
- readonly name: "timeToJoin";
7016
- readonly type: "uint256";
7017
- }, {
7018
- readonly internalType: "uint256";
7019
- readonly name: "maxTurns";
7020
- readonly type: "uint256";
7021
- }, {
7022
- readonly internalType: "uint256";
7023
- readonly name: "voteCredits";
7024
- readonly type: "uint256";
7025
- }, {
7026
- readonly internalType: "address";
7027
- readonly name: "gameMaster";
7028
- readonly type: "address";
7285
+ readonly type: "uint256";
7286
+ }, {
7287
+ readonly internalType: "uint96";
7288
+ readonly name: "principalTimeConstant";
7289
+ readonly type: "uint96";
7290
+ }, {
7291
+ readonly internalType: "address";
7292
+ readonly name: "gamePaymentToken";
7293
+ readonly type: "address";
7294
+ }, {
7295
+ readonly internalType: "address";
7296
+ readonly name: "rankTokenAddress";
7297
+ readonly type: "address";
7298
+ }, {
7299
+ readonly internalType: "address";
7300
+ readonly name: "beneficiary";
7301
+ readonly type: "address";
7302
+ }, {
7303
+ readonly internalType: "uint256";
7304
+ readonly name: "minimumParticipantsInCircle";
7305
+ readonly type: "uint256";
7306
+ }, {
7307
+ readonly internalType: "address";
7308
+ readonly name: "derivedToken";
7309
+ readonly type: "address";
7310
+ }];
7311
+ readonly internalType: "struct LibRankify.CommonParams";
7312
+ readonly name: "commonParams";
7313
+ readonly type: "tuple";
7029
7314
  }];
7030
- readonly internalType: "struct IRankifyInstance.GameStateOutput";
7031
- readonly name: "state";
7315
+ readonly internalType: "struct LibRankify.InstanceState";
7316
+ readonly name: "";
7032
7317
  readonly type: "tuple";
7033
7318
  }];
7319
+ readonly stateMutability: "pure";
7320
+ readonly type: "function";
7321
+ }, {
7322
+ readonly inputs: readonly [{
7323
+ readonly internalType: "uint256";
7324
+ readonly name: "gameId";
7325
+ readonly type: "uint256";
7326
+ }];
7327
+ readonly name: "getGM";
7328
+ readonly outputs: readonly [{
7329
+ readonly internalType: "address";
7330
+ readonly name: "";
7331
+ readonly type: "address";
7332
+ }];
7333
+ readonly stateMutability: "view";
7334
+ readonly type: "function";
7335
+ }, {
7336
+ readonly inputs: readonly [{
7337
+ readonly internalType: "uint256";
7338
+ readonly name: "gameId";
7339
+ readonly type: "uint256";
7340
+ }];
7341
+ readonly name: "getGameRank";
7342
+ readonly outputs: readonly [{
7343
+ readonly internalType: "uint256";
7344
+ readonly name: "";
7345
+ readonly type: "uint256";
7346
+ }];
7034
7347
  readonly stateMutability: "view";
7035
7348
  readonly type: "function";
7036
7349
  }, {
@@ -7471,6 +7784,173 @@ export default class InstanceBase {
7471
7784
  }];
7472
7785
  readonly name: "RequirementsConfigured";
7473
7786
  readonly type: "event";
7787
+ }, {
7788
+ readonly inputs: readonly [];
7789
+ readonly name: "getCommonParams";
7790
+ readonly outputs: readonly [{
7791
+ readonly components: readonly [{
7792
+ readonly internalType: "uint256";
7793
+ readonly name: "principalCost";
7794
+ readonly type: "uint256";
7795
+ }, {
7796
+ readonly internalType: "uint96";
7797
+ readonly name: "principalTimeConstant";
7798
+ readonly type: "uint96";
7799
+ }, {
7800
+ readonly internalType: "address";
7801
+ readonly name: "gamePaymentToken";
7802
+ readonly type: "address";
7803
+ }, {
7804
+ readonly internalType: "address";
7805
+ readonly name: "rankTokenAddress";
7806
+ readonly type: "address";
7807
+ }, {
7808
+ readonly internalType: "address";
7809
+ readonly name: "beneficiary";
7810
+ readonly type: "address";
7811
+ }, {
7812
+ readonly internalType: "uint256";
7813
+ readonly name: "minimumParticipantsInCircle";
7814
+ readonly type: "uint256";
7815
+ }, {
7816
+ readonly internalType: "address";
7817
+ readonly name: "derivedToken";
7818
+ readonly type: "address";
7819
+ }];
7820
+ readonly internalType: "struct LibRankify.CommonParams";
7821
+ readonly name: "";
7822
+ readonly type: "tuple";
7823
+ }];
7824
+ readonly stateMutability: "view";
7825
+ readonly type: "function";
7826
+ }, {
7827
+ readonly inputs: readonly [{
7828
+ readonly internalType: "uint256";
7829
+ readonly name: "gameId";
7830
+ readonly type: "uint256";
7831
+ }];
7832
+ readonly name: "getGameState";
7833
+ readonly outputs: readonly [{
7834
+ readonly components: readonly [{
7835
+ readonly internalType: "uint256";
7836
+ readonly name: "rank";
7837
+ readonly type: "uint256";
7838
+ }, {
7839
+ readonly internalType: "uint256";
7840
+ readonly name: "minGameTime";
7841
+ readonly type: "uint256";
7842
+ }, {
7843
+ readonly internalType: "address";
7844
+ readonly name: "createdBy";
7845
+ readonly type: "address";
7846
+ }, {
7847
+ readonly internalType: "uint256";
7848
+ readonly name: "numOngoingProposals";
7849
+ readonly type: "uint256";
7850
+ }, {
7851
+ readonly internalType: "uint256";
7852
+ readonly name: "numPrevProposals";
7853
+ readonly type: "uint256";
7854
+ }, {
7855
+ readonly internalType: "uint256";
7856
+ readonly name: "numCommitments";
7857
+ readonly type: "uint256";
7858
+ }, {
7859
+ readonly internalType: "uint256";
7860
+ readonly name: "numVotesThisTurn";
7861
+ readonly type: "uint256";
7862
+ }, {
7863
+ readonly internalType: "uint256";
7864
+ readonly name: "numVotesPrevTurn";
7865
+ readonly type: "uint256";
7866
+ }, {
7867
+ readonly components: readonly [{
7868
+ readonly internalType: "uint256";
7869
+ readonly name: "voteCredits";
7870
+ readonly type: "uint256";
7871
+ }, {
7872
+ readonly internalType: "uint256";
7873
+ readonly name: "maxQuadraticPoints";
7874
+ readonly type: "uint256";
7875
+ }, {
7876
+ readonly internalType: "uint256";
7877
+ readonly name: "minQuadraticPositions";
7878
+ readonly type: "uint256";
7879
+ }];
7880
+ readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
7881
+ readonly name: "voting";
7882
+ readonly type: "tuple";
7883
+ }, {
7884
+ readonly internalType: "uint256";
7885
+ readonly name: "currentTurn";
7886
+ readonly type: "uint256";
7887
+ }, {
7888
+ readonly internalType: "uint256";
7889
+ readonly name: "turnStartedAt";
7890
+ readonly type: "uint256";
7891
+ }, {
7892
+ readonly internalType: "uint256";
7893
+ readonly name: "registrationOpenAt";
7894
+ readonly type: "uint256";
7895
+ }, {
7896
+ readonly internalType: "uint256";
7897
+ readonly name: "startedAt";
7898
+ readonly type: "uint256";
7899
+ }, {
7900
+ readonly internalType: "bool";
7901
+ readonly name: "hasStarted";
7902
+ readonly type: "bool";
7903
+ }, {
7904
+ readonly internalType: "bool";
7905
+ readonly name: "hasEnded";
7906
+ readonly type: "bool";
7907
+ }, {
7908
+ readonly internalType: "uint256";
7909
+ readonly name: "numPlayersMadeMove";
7910
+ readonly type: "uint256";
7911
+ }, {
7912
+ readonly internalType: "uint256";
7913
+ readonly name: "numActivePlayers";
7914
+ readonly type: "uint256";
7915
+ }, {
7916
+ readonly internalType: "bool";
7917
+ readonly name: "isOvertime";
7918
+ readonly type: "bool";
7919
+ }, {
7920
+ readonly internalType: "uint256";
7921
+ readonly name: "timePerTurn";
7922
+ readonly type: "uint256";
7923
+ }, {
7924
+ readonly internalType: "uint256";
7925
+ readonly name: "maxPlayerCnt";
7926
+ readonly type: "uint256";
7927
+ }, {
7928
+ readonly internalType: "uint256";
7929
+ readonly name: "minPlayerCnt";
7930
+ readonly type: "uint256";
7931
+ }, {
7932
+ readonly internalType: "uint256";
7933
+ readonly name: "timeToJoin";
7934
+ readonly type: "uint256";
7935
+ }, {
7936
+ readonly internalType: "uint256";
7937
+ readonly name: "maxTurns";
7938
+ readonly type: "uint256";
7939
+ }, {
7940
+ readonly internalType: "uint256";
7941
+ readonly name: "voteCredits";
7942
+ readonly type: "uint256";
7943
+ }, {
7944
+ readonly internalType: "address";
7945
+ readonly name: "gameMaster";
7946
+ readonly type: "address";
7947
+ }];
7948
+ readonly internalType: "struct IRankifyInstance.GameStateOutput";
7949
+ readonly name: "state";
7950
+ readonly type: "tuple";
7951
+ }];
7952
+ readonly stateMutability: "view";
7953
+ readonly type: "function";
7474
7954
  }, {
7475
7955
  readonly inputs: readonly [{
7476
7956
  readonly internalType: "uint256";
@@ -7902,6 +8382,14 @@ export default class InstanceBase {
7902
8382
  readonly internalType: "bytes32";
7903
8383
  readonly name: "_TYPE_HASH";
7904
8384
  readonly type: "bytes32";
8385
+ }, {
8386
+ readonly internalType: "string";
8387
+ readonly name: "_NAME";
8388
+ readonly type: "string";
8389
+ }, {
8390
+ readonly internalType: "string";
8391
+ readonly name: "_VERSION";
8392
+ readonly type: "string";
7905
8393
  }];
7906
8394
  readonly stateMutability: "view";
7907
8395
  readonly type: "function";
@@ -8235,13 +8723,38 @@ export default class InstanceBase {
8235
8723
  readonly internalType: "uint256";
8236
8724
  readonly name: "gameId";
8237
8725
  readonly type: "uint256";
8238
- }, {
8239
- readonly indexed: true;
8240
- readonly internalType: "address";
8241
- readonly name: "player";
8242
- readonly type: "address";
8726
+ }, {
8727
+ readonly indexed: true;
8728
+ readonly internalType: "address";
8729
+ readonly name: "player";
8730
+ readonly type: "address";
8731
+ }];
8732
+ readonly name: "PlayerLeft";
8733
+ readonly type: "event";
8734
+ }, {
8735
+ readonly anonymous: false;
8736
+ readonly inputs: readonly [{
8737
+ readonly indexed: true;
8738
+ readonly internalType: "address";
8739
+ readonly name: "player";
8740
+ readonly type: "address";
8741
+ }, {
8742
+ readonly indexed: false;
8743
+ readonly internalType: "uint256";
8744
+ readonly name: "rankId";
8745
+ readonly type: "uint256";
8746
+ }, {
8747
+ readonly indexed: false;
8748
+ readonly internalType: "uint256";
8749
+ readonly name: "amount";
8750
+ readonly type: "uint256";
8751
+ }, {
8752
+ readonly indexed: false;
8753
+ readonly internalType: "uint256";
8754
+ readonly name: "_toMint";
8755
+ readonly type: "uint256";
8243
8756
  }];
8244
- readonly name: "PlayerLeft";
8757
+ readonly name: "RankTokenExited";
8245
8758
  readonly type: "event";
8246
8759
  }, {
8247
8760
  readonly anonymous: false;
@@ -8377,6 +8890,20 @@ export default class InstanceBase {
8377
8890
  }];
8378
8891
  readonly stateMutability: "pure";
8379
8892
  readonly type: "function";
8893
+ }, {
8894
+ readonly inputs: readonly [{
8895
+ readonly internalType: "uint256";
8896
+ readonly name: "rankId";
8897
+ readonly type: "uint256";
8898
+ }, {
8899
+ readonly internalType: "uint256";
8900
+ readonly name: "amount";
8901
+ readonly type: "uint256";
8902
+ }];
8903
+ readonly name: "exitRankToken";
8904
+ readonly outputs: readonly [];
8905
+ readonly stateMutability: "nonpayable";
8906
+ readonly type: "function";
8380
8907
  }, {
8381
8908
  readonly inputs: readonly [{
8382
8909
  readonly internalType: "uint256";
@@ -8424,6 +8951,14 @@ export default class InstanceBase {
8424
8951
  readonly internalType: "address";
8425
8952
  readonly name: "beneficiary";
8426
8953
  readonly type: "address";
8954
+ }, {
8955
+ readonly internalType: "uint256";
8956
+ readonly name: "minimumParticipantsInCircle";
8957
+ readonly type: "uint256";
8958
+ }, {
8959
+ readonly internalType: "address";
8960
+ readonly name: "derivedToken";
8961
+ readonly type: "address";
8427
8962
  }];
8428
8963
  readonly internalType: "struct LibRankify.CommonParams";
8429
8964
  readonly name: "commonParams";
@@ -8463,134 +8998,6 @@ export default class InstanceBase {
8463
8998
  }];
8464
8999
  readonly stateMutability: "view";
8465
9000
  readonly type: "function";
8466
- }, {
8467
- readonly inputs: readonly [{
8468
- readonly internalType: "uint256";
8469
- readonly name: "gameId";
8470
- readonly type: "uint256";
8471
- }];
8472
- readonly name: "getGameState";
8473
- readonly outputs: readonly [{
8474
- readonly components: readonly [{
8475
- readonly internalType: "uint256";
8476
- readonly name: "rank";
8477
- readonly type: "uint256";
8478
- }, {
8479
- readonly internalType: "uint256";
8480
- readonly name: "minGameTime";
8481
- readonly type: "uint256";
8482
- }, {
8483
- readonly internalType: "address";
8484
- readonly name: "createdBy";
8485
- readonly type: "address";
8486
- }, {
8487
- readonly internalType: "uint256";
8488
- readonly name: "numOngoingProposals";
8489
- readonly type: "uint256";
8490
- }, {
8491
- readonly internalType: "uint256";
8492
- readonly name: "numPrevProposals";
8493
- readonly type: "uint256";
8494
- }, {
8495
- readonly internalType: "uint256";
8496
- readonly name: "numCommitments";
8497
- readonly type: "uint256";
8498
- }, {
8499
- readonly internalType: "uint256";
8500
- readonly name: "numVotesThisTurn";
8501
- readonly type: "uint256";
8502
- }, {
8503
- readonly internalType: "uint256";
8504
- readonly name: "numVotesPrevTurn";
8505
- readonly type: "uint256";
8506
- }, {
8507
- readonly components: readonly [{
8508
- readonly internalType: "uint256";
8509
- readonly name: "voteCredits";
8510
- readonly type: "uint256";
8511
- }, {
8512
- readonly internalType: "uint256";
8513
- readonly name: "maxQuadraticPoints";
8514
- readonly type: "uint256";
8515
- }, {
8516
- readonly internalType: "uint256";
8517
- readonly name: "minQuadraticPositions";
8518
- readonly type: "uint256";
8519
- }];
8520
- readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
8521
- readonly name: "voting";
8522
- readonly type: "tuple";
8523
- }, {
8524
- readonly internalType: "uint256";
8525
- readonly name: "currentTurn";
8526
- readonly type: "uint256";
8527
- }, {
8528
- readonly internalType: "uint256";
8529
- readonly name: "turnStartedAt";
8530
- readonly type: "uint256";
8531
- }, {
8532
- readonly internalType: "uint256";
8533
- readonly name: "registrationOpenAt";
8534
- readonly type: "uint256";
8535
- }, {
8536
- readonly internalType: "uint256";
8537
- readonly name: "startedAt";
8538
- readonly type: "uint256";
8539
- }, {
8540
- readonly internalType: "bool";
8541
- readonly name: "hasStarted";
8542
- readonly type: "bool";
8543
- }, {
8544
- readonly internalType: "bool";
8545
- readonly name: "hasEnded";
8546
- readonly type: "bool";
8547
- }, {
8548
- readonly internalType: "uint256";
8549
- readonly name: "numPlayersMadeMove";
8550
- readonly type: "uint256";
8551
- }, {
8552
- readonly internalType: "uint256";
8553
- readonly name: "numActivePlayers";
8554
- readonly type: "uint256";
8555
- }, {
8556
- readonly internalType: "bool";
8557
- readonly name: "isOvertime";
8558
- readonly type: "bool";
8559
- }, {
8560
- readonly internalType: "uint256";
8561
- readonly name: "timePerTurn";
8562
- readonly type: "uint256";
8563
- }, {
8564
- readonly internalType: "uint256";
8565
- readonly name: "maxPlayerCnt";
8566
- readonly type: "uint256";
8567
- }, {
8568
- readonly internalType: "uint256";
8569
- readonly name: "minPlayerCnt";
8570
- readonly type: "uint256";
8571
- }, {
8572
- readonly internalType: "uint256";
8573
- readonly name: "timeToJoin";
8574
- readonly type: "uint256";
8575
- }, {
8576
- readonly internalType: "uint256";
8577
- readonly name: "maxTurns";
8578
- readonly type: "uint256";
8579
- }, {
8580
- readonly internalType: "uint256";
8581
- readonly name: "voteCredits";
8582
- readonly type: "uint256";
8583
- }, {
8584
- readonly internalType: "address";
8585
- readonly name: "gameMaster";
8586
- readonly type: "address";
8587
- }];
8588
- readonly internalType: "struct IRankifyInstance.GameStateOutput";
8589
- readonly name: "state";
8590
- readonly type: "tuple";
8591
- }];
8592
- readonly stateMutability: "view";
8593
- readonly type: "function";
8594
9001
  }, {
8595
9002
  readonly inputs: readonly [{
8596
9003
  readonly internalType: "uint256";
@@ -9022,13 +9429,180 @@ export default class InstanceBase {
9022
9429
  readonly name: "contracts";
9023
9430
  readonly type: "tuple[]";
9024
9431
  }];
9025
- readonly indexed: false;
9026
- readonly internalType: "struct LibCoinVending.ConfigPosition";
9027
- readonly name: "config";
9432
+ readonly indexed: false;
9433
+ readonly internalType: "struct LibCoinVending.ConfigPosition";
9434
+ readonly name: "config";
9435
+ readonly type: "tuple";
9436
+ }];
9437
+ readonly name: "RequirementsConfigured";
9438
+ readonly type: "event";
9439
+ }, {
9440
+ readonly inputs: readonly [];
9441
+ readonly name: "getCommonParams";
9442
+ readonly outputs: readonly [{
9443
+ readonly components: readonly [{
9444
+ readonly internalType: "uint256";
9445
+ readonly name: "principalCost";
9446
+ readonly type: "uint256";
9447
+ }, {
9448
+ readonly internalType: "uint96";
9449
+ readonly name: "principalTimeConstant";
9450
+ readonly type: "uint96";
9451
+ }, {
9452
+ readonly internalType: "address";
9453
+ readonly name: "gamePaymentToken";
9454
+ readonly type: "address";
9455
+ }, {
9456
+ readonly internalType: "address";
9457
+ readonly name: "rankTokenAddress";
9458
+ readonly type: "address";
9459
+ }, {
9460
+ readonly internalType: "address";
9461
+ readonly name: "beneficiary";
9462
+ readonly type: "address";
9463
+ }, {
9464
+ readonly internalType: "uint256";
9465
+ readonly name: "minimumParticipantsInCircle";
9466
+ readonly type: "uint256";
9467
+ }, {
9468
+ readonly internalType: "address";
9469
+ readonly name: "derivedToken";
9470
+ readonly type: "address";
9471
+ }];
9472
+ readonly internalType: "struct LibRankify.CommonParams";
9473
+ readonly name: "";
9474
+ readonly type: "tuple";
9475
+ }];
9476
+ readonly stateMutability: "view";
9477
+ readonly type: "function";
9478
+ }, {
9479
+ readonly inputs: readonly [{
9480
+ readonly internalType: "uint256";
9481
+ readonly name: "gameId";
9482
+ readonly type: "uint256";
9483
+ }];
9484
+ readonly name: "getGameState";
9485
+ readonly outputs: readonly [{
9486
+ readonly components: readonly [{
9487
+ readonly internalType: "uint256";
9488
+ readonly name: "rank";
9489
+ readonly type: "uint256";
9490
+ }, {
9491
+ readonly internalType: "uint256";
9492
+ readonly name: "minGameTime";
9493
+ readonly type: "uint256";
9494
+ }, {
9495
+ readonly internalType: "address";
9496
+ readonly name: "createdBy";
9497
+ readonly type: "address";
9498
+ }, {
9499
+ readonly internalType: "uint256";
9500
+ readonly name: "numOngoingProposals";
9501
+ readonly type: "uint256";
9502
+ }, {
9503
+ readonly internalType: "uint256";
9504
+ readonly name: "numPrevProposals";
9505
+ readonly type: "uint256";
9506
+ }, {
9507
+ readonly internalType: "uint256";
9508
+ readonly name: "numCommitments";
9509
+ readonly type: "uint256";
9510
+ }, {
9511
+ readonly internalType: "uint256";
9512
+ readonly name: "numVotesThisTurn";
9513
+ readonly type: "uint256";
9514
+ }, {
9515
+ readonly internalType: "uint256";
9516
+ readonly name: "numVotesPrevTurn";
9517
+ readonly type: "uint256";
9518
+ }, {
9519
+ readonly components: readonly [{
9520
+ readonly internalType: "uint256";
9521
+ readonly name: "voteCredits";
9522
+ readonly type: "uint256";
9523
+ }, {
9524
+ readonly internalType: "uint256";
9525
+ readonly name: "maxQuadraticPoints";
9526
+ readonly type: "uint256";
9527
+ }, {
9528
+ readonly internalType: "uint256";
9529
+ readonly name: "minQuadraticPositions";
9530
+ readonly type: "uint256";
9531
+ }];
9532
+ readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
9533
+ readonly name: "voting";
9534
+ readonly type: "tuple";
9535
+ }, {
9536
+ readonly internalType: "uint256";
9537
+ readonly name: "currentTurn";
9538
+ readonly type: "uint256";
9539
+ }, {
9540
+ readonly internalType: "uint256";
9541
+ readonly name: "turnStartedAt";
9542
+ readonly type: "uint256";
9543
+ }, {
9544
+ readonly internalType: "uint256";
9545
+ readonly name: "registrationOpenAt";
9546
+ readonly type: "uint256";
9547
+ }, {
9548
+ readonly internalType: "uint256";
9549
+ readonly name: "startedAt";
9550
+ readonly type: "uint256";
9551
+ }, {
9552
+ readonly internalType: "bool";
9553
+ readonly name: "hasStarted";
9554
+ readonly type: "bool";
9555
+ }, {
9556
+ readonly internalType: "bool";
9557
+ readonly name: "hasEnded";
9558
+ readonly type: "bool";
9559
+ }, {
9560
+ readonly internalType: "uint256";
9561
+ readonly name: "numPlayersMadeMove";
9562
+ readonly type: "uint256";
9563
+ }, {
9564
+ readonly internalType: "uint256";
9565
+ readonly name: "numActivePlayers";
9566
+ readonly type: "uint256";
9567
+ }, {
9568
+ readonly internalType: "bool";
9569
+ readonly name: "isOvertime";
9570
+ readonly type: "bool";
9571
+ }, {
9572
+ readonly internalType: "uint256";
9573
+ readonly name: "timePerTurn";
9574
+ readonly type: "uint256";
9575
+ }, {
9576
+ readonly internalType: "uint256";
9577
+ readonly name: "maxPlayerCnt";
9578
+ readonly type: "uint256";
9579
+ }, {
9580
+ readonly internalType: "uint256";
9581
+ readonly name: "minPlayerCnt";
9582
+ readonly type: "uint256";
9583
+ }, {
9584
+ readonly internalType: "uint256";
9585
+ readonly name: "timeToJoin";
9586
+ readonly type: "uint256";
9587
+ }, {
9588
+ readonly internalType: "uint256";
9589
+ readonly name: "maxTurns";
9590
+ readonly type: "uint256";
9591
+ }, {
9592
+ readonly internalType: "uint256";
9593
+ readonly name: "voteCredits";
9594
+ readonly type: "uint256";
9595
+ }, {
9596
+ readonly internalType: "address";
9597
+ readonly name: "gameMaster";
9598
+ readonly type: "address";
9599
+ }];
9600
+ readonly internalType: "struct IRankifyInstance.GameStateOutput";
9601
+ readonly name: "state";
9028
9602
  readonly type: "tuple";
9029
9603
  }];
9030
- readonly name: "RequirementsConfigured";
9031
- readonly type: "event";
9604
+ readonly stateMutability: "view";
9605
+ readonly type: "function";
9032
9606
  }, {
9033
9607
  readonly inputs: readonly [{
9034
9608
  readonly internalType: "uint256";
@@ -9467,6 +10041,8 @@ export default class InstanceBase {
9467
10041
  gamePaymentToken: `0x${string}`;
9468
10042
  rankTokenAddress: `0x${string}`;
9469
10043
  beneficiary: `0x${string}`;
10044
+ minimumParticipantsInCircle: bigint;
10045
+ derivedToken: `0x${string}`;
9470
10046
  };
9471
10047
  }>;
9472
10048
  /**
@@ -9516,6 +10092,14 @@ export default class InstanceBase {
9516
10092
  readonly internalType: "bytes32";
9517
10093
  readonly name: "_TYPE_HASH";
9518
10094
  readonly type: "bytes32";
10095
+ }, {
10096
+ readonly internalType: "string";
10097
+ readonly name: "_NAME";
10098
+ readonly type: "string";
10099
+ }, {
10100
+ readonly internalType: "string";
10101
+ readonly name: "_VERSION";
10102
+ readonly type: "string";
9519
10103
  }];
9520
10104
  readonly stateMutability: "view";
9521
10105
  readonly type: "function";
@@ -9857,6 +10441,31 @@ export default class InstanceBase {
9857
10441
  }];
9858
10442
  readonly name: "PlayerLeft";
9859
10443
  readonly type: "event";
10444
+ }, {
10445
+ readonly anonymous: false;
10446
+ readonly inputs: readonly [{
10447
+ readonly indexed: true;
10448
+ readonly internalType: "address";
10449
+ readonly name: "player";
10450
+ readonly type: "address";
10451
+ }, {
10452
+ readonly indexed: false;
10453
+ readonly internalType: "uint256";
10454
+ readonly name: "rankId";
10455
+ readonly type: "uint256";
10456
+ }, {
10457
+ readonly indexed: false;
10458
+ readonly internalType: "uint256";
10459
+ readonly name: "amount";
10460
+ readonly type: "uint256";
10461
+ }, {
10462
+ readonly indexed: false;
10463
+ readonly internalType: "uint256";
10464
+ readonly name: "_toMint";
10465
+ readonly type: "uint256";
10466
+ }];
10467
+ readonly name: "RankTokenExited";
10468
+ readonly type: "event";
9860
10469
  }, {
9861
10470
  readonly anonymous: false;
9862
10471
  readonly inputs: readonly [{
@@ -9994,74 +10603,16 @@ export default class InstanceBase {
9994
10603
  }, {
9995
10604
  readonly inputs: readonly [{
9996
10605
  readonly internalType: "uint256";
9997
- readonly name: "gameId";
10606
+ readonly name: "rankId";
9998
10607
  readonly type: "uint256";
9999
- }];
10000
- readonly name: "gameCreator";
10001
- readonly outputs: readonly [{
10002
- readonly internalType: "address";
10003
- readonly name: "";
10004
- readonly type: "address";
10005
- }];
10006
- readonly stateMutability: "view";
10007
- readonly type: "function";
10008
- }, {
10009
- readonly inputs: readonly [];
10010
- readonly name: "getContractState";
10011
- readonly outputs: readonly [{
10012
- readonly components: readonly [{
10013
- readonly internalType: "uint256";
10014
- readonly name: "numGames";
10015
- readonly type: "uint256";
10016
- }, {
10017
- readonly internalType: "bool";
10018
- readonly name: "contractInitialized";
10019
- readonly type: "bool";
10020
- }, {
10021
- readonly components: readonly [{
10022
- readonly internalType: "uint256";
10023
- readonly name: "principalCost";
10024
- readonly type: "uint256";
10025
- }, {
10026
- readonly internalType: "uint96";
10027
- readonly name: "principalTimeConstant";
10028
- readonly type: "uint96";
10029
- }, {
10030
- readonly internalType: "address";
10031
- readonly name: "gamePaymentToken";
10032
- readonly type: "address";
10033
- }, {
10034
- readonly internalType: "address";
10035
- readonly name: "rankTokenAddress";
10036
- readonly type: "address";
10037
- }, {
10038
- readonly internalType: "address";
10039
- readonly name: "beneficiary";
10040
- readonly type: "address";
10041
- }];
10042
- readonly internalType: "struct LibRankify.CommonParams";
10043
- readonly name: "commonParams";
10044
- readonly type: "tuple";
10045
- }];
10046
- readonly internalType: "struct LibRankify.InstanceState";
10047
- readonly name: "";
10048
- readonly type: "tuple";
10049
- }];
10050
- readonly stateMutability: "pure";
10051
- readonly type: "function";
10052
- }, {
10053
- readonly inputs: readonly [{
10608
+ }, {
10054
10609
  readonly internalType: "uint256";
10055
- readonly name: "gameId";
10610
+ readonly name: "amount";
10056
10611
  readonly type: "uint256";
10057
10612
  }];
10058
- readonly name: "getGM";
10059
- readonly outputs: readonly [{
10060
- readonly internalType: "address";
10061
- readonly name: "";
10062
- readonly type: "address";
10063
- }];
10064
- readonly stateMutability: "view";
10613
+ readonly name: "exitRankToken";
10614
+ readonly outputs: readonly [];
10615
+ readonly stateMutability: "nonpayable";
10065
10616
  readonly type: "function";
10066
10617
  }, {
10067
10618
  readonly inputs: readonly [{
@@ -10069,140 +10620,92 @@ export default class InstanceBase {
10069
10620
  readonly name: "gameId";
10070
10621
  readonly type: "uint256";
10071
10622
  }];
10072
- readonly name: "getGameRank";
10623
+ readonly name: "gameCreator";
10073
10624
  readonly outputs: readonly [{
10074
- readonly internalType: "uint256";
10625
+ readonly internalType: "address";
10075
10626
  readonly name: "";
10076
- readonly type: "uint256";
10627
+ readonly type: "address";
10077
10628
  }];
10078
10629
  readonly stateMutability: "view";
10079
10630
  readonly type: "function";
10080
10631
  }, {
10081
- readonly inputs: readonly [{
10082
- readonly internalType: "uint256";
10083
- readonly name: "gameId";
10084
- readonly type: "uint256";
10085
- }];
10086
- readonly name: "getGameState";
10087
- readonly outputs: readonly [{
10088
- readonly components: readonly [{
10089
- readonly internalType: "uint256";
10090
- readonly name: "rank";
10091
- readonly type: "uint256";
10092
- }, {
10093
- readonly internalType: "uint256";
10094
- readonly name: "minGameTime";
10095
- readonly type: "uint256";
10096
- }, {
10097
- readonly internalType: "address";
10098
- readonly name: "createdBy";
10099
- readonly type: "address";
10100
- }, {
10101
- readonly internalType: "uint256";
10102
- readonly name: "numOngoingProposals";
10103
- readonly type: "uint256";
10104
- }, {
10105
- readonly internalType: "uint256";
10106
- readonly name: "numPrevProposals";
10107
- readonly type: "uint256";
10108
- }, {
10109
- readonly internalType: "uint256";
10110
- readonly name: "numCommitments";
10111
- readonly type: "uint256";
10112
- }, {
10113
- readonly internalType: "uint256";
10114
- readonly name: "numVotesThisTurn";
10115
- readonly type: "uint256";
10116
- }, {
10117
- readonly internalType: "uint256";
10118
- readonly name: "numVotesPrevTurn";
10119
- readonly type: "uint256";
10120
- }, {
10121
- readonly components: readonly [{
10122
- readonly internalType: "uint256";
10123
- readonly name: "voteCredits";
10124
- readonly type: "uint256";
10125
- }, {
10126
- readonly internalType: "uint256";
10127
- readonly name: "maxQuadraticPoints";
10128
- readonly type: "uint256";
10129
- }, {
10130
- readonly internalType: "uint256";
10131
- readonly name: "minQuadraticPositions";
10132
- readonly type: "uint256";
10133
- }];
10134
- readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
10135
- readonly name: "voting";
10136
- readonly type: "tuple";
10137
- }, {
10138
- readonly internalType: "uint256";
10139
- readonly name: "currentTurn";
10140
- readonly type: "uint256";
10141
- }, {
10142
- readonly internalType: "uint256";
10143
- readonly name: "turnStartedAt";
10144
- readonly type: "uint256";
10145
- }, {
10146
- readonly internalType: "uint256";
10147
- readonly name: "registrationOpenAt";
10148
- readonly type: "uint256";
10149
- }, {
10150
- readonly internalType: "uint256";
10151
- readonly name: "startedAt";
10152
- readonly type: "uint256";
10153
- }, {
10154
- readonly internalType: "bool";
10155
- readonly name: "hasStarted";
10156
- readonly type: "bool";
10157
- }, {
10158
- readonly internalType: "bool";
10159
- readonly name: "hasEnded";
10160
- readonly type: "bool";
10161
- }, {
10162
- readonly internalType: "uint256";
10163
- readonly name: "numPlayersMadeMove";
10164
- readonly type: "uint256";
10165
- }, {
10632
+ readonly inputs: readonly [];
10633
+ readonly name: "getContractState";
10634
+ readonly outputs: readonly [{
10635
+ readonly components: readonly [{
10166
10636
  readonly internalType: "uint256";
10167
- readonly name: "numActivePlayers";
10637
+ readonly name: "numGames";
10168
10638
  readonly type: "uint256";
10169
10639
  }, {
10170
10640
  readonly internalType: "bool";
10171
- readonly name: "isOvertime";
10641
+ readonly name: "contractInitialized";
10172
10642
  readonly type: "bool";
10173
10643
  }, {
10174
- readonly internalType: "uint256";
10175
- readonly name: "timePerTurn";
10176
- readonly type: "uint256";
10177
- }, {
10178
- readonly internalType: "uint256";
10179
- readonly name: "maxPlayerCnt";
10180
- readonly type: "uint256";
10181
- }, {
10182
- readonly internalType: "uint256";
10183
- readonly name: "minPlayerCnt";
10184
- readonly type: "uint256";
10185
- }, {
10186
- readonly internalType: "uint256";
10187
- readonly name: "timeToJoin";
10188
- readonly type: "uint256";
10189
- }, {
10190
- readonly internalType: "uint256";
10191
- readonly name: "maxTurns";
10192
- readonly type: "uint256";
10193
- }, {
10194
- readonly internalType: "uint256";
10195
- readonly name: "voteCredits";
10196
- readonly type: "uint256";
10197
- }, {
10198
- readonly internalType: "address";
10199
- readonly name: "gameMaster";
10200
- readonly type: "address";
10644
+ readonly components: readonly [{
10645
+ readonly internalType: "uint256";
10646
+ readonly name: "principalCost";
10647
+ readonly type: "uint256";
10648
+ }, {
10649
+ readonly internalType: "uint96";
10650
+ readonly name: "principalTimeConstant";
10651
+ readonly type: "uint96";
10652
+ }, {
10653
+ readonly internalType: "address";
10654
+ readonly name: "gamePaymentToken";
10655
+ readonly type: "address";
10656
+ }, {
10657
+ readonly internalType: "address";
10658
+ readonly name: "rankTokenAddress";
10659
+ readonly type: "address";
10660
+ }, {
10661
+ readonly internalType: "address";
10662
+ readonly name: "beneficiary";
10663
+ readonly type: "address";
10664
+ }, {
10665
+ readonly internalType: "uint256";
10666
+ readonly name: "minimumParticipantsInCircle";
10667
+ readonly type: "uint256";
10668
+ }, {
10669
+ readonly internalType: "address";
10670
+ readonly name: "derivedToken";
10671
+ readonly type: "address";
10672
+ }];
10673
+ readonly internalType: "struct LibRankify.CommonParams";
10674
+ readonly name: "commonParams";
10675
+ readonly type: "tuple";
10201
10676
  }];
10202
- readonly internalType: "struct IRankifyInstance.GameStateOutput";
10203
- readonly name: "state";
10677
+ readonly internalType: "struct LibRankify.InstanceState";
10678
+ readonly name: "";
10204
10679
  readonly type: "tuple";
10205
10680
  }];
10681
+ readonly stateMutability: "pure";
10682
+ readonly type: "function";
10683
+ }, {
10684
+ readonly inputs: readonly [{
10685
+ readonly internalType: "uint256";
10686
+ readonly name: "gameId";
10687
+ readonly type: "uint256";
10688
+ }];
10689
+ readonly name: "getGM";
10690
+ readonly outputs: readonly [{
10691
+ readonly internalType: "address";
10692
+ readonly name: "";
10693
+ readonly type: "address";
10694
+ }];
10695
+ readonly stateMutability: "view";
10696
+ readonly type: "function";
10697
+ }, {
10698
+ readonly inputs: readonly [{
10699
+ readonly internalType: "uint256";
10700
+ readonly name: "gameId";
10701
+ readonly type: "uint256";
10702
+ }];
10703
+ readonly name: "getGameRank";
10704
+ readonly outputs: readonly [{
10705
+ readonly internalType: "uint256";
10706
+ readonly name: "";
10707
+ readonly type: "uint256";
10708
+ }];
10206
10709
  readonly stateMutability: "view";
10207
10710
  readonly type: "function";
10208
10711
  }, {
@@ -10643,6 +11146,173 @@ export default class InstanceBase {
10643
11146
  }];
10644
11147
  readonly name: "RequirementsConfigured";
10645
11148
  readonly type: "event";
11149
+ }, {
11150
+ readonly inputs: readonly [];
11151
+ readonly name: "getCommonParams";
11152
+ readonly outputs: readonly [{
11153
+ readonly components: readonly [{
11154
+ readonly internalType: "uint256";
11155
+ readonly name: "principalCost";
11156
+ readonly type: "uint256";
11157
+ }, {
11158
+ readonly internalType: "uint96";
11159
+ readonly name: "principalTimeConstant";
11160
+ readonly type: "uint96";
11161
+ }, {
11162
+ readonly internalType: "address";
11163
+ readonly name: "gamePaymentToken";
11164
+ readonly type: "address";
11165
+ }, {
11166
+ readonly internalType: "address";
11167
+ readonly name: "rankTokenAddress";
11168
+ readonly type: "address";
11169
+ }, {
11170
+ readonly internalType: "address";
11171
+ readonly name: "beneficiary";
11172
+ readonly type: "address";
11173
+ }, {
11174
+ readonly internalType: "uint256";
11175
+ readonly name: "minimumParticipantsInCircle";
11176
+ readonly type: "uint256";
11177
+ }, {
11178
+ readonly internalType: "address";
11179
+ readonly name: "derivedToken";
11180
+ readonly type: "address";
11181
+ }];
11182
+ readonly internalType: "struct LibRankify.CommonParams";
11183
+ readonly name: "";
11184
+ readonly type: "tuple";
11185
+ }];
11186
+ readonly stateMutability: "view";
11187
+ readonly type: "function";
11188
+ }, {
11189
+ readonly inputs: readonly [{
11190
+ readonly internalType: "uint256";
11191
+ readonly name: "gameId";
11192
+ readonly type: "uint256";
11193
+ }];
11194
+ readonly name: "getGameState";
11195
+ readonly outputs: readonly [{
11196
+ readonly components: readonly [{
11197
+ readonly internalType: "uint256";
11198
+ readonly name: "rank";
11199
+ readonly type: "uint256";
11200
+ }, {
11201
+ readonly internalType: "uint256";
11202
+ readonly name: "minGameTime";
11203
+ readonly type: "uint256";
11204
+ }, {
11205
+ readonly internalType: "address";
11206
+ readonly name: "createdBy";
11207
+ readonly type: "address";
11208
+ }, {
11209
+ readonly internalType: "uint256";
11210
+ readonly name: "numOngoingProposals";
11211
+ readonly type: "uint256";
11212
+ }, {
11213
+ readonly internalType: "uint256";
11214
+ readonly name: "numPrevProposals";
11215
+ readonly type: "uint256";
11216
+ }, {
11217
+ readonly internalType: "uint256";
11218
+ readonly name: "numCommitments";
11219
+ readonly type: "uint256";
11220
+ }, {
11221
+ readonly internalType: "uint256";
11222
+ readonly name: "numVotesThisTurn";
11223
+ readonly type: "uint256";
11224
+ }, {
11225
+ readonly internalType: "uint256";
11226
+ readonly name: "numVotesPrevTurn";
11227
+ readonly type: "uint256";
11228
+ }, {
11229
+ readonly components: readonly [{
11230
+ readonly internalType: "uint256";
11231
+ readonly name: "voteCredits";
11232
+ readonly type: "uint256";
11233
+ }, {
11234
+ readonly internalType: "uint256";
11235
+ readonly name: "maxQuadraticPoints";
11236
+ readonly type: "uint256";
11237
+ }, {
11238
+ readonly internalType: "uint256";
11239
+ readonly name: "minQuadraticPositions";
11240
+ readonly type: "uint256";
11241
+ }];
11242
+ readonly internalType: "struct LibQuadraticVoting.qVotingStruct";
11243
+ readonly name: "voting";
11244
+ readonly type: "tuple";
11245
+ }, {
11246
+ readonly internalType: "uint256";
11247
+ readonly name: "currentTurn";
11248
+ readonly type: "uint256";
11249
+ }, {
11250
+ readonly internalType: "uint256";
11251
+ readonly name: "turnStartedAt";
11252
+ readonly type: "uint256";
11253
+ }, {
11254
+ readonly internalType: "uint256";
11255
+ readonly name: "registrationOpenAt";
11256
+ readonly type: "uint256";
11257
+ }, {
11258
+ readonly internalType: "uint256";
11259
+ readonly name: "startedAt";
11260
+ readonly type: "uint256";
11261
+ }, {
11262
+ readonly internalType: "bool";
11263
+ readonly name: "hasStarted";
11264
+ readonly type: "bool";
11265
+ }, {
11266
+ readonly internalType: "bool";
11267
+ readonly name: "hasEnded";
11268
+ readonly type: "bool";
11269
+ }, {
11270
+ readonly internalType: "uint256";
11271
+ readonly name: "numPlayersMadeMove";
11272
+ readonly type: "uint256";
11273
+ }, {
11274
+ readonly internalType: "uint256";
11275
+ readonly name: "numActivePlayers";
11276
+ readonly type: "uint256";
11277
+ }, {
11278
+ readonly internalType: "bool";
11279
+ readonly name: "isOvertime";
11280
+ readonly type: "bool";
11281
+ }, {
11282
+ readonly internalType: "uint256";
11283
+ readonly name: "timePerTurn";
11284
+ readonly type: "uint256";
11285
+ }, {
11286
+ readonly internalType: "uint256";
11287
+ readonly name: "maxPlayerCnt";
11288
+ readonly type: "uint256";
11289
+ }, {
11290
+ readonly internalType: "uint256";
11291
+ readonly name: "minPlayerCnt";
11292
+ readonly type: "uint256";
11293
+ }, {
11294
+ readonly internalType: "uint256";
11295
+ readonly name: "timeToJoin";
11296
+ readonly type: "uint256";
11297
+ }, {
11298
+ readonly internalType: "uint256";
11299
+ readonly name: "maxTurns";
11300
+ readonly type: "uint256";
11301
+ }, {
11302
+ readonly internalType: "uint256";
11303
+ readonly name: "voteCredits";
11304
+ readonly type: "uint256";
11305
+ }, {
11306
+ readonly internalType: "address";
11307
+ readonly name: "gameMaster";
11308
+ readonly type: "address";
11309
+ }];
11310
+ readonly internalType: "struct IRankifyInstance.GameStateOutput";
11311
+ readonly name: "state";
11312
+ readonly type: "tuple";
11313
+ }];
11314
+ readonly stateMutability: "view";
11315
+ readonly type: "function";
10646
11316
  }, {
10647
11317
  readonly inputs: readonly [{
10648
11318
  readonly internalType: "uint256";
@@ -11048,61 +11718,31 @@ export default class InstanceBase {
11048
11718
  * @param gameId - The ID of the game.
11049
11719
  * @returns A promise that resolves to an object containing the game state.
11050
11720
  */
11051
- getGameState: (gameId: bigint) => Promise<{
11052
- gameMaster: `0x${string}`;
11053
- joinRequirements: {
11054
- ethValues: {
11055
- have: bigint;
11056
- lock: bigint;
11057
- burn: bigint;
11058
- pay: bigint;
11059
- bet: bigint;
11060
- };
11061
- timesRefunded: bigint;
11062
- timesReleased: bigint;
11063
- timesFunded: bigint;
11064
- contractAddresses: readonly `0x${string}`[];
11065
- contractIds: readonly bigint[];
11066
- contractTypes: readonly number[];
11067
- _isConfigured: boolean;
11068
- };
11069
- requirementsPerContract: {
11070
- have: {
11071
- data: `0x${string}`;
11072
- amount: bigint;
11073
- };
11074
- lock: {
11075
- data: `0x${string}`;
11076
- amount: bigint;
11077
- };
11078
- burn: {
11079
- data: `0x${string}`;
11080
- amount: bigint;
11081
- };
11082
- pay: {
11083
- data: `0x${string}`;
11084
- amount: bigint;
11085
- };
11086
- bet: {
11087
- data: `0x${string}`;
11088
- amount: bigint;
11089
- };
11090
- }[];
11091
- scores: readonly [readonly `0x${string}`[], readonly bigint[]];
11092
- currentTurn: bigint;
11093
- isFinished: boolean;
11094
- isOvertime: boolean;
11095
- isLastTurn: boolean;
11096
- isOpen: boolean;
11097
- createdBy: `0x${string}`;
11098
- gameRank: bigint;
11099
- players: readonly `0x${string}`[];
11100
- canStart: boolean;
11101
- gamePhase: gameStatusEnum;
11721
+ getGameStateDetails: (gameId: bigint) => Promise<GameState>;
11722
+ getGameStates: ({ pageParam, pageSize, }: {
11723
+ pageParam?: number;
11724
+ pageSize?: number;
11725
+ }) => Promise<{
11726
+ items: (ContractFunctionReturnType<typeof instanceAbi, "view", "getGameState"> & {
11727
+ gamePhase: gameStatusEnum;
11728
+ })[];
11729
+ nextPage: number | undefined;
11730
+ hasMore: boolean;
11731
+ }>;
11732
+ getEIP712Domain: () => Promise<{
11733
+ domainSeparator: `0x${string}`;
11734
+ chainId: bigint;
11735
+ verifierContract: `0x${string}`;
11736
+ hashedName: `0x${string}`;
11737
+ hashedVersion: `0x${string}`;
11738
+ typeHash: `0x${string}`;
11739
+ name: string;
11740
+ version: string;
11102
11741
  }>;
11103
11742
  }
11104
11743
  /**
11105
11744
  * Contract type for Rankify instance
11106
11745
  */
11107
11746
  export type RankifyContract = GetContractReturnType<typeof instanceAbi, PublicClient>;
11747
+ export {};
11108
11748
  //# sourceMappingURL=InstanceBase.d.ts.map