Skip to main content

Events

Events are emitted following the messages execution.


// Emitted on Notarise Msg
message EventNotarise {
// The id of the notary info
uint64 id = 1;
// The hash of the input data
string data_hash= 2;
// Post verification action contract interaction address
string post_verification_action_address = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
}

// Emitted on decentralised application registration of a notary info
message EventRegisterNotaryInfo{
// The id of the notary info
uint64 id = 1;
// The address used to create this object and can be used to update it
string notary_info_admin = 2
[ (cosmos_proto.scalar) = "cosmos.AddressString" ];
// The verification mechanism contract info
VerificationMechanism verification_mechanism = 3;
// The post verification action
PostVerificationAction post_verification_action = 4;
}

// Emitted on both updates: VerificationMechanism and PostVerificationAction
message EventUpdateNotaryInfo{
// The id of the notary info
uint64 id = 1;
// The verification mechanism contract info
VerificationMechanism verification_mechanism = 2;
// The post verification action
PostVerificationAction post_verification_action = 3;
}

// Emitted on notary info deletion
message EventDeleteNotaryInfo{
// The id of the notary info
uint64 id = 1;
}

// Emitted on notary info admin update
message EventUpdateNotaryInfoAdmin{
// The id of the notary info
uint64 id = 1;
// The address used to create this object and can be used to update it
string new_notary_info_admin= 2
[ (cosmos_proto.scalar) = "cosmos.AddressString" ];
}