Skip to content

Commit

Permalink
add nonempty_txn_signature to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Jan 21, 2025
1 parent 9ce9135 commit 0901508
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 8 deletions.
32 changes: 26 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ repository = "https://github.com/blockworks-foundation/geyser-grpc-connector"

[dependencies]
# note: as timewriting there are versions 3.0.0 and 4.0.0; we will come back to that later
yellowstone-grpc-client = { version = "2.0.0", git = "https://github.com/rpcpool/yellowstone-grpc.git", tag = "v2.0.0+solana.2.0.16" }
yellowstone-grpc-proto = { version = "2.0.0", git = "https://github.com/rpcpool/yellowstone-grpc.git", tag = "v2.0.0+solana.2.0.16" }
yellowstone-grpc-client = { version = "3.0.0", git = "https://github.com/rpcpool/yellowstone-grpc.git", tag = "v3.0.0+solana.2.0.16" }
yellowstone-grpc-proto = { version = "3.0.0", git = "https://github.com/rpcpool/yellowstone-grpc.git", tag = "v3.0.0+solana.2.0.16" }

# required for CommitmentConfig
solana-sdk = "~2.0.16"
Expand Down
3 changes: 3 additions & 0 deletions examples/bench_geyser_grpc_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ pub fn token_accounts() -> SubscribeRequest {
.map(|pubkey| pubkey.to_string())
.collect(),
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand All @@ -432,6 +433,7 @@ pub fn all_accounts_and_blocksmeta() -> SubscribeRequest {
account: vec![],
owner: vec![],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand Down Expand Up @@ -462,6 +464,7 @@ pub fn all_accounts() -> SubscribeRequest {
account: vec![],
owner: vec![],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand Down
2 changes: 2 additions & 0 deletions examples/dump_slots_stream_samples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ fn all_slots_and_processed_accounts_together() -> SubscribeRequest {
account: vec![],
owner: vec![RAYDIUM_AMM_PUBKEY.to_string()],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand All @@ -252,6 +253,7 @@ fn accounts_at_level(commitment_level: CommitmentLevel) -> SubscribeRequest {
account: vec![],
owner: vec![RAYDIUM_AMM_PUBKEY.to_string()],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand Down
2 changes: 2 additions & 0 deletions examples/stream_token_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ pub fn token_accounts() -> SubscribeRequest {
owner: vec![],
// spl_token_ids().iter().map(|pubkey| pubkey.to_string()).collect(),
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand Down Expand Up @@ -306,6 +307,7 @@ pub fn token_accounts_finalized() -> SubscribeRequest {
.map(|pubkey| pubkey.to_string())
.collect(),
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand Down
6 changes: 6 additions & 0 deletions examples/subscribe_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ pub fn token_accounts() -> SubscribeRequest {
.map(|pubkey| pubkey.to_string())
.collect(),
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand All @@ -179,6 +180,7 @@ pub fn all_accounts_and_blocksmeta() -> SubscribeRequest {
account: vec![],
owner: vec![],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand Down Expand Up @@ -209,6 +211,7 @@ pub fn all_accounts() -> SubscribeRequest {
account: vec![],
owner: vec![],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand All @@ -229,6 +232,7 @@ pub fn jito1_account() -> SubscribeRequest {
account: vec![account.to_string()],
owner: vec![],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand All @@ -249,6 +253,7 @@ pub fn jito2_account() -> SubscribeRequest {
account: vec![account.to_string()],
owner: vec![],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand All @@ -266,6 +271,7 @@ pub fn broken_subscription() -> SubscribeRequest {
account: vec!["nota_pubkey".to_string()],
owner: vec![],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ impl GeyserFilter {
account: vec![],
owner: vec![],
filters: vec![],
nonempty_txn_signature: None,
},
);

Expand Down

0 comments on commit 0901508

Please sign in to comment.