Helper functions for swapping with Numo.
- SwapRouter.sol: Facilitates swapping on Numo
- Arbitrage.sol: Allows for arbitrage between a Uniswap V2 or V3 style exchange and Numo
Build the contracts:
$ forge buildDelete the build artifacts and cache directories:
$ forge cleanCompile the contracts:
$ forge buildFormat the contracts:
$ forge fmtGet a gas report:
$ forge test --gas-reportLint the contracts:
$ pnpm lintRun the tests:
$ forge test- Foundry uses git submodules to manage dependencies. For detailed instructions on working with dependencies, please refer to the guide in the book
- You don't have to create a
.envfile, but filling in the environment variables may be useful when debugging and testing against a fork.
MIT © Numo