RulesEngineProcessorLib.sol
RulesEngineProcessorLib
Functions
_uintToBool
converts a uint256 to a bool
Parameters
Name | Type | Description |
---|---|---|
_x | uint256 | the uint256 to convert |
_boolToUint
converts a bool to an uint256
Parameters
Name | Type | Description |
---|---|---|
_x | bool | the bool to convert |
_uintToAddr
converts a uint256 to an address
Parameters
Name | Type | Description |
---|---|---|
_x | uint256 | the uint256 to convert |
_uintToBytes
converts a uint256 to a bytes
Parameters
Name | Type | Description |
---|---|---|
_x | uint256 | the uint256 to convert |
_extractStringData
Helper function to extract the actual string data from an ABI-encoded string
Parameters
Name | Type | Description |
---|---|---|
_encodedString | bytes | The ABI-encoded string to extract the data from |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes | stringData The extracted string data (length + content) |
_extractDynamicArrayData
Extracts a dynamic array (length + values with their lengths) from ABI-encoded data
Parameters
Name | Type | Description |
---|---|---|
_encodedArray | bytes | The ABI-encoded array data |
Returns
Name | Type | Description |
---|---|---|
_result | bytes | The extracted array data |