The Stake Capital template used to create a Stake Capital Aragon DAO.
To deploy the DAO to a local aragon devchain requires @aragon/cli and truffle be installed from npm. Alternatively once
the project dependencies are installed preceed aragon and truffle commands with npx.
- Install dependencies:
$ npm install
- In a separate console run Aragon Devchain:
$ aragon devchain
- In a separate console run the Aragon Client:
$ aragon start
-
Hard code the correct
TOKEN_WRAPPER_IDincontracts/StakeCapitalTemplate.sol. Uncomment the one specified for local deployment, comment the other one. -
Deploy the template with:
$ npm run deploy:rpc
- Deploy the forked Token Wrapper app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
- Download https://github.com/StakeDAO/voting-connectors
- Run
npm installin theapps/token-wrapperfolder - Execute
npm run apm:publish major
- Deploy the Stablecoin Rewards app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
- Download https://github.com/StakeDAO/stablecoin-rewards-aragon-app
- Run
npm installin the root folder - Execute
npm run buildin the root folder - Execute
npm run publish:majorin the root folder
- Deploy the Airdrop app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
- Download https://github.com/StakeDAO/airdrop-app
- Run
npm installin the root folder - Execute
npm run buildin the root folder - Execute
npm run publish:majorin the root folder
- Deploy the Cycle Manager app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
- Download https://github.com/StakeDAO/cycle-manager-aragon-app
- Run
npm installin the root folder - Execute
npm run buildin the root folder - Execute
npm run publish:majorin the root folder
- Create a new Stake Capital DAO on the devchain (for subsequent executions, the
STAKE_CAPITAL_DAO_IDconstant must be changed to an unused ID as it must be unique):
$ npx truffle exec scripts/new-dao.js --network rpc
- Copy the output DAO address into this URL and open it in a web browser:
http://localhost:3000/#/<DAO address>
- Install dependencies (if not already installed):
$ npm install
- Deployment to Rinkeby requires adding a
rinkeby_key.jsonfile to the.aragonfolder in your home directory with an infura link and your own private keys. Steps for adding this file can be found here: https://hack.aragon.org/docs/cli-intro#set-a-private-key.
-
An Infura link for Rinkeby can be created by creating an Infura account here: https://infura.io/
-
Private keys for MetaMask accounts can be found by opening MetaMask, clicking the hamburger menu, then
Detailsunder the account name.The
scripts/new-dao.jsscript requires there be 2 private keys in thekeysfield of the relevant config file for testing purposes. Therinkeby_key.jsonfile should look something like this:
{
"rpc": "https://rinkeby.infura.io/v3/<infura-api-key>",
"keys": [
"<private key 1>",
"<private key 2>"
]
}
-
Hard code the correct
TOKEN_WRAPPER_IDincontracts/StakeCapitalTemplate.sol. Uncomment the one specified for rinkeby/mainnet deployment, comment the other one. -
Deploy the template with:
$ npm run deploy:rinkeby
-
Modify any of the DAO config constants necessary in the
scripts/new-dao.jsscript. -
Create a new Stake Capital DAO with (for subsequent executions, the
STAKE_CAPITAL_DAO_IDconstant must be changed to an unused ID as it must be unique):
$ npx truffle exec scripts/new-dao.js --network rinkeby
- Copy the output DAO address into this URL and open it in a web browser:
https://rinkeby.aragon.org/#/<DAO address>