-
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: Add Lotus APIs to consume smart contract and built-in actor events #11618
Commits on Mar 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c102516 - Browse repository at this point
Copy the full SHA c102516View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0bdd55 - Browse repository at this point
Copy the full SHA f0bdd55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b09595 - Browse repository at this point
Copy the full SHA 9b09595View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76e6818 - Browse repository at this point
Copy the full SHA 76e6818View commit details -
Configuration menu - View commit details
-
Copy full SHA for 114acae - Browse repository at this point
Copy the full SHA 114acaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fedf29 - Browse repository at this point
Copy the full SHA 2fedf29View commit details -
Configuration menu - View commit details
-
Copy full SHA for a98da82 - Browse repository at this point
Copy the full SHA a98da82View commit details -
Configuration menu - View commit details
-
Copy full SHA for fcc7a01 - Browse repository at this point
Copy the full SHA fcc7a01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d2c3ab - Browse repository at this point
Copy the full SHA 5d2c3abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53b5cc1 - Browse repository at this point
Copy the full SHA 53b5cc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9cb30d - Browse repository at this point
Copy the full SHA a9cb30dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 620f381 - Browse repository at this point
Copy the full SHA 620f381View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2c07ef - Browse repository at this point
Copy the full SHA a2c07efView commit details -
More post-review changes, lots of tests for SubscribeActorEvents
Use BlockDelay as the window for receiving events on the SubscribeActorEvents channel. We expect the user to have received the initial batch of historical events (if any) in one block's time. For real-time events we expect them to not fall behind by roughly one block's time.
Configuration menu - View commit details
-
Copy full SHA for 05e7508 - Browse repository at this point
Copy the full SHA 05e7508View commit details -
Remove duplicate code from actor event type marshalling tests
Reduce verbosity and remove duplicate test logic from actor event types JSON marshalling tests.
Configuration menu - View commit details
-
Copy full SHA for d24f30f - Browse repository at this point
Copy the full SHA d24f30fView commit details -
Rename actor events test to follow go convention
Add missing `s` to `actor_events` test file to follow golang convention used across the repo.
Configuration menu - View commit details
-
Copy full SHA for 3639036 - Browse repository at this point
Copy the full SHA 3639036View commit details -
Run actor events table tests in deterministic order
Refactor `map` usage for actor event table tests to ensure deterministic test execution order, making debugging potential issues easier. If non-determinism is a target, leverage Go's built-in parallel testing capabilities.
Configuration menu - View commit details
-
Copy full SHA for f8f014a - Browse repository at this point
Copy the full SHA f8f014aView commit details -
Reduce scope for filter removal failure when getting actor events
Use a fresh context to remove the temporary filter installed solely to get the actor events. This should reduce chances of failure in a case where the original context may be expired/cancelled. Refactor removal into a `defer` statement for a more readable, concise return statement.
Configuration menu - View commit details
-
Copy full SHA for df4cee8 - Browse repository at this point
Copy the full SHA df4cee8View commit details -
Use fixed RNG seed for actor event tests
Improve determinism in actor event tests by using a fixed RNG seed. This makes up a more reproducible test suit.
Configuration menu - View commit details
-
Copy full SHA for c0c6988 - Browse repository at this point
Copy the full SHA c0c6988View commit details -
Use provided libraries to assert eventual conditions
Use the functionalities already provided by `testify` to assert eventual conditions, and remove the use of `time.Sleep`. Remove duplicate code in utility functions that are already defined. Refactor assertion helper functions to use consistent terminology: "require" implies fatal error, whereas "assert" implies error where the test may proceed executing.
Configuration menu - View commit details
-
Copy full SHA for 79e1e9e - Browse repository at this point
Copy the full SHA 79e1e9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7da65d - Browse repository at this point
Copy the full SHA a7da65dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d2c2a3 - Browse repository at this point
Copy the full SHA 0d2c2a3View commit details