merge conflicts

This commit is contained in:
ryleedavis 2023-07-28 10:50:05 -06:00
parent b66b25eb1f
commit 724f6193d7
5 changed files with 11 additions and 10 deletions

View file

@ -199,7 +199,7 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
case Coin.stellar:
case Coin.stellarTestnet:
throw UnimplementedError();
//TODO: check network/node
//TODO: check network/node
case Coin.tezos:
//TODO: check network/node
}

View file

@ -176,7 +176,7 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
case Coin.stellar:
case Coin.stellarTestnet:
throw UnimplementedError();
//TODO: check network/node
//TODO: check network/node
}
if (testPassed) {

View file

@ -96,12 +96,12 @@ class PriceAPI {
}
Map<Coin, Tuple2<Decimal, double>> result = {};
try {
final uri =
Uri.parse("https://api.coingecko.com/api/v3/coins/markets?vs_currency"
"=${baseCurrency.toLowerCase()}"
"&ids=monero,bitcoin,litecoin,ecash,epic-cash,zcoin,dogecoin,"
"bitcoin-cash,namecoin,wownero,ethereum,particl,nano,banano,stellar,tezos"
"&order=market_cap_desc&per_page=50&page=1&sparkline=false");
final uri = Uri.parse(
"https://api.coingecko.com/api/v3/coins/markets?vs_currency"
"=${baseCurrency.toLowerCase()}"
"&ids=monero,bitcoin,litecoin,ecash,epic-cash,zcoin,dogecoin,"
"bitcoin-cash,namecoin,wownero,ethereum,particl,nano,banano,stellar,tezos"
"&order=market_cap_desc&per_page=50&page=1&sparkline=false");
final coinGeckoResponse = await client.get(
uri,

View file

@ -42,7 +42,8 @@ abstract class Constants {
BigInt.parse("1000000000000000000000000000000"); // 1*10^30
static final BigInt _satsPerCoinBanano =
BigInt.parse("100000000000000000000000000000"); // 1*10^29
static final BigInt _satsPerCoinStellar = BigInt.from(10000000); // https://developers.stellar.org/docs/fundamentals-and-concepts/stellar-data-structures/assets#amount-precision
static final BigInt _satsPerCoinStellar = BigInt.from(
10000000); // https://developers.stellar.org/docs/fundamentals-and-concepts/stellar-data-structures/assets#amount-precision
static final BigInt _satsPerCoin = BigInt.from(100000000);
static final BigInt _satsPerCoinTezos = BigInt.from(1000000);
static const int _decimalPlaces = 8;

View file

@ -181,7 +181,7 @@ class NodeOptionsSheet extends ConsumerWidget {
case Coin.stellar:
case Coin.stellarTestnet:
throw UnimplementedError();
//TODO: check network/node
//TODO: check network/node
}
if (testPassed) {