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
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 23, 2023
jonfung-dydx pushed a commit that referenced this pull request Mar 23, 2023
jonfung-dydx pushed a commit that referenced this pull request Mar 23, 2023
jonfung-dydx pushed a commit that referenced this pull request Mar 23, 2023
jonfung-dydx added a commit that referenced this pull request Mar 24, 2023
* Implement Commiter

* Update README with fork instructions

* Enable CI workflows and fix failures (#4)

* Fix lint/gocritic error

* Disable some workflow jobs

* Add tests for Commiter change (#5)

* Add additional upgrade step to README

* add precommit callback (#7)

* Revert "add precommit callback (#7)" (#10)

This reverts commit 0e85c49.

* cosmos-sdk upgrade README changes

---------

Co-authored-by: Bryce Neal <bryce@dydx.exchange>
Co-authored-by: Bryce Neal <brycedneal@gmail.com>
Co-authored-by: dydxwill <119354122+dydxwill@users.noreply.github.com>
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
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 Jun 30, 2023
roy-dydx pushed a commit that referenced this pull request Jun 30, 2023
roy-dydx pushed a commit that referenced this pull request Jul 1, 2023
roy-dydx pushed a commit that referenced this pull request Jul 1, 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
lcwik pushed a commit that referenced this pull request Aug 24, 2023
lcwik added a commit that referenced this pull request Aug 24, 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