ABIDefinedType - ARitz-Cracker/arc-web3 GitHub Wiki

This library does its best to translate Solidity data types in to JavaScript data types in an actually usable way. Below is a table comparing Solidity types with JavaScript types.

Solidity JavaScript Notes
uint8 Number
... ...
uint48 Number
uint56 BigNumber
... ...
uint256 BigNumber
uint BigNumber Alias of uint256
int8 Number
... ...
int48 Number
int56 BigNumber
... ...
int256 BigNumber
int BigNumber Alias of int256
ufixed (Currently not supported)
fixed (Currently not supported)
address AddressString EthereumAccount and EthereumContract also accepted for function arguments
bytes1 Buffer/Uint8Array Buffer length must equal 1
... ...
bytes32 Buffer/Uint8Array Buffer length must equal 32
bytes Buffer/Uint8Array
string String
<anyAboveType>[N] Array Array length must be equal to N
<anyAboveType>[] Array