0.0.1-rc3 • Published 2 years ago
@vocdoni/gasless-voting-ethers v0.0.1-rc3
Vocdoni Gasless Voting Contracts for for ethers.js
NPM package that provides ethers.js wrappers to use the Vocdoni Gasless plugin on top of the Aragon DAO framework smart contracts.
yarn add @vocdoni/gasless-voting-ethersUsage
Attaching to a contract
import {
DAOFactory__factory
} from "@vocdoni/gasless-voting-ethers";
// Use it
const daoFactoryInstance = Vocdoni_Vot.connect(...);Getting the list of global contract addresses
import {activeContractsList} from '@vocdoni/gasless-voting-ethers';
console.log(activeContractsList.rinkeby.DAOFactory);
// '0x2290E6dF695C5272cE942015c90aAe24bFB94960'
console.log(activeContractsList.rinkeby.Registry);
// '0x5895B0B32d438f85872b164AE967B3E802d33750'
console.log(activeContractsList.rinkeby.TokenFactory);
// '0x84641573c077F12C73bd2612fe1d96AE58bE7D1a'Development
- Run
yarnat the root of the monorepo, not on this folder. - Then, in the
contracts-ethersfolder run:yarn run:contractsyarn runyarn run:npm