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

Rename ics context #247

Merged
merged 12 commits into from
Nov 21, 2022
Merged

Rename ics context #247

merged 12 commits into from
Nov 21, 2022

Conversation

DaviRain-Su
Copy link
Contributor

Closes: #245

Description


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests.
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

Copy link
Contributor

@plafer plafer left a comment

Choose a reason for hiding this comment

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

Thank you again @DaviRain-Su!

Can we also rename the following:

  • Ics18Context -> RelayerContext
  • Ics26Envelope -> MsgEnvelope
    • And the variants (e.g. Ics2Msg -> ClientMsg, ...)

The only change left after this PR would be the directory names. However that's a really big breaking change (all imports will need to change); I think we should wait for #235 for that.

crates/ibc/src/applications/transfer/context.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@plafer plafer left a comment

Choose a reason for hiding this comment

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

Thank you!

@plafer plafer merged commit e300135 into cosmos:main Nov 21, 2022
@DaviRain-Su DaviRain-Su deleted the rename-ics-context branch November 22, 2022 07:20
Farhad-Shabani pushed a commit that referenced this pull request Sep 9, 2024
* Rename Ics26Context to RouterContext

* Rename Ics20Context to TransferContext

* Rename Ics20Keeper to TransferKepper, Ics20Reader to TransferReader

* fix test

* Create 245-rename-ics-context.md

* fmt code

* Rename Ics18Context to RelayerContext

* Rename Ics25Envelop to MsgEnvelop and Rename it's variants

* update .changelog

* Rename Ics20Context to TokenTransferContext

Signed-off-by: Davirain <davirain.yin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename Ics* names to something more descriptive
2 participants