This document defines Base Module for the CMTA Token specification.
[TOC]
The Base Module sets forth the basic functionalities a token must have to comply with the CMTAT framework, for tokens representing equity securities as well as tokens representing and debt securities. Here a quick list :
- Terms of tokenization
- Token ID (ISIN or other identifier)
- Others fields to allow the issuer to add additional information: information, flag
- The "killswitch" function
File Name | SHA-1 Hash |
---|---|
./modules/wrapper/mandatory/BaseModule.sol | 2f3dff2a6760314b7469f2c1e95edc2a73709359 |
Contract | Type | Bases | ||
---|---|---|---|---|
└ | Function Name | Visibility | Mutability | Modifiers |
BaseModule | Implementation | AuthorizationModule, OnlyDelegateCallModule | ||
└ | __Base_init | Internal 🔒 | 🛑 | onlyInitializing |
└ | __Base_init_unchained | Internal 🔒 | 🛑 | onlyInitializing |
└ | setTokenId | Public ❗️ | 🛑 | onlyRole |
└ | setTerms | Public ❗️ | 🛑 | onlyRole |
└ | setInformation | Public ❗️ | 🛑 | onlyRole |
└ | setFlag | Public ❗️ | 🛑 | onlyRole |
└ | kill | Public ❗️ | 🛑 | onlyRole onlyDelegateCall |
Symbol | Meaning |
---|---|
🛑 | Function can modify state |
💵 | Function is payable |
function setTokenId(string memory tokenId_)
public
Set the token id
to the given string
.
Only authorized users are allowed to call this function.
function setTerms(string memory terms_)
public onlyRole(DEFAULT_ADMIN_ROLE)
Set the terms
to the given string
.
Only authorized users are allowed to call this function.
function setInformation(string memory information_)
public onlyRole(DEFAULT_ADMIN_ROLE)
Set the informationto the given
uint256`.
Only authorized users are allowed to call this function.
function setFlag(uint256 flag_)
public onlyRole(DEFAULT_ADMIN_ROLE)
Set the flag
to the given uint256
.
Only authorized users are allowed to call this function.
function kill()
public onlyRole(DEFAULT_ADMIN_ROLE) onlyDelegateCall(deployedWithProxy)
Destroys the contract, send the remaining ethers to msg.sender
event Term(string indexed newTermIndexed, string newTerm)
Emitted when the variable terms
is set to newTerm
.
event TokenId(string indexed newTokenIdIndexed, string newTokenId)
Emitted when tokenId
is set to newTokenId
.
event Information(string indexed newInformationIndexed, string newInformation)
Emitted when the variable information
is set to newInformation
.
event Flag(uint256 indexed newFlag)
Emitted when the variable flag
is set to newFlag
.