Open peersky opened 1 month ago
It also adds a new functionality, namely: now you can create a new subjects with a whole infrastructure behind (MAO)
Documentation for this already was updated at docs.rankify.it and at #62 readme file.
We need to update same PR with playbook updates:
Instead of taking a deployment artifacts like this:
const rankifyDeployment = await deployments.get('Rankify'); const rankifyInstanceDeployment = await deployments.get('RankifyInstance');
We now must
PeeramidLabsDistributor
Instantiated
instanceId
Rankify
RankifyInstance
instances[]
It should call PeeramidLabsDistributor to instantiate new subject. Examples of such and helpers available in scripts and test directories as well as in readme.
It should add new distribution to the PeeramidLabsDistributor. There is already some boilerplate for doing this available here: https://github.com/peeramid-labs/contracts/blob/a8c8579e3ef560d4ac8364ead14db5cdfeef7215/scripts/playbooks/addDistribution.ts#L18
62 changes the way how we deploy new infrastructure and hence how we lookup for addresses.
It also adds a new functionality, namely: now you can create a new subjects with a whole infrastructure behind (MAO)
Documentation for this already was updated at docs.rankify.it and at #62 readme file.
We need to update same PR with playbook updates:
createGame.ts
Instead of taking a deployment artifacts like this:
We now must
PeeramidLabsDistributor
artifactInstantiated
events emitted by IDistributor. Example of similar filtering is hereinstanceId
we want to create game atRankify
andRankifyInstance
contract from theinstances[]
array found in the events. The sequence should be according to this: https://github.com/peeramid-labs/contracts/blob/a8c8579e3ef560d4ac8364ead14db5cdfeef7215/src/distributions/MAODistribution.sol#L270Add createMAO.ts
It should call
PeeramidLabsDistributor
to instantiate new subject. Examples of such and helpers available in scripts and test directories as well as in readme.Add addDistribution.ts
It should add new distribution to the
PeeramidLabsDistributor
. There is already some boilerplate for doing this available here: https://github.com/peeramid-labs/contracts/blob/a8c8579e3ef560d4ac8364ead14db5cdfeef7215/scripts/playbooks/addDistribution.ts#L18