Readonly
primaryThe primary type for the structured [[types]].
This is derived automatically from the [[types]], since no recursion is possible, once the DAG for the types is consturcted internally, the primary type must be the only remaining type with no parent nodes.
The types.
Call %%calback%% for each value in %%value%%, passing the type and component within %%value%%.
This is useful for replacing addresses or other transformation that may be desired on each component, based on its type.
Static
encodeReturn the fully encoded [[link-eip-712]] %%value%% for %%types%% with %%domain%%.
Static
fromCreate a new TypedDataEncoder for %%types%%.
Static
getReturns the JSON-encoded payload expected by nodes which implement the JSON-RPC [[link-eip-712]] method.
Static
getReturn the primary type for %%types%%.
Static
hashReturn the hash of the fully encoded [[link-eip-712]] %%value%% for %%types%% with %%domain%%.
Static
hashReturn the domain hash for %%domain%%.
Static
hashReturn the hashed struct for %%value%% using %%types%% and %%name%%.
Static
resolveResolves to the value from resolving all addresses in %%value%% for %%types%% and the %%domain%%.
Create a new TypedDataEncoder for %%types%%.
This performs all necessary checking that types are valid and do not violate the [[link-eip-712]] structural constraints as well as computes the [[primaryType]].