CommonLib

Git Source

Functions

checkLengthMatch

function checkLengthMatch(uint256 l1, uint256 l2) internal pure;

checkLengthMatch

function checkLengthMatch(uint256 l1, uint256 l2, uint256 l3) internal pure;

computeSum

function computeSum(uint256[] calldata values) internal pure returns (uint256 sum);

checkHostToExtension

function checkHostToExtension(
    uint256 amount,
    uint32 dstChainId,
    uint256 msgValue,
    mapping(uint32 => bool) storage allowedChains,
    IGasFeesHelper gasHelper
) internal view;

Errors

CommonLib_LengthMismatch

error CommonLib_LengthMismatch();

AmountNotValid

error AmountNotValid();

ChainNotValid

error ChainNotValid();

NotEnoughGasFee

error NotEnoughGasFee();