mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
missing wow enum and price values
This commit is contained in:
parent
26b7306d22
commit
88653f96df
4 changed files with 12 additions and 6 deletions
|
@ -79,7 +79,7 @@ class PriceAPI {
|
||||||
Map<Coin, Tuple2<Decimal, double>> result = {};
|
Map<Coin, Tuple2<Decimal, double>> result = {};
|
||||||
try {
|
try {
|
||||||
final uri = Uri.parse(
|
final uri = Uri.parse(
|
||||||
"https://api.coingecko.com/api/v3/coins/markets?vs_currency=${baseCurrency.toLowerCase()}&ids=monero,bitcoin,epic-cash,zcoin,dogecoin,bitcoin-cash,namecoin&order=market_cap_desc&per_page=10&page=1&sparkline=false");
|
"https://api.coingecko.com/api/v3/coins/markets?vs_currency=${baseCurrency.toLowerCase()}&ids=monero,bitcoin,epic-cash,zcoin,dogecoin,bitcoin-cash,namecoin,wownero&order=market_cap_desc&per_page=10&page=1&sparkline=false");
|
||||||
// final uri = Uri.parse(
|
// final uri = Uri.parse(
|
||||||
// "https://api.coingecko.com/api/v3/coins/markets?vs_currency=${baseCurrency.toLowerCase()}&ids=monero%2Cbitcoin%2Cepic-cash%2Czcoin%2Cdogecoin&order=market_cap_desc&per_page=10&page=1&sparkline=false");
|
// "https://api.coingecko.com/api/v3/coins/markets?vs_currency=${baseCurrency.toLowerCase()}&ids=monero%2Cbitcoin%2Cepic-cash%2Czcoin%2Cdogecoin&order=market_cap_desc&per_page=10&page=1&sparkline=false");
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ import 'package:stackwallet/services/coins/epiccash/epiccash_wallet.dart'
|
||||||
as epic;
|
as epic;
|
||||||
import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as firo;
|
import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as firo;
|
||||||
import 'package:stackwallet/services/coins/monero/monero_wallet.dart' as xmr;
|
import 'package:stackwallet/services/coins/monero/monero_wallet.dart' as xmr;
|
||||||
import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow;
|
|
||||||
import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart'
|
import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart'
|
||||||
as nmc;
|
as nmc;
|
||||||
|
import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow;
|
||||||
|
|
||||||
enum Coin {
|
enum Coin {
|
||||||
bitcoin,
|
bitcoin,
|
||||||
|
@ -217,6 +217,10 @@ Coin coinFromPrettyName(String name) {
|
||||||
case "tDogecoin":
|
case "tDogecoin":
|
||||||
case "dogecoinTestNet":
|
case "dogecoinTestNet":
|
||||||
return Coin.dogecoinTestNet;
|
return Coin.dogecoinTestNet;
|
||||||
|
case "Wownero":
|
||||||
|
case "tWownero":
|
||||||
|
case "wownero":
|
||||||
|
return Coin.wownero;
|
||||||
default:
|
default:
|
||||||
throw ArgumentError.value(
|
throw ArgumentError.value(
|
||||||
name, "name", "No Coin enum value with that prettyName");
|
name, "name", "No Coin enum value with that prettyName");
|
||||||
|
@ -247,6 +251,8 @@ Coin coinFromTickerCaseInsensitive(String ticker) {
|
||||||
return Coin.firoTestNet;
|
return Coin.firoTestNet;
|
||||||
case "tdoge":
|
case "tdoge":
|
||||||
return Coin.dogecoinTestNet;
|
return Coin.dogecoinTestNet;
|
||||||
|
case "wow":
|
||||||
|
return Coin.wownero;
|
||||||
default:
|
default:
|
||||||
throw ArgumentError.value(
|
throw ArgumentError.value(
|
||||||
ticker, "name", "No Coin enum value with that ticker");
|
ticker, "name", "No Coin enum value with that ticker");
|
||||||
|
|
|
@ -209,8 +209,8 @@ class CoinThemeColor {
|
||||||
return monero;
|
return monero;
|
||||||
case Coin.namecoin:
|
case Coin.namecoin:
|
||||||
return namecoin;
|
return namecoin;
|
||||||
// case Coin.wownero:
|
case Coin.wownero:
|
||||||
// return wownero;
|
return wownero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1422,8 +1422,8 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
return _coin.monero;
|
return _coin.monero;
|
||||||
case Coin.namecoin:
|
case Coin.namecoin:
|
||||||
return _coin.namecoin;
|
return _coin.namecoin;
|
||||||
// case Coin.wownero:
|
case Coin.wownero:
|
||||||
// return wownero;
|
return _coin.wownero;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue