IStargateReceiver.sol
A contract that implements sgReceive() can perform powerful logic on the receiving chain.
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
interface IStargateReceiver {
function sgReceive(
uint16 _srcChainId, // the remote chainId sending the tokens
bytes memory _srcAddress, // the remote Bridge address
uint256 _nonce,
address _token, // the token contract on the local chain
uint256 amountLD, // the qty of local _token contract tokens
bytes memory payload
) external;
}
Last updated
