-
Notifications
You must be signed in to change notification settings - Fork 10
feat: build out key-wallet ffi and improve ci #108
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3c35153
key wallet ffi
QuantumExplorer 7f8f19d
tests for key-wallet
QuantumExplorer 90e0442
added tests
QuantumExplorer ea9bbe1
more fixes
QuantumExplorer e2c33ff
more fixes
QuantumExplorer 97e6b59
work
QuantumExplorer 461baeb
clean up
QuantumExplorer 678a120
clean up
QuantumExplorer c90f618
clean up
QuantumExplorer b49ec4a
more fixes
QuantumExplorer c743035
clean up
QuantumExplorer 6a62a2d
fixes
QuantumExplorer 34154d4
fixes
QuantumExplorer 34427ee
fixes
QuantumExplorer 36d7bc8
a lot of fixes
QuantumExplorer 25de03f
more work
QuantumExplorer 43d87b4
more work
QuantumExplorer ba9c28f
more work
QuantumExplorer 2e3064d
more work
QuantumExplorer 2d0039e
more work
QuantumExplorer 6cf2223
more work
QuantumExplorer bdd57dc
more work
QuantumExplorer 352fe89
more work
QuantumExplorer e9871fd
more work
QuantumExplorer 51c06da
more work
QuantumExplorer 7f9799f
more work
QuantumExplorer 6e3b0b9
more work
QuantumExplorer 07bcdb4
small improvements
QuantumExplorer 88ccbe2
small improvements
QuantumExplorer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "strict_check_crates": [ | ||
| "key-wallet", | ||
| "key-wallet-manager", | ||
| "key-wallet-ffi" | ||
| ], | ||
| "excluded_crates": [ | ||
| "dash", | ||
| "dash-network", | ||
| "dash-network-ffi", | ||
| "hashes", | ||
| "internals", | ||
| "fuzz", | ||
| "rpc-client", | ||
| "rpc-json", | ||
| "rpc-integration-test", | ||
| "dash-spv", | ||
| "dash-spv-ffi", | ||
| "test-utils" | ||
| ], | ||
| "comment": "Crates in strict_check_crates will fail CI on any warnings or clippy issues. Add or remove crates as needed." | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| fn main() { | ||
| uniffi::generate_scaffolding("src/dash_network.udl").unwrap(); | ||
| // Build script for dash-network-ffi | ||
| // Standard FFI compilation without uniffi | ||
| } |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
💡 Verification agent
🧩 Analysis chain
Verify crate names map 1:1 to package.name across the workspace; consider adding a schema_version and sorting lists
Run this script from repo root to verify names and detect overlaps/missing entries:
If you want, I can wire a small CI step to consume this JSON and feed cargo clippy invocations accordingly.
Apply this diff to add a schema_version and alphabetize entries:
{ + "schema_version": 1, "strict_check_crates": [ - "key-wallet", - "key-wallet-manager", - "key-wallet-ffi" + "key-wallet", + "key-wallet-ffi", + "key-wallet-manager" ], "excluded_crates": [ - "dash", - "dash-network", - "dash-network-ffi", - "hashes", - "internals", - "fuzz", - "rpc-client", - "rpc-json", - "rpc-integration-test", - "dash-spv", - "dash-spv-ffi", - "test-utils" + "dash", + "dash-network", + "dash-network-ffi", + "dash-spv", + "dash-spv-ffi", + "fuzz", + "hashes", + "internals", + "rpc-client", + "rpc-integration-test", + "rpc-json", + "test-utils" ], "comment": "Crates in strict_check_crates will fail CI on any warnings or clippy issues. Add or remove crates as needed." }🏁 Script executed:
Length of output: 1318
Update .github/strict-checks.json to match actual crates and wire into CI
strict_check_cratesexactly matchpackage.namein theirCargo.toml(no missing crates).excluded_crateslist contains eight names that no longer exist in the workspace and must be removed or renamed:strict_check_cratesorexcluded_crates. Decide whether each should be strictly checked or explicitly excluded:.github/workflows/*.ymlreference this config, so CI will not actually enforce these rules. Add a step to load and use this JSON in your lint/test pipeline.Proposed patch—adds a
schema_version, removes obsolete names, alphabetizes lists, and highlights where to wire into CI:.github/strict-checks.json { + "schema_version": 1, "strict_check_crates": [ - "key-wallet", - "key-wallet-ffi", - "key-wallet-manager" + "key-wallet", + "key-wallet-ffi", + "key-wallet-manager" ], "excluded_crates": [ - "dash", - "dash-network", - "dash-network-ffi", - "dash-spv", - "dash-spv-ffi", - "fuzz", - "hashes", - "internals", - "rpc-client", - "rpc-integration-test", - "rpc-json", - "test-utils" + "dash-network", + "dash-network-ffi", + "dash-spv", + "dash-spv-ffi" ], "comment": "Crates in strict_check_crates will fail CI on any warnings or clippy issues. Add or remove crates as needed." }• Remove the eight missing/ex-obsolete crate names from
excluded_crates.• Decide and add the eleven “unlisted” crates under the appropriate list.
• Alphabetize both arrays to reduce churn.
• Add a CI job (e.g. in
.github/workflows/ci.yml) that reads this JSON and feeds its lists into yourcargo clippy/cargo testmatrix.📝 Committable suggestion
🤖 Prompt for AI Agents