-
Notifications
You must be signed in to change notification settings - Fork 569
feat: update code to work with new solana patch #7677
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -301,42 +301,50 @@ version = "=0.5.2" | |
|
|
||
| [patch.crates-io.solana-account-decoder] | ||
| git = "https://github.com/hyperlane-xyz/solana.git" | ||
| tag = "hyperlane-1.14.13-2025-05-21" | ||
| branch = "jeff/encoded-tx-2" | ||
| # tag = "hyperlane-1.14.13-2025-05-21" | ||
| version = "=1.14.13" | ||
|
|
||
| [patch.crates-io.solana-clap-utils] | ||
| git = "https://github.com/hyperlane-xyz/solana.git" | ||
| tag = "hyperlane-1.14.13-2025-05-21" | ||
| branch = "jeff/encoded-tx-2" | ||
| # tag = "hyperlane-1.14.13-2025-05-21" | ||
| version = "=1.14.13" | ||
|
|
||
| [patch.crates-io.solana-cli-config] | ||
| git = "https://github.com/hyperlane-xyz/solana.git" | ||
| tag = "hyperlane-1.14.13-2025-05-21" | ||
| branch = "jeff/encoded-tx-2" | ||
| # tag = "hyperlane-1.14.13-2025-05-21" | ||
| version = "=1.14.13" | ||
|
|
||
| [patch.crates-io.solana-client] | ||
| git = "https://github.com/hyperlane-xyz/solana.git" | ||
| tag = "hyperlane-1.14.13-2025-05-21" | ||
| branch = "jeff/encoded-tx-2" | ||
| # tag = "hyperlane-1.14.13-2025-05-21" | ||
| version = "=1.14.13" | ||
|
|
||
| [patch.crates-io.solana-program] | ||
| git = "https://github.com/hyperlane-xyz/solana.git" | ||
| tag = "hyperlane-1.14.13-2025-05-21" | ||
| branch = "jeff/encoded-tx-2" | ||
| # tag = "hyperlane-1.14.13-2025-05-21" | ||
| version = "=1.14.13" | ||
|
|
||
| [patch.crates-io.solana-sdk] | ||
| git = "https://github.com/hyperlane-xyz/solana.git" | ||
| tag = "hyperlane-1.14.13-2025-05-21" | ||
| branch = "jeff/encoded-tx-2" | ||
| # tag = "hyperlane-1.14.13-2025-05-21" | ||
| version = "=1.14.13" | ||
|
|
||
| [patch.crates-io.solana-transaction-status] | ||
| git = "https://github.com/hyperlane-xyz/solana.git" | ||
| tag = "hyperlane-1.14.13-2025-05-21" | ||
| branch = "jeff/encoded-tx-2" | ||
| # tag = "hyperlane-1.14.13-2025-05-21" | ||
| version = "=1.14.13" | ||
|
|
||
| [patch.crates-io.solana-zk-token-sdk] | ||
| git = "https://github.com/hyperlane-xyz/solana.git" | ||
| tag = "hyperlane-1.14.13-2025-05-21" | ||
| branch = "jeff/encoded-tx-2" | ||
| # tag = "hyperlane-1.14.13-2025-05-21" | ||
| version = "=1.14.13" | ||
|
Comment on lines
302
to
348
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Verify the Solana fork branch exists
curl -s "https://api.github.com/repos/hyperlane-xyz/solana/branches/jeff/encoded-tx-2" | jq -r '.name, .commit.sha, .commit.commit.message' 2>/dev/null | head -20Repository: hyperlane-xyz/hyperlane-monorepo Length of output: 193 🏁 Script executed: # Search for BorshIoError in the rust codebase to understand the changes
rg "BorshIoError" rust/ -A 2 -B 2 | head -100Repository: hyperlane-xyz/hyperlane-monorepo Length of output: 7768 🏁 Script executed: # Look at Cargo.toml to understand the full context of Solana patches
cat -n rust/main/Cargo.toml | sed -n '295,355p'Repository: hyperlane-xyz/hyperlane-monorepo Length of output: 2253 🏁 Script executed: # Search for any references to upstream merge plans, PR discussions, or future plans
rg -i "upstream|merge.*branch|pr.*1\.14|solana.*upstream" rust/ --type md --type txt -B 2 -A 2Repository: hyperlane-xyz/hyperlane-monorepo Length of output: 58 🏁 Script executed: # Check if there are any comments or TODOs related to this branch or API change
rg -i "jeff/encoded|BorshError.*plan|TODO.*solana|FIXME.*upstream" rust/ -B 1 -A 1Repository: hyperlane-xyz/hyperlane-monorepo Length of output: 2537 🏁 Script executed: # Look at the main Cargo.toml comment section to see if there's any explanation
head -350 rust/main/Cargo.toml | tail -100Repository: hyperlane-xyz/hyperlane-monorepo Length of output: 2895 The Solana branch check passes, but there's no documented plan for upstream. Good news: the The The gap: there's no documented upstream merge strategy anywhere in the codebase. No TODOs, no comments about when or if this gets upstreamed to Solana proper. The commented-out tag ( 🤖 Prompt for AI Agents |
||
|
|
||
| [patch.crates-io.spl-associated-token-account] | ||
|
|
||
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.
style: Consider using a tagged release instead of
branch = "jeff/encoded-tx-2"once the changes are stable. Branch references can change unexpectedly and make builds non-reproducible.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI