Skip to content

Commit 9223aed

Browse files
committed
sync with runtime
1 parent f6a2bda commit 9223aed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/eth.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub use alloy_rpc_types::{
77
TransactionReceipt,
88
};
99
use serde::{Deserialize, Serialize};
10-
use std::collections::HashSet;
10+
use std::collections::{HashMap, HashSet};
1111

1212
//
1313
// types mirrored from runtime module
@@ -121,6 +121,8 @@ pub enum EthConfigAction {
121121
GetProviders,
122122
/// Get the current access settings.
123123
GetAccessSettings,
124+
/// Get the state of calls and subscriptions. Used for debugging.
125+
GetState,
124126
}
125127

126128
/// Response type from an [`EthConfigAction`] request.
@@ -135,6 +137,11 @@ pub enum EthConfigResponse {
135137
AccessSettings(AccessSettings),
136138
/// Permission denied due to missing capability
137139
PermissionDenied,
140+
/// Response from a GetState request
141+
State {
142+
active_subscriptions: HashMap<crate::Address, HashMap<u64, Option<String>>>, // None if local, Some(node_provider_name) if remote
143+
outstanding_requests: HashSet<u64>,
144+
},
138145
}
139146

140147
/// Settings for our ETH provider

0 commit comments

Comments
 (0)