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

add precommit callback #7

Merged
merged 2 commits into from
Feb 23, 2023
Merged

add precommit callback #7

merged 2 commits into from
Feb 23, 2023

Conversation

dydxwill
Copy link

precommit callback will be used for emitting Indexer onchain events from the deliverState

@@ -70,6 +70,7 @@ type BaseApp struct { //nolint: maligned
prepareProposal sdk.PrepareProposalHandler // the handler which runs on ABCI PrepareProposal
endBlocker sdk.EndBlocker // logic to run after all txs, and to determine valset changes
commiter sdk.Commiter // logic to run during commit
precommiter sdk.Precommiter // logic to run during precommit
Copy link

@prettymuchbryce prettymuchbryce Feb 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
precommiter sdk.Precommiter // logic to run during precommit
precommiter sdk.Precommiter // logic to run during commit using the `deliverState`

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

types/abci.go Outdated
@@ -23,6 +23,10 @@ type EndBlocker func(ctx Context, req abci.RequestEndBlock) abci.ResponseEndBloc
// branched for the new block.
type Commiter func(ctx Context)

// Precommiter runs code during commit before the `deliverState` is reset. For the Dydx chain, it is currently

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Remove the dYdX specific comment. I think we can include this context downstream in v4.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dydxwill dydxwill merged commit 70fe6ba into dydx-fork-v0.47.0-alpha2 Feb 23, 2023
@dydxwill dydxwill deleted the wl/precommit branch February 23, 2023 15:37
prettymuchbryce pushed a commit that referenced this pull request Feb 28, 2023
prettymuchbryce pushed a commit that referenced this pull request Feb 28, 2023
dydxwill added a commit that referenced this pull request Mar 20, 2023
prettymuchbryce pushed a commit that referenced this pull request Mar 22, 2023
jonfung-dydx pushed a commit that referenced this pull request Mar 24, 2023
jonfung-dydx pushed a commit that referenced this pull request Mar 24, 2023
jonfung-dydx pushed a commit that referenced this pull request Mar 28, 2023
jonfung-dydx pushed a commit that referenced this pull request Mar 28, 2023
roy-dydx pushed a commit that referenced this pull request Jul 2, 2023
roy-dydx pushed a commit that referenced this pull request Jul 2, 2023
roy-dydx pushed a commit that referenced this pull request Jul 3, 2023
roy-dydx pushed a commit that referenced this pull request Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants