Skip to content

Conversation

@ZeroWave022
Copy link
Contributor

This pull request removes CacheHandler and replaces it with CurrencyCache.

Side effects:

  • The client now has cryptos and fiats properties, giving access to a CurrencyCache each.
  • Client.getCryptoCurrencies and Client.getFiatCurrencies are removed, as you can now access these values without calling any function.
  • Amount does not use the cache anymore, as it is now managed by the client.

CryptoCurrency and FiatCurrency receive helper functions:

  • convertToAmount goes from a raw API value to a readable one.
  • convertToRaw goes from a readable value to a raw API one.

@ZeroWave022 ZeroWave022 merged commit b9abd08 into tipccjs:main Apr 22, 2023
@ZeroWave022 ZeroWave022 deleted the currencycache branch April 22, 2023 19:12
@ZeroWave022 ZeroWave022 restored the currencycache branch April 22, 2023 19:12
@ZeroWave022 ZeroWave022 deleted the currencycache branch April 22, 2023 19:12
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