SystemContractsCaller
The library contains the functions to make system calls.
A more detailed description of the library and its methods can be found in the system-contracts
repo.
Functions
systemCall
function systemCall(
uint32 gasLimit,
address to,
uint256 value,
bytes memory data
) internal returns (bool success);
systemCallWithReturndata
function systemCallWithReturndata(
uint32 gasLimit,
address to,
uint128 value,
bytes memory data
) internal returns (bool success, bytes memory returnData);
getFarCallABI
function getFarCallABI(
uint32 dataOffset,
uint32 memoryPage,
uint32 dataStart,
uint32 dataLength,
uint32 gasPassed,
uint8 shardId,
CalldataForwardingMode forwardingMode,
bool isConstructorCall,
bool isSystemCall
) internal pure returns (uint256 farCallAbi);
getFarCallABIWithEmptyFatPointer
function getFarCallABIWithEmptyFatPointer(
uint32 gasPassed,
uint8 shardId,
CalldataForwardingMode forwardingMode,
bool isConstructorCall,
bool isSystemCall
) internal pure returns (uint256 farCallAbiWithEmptyFatPtr);