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 dYdX commits to cosmos v0.47.1 #11

Merged
merged 8 commits into from
Mar 24, 2023

Conversation

jonfung-dydx
Copy link

@jonfung-dydx jonfung-dydx commented Mar 23, 2023

Following instructions in readme to layer our commits on top of cosmos v0.47.1

Comment on lines 488 to +494
// empty/reset the deliver state
app.deliverState = nil

if app.commiter != nil {
app.commiter(app.checkState.ctx)
}

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:

(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).Commit (baseapp/abci.go:452)

@github-advanced-security
Copy link

You have successfully added a new CodeQL configuration .github/workflows/codeql-analysis.yml:analyze. As part of the setup process, we have scanned this repository and found 242 existing alerts. Please check the repository Security tab to see all alerts.

@github-actions
Copy link

@jonfung-dydx your pull request is missing a changelog!

@ttl33
Copy link

ttl33 commented Mar 24, 2023

Would you be able to squash the last 3 commits into 1 so that it's easier to layer commits next time?

5. Cherry-pick each dydx-created commit from the current default branch, in order, on to the new `dydx-fork-$VERSION` branch (note: you may want to consider creating multiple PRs for this process if there are difficulties or merge conflicts). For example, `git cherry-pick <commit hash>`. You can verify the first commit by seeing the most recent commit sha for the `$VERSION` (i.e `v0.47.0-alpha2`) tag on the `cosmos/cosmos-sdk` repo, and taking the next commit from that sha.
6. Open a PR to merge the second branch (`totoro/dydxCommits`) into the first (`dydx-fork-v0.47.0-alpha2`). Get approval, and merge.
7. Update `dydxprotocol/v4` by following the steps in "Making Changes to the fork" above.
8. Set `dydx-fork-$VERSION` as the [default branch](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch) in this repository.

Choose a reason for hiding this comment

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

Should we add a note about the GitHub workflow permissioning and an example of those errors? It requires a GitHub admin to whitelist any new workflows.

Copy link
Author

Choose a reason for hiding this comment

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

Done

@jonfung-dydx jonfung-dydx force-pushed the jonfung/cherryPick branch 2 times, most recently from c58e5c4 to 0a6795c Compare March 24, 2023 18:26
@jonfung-dydx jonfung-dydx merged commit 0c25c44 into dydx-fork-v0.47.1 Mar 24, 2023
@jonfung-dydx jonfung-dydx deleted the jonfung/cherryPick branch March 24, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants