Script to test out the TPS of boba network
-
Install dependencies using
npm i -
Update .env file
-
Compile contracts and typechain factories using:
yarn compile -
Run unit tests using:
yarn test( Specify NETWORK as 'hardhat' in .env ) -
Deploy contract on Boba Rinkeby Testnet by:
- Update .env file with a deployer account and network url for Boba network
- Run
yarn deploy:bobato deploy on boba rinkeby test network
-
To run dummy contract benchmark run
yarn benchmark:mock <num_ops> -
To run trades benchmark run
yarn benchmark:trades <num_ops> -
To run batch trades gas benchmark run
yarn benchmark:trades_gas <num_ops> <batch_size>
Please ensure that 'scripts/wallets.jsonmust contain enough private keys to performnum_ops` transactions. If the num wallets < num_ops then the number of transactions performed will be equal to num_wallets.