-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cat-voices): wallet link service (#984)
* refactor(cat-voices): migrate apple-mobile-web-app-capable to mobile-web-app-capable * chore: add missing catalyst compression config * chore: add word to dictionary * feat: add loader to submit transaction button * feat: add transaction config repository * feat: add registration transaction builder * feat: submit registration * feat: update cryptocurrency formatter * feat: handle submit tx error * feat: move to next step after submitting a registration * feat: improve error handling for submitting a transaction * chore: typo * chore: review feedback * feat: localized exception * refactor: RegistrationService * feat: registration exception * chore: resolve merge conflicts * docs: document registration service * fix: add missing exception * fix: remove wrong export * fix: convert dependencies to lazy singletons to fix dependency resolution * style: reformat * refactor: inject catalyst cardano * refactor: convert to sealed class * refactor: error handling
- Loading branch information
Showing
18 changed files
with
276 additions
and
76 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
35 changes: 35 additions & 0 deletions
35
...ackages/catalyst_voices_models/lib/src/registration/exception/registration_exception.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,35 @@ | ||
import 'package:equatable/equatable.dart'; | ||
|
||
/// A base exception thrown during user registration. | ||
sealed class RegistrationException with EquatableMixin implements Exception { | ||
const RegistrationException(); | ||
|
||
@override | ||
List<Object?> get props => []; | ||
} | ||
|
||
/// An exception thrown when attempting to register | ||
/// but the user doesn't have enough Ada to cover the transaction fee. | ||
final class RegistrationInsufficientBalanceException | ||
extends RegistrationException { | ||
const RegistrationInsufficientBalanceException(); | ||
|
||
@override | ||
String toString() => 'RegistrationInsufficientBalanceException'; | ||
} | ||
|
||
/// An exception thrown when attempting to register and the transaction fails. | ||
final class RegistrationTransactionException extends RegistrationException { | ||
const RegistrationTransactionException(); | ||
|
||
@override | ||
String toString() => 'RegistrationTransactionException'; | ||
} | ||
|
||
/// An exception thrown when attempting to register and the transaction fails. | ||
final class RegistrationUnknownException extends RegistrationException { | ||
const RegistrationUnknownException(); | ||
|
||
@override | ||
String toString() => 'RegistrationUnknownException'; | ||
} |
1 change: 1 addition & 0 deletions
1
catalyst_voices/packages/catalyst_voices_models/lib/src/registration/registration.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
2 changes: 1 addition & 1 deletion
2
...kages/catalyst_voices_repositories/lib/src/transaction/transaction_config_repository.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
3 changes: 2 additions & 1 deletion
3
catalyst_voices/packages/catalyst_voices_services/lib/src/catalyst_voices_services.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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
export 'downloader/downloader.dart'; | ||
export 'registration/registration_service.dart'; | ||
export 'registration/registration_transaction_builder.dart'; | ||
export 'storage/dummy_auth_storage.dart'; | ||
export 'storage/secure_storage.dart'; | ||
export 'storage/storage.dart'; | ||
export 'storage/vault/lock_factor.dart'; | ||
export 'storage/vault/lock_factor_codec.dart' show LockFactorCodec; | ||
export 'storage/vault/secure_storage_vault.dart'; | ||
export 'storage/vault/vault.dart'; | ||
export 'transaction/registration_transaction_builder.dart'; |
Oops, something went wrong.