Act 1: Local project setup
Estimated time: 10 minIn this act, you’ll configure the project locally.
Prerequisites
Clone
Go to this github repo and:
- Create a project from this Github template in Github (needed for testing out the CI).
- Clone your fork:
git clone YOUR REPO URL
yarn
Libraries
- Node.js (
v 19+
) - Tenderly account
- Install Tenderly CLI
- Run
tenderly login
and follow the instructions.
Configure Tenderly
Copy the Testnet RPC
- Copy the network parameters snippet from Tenderly Dashboard Virtual TestNets > Integrate
- Edit
packages/tenderly/tenderly.config.ts
and paste the copied object tovirtualNetworks.virtual_mainnet
entry.
The file should look similar to this:
type NetworkConfig = {
url: string,
chainId: number,
currency: string
}
export const virtualNetworks: {
[networkName: string]: NetworkConfig;
} = {
// KEEP virtual_mainnet as the network name
"virtual_mainnet": {
"url": "https://virtual.mainnet.rpc.tenderly.co/bdb874b8-678b-401b-af93-8b0f8a55e9cd",
"chainId": 73571,
"currency": "VIRT"
}
};