-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Revert "Remove all use of mint tokens" #25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
cce1047
to
5030d71
Compare
Rename EstimatePriceResponse to SwapResponse for consistency / clarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff.
I haven't looked at the osmosis side yet to make sure it is compatible, or if it requires another step.
But approve this for the minimal minting functionality
fn build_denom(&self, contract: &Addr, sub_denom: &str) -> String { | ||
// TODO: validation assertion on the full denom. | ||
// https://github.com/cosmos/cosmos-sdk/blob/2646b474c7beb0c93d4fafd395ef345f41afc251/types/coin.go#L706-L711 | ||
// Plus, the address must not contain the separator ('/') string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would minimally assert some limits... len >= 2, len <= 127, no /
Closes / Related to: #1029 ## What is the purpose of the change Re-instate the CoswmWasm message handlers for Mint and FullDenom. Related to osmosis-labs/bindings#25 on the Rust side. ## Brief change log - Uncomment the Mint-related code. - Implemented `Mint` using `TokenFactory`. - Implemented `FullDenom` in terms of `TokenFactory`. ## Testing and Verifying Uncommented and adapted already existing tests. ## Documentation and Release Note - Does this pull request introduce a new feature or user-facing behavior changes? (yes. For the CosmWasm side) - Is a relevant changelog entry added to the `Unreleased` section in `CHANGELOG.md`? (will do) - How is the feature or change documented? (not documented)
Closes / Related to: CosmWasm#1029 ## What is the purpose of the change Re-instate the CoswmWasm message handlers for Mint and FullDenom. Related to osmosis-labs/bindings#25 on the Rust side. ## Brief change log - Uncomment the Mint-related code. - Implemented `Mint` using `TokenFactory`. - Implemented `FullDenom` in terms of `TokenFactory`. ## Testing and Verifying Uncommented and adapted already existing tests. ## Documentation and Release Note - Does this pull request introduce a new feature or user-facing behavior changes? (yes. For the CosmWasm side) - Is a relevant changelog entry added to the `Unreleased` section in `CHANGELOG.md`? (will do) - How is the feature or change documented? (not documented)
This reverts commit c0ea5b7.
This re-instates the mint / full-denom mintings.