mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
fix: missing coin cases
This commit is contained in:
parent
b92fb5b547
commit
117007180e
7 changed files with 46 additions and 10 deletions
|
@ -186,12 +186,17 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Coin.ethereum:
|
case Coin.ethereum:
|
||||||
|
// TODO fix this
|
||||||
// final client = Web3Client(
|
// final client = Web3Client(
|
||||||
// "https://mainnet.infura.io/v3/22677300bf774e49a458b73313ee56ba",
|
// "https://mainnet.infura.io/v3/22677300bf774e49a458b73313ee56ba",
|
||||||
// Client());
|
// Client());
|
||||||
try {
|
try {
|
||||||
// await client.getSyncStatus();
|
// await client.getSyncStatus();
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
|
|
||||||
|
case Coin.nano:
|
||||||
|
case Coin.banano:
|
||||||
|
//TODO: check network/node
|
||||||
}
|
}
|
||||||
|
|
||||||
if (showFlushBar && mounted) {
|
if (showFlushBar && mounted) {
|
||||||
|
|
|
@ -169,6 +169,10 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
|
||||||
testPassed = false;
|
testPassed = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Coin.nano:
|
||||||
|
case Coin.banano:
|
||||||
|
//TODO: check network/node
|
||||||
}
|
}
|
||||||
|
|
||||||
if (testPassed) {
|
if (testPassed) {
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:isar/isar.dart';
|
import 'package:isar/isar.dart';
|
||||||
import 'package:nanodart/nanodart.dart';
|
import 'package:nanodart/nanodart.dart';
|
||||||
import 'package:http/http.dart' as http;
|
|
||||||
|
|
||||||
import 'package:stackwallet/models/balance.dart';
|
import 'package:stackwallet/models/balance.dart';
|
||||||
import 'package:stackwallet/models/isar/models/blockchain_data/transaction.dart';
|
import 'package:stackwallet/models/isar/models/isar_models.dart';
|
||||||
import 'package:stackwallet/models/isar/models/blockchain_data/utxo.dart';
|
|
||||||
import 'package:stackwallet/models/paymint/fee_object_model.dart';
|
import 'package:stackwallet/models/paymint/fee_object_model.dart';
|
||||||
import 'package:stackwallet/services/coins/coin_service.dart';
|
import 'package:stackwallet/services/coins/coin_service.dart';
|
||||||
import 'package:stackwallet/services/event_bus/events/global/wallet_sync_status_changed_event.dart';
|
import 'package:stackwallet/services/event_bus/events/global/wallet_sync_status_changed_event.dart';
|
||||||
|
@ -16,12 +15,10 @@ import 'package:stackwallet/services/mixins/wallet_cache.dart';
|
||||||
import 'package:stackwallet/services/mixins/wallet_db.dart';
|
import 'package:stackwallet/services/mixins/wallet_db.dart';
|
||||||
import 'package:stackwallet/utilities/amount/amount.dart';
|
import 'package:stackwallet/utilities/amount/amount.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/log_level_enum.dart';
|
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
import '../../../db/isar/main_db.dart';
|
import '../../../db/isar/main_db.dart';
|
||||||
import '../../../models/isar/models/blockchain_data/address.dart';
|
|
||||||
import '../../../models/node_model.dart';
|
import '../../../models/node_model.dart';
|
||||||
import '../../../utilities/default_nodes.dart';
|
import '../../../utilities/default_nodes.dart';
|
||||||
import '../../../utilities/flutter_secure_storage_interface.dart';
|
import '../../../utilities/flutter_secure_storage_interface.dart';
|
||||||
|
@ -29,10 +26,6 @@ import '../../../utilities/prefs.dart';
|
||||||
import '../../node_service.dart';
|
import '../../node_service.dart';
|
||||||
import '../../transaction_notification_tracker.dart';
|
import '../../transaction_notification_tracker.dart';
|
||||||
|
|
||||||
import 'dart:async';
|
|
||||||
|
|
||||||
import 'package:stackwallet/models/isar/models/isar_models.dart';
|
|
||||||
|
|
||||||
const int MINIMUM_CONFIRMATIONS = 1;
|
const int MINIMUM_CONFIRMATIONS = 1;
|
||||||
const String DEFAULT_REPRESENTATIVE =
|
const String DEFAULT_REPRESENTATIVE =
|
||||||
"ban_1ka1ium4pfue3uxtntqsrib8mumxgazsjf58gidh1xeo5te3whsq8z476goo";
|
"ban_1ka1ium4pfue3uxtntqsrib8mumxgazsjf58gidh1xeo5te3whsq8z476goo";
|
||||||
|
@ -511,6 +504,7 @@ class BananoWallet extends CoinServiceAPI
|
||||||
inputs: [],
|
inputs: [],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
nonce: 0,
|
nonce: 0,
|
||||||
|
numberOfMessages: null,
|
||||||
);
|
);
|
||||||
|
|
||||||
Address address = Address(
|
Address address = Address(
|
||||||
|
|
|
@ -61,6 +61,7 @@ enum AmountUnit {
|
||||||
return AmountUnit.values.sublist(0, 7);
|
return AmountUnit.values.sublist(0, 7);
|
||||||
|
|
||||||
case Coin.nano:
|
case Coin.nano:
|
||||||
|
case Coin.banano:
|
||||||
return AmountUnit.values;
|
return AmountUnit.values;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,6 +191,10 @@ class _NodeCardState extends ConsumerState<NodeCard> {
|
||||||
testPassed = false;
|
testPassed = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Coin.nano:
|
||||||
|
case Coin.banano:
|
||||||
|
//TODO: check network/node
|
||||||
}
|
}
|
||||||
|
|
||||||
if (testPassed) {
|
if (testPassed) {
|
||||||
|
|
|
@ -174,6 +174,10 @@ class NodeOptionsSheet extends ConsumerWidget {
|
||||||
testPassed = false;
|
testPassed = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Coin.nano:
|
||||||
|
case Coin.banano:
|
||||||
|
//TODO: check network/node
|
||||||
}
|
}
|
||||||
|
|
||||||
if (testPassed) {
|
if (testPassed) {
|
||||||
|
|
24
pubspec.lock
24
pubspec.lock
|
@ -81,6 +81,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.2.4"
|
version: "4.2.4"
|
||||||
|
basic_utils:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: basic_utils
|
||||||
|
sha256: "8815477fcf58499e42326bd858e391442425fa57db9a45e48e15224c62049262"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "5.5.4"
|
||||||
bech32:
|
bech32:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -562,6 +570,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.1.0"
|
||||||
|
fixnum_nanodart:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: fixnum_nanodart
|
||||||
|
sha256: "4b0132d11ecddc0d2ca64b6d7dee6726db432ed02cac1349d7532a08be5c54fc"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.0"
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
|
@ -1061,6 +1077,14 @@ packages:
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.0.1"
|
version: "3.0.1"
|
||||||
|
nanodart:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: nanodart
|
||||||
|
sha256: "4b2f42d60307b54e8cf384d6193a567d07f8efd773858c0d5948246153c13282"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.0.0"
|
||||||
nm:
|
nm:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
Loading…
Reference in a new issue