Notifications (Events)

DApps can subscribe to the following events being emitted by Quadrata's smart contracts to get notified in real time.

Event SetAttributeReceipt

Emitted when a passport attribute is issued or updated
IQuadPassport.sol
import "@quadrata/contracts/interfaces/IQuadPassport.sol";
event SetAttributeReceipt(
address indexed _account, // Address of the Passport holder
address indexed _issuer, // Address of the Passport Issuer
uint256 _fee // Fee paid to the Passport Issuer
);

Event BurnPassportsIssuer

Emitted when a passport has been burned by a Passport Issuer
IQuadPassport.sol
import "@quadrata/contracts/interfaces/IQuadPassport.sol";
event BurnPassportsIssuer(
address indexed _issuer, // Address of the Passport holder
address indexed _account // Address of the Passport Issuer
);

Event QueryEvent

Emitted when an attribute is queried for a Passport holder
IQuadReader.sol
import "@quadrata/contracts/interfaces/IQuadReader.sol";
event QueryEvent(
address indexed _account, // Address of the Passport holder
address indexed _caller, // Address of the smart contract querying the info
bytes32 _attribute // Attribute being queried
);

Event QueryEventBulk

Emitted when multiple attributes are queried for a Passport holder
IQuadReader.sol
import "@quadrata/contracts/interfaces/IQuadReader.sol";
event QueryBulkEvent(
address indexed _account, // Address of the Passport holder
address indexed _caller, // Address of the smart contract querying the info
bytes32[] _attributes // List of attributes being queried
);