- Blockchain EVM Network
- NodeJS version equal to or greater than v20.
- Install Hardhat (Here we describe it)
- Solidity Compile Installed
- EVM Blockchain Wallet (You can use Metamask to create one)
- Python v.3.0
- Hyperledger Caliper equal or upper v0.5 (Here we describe it);
npx hardhat install
Run: npm install
2.3.1 Run: npx hardhat script --network e.g, npx hardhat script deployBaseline.js --network besu ``` (here we defined our network on hardhat.config.js so that we can call it by name)
npm i -g @hyperledger/caliper-cli npx caliper --version(check if it was installed) npx caliper bind --caliper-bind-sut besu:latest ```(bind caliper to works on ethereum and besu)
3.2.1 - Copy your wallet address and Private key to networks;network-config.json file and put on variables fromAddress and fromAddressPrivateKey 3.2.2 - Copy the contract address saved on step 2.4 and paste it into network-config.json 3.2.3 - Copy the contract ABI generated on artifacts and paste it into network-config.json (follow the example of the file)
There are two ways to run Caliper: running the commands, giving the parameters, such as:
npx caliper launch manager \
--caliper-workspace . \
--caliper-benchconfig benchmarks/scenario/simple/config.yaml \
--caliper-networkconfig <networkconfig-path>
Or run one of the scripts used here, such as baseline_runner.py (this script runs Caliper 30x and saves the results in the folder results)
With the results in the folder, following the default name file (e.g. 1.html, 2.html...), you can use results.ipynb to generate charts.