* feat: Automatically detect wallet tokens for EVM chains
* feat: Disable potential tg scam tokens by default
* feat: Add homoglyph normalization to detect spoofing attacks in token symbols
* refactor: Improve scam token detection and apply to automatically fetched EVM tokens
* refactor: Enhance scam detection for automatically detected tokens in evm wallets
* feat: Add fiat check to scam checks on automatically imported token and disable tokens that fail the check
* feat: Add fiat check to scam checks on automatically imported token and disable tokens that fail the check
* feat: Add fiat check to scam checks on automatically imported token and disable tokens that fail the check
* feat: Enable whitelisted tokens with balance when importing wallet tokens
* feat: Add Binance Smart Chain support to wallet types and EVM chain registry
* feat: Add BSC node list and support in wallet type and chain ID mappings
* feat: Add BSC default tokens and update evm utility functions
* feat: Integrate BSC support in node settings and management
* feat: Add BSC support to config scripts and wallet type generation
* feat: Add BSC support to EVM chain ID and switcher
* feat: Extend BSC support in wallet utilities and chain type checks
* feat: Add BSC support to different wallet functions
* feat: Add BSCURI class and implement for uri handling
* feat: Update Android and iOS configurations to support BSC URL schemes
* feat: Add BSC support to different functionalities and settings
* refactor: Update wallet type name from'Binance Smart Chain' to BNB Smart Chain
* feat: Add switcher icon and updates token utils
* Review fixes
* More changes to BSC name, wallet listing and images
* Add more default tokens
* feat: Integrate Jupiter DEX
* feat: Enable internal swaps
* feat: implement Jupiter swap execution api and enhance trade handling
- Added executeSwap method to handle signed swap transactions via the execute endpoint.
- Updated signAndPrepareJupiterSwapTransaction to include request ID and handle swap execution response.
- Modified trade details to use txId instead of id for Jupiter trades.
- Enhanced error handling for swap execution with user-friendly messages.
- Updated sendviewmodel to manage trade state updates after transaction commitment.
* fix: null error after successfully swapping
* fix: Finallyyy fixed the annoying tx history issue for solana dex swaps
* fix: update inputAddress to use toAddress in JupiterExchangeProvider
* feat: enhance transaction handling and token balance updates
- Cut down tx fetch/update time for transactions update after swapping
- Added TransactionFetchResult class to hold parsed transactions and token mints.
- Added pollForTransaction method to handle transaction polling with exponential backoff.
- Conditionally hide the external send button based on provider type.
* feat: add fees to trade object and handle null case
* feat: add Jupiter referral fee and account configuration
---------
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
* feat(zcash): initial commit
- initial work on cw_zcash
- use single .db for everything zcash to speed up sync and scanning
- implement silent autoshielding of non-orchard funds
- use FFI for everything to fetch the data
- add support for passphrase by adding extra word to seed phrase
- enforce lints on CI for cw_zcash directory
- use correct zcash name, and call transparent zcash tZEC
- minor cleanups outsite of cw_zcash
- gitmodules, gitignore
- db debug
- fix broken addressPageType in WalletInfo
- enable debug options in kDebugMode and kProfileMode
* feat: T address rotation (and cache) wip: minor fixes
* wip: shield tx list
* fix fiat amounts fix derrivation of rotation account addresses screen
for zcash block height fix T address shields improvements Amount in
disposable T shields UI improvements
show pending outgoing tx in tx history
* fix null check on passphrase page fix tx showing as pending rename auto
shield txs fixed send all to include fee use rotating address in
addressForExchange wrap all calls of WarpApi.getLatestHeight in try
catch to prevent leaking errors
other minor fixes from notion
* wallet group debug cache sent tx address wallet T address rotation fixes
automatically pick the fee for auto-shield
* fix T address cache deserialization fix autoshield icon fix autoshield
text getCachedDestinationAddress fix send address cache
* address comments from review
* wip: iOS fix
* fix swap
* Allow cakepay payment from zcash wallet
* fix: ios (I'm stupid) fix: reorder addresses to make orchard default
fix: send all balance
* 5.6.6 bump fix: ios apple review add transport error to ignored
exceptions
* fix: leaving dust behind when sweeping all
* Change wallets order
* fix: reflect balance of pending out txs fix: restore height support
* linux support (disabled)
* fix: date picker for zcash on restore screen fix: build script for linux
match WarpApi.warpSync args with upstream
* fix: linter script
* ensure all exchange providers support ZEC (#2802)
* ensure all exchange providers support ZEC
* remove zaddr and tzec currencies and refactor providers
* Update lib/exchange/provider/near_Intents_exchange_provider.dart
* add back old zcash currencies for backward compatibility, thanks Czarek
* minor fix [skip ci]
---------
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
* Update android/app/src/main/AndroidManifestBase.xml [skip ci]
* Update ios/Runner/InfoBase.plist [skip ci]
* fix: remove unused code fix: macos fix: disable on linux and macos
* update build numbers [skip ci]
* Add zcash to birdpay
---------
Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
Co-authored-by: Serhii <borodenko.sv@gmail.com>
* feat(evm): add ChainConfig model and related classes
- Add ChainConfig class for immutable EVM chain configuration
- Add ChainCapabilities class for chain feature flags
- Add FeeType enum and FeeModel class for fee configuration
* feat(evm): add EvmChainRegistry for centralized chain management
- Add singleton EvmChainRegistry class with chain configuration storage
- Initialize with Ethereum, Polygon, Base, and Arbitrum chains
- Add mappings for WalletType, tag, and CAIP-2 to chainId lookups
- Provide lookup methods for chain configurations by various identifiers
- Support for querying available chains and registered chain IDs
* feat(evm): add EVMChainClientFactory and consolidate chain clients
- Create EVMChainClientFactory for creating chain-specific clients based on chainId
- Move all chain clients (EthereumClient, PolygonClient, BaseClient, ArbitrumClient) into cw_evm/lib/clients/ folder
- Refactor EVMChainClient from abstract to concrete class with default implementations
- Add default implementations for fetchTransactions, fetchInternalTransactions, and prepareSignedTransactionForSending
- Update all client classes to use super(chainId: X) constructor pattern
- Factory returns EVMChainClient directly for unregistered chains instead of throwing
- Remove dependencies on cw_ethereum, cw_polygon, cw_base, cw_arbitrum packages from pubspec.yaml
- Consolidate all EVM chain client implementations in one location for easier maintenance
* add ui for evm switcher on eth
* add inputs for evm network list edit switches
* refactor(evm): Make EVMChainWallet concrete and unify transaction classes
- Make EVMChainWallet and EVMChainWalletBase concrete classes (removed abstract)
- Implement all previously abstract methods in EVMChainWallet
- Make EVMChainTransactionInfo and EVMChainTransactionHistory concrete
- Reorganize default tokens into tokens/ folder:
- Refactor EVMChainDefaultTokens to import and use token classes from tokens/ folder
- Move clients to clients/ folder:
- Move evm_chain_formatter.dart to utils
- Update chain-specific transaction history classes to pass walletType to fromJson
- Update old wallet classes (EthereumWallet, PolygonWallet, etc.) to pass walletType
- Maintain compatibility with existing per-chain wallet classes
This refactoring enables the unified EVMChainWallet architecture while maintaining
full backward compatibility with existing per-chain wallet implementations.
* feat(evm): Add chain selection capability to EVMChainWallet
- Add selectedChainId observable field to track currently selected chain
- Add selectChain(chainId) action method to switch between EVM chains
- Add selectedChainConfig computed getter for accessing chain configuration
- Initialize selectedChainId from client.chainId in constructor
- Add _getClientForCurrentChain() helper method for future use
This enables chain switching functionality while maintaining full backward compatibility. The selectedChainId is initialized from the existing client, and all existing methods continue to work unchanged. Future increments will update methods to use selectedChainId internally.
* refactor(evm): Update client immediately on chain selection
- Update selectChain() to immediately create new client for selected chain
- Remove _getClientForCurrentChain() helper method
- Simplify all methods to use _client directly instead of helper calls
- Client is now always in sync with selectedChainId
This improves code simplicity and performance by eliminating repeated
client checks. The client is updated synchronously when selectChain()
is called, ensuring state consistency.
* featr(evm): Add unified evm proxy setup and fix chain initialization
- Add unified Evm proxy
- Add evm.dart to .gitignore for generated proxy
- Add generateEVM() to configure.dart for proxy generation
- Fix selectedChainId to initialize from registry based on walletInfo.type
Ensures selectedChainId always matches wallet type on initialization
and adds unified proxy infrastructure.
* refactor(evm): Update backward compat helpers to use registry via proxy
- Add registry helper methods to unified EVM proxy
- Update all lib/ files to use proxy instead of direct cw_evm imports
- Enforce proxy pattern: no direct imports from cw_evm in main app
- Update configure.dart to include registry methods in generated proxy
Maintains backward compatibility while centralizing chain data access
through the unified proxy pattern.
* feat(evm): Add chain selection UI to dashboard
- Add chain selection methods to DashboardViewModel (isEVMWallet,
availableChains, currentChain, selectChain)
- Add chain dropdown widget to balance page for EVM wallets
- Dropdown shows current chain and allows switching between all
registered EVM chains
- Only visible for EVM-compatible wallets
- Add chain selection methods to EVM proxy (getAllChains,
getCurrentChain, selectChain)
Users can now switch between EVM chains (Ethereum, Polygon, Base,
Arbitrum) directly from the dashboard without creating separate wallets. All chain-related code follows the established proxy pattern.
* feat(evm): Add persistence for selected chain ID
- Add initialChainId parameter to EVMChainWallet constructor
- Save selectedChainId to wallet JSON in toJSON() method
- Load selectedChainId from JSON in open() method
- Handle backward compatibility: wallets without saved chain ID use
wallet type's default chain ID
- Client is created with saved chain ID when opening wallet
Selected chain preference is now persisted across app sessions. Users will see their previously selected chain when reopening wallets.
* chore: Minor cleanup
* refactor(evm): Remove old per-chain packages, consolidate to unified cw_evm
- Delete cw_ethereum, cw_polygon, cw_base, cw_arbitrum packages
- Remove old proxy files (lib/ethereum/, lib/polygon/, lib/base/, lib/arbitrum/)
- Update all view models to use unified evm! proxy
- Move DEuro functionality to cw_evm/lib/deuro/
- Remove dependencies from pubspec.yaml and configure.dart
- Remove walletType parameter from EVM proxy methods
All EVM chains now use unified cw_evm package through single proxy interface. lib/ only depends on cw_evm, simplifying architecture and enabling easy addition of new L2 chains.
BREAKING CHANGE: Old per-chain packages removed
* refactor(evm): Update wallet handling to use unified EVM proxy
- Replace individual chain imports (Ethereum, Polygon, Base, Arbitrum) with a single EVM proxy import.
- Refactor wallet-related methods across various view models to utilize the new evm proxy for various usecases.
This change enhances code maintainability and prepares the codebase for the addition of new EVM chains.
* refactor(evm): Update model generator and enhance EVM classes
- Modify model_generator.sh to remove previous chain folders from the loop.
- Change EVMChainTransactionHistoryBase and EVMChainWalletBase classes to be abstract.
- Update import paths in configure.dart to reflect the new structure of the cw_evm package.
* add evm switcher icons to pubspec_base
* change evm switcher to sliding animation
* formatting fix
* dpi agnostic width
* feat(evm): Enhance chain handling and transaction history management
- Introduce getCurrentChainId function to EVMChainTransactionHistoryBase for dynamic transaction history file naming based on the current chain ID.
- Update EVMChainTransactionInfo to include chainId, ensuring accurate transaction data representation.
- Refactor EVMChainWalletBase to support automatic node connection and transaction history loading upon chain selection.
- Implement saveBackup and restoreWalletFilesFromBackup methods in EVMChainWalletService to manage wallet backups based on wallet type.
- Update various methods across the codebase to accommodate the new chain handling logic, improving overall functionality and user experience.
* chore: Cleanups and updates
* feat: add WalletType.evm and deprecate individual EVM chain types
Add unified WalletType.evm enum value for all EVM-compatible chains.
Deprecate old individual EVM types (ethereum, polygon, base, arbitrum)
with guidance to use WalletType.evm for new code.
Update serialization/deserialization functions to support WalletType.evm:
- serializeToInt() returns 18 for WalletType.evm
- deserializeFromInt() handles case 18
- walletTypeToString() and walletTypeToDisplayName() return 'EVM'
- cryptoCurrencyToWalletType() maps all EVM currencies to WalletType.evm
Old EVM types remain functional for backward compatibility with existing
wallets. This is the foundation for unifying EVM chain management.
* feat: update EVM detection functions to support WalletType.evm
Update all EVM detection and chain helper functions to support the unified WalletType.evm while maintaining backward compatibility with old EVM types.
All functions require chainId parameter when used with WalletType.evm, ensuring proper chain-specific behavior. Old EVM types continue to work without changes for backward compatibility.
* feat: add currency mapping support for unified EVM wallet type
- Update currency mapping to support WalletType.evm with chainId-based currency resolution.
- Override EVMChainWallet.currency getter to use selectedChainId from registry.
- Replace walletTypeToCryptoCurrency calls with wallet.currency in view models.
- Add WalletType.evm cases to switch statements and consolidate EVM transaction list item methods.
- Add explorer URL method to EVM interface
* feat: Update wallet operations with unified WalletType.evm
- Update wallet service to always create new wallets and restores with WalletType.evm, defaulting to Ethereum.
- Preserve old wallet types when opening existing wallets. Update wallet instance creation and opening logic to handle unified EVM type with chainId-based config lookup.
* Add WalletType.evm support across all switch statements
- Update all switch statements and conditionals to include WalletType.evm alongside existing EVM types.
- Add chainId-based node selection support for unified EVM wallets. - Fix redundant code in exchange view model.
- Ensure backward compatibility with old EVM wallet types.
* feat(evm): Implement chainId-based node management for WalletType.evm
- Add chainId-based node storage for unified EVM wallets, enabling separate node preferences per chain.
- Replace unsafe dynamic casts with type-safe getSelectedChainId method. Update all node retrieval and switching logic to support chainId-based selection.
* feat: Update UI components to show unified EVM wallet option
- Filter out old EVM wallet types (ethereum, polygon, base, arbitrum) from wallet creation and restore UI, showing only unified WalletType.evm option.
- Update wallet type generation to include WalletType.evm instead of individual
chain types.
- Update configure.dart to generate WalletType.evm in availableWalletTypes
- Add filtering checks to prevent old EVM types from appearing
* fix: Fix WalletType.evm support and complete remaining edge cases
Add missing WalletType.evm cases to switch statements to resolve compilation
errors. Complete remaining unification items:
- Add WalletType.evm support to node, wallet utils, and view models
- Update EVMChainDefaultTokens and EVMChainUtils to support chainId
- Fix token initialization and priority fee calculations for WalletType.evm
- Update payment view model to handle WalletType.evm with chainId
All identified edge cases from the unification plan are now complete.
* fix: Fix network switching issues for EVM wallets
- Fix null check errors when creating and restoring an EVM wallet
- Fix null check errors for balance getter when switching networks
- Fix fiat amount display for native currencies in transaction history
* refactor: Simplify EVM wallet chain selection in CryptoBalanceWidget
- Removed the old dropdown for chain selection and replaced it with a more integrated EvmSwitcher dialog.
- Updated EvmSwitcher to accept a list of available chains and handle chain selection more efficiently.
- Enhanced EvmSwitcherDataItem to include chainId for better identification of chains.
- Improved the overall UI flow for EVM wallet interactions.
* refactor: Enhance EVM wallet handling and chainId integration
- Simplified chainId checks across various components to ensure consistent handling for WalletType.evm.
- Updated EVMChainDefaultTokens and EVMChainUtils checks to allow all EVM wallets for chainId operations
- Handled backward compatibility for older wallet types in transaction info
* refactor: More enhancement and backward compatibility fixes for EVM Wallet
- Introduced a new method to retrieve cryptocurrency by chainId, improving the handling of WalletType.evm.
- Updated transaction history management to filter transactions based on the current chainId
- Refactored EVMChainTransactionInfo to accept chainId directly
- Modified utility functions in EVMChainUtils and TokenUtilities for better chainId handling
* refactor: Streamline EVM token retrieval and enhance chainId handling
* feat: Introduce comprehensive guide for adding new EVM L2 networks
- Added a detailed documentation file outlining the steps to integrate new EVM-compatible L2 networks into Cake Wallet.
- Included prerequisites, architecture overview, and a step-by-step guide covering chain configuration, native currency addition, default tokens, and node setup.
- Emphasized the unified architecture for EVM chains and backward compatibility considerations.
- Removed the outdated guide on adding new L2 networks to streamline documentation.
* feat: Reposition EVM switcher button on dashboard page
* just adding reminders for the refactoring [skip ci]
* more todos [skip ci]
* feat: enhance wallet functionality with chainId support
- Added chainId to `WalletBase` and updated currency method to use it.
- Modified EvmChainRegistry to initialize registry on call.
- Updated various components to pass chainId where necessary for currency conversions.
- Improved handling of chain IDs in wallet-related view models and UI components for better compatibility with EVM networks.
* fix: remove default chainId fallback in payment confirmation widget
* feat: Adapt anypay to new unified flow WIP
* fix: Issues with handling non evm swaps for anypay
* fixes to flow structure
* Add persistence to hidden chains on switcher
* refactor: simplify equality operator in Erc20Token class
* feat: add excluded arbutrum tokens for chainflip
* chore: Remove print statement [skip ci]
* refactor: dispaly QR image display for evm based on selected chain ID
* feat: enhance EVM wallet compatibility check for raw address input
* chore: Update doc to reflect changes [skip ci]
* feat: Integrate Blink for EVM wallets for anti-sandwich attacks.
- Add toggle in privacy settings to enable/disable
- When enabled, route all evm broadcast rpc calls via Blink
* feat: Integrate Blink for EVM wallets for anti-sandwich attacks.
- Add toggle in privacy settings to enable/disable
- When enabled, route all evm broadcast rpc calls via Blink
* feat: Integrate Blink for EVM wallets for anti-sandwich attacks.
- Add toggle in privacy settings to enable/disable
- When enabled, route all evm broadcast rpc calls via Blink
* feat: Handle same chainId scenario for pasted evm addresses
* feat: Add Blink Setting to Advanced Settings Page
* fix: Handle Blink supported chains
* fix: Fixes to evm swap
* fix: Add fallback for currency fetch
* fix: Add evm to supported list
* fix: Better handle balance errors
* fix: Update token check to use contract address comparison, resolves the usdt/usdt0 issue
* refactor: Simplify checks by cearing all tokens on chain switch, removing unnecessary currency checks
* fix: Simplify checks based from feedback on review
* fix: Exclude arbitrum from tx priority using chainId
* refactor: Handle chains not having transaction priority within refactor
* fix: Unified evm wallet fixes
- Handle switching networks while on tx history page
- Update NFTs when network is switching on listing page
- Fix arbitrum tx priority error on swap screen
- Switch check to display deuro from wallet type to chainId
- Add fallback check for getting token info for evm
- Better error message for max fee per gas less than block base fee error
* refactor: Update wallet checks from type to chainId for EVM compatibility checks
* refactor: Update eth chain utils and remove verified contract criteria in scam detection checks
* refactor: Enhance validation for deuro calls
* fix : Remove unneeded validation check for savings edit
* feat: Hide EVM chain switcher behind feature flag
* refactor: Remove EVM wallet type references and update related logic
* chore: Clean up wallet type references and remove repeated imports
* feat: Add fallback for derivation path and add arbitrum support to app scripts
* fix: NFT popup error
* fix: Transaction details fee regression
* fix: Fixes and improvements
- Add nonce parameter to transaction methods in EVM clients
- Remove brackets for create swaps
- Display contacts for selected wallettype alone
- Remove tx priorty switching for arb
* feat: Enhance Arbitrum support across swap providers
* fix: Add missing secret keys
* fix: display sending currency icon in send from external page
* refactor: Handle arbitrum edgecase for wallet list display image
* fix: Handle more cases of arbitrum image display for contact book
* exploring possible issues with tx history
* chore: switch to printV
* fix: Add an extra check for keys
* fix: Filter out eth spam transaction and modify parsing format
* fix: Handle contract decimals for sending tokens
* fix: Display proper balance error
* Update cw_evm/lib/utils/evm_chain_formatter.dart [skip ci]
---------
Co-authored-by: Robert Malikowski <malikowskirobert@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
- Created strings_pt_BR.arb with complete Brazilian Portuguese translation
- Added pt_BR to language_service.dart (supportedLocales and localeCountryCode)
- Added pt_BR to translation_constants.dart
- All 1172 strings translated to Brazilian Portuguese
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
- Add res/values/strings_zh_TW.arb with Traditional Chinese translations
- Update lib/entities/language_service.dart to include zh_TW locale
- Update tool/utils/translation/translation_constants.dart to include zh-tw
This adds full Traditional Chinese (Taiwan) language support with proper
Taiwan-specific terminology (e.g., 啟用, 新增, 進階設定, 簽帳金融卡, etc.)
All simplified Chinese characters have been converted to traditional Chinese.
* feat: initialize cw_arbitrum package with essential files
- Implement ArbitrumClient for transaction handling
- Add ArbitrumWallet and related classes for wallet management
- Establish transaction history and info classes for Arbitrum transactions
- Add ArbitrumWalletService for wallet operations and management
* feat: Add arbitrum related secrets to workflow
* feat: Add nodes for arbitrum
* feat: Add Arbitrum support to cryptocurrency handling
* refactor: Update Arbitrum currency references from 'ARB' to 'ETH'
* feat: Add Arbitrum support to wallet type and transaction handling
* feat: Add Arbitrum URL schemes to Android and iOS configurations
* feat: Add Arbitrum SVG icons and a WebP image
* feat: Setup Arbitrum proxy
* fix: Add localization
* feat: Integrate Arbitrum support across various configurations and files
- Updated cakewallet.bat to include Arbitrum in app configuration.
- Added Arbitrum node list to pubspec_base.yaml.
- Modified Android, iOS, Linux, and macOS app configuration scripts to support Arbitrum.
- Introduced Arbitrum output path and generation logic in configure.dart.
- Enhanced wallet type and pubspec generation to include Arbitrum.
- Added Arbitrum-related secrets in secret_key.dart.
* feat: Enhance Arbitrum integration with new URI class and updates across various components
- Introduced ArbitrumURI class for handling Arbitrum payment URIs.
- Updated seed validator, wallet creation service, and other components to support Arbitrum.
- Added Arbitrum node handling in default settings migration and node list management.
- Enhanced preferences and settings store to include Arbitrum-specific configurations.
- Updated QR utility and token utilities to accommodate Arbitrum functionalities.
* feat: Add Arbitrum support to various buy providers
- Updated DFXBuyProvider, KryptonimBuyProvider, OnRamperBuyProvider, and RobinhoodBuyProvider to include Arbitrum wallet type and blockchain references.
- Enhanced integration for Arbitrum across multiple components to ensure consistent support.
* feat: Implement Arbitrum support in wallet selection and settings
- Added Arbitrum wallet type handling in common test flows and wallet services.
- Integrated Arbitrum icons in desktop wallet selection and menu widgets.
- Updated privacy settings to include ArbiScan options.
- Enhanced key service to support Arbitrum private and public key retrieval.
* feat: Expand Arbitrum support across various view models and components
- Integrated Arbitrum wallet type handling in advanced privacy settings, transaction details, and wallet management.
- Added Arbitrum-specific methods for transaction and wallet creation, restoration, and fee management.
- Updated dashboard and home settings to accommodate Arbitrum functionalities, including token management and transaction display.
- Enhanced exchange and send view models to support Arbitrum transactions and currency handling.
- Included Arbitrum in wallet address list and privacy settings for improved user experience.
* refactor: Simplify token initialization in Arbitrum wallet service
- Removed the migration flag from the addInitialTokens method in ArbitrumWalletService.
- Updated addInitialTokens method in ArbitrumWallet to handle existing tokens more efficiently.
- Enhanced initial token retrieval logic in DefaultArbitrumErc20Tokens to prioritize iconPath assignment.
- Improved token update logic in BaseWallet for consistency across wallet services.
* chore: Update Dart SDK constraints in pubspec.yaml
* fix: Update file paths for arbitrum assets
* fix: Correct box name formatting in Arbitrum wallet initialization
* Update .github/workflows/pr_test_build_android.yml [skip ci
* Update .github/workflows/pr_test_build_android.yml
* fix: Add missing evm params
* fix: Remove duplicate method declaration
* refactor: simplify isSwapsXyzSendingEVMTokenSwap check
* fix: Update arbitrum configs with sql storage update
* feat: Add estimated fee retrieval for Arbitrum and revamp priority fee handling for EVMChainWallet
* refactor: Update transaction priority handling and estimated fee calculations across EVMChain chains, also remove priority fee levels for Arbitrum
---------
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
* spanish: some necessary, minor rewording for new background sync strings
* en: fix unmetered network typo
* languages: add guarani
Adds strings_gn.arb file.
* fix: remove `,` from beginning and end of file
* tl_constant: add `gn` value
* flags: add guarani (PY) flag
Adds _gn.png_ file.
* languages: add guarani
* localeCountryCode: fix guarani value to 3 letters (grn); making it cohesive with all others
* res/values: replace strings_gn.arb file for appropriate one
* guarani: remove unnecessary `,` at the beginning and end of file
* guarani: fix a lot of syntax errors...
* guarani: remove all remaining trails of Spanish translation; fix all wrongly translated `${}` values back to English
* fix: gn translation
* ci: add ci check for translations
* Update .github/workflows/are_translations_sane.yml
* res/values: adds fixed `strings_gn.arb` file
* res/values: undoes wrong GN=>ES translations on file
* res/values: fix missing `}` for `strings_gn.arb`
* res/values: adds revised `strings_gn.arb` file
* res/values: adds revised `strings_gn.arb` file
* res/values: adds revised `strings_gn.arb` file
---------
Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
* feat: initial hive -> SQLite
Includes migration script and initial work done to
remove dependency on hive generators.
Also contains some refactoring to make sync code
async.
Features new dev screen that lists all SQLite tables
Aspects that need testing:
- backups (from this version, and from previous versions as well)
- wallet loading / wallet list
- almost everything else
- renaming
- deletion
- sorting in wallet list
- wallet groups
- wallet seed/keys
- wallet switching
- wallet creation / restore - all methods
- wallet address page
- hardware wallet connection (and prompts from mall screens)
- contacts
- advanced settings in wallet creation
- derivation paths
- some minor wownero fixes
- base, hardware wallets
* fix: build errors
* fix: Bad state: No element in backup restore
* address comments from review
* fix: HardwareWalletType
* chore: Create Base package template
* chore: Update configuration scripts and dependencies to include 'base' coin support
* chore: Update pubspec.yaml, adjust SDK constraints, and add new dependencies
* feat: Add support for base wallet type and cryptocurrency in related configurations
* feat: Implement BaseWallet and DefaultBaseTokens classes for managing base cryptocurrency transactions
* feat: Add BaseTransactionHistory and BaseTransactionInfo classes for handling base cryptocurrency transaction data
* feat: Implement BaseClient, BaseWalletService, and BaseMnemonicIsIncorrectException
* feat: Setup base proxy for main package and adjust token class name
* feat: Setup initial base node configuration
* feat: Integrate support for base wallet type across various functions and services
* feat: Add base support to exchange and outputs
* feat: Add base wallet type integration to wallet creation and node management
* feat: Add base support to transaction details and transaction list item
* feat: Implement BaseURI class and add base support across wallet creation and keys view models
* feat: Add support for BaseScan preference in settings store
* feat: Integrate Base support into various workflows and documentation
* feat: Addingbase config to windows and secret key support
* feat: Add base support to settings and address handling
* chore: Move walletTypeToCurrency to another file and adjust across codebase
* feat: Add 'basescan_history' string localization
* feat: Remove Cryptocurrency.base, it doesn't have a base currency
* feat: Set eth as native currency
* feat: Enhance Base support across various sending, exchange, transaction details, fees, dashboard and balance
* feat: Integrate Base wallet support in advanced privacy settings and home settings view models
* feat: Add Base wallet support with icon and integration across providers, default settings migration, preferences, wallet connect, settings and token utilities
* feat: Update currency handling to use baseEth for Base wallet integration across various components
* fix: Update default token symbol to ETH in Base wallet transaction model
* refactor: Change default currency references from BASE to ETH across client, transaction info, and wallet components
* feat: Introduce normalizedIconPath for CryptoCurrency to standardize icon retrieval across wallet components
* fix: Include baseEth as a native token in EVMChainClient for currency handling
* chore: Update base_icon.png
* feat: Add more nodes to base_node_list.yml
* refactor: Update wallet icon retrieval to use normalizedIconPath
* chore: Remove unused cases and cleanup impl.
* feat: Add base proxy generation to configure
* refactor: Update base proxy and generation code in configure.dart
* feat: Add missing wallet and mono images
* fix: Wrong image path for pr and add missing base qr image
* feat: Enhance EVMTransactionErrorFeesHandler to parse new insufficient funds error format and calculate transaction fees in ETH and USD
* feat: Add gas price safety buffer for Base chain transactions to improve fee estimation accuracy, also fixes send all not calculating correctly
* Update model_generator.sh [skip ci]
* Update assets/base_node_list.yml [skip ci]
* Update cw_base/lib/default_base_erc20_tokens.dart [skip ci]
* Review fixes
* fixes
---------
Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
* feat: add support for Trezor hardware wallet integration Restore Wallets
* feat: add Trezor hardware wallet support, implement RLP decoding utility, and update transaction signing logic
* feat: add bitcoin trezor signing
* chore: update Trezor Connect dependency to specific commit hash in pubspec_base.yaml
* feat: add trezor support for litecoin
* feat: add colorFilter for device manufacturer icons to align with theme styles
* refactor: optimize Trezor callback handling
* feat: add BitBox and Trezor support for Bitcoin and Litecoin, update transaction signing logic, and improve modularity in hardware wallet services
* refactor: simplify constructor assertions in `BaseBottomSheetWidget` and cleanup Trezor chainId handling logic
* feat: conditionally render device manufacturers based on platform and hide SeedSigner for now
* fix: initial 16KB pages support
all .so dependencies other than reown walletkit (`libuniffi_yttrium.so`) which is a prebuild are 16KB now
* chore: update flutter to 3.29.3
* build: 16KB align go builds
ci: update action to check for 16KB align
[skip ci]
* chore: bump flutter to 3.32.0
* fix: replace prebuilds with built versions for 16KB alignment
fix: walletkit secure storage fix
* Add user ETH and SOL tokens to exchange currency lists
* Update default_spl_tokens.dart
* fix solana token icon issue
* add user currency to Trade and update usage
* add support for user Tron and Polygon tokens in exchange
* removing the providersForCurrentPair method and related logic
* Improve currency search
* prevent crash in EVM wallets for unknown token symbols
* Improve asset lookup in XOSwap provider
* revert token enabled state for tron solana
* Move SPL and Tron token classes to cw_core
* fix updating trades for user tokens
* Improve token matching by including tag comparison
* safer currency parsing across all exchange providers
* Update edit_token_page.dart
* feat: bitcoin view-only
* fix: add UR to cw_bitcoin, fix payjoin issue
* feat: add unsignedPsbt to PendingBitcoinTransaction
* wip
* feat: xpub restore from bitcoin URI QR
* feat(dev): debug UR codes [skip ci]
* fix: master fingerprint default in create bitcoin transaction
* fix: handle empty private key in bitcoin transaction building
* fix: show success dialog after btc ur transaction
* fix(ui): remove SP from UI in view only wallet
* fix(cw_bitcoin): tx sending on non-airgap
* fix(cw_bitcoin): disable all non-segwit addresses
* feat(ur): support BBQR for coldcard qr
* flutter 3.27.0 -> 3.27.4
* feat: raw xpub qr support for coldcard q
* fix: update ledger_bitcoin
fix: update switching button
* fix: restore button not showing up after scanning
* feat: commit raw tx (from coldcard Q)
* feat: legacy crypto-psbt support for seed signer
* chore: address comments from review
* fix(cw_bitcoin): disable sp and payjoin for cupcake
* feat: enable DNSSEC BIP353 in PSBT (#2397)
* feat: enable DNSSEC BIP353 in PSBT
* chore: put bitcoin view only behind a featureflag
* fix: update Monero wallet to work with new internal URQR return format
* feat: add "Restore from Cupcake App" option with localized strings
* feat: enable DNSSEC BIP353 in PSBT using dnssec-prover (#2401)
* fix: use dnssec-prover
chore: bump ndk to r28c
* fix: validate DNSSEC proof before updating the UI
* fix: rename button to copy debug info to not hide actions on URQR widget
---------
Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
* feat: enhance dEuro Savings UI and functionality with fiat support and tooltips
* feat: add "Reinvest Interest" feature and improve dEuro Savings functionality
- Implemented the "Reinvest Interest" feature for dEuro Savings.
- Updated localized strings for multiple languages.
- Enhanced error handling for insufficient gas fees.
- Incorporated loading state and tooltips in Savings Card and Interest Card.
- Improved UI responsiveness and button state management.
* feat: localize deuro tooltips
* feat: enhance dEuro Savings with reinvestment feature and localized strings
- Added "Reinvest Interest" functionality for dEuro Savings.
- Updated localized strings across multiple languages.
- Improved modal bottom sheet handling for savings add/remove operations.
- Enhanced tooltips and UI responsiveness.
* feat: improve dEuro Savings page with info chips and localized strings
* Update res/values/strings_de.arb
* fix: update dEuro action type reset in transaction handling
* feat(token_validation): Improve flow for adding new tokens across wallets
This change:
- Implements check to see if a token is already added, preventing duplicates
- Triggers dialog warning if its a duplicate token
- Takes EVM Chains contract adddress case-insensitivity when making checks for potential scams.
* refactor(token_validation): Modify token management flow
This change:
- Removes duplicate token check during token addition in EVMChainWalletBase.
- Introduces a flag to indicate if a token is being edited
- Adjusts token addition validation to bypass checks when editing an existing token.
* Update lib/src/screens/dashboard/edit_token_page.dart
---------
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
* Initial Payjoin
* Initial Payjoin
* More payjoin stuff
* Minor fixes
* Minor fixes
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Fix minor bug causes by data inconsistency in the btc utxos
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Initial Payjoin
* Initial Payjoin
* More payjoin stuff
* Minor fixes
* Minor fixes
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Fix minor bug causes by data inconsistency in the btc utxos
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Minor cleanup
* Fix Rebase issues
* Move PJ Receiver to isolate
* Add Payjoin Setting
* Payjoin Sender are now isolated
* Added Payjoin sessions to tx overview. Fix Fee issue with payjoin
* Clean up code
* Fix taproot for payjoin
* Fix CI Errors
* Add Payjoin UI elements and details page
* Add Payjoin UI elements and details page
* Fix Translations
* feat: Detect Payjoin URIs in pasted text and show to the User sending Payjoin
* feat: rename pjUri to payjoinURI for more code clarity
* Update res/values/strings_pl.arb
Co-authored-by: cyan <cyjan@mrcyjanek.net>
* Update cw_bitcoin/lib/payjoin/manager.dart
Co-authored-by: cyan <cyjan@mrcyjanek.net>
* Update cw_bitcoin/lib/payjoin/manager.dart
Co-authored-by: cyan <cyjan@mrcyjanek.net>
* feat: Disable Payjoin per default
* feat: Disable Payjoin fully if disabled or no Inputs available
* feat: Resume Payjoin if app comes back to foreground
* chore: Revert overly aggressive code formats
* feat: show correct Payjoin amount for receivers
* feat: Improved payjoin status
* feat: Show payjoin errors on payjoin details screen
* deps: update flutter to 3.27.4
* feat: Revert localisations
* bug: Remove duplicate transaction id on payjoin details
* style: remove double await in payjoin sender
* refactor(cw_bitcoin): Refactor method signatures and convert constructor to factory
* refactor(cw_bitcoin): Refactor wallet service and PSBT signer for cleaner code
Removed unnecessary `CakeHive` dependency and refactored `BitcoinWallet` initialization to use `payjoinSessionSource`. Improved code readability in `PsbtSigner` by reformatting lines and simplifying constructor methods for `UtxoWithPrivateKey`.
* fix: Resume Payjoin Sessions and load PJUri after sleep
* feat: Add "Copy Payjoin URL button" to receive screen
* fix: Add "Payjoin enabled"-Box below QR Code on the receive screen
* fix: Set payjoin_enabled color to black independent of the theme
* refactor: Payjoin session management and cleanup unused code.
---------
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
Co-authored-by: cyan <cyjan@mrcyjanek.net>
* feat: add exodus style bip39 to monero legacy seed
* feat: restore monero wallet from bip39 and add test
* bug: fix wrong naming in CI
* feat: add monero bip39 UI flow
* fix: monero.dart generation
* fix: skip monero_wallet_service tests till CI is fixed
* ci: copy monero_libwallet2_api_c.so to /usr/lib for testing
ci: reduce timeout for cw_monero tests
* fix: monero wallet creation credentials default to bip39 if mnemonic are set
* fix: do not skip monero wallets services test
* fix: Include non bip39 monero wallets on Wallet Group
* fix: null pointer stemming from missing language selector if seed is selected
* fix: Fixes to Bip39 Creation and restore
- Do not restore from 0 for fresh bip39 wallet
- disallow restoring bip39 wallet without date or height
* fix: Fixes to Bip39 restore
- Refresh height is now getting set correctly
- Add new create monero wallet tests
- Add seed-language English for Bip39 Monero wallets
- Fix seed-type naming
* feat (cw_monero): Store monero wallet after bip39 creation
* feat (cw_monero): remove prints from monero_wallet_service_test.dart
* fix: exception during seed language autodetect
* feat (cw_monero): Add support for passphrases on bip39 seeds
* feat (cw_monero): Add support for passphrases on bip39 seeds
* fix: seed language selection for recovering bip39 wallets
* style: improve readability of isLegacySeedOnly in wallet_keys_view_model.dart
* feat: hide monero seed type selector from advanced settings when creating a child wallet
* fix(cw_monero): use named arguments for bip39_seed tests
---------
Co-authored-by: cyan <cyjan@mrcyjanek.net>
* - enabled development options in CI builds.
- Implemented caching for account retrieval.
- refactor transaction handling in `dashboard_view_model.dart` to improve efficiency and reduce unnecessary updates in xmr.
- `DevMoneroCallProfilerPage`, for profiling performance of xmr,wow,zano wallet calls.
* use FeatureFlag.hasDevOptions
* prevent crashes in monero_c by using mutexes properly
improve performance of _transactionDisposer
remove unnecessary checks
* remove logging, bring back simplified logic
* update _transactionDisposer on length and confirmation of first and last transaction
* address comments from review
* don't throw unhandled exceptions in unawaited async code
* use cached transaction list in getAllSubaddresses, fix usage of txHistoryMutex
* [DNM] fix: crashes when opening wallet, performance issue when syncing and update dependencies
* Revert "use cached transaction list in getAllSubaddresses, fix usage of txHistoryMutex"
This reverts commit 4c4c33ac6a47603e970a6c8d940e90204525b241.
* Revert "[DNM] fix: crashes when opening wallet, performance issue when syncing and update dependencies"
This reverts commit d7603445ad6ae76d76bf179c34728ce242c8c610.
* Revert "use cached transaction list in getAllSubaddresses, fix usage of txHistoryMutex"
This reverts commit 4c4c33ac6a47603e970a6c8d940e90204525b241.
* update shared_preferences
* improve state management performance by not rendering multiple changes in transaction screen on a single frame
* fix wallet switching
* implement v3 backup system
- Add new BackupServiceV3 with chunked backup support and checksums
- Implement json-based metadata in backup system
- Instead of binary file export a .zip file that user can open and
see that it is a cake backup
(should also prevent 3rd party software from corrupting binary
data inside of the file, in case it doesn't checksum will fail,
and user will know for sure that backup got corrupted)
- Update flutter to 3.27.4 to use archive ^4.x.x (it offers in memory
archive operations)
* fix wallets not getting restored properly
* prevent out of memory errors on files that are way too big during restore
* Update lib/view_model/backup_view_model.dart [skip ci]
* Update lib/core/backup_service.dart [skip ci]
* Update lib/core/backup_service.dart
---------
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
* decred: Add decred. (#1322)
* multi: Add initial decred screens. (#1165)
Use a mock libwallet for now.
* cw_decred: add libdcrwallet dependency and link library for android, ios and macos (#1240)
* change cw_decred from package to plugin
* add libdcrwallet dependency and link library for android, ios and macos
* remove spvwallet, make some libdcrwallet fns async, light refactor
* libdcrwallet: use json payload returns
* use specific libwallet commit hash
* decred: fix Rename wallet.
---------
Co-authored-by: JoeGruff <joegruffins@gmail.com>
* decred: Add sync.
* decred: Add send transaction.
* decred: Fix fee estimation.
* decred: List transactions.
* decred: Add rescan.
* decred: Sign message.
* decred: Add new addr and addrs.
* decred: Add change wallet pass.
* decred: Add restore from seed.
* decred: Add watching only wallets.
* decred: Enable mainnet.
* decred: Allow using blank node address.
This allows a persistent peer to be unset, falling back to decred
seeders.
* decred: Rescan from wallet birthday.
* add and update macos build scripts, update build readme, gitignore macos project.pbxproj
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
* multi: hide decred rescan page if it's not ready
- move hasRescan method to WalletBase and implement for decred
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
* cw_decred: fix bug where decred wallets are not loaded after app restart
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
* add buy and sell for decred via onramp
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
* bug-fix: account for other send outputs that are part of the same tx
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
* decred: Return address with no peers.
* decred: Update pubspec.
* decred: Add verify message.
* upgrade hive_generator dep in cw_decred
* decred: Clean up code.
---------
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
Co-authored-by: Wisdom Arerosuoghene <wisdom.arerosuoghene@gmail.com>
Co-authored-by: Philemon Ukane <ukanephilemon@gmail.com>
* fix extracted addresses not used
fix conflicts with main
* remove print [skip ci]
* minor formatting
* fix initial migration version
* add build decred script to workflow
* install go before build decred
fix switch cases
* trial 2 to fix decred build
* re-install go
* revert build script change
* refactor/clean nodes functions
* Fix address book issue
Fix send ALL (to be continued with the fees point)
* Fix transactions display issues
Add missing file
* Fix unconfirmed balance not displayed
Change Wallet order
Minor cleanup
* Fix workflow
* Fix workflow
* Fix workflow
* test
* hardcode path for now
* fix + cleanup decred build script to work on mac and linux
* Update decred build script
* Run actions on pull requests, extract commit message
* run after checkout
* add safe directory
* Get commit message from base.sha instead of last commit
* base -> head
* Do not merge main branch into pr
* [skip slack] [run tests] clone by sha
* Proper name for decred library in the build script
* Throw an error when ANDROID_HOME or ANDROID_NDK_VERSION is missing
* Fix conflicts with main
* minor code enhancement
* decred: Add used address history. (#1941)
* decred: Update pubspec.
* decred testnet
* decred: Add used address history.
* decred: Remove default node list.
* populate transaction history before sync begins
* decred: Add some awaits.
* decred: Fix send all.
* decred: Add clang export to build script.
* decred: Update logo colors.
* cleanup cw_decred.dart
* make decred wallet addresses selectable in receive page
* decred: Always set default addr when used.
* decred: Add back default node list.
* decred: Allow creating addresses manually.
---------
Co-authored-by: Wisdom Arerosuoghene <wisdom.arerosuoghene@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
* minor fixes and cleanup
* minor fix, feel free to test now
* - Fix transaction details
- Fix Nodes
- Add processing sync status
* Add decred info card
* push missing file
* Add missing text for decred info card
* minor: change docs link [skip ci]
* decred: Update derivation info. (#2013)
* decred: Update derivation info.
* decred: Allow unsynced unused addresses.
* decred: Update dcrwallet dep to 4.3.0.
* Merge main and fix conflicts
* Merge main and fix conflicts
* decred: Fix background sync panic. (#2080)
* decred: Run libwallet in isolate. (#2077)
* decred: Fix contact save inquiry. (#2083)
Also fix tx time and the fee shown on pending transactions.
* Disable send button in view only decred wallets
* - Fix frozen coins
- Add URI support
- Fix fees in tx details
- Handle empty coins send
- Handle wallets in address book
* Merge main
* remove print [skip ci]
* Fix restore from QR
* minor improvement for QR restore
* Remove Haven Wallet
* Remove haven scripts
* minor fixes [skip ci]
* decred: Get slip44 addrs before sync completes. (#2092)
* - Fix loading wallet more than one time
- Fix minor UI issue
* fix merge issue
* fix merge issue
---------
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
Co-authored-by: JoeGruffins <34998433+JoeGruffins@users.noreply.github.com>
Co-authored-by: Wisdom Arerosuoghene <wisdom.arerosuoghene@gmail.com>
Co-authored-by: Philemon Ukane <ukanephilemon@gmail.com>
Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>