0.0.5 • Published 4 years ago

dao-box v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

dao-box

node libary for spinning up DAOs from node projects

usage

  1. install the library
yarn add dao-box
  1. import the template from the package
const { companyDao } = require('dao-box')
  1. each template has default parameters. Calling the function with an empty object returns a DAO owned by the deployer account found in the devchain
const dao = await companyDao({})
console.log(`https://rinkeby.aragon.org/#/${dao}`)
  1. any of the default parameters can be overridden by passing them into the object
const dao = await companyDao({tokenName: "Matias Token", symbol: "BCC"})
console.log(`https://rinkeby.aragon.org/#/${dao}`)

options

{
  tokenName: "Test Token",
  symbol: "TKN",
  daoId: "DAO" + Math.random(),
  holders: ["0xb4124cEB3451635DAcedd11767f004d8a28c6eE7"],
  balances: [String(1e18)],
  voteSettings: ["500000000000000000", "250000000000000000", "86400"],
  network: "rinkeby",
  ethersSigner: defaultSigner()
}