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

Interface ChainAdaptor

bridge/src/client/chain/chain_adaptor.rs:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13#[async_trait]
14pub trait ChainAdaptor {
15 async fn get_peg_out_init_event(&self) -> Result<Vec<PegOutEvent>, String>;
16 async fn get_peg_out_burnt_event(&self) -> Result<Vec<PegOutBurntEvent>, String>;
17 async fn get_peg_in_minted_event(&self) -> Result<Vec<PegInEvent>, String>;
18}
19
20pub fn get_chain_adaptor(
21 network: DestinationNetwork,

Callers

nothing calls this directly

Implementers 2

mock_adaptor.rsbridge/src/client/chain/mock_adaptor.r
ethereum_adaptor.rsbridge/src/client/chain/ethereum_adapt

Calls

no outgoing calls

Tested by

no test coverage detected