diff --git a/assets/nano_node_list.yml b/assets/nano_node_list.yml index 691ef37b0..e7476c94f 100644 --- a/assets/nano_node_list.yml +++ b/assets/nano_node_list.yml @@ -1,2 +1,4 @@ - - uri: rpc.nano.to \ No newline at end of file + uri: rpc.nano.to:443 +- + uri: node.perish.co:9076 \ No newline at end of file diff --git a/assets/nano_pow_server_list.yml b/assets/nano_pow_server_list.yml new file mode 100644 index 000000000..22aed967b --- /dev/null +++ b/assets/nano_pow_server_list.yml @@ -0,0 +1,6 @@ +- + uri: rpc.nano.to:443 +- + uri: workers.perish.co +- + uri: worker.nanoriver.cc:443 \ No newline at end of file diff --git a/cw_core/lib/crypto_currency.dart b/cw_core/lib/crypto_currency.dart index 2f7cabe60..f6ffcdc8b 100644 --- a/cw_core/lib/crypto_currency.dart +++ b/cw_core/lib/crypto_currency.dart @@ -120,7 +120,7 @@ class CryptoCurrency extends EnumerableItem with Serializable implemen static const eos = CryptoCurrency(title: 'EOS', fullName: 'EOS', raw: 7, name: 'eos', iconPath: 'assets/images/eos_icon.png'); static const eth = CryptoCurrency(title: 'ETH', fullName: 'Ethereum', raw: 8, name: 'eth', iconPath: 'assets/images/eth_icon.png'); static const ltc = CryptoCurrency(title: 'LTC', fullName: 'Litecoin', raw: 9, name: 'ltc', iconPath: 'assets/images/litecoin-ltc_icon.png'); - static const nano = CryptoCurrency(title: 'XNO', raw: 10, name: 'nano', iconPath: 'assets/images/nano_icon.png'); + static const nano = CryptoCurrency(title: 'XNO', raw: 10, fullName: 'Nano', name: 'xno', iconPath: 'assets/images/nano_icon.png'); static const trx = CryptoCurrency(title: 'TRX', fullName: 'TRON', raw: 11, name: 'trx', iconPath: 'assets/images/trx_icon.png'); static const usdt = CryptoCurrency(title: 'USDT', tag: 'OMNI', fullName: 'USDT Tether', raw: 12, name: 'usdt', iconPath: 'assets/images/usdt_icon.png'); static const usdterc20 = CryptoCurrency(title: 'USDT', tag: 'ETH', fullName: 'USDT Tether', raw: 13, name: 'usdterc20', iconPath: 'assets/images/usdterc20_icon.png'); diff --git a/cw_nano/lib/nano_account_list.dart b/cw_nano/lib/nano_account_list.dart index 6ee673cb4..e6a28f69a 100644 --- a/cw_nano/lib/nano_account_list.dart +++ b/cw_nano/lib/nano_account_list.dart @@ -2,7 +2,6 @@ import 'package:cw_core/monero_amount_format.dart'; import 'package:mobx/mobx.dart'; import 'package:cw_core/account.dart'; import 'package:cw_nano/api/account_list.dart' as account_list; -import 'package:cw_nano/api/wallet.dart' as monero_wallet; part 'nano_account_list.g.dart'; @@ -45,12 +44,11 @@ abstract class NanoAccountListBase with Store { List getAll() => account_list.getAllAccount().map((accountRow) { final accountIndex = accountRow.getId(); - final balance = monero_wallet.getFullBalance(accountIndex: accountIndex); return Account( id: accountRow.getId(), label: accountRow.getLabel(), - balance: moneroAmountToString(amount: balance), + balance: "01", ); }).toList(); diff --git a/lib/di.dart b/lib/di.dart index f24950171..207ccf974 100644 --- a/lib/di.dart +++ b/lib/di.dart @@ -212,6 +212,7 @@ final getIt = GetIt.instance; var _isSetupFinished = false; late Box _walletInfoSource; late Box _nodeSource; +late Box _powNodeSource; late Box _contactSource; late Box _tradesSource; late Box