Download the PHP package enjin/php-blockchain-tools without Composer
On this page you can find all versions of the php package enjin/php-blockchain-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enjin/php-blockchain-tools
More information about enjin/php-blockchain-tools
Files in enjin/php-blockchain-tools
Package php-blockchain-tools
Short Description Tools for handling hex numbers and decoding contract data.
License
Informations about the package php-blockchain-tools
Blockchain Tools
Hex Data
HexConverter
See: Enjin\BlockchainTools\HexConverter
Contains static utility functions for handling decimal and hex data.
Conversion Method Reference
Method | From | To |
---|---|---|
hexToInt |
signed int (base 16) | signed int (base 10) |
intToHex |
signed int (base 10) | signed int (base 16) |
intToHexPrefixed |
0x prefixed |
|
hexToUInt |
unsigned int (base 16) | unsigned int (base 10) |
uIntToHex |
unsigned int (base 10) | unsigned int (base 16) |
uIntToHexPrefixed |
0x prefixed |
|
hexToString |
hex encoded string (base 16) | decoded string |
stringToHex |
decoded string | hex encoded string (base 16) |
stringToHexPrefixed |
0x prefixed |
|
hexToBytes |
hex encoded bytes (base 16) | array of bytes |
bytesToHex |
array of bytes | hex encoded bytes (base 16) |
bytesToHexPrefixed |
0x prefixed |
|
hexToAddress |
hex string | address |
hexToAddressPrefixed |
0x prefixed |
|
addressToEventTopic |
address | address padded to event topic |
addressToEventTopicPrefixed |
0x prefixed |
BigHex
See: Enjin\BlockchainTools\BigHex
Object for handling large hex numbers.
HexUInt Classes
Classes to represent and convert all valid UInt values are in the HexNumber\HexUInt
namespace.
HexInt Classes
Classes to represent and convert all valid Int values are in the HexNumber\HexInt
namespace.
ABI Contracts
Contract Data Types not currently supported
- string[]
- bytes[]
- multi-dimensional arrays (uint16[][])
- tuple
- fixed
- ufixed
ContractStore
Used to lazy load and re-use parsed abi json data. Create and re-use an instance of this class in your application to lazy load and cache processed abi files.
See: Enjin\BlockchainTools\Ethereum\ABI\ContractStore
Custom Contract Serializers
Custom serializers may be registered for contracts or specific functions/events.
See: Enjin\BlockchainTools\Ethereum\ABI\DataBlockDecoder
See: Enjin\BlockchainTools\Ethereum\ABI\DataBlockDecoder
See: Enjin\BlockchainTools\Ethereum\ABI\DataBlockDecoder\BasicDecoder
See: Enjin\BlockchainTools\Ethereum\ABI\DataBlockDecoder\BasicEncoder
Contract
Interface to interact with an ABI contract.
See: Enjin\BlockchainTools\Ethereum\ABI\Contract
ContractFunction
Represents an ABI contract function.
See: Enjin\BlockchainTools\Ethereum\ABI\Contract\ContractFunction
ContractEvent
Represents an ABI contract event.
See: Enjin\BlockchainTools\Ethereum\ABI\Contract\ContractEvent
Generated Classes
The following classes are generated by running php ./bin/generate-classes.php
:
\Enjin\BlockchainTools\HexNumber\HexInt
\Enjin\BlockchainTools\HexNumber\HexUInt
\Enjin\BlockchainTools\HexNumber\HexInt\HexInt*
\Enjin\BlockchainTools\HexNumber\HexUInt\HexUInt*
To generate the HexUInt
and HexInt