Skip to content

sakulstra/tenderly-fork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork setup

Installation

  1. copy .env.test to .env and fill your credentials
  2. npm i install dependencies

Getting started

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
  1. First copy the 4 localStorage statements to your browser console of a running aave app
  2. Setup a metamask fork with forkNetworkId(3030 in the example) and rpc https://rpc.tenderly.co/fork/<id> -> switch to the network
  3. 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.

About

little script for pinning up forks at tenderly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published