Skip to main content

Events

The attribute module emits the following events:


Attribute Added

Fires when an attribute is successfully added.

TypeAttribute KeyAttribute Value
EventAttributeAddName{name string}
EventAttributeAddValue{attribute value}
EventAttributeAddType{attribute value type}
EventAttributeAddAccount{account address}
EventAttributeAddOwner{owner address}
EventAttributeAddExpiration{expiration date/time}

provenance.attribute.v1.EventAttributeAdd


Attribute Updated

Fires when an existing attribute is successfully updated.

TypeAttribute KeyAttribute Value
EventAttributeUpdateName{name string}
EventAttributeUpdateOriginalValue{attribute value}
EventAttributeUpdateOriginalType{attribute value type}
EventAttributeUpdateUpdateValue{new attribute value}
EventAttributeUpdateUpdateType{new attribute value type}
EventAttributeUpdateAccount{account address}
EventAttributeUpdateOwner{owner address}

provenance.attribute.v1.EventAttributeUpdate


Attribute Expiration Updated

Fires when an existing attribute's expiration is successfully updated.

TypeAttribute KeyAttribute Value
EventAttributeExpirationUpdateName{name string}
EventAttributeExpirationUpdateValue{attribute value}
EventAttributeExpirationUpdateAccount{account address}
EventAttributeExpirationUpdateOwner{owner address}
EventAttributeExpirationUpdateOriginalExpiration{old expiration date/time}
EventAttributeExpirationUpdateUpdatedExpiration{new expiration date/time}

Attribute Deleted

Fires when an existing attribute is deleted.

TypeAttribute KeyAttribute Value
EventAttributeDeleteName{name string}
EventAttributeDeleteAccount{account address}
EventAttributeDeleteOwner{owner address}

provenance.attribute.v1.EventAttributeDelete


Distinct Attribute Deleted

Fires when an existing attribute is deleted distinctly.

TypeAttribute KeyAttribute Value
EventAttributeDistinctDeleteName{name string}
EventAttributeDistinctDeleteValue{attribute value}
EventAttributeDistinctDeleteAttributeType{attribute value type}
EventAttributeDistinctDeleteOwner{owner address}
EventAttributeDistinctDeleteAccount{account address}

provenance.attribute.v1.EventAttributeDistinctDelete


Attribute Expired

Fires when an attribute's expriration date/time has been reached and the attribute has been deleted.

TypeAttribute KeyAttribute Value
EventAttributeExpiredName{name string}
EventAttributeExpiredValue{attribute value}
EventAttributeExpiredAttributeType{attribute value type}
EventAttributeExpiredAccount{account address}
EventAttributeExpiredOwner{owner address}
EventAttributeExpiredExpiration{expiration date/time}

Account Data Updated

Fires when account data is updated for an account.

TypeAttribute KeyAttribute Value
EventAccountDataUpdatedAccount{account address}