pub fn wrap_into_axelar_msg(
    serialized_msg: Vec<u8>,
    target_chain: Vec<u8>,
    target_contract: H160
) -> Result<Vec<u8>, &'static str>
Expand description

Encodes the provided message into the format required for submitting it to the Axelar contract which in turn calls the LiquidityPools contract with the serialized LP message as payload.

Axelar contract call: https://github.com/axelarnetwork/axelar-cgp-solidity/blob/v4.3.2/contracts/AxelarGateway.sol#L78

LiquidityPools contract call: https://github.com/centrifuge/liquidity-pools/blob/383d279f809a01ab979faf45f31bf9dc3ce6a74a/src/routers/Gateway.sol#L276