Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify Playbooks according to new distribution model #68

Open
peersky opened this issue Sep 30, 2024 · 0 comments
Open

Modify Playbooks according to new distribution model #68

peersky opened this issue Sep 30, 2024 · 0 comments
Assignees

Comments

@peersky
Copy link
Member

peersky commented Sep 30, 2024

#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:

      const rankifyDeployment = await deployments.get('Rankify');
      const rankifyInstanceDeployment = await deployments.get('RankifyInstance');

We now must

  1. Get the PeeramidLabsDistributor artifact
  2. Filter this contract for all Instantiated events emitted by IDistributor. Example of similar filtering is here
  3. Choose the instanceId we want to create game at
  4. Parse the correct Rankify and RankifyInstance contract from the instances[] array found in the events. The sequence should be according to this:
    * @dev `instances` array contents: DAO, GovernanceToken, Gov Token AccessManager, ACID Diamond, 8x ACID Diamond facets, RankTokenAccessManager, RankToken

Add 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:

export const addDistribution =

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants