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

Emit events on upgradeable contract initialization #717

Open
cam-schultz opened this issue Feb 7, 2025 · 0 comments
Open

Emit events on upgradeable contract initialization #717

cam-schultz opened this issue Feb 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@cam-schultz
Copy link
Contributor

Context and scope
In order to glean the initialization parameters and contract type from a contract creation transaction, the deployed bytecode must be mapped to source code (i.e. contract verification). This is an extra necessary layer on top of the on-chain activity to expose this information. Further, for older contracts that have not been verified, it can be difficult to find the exact version of the source code.

Discussion and alternatives
Instead, we should emit a unique event containing important contract parameters at initialization time. This would also allow changes to the contract conducted via upgrade to be tracked (assuming of course that the initialization event remains similar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog 🗄️
Development

No branches or pull requests

1 participant