# OrderLib

## Functions[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#functions) <a href="#functions" id="functions"></a>

### makerAssetData[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#makerassetdata) <a href="#makerassetdata" id="makerassetdata"></a>

```javascript
function makerAssetData(
  struct OrderLib.Order order
) internal returns (bytes)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |

### takerAssetData[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#takerassetdata) <a href="#takerassetdata" id="takerassetdata"></a>

```javascript
function takerAssetData(
  struct OrderLib.Order order
) internal returns (bytes)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters-1)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |

### getMakingAmount[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#getmakingamount) <a href="#getmakingamount" id="getmakingamount"></a>

```javascript
function getMakingAmount(
  struct OrderLib.Order order
) internal returns (bytes)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters-2)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |

### getTakingAmount[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#gettakingamount) <a href="#gettakingamount" id="gettakingamount"></a>

```javascript
function getTakingAmount(
  struct OrderLib.Order order
) internal returns (bytes)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters-3)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |

### predicate[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#predicate) <a href="#predicate" id="predicate"></a>

```javascript
function predicate(
  struct OrderLib.Order order
) internal returns (bytes)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters-4)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |

### permit[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#permit) <a href="#permit" id="permit"></a>

```javascript
function permit(
  struct OrderLib.Order order
) internal returns (bytes)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters-5)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |

### preInteraction[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#preinteraction) <a href="#preinteraction" id="preinteraction"></a>

```javascript
function preInteraction(
  struct OrderLib.Order order
) internal returns (bytes)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters-6)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |

### postInteraction[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#postinteraction) <a href="#postinteraction" id="postinteraction"></a>

```javascript
function postInteraction(
  struct OrderLib.Order order
) internal returns (bytes)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters-7)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |

### hash[​](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#hash) <a href="#hash" id="hash"></a>

```javascript
function hash(
  struct OrderLib.Order order
) internal returns (bytes32 result)
```

**Parameters:**[**​**](https://docs.1inch.io/docs/limit-order-protocol/smart-contract/OrderLib#parameters-8)

| Name    | Type                  | Description |
| ------- | --------------------- | ----------- |
| `order` | struct OrderLib.Order |             |
