Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

CommonsBuild/tec-template

 
 

Repository files navigation

TEC Template

DAO Template for Token Engineering Commons.

Local deployment

To deploy a Gardens DAO to a local aragon devchain:

  1. Install dependencies:
$ npm install
  1. In a separate console run Aragon Devchain:
$ npx aragon devchain
  1. From the output of the above copy the ENS address from "ENS instance deployed at:" to arapp_local.json environments.devnet.registry

  2. In a separate console run start IPFS:

$ npx aragon ipfs start
  1. In a separate console run the Aragon Client:
$ npx aragon start
  1. Deploy the template with:
$ npm run deploy:rpc
  1. Deploy the Conviction Voting app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
  1. Deploy the Dandelion Voting app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
  1. Deploy the Redemptions 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/1Hive/redemptions-app
  • Run npm install in the root folder
  • Run npm run build in the root folder
  • Run npx aragon apm publish major --files dist --skip-confirmation in the root folder
  1. Deploy the Tollgate 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/aragonone/tollgate
  • Run npm install in the root folder
  • Run npm run build in the root folder
  • Run npx aragon apm publish major --skip-confirmation in the root folder
  1. Deploy the Fundraising suite Presale app:
  1. Update the Fundraising app's UI (using the repo downloaded in the previous step):
  • Run npm install in the apps/aragon-fundraising folder
  • Run npm run build
  • Run npx aragon apm publish major --files app/build --skip-confirmation in the apps/aragon-fundraising folder
  1. Deploy the Fundraising suite Bancor Marker Maker app (using the repo downloaded in step 11):
  • Run npm install in the apps/bancor-market-maker folder
  • Run npx aragon apm publish major --skip-confirmation in the apps/bancor-market-maker folder
  1. Deploy the Hooked Token Manager app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
  1. Create a new Gardens Dao on the devchain:
$ npx truffle exec scripts/new-dao.js --network rpc
  1. Copy the output DAO address into this URL and open it in a web browser:
http://localhost:3000/#/<DAO address>

Rinkeby deployment using previously deployed template

To deploy a Gardens DAO to Rinkeby:

  1. Install dependencies:
$ npm install
  1. Compile contracts:
$ npx truffle compile
  1. Configure your DAO in: scripts/new-dao.js

  2. Deploy a DAO to Rinkeby (requires a Rinkeby account accessible by the truffle script as documented here: https://hack.aragon.org/docs/cli-intro#set-a-private-key):

$ npx truffle exec scripts/new-dao.js --network rinkeby
  1. Copy the output DAO address into this URL and open it in a web browser:
https://rinkeby.aragon.org/#/<DAO address>

About

DAO Template for Token Engineering Commons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 70.9%
  • JavaScript 29.1%