- configure
packages/tenderly - use
stage:newcommand to create an entire environment with multiple Virtual Environments - use
stage:activateto switch to the newly created environment - connect hardhat and nextjs to the environment using
stage:connect:hardhatandstage:connect:nextjs - deploy contracts and interact with them
From
packages/tenderly run npm run stage:new local 1 34443 8453. This will create 3 Virtual Environments (from Mainnet, Mode, and Base).tenderly/environments/local.jsonpackages/tenderly/tenderly.config.tscd packages/tenderly
npm run stage:connect:hardhat
cd ../hardhat
rm -rf deployments
npx hardhat deploy --network virtual_mainnet

