-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89698a6
commit 19610b6
Showing
9 changed files
with
135 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.17; | ||
|
||
// TODO: This is likely able to become a generic bridge adaptor, not just for ERC20 tokens. | ||
interface IRootERC20BridgeAdaptor { | ||
/** | ||
* @notice Send a map token message to the child chain via the message passing protocol. | ||
* @param rootToken The address of the token on the root chain. | ||
* @param name The name of the token. | ||
* @param symbol The symbol of the token. | ||
* @param decimals The decimals of the token. | ||
* @notice Send an arbitrary message to the child chain via the message passing protocol. | ||
* @param payload The message to send, encoded in a `bytes` array. | ||
* @param refundRecipient Used if the message passing protocol requires fees & pays back excess to a refund recipient. | ||
* @dev `payable` because the message passing protocol may require a fee to be paid. | ||
*/ | ||
function mapToken(address rootToken, string calldata name, string calldata symbol, uint8 decimals) external payable; | ||
function sendMessage(bytes calldata payload, address refundRecipient) external payable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.17; | ||
|
||
// @dev A contract for ensuring the Axelar Bridge Adaptor is called correctly during unit tests. | ||
contract MockAdaptor { | ||
function sendMessage(bytes calldata , address) external payable{} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters