Skip to content

daniel1302/eth-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eth-tools

A CLI tool for Ethereum development.

Installation

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.

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.

eth-tools deploy --rpc-url <rpc-url> --private-key <private-key> --contract-file <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.

eth-tools traffic-simulator --rpc-url <rpc-url> --contract-file <contract-file> --wallets-file <wallets-file> --timeout <timeout>

Development

Build from source

go build ./cmd/eth-tools

Run tests

go test ./...

Recompile smart contracts

To recompile the Solidity smart contracts and generate the Go bindings, run the following script:

./scripts/compile.sh

About

ETH tools to automate some tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors