0.0.5 • Published 2 years ago
evm-network-test v0.0.5
Welcome to Gluwa-EVM-Network-Evaluation
How to install?
- run
npm i -gto install this repo
Run basic test
- run
basic --rpc rpc-string. For examplebasic --rpc http://4.246.123.154:21010will run the test at RPC urlhttp://4.246.123.154:21010 - You can provide a private key string to run the test. For example:
basic --rpc http://4.246.123.154:21010 --pk your-private-key. This will use your wallet to deploy and run the tests. - If you are running in a network that requires fee to send transaction, you must provide a private key which has ETH in wallet
Run gas consummation test
- run
gas --rpc rpc-string - The test will run inside the provided rpc and the hardhat vm, record the gas usage in each transaction and write into a csv file
- Finally, compare both csv file and check if gas used difference. If difference is < 2% is considered success
- Remove all written files once test finished
Note
- Be careful that this code will write your input json rpc and private key into
hardhat.config.json. It will remove the data once test is completed but if you force terminate the program your sensitive will last in thehardhat.config.json. Be careful your data to be exposed.