-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bump version #90
Conversation
WalkthroughThis pull request involves a version bump in the Changes
Possibly related PRs
Suggested reviewers
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/kos/src/chains/mod.rs
(4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: format
🔇 Additional comments (5)
packages/kos/src/chains/mod.rs (5)
393-393
: Verify the impact of disabling Substrate-based chains.Support for REEF, SDN (Shiden), and ASTR (Astar) networks has been disabled. These changes affect multiple Substrate-based chains.
Consider:
- Documenting the rationale behind disabling these networks
- Providing alternative solutions for affected users
- Implementing a feature flag system for gradual deprecation
Also applies to: 400-400, 407-407
✅ Verification successful
Substrate-based chains properly disabled with minimal impact ✓
The changes are properly implemented with all affected chains (REEF, SDN, ASTR) consistently marked as unsupported while maintaining their definitions. The approach minimizes breaking changes by preserving chain configurations and IDs.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check for any remaining references to these chains # that might need to be updated or removed echo "Searching for Substrate chain references..." rg -l "REEF|SDN|ASTR|Shiden|Astar" --type rust echo "Checking for potential breaking changes in tests..." rg -l "test.*REEF|test.*SDN|test.*ASTR|test.*Shiden|test.*Astar" --type rustLength of output: 405
Script:
#!/bin/bash # Check the actual implementation and context echo "=== Chain Implementation Context ===" rg -A 5 -B 5 "(REEF|SDN|ASTR|Shiden|Astar)" packages/kos/src/chains/mod.rs packages/kos/src/chains/constants.rs echo -e "\n=== Related Chain Configurations ===" ast-grep --pattern 'Chain::new($$$)' packages/kos/src/chains/mod.rs echo -e "\n=== Constants and Types ===" rg "type .*(Chain|Network)" packages/kos/src/chains/ rg "const .*(CHAIN|NETWORK)" packages/kos/src/chains/Length of output: 3795
372-372
: Verify the impact of disabling Polkadot ecosystem chains.The support for Polkadot (DOT) and Kusama (KSM) networks has been disabled. This is a significant change as these are major networks in the Polkadot ecosystem.
Consider:
- Documenting the reason for deprecation
- Adding a migration guide for users
- Implementing a deprecation notice mechanism
Also applies to: 379-379
✅ Verification successful
Disabling Polkadot ecosystem chains is properly handled
The change to mark DOT and KSM chains as unsupported is well-contained and follows good deprecation practices:
- Chain identifiers are preserved in constants.rs
- Reference implementations remain in test cases
- No critical API dependencies are affected
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check for any remaining references to DOT/KSM functionality # that might need to be updated or removed echo "Searching for DOT/KSM references in code..." rg -l "DOT|KSM|Polkadot|Kusama" --type rust echo "Checking for potential breaking changes in tests..." rg -l "test.*DOT|test.*KSM|test.*Polkadot|test.*Kusama" --type rustLength of output: 434
Script:
#!/bin/bash # Check the content of files with DOT/KSM references echo "=== Content of substrate/mod.rs ===" rg -A 5 -B 5 "DOT|KSM|Polkadot|Kusama" packages/kos/src/chains/substrate/mod.rs echo -e "\n=== Content of constants.rs ===" rg -A 5 -B 5 "DOT|KSM|Polkadot|Kusama" packages/kos/src/chains/constants.rs echo -e "\n=== Checking for public API usage ===" ast-grep --pattern 'pub fn $FUNC($$$) { $$$ $DOT $$$ }'Length of output: 2638
575-575
: Verify the impact of disabling Avail chain.Support for the Avail network has been disabled.
Consider documenting the deprecation and providing alternative solutions for affected users.
✅ Verification successful
Avail chain deprecation is properly implemented ✅
The change safely disables the Avail chain through the supported flag without removing any code, allowing for potential future re-enablement. No additional changes are required in the codebase.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check for any remaining references to Avail # that might need to be updated or removed echo "Searching for Avail references..." rg -l "AVAIL|Avail" --type rust echo "Checking for potential breaking changes in tests..." rg -l "test.*AVAIL|test.*Avail" --type rustLength of output: 425
Script:
#!/bin/bash # Check the context of Avail usage in the identified files echo "=== Checking proto.rs ===" rg -C 3 "AVAIL|Avail" packages/kos/src/protos/generated/klv/proto.rs echo -e "\n=== Checking substrate/mod.rs ===" rg -C 3 "AVAIL|Avail" packages/kos/src/chains/substrate/mod.rs echo -e "\n=== Checking chains/mod.rs ===" rg -C 3 "AVAIL|Avail" packages/kos/src/chains/mod.rs echo -e "\n=== Checking constants.rs ===" rg -C 3 "AVAIL|Avail" packages/kos/src/chains/constants.rs echo -e "\n=== Checking for feature flags ===" rg -C 3 "feature.*avail" packages/kos/Cargo.tomlLength of output: 2573
414-414
: Verify the impact of disabling Centrifuge chain.Support for the Centrifuge (CFG) network has been disabled.
Consider documenting the deprecation timeline and providing migration guidance for affected users.
✅ Verification successful
Centrifuge chain disabled correctly with minimal impact ✅
The change is properly implemented and follows the existing pattern for disabling chains. The impact is contained to the chain registration with no breaking changes in tests or dependencies. No additional cleanup is needed.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check for any remaining references to Centrifuge # that might need to be updated or removed echo "Searching for Centrifuge references..." rg -l "CFG|Centrifuge" --type rust echo "Checking for potential breaking changes in tests..." rg -l "test.*CFG|test.*Centrifuge" --type rustLength of output: 353
Script:
#!/bin/bash # Check the content of the files with Centrifuge references echo "=== Content of mod.rs with Centrifuge context ===" rg -C 5 "CFG|Centrifuge" packages/kos/src/chains/mod.rs echo -e "\n=== Content of constants.rs with Centrifuge context ===" rg -C 5 "CFG|Centrifuge" packages/kos/src/chains/constants.rs echo -e "\n=== Checking for documentation files ===" fd "README|CHANGELOG|MIGRATION" --type fLength of output: 1245
428-428
: Verify the impact of disabling KILT and Altair chains.Support for KILT and Altair networks has been disabled.
Consider:
- Documenting the deprecation in release notes
- Providing migration paths for affected users
- Implementing a warning system for deprecated chains
Also applies to: 435-435
✅ Verification successful
Proper implementation of chain support flags
The changes to disable KILT and Altair chains are properly implemented:
- Follows the established pattern of using support flags
- Consistent with other disabled Substrate-based chains
- No breaking changes in the public API
- Clean implementation that maintains backward compatibility
The implementation is safe and doesn't require additional changes in the codebase.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check for any remaining references to these chains # that might need to be updated or removed echo "Searching for KILT and Altair references..." rg -l "KILT|ALTAIR|Altair" --type rust echo "Checking for potential breaking changes in tests..." rg -l "test.*KILT|test.*ALTAIR|test.*Altair" --type rustLength of output: 377
Script:
#!/bin/bash # Examine the actual references to KILT and Altair echo "=== Checking references in mod.rs ===" rg -B 2 -A 2 "KILT|Altair" packages/kos/src/chains/mod.rs echo -e "\n=== Checking references in constants.rs ===" rg -B 2 -A 2 "KILT|Altair" packages/kos/src/chains/constants.rs echo -e "\n=== Looking for chain configuration patterns ===" rg "Chain|Network|Config" packages/kos/src/chains/mod.rs -A 2 -B 2Length of output: 18028
Summary by CodeRabbit
kos
dependency version from 0.2.2 to 0.2.3ChainRegistry
.