@peeramid-labs/sdk 3.11.3 → 3.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/abis/Address.js +18 -0
- package/cli/abis/Address.js.map +1 -0
- package/cli/abis/Governor.js +1735 -0
- package/cli/abis/Governor.js.map +1 -0
- package/cli/abis/GovernorCountingSimpleUpgradeable.js +1365 -0
- package/cli/abis/GovernorCountingSimpleUpgradeable.js.map +1 -0
- package/cli/abis/GovernorSettingsUpgradeable.js +1432 -0
- package/cli/abis/GovernorSettingsUpgradeable.js.map +1 -0
- package/cli/abis/GovernorStorageUpgradeable.js +1461 -0
- package/cli/abis/GovernorStorageUpgradeable.js.map +1 -0
- package/cli/abis/GovernorUpgradeable.js +1336 -0
- package/cli/abis/GovernorUpgradeable.js.map +1 -0
- package/cli/abis/GovernorVotesQuorumFractionUpgradeable.js +1447 -0
- package/cli/abis/GovernorVotesQuorumFractionUpgradeable.js.map +1 -0
- package/cli/abis/GovernorVotesUpgradeable.js +1349 -0
- package/cli/abis/GovernorVotesUpgradeable.js.map +1 -0
- package/cli/abis/IGovernor.js +1043 -0
- package/cli/abis/IGovernor.js.map +1 -0
- package/cli/abis/IRankifyInstance.js +58 -0
- package/cli/abis/IRankifyInstance.js.map +1 -1
- package/cli/abis/MAODistribution.js +49 -19
- package/cli/abis/MAODistribution.js.map +1 -1
- package/cli/abis/RankifyDiamondInstance.js +353 -49
- package/cli/abis/RankifyDiamondInstance.js.map +1 -1
- package/cli/abis/RankifyInstanceEventMock.js +0 -49
- package/cli/abis/RankifyInstanceEventMock.js.map +1 -1
- package/cli/abis/RankifyInstanceGameMastersFacet.js +131 -22
- package/cli/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/cli/abis/RankifyInstanceMainFacet.js +196 -6
- package/cli/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/cli/abis/RankifyInstanceRequirementsFacet.js +26 -21
- package/cli/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/cli/abis/index.js +39 -3
- package/cli/abis/index.js.map +1 -1
- package/cli/abis/superinterface.js +609 -20
- package/cli/abis/superinterface.js.map +1 -1
- package/cli/cli/commands/fellowship/create.js +39 -7
- package/cli/cli/commands/fellowship/create.js.map +1 -1
- package/cli/cli/commands/fellowship/game/create.js +5 -1
- package/cli/cli/commands/fellowship/game/create.js.map +1 -1
- package/cli/cli/commands/fellowship/game/end-proposing.js +53 -0
- package/cli/cli/commands/fellowship/game/end-proposing.js.map +1 -0
- package/cli/cli/commands/fellowship/game/{end-turn.js → end-voting.js} +8 -8
- package/cli/cli/commands/fellowship/game/end-voting.js.map +1 -0
- package/cli/cli/commands/fellowship/game/force-end-stale.js +50 -0
- package/cli/cli/commands/fellowship/game/force-end-stale.js.map +1 -0
- package/cli/cli/commands/fellowship/game/index.js +10 -4
- package/cli/cli/commands/fellowship/game/index.js.map +1 -1
- package/cli/cli/commands/fellowship/game/start.js +2 -2
- package/cli/cli/commands/fellowship/game/start.js.map +1 -1
- package/cli/rankify/GameMaster.js +133 -110
- package/cli/rankify/GameMaster.js.map +1 -1
- package/cli/rankify/InstanceBase.js +35 -47
- package/cli/rankify/InstanceBase.js.map +1 -1
- package/cli/rankify/MAODistributor.js +9 -3
- package/cli/rankify/MAODistributor.js.map +1 -1
- package/cli/rankify/Player.js +8 -3
- package/cli/rankify/Player.js.map +1 -1
- package/cli/utils/EnvioGraphQLClient.js +94 -74
- package/cli/utils/EnvioGraphQLClient.js.map +1 -1
- package/cli/utils/index.js +4 -3
- package/cli/utils/index.js.map +1 -1
- package/docs/classes/EnvioGraphQLClient.md +46 -28
- package/docs/classes/GameMaster.md +64 -27
- package/docs/classes/InstanceBase.md +12 -12
- package/docs/classes/InstancePlayer.md +17 -14
- package/docs/classes/MAODistributorClient.md +4 -2
- package/docs/docs/classes/EnvioGraphQLClient.md +46 -28
- package/docs/docs/classes/GameMaster.md +64 -27
- package/docs/docs/classes/InstanceBase.md +12 -12
- package/docs/docs/classes/InstancePlayer.md +17 -14
- package/docs/docs/classes/MAODistributorClient.md +4 -2
- package/docs/docs/index.md +2 -139
- package/docs/docs/interfaces/MAOInstanceContracts.md +9 -0
- package/docs/docs/interfaces/MAOInstances.md +9 -0
- package/docs/index.md +2 -139
- package/docs/interfaces/MAOInstanceContracts.md +9 -0
- package/docs/interfaces/MAOInstances.md +9 -0
- package/lib.commonjs/abis/Address.d.ts +11 -0
- package/lib.commonjs/abis/Address.d.ts.map +1 -0
- package/lib.commonjs/abis/Address.js +18 -0
- package/lib.commonjs/abis/Address.js.map +1 -0
- package/lib.commonjs/abis/Governor.d.ts +1329 -0
- package/lib.commonjs/abis/Governor.d.ts.map +1 -0
- package/lib.commonjs/abis/Governor.js +1735 -0
- package/lib.commonjs/abis/Governor.js.map +1 -0
- package/lib.commonjs/abis/GovernorCountingSimpleUpgradeable.d.ts +1043 -0
- package/lib.commonjs/abis/GovernorCountingSimpleUpgradeable.d.ts.map +1 -0
- package/lib.commonjs/abis/GovernorCountingSimpleUpgradeable.js +1365 -0
- package/lib.commonjs/abis/GovernorCountingSimpleUpgradeable.js.map +1 -0
- package/lib.commonjs/abis/GovernorSettingsUpgradeable.d.ts +1096 -0
- package/lib.commonjs/abis/GovernorSettingsUpgradeable.d.ts.map +1 -0
- package/lib.commonjs/abis/GovernorSettingsUpgradeable.js +1432 -0
- package/lib.commonjs/abis/GovernorSettingsUpgradeable.js.map +1 -0
- package/lib.commonjs/abis/GovernorStorageUpgradeable.d.ts +1117 -0
- package/lib.commonjs/abis/GovernorStorageUpgradeable.d.ts.map +1 -0
- package/lib.commonjs/abis/GovernorStorageUpgradeable.js +1461 -0
- package/lib.commonjs/abis/GovernorStorageUpgradeable.js.map +1 -0
- package/lib.commonjs/abis/GovernorUpgradeable.d.ts +1021 -0
- package/lib.commonjs/abis/GovernorUpgradeable.d.ts.map +1 -0
- package/lib.commonjs/abis/GovernorUpgradeable.js +1336 -0
- package/lib.commonjs/abis/GovernorUpgradeable.js.map +1 -0
- package/lib.commonjs/abis/GovernorVotesQuorumFractionUpgradeable.d.ts +1106 -0
- package/lib.commonjs/abis/GovernorVotesQuorumFractionUpgradeable.d.ts.map +1 -0
- package/lib.commonjs/abis/GovernorVotesQuorumFractionUpgradeable.js +1447 -0
- package/lib.commonjs/abis/GovernorVotesQuorumFractionUpgradeable.js.map +1 -0
- package/lib.commonjs/abis/GovernorVotesUpgradeable.d.ts +1031 -0
- package/lib.commonjs/abis/GovernorVotesUpgradeable.d.ts.map +1 -0
- package/lib.commonjs/abis/GovernorVotesUpgradeable.js +1349 -0
- package/lib.commonjs/abis/GovernorVotesUpgradeable.js.map +1 -0
- package/lib.commonjs/abis/IGovernor.d.ts +795 -0
- package/lib.commonjs/abis/IGovernor.d.ts.map +1 -0
- package/lib.commonjs/abis/IGovernor.js +1043 -0
- package/lib.commonjs/abis/IGovernor.js.map +1 -0
- package/lib.commonjs/abis/IRankifyInstance.d.ts +45 -0
- package/lib.commonjs/abis/IRankifyInstance.d.ts.map +1 -1
- package/lib.commonjs/abis/IRankifyInstance.js +58 -0
- package/lib.commonjs/abis/IRankifyInstance.js.map +1 -1
- package/lib.commonjs/abis/MAODistribution.d.ts +40 -16
- package/lib.commonjs/abis/MAODistribution.d.ts.map +1 -1
- package/lib.commonjs/abis/MAODistribution.js +49 -19
- package/lib.commonjs/abis/MAODistribution.js.map +1 -1
- package/lib.commonjs/abis/RankifyDiamondInstance.d.ts +278 -43
- package/lib.commonjs/abis/RankifyDiamondInstance.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyDiamondInstance.js +353 -49
- package/lib.commonjs/abis/RankifyDiamondInstance.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceEventMock.d.ts +0 -40
- package/lib.commonjs/abis/RankifyInstanceEventMock.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceEventMock.js +0 -49
- package/lib.commonjs/abis/RankifyInstanceEventMock.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.d.ts +106 -21
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.js +131 -22
- package/lib.commonjs/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts +151 -5
- package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceMainFacet.js +196 -6
- package/lib.commonjs/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts +21 -17
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js +26 -21
- package/lib.commonjs/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/lib.commonjs/abis/index.d.ts +10 -31084
- package/lib.commonjs/abis/index.d.ts.map +1 -1
- package/lib.commonjs/abis/index.js +39 -3
- 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 +609 -20
- package/lib.commonjs/abis/superinterface.js.map +1 -1
- package/lib.commonjs/rankify/GameMaster.d.ts +26 -15
- package/lib.commonjs/rankify/GameMaster.d.ts.map +1 -1
- package/lib.commonjs/rankify/GameMaster.js +133 -110
- package/lib.commonjs/rankify/GameMaster.js.map +1 -1
- package/lib.commonjs/rankify/InstanceBase.d.ts +19 -27
- package/lib.commonjs/rankify/InstanceBase.d.ts.map +1 -1
- package/lib.commonjs/rankify/InstanceBase.js +35 -47
- package/lib.commonjs/rankify/InstanceBase.js.map +1 -1
- package/lib.commonjs/rankify/MAODistributor.d.ts +6 -1
- package/lib.commonjs/rankify/MAODistributor.d.ts.map +1 -1
- package/lib.commonjs/rankify/MAODistributor.js +9 -3
- package/lib.commonjs/rankify/MAODistributor.js.map +1 -1
- package/lib.commonjs/rankify/Player.d.ts +3 -2
- package/lib.commonjs/rankify/Player.d.ts.map +1 -1
- package/lib.commonjs/rankify/Player.js +8 -3
- package/lib.commonjs/rankify/Player.js.map +1 -1
- package/lib.commonjs/types/contracts.d.ts +2 -0
- package/lib.commonjs/types/contracts.d.ts.map +1 -1
- package/lib.commonjs/utils/EnvioGraphQLClient.d.ts +35 -23
- package/lib.commonjs/utils/EnvioGraphQLClient.d.ts.map +1 -1
- package/lib.commonjs/utils/EnvioGraphQLClient.js +94 -74
- package/lib.commonjs/utils/EnvioGraphQLClient.js.map +1 -1
- package/lib.commonjs/utils/index.d.ts.map +1 -1
- package/lib.commonjs/utils/index.js +4 -3
- package/lib.commonjs/utils/index.js.map +1 -1
- package/lib.esm/abis/Address.d.ts +11 -0
- package/lib.esm/abis/Address.d.ts.map +1 -0
- package/lib.esm/abis/Address.js +15 -0
- package/lib.esm/abis/Address.js.map +1 -0
- package/lib.esm/abis/Governor.d.ts +1329 -0
- package/lib.esm/abis/Governor.d.ts.map +1 -0
- package/lib.esm/abis/Governor.js +1732 -0
- package/lib.esm/abis/Governor.js.map +1 -0
- package/lib.esm/abis/GovernorCountingSimpleUpgradeable.d.ts +1043 -0
- package/lib.esm/abis/GovernorCountingSimpleUpgradeable.d.ts.map +1 -0
- package/lib.esm/abis/GovernorCountingSimpleUpgradeable.js +1362 -0
- package/lib.esm/abis/GovernorCountingSimpleUpgradeable.js.map +1 -0
- package/lib.esm/abis/GovernorSettingsUpgradeable.d.ts +1096 -0
- package/lib.esm/abis/GovernorSettingsUpgradeable.d.ts.map +1 -0
- package/lib.esm/abis/GovernorSettingsUpgradeable.js +1429 -0
- package/lib.esm/abis/GovernorSettingsUpgradeable.js.map +1 -0
- package/lib.esm/abis/GovernorStorageUpgradeable.d.ts +1117 -0
- package/lib.esm/abis/GovernorStorageUpgradeable.d.ts.map +1 -0
- package/lib.esm/abis/GovernorStorageUpgradeable.js +1458 -0
- package/lib.esm/abis/GovernorStorageUpgradeable.js.map +1 -0
- package/lib.esm/abis/GovernorUpgradeable.d.ts +1021 -0
- package/lib.esm/abis/GovernorUpgradeable.d.ts.map +1 -0
- package/lib.esm/abis/GovernorUpgradeable.js +1333 -0
- package/lib.esm/abis/GovernorUpgradeable.js.map +1 -0
- package/lib.esm/abis/GovernorVotesQuorumFractionUpgradeable.d.ts +1106 -0
- package/lib.esm/abis/GovernorVotesQuorumFractionUpgradeable.d.ts.map +1 -0
- package/lib.esm/abis/GovernorVotesQuorumFractionUpgradeable.js +1444 -0
- package/lib.esm/abis/GovernorVotesQuorumFractionUpgradeable.js.map +1 -0
- package/lib.esm/abis/GovernorVotesUpgradeable.d.ts +1031 -0
- package/lib.esm/abis/GovernorVotesUpgradeable.d.ts.map +1 -0
- package/lib.esm/abis/GovernorVotesUpgradeable.js +1346 -0
- package/lib.esm/abis/GovernorVotesUpgradeable.js.map +1 -0
- package/lib.esm/abis/IGovernor.d.ts +795 -0
- package/lib.esm/abis/IGovernor.d.ts.map +1 -0
- package/lib.esm/abis/IGovernor.js +1040 -0
- package/lib.esm/abis/IGovernor.js.map +1 -0
- package/lib.esm/abis/IRankifyInstance.d.ts +45 -0
- package/lib.esm/abis/IRankifyInstance.d.ts.map +1 -1
- package/lib.esm/abis/IRankifyInstance.js +58 -0
- package/lib.esm/abis/IRankifyInstance.js.map +1 -1
- package/lib.esm/abis/MAODistribution.d.ts +40 -16
- package/lib.esm/abis/MAODistribution.d.ts.map +1 -1
- package/lib.esm/abis/MAODistribution.js +49 -19
- package/lib.esm/abis/MAODistribution.js.map +1 -1
- package/lib.esm/abis/RankifyDiamondInstance.d.ts +278 -43
- package/lib.esm/abis/RankifyDiamondInstance.d.ts.map +1 -1
- package/lib.esm/abis/RankifyDiamondInstance.js +353 -49
- package/lib.esm/abis/RankifyDiamondInstance.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceEventMock.d.ts +0 -40
- package/lib.esm/abis/RankifyInstanceEventMock.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceEventMock.js +0 -49
- package/lib.esm/abis/RankifyInstanceEventMock.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.d.ts +106 -21
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.js +131 -22
- package/lib.esm/abis/RankifyInstanceGameMastersFacet.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceMainFacet.d.ts +151 -5
- package/lib.esm/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceMainFacet.js +196 -6
- package/lib.esm/abis/RankifyInstanceMainFacet.js.map +1 -1
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts +21 -17
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.d.ts.map +1 -1
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.js +26 -21
- package/lib.esm/abis/RankifyInstanceRequirementsFacet.js.map +1 -1
- package/lib.esm/abis/index.d.ts +10 -31084
- package/lib.esm/abis/index.d.ts.map +1 -1
- package/lib.esm/abis/index.js +27 -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 +609 -20
- package/lib.esm/abis/superinterface.js.map +1 -1
- package/lib.esm/rankify/GameMaster.d.ts +26 -15
- package/lib.esm/rankify/GameMaster.d.ts.map +1 -1
- package/lib.esm/rankify/GameMaster.js +133 -110
- package/lib.esm/rankify/GameMaster.js.map +1 -1
- package/lib.esm/rankify/InstanceBase.d.ts +19 -27
- package/lib.esm/rankify/InstanceBase.d.ts.map +1 -1
- package/lib.esm/rankify/InstanceBase.js +35 -47
- package/lib.esm/rankify/InstanceBase.js.map +1 -1
- package/lib.esm/rankify/MAODistributor.d.ts +6 -1
- package/lib.esm/rankify/MAODistributor.d.ts.map +1 -1
- package/lib.esm/rankify/MAODistributor.js +9 -3
- package/lib.esm/rankify/MAODistributor.js.map +1 -1
- package/lib.esm/rankify/Player.d.ts +3 -2
- package/lib.esm/rankify/Player.d.ts.map +1 -1
- package/lib.esm/rankify/Player.js +8 -3
- package/lib.esm/rankify/Player.js.map +1 -1
- package/lib.esm/types/contracts.d.ts +2 -0
- package/lib.esm/types/contracts.d.ts.map +1 -1
- package/lib.esm/utils/EnvioGraphQLClient.d.ts +35 -23
- package/lib.esm/utils/EnvioGraphQLClient.d.ts.map +1 -1
- package/lib.esm/utils/EnvioGraphQLClient.js +94 -74
- package/lib.esm/utils/EnvioGraphQLClient.js.map +1 -1
- package/lib.esm/utils/index.d.ts.map +1 -1
- package/lib.esm/utils/index.js +4 -3
- package/lib.esm/utils/index.js.map +1 -1
- package/package.json +2 -2
- package/cli/cli/commands/fellowship/game/end-turn.js.map +0 -1
package/cli/utils/index.js
CHANGED
|
@@ -26,9 +26,10 @@ const parseInstantiated = (instances) => {
|
|
|
26
26
|
return {
|
|
27
27
|
govToken: instances[0],
|
|
28
28
|
govTokenAccessManager: instances[1],
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
governor: instances[2],
|
|
30
|
+
ACIDInstance: instances[3],
|
|
31
|
+
ACIDAccessManager: instances[4],
|
|
32
|
+
rankToken: instances[5],
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
exports.parseInstantiated = parseInstantiated;
|
package/cli/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,6CAA2B;AAC3B,8CAA4B;AAE5B;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAAC,SAA4B,EAAgB,EAAE;IAC9E,OAAO;QACL,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;QACtB,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC;QACnC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;QAC1B,iBAAiB,EAAE,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,6CAA2B;AAC3B,8CAA4B;AAE5B;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAAC,SAA4B,EAAgB,EAAE;IAC9E,OAAO;QACL,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;QACtB,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC;QACnC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;QACtB,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;QAC1B,iBAAiB,EAAE,SAAS,CAAC,CAAC,CAAC;QAC/B,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;KACxB,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,iBAAiB,qBAS5B"}
|
|
@@ -19,13 +19,14 @@ Client for interacting with Envio GraphQL API to retrieve indexed blockchain eve
|
|
|
19
19
|
- [getProposalSubmittedEvents](EnvioGraphQLClient.md#getproposalsubmittedevents)
|
|
20
20
|
- [getVoteSubmittedEvents](EnvioGraphQLClient.md#getvotesubmittedevents)
|
|
21
21
|
- [getRegistrationOpenEvents](EnvioGraphQLClient.md#getregistrationopenevents)
|
|
22
|
-
- [getTurnEndedEvents](EnvioGraphQLClient.md#getturnendedevents)
|
|
23
22
|
- [getProposalScoreEvents](EnvioGraphQLClient.md#getproposalscoreevents)
|
|
24
23
|
- [getGameOverEvents](EnvioGraphQLClient.md#getgameoverevents)
|
|
25
24
|
- [getGameStartedEvents](EnvioGraphQLClient.md#getgamestartedevents)
|
|
26
25
|
- [queryInstances](EnvioGraphQLClient.md#queryinstances)
|
|
27
26
|
- [getGameStates](EnvioGraphQLClient.md#getgamestates)
|
|
28
27
|
- [getMAOInstances](EnvioGraphQLClient.md#getmaoinstances)
|
|
28
|
+
- [getProposingStageEndedEvents](EnvioGraphQLClient.md#getproposingstageendedevents)
|
|
29
|
+
- [getVotingStageResults](EnvioGraphQLClient.md#getvotingstageresults)
|
|
29
30
|
|
|
30
31
|
## Constructors
|
|
31
32
|
|
|
@@ -100,7 +101,7 @@ ___
|
|
|
100
101
|
|
|
101
102
|
### getProposalSubmittedEvents
|
|
102
103
|
|
|
103
|
-
▸ **getProposalSubmittedEvents**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `encryptedProposal`: `string` ; `gmSignature`: `string` ; `proposerSignature`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `
|
|
104
|
+
▸ **getProposalSubmittedEvents**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `encryptedProposal`: `string` ; `gmSignature`: `string` ; `proposerSignature`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `roundNumber`: `bigint` ; `commitment`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` ; `proposer`: \`0x$\{string}\` }[]\>
|
|
104
105
|
|
|
105
106
|
Get proposal submitted events for a specific game and turn
|
|
106
107
|
|
|
@@ -116,13 +117,13 @@ Get proposal submitted events for a specific game and turn
|
|
|
116
117
|
|
|
117
118
|
#### Returns
|
|
118
119
|
|
|
119
|
-
`Promise`\<\{ `id`: `string` ; `encryptedProposal`: `string` ; `gmSignature`: `string` ; `proposerSignature`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `
|
|
120
|
+
`Promise`\<\{ `id`: `string` ; `encryptedProposal`: `string` ; `gmSignature`: `string` ; `proposerSignature`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `roundNumber`: `bigint` ; `commitment`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` ; `proposer`: \`0x$\{string}\` }[]\>
|
|
120
121
|
|
|
121
122
|
___
|
|
122
123
|
|
|
123
124
|
### getVoteSubmittedEvents
|
|
124
125
|
|
|
125
|
-
▸ **getVoteSubmittedEvents**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `sealedBallotId`: `string` ; `gmSignature`: `string` ; `voterSignature`: `string` ; `ballotHash`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `
|
|
126
|
+
▸ **getVoteSubmittedEvents**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `sealedBallotId`: `string` ; `gmSignature`: `string` ; `voterSignature`: `string` ; `ballotHash`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `roundNumber`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` ; `player`: \`0x$\{string}\` }[]\>
|
|
126
127
|
|
|
127
128
|
Get vote submitted events for a specific game and turn
|
|
128
129
|
|
|
@@ -138,7 +139,7 @@ Get vote submitted events for a specific game and turn
|
|
|
138
139
|
|
|
139
140
|
#### Returns
|
|
140
141
|
|
|
141
|
-
`Promise`\<\{ `id`: `string` ; `sealedBallotId`: `string` ; `gmSignature`: `string` ; `voterSignature`: `string` ; `ballotHash`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `
|
|
142
|
+
`Promise`\<\{ `id`: `string` ; `sealedBallotId`: `string` ; `gmSignature`: `string` ; `voterSignature`: `string` ; `ballotHash`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `roundNumber`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` ; `player`: \`0x$\{string}\` }[]\>
|
|
142
143
|
|
|
143
144
|
___
|
|
144
145
|
|
|
@@ -162,30 +163,9 @@ Get registration open events for a specific game
|
|
|
162
163
|
|
|
163
164
|
___
|
|
164
165
|
|
|
165
|
-
### getTurnEndedEvents
|
|
166
|
-
|
|
167
|
-
▸ **getTurnEndedEvents**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `newProposals`: `string`[] ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `scores`: `bigint`[] ; `proposerIndices`: `bigint`[] ; `votes`: `bigint`[][] ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` ; `players`: \`0x$\{string}\`[] }[]\>
|
|
168
|
-
|
|
169
|
-
Get turn ended events for a specific game and turn
|
|
170
|
-
|
|
171
|
-
#### Parameters
|
|
172
|
-
|
|
173
|
-
| Name | Type |
|
|
174
|
-
| :------ | :------ |
|
|
175
|
-
| `«destructured»` | `Object` |
|
|
176
|
-
| › `gameId` | `bigint` |
|
|
177
|
-
| › `turn?` | `bigint` |
|
|
178
|
-
| › `contractAddress` | \`0x$\{string}\` |
|
|
179
|
-
|
|
180
|
-
#### Returns
|
|
181
|
-
|
|
182
|
-
`Promise`\<\{ `id`: `string` ; `newProposals`: `string`[] ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `scores`: `bigint`[] ; `proposerIndices`: `bigint`[] ; `votes`: `bigint`[][] ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` ; `players`: \`0x$\{string}\`[] }[]\>
|
|
183
|
-
|
|
184
|
-
___
|
|
185
|
-
|
|
186
166
|
### getProposalScoreEvents
|
|
187
167
|
|
|
188
|
-
▸ **getProposalScoreEvents**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
168
|
+
▸ **getProposalScoreEvents**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
189
169
|
|
|
190
170
|
Get proposal score events for a specific game and turn
|
|
191
171
|
|
|
@@ -200,7 +180,7 @@ Get proposal score events for a specific game and turn
|
|
|
200
180
|
|
|
201
181
|
#### Returns
|
|
202
182
|
|
|
203
|
-
`Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
183
|
+
`Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
204
184
|
|
|
205
185
|
___
|
|
206
186
|
|
|
@@ -307,3 +287,41 @@ Get MAO instances for a specific distribution
|
|
|
307
287
|
#### Returns
|
|
308
288
|
|
|
309
289
|
`Promise`\<\{ `id`: `string` ; `distributionId`: `string` ; `newInstanceId`: `string` ; `instances`: `string`[] ; `args`: `string` ; `blockTimestamp`: `string` ; `version?`: `string` ; `srcAddress`: `string` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
290
|
+
|
|
291
|
+
___
|
|
292
|
+
|
|
293
|
+
### getProposingStageEndedEvents
|
|
294
|
+
|
|
295
|
+
▸ **getProposingStageEndedEvents**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `proposals`: `string`[] ; `gameId`: `bigint` ; `roundNumber`: `bigint` ; `numProposals`: `number` ; `blockNumber`: `bigint` ; `blockTimestamp`: `number` ; `srcAddress`: \`0x$\{string}\` }[]\>
|
|
296
|
+
|
|
297
|
+
#### Parameters
|
|
298
|
+
|
|
299
|
+
| Name | Type |
|
|
300
|
+
| :------ | :------ |
|
|
301
|
+
| `«destructured»` | `Object` |
|
|
302
|
+
| › `gameId` | `bigint` |
|
|
303
|
+
| › `turn` | `bigint` |
|
|
304
|
+
| › `contractAddress` | \`0x$\{string}\` |
|
|
305
|
+
|
|
306
|
+
#### Returns
|
|
307
|
+
|
|
308
|
+
`Promise`\<\{ `id`: `string` ; `proposals`: `string`[] ; `gameId`: `bigint` ; `roundNumber`: `bigint` ; `numProposals`: `number` ; `blockNumber`: `bigint` ; `blockTimestamp`: `number` ; `srcAddress`: \`0x$\{string}\` }[]\>
|
|
309
|
+
|
|
310
|
+
___
|
|
311
|
+
|
|
312
|
+
### getVotingStageResults
|
|
313
|
+
|
|
314
|
+
▸ **getVotingStageResults**(`«destructured»`): `Promise`\<\{ `id`: `string` ; `isActive`: `boolean`[] ; `gameId`: `bigint` ; `roundNumber`: `bigint` ; `winner`: \`0x$\{string}\` ; `players`: \`0x$\{string}\`[] ; `scores`: `bigint`[] ; `votesSorted`: `bigint`[][] ; `finalizedVotingMatrix`: `bigint`[][] ; `blockNumber`: `bigint` ; `blockTimestamp`: `number` ; `srcAddress`: \`0x$\{string}\` }[]\>
|
|
315
|
+
|
|
316
|
+
#### Parameters
|
|
317
|
+
|
|
318
|
+
| Name | Type |
|
|
319
|
+
| :------ | :------ |
|
|
320
|
+
| `«destructured»` | `Object` |
|
|
321
|
+
| › `gameId` | `bigint` |
|
|
322
|
+
| › `turn` | `bigint` |
|
|
323
|
+
| › `contractAddress` | `string` |
|
|
324
|
+
|
|
325
|
+
#### Returns
|
|
326
|
+
|
|
327
|
+
`Promise`\<\{ `id`: `string` ; `isActive`: `boolean`[] ; `gameId`: `bigint` ; `roundNumber`: `bigint` ; `winner`: \`0x$\{string}\` ; `players`: \`0x$\{string}\`[] ; `scores`: `bigint`[] ; `votesSorted`: `bigint`[][] ; `finalizedVotingMatrix`: `bigint`[][] ; `blockNumber`: `bigint` ; `blockTimestamp`: `number` ; `srcAddress`: \`0x$\{string}\` }[]\>
|
|
@@ -35,16 +35,18 @@ Extends InstanceBase to provide game master specific functionality
|
|
|
35
35
|
- [attestProposal](GameMaster.md#attestproposal)
|
|
36
36
|
- [submitProposal](GameMaster.md#submitproposal)
|
|
37
37
|
- [decryptTurnVotes](GameMaster.md#decryptturnvotes)
|
|
38
|
-
- [
|
|
38
|
+
- [canEndProposingStage](GameMaster.md#canendproposingstage)
|
|
39
|
+
- [canEndVotingStage](GameMaster.md#canendvotingstage)
|
|
39
40
|
- [currentTurn](GameMaster.md#currentturn)
|
|
40
41
|
- [getPlayers](GameMaster.md#getplayers)
|
|
41
|
-
- [endTurn](GameMaster.md#endturn)
|
|
42
42
|
- [gameKey](GameMaster.md#gamekey)
|
|
43
43
|
- [attestVote](GameMaster.md#attestvote)
|
|
44
44
|
- [signVote](GameMaster.md#signvote)
|
|
45
45
|
- [generateEndTurnIntegrity](GameMaster.md#generateendturnintegrity)
|
|
46
46
|
- [getProposalsIntegrity](GameMaster.md#getproposalsintegrity)
|
|
47
47
|
- [createInputs](GameMaster.md#createinputs)
|
|
48
|
+
- [endProposing](GameMaster.md#endproposing)
|
|
49
|
+
- [endVoting](GameMaster.md#endvoting)
|
|
48
50
|
|
|
49
51
|
## Constructors
|
|
50
52
|
|
|
@@ -511,9 +513,9 @@ Array of decrypted votes with player addresses
|
|
|
511
513
|
|
|
512
514
|
___
|
|
513
515
|
|
|
514
|
-
###
|
|
516
|
+
### canEndProposingStage
|
|
515
517
|
|
|
516
|
-
▸ **
|
|
518
|
+
▸ **canEndProposingStage**(`gameId`): `Promise`\<readonly [`boolean`, `number`]\>
|
|
517
519
|
|
|
518
520
|
Checks if the current turn can be ended
|
|
519
521
|
|
|
@@ -527,39 +529,35 @@ Checks if the current turn can be ended
|
|
|
527
529
|
|
|
528
530
|
#### Returns
|
|
529
531
|
|
|
530
|
-
`Promise
|
|
532
|
+
`Promise`\<readonly [`boolean`, `number`]\>
|
|
531
533
|
|
|
532
534
|
Boolean indicating if turn can be ended
|
|
533
535
|
|
|
534
536
|
___
|
|
535
537
|
|
|
536
|
-
###
|
|
538
|
+
### canEndVotingStage
|
|
537
539
|
|
|
538
|
-
▸ **
|
|
539
|
-
|
|
540
|
-
Gets the current turn number
|
|
540
|
+
▸ **canEndVotingStage**(`«destructured»`): `Promise`\<`boolean`\>
|
|
541
541
|
|
|
542
542
|
#### Parameters
|
|
543
543
|
|
|
544
|
-
| Name | Type |
|
|
545
|
-
| :------ | :------ |
|
|
546
|
-
|
|
|
547
|
-
| `
|
|
548
|
-
| `gameId
|
|
544
|
+
| Name | Type |
|
|
545
|
+
| :------ | :------ |
|
|
546
|
+
| `«destructured»` | `Object` |
|
|
547
|
+
| › `instanceAddress` | \`0x$\{string}\` |
|
|
548
|
+
| › `gameId` | `bigint` |
|
|
549
549
|
|
|
550
550
|
#### Returns
|
|
551
551
|
|
|
552
|
-
`Promise`\<`
|
|
553
|
-
|
|
554
|
-
Current turn number
|
|
552
|
+
`Promise`\<`boolean`\>
|
|
555
553
|
|
|
556
554
|
___
|
|
557
555
|
|
|
558
|
-
###
|
|
556
|
+
### currentTurn
|
|
559
557
|
|
|
560
|
-
▸ **
|
|
558
|
+
▸ **currentTurn**(`gameId`): `Promise`\<`bigint`\>
|
|
561
559
|
|
|
562
|
-
Gets the
|
|
560
|
+
Gets the current turn number
|
|
563
561
|
|
|
564
562
|
#### Parameters
|
|
565
563
|
|
|
@@ -571,17 +569,17 @@ Gets the list of players in the game
|
|
|
571
569
|
|
|
572
570
|
#### Returns
|
|
573
571
|
|
|
574
|
-
`Promise
|
|
572
|
+
`Promise`\<`bigint`\>
|
|
575
573
|
|
|
576
|
-
|
|
574
|
+
Current turn number
|
|
577
575
|
|
|
578
576
|
___
|
|
579
577
|
|
|
580
|
-
###
|
|
578
|
+
### getPlayers
|
|
581
579
|
|
|
582
|
-
▸ **
|
|
580
|
+
▸ **getPlayers**(`gameId`): `Promise`\<readonly \`0x$\{string}\`[]\>
|
|
583
581
|
|
|
584
|
-
|
|
582
|
+
Gets the list of players in the game
|
|
585
583
|
|
|
586
584
|
#### Parameters
|
|
587
585
|
|
|
@@ -593,9 +591,9 @@ Ends the current turn and processes votes
|
|
|
593
591
|
|
|
594
592
|
#### Returns
|
|
595
593
|
|
|
596
|
-
`Promise
|
|
594
|
+
`Promise`\<readonly \`0x$\{string}\`[]\>
|
|
597
595
|
|
|
598
|
-
|
|
596
|
+
Array of player addresses
|
|
599
597
|
|
|
600
598
|
___
|
|
601
599
|
|
|
@@ -603,6 +601,9 @@ ___
|
|
|
603
601
|
|
|
604
602
|
▸ **gameKey**(`«destructured»`): `Promise`\<\`0x$\{string}\`\>
|
|
605
603
|
|
|
604
|
+
NOTE: endTurn has been replaced with endProposing and endVoting methods
|
|
605
|
+
for the new two-phase turn system.
|
|
606
|
+
|
|
606
607
|
#### Parameters
|
|
607
608
|
|
|
608
609
|
| Name | Type |
|
|
@@ -743,3 +744,39 @@ Creates inputs for the proposal integrity circuit
|
|
|
743
744
|
`Promise`\<`PrivateProposalsIntegrity15Groth16`\>
|
|
744
745
|
|
|
745
746
|
The inputs for the proposal integrity circuit
|
|
747
|
+
|
|
748
|
+
___
|
|
749
|
+
|
|
750
|
+
### endProposing
|
|
751
|
+
|
|
752
|
+
▸ **endProposing**(`«destructured»`): `Promise`\<\{ `turn`: `bigint` ; `hash`: \`0x$\{string}\` ; `blockNumber`: `bigint` ; `newPermutedProposals`: `string`[] }\>
|
|
753
|
+
|
|
754
|
+
#### Parameters
|
|
755
|
+
|
|
756
|
+
| Name | Type |
|
|
757
|
+
| :------ | :------ |
|
|
758
|
+
| `«destructured»` | `Object` |
|
|
759
|
+
| › `instanceAddress` | \`0x$\{string}\` |
|
|
760
|
+
| › `gameId` | `bigint` |
|
|
761
|
+
|
|
762
|
+
#### Returns
|
|
763
|
+
|
|
764
|
+
`Promise`\<\{ `turn`: `bigint` ; `hash`: \`0x$\{string}\` ; `blockNumber`: `bigint` ; `newPermutedProposals`: `string`[] }\>
|
|
765
|
+
|
|
766
|
+
___
|
|
767
|
+
|
|
768
|
+
### endVoting
|
|
769
|
+
|
|
770
|
+
▸ **endVoting**(`«destructured»`): `Promise`\<\{ `turn`: `bigint` ; `hash`: \`0x$\{string}\` ; `blockNumber`: `bigint` ; `hasEnded`: `boolean` = gameState.hasEnded }\>
|
|
771
|
+
|
|
772
|
+
#### Parameters
|
|
773
|
+
|
|
774
|
+
| Name | Type |
|
|
775
|
+
| :------ | :------ |
|
|
776
|
+
| `«destructured»` | `Object` |
|
|
777
|
+
| › `instanceAddress` | \`0x$\{string}\` |
|
|
778
|
+
| › `gameId` | `bigint` |
|
|
779
|
+
|
|
780
|
+
#### Returns
|
|
781
|
+
|
|
782
|
+
`Promise`\<\{ `turn`: `bigint` ; `hash`: \`0x$\{string}\` ; `blockNumber`: `bigint` ; `hasEnded`: `boolean` = gameState.hasEnded }\>
|
|
@@ -121,7 +121,7 @@ ___
|
|
|
121
121
|
|
|
122
122
|
### getHistoricTurn
|
|
123
123
|
|
|
124
|
-
▸ **getHistoricTurn**(`gameId`, `turnId`): `Promise
|
|
124
|
+
▸ **getHistoricTurn**(`gameId`, `turnId`): `Promise`\<\{ `player`: `string` ; `proposal`: `string` ; `votes`: `number` ; `score`: `number` ; `scoreList`: \{ `player`: \`0x$\{string}\` = p; `score`: `number` }[] ; `blockTimestamp`: `bigint` }[]\>
|
|
125
125
|
|
|
126
126
|
Retrieves the historic turn information for a specific game and turn ID.
|
|
127
127
|
|
|
@@ -134,7 +134,7 @@ Retrieves the historic turn information for a specific game and turn ID.
|
|
|
134
134
|
|
|
135
135
|
#### Returns
|
|
136
136
|
|
|
137
|
-
`Promise
|
|
137
|
+
`Promise`\<\{ `player`: `string` ; `proposal`: `string` ; `votes`: `number` ; `score`: `number` ; `scoreList`: \{ `player`: \`0x$\{string}\` = p; `score`: `number` }[] ; `blockTimestamp`: `bigint` }[]\>
|
|
138
138
|
|
|
139
139
|
The historic turn event object.
|
|
140
140
|
|
|
@@ -177,7 +177,7 @@ ___
|
|
|
177
177
|
|
|
178
178
|
### getPreviousTurnStats
|
|
179
179
|
|
|
180
|
-
▸ **getPreviousTurnStats**(`gameId`): `Promise
|
|
180
|
+
▸ **getPreviousTurnStats**(`gameId`): `Promise`\<\{ `player`: `string` ; `proposal`: `string` ; `votes`: `number` ; `score`: `number` ; `scoreList`: \{ `player`: \`0x$\{string}\` = p; `score`: `number` }[] ; `blockTimestamp`: `bigint` }[] \| \{ `players`: `string` = "N/A"; `scores`: `string` = "N/A"; `turnSalt`: `string` = "N/A"; `voters`: `string`[] ; `votesRevealed`: `string`[] }\>
|
|
181
181
|
|
|
182
182
|
Retrieves the previous turn information for a specific game.
|
|
183
183
|
|
|
@@ -189,7 +189,7 @@ Retrieves the previous turn information for a specific game.
|
|
|
189
189
|
|
|
190
190
|
#### Returns
|
|
191
191
|
|
|
192
|
-
`Promise
|
|
192
|
+
`Promise`\<\{ `player`: `string` ; `proposal`: `string` ; `votes`: `number` ; `score`: `number` ; `scoreList`: \{ `player`: \`0x$\{string}\` = p; `score`: `number` }[] ; `blockTimestamp`: `bigint` }[] \| \{ `players`: `string` = "N/A"; `scores`: `string` = "N/A"; `turnSalt`: `string` = "N/A"; `voters`: `string`[] ; `votesRevealed`: `string`[] }\>
|
|
193
193
|
|
|
194
194
|
The previous turn information for the specified game.
|
|
195
195
|
|
|
@@ -236,7 +236,7 @@ ___
|
|
|
236
236
|
|
|
237
237
|
### getOngoingProposals
|
|
238
238
|
|
|
239
|
-
▸ **getOngoingProposals**(`gameId`): `Promise`\<\{ `currentTurn`: `bigint` ; `proposals`: `unknown`[]
|
|
239
|
+
▸ **getOngoingProposals**(`gameId`): `Promise`\<\{ `currentTurn`: `bigint` ; `proposals`: `unknown`[] }\>
|
|
240
240
|
|
|
241
241
|
Retrieves the ongoing proposals for a specific game.
|
|
242
242
|
|
|
@@ -248,7 +248,7 @@ Retrieves the ongoing proposals for a specific game.
|
|
|
248
248
|
|
|
249
249
|
#### Returns
|
|
250
250
|
|
|
251
|
-
`Promise`\<\{ `currentTurn`: `bigint` ; `proposals`: `unknown`[]
|
|
251
|
+
`Promise`\<\{ `currentTurn`: `bigint` ; `proposals`: `unknown`[] }\>
|
|
252
252
|
|
|
253
253
|
The ongoing proposals for the specified game.
|
|
254
254
|
|
|
@@ -350,7 +350,7 @@ ___
|
|
|
350
350
|
|
|
351
351
|
### getProposalScoresList
|
|
352
352
|
|
|
353
|
-
▸ **getProposalScoresList**(`gameId`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
353
|
+
▸ **getProposalScoresList**(`gameId`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
354
354
|
|
|
355
355
|
Retrieves the list of proposal scores for a specific game.
|
|
356
356
|
|
|
@@ -362,7 +362,7 @@ Retrieves the list of proposal scores for a specific game.
|
|
|
362
362
|
|
|
363
363
|
#### Returns
|
|
364
364
|
|
|
365
|
-
`Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
365
|
+
`Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
366
366
|
|
|
367
367
|
A Promise that resolves to the list of proposal scores.
|
|
368
368
|
|
|
@@ -410,7 +410,7 @@ ___
|
|
|
410
410
|
|
|
411
411
|
### getGameState
|
|
412
412
|
|
|
413
|
-
▸ **getGameState**(`gameId`): `Promise`\<\{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `
|
|
413
|
+
▸ **getGameState**(`gameId`): `Promise`\<\{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `numCommitments`: `bigint` ; `numVotes`: `bigint` ; `voting`: \{ `voteCredits`: `bigint` ; `maxQuadraticPoints`: `bigint` ; `minQuadraticPositions`: `bigint` } ; `currentTurn`: `bigint` ; `turnStartedAt`: `bigint` ; `registrationOpenAt`: `bigint` ; `hasStarted`: `boolean` ; `hasEnded`: `boolean` ; `numPlayersMadeMove`: `bigint` ; `numActivePlayers`: `bigint` ; `isOvertime`: `boolean` ; `timePerTurn`: `bigint` ; `maxPlayerCnt`: `bigint` ; `minPlayerCnt`: `bigint` ; `timeToJoin`: `bigint` ; `maxTurns`: `bigint` ; `voteCredits`: `bigint` ; `gameMaster`: \`0x$\{string}\` ; `metadata`: `string` ; `phase`: `bigint` ; `votePhaseDuration`: `bigint` ; `proposingPhaseDuration`: `bigint` ; `phaseStartedAt`: `bigint` ; `startedAt`: `bigint` }\>
|
|
414
414
|
|
|
415
415
|
#### Parameters
|
|
416
416
|
|
|
@@ -420,7 +420,7 @@ ___
|
|
|
420
420
|
|
|
421
421
|
#### Returns
|
|
422
422
|
|
|
423
|
-
`Promise`\<\{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `
|
|
423
|
+
`Promise`\<\{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `numCommitments`: `bigint` ; `numVotes`: `bigint` ; `voting`: \{ `voteCredits`: `bigint` ; `maxQuadraticPoints`: `bigint` ; `minQuadraticPositions`: `bigint` } ; `currentTurn`: `bigint` ; `turnStartedAt`: `bigint` ; `registrationOpenAt`: `bigint` ; `hasStarted`: `boolean` ; `hasEnded`: `boolean` ; `numPlayersMadeMove`: `bigint` ; `numActivePlayers`: `bigint` ; `isOvertime`: `boolean` ; `timePerTurn`: `bigint` ; `maxPlayerCnt`: `bigint` ; `minPlayerCnt`: `bigint` ; `timeToJoin`: `bigint` ; `maxTurns`: `bigint` ; `voteCredits`: `bigint` ; `gameMaster`: \`0x$\{string}\` ; `metadata`: `string` ; `phase`: `bigint` ; `votePhaseDuration`: `bigint` ; `proposingPhaseDuration`: `bigint` ; `phaseStartedAt`: `bigint` ; `startedAt`: `bigint` }\>
|
|
424
424
|
|
|
425
425
|
___
|
|
426
426
|
|
|
@@ -446,7 +446,7 @@ ___
|
|
|
446
446
|
|
|
447
447
|
### getGameStates
|
|
448
448
|
|
|
449
|
-
▸ **getGameStates**(`«destructured»`): `Promise`\<\{ `items`: \{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `
|
|
449
|
+
▸ **getGameStates**(`«destructured»`): `Promise`\<\{ `items`: \{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `numCommitments`: `bigint` ; `numVotes`: `bigint` ; `voting`: \{ `voteCredits`: `bigint` ; `maxQuadraticPoints`: `bigint` ; `minQuadraticPositions`: `bigint` } ; `currentTurn`: `bigint` ; `turnStartedAt`: `bigint` ; `registrationOpenAt`: `bigint` ; `hasStarted`: `boolean` ; `hasEnded`: `boolean` ; `numPlayersMadeMove`: `bigint` ; `numActivePlayers`: `bigint` ; `isOvertime`: `boolean` ; `timePerTurn`: `bigint` ; `maxPlayerCnt`: `bigint` ; `minPlayerCnt`: `bigint` ; `timeToJoin`: `bigint` ; `maxTurns`: `bigint` ; `voteCredits`: `bigint` ; `gameMaster`: \`0x$\{string}\` ; `metadata`: `string` ; `phase`: `bigint` ; `votePhaseDuration`: `bigint` ; `proposingPhaseDuration`: `bigint` ; `phaseStartedAt`: `bigint` ; `startedAt`: `bigint` } & \{ `gamePhase`: [`gameStatusEnum`](../enums/gameStatusEnum.md) }[] ; `nextPage`: `undefined` \| `number` ; `hasMore`: `boolean` }\>
|
|
450
450
|
|
|
451
451
|
#### Parameters
|
|
452
452
|
|
|
@@ -458,7 +458,7 @@ ___
|
|
|
458
458
|
|
|
459
459
|
#### Returns
|
|
460
460
|
|
|
461
|
-
`Promise`\<\{ `items`: \{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `
|
|
461
|
+
`Promise`\<\{ `items`: \{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `numCommitments`: `bigint` ; `numVotes`: `bigint` ; `voting`: \{ `voteCredits`: `bigint` ; `maxQuadraticPoints`: `bigint` ; `minQuadraticPositions`: `bigint` } ; `currentTurn`: `bigint` ; `turnStartedAt`: `bigint` ; `registrationOpenAt`: `bigint` ; `hasStarted`: `boolean` ; `hasEnded`: `boolean` ; `numPlayersMadeMove`: `bigint` ; `numActivePlayers`: `bigint` ; `isOvertime`: `boolean` ; `timePerTurn`: `bigint` ; `maxPlayerCnt`: `bigint` ; `minPlayerCnt`: `bigint` ; `timeToJoin`: `bigint` ; `maxTurns`: `bigint` ; `voteCredits`: `bigint` ; `gameMaster`: \`0x$\{string}\` ; `metadata`: `string` ; `phase`: `bigint` ; `votePhaseDuration`: `bigint` ; `proposingPhaseDuration`: `bigint` ; `phaseStartedAt`: `bigint` ; `startedAt`: `bigint` } & \{ `gamePhase`: [`gameStatusEnum`](../enums/gameStatusEnum.md) }[] ; `nextPage`: `undefined` \| `number` ; `hasMore`: `boolean` }\>
|
|
462
462
|
|
|
463
463
|
___
|
|
464
464
|
|
|
@@ -174,7 +174,7 @@ ___
|
|
|
174
174
|
|
|
175
175
|
### getHistoricTurn
|
|
176
176
|
|
|
177
|
-
▸ **getHistoricTurn**(`gameId`, `turnId`): `Promise
|
|
177
|
+
▸ **getHistoricTurn**(`gameId`, `turnId`): `Promise`\<\{ `player`: `string` ; `proposal`: `string` ; `votes`: `number` ; `score`: `number` ; `scoreList`: \{ `player`: \`0x$\{string}\` = p; `score`: `number` }[] ; `blockTimestamp`: `bigint` }[]\>
|
|
178
178
|
|
|
179
179
|
Retrieves the historic turn information for a specific game and turn ID.
|
|
180
180
|
|
|
@@ -187,7 +187,7 @@ Retrieves the historic turn information for a specific game and turn ID.
|
|
|
187
187
|
|
|
188
188
|
#### Returns
|
|
189
189
|
|
|
190
|
-
`Promise
|
|
190
|
+
`Promise`\<\{ `player`: `string` ; `proposal`: `string` ; `votes`: `number` ; `score`: `number` ; `scoreList`: \{ `player`: \`0x$\{string}\` = p; `score`: `number` }[] ; `blockTimestamp`: `bigint` }[]\>
|
|
191
191
|
|
|
192
192
|
The historic turn event object.
|
|
193
193
|
|
|
@@ -242,7 +242,7 @@ ___
|
|
|
242
242
|
|
|
243
243
|
### getPreviousTurnStats
|
|
244
244
|
|
|
245
|
-
▸ **getPreviousTurnStats**(`gameId`): `Promise
|
|
245
|
+
▸ **getPreviousTurnStats**(`gameId`): `Promise`\<\{ `player`: `string` ; `proposal`: `string` ; `votes`: `number` ; `score`: `number` ; `scoreList`: \{ `player`: \`0x$\{string}\` = p; `score`: `number` }[] ; `blockTimestamp`: `bigint` }[] \| \{ `players`: `string` = "N/A"; `scores`: `string` = "N/A"; `turnSalt`: `string` = "N/A"; `voters`: `string`[] ; `votesRevealed`: `string`[] }\>
|
|
246
246
|
|
|
247
247
|
Retrieves the previous turn information for a specific game.
|
|
248
248
|
|
|
@@ -254,7 +254,7 @@ Retrieves the previous turn information for a specific game.
|
|
|
254
254
|
|
|
255
255
|
#### Returns
|
|
256
256
|
|
|
257
|
-
`Promise
|
|
257
|
+
`Promise`\<\{ `player`: `string` ; `proposal`: `string` ; `votes`: `number` ; `score`: `number` ; `scoreList`: \{ `player`: \`0x$\{string}\` = p; `score`: `number` }[] ; `blockTimestamp`: `bigint` }[] \| \{ `players`: `string` = "N/A"; `scores`: `string` = "N/A"; `turnSalt`: `string` = "N/A"; `voters`: `string`[] ; `votesRevealed`: `string`[] }\>
|
|
258
258
|
|
|
259
259
|
The previous turn information for the specified game.
|
|
260
260
|
|
|
@@ -313,7 +313,7 @@ ___
|
|
|
313
313
|
|
|
314
314
|
### getOngoingProposals
|
|
315
315
|
|
|
316
|
-
▸ **getOngoingProposals**(`gameId`): `Promise`\<\{ `currentTurn`: `bigint` ; `proposals`: `unknown`[]
|
|
316
|
+
▸ **getOngoingProposals**(`gameId`): `Promise`\<\{ `currentTurn`: `bigint` ; `proposals`: `unknown`[] }\>
|
|
317
317
|
|
|
318
318
|
Retrieves the ongoing proposals for a specific game.
|
|
319
319
|
|
|
@@ -325,7 +325,7 @@ Retrieves the ongoing proposals for a specific game.
|
|
|
325
325
|
|
|
326
326
|
#### Returns
|
|
327
327
|
|
|
328
|
-
`Promise`\<\{ `currentTurn`: `bigint` ; `proposals`: `unknown`[]
|
|
328
|
+
`Promise`\<\{ `currentTurn`: `bigint` ; `proposals`: `unknown`[] }\>
|
|
329
329
|
|
|
330
330
|
The ongoing proposals for the specified game.
|
|
331
331
|
|
|
@@ -451,7 +451,7 @@ ___
|
|
|
451
451
|
|
|
452
452
|
### getProposalScoresList
|
|
453
453
|
|
|
454
|
-
▸ **getProposalScoresList**(`gameId`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
454
|
+
▸ **getProposalScoresList**(`gameId`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
455
455
|
|
|
456
456
|
Retrieves the list of proposal scores for a specific game.
|
|
457
457
|
|
|
@@ -463,7 +463,7 @@ Retrieves the list of proposal scores for a specific game.
|
|
|
463
463
|
|
|
464
464
|
#### Returns
|
|
465
465
|
|
|
466
|
-
`Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
466
|
+
`Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
|
|
467
467
|
|
|
468
468
|
A Promise that resolves to the list of proposal scores.
|
|
469
469
|
|
|
@@ -523,7 +523,7 @@ ___
|
|
|
523
523
|
|
|
524
524
|
### getGameState
|
|
525
525
|
|
|
526
|
-
▸ **getGameState**(`gameId`): `Promise`\<\{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `
|
|
526
|
+
▸ **getGameState**(`gameId`): `Promise`\<\{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `numCommitments`: `bigint` ; `numVotes`: `bigint` ; `voting`: \{ `voteCredits`: `bigint` ; `maxQuadraticPoints`: `bigint` ; `minQuadraticPositions`: `bigint` } ; `currentTurn`: `bigint` ; `turnStartedAt`: `bigint` ; `registrationOpenAt`: `bigint` ; `hasStarted`: `boolean` ; `hasEnded`: `boolean` ; `numPlayersMadeMove`: `bigint` ; `numActivePlayers`: `bigint` ; `isOvertime`: `boolean` ; `timePerTurn`: `bigint` ; `maxPlayerCnt`: `bigint` ; `minPlayerCnt`: `bigint` ; `timeToJoin`: `bigint` ; `maxTurns`: `bigint` ; `voteCredits`: `bigint` ; `gameMaster`: \`0x$\{string}\` ; `metadata`: `string` ; `phase`: `bigint` ; `votePhaseDuration`: `bigint` ; `proposingPhaseDuration`: `bigint` ; `phaseStartedAt`: `bigint` ; `startedAt`: `bigint` }\>
|
|
527
527
|
|
|
528
528
|
#### Parameters
|
|
529
529
|
|
|
@@ -533,7 +533,7 @@ ___
|
|
|
533
533
|
|
|
534
534
|
#### Returns
|
|
535
535
|
|
|
536
|
-
`Promise`\<\{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `
|
|
536
|
+
`Promise`\<\{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `numCommitments`: `bigint` ; `numVotes`: `bigint` ; `voting`: \{ `voteCredits`: `bigint` ; `maxQuadraticPoints`: `bigint` ; `minQuadraticPositions`: `bigint` } ; `currentTurn`: `bigint` ; `turnStartedAt`: `bigint` ; `registrationOpenAt`: `bigint` ; `hasStarted`: `boolean` ; `hasEnded`: `boolean` ; `numPlayersMadeMove`: `bigint` ; `numActivePlayers`: `bigint` ; `isOvertime`: `boolean` ; `timePerTurn`: `bigint` ; `maxPlayerCnt`: `bigint` ; `minPlayerCnt`: `bigint` ; `timeToJoin`: `bigint` ; `maxTurns`: `bigint` ; `voteCredits`: `bigint` ; `gameMaster`: \`0x$\{string}\` ; `metadata`: `string` ; `phase`: `bigint` ; `votePhaseDuration`: `bigint` ; `proposingPhaseDuration`: `bigint` ; `phaseStartedAt`: `bigint` ; `startedAt`: `bigint` }\>
|
|
537
537
|
|
|
538
538
|
#### Inherited from
|
|
539
539
|
|
|
@@ -567,7 +567,7 @@ ___
|
|
|
567
567
|
|
|
568
568
|
### getGameStates
|
|
569
569
|
|
|
570
|
-
▸ **getGameStates**(`«destructured»`): `Promise`\<\{ `items`: \{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `
|
|
570
|
+
▸ **getGameStates**(`«destructured»`): `Promise`\<\{ `items`: \{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `numCommitments`: `bigint` ; `numVotes`: `bigint` ; `voting`: \{ `voteCredits`: `bigint` ; `maxQuadraticPoints`: `bigint` ; `minQuadraticPositions`: `bigint` } ; `currentTurn`: `bigint` ; `turnStartedAt`: `bigint` ; `registrationOpenAt`: `bigint` ; `hasStarted`: `boolean` ; `hasEnded`: `boolean` ; `numPlayersMadeMove`: `bigint` ; `numActivePlayers`: `bigint` ; `isOvertime`: `boolean` ; `timePerTurn`: `bigint` ; `maxPlayerCnt`: `bigint` ; `minPlayerCnt`: `bigint` ; `timeToJoin`: `bigint` ; `maxTurns`: `bigint` ; `voteCredits`: `bigint` ; `gameMaster`: \`0x$\{string}\` ; `metadata`: `string` ; `phase`: `bigint` ; `votePhaseDuration`: `bigint` ; `proposingPhaseDuration`: `bigint` ; `phaseStartedAt`: `bigint` ; `startedAt`: `bigint` } & \{ `gamePhase`: [`gameStatusEnum`](../enums/gameStatusEnum.md) }[] ; `nextPage`: `undefined` \| `number` ; `hasMore`: `boolean` }\>
|
|
571
571
|
|
|
572
572
|
#### Parameters
|
|
573
573
|
|
|
@@ -579,7 +579,7 @@ ___
|
|
|
579
579
|
|
|
580
580
|
#### Returns
|
|
581
581
|
|
|
582
|
-
`Promise`\<\{ `items`: \{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `
|
|
582
|
+
`Promise`\<\{ `items`: \{ `rank`: `bigint` ; `minGameTime`: `bigint` ; `createdBy`: \`0x$\{string}\` ; `numCommitments`: `bigint` ; `numVotes`: `bigint` ; `voting`: \{ `voteCredits`: `bigint` ; `maxQuadraticPoints`: `bigint` ; `minQuadraticPositions`: `bigint` } ; `currentTurn`: `bigint` ; `turnStartedAt`: `bigint` ; `registrationOpenAt`: `bigint` ; `hasStarted`: `boolean` ; `hasEnded`: `boolean` ; `numPlayersMadeMove`: `bigint` ; `numActivePlayers`: `bigint` ; `isOvertime`: `boolean` ; `timePerTurn`: `bigint` ; `maxPlayerCnt`: `bigint` ; `minPlayerCnt`: `bigint` ; `timeToJoin`: `bigint` ; `maxTurns`: `bigint` ; `voteCredits`: `bigint` ; `gameMaster`: \`0x$\{string}\` ; `metadata`: `string` ; `phase`: `bigint` ; `votePhaseDuration`: `bigint` ; `proposingPhaseDuration`: `bigint` ; `phaseStartedAt`: `bigint` ; `startedAt`: `bigint` } & \{ `gamePhase`: [`gameStatusEnum`](../enums/gameStatusEnum.md) }[] ; `nextPage`: `undefined` \| `number` ; `hasMore`: `boolean` }\>
|
|
583
583
|
|
|
584
584
|
#### Inherited from
|
|
585
585
|
|
|
@@ -789,6 +789,8 @@ Creates a new game
|
|
|
789
789
|
| › `creationArgs.timePerTurn` | `bigint` |
|
|
790
790
|
| › `creationArgs.timeToJoin` | `bigint` |
|
|
791
791
|
| › `creationArgs.metadata` | `string` |
|
|
792
|
+
| › `creationArgs.votePhaseDuration` | `bigint` |
|
|
793
|
+
| › `creationArgs.proposingPhaseDuration` | `bigint` |
|
|
792
794
|
| › `openNow` | `boolean` |
|
|
793
795
|
|
|
794
796
|
#### Returns
|
|
@@ -824,6 +826,8 @@ Create and open a game in one transaction
|
|
|
824
826
|
| `params.timePerTurn` | `bigint` | - |
|
|
825
827
|
| `params.metadata` | `string` | - |
|
|
826
828
|
| `params.timeToJoin` | `bigint` | - |
|
|
829
|
+
| `params.votePhaseDuration` | `bigint` | - |
|
|
830
|
+
| `params.proposingPhaseDuration` | `bigint` | - |
|
|
827
831
|
| `requirements` | `Object` | Game requirements |
|
|
828
832
|
| `requirements.ethValues` | `Object` | - |
|
|
829
833
|
| `requirements.ethValues.have` | `bigint` | - |
|
|
@@ -888,7 +892,7 @@ ___
|
|
|
888
892
|
|
|
889
893
|
### startGame
|
|
890
894
|
|
|
891
|
-
▸ **startGame**(`gameId
|
|
895
|
+
▸ **startGame**(`gameId`): `Promise`\<`TransactionReceipt`\>
|
|
892
896
|
|
|
893
897
|
Starts a game
|
|
894
898
|
|
|
@@ -897,7 +901,6 @@ Starts a game
|
|
|
897
901
|
| Name | Type | Description |
|
|
898
902
|
| :------ | :------ | :------ |
|
|
899
903
|
| `gameId` | `bigint` | The ID of the game to start |
|
|
900
|
-
| `permutationCommitment` | `bigint` | The permutation commitment for the game |
|
|
901
904
|
|
|
902
905
|
#### Returns
|
|
903
906
|
|
|
@@ -427,8 +427,8 @@ Create a new MAODistribution instance
|
|
|
427
427
|
|
|
428
428
|
| Name | Type | Default value | Description |
|
|
429
429
|
| :------ | :------ | :------ | :------ |
|
|
430
|
-
| `args` | `undefined` \| readonly [\{ `
|
|
431
|
-
| `name` | `string` | `MAODistributorClient.DEFAULT_NAME` | Distributor name (defaults to "MAO-v1.
|
|
430
|
+
| `args` | `undefined` \| readonly [\{ `govSettings`: \{ `tokenName`: `string` ; `tokenSymbol`: `string` ; `preMintAmounts`: readonly `bigint`[] ; `preMintReceivers`: readonly \`0x$\{string}\`[] ; `orgName`: `string` ; `votingDelay`: `number` ; `votingPeriod`: `number` ; `quorum`: `bigint` } ; `rankifySettings`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `rankTokenURI`: `string` ; `rankTokenContractURI`: `string` ; `paymentToken`: \`0x$\{string}\` } }] \| readonly [\{ `govSettings`: \{ `tokenName`: `string` ; `tokenSymbol`: `string` ; `preMintAmounts`: readonly `bigint`[] ; `preMintReceivers`: readonly \`0x$\{string}\`[] ; `orgName`: `string` ; `votingDelay`: `number` ; `votingPeriod`: `number` ; `quorum`: `bigint` } ; `rankifySettings`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `rankTokenURI`: `string` ; `rankTokenContractURI`: `string` ; `paymentToken`: \`0x$\{string}\` } }] | `undefined` | Distribution arguments (encoded as bytes) |
|
|
431
|
+
| `name` | `string` | `MAODistributorClient.DEFAULT_NAME` | Distributor name (defaults to "MAO-v1.5") |
|
|
432
432
|
| `chain` | `Chain` | `undefined` | - |
|
|
433
433
|
|
|
434
434
|
#### Returns
|
|
@@ -481,6 +481,8 @@ Create and open a game in one transaction
|
|
|
481
481
|
| `params.timePerTurn` | `bigint` | - |
|
|
482
482
|
| `params.metadata` | `string` | - |
|
|
483
483
|
| `params.timeToJoin` | `bigint` | - |
|
|
484
|
+
| `params.votePhaseDuration` | `bigint` | - |
|
|
485
|
+
| `params.proposingPhaseDuration` | `bigint` | - |
|
|
484
486
|
| `requirements` | `Object` | Game requirements |
|
|
485
487
|
| `requirements.ethValues` | `Object` | - |
|
|
486
488
|
| `requirements.ethValues.have` | `bigint` | - |
|