forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 11
Data pipeline #48
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
Closed
Closed
Data pipeline #48
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
1d10848
feat: stream events flush with additional data
jeffwoooo 5febcbb
add mq config
0xF0D0 de48fa7
fix typo
0xF0D0 6e850ee
feat: new event manager inside sdk context
jeffwoooo 07c18c7
feat: flush stream events on commit
jeffwoooo 730182b
feat: abci event placeholder
jeffwoooo b69b60d
feat: remove app event type
jeffwoooo 49152fe
fix: nil added while emit events
jeffwoooo b4ddb21
feat: put event placeholder into abci event manager
jeffwoooo a304533
feat: unit test for publish events
jeffwoooo 0bb11d7
feat: separate event channel
jeffwoooo 4edb934
feat: temporary implement serializable for PublishEventFlush
jeffwoooo 68a80f9
feat: temporary implement serializable for PublishEventFlush
jeffwoooo 87ac127
feat: remove mq interface implementation from publish event flush
jeffwoooo cb7f9b9
feat: remove ToString from publish event interface
jeffwoooo 2e74318
feat: distinct block events and tx events
jeffwoooo c7bca73
feat: const placeholder event type
jeffwoooo f861738
feat: event true order typing
jeffwoooo 2d7453b
refactor: filter and order events after block execution
jeffwoooo 11ec3f0
fix: flush chain stream event
jeffwoooo 9c567c9
Merge branch 'v0.50.x-comet1-inj-nm' into v0.50.9-inj-2-data-pipeline
albertchon 45068f8
fix: test import
albertchon c647364
fix(test): apply abci update
jeffwoooo e86e4cf
chore: remove test logging
jeffwoooo 8072ad3
add config for control port
0xF0D0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| package baseapp | ||
|
|
||
| import ( | ||
| abci "github.com/cometbft/cometbft/abci/types" | ||
| types "github.com/cosmos/cosmos-sdk/types" | ||
| ) | ||
|
|
||
| type EventType byte | ||
|
|
||
| const ( | ||
| EventTypeAbci EventType = iota | ||
| EventTypePublish | ||
| ) | ||
|
|
||
| type EventSet struct { | ||
| AbciEvents []abci.Event | ||
| PublishEvents types.PublishEvents | ||
| TrueOrder []EventType | ||
| } | ||
|
|
||
| type PublishEventFlush struct { | ||
| Height int64 | ||
| PrevAppHash []byte | ||
| NewAppHash []byte | ||
| BlockEvents EventSet | ||
| TxEvents []EventSet | ||
| } | ||
|
|
||
| func (app *BaseApp) PublishBlockEvents(flush PublishEventFlush) { | ||
| if app.EnablePublish { | ||
| app.PublishEvents <- flush | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Change potentially affects state.
Call sequence: