No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
contracts
migrations
scripts
test
.eslintrc.json
.gitattributes
.gitignore
.ipfsignore
.soliumrc.json
.tern-project
.travis.yml
README.md
arapp.json
manifest.json
package.json
truffle.js
yarn.lock

README.md

Subnet-controller

This repo contains the contracts and Aragon app used by Althea for managing SubnetDAOs.

For more information please read: https://altheamesh.com/governance-paper

Usage

Before running the app locally one needs to setup the other aragon apps. Follow the instructions at aragen

yarn install
npm run start

Running tests

Use the global truffle and ganache-cli instead of the aragon contracts truffle wrapper. Like so:

ganache-cli
truffle test

Developing

On three seperate terminals execute the following commands

npm run start:app
npm run start:aragon:http

Scripts explanations

  • start: Run the app locally
  • clean-start: Removes parcel cache
  • compile: Compile the smart contracts
  • build: Compiles the contracts and builds the front-end

Gas costs

Gas costs on rinkeby:

Deploying dao:

Deploying multisig and token:

Aragon-cli usage for dao install

Publish

aragon apm publish minor --environment infura --apm.ipfs.rpc http://sasquatch.network:5001

Install

aragon dao install test2 althea.open.aragonpm.eth --environment rinkeby2 --apm.ipfs.rpc https://gateway.ipfs.io/ipfs --app-init-args 0x72436347C3DD7Ad26D2fad5Ea62B3aB37771DbAF

The address at the end is the vault address obtained from running node ./scripts/getVaultAddress.js

Permissions

aragon dao acl create clatskanie.aragonid.eth \ # dao ens
  0x97895FDBdEFdB4F68985d000D421573446d87892 \  # app proxy address obtained by going to the DAO address on etherscan and looking at internal txns
  0xaf290d8680820aad922855f39b306097b20e28774d6c1ad35a20325630c3a02c \ # keccak256("MANAGER")
  0x8191399d0c13A2ED477bC68B70e8A8814E287C6C \ # Voting address
  0x8191399d0c13A2ED477bC68B70e8A8814E287C6C \ # Voting address
  --environment infura

After setting the first permission the other 2 can be set from the ui of the DAO

Roles:

  • MANAGER: 0xaf290d8680820aad922855f39b306097b20e28774d6c1ad35a20325630c3a02c

  • ADD: 0x9ea0cf9577cabd8688fb70d8a8c076ffb703a26054de703e8da063dc72300137

  • DELETE: 0x19a34d8f52981d070368ff4b59a2a8a437917058fabecd70f237af13f0425463

Upgrade

aragon dao upgrade seabass.aragonid.eth althea.open.aragonpm.eth 2.0.0 --environment infura --apm.ipfs.rpc https://ipfs.eth.aragon.network/ipfs

Deployments:

Rinkeby: https://rinkeby.aragon.org/#/clatskanie.aragonid.eth