AddressCoder class
ABICoder implementation for encoding and decoding Ethereum and Tron addresses.
- Implemented types
Constructors
- AddressCoder()
-
Creates an instance of the AddressCoder class.
const
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
-
abiEncode(
AbiParameter params, SolidityAddress input) → EncoderResult -
Encodes a BaseHexAddress to ABI-encoded bytes.
The resulting bytes include Ethereum or Tron address bytes
override
-
decode(
AbiParameter params, List< int> bytes) → DecoderResult<SolidityAddress> -
Decodes a BaseHexAddress from the given ABI-encoded bytes.
Supports both Ethereum and Tron address formats based on the
tronTypes
flag.override -
legacyEip712Encode(
AbiParameter params, SolidityAddress input, bool keepSize) → EncoderResult -
Legacy EIP-712 encoding for BaseHexAddress.
Optionally keeps the size unchanged based on the
keepSize
parameter.override -
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
Constants
- addrLength → const int
- Constant defining the length of Ethereum and Tron addresses in bytes.