Skip to content

Latest commit

 

History

History
128 lines (73 loc) · 2.61 KB

creditEvents.md

File metadata and controls

128 lines (73 loc) · 2.61 KB

CreditEvents Module

This document defines CreditEvents Module for the CMTA Token specification.

[TOC]

Rationale

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.

Schema

Inheritance

surya_inheritance_CreditEventsModule.sol

UML

CreditEventsModule

Graph

surya_graph_CreditEventsModule.sol

API for Ethereum

This section describes the Ethereum API of CreditEvents Module.

Functions

setCreditEvents(bool,bool,string)

Definition:
function setCreditEvents(bool flagDefault_,bool flagRedeemed_,string memory rating_) 
public onlyRole(DEBT_CREDIT_EVENT_ROLE)
Description:

Set the optional Credit Events with the different parameters. Only authorized users are allowed to call this function.

setFlagDefault(bool flagDefault_)

Definition:
function setFlagDefault(bool flagDefault_) 
public onlyRole(DEBT_CREDIT_EVENT_ROLE)
Description:

Set the optional flagDefault to the given flagDefault_. Only authorized users are allowed to call this function.

setFlagRedeemed (bool)

Definition:
function setFlagRedeemed(bool flagRedeemed_) 
public onlyRole(DEBT_CREDIT_EVENT_ROLE) 
Description:

Set the optional flagRedeemed to the given flagRedeemed. Only authorized users are allowed to call this function.

setRating(string)

Definition:
function setRating(string memory rating_) 
public onlyRole(DEBT_CREDIT_EVENT_ROLE)
Description:

Set the optional attribute rating to the given rating_. Only authorized users are allowed to call this function.

Events

FlagDefault(bool

Definition:
event FlagDefault(bool indexed newFlagDefault)
Description:

Emitted when the attribute flagDefault is set.

FlagRedeemed(bool)

Definition:
event FlagRedeemed(bool indexed newFlagRedeemed)
Description:

Emitted when the attribute flagRedeemed is set.

Rating(string, string)

Definition:
event Rating(string indexed newRatingIndexed, string newRating)
Description:

Emitted when the attribute rating is set.