-
Notifications
You must be signed in to change notification settings - Fork 2
WIP: Migrate to v0.9.0 #14
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR migrates the project from Fedimint v0.8.0 to v0.9.0. The migration includes dependency updates, new required crypto provider initialization, and enhanced gateway selection with automatic fallback support.
Key changes:
- Updated all Fedimint dependencies from v0.8.0 to v0.9.0
- Added crypto provider initialization required for v0.9.0 TLS operations
- Made
gateway_idoptional in invoice and payment requests with automatic gateway selection fallback
Reviewed Changes
Copilot reviewed 5 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/core/mod.rs | Made gateway_id optional in request structs and implemented automatic gateway selection logic with fallback |
| src/bin/main.rs | Added required crypto provider initialization call for v0.9.0 |
| scripts/mprocs-nix-gateway.sh | Removed obsolete script file |
| flake.nix | Updated dependencies: Fedimint to v0.9.0, nixpkgs to unstable, flakebox to specific commit, Rust channel to "latest" |
| flake.lock | Lock file updates for dependency changes |
| V0.9.0_MIGRATION_PLAN.md | Added comprehensive migration plan documentation |
| Cargo.toml | Updated all Fedimint dependency versions from 0.8.0 to 0.9.0 |
| Cargo.lock | Lock file updates for Cargo dependency changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| pub description: String, | ||
| pub expiry_time: Option<u64>, | ||
| pub gateway_id: PublicKey, | ||
| #[serde(default, skip_serializing_if = "Option::is_none")] |
Copilot
AI
Nov 9, 2025
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.
The skip_serializing_if attribute is used here but the struct has #[derive(Debug, Deserialize)] without Serialize. Since this struct is only used for deserialization (incoming requests), skip_serializing_if has no effect and should be removed.
| #[serde(default, skip_serializing_if = "Option::is_none")] | |
| #[serde(default)] |
| pub amount_msat: Option<Amount>, | ||
| pub lnurl_comment: Option<String>, | ||
| pub gateway_id: PublicKey, | ||
| #[serde(default, skip_serializing_if = "Option::is_none")] |
Copilot
AI
Nov 9, 2025
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.
The skip_serializing_if attribute is used here but the struct has #[derive(Debug, Deserialize)] without Serialize. Since this struct is only used for deserialization (incoming requests), skip_serializing_if has no effect and should be removed.
tracks #13