This utility is designed to simulate cross chain transactions. It reads in a CSV file with transaction data and uses the data to simulate allocate transactions on the blockchain.
It is built to be easily extendable to support new chains, transaction types and crosschain strategies.
- Install the required packages
yarn install
- Create a fork with it's own RPC (we recommend tenderly for a good developer experience) for each chain that needs to be tested
- If you want to store the results in a spreadsheet, generate a sheet.best api url
- Setup env vars by renaming/copying
.env.template
to.env
and filling in the required values - Start the interactive CLI utility with
yarn start
The utility will read in the example_votes.csv
file and use the data to simulate transactions on the blockchain. The file should be in the following format:
chain_id,voter,amount,token,amountUSD,payoutAddress,round_name,roundAddress,tx_gasPrice,tx_gasSpent,tx_timestamp
- Optimism
- Polygon