Ether Binder
Set of utilities for interacting with Ethereum and it's smart contracts with PHP, with generating ABI bindings and Ethereum-related types
|
Static Public Member Functions | |
static | fromHuman (float|int|string|OOGmp $human, int|string|EtherFormats $format=EtherFormats::ETHER) |
static | fromWei (int|string|OOGmp $wei, int $finalDecimals, int|string|EtherFormats $format=EtherFormats::ETHER) |
WeiFormatter class for parsing back and forth human-readable format with specific denominations of ether, most commonly used for WEI.
|
static |
Converts a value from human format.
float | int | string | OOGmp | $human | The input human value. |
int | string | EtherFormats | $format | The input format. |
|
static |
Converts Wei to another format.
int | string | OOGmp | $wei | The input value in Wei. |
int | $finalDecimals | The final decimal places to keep. |
int | string | EtherFormats | $format | The output format. |