-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: ethereum filters over indexed events #9646
feat: ethereum filters over indexed events #9646
Conversation
f8209c9
to
73655ed
Compare
02460a9
to
1035711
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
- Return logs in transaction RPCs.
// collect filter results | ||
res, err := client.EthGetFilterChanges(ctx, filterID) | ||
require.NoError(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should assert on the data returned.
itests/fevm_events_test.go
Outdated
// var ( | ||
// earliest = "earliest" | ||
// latest = "latest" | ||
// ) | ||
// | ||
// // Install a filter. | ||
// filter, err := client.EthNewFilter(ctx, &api.EthFilterSpec{ | ||
// FromBlock: &earliest, | ||
// ToBlock: &latest, | ||
// }) | ||
// require.NoError(err) | ||
// | ||
// // No logs yet. | ||
// res, err := client.EthGetFilterLogs(ctx, filter) | ||
// require.NoError(err) | ||
// require.Empty(res.NewLogs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iand are you planning to add itests for EthGetLogs
and EthSubscribe
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are lint issues and a test failing, but we can fix those in the events branch.
Incorporates all changes from #9644 and adds the capability to maintain Sqlite index of actor events that can be queried via the Eth api functions
From #9644
This PR connects the Lotus-side implementation of events with the FVM, by integrating these branches:
ref-fvm: https://github.com/filecoin-project/ref-fvm/tree/raulk/events
EVM actor: https://github.com/filecoin-project/builtin-actors/tree/raulk/events
filecoin-ffi: https://github.com/filecoin-project/filecoin-ffi/tree/raulk/events
A few schema changes were necessary.
We now display emitted events in the chain/invoke-evm-actor command.
Related Issues
Proposed Changes
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps