-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
lib/datasource/remote/api/http_repo/seeds_chain_names.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const String _chainTelos = 'telos'; | ||
const String _chainTelosTest = 'telosTestnet'; | ||
const String _chainEos = 'eos'; | ||
const String _chainEosTest = 'eosTestnet'; | ||
|
||
enum SeedsChains { | ||
telos, | ||
telosTestnet, | ||
eos, | ||
eosTestnet, | ||
} | ||
|
||
extension SeedsChainsExtension on SeedsChains { | ||
String get value { | ||
switch (this) { | ||
case SeedsChains.telos: | ||
return _chainTelos; | ||
case SeedsChains.telosTestnet: | ||
return _chainTelosTest; | ||
case SeedsChains.eos: | ||
return _chainEos; | ||
case SeedsChains.eosTestnet: | ||
return _chainEosTest; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters