Skip to content

Commit 5bf7570

Browse files
authored
proto: add from_slot (#477)
1 parent c6ff97c commit 5bf7570

File tree

16 files changed

+212
-52
lines changed

16 files changed

+212
-52
lines changed

CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,29 @@ The minor version will be incremented upon a breaking change and the patch versi
1212

1313
### Fixes
1414

15+
### Features
16+
17+
### Breaking
18+
19+
## 2024-12-13
20+
21+
- yellowstone-grpc-client-simple-4.2.0
22+
- yellowstone-grpc-client-4.1.0
23+
- yellowstone-grpc-geyser-4.2.0
24+
- yellowstone-grpc-proto-4.1.0
25+
26+
### Fixes
27+
1528
- nodejs: fix connector for custom port ([#488](https://github.com/rpcpool/yellowstone-grpc/pull/488))
1629
- nodejs: fix connector for host/hostname ([#491](https://github.com/rpcpool/yellowstone-grpc/pull/491))
1730

1831
### Features
1932

2033
- proto: add tonic feature ([#474](https://github.com/rpcpool/yellowstone-grpc/pull/474))
34+
- proto: add `from_slot` ([#477](https://github.com/rpcpool/yellowstone-grpc/pull/477))
2135
- proto: add field `created_at` to update message ([#479](https://github.com/rpcpool/yellowstone-grpc/pull/479))
2236
- nodejs: add parse err function ([#483](https://github.com/rpcpool/yellowstone-grpc/pull/483))
2337

24-
### Breaking
25-
2638
## 2024-12-01
2739

2840
- yellowstone-grpc-client-simple-4.1.0

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
"examples/rust", # 4.1.0
5-
"yellowstone-grpc-client", # 4.0.0
6-
"yellowstone-grpc-geyser", # 4.1.0
7-
"yellowstone-grpc-proto", # 4.0.0
4+
"examples/rust", # 4.2.0
5+
"yellowstone-grpc-client", # 4.1.0
6+
"yellowstone-grpc-geyser", # 4.2.0
7+
"yellowstone-grpc-proto", # 4.1.0
88
]
99
exclude = [
1010
"yellowstone-grpc-client-nodejs/solana-encoding-wasm", # 3.0.0
@@ -69,8 +69,8 @@ tonic = "0.12.1"
6969
tonic-build = "0.12.1"
7070
tonic-health = "0.12.1"
7171
vergen = "9.0.0"
72-
yellowstone-grpc-client = { path = "yellowstone-grpc-client", version = "4.0.0" }
73-
yellowstone-grpc-proto = { path = "yellowstone-grpc-proto", version = "4.0.0", default-features = false }
72+
yellowstone-grpc-client = { path = "yellowstone-grpc-client", version = "4.1.0" }
73+
yellowstone-grpc-proto = { path = "yellowstone-grpc-proto", version = "4.1.0", default-features = false }
7474

7575
[workspace.lints.clippy]
7676
clone_on_ref_ptr = "deny"

examples/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yellowstone-grpc-client-simple"
3-
version = "4.1.0"
3+
version = "4.2.0"
44
authors = { workspace = true }
55
edition = { workspace = true }
66
homepage = { workspace = true }

examples/rust/src/bin/client.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,10 @@ struct ActionSubscribe {
329329
#[clap(long)]
330330
blocks_meta: bool,
331331

332+
/// Re-send message from slot
333+
#[clap(long)]
334+
from_slot: Option<u64>,
335+
332336
/// Send ping in subscribe request
333337
#[clap(long)]
334338
ping: Option<i32>,
@@ -522,6 +526,7 @@ impl Action {
522526
commitment: commitment.map(|x| x as i32),
523527
accounts_data_slice,
524528
ping,
529+
from_slot: args.from_slot,
525530
},
526531
args.resub.unwrap_or(0),
527532
args.stats,
@@ -887,6 +892,7 @@ async fn geyser_subscribe(
887892
commitment: None,
888893
accounts_data_slice: Vec::default(),
889894
ping: None,
895+
from_slot: None,
890896
})
891897
.await
892898
.map_err(GeyserGrpcClientError::SubscribeSendError)?;

examples/rust/src/bin/tx-blocktime.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ async fn main() -> anyhow::Result<()> {
111111
commitment: Some(commitment as i32),
112112
accounts_data_slice: vec![],
113113
ping: None,
114+
from_slot: None,
114115
})
115116
.await?;
116117

yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

yellowstone-grpc-client-nodejs/solana-encoding-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ crate-type = ["cdylib"]
1616
serde_json = "1.0.86"
1717
solana-transaction-status = "~2.1.1"
1818
wasm-bindgen = "0.2.95"
19-
yellowstone-grpc-proto = { path = "../../yellowstone-grpc-proto", version = "4.0.0", default-features = false, features = ["convert"] }
19+
yellowstone-grpc-proto = { path = "../../yellowstone-grpc-proto", version = "4.1.0", default-features = false, features = ["convert"] }
2020

2121
[workspace.lints.clippy]
2222
clone_on_ref_ptr = "deny"

yellowstone-grpc-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yellowstone-grpc-client"
3-
version = "4.0.0"
3+
version = "4.1.0"
44
authors = { workspace = true }
55
edition = { workspace = true }
66
description = "Yellowstone gRPC Geyser Simple Client"

yellowstone-grpc-geyser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yellowstone-grpc-geyser"
3-
version = "4.1.0"
3+
version = "4.2.0"
44
authors = { workspace = true }
55
edition = { workspace = true }
66
description = "Yellowstone gRPC Geyser Plugin"

0 commit comments

Comments
 (0)