-
Notifications
You must be signed in to change notification settings - Fork 0
chore: bump solana deps #43
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
4f7a425
11f841a
ebd5f72
eb26e81
31c1b6c
134fdee
2a96aee
1f2a137
44699db
88fb1af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -29,19 +29,19 @@ impl SerializablePubkey { | |||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| impl anchor_lang::AnchorDeserialize for SerializablePubkey { | ||||||||||||||||||
| impl BorshDeserialize for SerializablePubkey { | ||||||||||||||||||
| fn deserialize(buf: &mut &[u8]) -> Result<Self, std::io::Error> { | ||||||||||||||||||
| <SolanaPubkey as BorshDeserialize>::deserialize(buf).map(SerializablePubkey) | ||||||||||||||||||
| use borsh1::BorshDeserialize as BorshDeserialize1; | ||||||||||||||||||
| <SolanaPubkey as BorshDeserialize1>::deserialize(buf).map(SerializablePubkey) | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, std::io::Error> { | ||||||||||||||||||
| let mut buffer = [0u8; 32]; // SolanaPubkey is 32 bytes | ||||||||||||||||||
| reader.read_exact(&mut buffer)?; | ||||||||||||||||||
| Ok(SerializablePubkey(SolanaPubkey::new_from_array(buffer))) | ||||||||||||||||||
| use borsh1::BorshDeserialize as BorshDeserialize1; | ||||||||||||||||||
| <SolanaPubkey as BorshDeserialize1>::deserialize_reader(reader).map(SerializablePubkey) | ||||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| impl anchor_lang::AnchorSerialize for SerializablePubkey { | ||||||||||||||||||
| impl borsh::BorshSerialize for SerializablePubkey { | ||||||||||||||||||
| fn serialize<W: std::io::Write>(&self, writer: &mut W) -> Result<(), std::io::Error> { | ||||||||||||||||||
| writer.write_all(&self.0.to_bytes()) | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+44
to
47
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.
- writer.write_all(&self.0.to_bytes())
+ std::io::Write::write_all(writer, &self.0.to_bytes())📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
|
|
@@ -109,7 +109,7 @@ impl From<[u8; 32]> for SerializablePubkey { | |||||||||||||||||
|
|
||||||||||||||||||
| impl From<LightPubkey> for SerializablePubkey { | ||||||||||||||||||
| fn from(pubkey: LightPubkey) -> Self { | ||||||||||||||||||
| SerializablePubkey(pubkey.into()) | ||||||||||||||||||
| SerializablePubkey(SolanaPubkey::from(pubkey.to_bytes())) | ||||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
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.
🧩 Analysis chain
Verify Yellowstone gRPC client/proto v10.1.1 API compatibility.
Yellowstone gRPC dependencies have jumped from 1.15.0/1.14.0 to 10.1.1—a major version increase. This suggests either:
Confirm that your gRPC client code, subscription handlers, and message parsing are compatible with the v10.1.1 API surface. Check the release notes or changelog for breaking changes.
🏁 Script executed:
Length of output: 653
🏁 Script executed:
Length of output: 4503
🏁 Script executed:
Length of output: 2119
🌐 Web query:
💡 Result:
I couldn't find a published changelog entry that lists breaking changes specifically for Yellowstone gRPC v10.1.1. The project changelog (shows up through v10.0.1 and earlier breaking-change notes) and the crate page for v10.1.1 are here for reference:
If you want, I can:
Which would you prefer?
🌐 Web query:
💡 Result:
I couldn't find a v10.1.1 release for rpcpool/yellowstone-grpc on GitHub. The repository's releases page lists tags up to v10.0.1 (and v9.1.0 as the latest shown). [1][2]
Sources:
🌐 Web query:
💡 Result:
I couldn't find published docs for version 10.1.1, but the nearest available API docs and sources are:
If you specifically need 10.1.1 API docs, do you want me to: (A) check crates.io for that exact version and try to open its docs, or (B) fetch the 10.1.1 crate sources from crates.io/GitHub so I can generate or inspect the API surface?
Length of output: 308
🌐 Web query:
💡 Result:
Yes — version 10.1.1 of yellowstone-grpc-client is published (docs/metadata available). [1][2]
Sources:
🌐 Web query:
💡 Result:
There is no yellowstone-grpc-proto v10.1.1 on crates.io — the latest published crate version is 10.1.0 (as shown on docs.rs). [1][2]
Sources:
🏁 Script executed:
Length of output: 106
🌐 Web query:
💡 Result:
I can't find any record that yellowstone-grpc-proto v10.1.1 exists or was yanked. The published crate documentation and index show v10.1.0 as the latest release of yellowstone-grpc-proto. [1][2]
Sources:
Fix Cargo.toml: yellowstone-grpc-proto v10.1.1 does not exist on crates.io.
yellowstone-grpc-proto v10.1.1 is not published on crates.io; the latest version is 10.1.0. While yellowstone-grpc-client v10.1.1 exists, the proto dependency in Cargo.toml (line 129) is unresolvable. Update
yellowstone-grpc-proto = "10.1.1"to"10.1.0"to match the available crate version, or verify if a different proto version is intended.🤖 Prompt for AI Agents