The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/rust/chains/hyperlane-fuel/src/multisig_ism.rs

37 lines
862 B

use async_trait::async_trait;
use hyperlane_core::{
ChainResult, HyperlaneChain, HyperlaneContract, HyperlaneDomain, HyperlaneMessage,
HyperlaneProvider, MultisigIsm, H256,
};
/// A reference to a MultisigIsm contract on some Fuel chain
#[derive(Debug)]
pub struct FuelMultisigIsm {}
impl HyperlaneContract for FuelMultisigIsm {
fn address(&self) -> H256 {
todo!()
}
}
impl HyperlaneChain for FuelMultisigIsm {
fn domain(&self) -> &HyperlaneDomain {
todo!()
}
fn provider(&self) -> Box<dyn HyperlaneProvider> {
todo!()
}
}
#[async_trait]
impl MultisigIsm for FuelMultisigIsm {
/// Returns the validator and threshold needed to verify message
async fn validators_and_threshold(
&self,
message: &HyperlaneMessage,
) -> ChainResult<(Vec<H256>, u8)> {
todo!()
}
}