Setup
This section walks you through setting up the project:
Once you've cloned the repository.
cd benchmarking-cross-chain-bridges
yarn setupIf you face an error that says:
Detected dubious ownership in repository at '<path>/benchmarking-cross-chain-bridges'
Just copy paste the exception line that goes something like
git config --global --add safe.directory <path>/benchmarking-cross-chain-bridgesand then re-run
yarn setupIf yarn package installation and foundry package installation are successful you will see:
Run `yarn setup:conda` or `yarn setup:pip3` to install python dependenciesThis is required for the benchmark plot and table generators. Depending on the python package manager you use, you can run either.
If you only want to benchmark the token-aggregators, you're done here. If not then proceed with the optional setup which configures the benchmarking tool to execute message-aggregators and execute token-swaps
Optional Setup for executing swaps and message-aggregators (not required for benchmarking token-aggregators)
cp .env.dev .envAnd fill out .env
.env
The public and private keypair does not need to hold funds. The scripts that send trades are disabled by default.
The RPCs are required to interact with on-chain contracts for foundry, approval transactions, and executing trades.
Socket API Key is required by Socket to receive a transaction with route data. You can request it at a google form located in:
The Block explorer APIs are for verifying contracts
Last updated
Was this helpful?