A simple token contract that is used to test CoW Swap features. This token is worthless. It can be minted and destroyed at any times and for any reason from team-owned accounts.
This project uses Foundry for development and testing. Instructions on how to install this framework can be found here.
Other required NPM-based dev toolings can be installed using yarn.
yarn installforge buildRun the following commands to deploy the contract in the specified network and verify it on the chain explorer.
forge create --rpc-url goerli \
--constructor-args <address of the contract admin> <address that can freely mint and burn token> <token name> <token symbol> \
--private-key <your_private_key> \
--etherscan-api-key <your_etherscan_api_key> \
--verify \
src/CowSwapTestToken.sol:CowSwapTestTokenValid parameters for rpc-url are mainnet, goerli, gnosischain, sepolia.
You can also specify your own RPC URL.
yarn fmtforge testAdd an increased number of verbosity flags for debugging. For example:
forge test -vvvFor seeing line coverage results, run:
forge coverage