License
Inherits: ILicense, AccessControlInternal, EIP712
State Variables
SIGN_LICENSE_TYPEHASH
bytes32 private constant SIGN_LICENSE_TYPEHASH = keccak256("SignLicense(string licenseURI,bytes32 contentURIHash)");Functions
signLicense
User
function signLicense(bytes calldata signature) external override;revokeCurrentSignature
Admin
function revokeCurrentSignature(address account) external onlyRole(AccessControlStorage.DEFAULT_ADMIN_ROLE);setLicenseURI
function setLicenseURI(string memory uri, bytes32 contentHash)
external
onlyRole(AccessControlStorage.DEFAULT_ADMIN_ROLE);licenseVersion
function licenseVersion() public view override returns (uint256);licenseURIOf
function licenseURIOf(uint256 version) public view override returns (string memory);licenseURI
function licenseURI() external view override returns (string memory);contentURIHash
function contentURIHash() external view override returns (bytes32);hasSignedCurrentLicense
function hasSignedCurrentLicense(address account) external view override returns (bool);_buildDigest
function _buildDigest() internal view virtual returns (bytes32);_domainNameAndVersion
function _domainNameAndVersion() internal view override returns (string memory name, string memory version);_domainNameAndVersionMayChange
function _domainNameAndVersionMayChange() internal pure override returns (bool result);_setLicenseURI
function _setLicenseURI(string memory uri, bytes32 contentHash) internal;