ILicense

Functions

signLicense

Allows a user to sign the current license.

function signLicense(bytes calldata signature) external;

contentURIHash

Returns the hash of the current license URI.

function contentURIHash() external view returns (bytes32);

licenseURI

Returns the URI of the current license.

function licenseURI() external view returns (string memory);

licenseURIOf

Returns the URI of a specific license version.

function licenseURIOf(uint256 version) external view returns (string memory);

licenseVersion

Returns the current license version.

hasSignedCurrentLicense

Returns true if the account has signed the current license version.

Events

LicenseSigned

Emitted when an account signs a license version.

LicenseURIUpdated

Emitted when a new license URI is set.

LicenseSignatureRevoked

Emitted when a license signature is revoked.

Errors

License__AlreadySigned

License__InvalidURI

License__NotSigned

License__NoLicenseToSign

License__SignatureNotFound

License__InvalidSignature