-
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: events: Lotus API to consume events (smart contract + built-in Actor events) #11540
Conversation
Bump version in master
chore: build: Bump version in master
fix: lotus-provider: lotus-provider msg sending
fix: lotus-provider: Fix winning PoSt
fix: sql Scan cannot write to an object
Actually show miner-addrs in lotus-provider info-log
fix: lotus-provider: show addresses in log
fix: lotus-provider: Wait for the correct taskID
harmony: Fix task reclaim on restart
Fix log output format in wdPostTaskCmd
Also explicitly limit how many bytes we're willing to read in one go such that we're capable of reading a worst-case tipset (like, really, never going to happen worst-case). Previously, this wasn't an issue. However, we've bumped the max number of messages from 8,192 to 150,000 and need to limit allocations somewhere else.
…sage-length fix: exchange: allow up to 10k messages per block
It's not a const for the testground build, and needs to be an int 99% of the time. So we might as well just cast here.
fix: lotus-provider: Fix log output format in wdPostTaskCmd
Co-authored-by: Rod Vagg <rod@vagg.org>
test: DDO onboarding non-market verified data
dc5b585
to
8e71abf
Compare
itests will be green after we merge the FFI/ref-fvm deps changes for NV22 to this branch. |
Merged. |
I've merged feat/nv22 back in here, but it also needs a newer builtin-actors. Unfortunately, the v13.0.0-rc.1 already has the optional AggregateProofType change which requires the additional fixes in go-state-types and back here, so it has to be v13.0.0-dev.0; which can be installed with:
Then this works as is. |
9a9c50b
to
5f43f67
Compare
@aarshkshah1992 latest commit from me is a cleanup and doc of the test. I've tried to structure it a bit better to be more easily understood since there's so many things going on in there. I got to simplify a bunch of things while in there, including that height problem! Switching to using I think I also made the whole allocation->claim testing thing a bit clearer and actually tested the claim is what we expect. Which then verifies that data collection for the DDO flow is possible with this workflow. |
2fa3ef7
to
a450b1f
Compare
a450b1f
to
e500393
Compare
Minor tweaks to events types
Some notes related to the differences to the Eth events API for this one, for anyone reviewing this who may think this is important:
|
Given that the TODO of |
I'm fine with this getting merged, probably needs to be squashed up because it's a bit of a mess. I have some additional proposals for the API but they can be done separately. |
#11618 has all of this and is condensed and is receiving updates. So moving discussion to there. |
TODO
Related Issues
Proposed Changes
This PR is for #11457. It implements a new API in Lotus for clients to consume both smart contract and the upcoming built-in Actor events in FIP-0083
Note that this is the first draft and it would be great to get community feedback on improvements we can make to the API here.
The existing ETH events API will remain as is and no changes have been made to it.
API Definition
There are some changes/details we need to drive consensus on which I've left as review comments on the PR.
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