forked from hyperlane-xyz/hyperlane-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: interfaces directories (hyperlane-xyz#157)
* Rename Types -> BridgeMessage; Router -> BridgeRouter * Add BridgeTokenInterface.sol * Add MessageRecipientInterface.sol * Add SortitionInterface.sol * nit: rename Interface to I * nit: rename Interface to I Co-authored-by: Erin Hales <[email protected]>
- Loading branch information
1 parent
b969421
commit f44e60a
Showing
13 changed files
with
58 additions
and
50 deletions.
There are no files selected for viewing
File renamed without changes.
13 changes: 7 additions & 6 deletions
13
solidity/optics-bridge/contracts/Router.sol → .../optics-bridge/contracts/BridgeRouter.sol
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: MIT OR Apache-2.0 | ||
pragma solidity >=0.6.11; | ||
|
||
interface BridgeTokenI { | ||
function name() external returns (string memory); | ||
|
||
function symbol() external returns (string memory); | ||
|
||
function decimals() external returns (uint8); | ||
|
||
function burn(address from, uint256 amnt) external; | ||
|
||
function mint(address to, uint256 amnt) external; | ||
|
||
function setDetails( | ||
bytes32 _name, | ||
bytes32 _symbol, | ||
uint8 _decimals | ||
) external; | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT OR Apache-2.0 | ||
pragma solidity >=0.6.11; | ||
|
||
interface MessageRecipientI { | ||
function handle( | ||
uint32 origin, | ||
bytes32 sender, | ||
bytes memory message | ||
) external returns (bytes memory); | ||
} |
2 changes: 1 addition & 1 deletion
2
solidity/optics-core/contracts/Sortition.sol → ...ity/optics-core/interfaces/SortitionI.sol
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