An Arbitrary Message Bridge (AMB) between the Ethereum Mainnet and the xDai chain extends the number of the applications that can leverage cross-chain communications.
Any application can build its own AMB extension. This is represented by two mediator contracts so that either assets or arbitrary data can be transferred between chains. The deployed mediator contracts do not require a set of oracles to be setup, allowing an application to launch quickly and reducing the cost of application ownership.
The mediator contracts rely on the following information about the ETH-xDai Arbitrary Message Bridge:
Gas limit to call method in the xDai chain:
Gas limit to call method in the Ethereum Mainnet:
It is possible to get an AMB transaction status by using the Live Monitoring app: http://alm-xdai.herokuapp.com/. Transactions require a multi-sig (for bridge validators, not users) for a successful transfer. Current validators can be viewed with the live monitoring application.
While there are no additional fees to bridge between xDai and Ethereum, there are gas costs for transactions, which can be quite substantial depending on Ethereum gas prices. When moving from Ethereum to xDai, there is a gas cost to unlock the tokens for transfer. When moving from xDai to Ethereum, there is a gas cost to claim the token on Ethereum.
Additional fees may be introduced at a later time to cover expenses incurred by validators when bridging. These fees will be assessed with the transferring asset.
Withdrawal requests call the
transfer method of the token contracts with the mediator contract address as the recipient (the multitoken/erc20-to-erc20 extension for AMB).