GithubHelp home page GithubHelp logo

aragon-template's Introduction

Stake Capital Template

The Stake Capital template used to create a Stake Capital Aragon DAO.

Local deployment

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.

  1. Install dependencies:
$ npm install
  1. In a separate console run Aragon Devchain:
$ aragon devchain
  1. In a separate console run the Aragon Client:
$ aragon start
  1. Hard code the correct TOKEN_WRAPPER_ID in contracts/StakeCapitalTemplate.sol. Uncomment the one specified for local deployment, comment the other one.

  2. Deploy the template with:

$ npm run deploy:rpc
  1. 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):
  1. 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):
  1. Deploy the Airdrop app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
  1. 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):
  1. 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
  1. Copy the output DAO address into this URL and open it in a web browser:
http://localhost:3000/#/<DAO address>

Rinkeby deployment

  1. Install dependencies (if not already installed):
$ npm install
  1. 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 the keys field of the relevant config file for testing purposes. The rinkeby_key.json file should look something like this:

{
  "rpc": "https://rinkeby.infura.io/v3/<infura-api-key>",
  "keys": [
    "<private key 1>", 
    "<private key 2>"
  ]
}
  1. Hard code the correct TOKEN_WRAPPER_ID in contracts/StakeCapitalTemplate.sol. Uncomment the one specified for rinkeby/mainnet deployment, comment the other one.

  2. Deploy the template with:

$ npm run deploy:rinkeby
  1. Modify any of the DAO config constants necessary in the scripts/new-dao.js script.

  2. 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
  1. Copy the output DAO address into this URL and open it in a web browser:
https://rinkeby.aragon.org/#/<DAO address>

aragon-template's People

Contributors

willjgriff avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.