Collaboration diagram for Primitive Types:Classes | |
| class | EthBytes |
| class | EthD |
| class | EthD20 |
| class | EthD32 |
| class | EthQ |
| class | EthS |
Functions | |
| validate ($val, array $params) | |
| validate ($val, array $params) | |
| validate ($val, array $params) | |
All data primitive types in Ethereum-PHP are derived from EthD.
| validate | ( | $val, | |
| array | $params | ||
| ) |
Implement validation.
| string | number | $val | "0x"prefixed hexadecimal or number value. |
| array | $params | Only $param['abi'] is relevant. |
| InvalidArgumentException | Can not decode int value. If things are wrong. |
| validate | ( | $val, | |
| array | $params | ||
| ) |
Implement validation.
| string | $val | 0x prefixed ABI encoded value. |
| array | $params | Only $param['abi'] is relevant. |
Definition at line 33 of file EthBytes.php.
References EthereumStatic\ensureHexPrefix(), and EthereumStatic\removeHexPrefix().
Here is the call graph for this function:| validate | ( | $val, | |
| array | $params | ||
| ) |
Implement validation.
| string | $val | "0x"prefixed hexadecimal byte value. |
| array | $params | Only $param['abi'] is relevant. |
| InvalidArgumentException | Can not decode hex binary |
Definition at line 184 of file EthD.php.
References EthereumStatic\ensureHexPrefix(), and EthD\validateHexString().
Here is the call graph for this function: