-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Put sdk.Coins
functions into core
#13155
Comments
My preference would be to just add the I see the need for some coin methods for So I actually think we will get a more correct implementation if we just have something custom for |
sdk.Coins
into coresdk.Coins
format/parse functions into core
This might be a good time to incorporate the fixes contemplated in #11223. |
sdk.Coins
format/parse functions into coresdk.Coins
functions into core
Yes, please let's get rid of panicking when checking if two coins of different denoms are equal! |
Closing this as the last talks where about adding the functionality into math instead of core (as core isn't made for it). |
Latest update
sdk.Coins
functions into core #13155 (comment). refactor: Move FormatCoins tocore
#13306Original issue below
Summary
Carve
sdk.Coin
andsdk.Coins
out of cosmos/cosmos-sdk, put them incore/coins
.Problem Definition
With ADR-053, we are removing core SDK components out of the root cosmos/cosmos-sdk go module, and putting them into standalone go modules: error, math, store, core etc.
Textual would like to use
sdk.Coins
in #12708, but because thetx
module is standalone, it cannot importsdk.Coins
.Proposal
Carve
sdk.Coin
andsdk.Coins
out of cosmos/cosmos-sdk, put them incore/coins
. Add an alias intypes/coins.go
to point to the carved out coins.Question: should we add
Legacy
prefix (similar to #12634)? as they depend on gogoprotoFurther Improvements
Maybe in the future, we would migrate to pulsar coins, and use functions instead of methods:
but let's create another issue for that.
The text was updated successfully, but these errors were encountered: