oso icon indicating copy to clipboard operation
oso copied to clipboard

Track a project's contract deployment events

Open ccerv1 opened this issue 2 years ago • 5 comments

Describe the feature you'd like to request

Any time an EOA address deploys a contract, it should be stored as an event Any time a factory contract deploys a contract, it should be stored as an event

Describe the solution you'd like

The cumulative number of contracts deployed by a project, filterable to whether it came from an EOA or a factory

Describe alternatives you've considered

na

ccerv1 avatar Sep 07 '23 02:09 ccerv1

Just to validate @ccerv1, the EOA address in question is an OSS-Directory Project's EOA address that deploy a contract?

ravenac95 avatar Sep 08 '23 16:09 ravenac95

I think creator addresses can either create a factory or a contract

And a factory can also create a contract

ryscheng avatar Sep 08 '23 18:09 ryscheng

@ravenac95 - I'm going to remove my name from this task.

I completed the reindexing the other day, and it worked.

The Dune queries I used are:

I believe this provides the source material needed to index deployment events, but let me know if there's more needed from me.

Finally, in terms of the tagging conventions, I used:

  • eoa = any EOA regardless of whether it deploys something
  • creator = an EOA that should be monitored for contract deployments
  • contract = any smart contract
  • factory = a smart contract that should be monitored for contract deployments

@ryscheng we could refactor this to make any factory also a creator (or we could remove factory given that any contract that is also a creator would be a factory) or we could just move on ;)

ccerv1 avatar Sep 15 '23 20:09 ccerv1

sgtm, sounds like factory is redundant, we have (eoa, creator) or (contract, creator) right?

ryscheng avatar Sep 15 '23 21:09 ryscheng

@ravenac95 here's the query for contract deploys

... and here's an approximation for factory deploys (excluding Safes)

ccerv1 avatar Oct 12 '23 18:10 ccerv1