CallProxy
Proxy to execute the other contract calls. This contract is used when a user requests transfer with specific call of other contract.

Variables

DEBRIDGE_GATE_ROLE

1
bytes32 public constant DEBRIDGE_GATE_ROLE;
Copied!
Role allowed to withdraw fee

submissionChainIdFrom

1
uint256 public submissionChainIdFrom;
Copied!
Chain from which the current submission is received

submissionNativeSender

1
bytes public submissionNativeSender;
Copied!
Native sender of the current submission

Functions

initialize

1
function initialize(
2
) public
Copied!

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 _result)
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 _result)
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

externalCall

1
function externalCall(
2
address destination,
3
uint256 value,
4
bytes data,
5
bytes _nativeSender,
6
uint256 _chainIdFrom,
7
bool storeSender
8
) internal returns (bool result)
Copied!

receive

1
function receive(
2
) external
Copied!

version

1
function version(
2
) external returns (uint256)
Copied!
Get this contract's version