-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Adaptive address prefix (#9)
This branch introduces support for a default bech32 address prefix (hrp) queried from the network, and thus specific to each network. Until now, default prefix was hardcoded ('kira'), which was removed in this branch. The new model for the default bech32 prefix was already introduced on Adaptive Default Token feature, which has analogous purpose and was initially intended to implement together. But due to work organization purposes, the Adaptive Bech32 Address Prefix is introduced separately. List of changes: - deleted wallet_details.dart which contained hardcoded default bech32 prefix - created getter "bech32Address" in wallet_address.dart, which extracts the hrp data from QueryTokenAliases or QueryValidators - created "WalletAddress.fromBech32ValidatorsPage()" to enable viewing addresses in ValidatorsPage when not signed in. Also, changed "bech32Hrp" field to optional, because it is needed only to store the bech32 hrp value in case of using this constructor. - cleaned up wallet_address.dart - removed not used and invalid methods related to hex. They were created based on wrong assumptions 2 years ago. - modified tab list controllers, so that each of them requires Wallet Address and uses its getter to get default prefix from Network Module. This change solved bug with broken queries (if network changed, but address in request contained old prefix). - changed "valoperWalletAddress" to String value "valkey", because wallet should only represent signed in user, and valkey prefix should be fetched from network - changed order of tests in identity_registrar_cubit_test.dart to properly simulate the process after implementing My Account access block - cannot get IR data without getting bech32 prefix from network
- Loading branch information
Showing
47 changed files
with
377 additions
and
394 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
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
Oops, something went wrong.