Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The Tenderly/vnet-github-action automates provisioning of Virtual TestNets for smart contract CI/CD pipelines. Virtual TestNets are testing and staging infrastructure with built Mainnet State Sync, Unlimited Faucet, Debugger, and Public Block Explorer.
This action creates a new Virtual TestNet from your configuration and exposes its RPC URLs through environment variables, enabling automated testing and staging environments for Uniswap protocol.
This action enables:
Quick Setup
Step 1: Configure GitHub Action
These are the different inputs that can be configured:
The example below will deploy Smart Contracts to Tenderly Virtual TestNet on ETH Mainnet network.
Step 2: Set Your Secrets
GitHub Secrets (Settings → Secrets and variables → Actions → New repository secret):
TENDERLY_ACCESS_KEY
PRIVATE_KEY
ETHERSCAN_API_KEY
GitHub Variables (Settings → Secrets and variables → Actions → Variables → New repository variable):
TENDERLY_PROJECT_SLUG
TENDERLY_ACCOUNT_SLUG
ADMIN_WALLET
This code example will fund your deployment wallet address with 1000 ETH and deploy the contracts using
Deploy-all.s.sol
Foundry script:How Has This Been Tested?
Here's a concise setup overview for testing:
Prerequisites
Testing Process
Tests run automatically on PR creation:
You can track test runs:
Need help? Drop an issue or check Tenderly Virtual TestNet Docs.
Checklist:
Before deployment
After deployment
Considerations
forge fmt
and prettier to ensure the code style is validAdditional context
Add any other context about the pull request here.