| 1 | import 'package:cw_core/crypto_currency.dart'; |
| 2 | |
| 3 | enum MemoLabelType { destinationTag, memo } |
| 4 | |
| 5 | const Map<CryptoCurrency, MemoLabelType> _currenciesRequiringMemo = { |
| 6 | CryptoCurrency.xrp: MemoLabelType.destinationTag, |
| 7 | CryptoCurrency.xlm: MemoLabelType.memo, |
| 8 | CryptoCurrency.ton: MemoLabelType.memo, |
| 9 | CryptoCurrency.eos: MemoLabelType.memo, |
| 10 | CryptoCurrency.hbar: MemoLabelType.memo, |
| 11 | }; |
| 12 | |
| 13 | MemoLabelType? memoLabelTypeFor(CryptoCurrency currency) => _currenciesRequiringMemo[currency]; |