| 9 | use super::query_contexts::depositor_signatures::DepositorSignatures; |
| 10 | |
| 11 | pub trait ClientCliQuery { |
| 12 | fn get_unused_peg_in_graphs(&self) -> impl Future<Output = Vec<Value>>; |
| 13 | fn get_depositor_status( |
| 14 | &self, |
| 15 | depositor_public_key: &PublicKey, |
| 16 | ) -> impl Future<Output = Vec<Value>>; |
| 17 | fn get_withdrawer_status( |
| 18 | &self, |
| 19 | withdrawer_chain_address: &str, |
| 20 | ) -> impl Future<Output = Vec<Value>>; |
| 21 | fn get_depositor_transactions( |
| 22 | &self, |
| 23 | depositor_public_key: &PublicKey, |
| 24 | depositor_taproot_public_key: &XOnlyPublicKey, |
| 25 | deposit_input: Input, |
| 26 | depositor_evm_address: &str, |
| 27 | ) -> impl Future<Output = Result<Value, String>>; |
| 28 | fn create_peg_in_graph_with_depositor_signatures( |
| 29 | &mut self, |
| 30 | depositor_public_key: &PublicKey, |
| 31 | depositor_taproot_public_key: &XOnlyPublicKey, |
| 32 | deposit_input: Input, |
| 33 | depositor_evm_address: &str, |
| 34 | signatures: &DepositorSignatures, |
| 35 | ) -> impl Future<Output = Result<Value, String>>; |
| 36 | fn retry_broadcast_peg_in_deposit( |
| 37 | &self, |
| 38 | peg_in_graph_id: &str, |
| 39 | ) -> impl Future<Output = Result<Value, String>>; |
| 40 | } |
| 41 | |
| 42 | pub trait GraphCliQuery { |
| 43 | fn broadcast_deposit(&self, client: &AsyncClient) -> impl Future<Output = Result<(), String>>; |
nothing calls this directly
no outgoing calls
no test coverage detected