EIP712Legacy class

Represents a typed data structure for EIP-712 version 1. This class implements the EIP712Base interface for encoding data according to EIP-712 specifications.

Implemented types

Constructors

EIP712Legacy(List<Eip712TypedDataV1> typesData)
Constructor for EIP712Legacy, accepting a list of Eip712TypedDataV1 instances.
const
EIP712Legacy.fromJson(List<Map<String, dynamic>> messages)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typesData List<Eip712TypedDataV1>
List of Eip712TypedDataV1 instances representing the typed data fields.
final
version EIP712Version
The version of the EIP-712 specification used by this implementation.
final

Methods

encode() List<int>
Encodes the typed data structure into a list of integers using EIP-712 version 1.
override
encodeHex() String
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