0.1.4 • Published 6 months ago

@gluwa/evm-network-test v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Welcome to Gluwa-EVM-Network-Evaluation

How to install?

  • run npm i -g to install this repo

Run basic test

  • run basicTest --rpc rpc-string. For example basicTest --rpc http://4.246.123.154:21010 will run the test at RPC url http://4.246.123.154:21010
  • You can provide a private key string to run the test. For example: basicTest --rpc http://4.246.123.154:21010 --private-key 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 gasTest --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 the hardhat.config.json. Be careful your data to be exposed.
0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago