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

Method depositor_status

bridge/src/client/client.rs:659–679  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

657 }
658
659 async fn depositor_status(&self) {
660 if self.depositor_context.is_none() {
661 panic!("Depositor context must be initialized");
662 }
663
664 let depositor_public_key = &self
665 .depositor_context
666 .as_ref()
667 .unwrap()
668 .depositor_public_key;
669 for peg_in_graph in self.data.peg_in_graphs.iter() {
670 if peg_in_graph.depositor_public_key.eq(depositor_public_key) {
671 let status = peg_in_graph.depositor_status(&self.esplora).await;
672 println!(
673 "[DEPOSITOR]: Peg-in graph ID: {} status: {}\n",
674 peg_in_graph.id(),
675 status
676 );
677 }
678 }
679 }
680
681 async fn operator_status(&self) {
682 if self.operator_context.is_none() {

Callers 3

statusMethod · 0.45

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected