0.0.5 • Published 4 years ago
dao-box v0.0.5
dao-box
node libary for spinning up DAOs from node projects
usage
- install the library
yarn add dao-box
- import the template from the package
const { companyDao } = require('dao-box')
- 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}`)
- 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()
}