-
Notifications
You must be signed in to change notification settings - Fork 16
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
f6610c2
commit 6349526
Showing
3 changed files
with
35 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
/** | ||
* @title IBaseTokenManager | ||
* @notice This contract is defines the base token manager interface implemented by all token managers. | ||
*/ | ||
interface IBaseTokenManager { | ||
/** | ||
* @notice A function that returns the token id. | ||
*/ | ||
function interchainTokenId() external view returns (bytes32); | ||
|
||
/** | ||
* @notice A function that should return the address of the token. | ||
* Must be overridden in the inheriting contract. | ||
* @return address address of the token. | ||
*/ | ||
function tokenAddress() external view returns (address); | ||
|
||
/** | ||
* @notice A function that should return the implementation type of the token manager. | ||
*/ | ||
function implementationType() external pure returns (uint256); | ||
|
||
/** | ||
* @notice A function that should return the token address from the init params. | ||
*/ | ||
function getTokenAddressFromParams(bytes calldata params) external pure returns (address); | ||
} |
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