Skip to content

Latest commit

 

History

History
57 lines (32 loc) · 1.01 KB

README.md

File metadata and controls

57 lines (32 loc) · 1.01 KB

usdglo

You can find the current contracts here

USDGLO is deployed on:

  1. Mainnet
  2. Polygon

Tasks

Install dependencies

npm install

Setup git hooks

npm run prepare

Compile contracts

npm run compile

Running tests

npm run test

forge test --no-match-contract USDGLO_Fork_Test

Fork tests

npx hardhat node --fork $ETH_RPC_URL
npx hardhat run --network localhost scripts/forceImport.ts
npx hardhat run --network localhost scripts/prepareUpgrade2.ts
forge test --match-contract USDGLO_Fork --rpc-url http://127.0.0.1:8545

Invariant tests

forge test --match-test invariant_sumOfBalancesIsNeverMoreThanMaxAllowed

Running coverage

npm run coverage

Running tests and report gas

REPORT_GAS=True npm run test

Run slither on contracts

npm run slither

Run prettier on codebase

npm run fmt