MCPcopy Create free account
hub / github.com/BitVM/BitVM / ClientCliQuery

Interface ClientCliQuery

bridge/src/client/sdk/query.rs:11–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9use super::query_contexts::depositor_signatures::DepositorSignatures;
10
11pub 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
42pub trait GraphCliQuery {
43 fn broadcast_deposit(&self, client: &AsyncClient) -> impl Future<Output = Result<(), String>>;

Callers

nothing calls this directly

Implementers 1

client.rsbridge/src/client/client.rs

Calls

no outgoing calls

Tested by

no test coverage detected