A tool for people to cheaply migrate their NFT collection.
Here's a brief guide as to how run this repo.
First, you make sure you have foundry on your machine. Then clone the repo and run:
yarn install
forge install
To run the tests, you can run either of the following commands:
yarn test
runs the full test suiteyarn test:verbose
runs the full test suite, displaying all internal calls, etc...forge test -vvvv --match-test <test case name>
runs a given test case, displaying all internal calls, etc...
To run a linter check, you can run:
forge fmt <directory name>
runs forge fmt on the target directory
To run coverage, run the following commands:
yarn coverage
runs a coverage report and generates an html coverage report
To deploy, run the following:
yarn deploy:sepolia
deploys on Sepolia testnetyarn deploy:goerli
deploys on Goerli testnetyarn deploy:polygonMumbai
deploys on Mumbai testnetyarn deploy:mainnet
deploys on Ethereum mainnetyarn deploy:polygon
deploys on Polygon mainnetyarn deploy:optimism
deploys on Optimism mainnet
To verify a contract, run the following:
forge verify-contract <ADDRESS> <Contract Name> -c <Chain Name>
src
: The list of contracts included in the library.lib
: A list of libraries necessary to run forge test suite.test
: The foundry test suite for the repository.script
: The deployment scripts.