getCoin static method
Retrieves the MoneroCoinConf for the given MoneroCoins. If the provided coin is not an instance of MoneroCoins, an error is thrown.
Implementation
static MoneroCoinConf getCoin(CryptoCoins coin) {
if (coin is! MoneroCoins) {
throw ArgumentException("Coin type is not an enumerative of MoneroCoins");
}
return coinToConf[coin.value]!;
}