Feat: Script to find the deployment block and possible transaction(s)#2304
Open
akshay-ap wants to merge 13 commits into
Open
Feat: Script to find the deployment block and possible transaction(s)#2304akshay-ap wants to merge 13 commits into
akshay-ap wants to merge 13 commits into
Conversation
…fe contract deployment
Pull Request Test Coverage Report for Build 22717156949Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Uxio0
requested changes
Apr 28, 2026
…for potential early deployment
…nstructions; add uv.lock to .gitignore
…ransaction scanning
Uxio0
reviewed
May 14, 2026
There was a problem hiding this comment.
Pull request overview
Adds a standalone utility script for locating Safe contract deployment blocks and candidate deployment transactions via JSON-RPC code checks and block scanning.
Changes:
- Added
scripts/find_deployment.pywith async RPC helpers, binary-search deployment block detection, and factory transaction scanning. - Added a script-specific uv lockfile for the
httpxdependency.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
scripts/find_deployment.py |
New CLI utility to find deployment blocks and possible factory transaction hashes for contract addresses. |
scripts/find_deployment.py.lock |
Locks dependencies for running the standalone script with uv. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
eef53cd to
320c89f
Compare
Uxio0
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request adds a new utility script,
find_deployment.py, that helps identify the deployment block and candidate transaction hashes for Safe contracts on Ethereum-compatible blockchains. The script uses a binary search approach to efficiently locate the deployment block by checking for the presence of contract bytecode, and then scans that block for transactions sent to the Safe singleton factory, which are likely deployment transactions.The script finds and prints the blocks and possible transactions that deployed the code at address.
We can reuse existing workflows to create PR after reviewing the output of this script and hence not included in this script.