18 lines
443 B
Solidity
18 lines
443 B
Solidity
|
// SPDX-License-Identifier: Apache 2
|
||
|
|
||
|
pragma solidity ^0.7.6;
|
||
|
pragma abicoder v2;
|
||
|
|
||
|
interface TokenBridge {
|
||
|
function transferTokensWithPayload(
|
||
|
address token,
|
||
|
uint256 amount,
|
||
|
uint16 recipientChain,
|
||
|
bytes32 recipient,
|
||
|
uint32 nonce,
|
||
|
bytes memory payload
|
||
|
) external payable returns (uint64);
|
||
|
function completeTransferWithPayload(
|
||
|
bytes memory encodedVm
|
||
|
) external returns (bytes memory);
|
||
|
}
|