An open API service indexing awesome lists of open source software.

https://github.com/cowprotocol/testing-token

A token without any value that is used for testing
https://github.com/cowprotocol/testing-token

Last synced: 11 months ago
JSON representation

A token without any value that is used for testing

Awesome Lists containing this project

README

          

# 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](https://book.getfoundry.sh/getting-started/installation.html).

Other required NPM-based dev toolings can be installed using yarn.

```sh
yarn install
```

### Build

```sh
forge build
```

### Deploy

Run the following commands to deploy the contract in the specified network and verify it on the chain explorer.

```sh
forge create --rpc-url goerli \
--constructor-args

\
--private-key \
--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

```sh
yarn fmt
```

### Test

```sh
forge test
```
Add an increased number of verbosity flags for debugging. For example:
```sh
forge test -vvv
```

For seeing line coverage results, run:
```
forge coverage
```