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

Feature/deploy guilds script #137

Merged

Conversation

rossneilson
Copy link
Collaborator

@rossneilson rossneilson commented Apr 27, 2022

Looks to be working now with both of the below commands

yarn hardhat --network localhost deploy-dxvote-develop
yarn hardhat --network localhost deploy-guilds-develop --registry 0x0

@rossneilson rossneilson marked this pull request as ready for review April 27, 2022 19:09
@rossneilson rossneilson requested review from AugustoL and a team April 27, 2022 19:09

guildActions: [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running guildActions before or after the "dao" actions wont allow run actions in between them, and thats one of the things we want to tests in the DXDGuild.

I think we should be able to run dao and guild actions at the same time, this means having a single actions array, not actions a& guildActions

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, just means replicating some code but can do that


let tokens = {};
let addresses = {};
// await Promise.all(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commended code and console log here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was still debugging stuff but will remove it and comment once its all working


let newToken;
switch (tokenToDeploy.type) {
case "ERC20":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets use the ERC20 case on default.

tokens,
addresses,
avatar,
guilds,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of sendinga guidls object with the contract maybe you can take the address of the guild in the addresses obj and instantiate an ERC20Guild contract on the address, then execute the guild actions

rossneilson and others added 7 commits May 9, 2022 15:55
Use timetsamp and increaseTime for script actions, remove duplicated execution of do-actions, remove
unnecessary variables in functions like ipfs, remove console logs, instantiate smart contracts for
actions based on their name from the addresses object, and maybe something else im forgetting but
that should me most of it.
@AugustoL AugustoL merged commit 12ea7f4 into DXgovernance:develop May 17, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants