TWEthereumAbiValue class abstract

Represents Ethereum ABI value

Implementers

Constructors

TWEthereumAbiValue.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

TWEthereumAbiValueDecodeArray(Pointer<Void> input, Pointer<Utf8> type) Pointer<Utf8>
Decode an array of given simple types. Return a '\n'-separated string of elements
TWEthereumAbiValueDecodeUInt256(Pointer<Void> input) Pointer<Utf8>
Decodes input data (bytes longer than 32 will be truncated) as uint256
TWEthereumAbiValueDecodeValue(Pointer<Void> input, Pointer<Utf8> type) Pointer<Utf8>
Decode an arbitrary type, return value as string
TWEthereumAbiValueEncodeAddress(Pointer<Void> value) Pointer<Void>
Encode an address according to Ethereum ABI, 20 bytes of the address.
TWEthereumAbiValueEncodeBool(bool value) Pointer<Void>
Encode a bool according to Ethereum ABI, into 32 bytes. Values are padded by 0 on the left, unless specified otherwise
TWEthereumAbiValueEncodeBytes(Pointer<Void> value) Pointer<Void>
Encode a number of bytes, up to 32 bytes, padded on the right. Longer arrays are truncated.
TWEthereumAbiValueEncodeBytesDyn(Pointer<Void> value) Pointer<Void>
Encode a dynamic number of bytes by encoding its hash
TWEthereumAbiValueEncodeInt256(Pointer<Void> value) Pointer<Void>
Encode a int256 according to Ethereum ABI, into 32 bytes. Values are padded by 0 on the left, unless specified otherwise
TWEthereumAbiValueEncodeInt32(int value) Pointer<Void>
Encode a int32 according to Ethereum ABI, into 32 bytes. Values are padded by 0 on the left, unless specified otherwise
TWEthereumAbiValueEncodeString(Pointer<Utf8> value) Pointer<Void>
Encode a string according to Ethereum ABI by encoding its hash.
TWEthereumAbiValueEncodeUInt256(Pointer<Void> value) Pointer<Void>
Encode an int256 according to Ethereum ABI, into 32 bytes. Values are padded by 0 on the left, unless specified otherwise
TWEthereumAbiValueEncodeUInt32(int value) Pointer<Void>
Encode a uint32 according to Ethereum ABI, into 32 bytes. Values are padded by 0 on the left, unless specified otherwise