PredicateHelper
A helper contract for executing boolean functions on arbitrary target call results
Functions
or
Calls every target with corresponding data
Parameters:
Name | Type | Description |
---|---|---|
| address[] | |
| bytes[] |
Return Values:
Name | Type | Description |
---|---|---|
| bool | True if call to any target returned True. Otherwise, false |
and
Calls every target with corresponding data
Parameters:
Name | Type | Description |
---|---|---|
| address[] | |
| bytes[] |
Return Values:
Name | Type | Description |
---|---|---|
| bool | True if calls to all targets returned True. Otherwise, false |
eq
Calls target with specified data and tests if it's equal to the value
Parameters:
Name | Type | Description |
---|---|---|
| uint256 | Value to test |
| address | |
| bytes |
Return Values:
Name | Type | Description |
---|---|---|
| bool | True if call to target returns the same value as |
lt
Calls target with specified data and tests if it's lower than value
Parameters:
Name | Type | Description |
---|---|---|
| uint256 | Value to test |
| address | |
| bytes |
Return Values:
Name | Type | Description |
---|---|---|
| bool | True if call to target returns value which is lower than |
gt
Calls target with specified data and tests if it's bigger than value
Parameters:
Name | Type | Description |
---|---|---|
| uint256 | Value to test |
| address | |
| bytes |
Return Values:
Name | Type | Description |
---|---|---|
| bool | True if call to target returns value which is bigger than |
timestampBelow
Checks passed time against block timestamp
Parameters:
Name | Type | Description |
---|---|---|
| uint256 |
Return Values:
Name | Type | Description |
---|---|---|
| bool | True if current block timestamp is lower than |
Last updated