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

Contract Creator Mapping Model #1151

Open
MSilb7 opened this issue Dec 11, 2024 · 0 comments
Open

Contract Creator Mapping Model #1151

MSilb7 opened this issue Dec 11, 2024 · 0 comments

Comments

@MSilb7
Copy link
Contributor

MSilb7 commented Dec 11, 2024

Use creation traces to build the logic for iterating up the creation tree to find the top-level deployer that we can use for quickly mapping contracts to projects.

Steps:

  1. Find all contract creations (use intermediate model creation_traces #1049 creation_traces)
  2. For create2+ deployments, pull the transaction sender
  3. For create deployments, iterate up the tree (i.e. check the contract that created this contract) until we get to a deployer.
  4. Pull in all predeploys and OVM1 contracts for OP Mainnet
  5. Produce a contract <> deployer mapping table, which we can then use to join with labels.

See what we previously built in Dune: https://github.com/duneanalytics/spellbook/tree/fd8b1de206f81c050fc8f2e641a6a540be41e4e8/dbt_subprojects/daily_spellbook/models/contracts/optimism

Note: This may be a short-term method to identify the deployer. This breaks if we move to a world where users "install" contracts on their chain. In this case, we'd need a different identifier.

@MSilb7 MSilb7 changed the title Contract Creator Mapping Contract Creator Mapping Model Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant