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
- Host: GitHub
- URL: https://github.com/cowprotocol/testing-token
- Owner: cowprotocol
- License: lgpl-3.0
- Created: 2023-04-04T08:09:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-27T12:19:58.000Z (over 2 years ago)
- Last Synced: 2025-02-05T08:18:25.404Z (over 1 year ago)
- Language: Solidity
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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
```