ICallProxy
Functions
submissionChainIdFrom
function submissionChainIdFrom(
) external returns (uint256)
Chain from which the current submission is received
submissionNativeSender
function submissionNativeSender(
) external returns (bytes)
Native sender of the current submission
call
function call(
address _reserveAddress,
address _receiver,
bytes _data,
uint256 _flags,
bytes _nativeSender,
uint256 _chainIdFrom
) external returns (bool)
Used for calls where native asset transfer is involved.
Parameters:
_reserveAddress
address
Receiver of the tokens if the call to _receiver fails
_receiver
address
Contract to be called
_data
bytes
Call data
_flags
uint256
Flags to change certain behavior of this function, see Flags library for more details
_nativeSender
bytes
Native sender
_chainIdFrom
uint256
Id of a chain that originated the request
callERC20
function callERC20(
address _token,
address _reserveAddress,
address _receiver,
bytes _data,
uint256 _flags,
bytes _nativeSender,
uint256 _chainIdFrom
) external returns (bool)
Used for calls where ERC20 transfer is involved.
Parameters:
_token
address
Asset address
_reserveAddress
address
Receiver of the tokens if the call to _receiver fails
_receiver
address
Contract to be called
_data
bytes
Call data
_flags
uint256
Flags to change certain behavior of this function, see Flags library for more details
_nativeSender
bytes
Native sender
_chainIdFrom
uint256
Id of a chain that originated the request
Last updated
Was this helpful?