FEI Protocol smart contract code, tests, and scripts/utilities for DAO proposals.
FEI Protocol smart contract code, tests, and scripts/utilities for DAO proposals.
Smart contract code for Fei Protocol and the FEI stablecoin
npm install.env: MAINNET_ALCHEMY_API_KEY and ETH_PRIVATE_KEY. You can use the .env.example as a basenpm run test:hardhatFei makes use of Forge as a smart contract development framework alongside Hardhat. To set this up run: npm run setup
Note that this has only been tested on Linux; you may encounter issues running on other operating systems.
npm run test to run Forge based unit testsnpm run test:hardhat to run Hardhat based unit testsnpm run test:integration to run Solidity integration tests, forked from a pinned Mainnet blocknpm run test:integration:latest to run Solidity integration tests, forked from the latest blocknpm run test:e2e to run end-to-end/integration testsnpm run test:all to run all testsnpm run lint to lint ts files and sol filesnpm lint:all to lint ts AND js filesnpm run lint:sol to lint .sol filesnpm run lint:fix to fix linting errors, if fixable automaticallynpm run prettier:ts to run prettier and automatically format all ts files
automaticallynpm run prettier:sol to run prettier and automatically format all Solidity files
automaticallynpm run prettier to run prettier and format all filesnpm run coverage:hardhat to run smart-contract coverage based off of all testsnpm run calldata to generage calldata for a proposalnpm run check-proposal to run tests for a specific dao proposalnpm run compile to compile smart contracts, if neededSee the docs
Every Thursday, do the following for the weekly release:
For hotfix releases or bugfixes to master, branch off of master, add in the necessary fixes, and merge back into master. Then tag that commit with a new release number (increment the patch version number here). Finally merge master back into develop.
Fei Protocol is under the AGPL v3 license
No open issues yet, or sync has not completed.