Used Foundry for testing and deployment script. To run deploy script:
-
Make a copy of
.env-template
and rename it into.env
. -
Fill
.env
file. -
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.