NAME
Web3::Tiny::ABI - Solidity ABI encoding/decoding
DESCRIPTION
Supports the common scalar types (uintN, intN, address, bool, bytesN, dynamic bytes/string) plus T[] and T[k] arrays of them. Does not support tuples/structs or arrays-of-arrays -- if you need those, this is intentionally the "tiny" subset.
Integers are accepted as plain Perl numbers, numeric strings, or Math::BigInt objects, and are returned from decode_result as Math::BigInt objects (uint256 routinely exceeds native int range). address values are accepted/returned as "0x..."-prefixed 40-hex-char strings. bytesN/bytes values are accepted/returned as raw byte strings unless given as a "0x..."-prefixed hex string, in which case that convention is preserved on decode too... actually bytes/bytesN are always *returned* as raw bytes; only address round-trips as hex text.