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

Support both osmosis and CW tokenfactory msg standards #788

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

NoahSaso
Copy link
Member

@NoahSaso NoahSaso commented Dec 18, 2023

This adds support for the /cosmwasm.tokenfactory msg type URLs to cw-tokenfactory-issuer, now supporting both /cosmwasm. and /osmosis.. The feature flag osmosis_tokenfactory or cosmwasm_tokenfactory control which version of the contract gets built.

It also removes dependency on the token_bindings package which uses CosmosMsg::Custom(TokenFactoryMsg) because we now use stargate (CosmosMsg::Stargate) messages instead, which are supported on all chains since msgs are protobuf encoded. This is critical to supporting both token the cosmwasm. and osmosis. tokenfactory standards.

@NoahSaso NoahSaso force-pushed the noah/support-cosmwasm-tokenfactory branch from 6197c96 to 66b34c8 Compare December 18, 2023 09:21
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 239 lines in your changes are missing coverage. Please review.

Comparison is base (a3f15d7) 96.50% compared to head (3b5a112) 96.13%.

Files Patch % Lines
packages/cw-tokenfactory-types/src/cosmwasm.rs 0.00% 91 Missing ⚠️
packages/cw-tokenfactory-types/src/msg.rs 0.00% 84 Missing ⚠️
packages/cw-tokenfactory-types/src/shim.rs 0.00% 31 Missing ⚠️
...cts/external/cw-tokenfactory-issuer/src/execute.rs 0.00% 29 Missing ⚠️
...ts/external/cw-tokenfactory-issuer/src/contract.rs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           development     #788      +/-   ##
===============================================
- Coverage        96.50%   96.13%   -0.37%     
===============================================
  Files              204      207       +3     
  Lines            52518    52716     +198     
===============================================
  Hits             50680    50680              
- Misses            1838     2036     +198     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NoahSaso NoahSaso force-pushed the noah/support-cosmwasm-tokenfactory branch from 66b34c8 to 6096219 Compare December 18, 2023 11:20
@NoahSaso NoahSaso marked this pull request as ready for review December 18, 2023 11:23
@NoahSaso NoahSaso force-pushed the noah/support-cosmwasm-tokenfactory branch from 6096219 to f8f9071 Compare December 18, 2023 17:26
@NoahSaso NoahSaso force-pushed the noah/support-cosmwasm-tokenfactory branch from f8f9071 to 0c6eae1 Compare December 18, 2023 17:46
Co-authored-by: Jake Hartnell <[email protected]>
Copy link
Member

@JakeHartnell JakeHartnell left a comment

Choose a reason for hiding this comment

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

LGTM

@NoahSaso NoahSaso merged commit 903884b into development Dec 19, 2023
3 of 5 checks passed
@NoahSaso NoahSaso deleted the noah/support-cosmwasm-tokenfactory branch December 19, 2023 01:47
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.

2 participants