diff --git a/examples/address_lookup/src/main.rs b/examples/address_lookup/src/main.rs index cf23e81..ef287cd 100644 --- a/examples/address_lookup/src/main.rs +++ b/examples/address_lookup/src/main.rs @@ -60,7 +60,7 @@ async fn main() -> Result<(), Box> { }; // Listen to account data belonging to owner programs -> account event monitoring - let account_filter = AccountFilter { account: vec![], owner: vec![] }; + let account_filter = AccountFilter { account: vec![], owner: vec![], filters: vec![] }; // listen to specific event type let event_type_filter = @@ -69,8 +69,8 @@ async fn main() -> Result<(), Box> { grpc.subscribe_events_immediate( protocols, None, - transaction_filter, - account_filter, + vec![transaction_filter], + vec![account_filter], Some(event_type_filter), None, callback, diff --git a/examples/bonk_copy_trading/src/main.rs b/examples/bonk_copy_trading/src/main.rs index c887350..31274b0 100644 --- a/examples/bonk_copy_trading/src/main.rs +++ b/examples/bonk_copy_trading/src/main.rs @@ -52,7 +52,7 @@ async fn main() -> Result<(), Box> { }; // Listen to account data belonging to owner programs -> account event monitoring - let account_filter = AccountFilter { account: vec![], owner: vec![] }; + let account_filter = AccountFilter { account: vec![], owner: vec![], filters: vec![] }; // listen to specific event type let event_type_filter = EventTypeFilter { @@ -67,8 +67,8 @@ async fn main() -> Result<(), Box> { grpc.subscribe_events_immediate( protocols, None, - transaction_filter, - account_filter, + vec![transaction_filter], + vec![account_filter], Some(event_type_filter), None, callback, diff --git a/examples/event_subscription/src/main.rs b/examples/event_subscription/src/main.rs index a949909..0881edc 100644 --- a/examples/event_subscription/src/main.rs +++ b/examples/event_subscription/src/main.rs @@ -83,8 +83,8 @@ async fn test_grpc() -> Result<(), Box> { grpc.subscribe_events_immediate( protocols, None, - transaction_filter, - account_filter, + vec![transaction_filter], + vec![account_filter], event_type_filter, None, callback, diff --git a/examples/nonce_cache/src/main.rs b/examples/nonce_cache/src/main.rs index f60dcd2..d537d75 100644 --- a/examples/nonce_cache/src/main.rs +++ b/examples/nonce_cache/src/main.rs @@ -53,7 +53,7 @@ async fn main() -> Result<(), Box> { }; // Listen to account data belonging to owner programs -> account event monitoring - let account_filter = AccountFilter { account: vec![], owner: vec![] }; + let account_filter = AccountFilter { account: vec![], owner: vec![], filters: vec![] }; // listen to specific event type let event_type_filter = @@ -62,8 +62,8 @@ async fn main() -> Result<(), Box> { grpc.subscribe_events_immediate( protocols, None, - transaction_filter, - account_filter, + vec![transaction_filter], + vec![account_filter], Some(event_type_filter), None, callback, diff --git a/examples/pumpfun_copy_trading/src/main.rs b/examples/pumpfun_copy_trading/src/main.rs index 55c97b8..2ef69d6 100644 --- a/examples/pumpfun_copy_trading/src/main.rs +++ b/examples/pumpfun_copy_trading/src/main.rs @@ -52,7 +52,7 @@ async fn main() -> Result<(), Box> { }; // Listen to account data belonging to owner programs -> account event monitoring - let account_filter = AccountFilter { account: vec![], owner: vec![] }; + let account_filter = AccountFilter { account: vec![], owner: vec![], filters: vec![] }; // listen to specific event type let event_type_filter = @@ -61,8 +61,8 @@ async fn main() -> Result<(), Box> { grpc.subscribe_events_immediate( protocols, None, - transaction_filter, - account_filter, + vec![transaction_filter], + vec![account_filter], Some(event_type_filter), None, callback, diff --git a/examples/pumpswap_trading/src/main.rs b/examples/pumpswap_trading/src/main.rs index 491473e..9735fe4 100644 --- a/examples/pumpswap_trading/src/main.rs +++ b/examples/pumpswap_trading/src/main.rs @@ -59,7 +59,7 @@ async fn main() -> Result<(), Box> { }; // Listen to account data belonging to owner programs -> account event monitoring - let account_filter = AccountFilter { account: vec![], owner: vec![] }; + let account_filter = AccountFilter { account: vec![], owner: vec![], filters: vec![] }; // listen to specific event type let event_type_filter = @@ -68,8 +68,8 @@ async fn main() -> Result<(), Box> { grpc.subscribe_events_immediate( protocols, None, - transaction_filter, - account_filter, + vec![transaction_filter], + vec![account_filter], Some(event_type_filter), None, callback, diff --git a/examples/raydium_amm_v4_trading/src/main.rs b/examples/raydium_amm_v4_trading/src/main.rs index 71e38bc..11f829d 100644 --- a/examples/raydium_amm_v4_trading/src/main.rs +++ b/examples/raydium_amm_v4_trading/src/main.rs @@ -51,7 +51,7 @@ async fn main() -> Result<(), Box> { }; // Listen to account data belonging to owner programs -> account event monitoring - let account_filter = AccountFilter { account: vec![], owner: vec![] }; + let account_filter = AccountFilter { account: vec![], owner: vec![], filters: vec![] }; // listen to specific event type let event_type_filter = EventTypeFilter { @@ -61,8 +61,8 @@ async fn main() -> Result<(), Box> { grpc.subscribe_events_immediate( protocols, None, - transaction_filter, - account_filter, + vec![transaction_filter], + vec![account_filter], Some(event_type_filter), None, callback, diff --git a/examples/raydium_cpmm_trading/src/main.rs b/examples/raydium_cpmm_trading/src/main.rs index b2b273d..d648c48 100644 --- a/examples/raydium_cpmm_trading/src/main.rs +++ b/examples/raydium_cpmm_trading/src/main.rs @@ -61,7 +61,7 @@ async fn main() -> Result<(), Box> { }; // Listen to account data belonging to owner programs -> account event monitoring - let account_filter = AccountFilter { account: vec![], owner: vec![] }; + let account_filter = AccountFilter { account: vec![], owner: vec![], filters: vec![] }; // listen to specific event type let event_type_filter = EventTypeFilter { @@ -71,8 +71,8 @@ async fn main() -> Result<(), Box> { grpc.subscribe_events_immediate( protocols, None, - transaction_filter, - account_filter, + vec![transaction_filter], + vec![account_filter], Some(event_type_filter), None, callback,