> ## Documentation Index
> Fetch the complete documentation index at: https://docs.debridge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Flags

> Flags library details - fields and functions.

## Variables

### UNWRAP\_ETH

```solidity theme={null}
uint256 public constant UNWRAP_ETH;
```

Flag to unwrap ETH

### REVERT\_IF\_EXTERNAL\_FAIL

```solidity theme={null}
uint256 public constant REVERT_IF_EXTERNAL_FAIL;
```

Flag to revert if external call fails

### PROXY\_WITH\_SENDER

```solidity theme={null}
uint256 public constant PROXY_WITH_SENDER;
```

Flag to call proxy with a sender contract

### SEND\_HASHED\_DATA

```solidity theme={null}
uint256 public constant SEND_HASHED_DATA;
```

Data is hash in DeBridgeGate send method

***

## Functions

### getFlag

```solidity theme={null}
function getFlag(
    uint256 _packedFlags,
    uint256 _flag
) internal returns (bool)
```

Get flag

#### Parameters:

| Name          | Type    | Description             |
| ------------- | ------- | ----------------------- |
| \_packedFlags | uint256 | Flags packed to uint256 |
| \_flag        | uint256 | Flag to check           |

***

### setFlag

```solidity theme={null}
function setFlag(
    uint256 _packedFlags,
    uint256 _flag,
    bool _value
) internal returns (uint256)
```

Set flag

#### Parameters:

| Name          | Type    | Description             |
| ------------- | ------- | ----------------------- |
| \_packedFlags | uint256 | Flags packed to uint256 |
| \_flag        | uint256 | Flag to set             |
| \_value       | bool    | Is set or not set       |
