The smart contracts behind saddle.finance ðŸ¤
The contracts are compiled with Hardhat, and tested using Waffle and TypeScript.
$ npm i
$ npm run build
$ npm test
$ npm run coverage
$ npm run start
You can connect to this RPC server via http://localhost:8545
with chain ID of 31337
In order to successfully fork the mainnet, ALCHEMY_API
must be set to a valid URL in the .env
file.
ALCHEMY_API="https://eth-mainnet.alchemyapi.io/v2/XXXXXXXXXXXX"
$ npm run fork
You can connect to this RPC server via http://localhost:8545
with chain ID of 1.
$ npx solidity-docgen --templates=templates
The output in the docs
folder should be copied to the appropriate folder in the saddle-docs repo.
Slither is a Solidity static analysis framework. To run it locally:
$ pip3 install slither-analyzer
$ slither .
Slither is configured to run as a GitHub Action and error on any high findings.