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

Need support for CryptoCurrencies #12

Open
BillHertzing opened this issue Nov 14, 2017 · 3 comments
Open

Need support for CryptoCurrencies #12

BillHertzing opened this issue Nov 14, 2017 · 3 comments

Comments

@BillHertzing
Copy link

I'd like to use Money and Wallet to represent/hold any CryptoCurrency as well any ISO 4217 fiat money. The current implementation supports the ISO 4217 CurrencyCode enumeration, but this standard does not mention the 1000+ new cryptocurrencies that are being quickly introduced. One source that can be used to create an enumeration of cryptocurrencies is in this GitHub repository:
crypti/cryptocurrencies ([https://github.com/crypti/cryptocurrencies]). These are just strings.

If this feature were added, then Wallet would be useful in the CryptoCurrency domain in addition to the fiat currency domain. Please modify the class and methods to support on either the 4217 enumeration, or an enumeration created from the JSON class above, or both.

@zpbappi
Copy link
Owner

zpbappi commented Feb 18, 2018

@BillHertzing Excellent idea. However, the number of cryptos are growing very frequently. And, I really want to move away from string-based currency name yet provide support for all cryptocurrencies currently available and will be available in future. Having a large enough enum is not really a solution for it, as it will become outdated with the arrival of a new crypto. This is possible if I decide to change the way I treat currency in the code- which is a large change. I may do this at some point in near future. Please do share if you have different thoughts.

@zpbappi
Copy link
Owner

zpbappi commented Aug 7, 2018

@BillHertzing I did come up with an idea to support not only crypto-currencies, but also commodities. so, basically, you will be able to use the Money class for anything along with fiat currencies like USD, AUD, etc. Needless to say, you can also mix and match them together. This will be a breaking change and will be released as a major version in near future. Keep an I on the repo and/or nuget package. I will also update the project to support .NET Standard 2.0 in that release.

@BillHertzing
Copy link
Author

BillHertzing commented Aug 8, 2018 via email

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

No branches or pull requests

2 participants