ERC5267

Git Source

Inherits: IERC5267, ERC712

Functions

constructor

Constructs the contract.

constructor() ERC712();

_initializeERC5267

function _initializeERC5267() internal;

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

NameTypeDescription
fields_bytes1A 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_stringThe user readable name of signing domain.
version_stringThe current major version of the signing domain.
chainId_uint256The EIP-155 chain ID.
verifyingContract_addressThe address of the contract that will verify the signature.
salt_bytes32A 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.