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

shutter: collect data from smart contracts #13553

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

taratorio
Copy link
Member

No description provided.

taratorio added a commit that referenced this pull request Jan 27, 2025
relates to #13383
takes a chunk of changes out of bigger shutter PR
#13553 in which we collect data
from various shutter smart contracts

context on this PR:
- smart contracts objects generated by `abigen` rely on
`bind.ContractBackend` in order to be used
- we currently do not have an implementation of that interface in Erigon
(apart from `SimulatedBackend` which is used in testing - inherited from
Geth)
- in this PR im adding an implementation of `ContractBackend` which uses
the `EthApi` jsonrpc object and directly calls it instead of going via
http rpc and/or websocket (for log update subscriptions) - this is
analogous to how we have `direct` and `remote` grpc clients for our
grpc-based components
- ive also wired the new contract backend to the shutter pool - this
will be used in a subsequent PR (check the aforementioned PR
#13553 for usages)

note that this is needed also for @shohamc1 's work for native AA which
is why it will be good to merge it in main
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

Successfully merging this pull request may close these issues.

1 participant