-
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.
feat: added some info in the tokenManagerProxy, which will cause some…
… gas saving and will allow for a more powerfull design in the future. (#170) * added some info in the tokenManagerProxy, which will cause some gas saving and will allow for a more powerfull design in the future. * add service approval on appropriate token managers * address comment * refactor imports * update import --------- Co-authored-by: Milap Sheth <[email protected]>
- Loading branch information
1 parent
9ce5c76
commit 9954e3f
Showing
13 changed files
with
115 additions
and
92 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
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
Oops, something went wrong.