xAnchor Wormhole Bridge

Parses Wormhole messages from foreign chains, and any associated token transfer, if the action requires one. Receives outgoing messages and token transfers from xAnchor Core and forwards them back over the Wormhole Bridge.

Config

InstantiateMsg

pub struct InstantiateMsg {
    pub owner: String,
    pub wormhole_core_bridge_addr: String,
    pub wormhole_token_bridge_addr: String,
    pub xanchor_core_addr: String,
    pub aust_cw20_addr: String,
}

ExecuteMsg

pub enum ExecuteMsg {
    ProcessAnchorMessage {
        instruction_vaa: Binary,
        option_token_transfer_vaa: Option<Binary>,
    },
    SendAsset {
        asset: Asset,
    },

    /// Admin
    RegisterWormholeChainInfo {
        // Wormhole chain id.
        chain_id: u16,
        // address of contract on remote chain
        address: Vec<u8>,
    },
}

Last updated