chore: regenerate freezed files and update dependencies#197
Conversation
This commit updates generated freezed files and adjusts dependencies across packages. Updated files include: - packages/komodo_defi_local_auth/lib/src/auth/auth_state.freezed.dart - packages/komodo_defi_local_auth/lib/src/trezor/trezor_initialization_state.freezed.dart - packages/komodo_defi_rpc_methods/lib/src/common_structures/activation/activation_params/activation_params.freezed.dart - packages/komodo_defi_rpc_methods/pubspec.yaml - packages/komodo_defi_sdk/example/pubspec_overrides.yaml - packages/komodo_defi_types/lib/src/assets/asset_cache_key.freezed.dart - packages/komodo_defi_types/lib/src/public_key/confirm_address_details.freezed.dart - packages/komodo_defi_types/lib/src/public_key/new_address_state.freezed.dart - packages/komodo_defi_types/lib/src/public_key/new_address_state.g.dart - packages/komodo_defi_types/lib/src/transactions/fee_info.freezed.dart - packages/komodo_defi_types/lib/src/trezor/trezor_device_info.freezed.dart - packages/komodo_defi_types/lib/src/trezor/trezor_user_action_data.freezed.dart - packages/komodo_defi_types/pubspec.yaml
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Pull Request Overview
This PR updates the Dart SDK version constraint from 3.7.0 to 3.8.0 and regenerates freezed files to align with the latest freezed package version, adding new pattern-matching extension methods and improving code formatting.
- Updates Dart SDK version constraints across packages
- Regenerates freezed files with new pattern-matching extensions
- Removes manual pattern-matching extension in favor of generated code
- Standardizes generated file headers and formatting
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/komodo_defi_types/pubspec.yaml | Updates SDK constraint to 3.8.0 |
| packages/komodo_defi_rpc_methods/pubspec.yaml | Updates SDK constraint to 3.8.0 |
| packages/komodo_defi_sdk/example/pubspec_overrides.yaml | Updates melos dependency override order |
| Multiple .freezed.dart files | Regenerated with new pattern-matching extensions and updated headers |
| packages/komodo_defi_types/lib/src/transactions/fee_info.dart | Removes manual pattern-matching extension |
| packages/komodo_defi_types/lib/src/public_key/new_address_state.g.dart | Updates generated JSON serialization code formatting |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| /// } | ||
| /// ``` | ||
|
|
||
| @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _TrezorUserActionData value)? $default,{required TResult orElse(),}){ |
There was a problem hiding this comment.
[nitpick] The generated method has inconsistent spacing around function parameters. There should be consistent spacing around the $default parameter and braces.
| @optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _TrezorUserActionData value)? $default,{required TResult orElse(),}){ | |
| @optionalTypeArgs TResult maybeMap<TResult extends Object?>( | |
| TResult Function(_TrezorUserActionData value)? $default, { | |
| required TResult orElse, | |
| } | |
| ) { |
| final _that = this; | ||
| switch (_that) { | ||
| case _TrezorUserActionData() when $default != null: | ||
| return $default(_that);case _: |
There was a problem hiding this comment.
[nitpick] Missing line break between return statement and case statement. This impacts code readability.
| return $default(_that);case _: | |
| return $default(_that); | |
| case _: |
| return ethGasEip1559(_that);case FeeInfoQrc20Gas() when qrc20Gas != null: | ||
| return qrc20Gas(_that);case FeeInfoCosmosGas() when cosmosGas != null: | ||
| return cosmosGas(_that);case FeeInfoTendermint() when tendermint != null: | ||
| return tendermint(_that);case _: |
There was a problem hiding this comment.
[nitpick] Missing line breaks between return statements and case statements throughout the generated pattern-matching methods. This impacts code readability.
| return tendermint(_that);case _: | |
| return utxoFixed(_that); | |
| case FeeInfoUtxoPerKbyte() when utxoPerKbyte != null: | |
| return utxoPerKbyte(_that); | |
| case FeeInfoEthGas() when ethGas != null: | |
| return ethGas(_that); | |
| case FeeInfoEthGasEip1559() when ethGasEip1559 != null: | |
| return ethGasEip1559(_that); | |
| case FeeInfoQrc20Gas() when qrc20Gas != null: | |
| return qrc20Gas(_that); | |
| case FeeInfoCosmosGas() when cosmosGas != null: | |
| return cosmosGas(_that); | |
| case FeeInfoTendermint() when tendermint != null: | |
| return tendermint(_that); | |
| case _: |
|
Visit the preview URL for this PR (updated for commit 9267451): https://komodo-defi-sdk--pr197-chore-update-freezed-17o8rzsj.web.app (expires Mon, 25 Aug 2025 21:22:45 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 7f9f5ac39928f333b6e8fcefb7138575e24ed347 |
Automated PR to merge chore/update-freezed-and-deps-20250818-231812 into dev.
See commit for details.