Skip to content

Repository files navigation

Testing token

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.

Development

Install

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 install

Build

forge build

Deploy

Run 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:CowSwapTestToken

Valid parameters for rpc-url are mainnet, goerli, gnosischain, sepolia. You can also specify your own RPC URL.

Code formatting

yarn fmt

Test

forge test

Add an increased number of verbosity flags for debugging. For example:

forge test -vvv

For seeing line coverage results, run:

forge coverage

About

A token without any value that is used for testing

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages