Used Foundry for testing and deployment script. To run deploy script:
-
Make a copy of
.env-templateand rename it into.env. -
Fill
.envfile. -
Run
forge script script/Deploy.s.sol:DeployScript --rpc-url $GOERLI_RPC_URL --broadcast --verify -vvvv
-
More tests.
-
Use SafeMath.
-
Rewise naming.
-
Refactoring.
-
Use abstract contracts to avoid logic repetition.