-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: rename deployTokenManager to linkToken and change the message type for deploying remote token managers #318
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #318 +/- ##
==========================================
- Coverage 99.18% 98.11% -1.08%
==========================================
Files 20 20
Lines 738 743 +5
Branches 170 171 +1
==========================================
- Hits 732 729 -3
- Misses 6 14 +8 ☔ View full report in Codecov by Sentry. |
if (!success) revert GatewayCallFailed(returnData); | ||
} | ||
|
||
function linkToken( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a docstring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention that for EVM destination, linkParams
is just the token manager operator address as bytes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added docstring
contracts/InterchainTokenService.sol
Outdated
// Custom token managers can't be deployed with native interchain token type, which is reserved for interchain tokens | ||
if (tokenManagerType == TokenManagerType.NATIVE_INTERCHAIN_TOKEN) revert CannotDeploy(tokenManagerType); | ||
|
||
address deployer = msg.sender; | ||
|
||
if (deployer == interchainTokenFactory) { | ||
if (msg.sender == interchainTokenFactory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (msg.sender == interchainTokenFactory) { | |
if (deployer == interchainTokenFactory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you changed that in the original PR and I was wondering why.
contracts/InterchainTokenService.sol
Outdated
bytes32 tokenId, | ||
string calldata destinationChain, | ||
uint256 gasValue, | ||
bytes memory destinationTokenAddress, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bytes memory destinationTokenAddress, | |
bytes calldata destinationTokenAddress, |
contracts/InterchainTokenService.sol
Outdated
TokenManagerType tokenManagerType, | ||
bytes calldata params | ||
bytes memory params, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bytes memory params, | |
bytes calldata params, |
contracts/InterchainTokenService.sol
Outdated
@@ -944,13 +968,17 @@ contract InterchainTokenService is | |||
_callContract(destinationChain, payload, IGatewayCaller.MetadataVersion.CONTRACT_CALL, gasValue); | |||
} | |||
|
|||
/** | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* | |
/** |
removed accidentally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
* @param tokenManagerType The type of token manager. Cannot be NATIVE_INTERCHAIN_TOKEN. | ||
* @param params The deployment parameters. | ||
* @param linkParams The link parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mention that note on operator being linkParams for EVM case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Co-authored-by: Milap Sheth <[email protected]>
Co-authored-by: Milap Sheth <[email protected]>
Co-authored-by: Milap Sheth <[email protected]>
AXE-7068