- copy .env.test to .env and fill your credentials
npm i
install dependencies
npm run start
This will console log sth like:
> tenderly-fork@1.0.0 start
> node create.js
Creating fork for 137 on 3030
rpcUrl https://rpc.tenderly.co/fork/<id>
chainId 3030
No ETH_ADDRESS was provided so funding is skipped.
To use this fork on the aave interface type the following commands in the console.
--------------
localStorage.setItem('forkEnabled', 'true');
localStorage.setItem('forkBaseChainId', 137);
localStorage.setItem('forkNetworkId', 3030);
localStorage.setItem("forkRPCUrl", "https://rpc.tenderly.co/fork/<id>");
--------------
warning: the fork will be deleted once this terminal is closed
- First copy the 4
localStorage
statements to your browser console of a running aave app - Setup a metamask fork with
forkNetworkId
(3030 in the example) and rpchttps://rpc.tenderly.co/fork/<id>
-> switch to the network - Reload the page
You should now have a custom fork running with an addition of 10000 of the base network currency in your wallet.
In addition to that new fork markets should have appeared in the market selection suffixed with the fork
keyword.
This is the market of your fork.
Switch to the market and do whatever you want 🎉, always double check the selected network in your wallet provider to make sure transactions are executed only on the fork network.