Skip to content

chore: regenerate freezed files and update dependencies#197

Merged
CharlVS merged 1 commit intodevfrom
chore/update-freezed-and-deps-20250818-231812
Aug 18, 2025
Merged

chore: regenerate freezed files and update dependencies#197
CharlVS merged 1 commit intodevfrom
chore/update-freezed-and-deps-20250818-231812

Conversation

@CharlVS
Copy link
Copy Markdown
Collaborator

@CharlVS CharlVS commented Aug 18, 2025

Automated PR to merge chore/update-freezed-and-deps-20250818-231812 into dev.

See commit for details.

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
Copilot AI review requested due to automatic review settings August 18, 2025 21:18
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Aug 18, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/update-freezed-and-deps-20250818-231812

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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(),}){
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The generated method has inconsistent spacing around function parameters. There should be consistent spacing around the $default parameter and braces.

Suggested change
@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,
}
) {

Copilot uses AI. Check for mistakes.
final _that = this;
switch (_that) {
case _TrezorUserActionData() when $default != null:
return $default(_that);case _:
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Missing line break between return statement and case statement. This impacts code readability.

Suggested change
return $default(_that);case _:
return $default(_that);
case _:

Copilot uses AI. Check for mistakes.
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 _:
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Missing line breaks between return statements and case statements throughout the generated pattern-matching methods. This impacts code readability.

Suggested change
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 _:

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

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

@CharlVS CharlVS merged commit 060d75e into dev Aug 18, 2025
7 of 8 checks passed
@CharlVS CharlVS deleted the chore/update-freezed-and-deps-20250818-231812 branch August 18, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants