fixed
This commit is contained in:
@@ -60,7 +60,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Listen to account data belonging to owner programs -> account event monitoring
|
// 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
|
// listen to specific event type
|
||||||
let event_type_filter =
|
let event_type_filter =
|
||||||
@@ -69,8 +69,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
grpc.subscribe_events_immediate(
|
grpc.subscribe_events_immediate(
|
||||||
protocols,
|
protocols,
|
||||||
None,
|
None,
|
||||||
transaction_filter,
|
vec![transaction_filter],
|
||||||
account_filter,
|
vec![account_filter],
|
||||||
Some(event_type_filter),
|
Some(event_type_filter),
|
||||||
None,
|
None,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Listen to account data belonging to owner programs -> account event monitoring
|
// 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
|
// listen to specific event type
|
||||||
let event_type_filter = EventTypeFilter {
|
let event_type_filter = EventTypeFilter {
|
||||||
@@ -67,8 +67,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
grpc.subscribe_events_immediate(
|
grpc.subscribe_events_immediate(
|
||||||
protocols,
|
protocols,
|
||||||
None,
|
None,
|
||||||
transaction_filter,
|
vec![transaction_filter],
|
||||||
account_filter,
|
vec![account_filter],
|
||||||
Some(event_type_filter),
|
Some(event_type_filter),
|
||||||
None,
|
None,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ async fn test_grpc() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
grpc.subscribe_events_immediate(
|
grpc.subscribe_events_immediate(
|
||||||
protocols,
|
protocols,
|
||||||
None,
|
None,
|
||||||
transaction_filter,
|
vec![transaction_filter],
|
||||||
account_filter,
|
vec![account_filter],
|
||||||
event_type_filter,
|
event_type_filter,
|
||||||
None,
|
None,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Listen to account data belonging to owner programs -> account event monitoring
|
// 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
|
// listen to specific event type
|
||||||
let event_type_filter =
|
let event_type_filter =
|
||||||
@@ -62,8 +62,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
grpc.subscribe_events_immediate(
|
grpc.subscribe_events_immediate(
|
||||||
protocols,
|
protocols,
|
||||||
None,
|
None,
|
||||||
transaction_filter,
|
vec![transaction_filter],
|
||||||
account_filter,
|
vec![account_filter],
|
||||||
Some(event_type_filter),
|
Some(event_type_filter),
|
||||||
None,
|
None,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Listen to account data belonging to owner programs -> account event monitoring
|
// 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
|
// listen to specific event type
|
||||||
let event_type_filter =
|
let event_type_filter =
|
||||||
@@ -61,8 +61,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
grpc.subscribe_events_immediate(
|
grpc.subscribe_events_immediate(
|
||||||
protocols,
|
protocols,
|
||||||
None,
|
None,
|
||||||
transaction_filter,
|
vec![transaction_filter],
|
||||||
account_filter,
|
vec![account_filter],
|
||||||
Some(event_type_filter),
|
Some(event_type_filter),
|
||||||
None,
|
None,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Listen to account data belonging to owner programs -> account event monitoring
|
// 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
|
// listen to specific event type
|
||||||
let event_type_filter =
|
let event_type_filter =
|
||||||
@@ -68,8 +68,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
grpc.subscribe_events_immediate(
|
grpc.subscribe_events_immediate(
|
||||||
protocols,
|
protocols,
|
||||||
None,
|
None,
|
||||||
transaction_filter,
|
vec![transaction_filter],
|
||||||
account_filter,
|
vec![account_filter],
|
||||||
Some(event_type_filter),
|
Some(event_type_filter),
|
||||||
None,
|
None,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Listen to account data belonging to owner programs -> account event monitoring
|
// 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
|
// listen to specific event type
|
||||||
let event_type_filter = EventTypeFilter {
|
let event_type_filter = EventTypeFilter {
|
||||||
@@ -61,8 +61,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
grpc.subscribe_events_immediate(
|
grpc.subscribe_events_immediate(
|
||||||
protocols,
|
protocols,
|
||||||
None,
|
None,
|
||||||
transaction_filter,
|
vec![transaction_filter],
|
||||||
account_filter,
|
vec![account_filter],
|
||||||
Some(event_type_filter),
|
Some(event_type_filter),
|
||||||
None,
|
None,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Listen to account data belonging to owner programs -> account event monitoring
|
// 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
|
// listen to specific event type
|
||||||
let event_type_filter = EventTypeFilter {
|
let event_type_filter = EventTypeFilter {
|
||||||
@@ -71,8 +71,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
grpc.subscribe_events_immediate(
|
grpc.subscribe_events_immediate(
|
||||||
protocols,
|
protocols,
|
||||||
None,
|
None,
|
||||||
transaction_filter,
|
vec![transaction_filter],
|
||||||
account_filter,
|
vec![account_filter],
|
||||||
Some(event_type_filter),
|
Some(event_type_filter),
|
||||||
None,
|
None,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
Reference in New Issue
Block a user