Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 781 Bytes

File metadata and controls

42 lines (34 loc) · 781 Bytes

IBC Denom Resolver

Config

denom and routes will be fixed for each instantiated contract.

pub struct Config {
    pub owner: Addr,
    pub denom: String,
    pub first_forward_contract: Addr,
    pub routes: Vec<Route>,
    pub treasury: Addr,
    pub fee: FeeConfig,
    pub timeout: Duration,
}
pub struct Route {
    pub src_port: String,
    pub src_channel: String,
    pub destination: Destination,
}

pub enum Destination {
    Terminal,
    PacketForwardMiddleware,
    PacketForwardContract(String),
}

SwapMsg

pub struct SwapMsg {
    pub receivers: Vec<String>,
}
  • receivers must have same length to routes in Config.
    • They will be the emergency_claimer for each route if the packet is failed on the way.