Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support verification on tenderly #91

Merged
merged 6 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# eoa
PRIVATE_KEY=

# gnosis chain
GNOSIS_RPC_URL=
GNOSISSCAN_API_KEY=

# eoa
PRIVATE_KEY=
# tenderly
TENDERLY_ACCOUNT=onchainification
TENDERLY_PROJECT=robosaver
TENDERLY_NETWORK_ID=100
TENDERLY_ACCESS_TOKEN=
TENDERLY_VERIFIER_URL=https://api.tenderly.co/api/v1/account/${TENDERLY_ACCOUNT}/project/${TENDERLY_PROJECT}/etherscan/verify/network/${TENDERLY_NETWORK_ID}/public

# source verification
VMODULE_ADDRESS=
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ startAnvil:
--code-size-limit 1000000 \
--fork-url gnosis \
--gas-price 0

verifyTenderly:
forge verify-contract ${VMODULE_ADDRESS} \
RoboSaverVirtualModule \
--etherscan-api-key ${TENDERLY_ACCESS_TOKEN} \
--verifier-url ${TENDERLY_VERIFIER_URL} \
--chain gnosis \
--via-ir \
--watch
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ remappings = [
'@balancer-v2=lib/balancer-v2-monorepo/pkg/',
'@chainlink=lib/chainlink/contracts/src/v0.8/',
]
cbor_metadata = true

[rpc_endpoints]
gnosis = "${GNOSIS_RPC_URL}"
Expand Down
Loading