pub trait BridgeRequestHandlerTrait {
// Required methods
fn handle_eth_tx_hash<'life0, 'async_trait>(
&'life0 self,
tx_hash_hex: String,
event_idx: u16,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_sui_tx_digest<'life0, 'async_trait>(
&'life0 self,
tx_digest_base58: String,
event_idx: u16,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_governance_action<'life0, 'async_trait>(
&'life0 self,
action: BridgeAction,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn handle_eth_tx_hash<'life0, 'async_trait>(
&'life0 self,
tx_hash_hex: String,
event_idx: u16,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_eth_tx_hash<'life0, 'async_trait>(
&'life0 self,
tx_hash_hex: String,
event_idx: u16,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles a request to sign a BridgeAction that bridges assets from Ethereum to Sui. The inputs are a transaction hash on Ethereum that emitted the bridge event and the Event index in that transaction
Sourcefn handle_sui_tx_digest<'life0, 'async_trait>(
&'life0 self,
tx_digest_base58: String,
event_idx: u16,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_sui_tx_digest<'life0, 'async_trait>(
&'life0 self,
tx_digest_base58: String,
event_idx: u16,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles a request to sign a BridgeAction that bridges assets from Sui to Ethereum. The inputs are a transaction digest on Sui that emitted the bridge event and the Event index in that transaction
Sourcefn handle_governance_action<'life0, 'async_trait>(
&'life0 self,
action: BridgeAction,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_governance_action<'life0, 'async_trait>(
&'life0 self,
action: BridgeAction,
) -> Pin<Box<dyn Future<Output = Result<Json<SignedBridgeAction>, BridgeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles a request to sign a governance action.