IERC5267
Inherits: IERC712
The interface as defined by EIP-5267: https://eips.ethereum.org/EIPS/eip-5267
Functions
eip712Domain
Returns the fields and values that describe the domain separator used by this contract for EIP-712.
function eip712Domain()
external
view
returns (
bytes1 fields_,
string memory name_,
string memory version_,
uint256 chainId_,
address verifyingContract_,
bytes32 salt_,
uint256[] memory extensions_
);
Returns
| Name | Type | Description |
|---|---|---|
fields_ | bytes1 | A bit map where bit i is set to 1 if and only if domain field i is present (0 ≤ i ≤ 4). Bits are read from least significant to most significant, and fields are indexed in the order that is specified by EIP-712, identical to the order in which they are listed (i.e. name, version, chainId, verifyingContract, and salt). |
name_ | string | The user readable name of signing domain. |
version_ | string | The current major version of the signing domain. |
chainId_ | uint256 | The EIP-155 chain ID. |
verifyingContract_ | address | The address of the contract that will verify the signature. |
salt_ | bytes32 | A disambiguating salt for the protocol. |
extensions_ | uint256[] | A list of EIP numbers, each of which MUST refer to an EIP that extends EIP-712 with new domain fields, along with a method to obtain the value for those fields, and potentially conditions for inclusion. The values of those fields do not affect whether they are included. |
Events
EIP712DomainChanged
MAY be emitted to signal that the domain could have changed.
event EIP712DomainChanged();