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

Update transfer docs and make ibc prefix a const #7926

Merged
merged 6 commits into from
Nov 13, 2020

Conversation

colin-axner
Copy link
Contributor

Description

closes: #7906


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@@ -25,6 +25,9 @@ const (

// QuerierRoute is the querier route for IBC transfer
QuerierRoute = ModuleName

// DenomPrefix is the prefix used for internal SDK coin representation.
DenomPrefix = "ibc"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should this be a var? I think the difference would be whether we want to allow an application creator to choose their own prefix

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah, I think it makes sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, lets just leave as a const, if it is a var another module could simply change the value of the prefix which we can't allow for safety

@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #7926 (1230e62) into master (ddc777c) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #7926   +/-   ##
=======================================
  Coverage   54.17%   54.17%           
=======================================
  Files         612      612           
  Lines       38999    38999           
=======================================
  Hits        21129    21129           
  Misses      15697    15697           
  Partials     2173     2173           

@colin-axner colin-axner added the A:automerge Automatically merge PR once all prerequisites pass. label Nov 13, 2020
Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

ACK

@mergify mergify bot merged commit 0b1a3ee into master Nov 13, 2020
@mergify mergify bot deleted the colin/7906-transfer-docs branch November 13, 2020 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

20-transfer: use special prefix for denominations
4 participants