web3dart/src/contracts/abi/types library
Classes
-
AbiType<
T> - A type that can be encoded and decoded as specified in the solidity ABI, available at https://solidity.readthedocs.io/en/develop/abi-spec.html
-
DecodingResult<
T> - EncodingLengthInfo
- Information about whether the length of an encoding depends on the data (dynamic) or is fixed (static). If it's static, also contains information about the length of the encoding.
Constants
- sizeUnitBytes → const int
- The length of the encoding of a solidity type is always a multiplicative of this unit size.
Functions
-
calculatePadLength(
int bodyLength, {bool allowEmpty = false}) → int -
Calculates the amount of padding bytes needed so that the length of the
padding plus the
bodyLength
is a multiplicative of sizeUnitBytes. IfallowEmpty
(defaults to false) is true, an empty length is allowed. Otherwise an emptybodyLength
will be given a full sizeUnitBytes padding. -
parseAbiType(
String name) → AbiType - Parses an ABI type from its AbiType.name.