diff --git a/docs/bridges/tokenbridge/amb-bridge.md b/docs/bridges/tokenbridge/amb-bridge.md index 8a4fb202..c5ec9d3c 100644 --- a/docs/bridges/tokenbridge/amb-bridge.md +++ b/docs/bridges/tokenbridge/amb-bridge.md @@ -80,12 +80,14 @@ References: |-------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------| | AMB/Omnibridge Multi-Token Mediator | [0x88ad09518695c6c3712AC10a214bE5109a655671](https://etherscan.io/address/0x88ad09518695c6c3712AC10a214bE5109a655671#writeProxyContract) | | AMB Contract Proxy (Foreign) | [0x4C36d2919e407f0Cc2Ee3c993ccF8ac26d9CE64e](https://etherscan.io/address/0x4C36d2919e407f0Cc2Ee3c993ccF8ac26d9CE64e#writeProxyContract) | +| AMB/OmniBridge wETH Router Helper | [0xa6439Ca0FCbA1d0F80df0bE6A17220feD9c9038a](https://etherscan.io/address/0xa6439ca0fcba1d0f80df0be6a17220fed9c9038) | ### Gnosis | Contract | Address | |-------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------| | AMB/Omnibridge Multi-Token Mediator | [0xf6A78083ca3e2a662D6dd1703c939c8aCE2e268d](https://gnosisscan.io/address/0xf6A78083ca3e2a662D6dd1703c939c8aCE2e268d#writeProxyContract) | | AMB Contract Proxy (Home) | [0x75Df5AF045d91108662D8080fD1FEFAd6aA0bb59](https://gnosisscan.io/address/0x75Df5AF045d91108662D8080fD1FEFAd6aA0bb59#writeProxyContract) | +| AMB Helper Contract | [0x7d94ece17e81355326e3359115D4B02411825EdD](https://gnosisscan.io/address/0x7d94ece17e81355326e3359115D4B02411825EdD#readContract) | ## How it works ### Terminology diff --git a/docs/bridges/tutorials/using-amb.md b/docs/bridges/tutorials/using-amb.md index 574c8029..c3776e25 100644 --- a/docs/bridges/tutorials/using-amb.md +++ b/docs/bridges/tutorials/using-amb.md @@ -2,13 +2,26 @@ title: Using the AMB --- -## Basics +## Submitting AMB Confirmations Manually +The Arbitrary Message Bridge between the Ethereum Mainnet and Gnosis Mainnet now requires a [request-and-claim scheme](https://forum.poa.network/t/request-and-claim-to-transfer-assets-from-xdai-chain/4495) to transfer data from Gnosis, and some users and applications may want to use a manual process to gather the oracles confirmations and send them to the AMB contracts on the Mainnet side. -## Validators +:::info +This approach is the equivalent of the set of actions performed by the [OmniBridge UI](https://omni.gnosischain.com/bridge) after pressing the "Claim" button, or by the [AMB Live Monitoring app](https://alm-xdai.herokuapp.com/) after pressing the "Execute" button. +::: +Below is the list of actions that can be executed in BlockScout and Etherscan, or, if you are familiar with the contract interaction through Web3 provider, it can be done by importing the contract's ABI to your application. +1. Find the first transaction which initiated message passing through the AMB bridge and go to the logs generated during the transaction execution. The `encodedData` argument emitted with the `UserRequestForSignature` event will be used in the next steps. +![](/img/bridges/amb_manualconfirmation_userRequestForSignature_encodedData.png) +2. Go to the [AMB helper contract](https://gnosisscan.io/address/0x7d94ece17e81355326e3359115D4B02411825EdD#readContract) and call `getSignatures()` there with the encoded data from the `UserRequestForSignature` event. It will produce a blob with signatures. +![](/img/bridges/amb_helper_getsignatures.png) +3. Pass the encoded data and the signatures to the [Arbitrary Message Bridge contract](https://etherscan.io/address/0x4C36d2919e407f0Cc2Ee3c993ccF8ac26d9CE64e#writeProxyContract)'s `executeSignatures()` function on the Ethereum Mainnet and press the "Write" button to send the transaction. +![](/img/bridges/amb_eth_executeSignatures.png) + +:::info +MetaMask will show a high gas estimate for this transaction. In most cases the final gas consumption will be significantly lower. +::: -- [Tokenbridge Docs: Submitting AMB Confirmations Manually](https://docs.tokenbridge.net/eth-xdai-amb-bridge/about-the-eth-xdai-amb/submit-confirmations-manually) ## Deploying custom ERC-20 Bridge - [Tokenbridge Docs: Deploying custom token bridge on top of AMB](https://docs.tokenbridge.net/eth-xdai-amb-bridge/multi-token-extension/correspondence-of-bridgeable-tokens) -- [Tokenbridge Docs: Deplying a custom UI token bridge on top of AMB](https://docs.tokenbridge.net/eth-xdai-amb-bridge/erc20-to-erc20-extension-linked-with-a-particular-token/ui-to-transfer-tokens-through-amb) \ No newline at end of file +- [Tokenbridge Docs: Deplying a custom UI token bridge on top of AMB](https://docs.tokenbridge.net/eth-xdai-amb-bridge/erc20-to-erc20-extension-linked-with-a-particular-token/ui-to-transfer-tokens-through-amb) diff --git a/static/img/bridges/amb_eth_executeSignatures.png b/static/img/bridges/amb_eth_executeSignatures.png new file mode 100644 index 00000000..e53cbb50 Binary files /dev/null and b/static/img/bridges/amb_eth_executeSignatures.png differ diff --git a/static/img/bridges/amb_helper_getsignatures.png b/static/img/bridges/amb_helper_getsignatures.png new file mode 100644 index 00000000..201a1241 Binary files /dev/null and b/static/img/bridges/amb_helper_getsignatures.png differ diff --git a/static/img/bridges/amb_manualconfirmation_userRequestForSignature_encodedData.png b/static/img/bridges/amb_manualconfirmation_userRequestForSignature_encodedData.png new file mode 100644 index 00000000..db25c8f9 Binary files /dev/null and b/static/img/bridges/amb_manualconfirmation_userRequestForSignature_encodedData.png differ