@aragon/core-contracts-ethers
TypeScript icon, indicating that this package has built-in type declarations

0.8.0-alpha • Public • Published

Aragon Core Contracts for ethers.js

NPM package that provides ethers.js wrappers to use the Aragon DAO framework smart contracts.

yarn add @aragon/core-contracts-ethers

Usage

Attaching to a contract

import {
  DAOFactory__factory
} from "@aragon/core-contracts-ethers";

// Use it
const daoFactoryInstance = DAOFactory__factory.connect(...);

Getting the list of global contract addresses

import { activeContractsList } from "@aragon/core-contracts-ethers";

console.log(activeContractsList.rinkeby.DAOFactory);
// '0x2290E6dF695C5272cE942015c90aAe24bFB94960'
console.log(activeContractsList.rinkeby.Registry);
// '0x5895B0B32d438f85872b164AE967B3E802d33750'
console.log(activeContractsList.rinkeby.TokenFactory);
// '0x84641573c077F12C73bd2612fe1d96AE58bE7D1a'

Development

  • Run yarn at the root of the monorepo, not on this folder.
  • Then, in the contracts-ethers folder run:
    • yarn run:contracts
    • yarn run
    • yarn run:npm

Readme

Keywords

none

Package Sidebar

Install

npm i @aragon/core-contracts-ethers

Weekly Downloads

1

Version

0.8.0-alpha

License

AGPL-3.0-or-later

Unpacked Size

6.16 MB

Total Files

12

Last publish

Collaborators

  • giorgi_2009
  • jjavieralv
  • brickpop
  • arabot-1
  • hack0
  • aragon-ci