@aragon/network-token-v2

1.0.0 • Public • Published

Aragon Network Token V2

Build Status

A lightweight token supporting ERC-2612, ERC-3009, token mints, and token burns. Modelled after UNI-LP with minimal changes.

Status

This package is in preservation mode.

ANTv2 was deployed in October 2020.

Development

yarn install
yarn test

This will compile the mocks in mocks/ and run the unit tests.

CI for this package is run through the ci_v2 Github action.

Code style

To limit changes, ANTv2.sol carries over the code style of the original UNI-LP codebase.

All other contracts use the typical Aragon code style.

E2E tests

E2E tests are performed through a Ganache-based fork of mainnet state. To run them:

FORK_NODE=<URL of mainnet RPC> yarn test:e2e:pre-deploy
FORK_NODE=<URL of mainnet RPC> yarn test:e2e:post-deploy

Pre-deploy

Tests a theoretical ANTv2 and ANTv2Migrator deployment with mainnet's ANTv1.

See the buidler.config.e2e-pre.js configuration for more information about the fork's configuration.

Post-deploy

Tests a deployed instance of ANTv2 and ANTv2Migrator on mainnet with mainnet's ANTv1.

See the buidler.config.e2e-post.js configuration for more information about the fork's configuration.

Credits

  • UNI-LP: Uniswap
  • SafeMath: DappHub

Readme

Keywords

none

Package Sidebar

Install

npm i @aragon/network-token-v2

Weekly Downloads

0

Version

1.0.0

License

GPL-3.0-or-later

Unpacked Size

96.9 kB

Total Files

20

Last publish

Collaborators

  • chilcano
  • heuer
  • brickpop
  • arabot-1
  • hack0
  • aragon-ci