ERC712
Inherits: IERC712
State Variables
_EIP712_DOMAIN_HASH
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)")
bytes32 internal constant _EIP712_DOMAIN_HASH = 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f;
_initialChainId
Initial Chain ID set at deployment.
uint256 internal immutable _initialChainId;
_ERC712_STORAGE_LOCATION
bytes32 internal constant _ERC712_STORAGE_LOCATION = 0xc7effa11ad597798220888e5d1ba4eeddcc8c2635d01dae8b9f958ac905c1100;
Functions
_getERC712Storage
function _getERC712Storage() internal pure returns (ERC712Storage storage $);
constructor
Constructs the EIP-712 domain separator.
constructor();
_initializeERC712
function _initializeERC712() internal;
DOMAIN_SEPARATOR
Returns the EIP712 domain separator used in the encoding of a signed digest.
function DOMAIN_SEPARATOR() public view returns (bytes32 domainSeparator_);
_getDomainSeparator
Computes the EIP-712 domain separator.
function _getDomainSeparator() internal view returns (bytes32 domainSeparator_);
Returns
| Name | Type | Description |
|---|---|---|
domainSeparator_ | bytes32 | The EIP-712 domain separator. |
_getDigest
Returns the digest to be signed, via EIP-712, given an internal digest (i.e. hash struct).
function _getDigest(bytes32 internalDigest_) internal view returns (bytes32 digest_);
Parameters
| Name | Type | Description |
|---|---|---|
internalDigest_ | bytes32 | The internal digest. |
Returns
| Name | Type | Description |
|---|---|---|
digest_ | bytes32 | The digest to be signed. |
_name
The name of the contract.
function _name() internal view virtual returns (string memory name_);
_version
The version of the contract.
function _version() internal view virtual returns (string memory version_);
Structs
ERC712Storage
The UUPS storage for the ERC712 contract.
Note: storage-location: erc7201:xmtp.storage.ERC712
struct ERC712Storage {
bytes32 initialDomainSeparator;
}
Properties
| Name | Type | Description |
|---|---|---|
initialDomainSeparator | bytes32 | Initial EIP-712 domain separator set at initialization. |