Flags

Variables

UNWRAP_ETH

  uint256 public constant UNWRAP_ETH;

Flag to unwrap ETH

REVERT_IF_EXTERNAL_FAIL

  uint256 public constant REVERT_IF_EXTERNAL_FAIL;

Flag to revert if external call fails

PROXY_WITH_SENDER

  uint256 public constant PROXY_WITH_SENDER;

Flag to call proxy with a sender contract

SEND_HASHED_DATA

  uint256 public constant SEND_HASHED_DATA;

Data is hash in DeBridgeGate send method

Functions

getFlag

  function getFlag(
            uint256 _packedFlags,
            uint256 _flag
  ) internal returns (bool)

Get flag

Parameters:

NameTypeDescription

_packedFlags

uint256

Flags packed to uint256

_flag

uint256

Flag to check

setFlag

  function setFlag(
            uint256 _packedFlags,
            uint256 _flag,
            bool _value
  ) internal returns (uint256)

Set flag

Parameters:

NameTypeDescription

_packedFlags

uint256

Flags packed to uint256

_flag

uint256

Flag to set

_value

bool

Is set or not set

Last updated