A CLI tool for Ethereum development.
go install github.com/daniel1302/eth-tools/cmd/eth-tools@latestGenerates one funder and 10 worker Ethereum wallets. This command creates a configs/wallets.json file with the generated wallet information.
eth-tools walletsAfter running this command, you need to fund the funder wallet with some ETH to be used in the traffic simulation.
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>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>go build ./cmd/eth-toolsgo test ./...To recompile the Solidity smart contracts and generate the Go bindings, run the following script:
./scripts/compile.sh