Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -196,7 +196,9 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {

case Coin.nano:
case Coin.banano:
//TODO: check network/node
case Coin.stellar:
throw UnimplementedError();
//TODO: check network/node
}

if (showFlushBar && mounted) {
Expand DownExpand Up@@ -736,6 +738,7 @@ class _NodeFormState extends ConsumerState<NodeForm> {
case Coin.nano:
case Coin.banano:
case Coin.eCash:
case Coin.stellar:
return false;

case Coin.ethereum:
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -172,7 +172,9 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {

case Coin.nano:
case Coin.banano:
//TODO: check network/node
case Coin.stellar:
throw UnimplementedError();
//TODO: check network/node
}

if (testPassed) {
Expand Down
10 changes: 10 additions & 0 deletions lib/services/coins/coin_service.dart
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@ import 'package:stackwallet/services/coins/monero/monero_wallet.dart';
import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart';
import 'package:stackwallet/services/coins/nano/nano_wallet.dart';
import 'package:stackwallet/services/coins/particl/particl_wallet.dart';
import 'package:stackwallet/services/coins/stellar/stellar_wallet.dart';
import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart';
import 'package:stackwallet/services/transaction_notification_tracker.dart';
import 'package:stackwallet/utilities/amount/amount.dart';
Expand DownExpand Up@@ -218,6 +219,15 @@ abstract class CoinServiceAPI {
cachedClient: cachedClient,
tracker: tracker);

case Coin.stellar:
return StellarWallet(
walletId: walletId,
walletName: walletName,
coin: coin,
secureStore: secureStorageInterface,
tracker: tracker,
);

case Coin.wownero:
return WowneroWallet(
walletId: walletId,
Expand Down
Loading