ICallProxy

Functions

submissionChainIdFrom

1
function submissionChainIdFrom(
2
) external returns (uint256)
Copied!
Chain from which the current submission is received

submissionNativeSender

1
function submissionNativeSender(
2
) external returns (bytes)
Copied!
Native sender of the current submission

call

1
function call(
2
address _reserveAddress,
3
address _receiver,
4
bytes _data,
5
uint256 _flags,
6
bytes _nativeSender,
7
uint256 _chainIdFrom
8
) external returns (bool)
Copied!
Used for calls where native asset transfer is involved.

Parameters:

Name
Type
Description
_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

1
function callERC20(
2
address _token,
3
address _reserveAddress,
4
address _receiver,
5
bytes _data,
6
uint256 _flags,
7
bytes _nativeSender,
8
uint256 _chainIdFrom
9
) external returns (bool)
Copied!
Used for calls where ERC20 transfer is involved.

Parameters:

Name
Type
Description
_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