Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sakulstra/tenderly-fork
little script for pinning up forks at tenderly
https://github.com/sakulstra/tenderly-fork
Last synced: 11 days ago
JSON representation
little script for pinning up forks at tenderly
- Host: GitHub
- URL: https://github.com/sakulstra/tenderly-fork
- Owner: sakulstra
- License: mit
- Created: 2021-04-09T07:43:47.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T04:04:21.000Z (9 months ago)
- Last Synced: 2024-10-20T06:27:56.787Z (19 days ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 17
- Watchers: 1
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
``` ✔ 6s
> [email protected] start
> node create.jsCreating fork for 137 on 3030
rpcUrl https://rpc.tenderly.co/fork/
chainId 3030No 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/");
--------------
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/` -> switch to the network
3. Reload the pageYou 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 :tada:, always double check the selected network in your wallet provider to make sure transactions are executed only on the fork network.