rainbow-token-contracts
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

Rainbow Token Contracts

Coverage Status

Local Development

This repository is developped using hardhat. One is free to directly use the available scripts from hardhat using npx, otherwise, a set of local script have been made in order to allow safe local development.

Setup

Environment Variables

Proper environment variables are needed in order to run the various scripts

  • REPORT_GAS: if truthy, the gas measurements of the tests will be translated in USD value. The COINMARKET_CAP_API_KEY environment variable will need to be set,
  • COINMARKET_CAP_API_KEY: an API key for CoinMarket Cap in order to retrieve USD value of ETH,
  • ETHERSCAN_KEY: an etherscan key used in order to verify the contracts on Etherscan,

Nvm

Use configured node and npm versions

nvm use

Nvm installation instructions may be found here;

Dependencies

Install dependencies

npm install

Compile the smart contracts

npm run compile

Tests

Run all the tests

npm run test

Obtain the test coverage

npm run test:cover

Solhint

Run a security and practices analysis by solhint

npm run solhint

Readme

Keywords

none

Package Sidebar

Install

npm i rainbow-token-contracts

Weekly Downloads

0

Version

1.5.1

License

MIT

Unpacked Size

1.57 MB

Total Files

18

Last publish

Collaborators

  • vincentgenod