@peeramid-labs/sdk 3.11.1 → 3.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/cli/abis/IRankifyInstance.js +167 -0
- package/cli/abis/IRankifyInstance.js.map +1 -1
- package/cli/abis/LibRankify.js +298 -0
- package/cli/abis/LibRankify.js.map +1 -0
- package/cli/abis/MAODistribution.js +30 -10
- package/cli/abis/MAODistribution.js.map +1 -1
- package/cli/abis/RankifyDiamondInstance.js +442 -242
- package/cli/abis/RankifyDiamondInstance.js.map +1 -1
- package/cli/abis/RankifyInstanceGameMastersFacet.js +0 -21
- package/cli/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/cli/abis/RankifyInstanceMainFacet.js +585 -31
- package/cli/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/cli/abis/RankifyInstanceRequirementsFacet.js +0 -333
- package/cli/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/cli/abis/index.js +6 -2
- package/cli/abis/index.js.map +1 -1
- package/cli/abis/superinterface.js +32 -18
- package/cli/abis/superinterface.js.map +1 -1
- package/cli/cli/commands/blockchain/index.js +1 -3
- package/cli/cli/commands/blockchain/index.js.map +1 -1
- package/cli/cli/commands/blockchain/mine.js.map +1 -1
- package/cli/cli/commands/distributions/add.js.map +1 -1
- package/cli/cli/commands/distributions/list.js.map +1 -1
- package/cli/cli/commands/distributions/remove.js.map +1 -1
- package/cli/cli/commands/distributions/state.js.map +1 -1
- package/cli/cli/commands/fellowship/create.js +9 -2
- package/cli/cli/commands/fellowship/create.js.map +1 -1
- package/cli/cli/commands/fellowship/eip712.js.map +1 -1
- package/cli/cli/commands/fellowship/game/cancel.js.map +1 -1
- package/cli/cli/commands/fellowship/game/create.js +15 -22
- package/cli/cli/commands/fellowship/game/create.js.map +1 -1
- package/cli/cli/commands/fellowship/game/end-turn.js.map +1 -1
- package/cli/cli/commands/fellowship/game/join.js +1 -1
- package/cli/cli/commands/fellowship/game/join.js.map +1 -1
- package/cli/cli/commands/fellowship/game/list.js.map +1 -1
- package/cli/cli/commands/fellowship/game/propose.js +1 -1
- package/cli/cli/commands/fellowship/game/propose.js.map +1 -1
- package/cli/cli/commands/fellowship/game/start.js.map +1 -1
- package/cli/cli/commands/fellowship/game/vote.js.map +1 -1
- package/cli/cli/commands/fellowship/list.js.map +1 -1
- package/cli/cli/commands/fellowship/params.js.map +1 -1
- package/cli/cli/commands/getPk.js.map +1 -1
- package/cli/cli/commands/instances/list.js.map +1 -1
- package/cli/cli/commands/playbook.js +5 -4
- package/cli/cli/commands/playbook.js.map +1 -1
- package/cli/cli/commands/rankify/games.js.map +1 -1
- package/cli/cli/getPk.js +2 -2
- package/cli/cli/getPk.js.map +1 -1
- package/cli/cli/utils.js +1 -1
- package/cli/eds/Distributor.js +1 -1
- package/cli/eds/Distributor.js.map +1 -1
- package/cli/rankify/GameMaster.js +116 -27
- package/cli/rankify/GameMaster.js.map +1 -1
- package/cli/rankify/InstanceBase.js +33 -12
- package/cli/rankify/InstanceBase.js.map +1 -1
- package/cli/rankify/MAODistributor.js +56 -3
- package/cli/rankify/MAODistributor.js.map +1 -1
- package/cli/rankify/Player.js +40 -1
- package/cli/rankify/Player.js.map +1 -1
- package/cli/utils/ApiError.js +1 -1
- package/cli/utils/ApiError.js.map +1 -1
- package/cli/utils/EnvioGraphQLClient.js +9 -9
- package/cli/utils/EnvioGraphQLClient.js.map +1 -1
- package/cli/utils/blockchain.js +3 -3
- package/docs/classes/InstanceBase.md +26 -4
- package/docs/classes/InstancePlayer.md +70 -5
- package/docs/classes/MAODistributorClient.md +63 -2
- package/docs/docs/classes/InstanceBase.md +26 -4
- package/docs/docs/classes/InstancePlayer.md +70 -5
- package/docs/docs/classes/MAODistributorClient.md +63 -2
- package/docs/docs/index.md +13 -8
- package/docs/index.md +13 -8
- package/lib.commonjs/abis/IRankifyInstance.d.ts +128 -0
- package/lib.commonjs/abis/IRankifyInstance.d.ts.map +1 -1
- package/lib.commonjs/abis/IRankifyInstance.js +167 -0
- package/lib.commonjs/abis/IRankifyInstance.js.map +1 -1
- package/lib.commonjs/abis/LibRankify.d.ts +226 -0
- package/lib.commonjs/abis/LibRankify.d.ts.map +1 -0
- package/lib.commonjs/abis/LibRankify.js +298 -0
- package/lib.commonjs/abis/LibRankify.js.map +1 -0
- package/lib.commonjs/abis/MAODistribution.d.ts +24 -8
- package/lib.commonjs/abis/MAODistribution.d.ts.map +1 -1
- package/lib.commonjs/abis/MAODistribution.js +30 -10
- package/lib.commonjs/abis/MAODistribution.js.map +1 -1
- package/lib.commonjs/abis/RankifyDiamondInstance.d.ts +340 -186
- package/lib.commonjs/abis/RankifyDiamondInstance.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyDiamondInstance.js +442 -242
- package/lib.commonjs/abis/RankifyDiamondInstance.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.d.ts +0 -16
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.js +0 -21
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts +449 -24
- package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceMainFacet.js +585 -31
- package/lib.commonjs/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts +0 -255
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js +0 -333
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/lib.commonjs/abis/index.d.ts +1133 -456
- package/lib.commonjs/abis/index.d.ts.map +1 -1
- package/lib.commonjs/abis/index.js +6 -2
- package/lib.commonjs/abis/index.js.map +1 -1
- package/lib.commonjs/abis/superinterface.d.ts +1 -1
- package/lib.commonjs/abis/superinterface.d.ts.map +1 -1
- package/lib.commonjs/abis/superinterface.js +32 -18
- package/lib.commonjs/abis/superinterface.js.map +1 -1
- package/lib.commonjs/eds/Distributor.d.ts.map +1 -1
- package/lib.commonjs/eds/Distributor.js +1 -1
- package/lib.commonjs/eds/Distributor.js.map +1 -1
- package/lib.commonjs/rankify/GameMaster.d.ts.map +1 -1
- package/lib.commonjs/rankify/GameMaster.js +116 -27
- package/lib.commonjs/rankify/GameMaster.js.map +1 -1
- package/lib.commonjs/rankify/InstanceBase.d.ts +8 -1
- package/lib.commonjs/rankify/InstanceBase.d.ts.map +1 -1
- package/lib.commonjs/rankify/InstanceBase.js +33 -12
- package/lib.commonjs/rankify/InstanceBase.js.map +1 -1
- package/lib.commonjs/rankify/MAODistributor.d.ts +69 -1
- package/lib.commonjs/rankify/MAODistributor.d.ts.map +1 -1
- package/lib.commonjs/rankify/MAODistributor.js +56 -3
- package/lib.commonjs/rankify/MAODistributor.js.map +1 -1
- package/lib.commonjs/rankify/Player.d.ts +53 -0
- package/lib.commonjs/rankify/Player.d.ts.map +1 -1
- package/lib.commonjs/rankify/Player.js +40 -1
- package/lib.commonjs/rankify/Player.js.map +1 -1
- package/lib.commonjs/utils/ApiError.js +1 -1
- package/lib.commonjs/utils/ApiError.js.map +1 -1
- package/lib.commonjs/utils/EnvioGraphQLClient.d.ts +1 -1
- package/lib.commonjs/utils/EnvioGraphQLClient.d.ts.map +1 -1
- package/lib.commonjs/utils/EnvioGraphQLClient.js +9 -9
- package/lib.commonjs/utils/EnvioGraphQLClient.js.map +1 -1
- package/lib.commonjs/utils/blockchain.js +3 -3
- package/lib.commonjs/utils/mockUtils.d.ts.map +1 -1
- package/lib.commonjs/utils/mockUtils.js +1 -1
- package/lib.commonjs/utils/mockUtils.js.map +1 -1
- package/lib.esm/abis/IRankifyInstance.d.ts +128 -0
- package/lib.esm/abis/IRankifyInstance.d.ts.map +1 -1
- package/lib.esm/abis/IRankifyInstance.js +167 -0
- package/lib.esm/abis/IRankifyInstance.js.map +1 -1
- package/lib.esm/abis/LibRankify.d.ts +226 -0
- package/lib.esm/abis/LibRankify.d.ts.map +1 -0
- package/lib.esm/abis/LibRankify.js +295 -0
- package/lib.esm/abis/LibRankify.js.map +1 -0
- package/lib.esm/abis/MAODistribution.d.ts +24 -8
- package/lib.esm/abis/MAODistribution.d.ts.map +1 -1
- package/lib.esm/abis/MAODistribution.js +30 -10
- package/lib.esm/abis/MAODistribution.js.map +1 -1
- package/lib.esm/abis/RankifyDiamondInstance.d.ts +340 -186
- package/lib.esm/abis/RankifyDiamondInstance.d.ts.map +1 -1
- package/lib.esm/abis/RankifyDiamondInstance.js +442 -242
- package/lib.esm/abis/RankifyDiamondInstance.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.d.ts +0 -16
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.js +0 -21
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceMainFacet.d.ts +449 -24
- package/lib.esm/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceMainFacet.js +585 -31
- package/lib.esm/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts +0 -255
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.js +0 -333
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/lib.esm/abis/index.d.ts +1133 -456
- package/lib.esm/abis/index.d.ts.map +1 -1
- package/lib.esm/abis/index.js +3 -0
- package/lib.esm/abis/index.js.map +1 -1
- package/lib.esm/abis/superinterface.d.ts +1 -1
- package/lib.esm/abis/superinterface.d.ts.map +1 -1
- package/lib.esm/abis/superinterface.js +32 -18
- package/lib.esm/abis/superinterface.js.map +1 -1
- package/lib.esm/eds/Distributor.d.ts.map +1 -1
- package/lib.esm/eds/Distributor.js +1 -1
- package/lib.esm/eds/Distributor.js.map +1 -1
- package/lib.esm/rankify/GameMaster.d.ts.map +1 -1
- package/lib.esm/rankify/GameMaster.js +116 -27
- package/lib.esm/rankify/GameMaster.js.map +1 -1
- package/lib.esm/rankify/InstanceBase.d.ts +8 -1
- package/lib.esm/rankify/InstanceBase.d.ts.map +1 -1
- package/lib.esm/rankify/InstanceBase.js +33 -12
- package/lib.esm/rankify/InstanceBase.js.map +1 -1
- package/lib.esm/rankify/MAODistributor.d.ts +69 -1
- package/lib.esm/rankify/MAODistributor.d.ts.map +1 -1
- package/lib.esm/rankify/MAODistributor.js +56 -3
- package/lib.esm/rankify/MAODistributor.js.map +1 -1
- package/lib.esm/rankify/Player.d.ts +53 -0
- package/lib.esm/rankify/Player.d.ts.map +1 -1
- package/lib.esm/rankify/Player.js +40 -1
- package/lib.esm/rankify/Player.js.map +1 -1
- package/lib.esm/utils/ApiError.js +1 -1
- package/lib.esm/utils/ApiError.js.map +1 -1
- package/lib.esm/utils/EnvioGraphQLClient.d.ts +1 -1
- package/lib.esm/utils/EnvioGraphQLClient.d.ts.map +1 -1
- package/lib.esm/utils/EnvioGraphQLClient.js +9 -9
- package/lib.esm/utils/EnvioGraphQLClient.js.map +1 -1
- package/lib.esm/utils/blockchain.js +3 -3
- package/lib.esm/utils/mockUtils.d.ts.map +1 -1
- package/lib.esm/utils/mockUtils.js +1 -1
- package/lib.esm/utils/mockUtils.js.map +1 -1
- package/package.json +2 -2
|
@@ -136,27 +136,6 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
136
136
|
"name": "ballotIntegrityCheckFailed",
|
|
137
137
|
"type": "error"
|
|
138
138
|
},
|
|
139
|
-
{
|
|
140
|
-
"inputs": [
|
|
141
|
-
{
|
|
142
|
-
"internalType": "string",
|
|
143
|
-
"name": "parameter",
|
|
144
|
-
"type": "string"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"internalType": "uint256",
|
|
148
|
-
"name": "arg",
|
|
149
|
-
"type": "uint256"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"internalType": "uint256",
|
|
153
|
-
"name": "arg2",
|
|
154
|
-
"type": "uint256"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"name": "quadraticVotingError",
|
|
158
|
-
"type": "error"
|
|
159
|
-
},
|
|
160
139
|
{
|
|
161
140
|
"anonymous": false,
|
|
162
141
|
"inputs": [
|
|
@@ -535,33 +514,6 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
535
514
|
"stateMutability": "nonpayable",
|
|
536
515
|
"type": "function"
|
|
537
516
|
},
|
|
538
|
-
{
|
|
539
|
-
"inputs": [],
|
|
540
|
-
"name": "ECDSAInvalidSignature",
|
|
541
|
-
"type": "error"
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
"inputs": [
|
|
545
|
-
{
|
|
546
|
-
"internalType": "uint256",
|
|
547
|
-
"name": "length",
|
|
548
|
-
"type": "uint256"
|
|
549
|
-
}
|
|
550
|
-
],
|
|
551
|
-
"name": "ECDSAInvalidSignatureLength",
|
|
552
|
-
"type": "error"
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"inputs": [
|
|
556
|
-
{
|
|
557
|
-
"internalType": "bytes32",
|
|
558
|
-
"name": "s",
|
|
559
|
-
"type": "bytes32"
|
|
560
|
-
}
|
|
561
|
-
],
|
|
562
|
-
"name": "ECDSAInvalidSignatureS",
|
|
563
|
-
"type": "error"
|
|
564
|
-
},
|
|
565
517
|
{
|
|
566
518
|
"inputs": [
|
|
567
519
|
{
|
|
@@ -746,6 +698,173 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
746
698
|
"name": "RegistrationOpen",
|
|
747
699
|
"type": "event"
|
|
748
700
|
},
|
|
701
|
+
{
|
|
702
|
+
"anonymous": false,
|
|
703
|
+
"inputs": [
|
|
704
|
+
{
|
|
705
|
+
"indexed": true,
|
|
706
|
+
"internalType": "uint256",
|
|
707
|
+
"name": "gameId",
|
|
708
|
+
"type": "uint256"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"components": [
|
|
712
|
+
{
|
|
713
|
+
"components": [
|
|
714
|
+
{
|
|
715
|
+
"internalType": "uint256",
|
|
716
|
+
"name": "have",
|
|
717
|
+
"type": "uint256"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"internalType": "uint256",
|
|
721
|
+
"name": "lock",
|
|
722
|
+
"type": "uint256"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"internalType": "uint256",
|
|
726
|
+
"name": "burn",
|
|
727
|
+
"type": "uint256"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"internalType": "uint256",
|
|
731
|
+
"name": "pay",
|
|
732
|
+
"type": "uint256"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"internalType": "uint256",
|
|
736
|
+
"name": "bet",
|
|
737
|
+
"type": "uint256"
|
|
738
|
+
}
|
|
739
|
+
],
|
|
740
|
+
"internalType": "struct LibCoinVending.NumericCondition",
|
|
741
|
+
"name": "ethValues",
|
|
742
|
+
"type": "tuple"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"components": [
|
|
746
|
+
{
|
|
747
|
+
"internalType": "address",
|
|
748
|
+
"name": "contractAddress",
|
|
749
|
+
"type": "address"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"internalType": "uint256",
|
|
753
|
+
"name": "contractId",
|
|
754
|
+
"type": "uint256"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"internalType": "enum LibCoinVending.ContractTypes",
|
|
758
|
+
"name": "contractType",
|
|
759
|
+
"type": "uint8"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"components": [
|
|
763
|
+
{
|
|
764
|
+
"components": [
|
|
765
|
+
{
|
|
766
|
+
"internalType": "bytes",
|
|
767
|
+
"name": "data",
|
|
768
|
+
"type": "bytes"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"internalType": "uint256",
|
|
772
|
+
"name": "amount",
|
|
773
|
+
"type": "uint256"
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
777
|
+
"name": "have",
|
|
778
|
+
"type": "tuple"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"components": [
|
|
782
|
+
{
|
|
783
|
+
"internalType": "bytes",
|
|
784
|
+
"name": "data",
|
|
785
|
+
"type": "bytes"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"internalType": "uint256",
|
|
789
|
+
"name": "amount",
|
|
790
|
+
"type": "uint256"
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
794
|
+
"name": "lock",
|
|
795
|
+
"type": "tuple"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"components": [
|
|
799
|
+
{
|
|
800
|
+
"internalType": "bytes",
|
|
801
|
+
"name": "data",
|
|
802
|
+
"type": "bytes"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"internalType": "uint256",
|
|
806
|
+
"name": "amount",
|
|
807
|
+
"type": "uint256"
|
|
808
|
+
}
|
|
809
|
+
],
|
|
810
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
811
|
+
"name": "burn",
|
|
812
|
+
"type": "tuple"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"components": [
|
|
816
|
+
{
|
|
817
|
+
"internalType": "bytes",
|
|
818
|
+
"name": "data",
|
|
819
|
+
"type": "bytes"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"internalType": "uint256",
|
|
823
|
+
"name": "amount",
|
|
824
|
+
"type": "uint256"
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
828
|
+
"name": "pay",
|
|
829
|
+
"type": "tuple"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"components": [
|
|
833
|
+
{
|
|
834
|
+
"internalType": "bytes",
|
|
835
|
+
"name": "data",
|
|
836
|
+
"type": "bytes"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"internalType": "uint256",
|
|
840
|
+
"name": "amount",
|
|
841
|
+
"type": "uint256"
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
845
|
+
"name": "bet",
|
|
846
|
+
"type": "tuple"
|
|
847
|
+
}
|
|
848
|
+
],
|
|
849
|
+
"internalType": "struct LibCoinVending.ContractCondition",
|
|
850
|
+
"name": "contractRequirement",
|
|
851
|
+
"type": "tuple"
|
|
852
|
+
}
|
|
853
|
+
],
|
|
854
|
+
"internalType": "struct LibCoinVending.configSmartRequirement[]",
|
|
855
|
+
"name": "contracts",
|
|
856
|
+
"type": "tuple[]"
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"indexed": false,
|
|
860
|
+
"internalType": "struct LibCoinVending.ConfigPosition",
|
|
861
|
+
"name": "config",
|
|
862
|
+
"type": "tuple"
|
|
863
|
+
}
|
|
864
|
+
],
|
|
865
|
+
"name": "RequirementsConfigured",
|
|
866
|
+
"type": "event"
|
|
867
|
+
},
|
|
749
868
|
{
|
|
750
869
|
"anonymous": false,
|
|
751
870
|
"inputs": [
|
|
@@ -823,7 +942,225 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
823
942
|
"type": "uint256"
|
|
824
943
|
}
|
|
825
944
|
],
|
|
826
|
-
"name": "cancelGame",
|
|
945
|
+
"name": "cancelGame",
|
|
946
|
+
"outputs": [],
|
|
947
|
+
"stateMutability": "nonpayable",
|
|
948
|
+
"type": "function"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"inputs": [
|
|
952
|
+
{
|
|
953
|
+
"components": [
|
|
954
|
+
{
|
|
955
|
+
"internalType": "uint256",
|
|
956
|
+
"name": "gameRank",
|
|
957
|
+
"type": "uint256"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"internalType": "uint256",
|
|
961
|
+
"name": "minPlayerCnt",
|
|
962
|
+
"type": "uint256"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"internalType": "uint256",
|
|
966
|
+
"name": "maxPlayerCnt",
|
|
967
|
+
"type": "uint256"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"internalType": "uint96",
|
|
971
|
+
"name": "nTurns",
|
|
972
|
+
"type": "uint96"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"internalType": "uint256",
|
|
976
|
+
"name": "voteCredits",
|
|
977
|
+
"type": "uint256"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"internalType": "address",
|
|
981
|
+
"name": "gameMaster",
|
|
982
|
+
"type": "address"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"internalType": "uint128",
|
|
986
|
+
"name": "minGameTime",
|
|
987
|
+
"type": "uint128"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"internalType": "uint128",
|
|
991
|
+
"name": "timePerTurn",
|
|
992
|
+
"type": "uint128"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"internalType": "uint128",
|
|
996
|
+
"name": "timeToJoin",
|
|
997
|
+
"type": "uint128"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"internalType": "string",
|
|
1001
|
+
"name": "metadata",
|
|
1002
|
+
"type": "string"
|
|
1003
|
+
}
|
|
1004
|
+
],
|
|
1005
|
+
"internalType": "struct IRankifyInstance.NewGameParamsInput",
|
|
1006
|
+
"name": "params",
|
|
1007
|
+
"type": "tuple"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"components": [
|
|
1011
|
+
{
|
|
1012
|
+
"components": [
|
|
1013
|
+
{
|
|
1014
|
+
"internalType": "uint256",
|
|
1015
|
+
"name": "have",
|
|
1016
|
+
"type": "uint256"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"internalType": "uint256",
|
|
1020
|
+
"name": "lock",
|
|
1021
|
+
"type": "uint256"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"internalType": "uint256",
|
|
1025
|
+
"name": "burn",
|
|
1026
|
+
"type": "uint256"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"internalType": "uint256",
|
|
1030
|
+
"name": "pay",
|
|
1031
|
+
"type": "uint256"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"internalType": "uint256",
|
|
1035
|
+
"name": "bet",
|
|
1036
|
+
"type": "uint256"
|
|
1037
|
+
}
|
|
1038
|
+
],
|
|
1039
|
+
"internalType": "struct LibCoinVending.NumericCondition",
|
|
1040
|
+
"name": "ethValues",
|
|
1041
|
+
"type": "tuple"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"components": [
|
|
1045
|
+
{
|
|
1046
|
+
"internalType": "address",
|
|
1047
|
+
"name": "contractAddress",
|
|
1048
|
+
"type": "address"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"internalType": "uint256",
|
|
1052
|
+
"name": "contractId",
|
|
1053
|
+
"type": "uint256"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"internalType": "enum LibCoinVending.ContractTypes",
|
|
1057
|
+
"name": "contractType",
|
|
1058
|
+
"type": "uint8"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"components": [
|
|
1062
|
+
{
|
|
1063
|
+
"components": [
|
|
1064
|
+
{
|
|
1065
|
+
"internalType": "bytes",
|
|
1066
|
+
"name": "data",
|
|
1067
|
+
"type": "bytes"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"internalType": "uint256",
|
|
1071
|
+
"name": "amount",
|
|
1072
|
+
"type": "uint256"
|
|
1073
|
+
}
|
|
1074
|
+
],
|
|
1075
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
1076
|
+
"name": "have",
|
|
1077
|
+
"type": "tuple"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"components": [
|
|
1081
|
+
{
|
|
1082
|
+
"internalType": "bytes",
|
|
1083
|
+
"name": "data",
|
|
1084
|
+
"type": "bytes"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"internalType": "uint256",
|
|
1088
|
+
"name": "amount",
|
|
1089
|
+
"type": "uint256"
|
|
1090
|
+
}
|
|
1091
|
+
],
|
|
1092
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
1093
|
+
"name": "lock",
|
|
1094
|
+
"type": "tuple"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"components": [
|
|
1098
|
+
{
|
|
1099
|
+
"internalType": "bytes",
|
|
1100
|
+
"name": "data",
|
|
1101
|
+
"type": "bytes"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"internalType": "uint256",
|
|
1105
|
+
"name": "amount",
|
|
1106
|
+
"type": "uint256"
|
|
1107
|
+
}
|
|
1108
|
+
],
|
|
1109
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
1110
|
+
"name": "burn",
|
|
1111
|
+
"type": "tuple"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"components": [
|
|
1115
|
+
{
|
|
1116
|
+
"internalType": "bytes",
|
|
1117
|
+
"name": "data",
|
|
1118
|
+
"type": "bytes"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"internalType": "uint256",
|
|
1122
|
+
"name": "amount",
|
|
1123
|
+
"type": "uint256"
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
1127
|
+
"name": "pay",
|
|
1128
|
+
"type": "tuple"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"components": [
|
|
1132
|
+
{
|
|
1133
|
+
"internalType": "bytes",
|
|
1134
|
+
"name": "data",
|
|
1135
|
+
"type": "bytes"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"internalType": "uint256",
|
|
1139
|
+
"name": "amount",
|
|
1140
|
+
"type": "uint256"
|
|
1141
|
+
}
|
|
1142
|
+
],
|
|
1143
|
+
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
1144
|
+
"name": "bet",
|
|
1145
|
+
"type": "tuple"
|
|
1146
|
+
}
|
|
1147
|
+
],
|
|
1148
|
+
"internalType": "struct LibCoinVending.ContractCondition",
|
|
1149
|
+
"name": "contractRequirement",
|
|
1150
|
+
"type": "tuple"
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
"internalType": "struct LibCoinVending.configSmartRequirement[]",
|
|
1154
|
+
"name": "contracts",
|
|
1155
|
+
"type": "tuple[]"
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
"internalType": "struct LibCoinVending.ConfigPosition",
|
|
1159
|
+
"name": "requirements",
|
|
1160
|
+
"type": "tuple"
|
|
1161
|
+
}
|
|
1162
|
+
],
|
|
1163
|
+
"name": "createAndOpenGame",
|
|
827
1164
|
"outputs": [],
|
|
828
1165
|
"stateMutability": "nonpayable",
|
|
829
1166
|
"type": "function"
|
|
@@ -889,7 +1226,13 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
889
1226
|
}
|
|
890
1227
|
],
|
|
891
1228
|
"name": "createGame",
|
|
892
|
-
"outputs": [
|
|
1229
|
+
"outputs": [
|
|
1230
|
+
{
|
|
1231
|
+
"internalType": "uint256",
|
|
1232
|
+
"name": "",
|
|
1233
|
+
"type": "uint256"
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
893
1236
|
"stateMutability": "nonpayable",
|
|
894
1237
|
"type": "function"
|
|
895
1238
|
},
|
|
@@ -1139,12 +1482,12 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
1139
1482
|
"type": "address"
|
|
1140
1483
|
}
|
|
1141
1484
|
],
|
|
1142
|
-
"name": "
|
|
1485
|
+
"name": "getPlayersGames",
|
|
1143
1486
|
"outputs": [
|
|
1144
1487
|
{
|
|
1145
|
-
"internalType": "uint256",
|
|
1488
|
+
"internalType": "uint256[]",
|
|
1146
1489
|
"name": "",
|
|
1147
|
-
"type": "uint256"
|
|
1490
|
+
"type": "uint256[]"
|
|
1148
1491
|
}
|
|
1149
1492
|
],
|
|
1150
1493
|
"stateMutability": "view",
|
|
@@ -1298,6 +1641,30 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
1298
1641
|
"stateMutability": "view",
|
|
1299
1642
|
"type": "function"
|
|
1300
1643
|
},
|
|
1644
|
+
{
|
|
1645
|
+
"inputs": [
|
|
1646
|
+
{
|
|
1647
|
+
"internalType": "uint256",
|
|
1648
|
+
"name": "gameId",
|
|
1649
|
+
"type": "uint256"
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"internalType": "address",
|
|
1653
|
+
"name": "player",
|
|
1654
|
+
"type": "address"
|
|
1655
|
+
}
|
|
1656
|
+
],
|
|
1657
|
+
"name": "isPlayerInGame",
|
|
1658
|
+
"outputs": [
|
|
1659
|
+
{
|
|
1660
|
+
"internalType": "bool",
|
|
1661
|
+
"name": "",
|
|
1662
|
+
"type": "bool"
|
|
1663
|
+
}
|
|
1664
|
+
],
|
|
1665
|
+
"stateMutability": "view",
|
|
1666
|
+
"type": "function"
|
|
1667
|
+
},
|
|
1301
1668
|
{
|
|
1302
1669
|
"inputs": [
|
|
1303
1670
|
{
|
|
@@ -1519,26 +1886,6 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
1519
1886
|
"name": "gameId",
|
|
1520
1887
|
"type": "uint256"
|
|
1521
1888
|
},
|
|
1522
|
-
{
|
|
1523
|
-
"internalType": "uint256",
|
|
1524
|
-
"name": "permutationCommitment",
|
|
1525
|
-
"type": "uint256"
|
|
1526
|
-
}
|
|
1527
|
-
],
|
|
1528
|
-
"name": "startGame",
|
|
1529
|
-
"outputs": [],
|
|
1530
|
-
"stateMutability": "nonpayable",
|
|
1531
|
-
"type": "function"
|
|
1532
|
-
},
|
|
1533
|
-
{
|
|
1534
|
-
"anonymous": false,
|
|
1535
|
-
"inputs": [
|
|
1536
|
-
{
|
|
1537
|
-
"indexed": true,
|
|
1538
|
-
"internalType": "uint256",
|
|
1539
|
-
"name": "gameId",
|
|
1540
|
-
"type": "uint256"
|
|
1541
|
-
},
|
|
1542
1889
|
{
|
|
1543
1890
|
"components": [
|
|
1544
1891
|
{
|
|
@@ -1688,14 +2035,33 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
1688
2035
|
"type": "tuple[]"
|
|
1689
2036
|
}
|
|
1690
2037
|
],
|
|
1691
|
-
"indexed": false,
|
|
1692
2038
|
"internalType": "struct LibCoinVending.ConfigPosition",
|
|
1693
2039
|
"name": "config",
|
|
1694
2040
|
"type": "tuple"
|
|
1695
2041
|
}
|
|
1696
2042
|
],
|
|
1697
|
-
"name": "
|
|
1698
|
-
"
|
|
2043
|
+
"name": "setJoinRequirements",
|
|
2044
|
+
"outputs": [],
|
|
2045
|
+
"stateMutability": "nonpayable",
|
|
2046
|
+
"type": "function"
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
"inputs": [
|
|
2050
|
+
{
|
|
2051
|
+
"internalType": "uint256",
|
|
2052
|
+
"name": "gameId",
|
|
2053
|
+
"type": "uint256"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"internalType": "uint256",
|
|
2057
|
+
"name": "permutationCommitment",
|
|
2058
|
+
"type": "uint256"
|
|
2059
|
+
}
|
|
2060
|
+
],
|
|
2061
|
+
"name": "startGame",
|
|
2062
|
+
"outputs": [],
|
|
2063
|
+
"stateMutability": "nonpayable",
|
|
2064
|
+
"type": "function"
|
|
1699
2065
|
},
|
|
1700
2066
|
{
|
|
1701
2067
|
"inputs": [],
|
|
@@ -2144,172 +2510,6 @@ exports.RankifyDiamondInstanceAbi = [
|
|
|
2144
2510
|
"stateMutability": "view",
|
|
2145
2511
|
"type": "function"
|
|
2146
2512
|
},
|
|
2147
|
-
{
|
|
2148
|
-
"inputs": [
|
|
2149
|
-
{
|
|
2150
|
-
"internalType": "uint256",
|
|
2151
|
-
"name": "gameId",
|
|
2152
|
-
"type": "uint256"
|
|
2153
|
-
},
|
|
2154
|
-
{
|
|
2155
|
-
"components": [
|
|
2156
|
-
{
|
|
2157
|
-
"components": [
|
|
2158
|
-
{
|
|
2159
|
-
"internalType": "uint256",
|
|
2160
|
-
"name": "have",
|
|
2161
|
-
"type": "uint256"
|
|
2162
|
-
},
|
|
2163
|
-
{
|
|
2164
|
-
"internalType": "uint256",
|
|
2165
|
-
"name": "lock",
|
|
2166
|
-
"type": "uint256"
|
|
2167
|
-
},
|
|
2168
|
-
{
|
|
2169
|
-
"internalType": "uint256",
|
|
2170
|
-
"name": "burn",
|
|
2171
|
-
"type": "uint256"
|
|
2172
|
-
},
|
|
2173
|
-
{
|
|
2174
|
-
"internalType": "uint256",
|
|
2175
|
-
"name": "pay",
|
|
2176
|
-
"type": "uint256"
|
|
2177
|
-
},
|
|
2178
|
-
{
|
|
2179
|
-
"internalType": "uint256",
|
|
2180
|
-
"name": "bet",
|
|
2181
|
-
"type": "uint256"
|
|
2182
|
-
}
|
|
2183
|
-
],
|
|
2184
|
-
"internalType": "struct LibCoinVending.NumericCondition",
|
|
2185
|
-
"name": "ethValues",
|
|
2186
|
-
"type": "tuple"
|
|
2187
|
-
},
|
|
2188
|
-
{
|
|
2189
|
-
"components": [
|
|
2190
|
-
{
|
|
2191
|
-
"internalType": "address",
|
|
2192
|
-
"name": "contractAddress",
|
|
2193
|
-
"type": "address"
|
|
2194
|
-
},
|
|
2195
|
-
{
|
|
2196
|
-
"internalType": "uint256",
|
|
2197
|
-
"name": "contractId",
|
|
2198
|
-
"type": "uint256"
|
|
2199
|
-
},
|
|
2200
|
-
{
|
|
2201
|
-
"internalType": "enum LibCoinVending.ContractTypes",
|
|
2202
|
-
"name": "contractType",
|
|
2203
|
-
"type": "uint8"
|
|
2204
|
-
},
|
|
2205
|
-
{
|
|
2206
|
-
"components": [
|
|
2207
|
-
{
|
|
2208
|
-
"components": [
|
|
2209
|
-
{
|
|
2210
|
-
"internalType": "bytes",
|
|
2211
|
-
"name": "data",
|
|
2212
|
-
"type": "bytes"
|
|
2213
|
-
},
|
|
2214
|
-
{
|
|
2215
|
-
"internalType": "uint256",
|
|
2216
|
-
"name": "amount",
|
|
2217
|
-
"type": "uint256"
|
|
2218
|
-
}
|
|
2219
|
-
],
|
|
2220
|
-
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
2221
|
-
"name": "have",
|
|
2222
|
-
"type": "tuple"
|
|
2223
|
-
},
|
|
2224
|
-
{
|
|
2225
|
-
"components": [
|
|
2226
|
-
{
|
|
2227
|
-
"internalType": "bytes",
|
|
2228
|
-
"name": "data",
|
|
2229
|
-
"type": "bytes"
|
|
2230
|
-
},
|
|
2231
|
-
{
|
|
2232
|
-
"internalType": "uint256",
|
|
2233
|
-
"name": "amount",
|
|
2234
|
-
"type": "uint256"
|
|
2235
|
-
}
|
|
2236
|
-
],
|
|
2237
|
-
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
2238
|
-
"name": "lock",
|
|
2239
|
-
"type": "tuple"
|
|
2240
|
-
},
|
|
2241
|
-
{
|
|
2242
|
-
"components": [
|
|
2243
|
-
{
|
|
2244
|
-
"internalType": "bytes",
|
|
2245
|
-
"name": "data",
|
|
2246
|
-
"type": "bytes"
|
|
2247
|
-
},
|
|
2248
|
-
{
|
|
2249
|
-
"internalType": "uint256",
|
|
2250
|
-
"name": "amount",
|
|
2251
|
-
"type": "uint256"
|
|
2252
|
-
}
|
|
2253
|
-
],
|
|
2254
|
-
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
2255
|
-
"name": "burn",
|
|
2256
|
-
"type": "tuple"
|
|
2257
|
-
},
|
|
2258
|
-
{
|
|
2259
|
-
"components": [
|
|
2260
|
-
{
|
|
2261
|
-
"internalType": "bytes",
|
|
2262
|
-
"name": "data",
|
|
2263
|
-
"type": "bytes"
|
|
2264
|
-
},
|
|
2265
|
-
{
|
|
2266
|
-
"internalType": "uint256",
|
|
2267
|
-
"name": "amount",
|
|
2268
|
-
"type": "uint256"
|
|
2269
|
-
}
|
|
2270
|
-
],
|
|
2271
|
-
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
2272
|
-
"name": "pay",
|
|
2273
|
-
"type": "tuple"
|
|
2274
|
-
},
|
|
2275
|
-
{
|
|
2276
|
-
"components": [
|
|
2277
|
-
{
|
|
2278
|
-
"internalType": "bytes",
|
|
2279
|
-
"name": "data",
|
|
2280
|
-
"type": "bytes"
|
|
2281
|
-
},
|
|
2282
|
-
{
|
|
2283
|
-
"internalType": "uint256",
|
|
2284
|
-
"name": "amount",
|
|
2285
|
-
"type": "uint256"
|
|
2286
|
-
}
|
|
2287
|
-
],
|
|
2288
|
-
"internalType": "struct LibCoinVending.TransactionProperties",
|
|
2289
|
-
"name": "bet",
|
|
2290
|
-
"type": "tuple"
|
|
2291
|
-
}
|
|
2292
|
-
],
|
|
2293
|
-
"internalType": "struct LibCoinVending.ContractCondition",
|
|
2294
|
-
"name": "contractRequirement",
|
|
2295
|
-
"type": "tuple"
|
|
2296
|
-
}
|
|
2297
|
-
],
|
|
2298
|
-
"internalType": "struct LibCoinVending.configSmartRequirement[]",
|
|
2299
|
-
"name": "contracts",
|
|
2300
|
-
"type": "tuple[]"
|
|
2301
|
-
}
|
|
2302
|
-
],
|
|
2303
|
-
"internalType": "struct LibCoinVending.ConfigPosition",
|
|
2304
|
-
"name": "config",
|
|
2305
|
-
"type": "tuple"
|
|
2306
|
-
}
|
|
2307
|
-
],
|
|
2308
|
-
"name": "setJoinRequirements",
|
|
2309
|
-
"outputs": [],
|
|
2310
|
-
"stateMutability": "nonpayable",
|
|
2311
|
-
"type": "function"
|
|
2312
|
-
},
|
|
2313
2513
|
{
|
|
2314
2514
|
"inputs": [
|
|
2315
2515
|
{
|