The entity module emits the following typed events:
Emitted after a successful MsgCreateEntity
type EntityCreatedEvent struct {
Entity *Entity
Signer string
}
The field's descriptions is as follows:
entity
- the full Entitysigner
- a string containing the did of the signer.
Emitted after a successful MsgUpdateEntity
, MsgUpdateEntityVerified
, MsgTransferEntity
, MsgCreateEntityAccount
whereby a field of the entity struct gets updated.
type EntityUpdatedEvent struct {
Entity *Entity
Signer string
}
The field's descriptions is as follows:
entity
- the full Entitysigner
- a string containing the did of the signer or the address of the signer.
Emitted after a successful MsgUpdateEntityVerified
type EntityVerifiedUpdatedEvent struct {
Id string
Signer string
EntityVerified bool
}
The field's descriptions is as follows:
id
- a string containing the unique identifier of the entity.signer
- a string containing the did of the signer (will therelayerNode
did in this case).entityVerified
- a boolean indicating whether the entity is verified or not.
Emitted after a successful MsgTransferEntity
type EntityTransferredEvent struct {
Id string
From string
To string
}
The field's descriptions is as follows:
id
- a string containing the unique identifier of the entity.to
- a string containing the did of the new owner.from
- a string containing the did of the previous owner.
Emitted after a successful MsgCreateEntityAccount
type EntityAccountCreatedEvent struct {
Id string
Signer string
AccountName string
AccountAddress string
}
The field's descriptions is as follows:
id
- a string containing the unique identifier of the entity.accountName
- a string containing the name of the new entity account.accountAddress
- a string containing the address of the new entity account.signer
- a string containing the address of the signer.
Emitted after a successful MsgGrantEntityAccountAuthz
type EntityAccountAuthzCreatedEvent struct {
Id string
Signer string
AccountName string
Granter string
Grantee string
Grant *Grant
}
The field's descriptions is as follows:
id
- a string containing the unique identifier of the entity.signer
- a string containing the address of the signer.accountName
- a string containing the name of the entity account the authz was granted.granter
- a string containing the address of the entity account the authz was granted.grantee
- a string containing the address of the grantee towards who the authz was granted.grant
- the Grant that was granted.
Emitted after a successful MsgRevokeEntityAccountAuthz
type EntityAccountAuthzRevokedEvent struct {
Id string
Signer string
AccountName string
Granter string
Grantee string
MsgTypeUrl string
}
The field's descriptions is as follows:
id
- a string containing the unique identifier of the entity.signer
- a string containing the address of the signer.accountName
- a string containing the name of the entity account the authz was granted before.granter
- a string containing the address of the entity account the authz was granted before.grantee
- a string containing the address of the grantee towards who the authz was granted before.msgTypeUrl
- a string containing the message type url for the specific authz that was revoked.