This document defines CreditEvents Module for the CMTA Token specification.
[TOC]
A number of events may occur during the lifetime of a debt instrument. Contrary to corporate actions, some of these events typically involve third parties (e.g. a bond agent or a rating agency). The issuer may in such cases wish to delegate the relevant functions to the relevant third parties.
This section describes the Ethereum API of CreditEvents Module.
function setCreditEvents(bool flagDefault_,bool flagRedeemed_,string memory rating_)
public onlyRole(DEBT_CREDIT_EVENT_ROLE)
Set the optional Credit Events with the different parameters. Only authorized users are allowed to call this function.
function setFlagDefault(bool flagDefault_)
public onlyRole(DEBT_CREDIT_EVENT_ROLE)
Set the optional flagDefault
to the given flagDefault_
.
Only authorized users are allowed to call this function.
function setFlagRedeemed(bool flagRedeemed_)
public onlyRole(DEBT_CREDIT_EVENT_ROLE)
Set the optional flagRedeemed
to the given flagRedeemed
.
Only authorized users are allowed to call this function.
function setRating(string memory rating_)
public onlyRole(DEBT_CREDIT_EVENT_ROLE)
Set the optional attribute rating
to the given rating_
.
Only authorized users are allowed to call this function.
event FlagDefault(bool indexed newFlagDefault)
Emitted when the attribute flagDefault
is set.
event FlagRedeemed(bool indexed newFlagRedeemed)
Emitted when the attribute flagRedeemed
is set.
event Rating(string indexed newRatingIndexed, string newRating)
Emitted when the attribute rating
is set.