https://github.com/daniel1302/eth-tools
ETH tools to automate some tests
https://github.com/daniel1302/eth-tools
Last synced: 12 months ago
JSON representation
ETH tools to automate some tests
- Host: GitHub
- URL: https://github.com/daniel1302/eth-tools
- Owner: daniel1302
- Created: 2025-06-19T16:57:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-19T17:05:25.000Z (about 1 year ago)
- Last Synced: 2025-06-28T07:53:34.458Z (about 1 year ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eth-tools
A CLI tool for Ethereum development.
## Installation
```bash
go install github.com/daniel1302/eth-tools/cmd/eth-tools@latest
```
## Usage
### wallets
Generates one funder and 10 worker Ethereum wallets. This command creates a `configs/wallets.json` file with the generated wallet information.
```bash
eth-tools wallets
```
After running this command, you need to fund the `funder` wallet with some ETH to be used in the traffic simulation.
### deploy
Deploys a simple key-value Solidity smart contract. This command creates a file (e.g., `configs/contract.json`) that stores the deployed contract's address.
```bash
eth-tools deploy --rpc-url --private-key --contract-file
```
### traffic-simulator
A long-running command to simulate network traffic. This command requires the `wallets.json` and contract data files generated by the `wallets` and `deploy` commands, respectively.
```bash
eth-tools traffic-simulator --rpc-url --contract-file --wallets-file --timeout
```
## Development
### Build from source
```bash
go build ./cmd/eth-tools
```
### Run tests
```bash
go test ./...
```
### Recompile smart contracts
To recompile the Solidity smart contracts and generate the Go bindings, run the following script:
```bash
./scripts/compile.sh
```