Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions _data/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,14 @@ module.exports = {
title: 'Sum',
url: '/docs/jobs/task-types/sum/',
},
{
title: 'Less Than',
url: '/docs/jobs/task-types/lessthan/',
},
{
title: 'Length',
url: '/docs/jobs/task-types/length/',
},
{
title: 'Hex Decode',
url: '/docs/jobs/task-types/hexdecode/',
Expand Down
5 changes: 5 additions & 0 deletions docs/chainlink-nodes/oracle-jobs/task-types/task_eth_call.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Makes a non-mutating contract call to the specified contract with the specified
- `contract`: the address of the contract to call.
- `data`: the data to attach to the call (including the function selector).
- `gas`: the amount of gas to attach to the transaction.
- `from`: The from address with which the call should be made. Defaults to zero address.
- `gasUnlimited`: boolean indicating if unlimited gas should be provided for the call. If set to true, `gas` parameter should not be passed.
- `gasPrice`: The gasPrice for the call. Defaults to zero.
- `gasTipCap`: The gasTipCap (EIP-1559) for the call. Defaults to zero.
- `gasFeeCap`: The gasFeeCap (EIP-1559) for the call. Defaults to zero.

**Outputs**

Expand Down
27 changes: 27 additions & 0 deletions docs/chainlink-nodes/oracle-jobs/task-types/task_length.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: nodes.liquid
section: nodeOperator
date: Last Modified
title: "Length Task"
permalink: "docs/jobs/task-types/length/"
---

Returns the length of a byte array or string.

**Parameters**

- `input`: Byte array, or string to get the length for.

**Outputs**

The length of the byte array or string.

**Note**: For strings containing multi-byte unicode characters, the output is the length in bytes and not number of characters.

**Example**

```jpv2
my_length_task [type="length" input="xyz"]
```

Given the input string "xyz", the task will return 3, length of the string.
34 changes: 34 additions & 0 deletions docs/chainlink-nodes/oracle-jobs/task-types/task_lessthan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: nodes.liquid
section: nodeOperator
date: Last Modified
title: "Less Than Task"
permalink: "docs/jobs/task-types/lessthan/"
---

Returns a boolean, result of computing `left` < `right`.

**Parameters**

- `left`: the left hand side of comparison. Possible values:
- number
- stringified number
- bytes-ified number
- `$(variable)`
- `right`: the right hand side of comparison. Possible values:
- number
- stringified number
- bytes-ified number
- `$(variable)`

**Outputs**

The result of less than comparison.

**Example**

```jpv2
my_lessthan_task [type="lessthan" left="3" right="10"]
```

the task will return true which is the result of `3 < 10`