General Attestation Registry. Supports various attestations identified by their EAS schema UIDs. Issuers can specify valid attestors for their offerings.
function attestCustomerIdentification(address customer, bytes calldata data) public returns (bytes32);
Parameters
Name
Type
Description
customer
address
The address of the customer.
data
bytes
The attestation data.
attestLocation
Attest location: fields - country, state, city.
function attestLocation(address investor, bytes calldata data) public returns (bytes32);
Parameters
Name
Type
Description
investor
address
The address of the investor.
data
bytes
The attestation data.
getInvestorQualificationAttestation
Get an investor's attestation for investor qualification.
function getInvestorQualificationAttestation(address investor) public view returns (Attestation memory);
Parameters
Name
Type
Description
investor
address
The address of the investor.
Returns
Name
Type
Description
<none>
Attestation
attestation The attestation data.
getCustomerIdentificationAttestation
Get an investor's attestation for customer identification.
function getCustomerIdentificationAttestation(address investor) public view returns (Attestation memory);
Parameters
Name
Type
Description
investor
address
The address of the investor.
Returns
Name
Type
Description
<none>
Attestation
attestation The attestation data.
getLocationAttestation
Get an investor's attestation for location.
function getLocationAttestation(address investor) public view returns (Attestation memory);
Parameters
Name
Type
Description
investor
address
The address of the investor.
Returns
Name
Type
Description
<none>
Attestation
attestation The attestation data.
revokeInvestorQualification
Revoke an investor's attestation for investor qualification.
function revokeInvestorQualification(address investor) public;
Parameters
Name
Type
Description
investor
address
The address of the investor.
revokeCustomerIdentification
Revoke an investor's attestation for customer identification.
function revokeCustomerIdentification(address investor) public;
Parameters
Name
Type
Description
investor
address
The address of the investor.
revokeLocation
Revoke an investor's attestation for location.
function revokeLocation(address investor) public;
Parameters
Name
Type
Description
investor
address
The address of the investor.
setValidAttestor
Allow issuers to set valid attestors for their offerings.
function setValidAttestor(address attestor, bool isValid) public;
Parameters
Name
Type
Description
attestor
address
The address of the attestor.
isValid
bool
A boolean indicating if the attestor is valid.
setEAS
(Test Only) Set the EAS backend.
function setEAS(address eas) external onlyRole(DEFAULT_ADMIN_ROLE);
Parameters
Name
Type
Description
eas
address
The address of the new IEAS contract.
isInvestorQualificationValid
Check if an attestation is valid for an issuer's offering for investor qualification.
function isInvestorQualificationValid(address investor, address issuer) public view returns (bool);
Parameters
Name
Type
Description
investor
address
The address of the investor.
issuer
address
The address of the issuer.
Returns
Name
Type
Description
<none>
bool
isValid A boolean indicating if the attestation is valid.
isCustomerIdentificationValid
Check if an attestation is valid for an issuer's offering for customer identification.
function isCustomerIdentificationValid(address investor, address issuer) public view returns (bool);
Parameters
Name
Type
Description
investor
address
The address of the investor.
issuer
address
The address of the issuer.
Returns
Name
Type
Description
<none>
bool
isValid A boolean indicating if the attestation is valid.
isLocationValid
Check if an attestation is valid for an issuer's offering for location.
function isLocationValid(address investor, address issuer) public view returns (bool);
Parameters
Name
Type
Description
investor
address
The address of the investor.
issuer
address
The address of the issuer.
Returns
Name
Type
Description
<none>
bool
isValid A boolean indicating if the attestation is valid.
requestCustomerIdentificationAttestation
Request a customer identification attestation by depositing 0.0001 ETH in escrow. The payment will be held until an attestor processes the attestation.
function requestCustomerIdentificationAttestation() external payable returns (bool);
updateCustomerIdentification
Update an attestation for customer identification by revoking the existing one (if any) and issuing a new one.
function updateCustomerIdentification(address customer, bytes calldata data) external returns (bytes32);