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_ID
incontracts/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 install
in theapps/token-wrapper
folder - 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 install
in the root folder - Execute
npm run build
in the root folder - Execute
npm run publish:major
in 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 install
in the root folder - Execute
npm run build
in the root folder - Execute
npm run publish:major
in 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 install
in the root folder - Execute
npm run build
in the root folder - Execute
npm run publish:major
in the root folder
- Create a new Stake Capital DAO on the devchain (for subsequent executions, the
STAKE_CAPITAL_DAO_ID
constant 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.json
file to the.aragon
folder 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
Details
under the account name.The
scripts/new-dao.js
script requires there be 2 private keys in thekeys
field of the relevant config file for testing purposes. Therinkeby_key.json
file 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_ID
incontracts/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.js
script. -
Create a new Stake Capital DAO with (for subsequent executions, the
STAKE_CAPITAL_DAO_ID
constant 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>