TokenManager.sol
Functions
create
Creates token for the subject, mints initial supply & transfers it to the creator. Only those who have CREATE_ROLE
role have access to this function.
function create(
address _subject,
string memory _name,
string memory _symbol,
uint256 _initialSupply,
address _moxiePassVerifier
) external whenNotPaused onlyRole(CREATE_ROLE) returns (address token_)
Parameters
Name | Type | Description |
---|---|---|
_subject | address | Address of subject for which token is getting deployed. |
_name | string | Name of token getting deployed. |
_symbol | string | Symbol of token getting deployed. |
_initialSupply | uint256 | Initial supply of token getting deployed. |
_moxiePassVerifier | address | Address of moxie pass verifier contract. |
Return Value
Name | Type | Description |
---|---|---|
token_ | address | Address of deployed subject token contract. |
mint
Mint for the subject's token.
function mint(
address _subject,
address _beneficiary,
uint256 _amount
) public whenNotPaused onlyRole(MINT_ROLE) returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_subject | address | Subject for which shares needs to be minted. |
_beneficiary | address | Beneficiary of minted token. |
_amount | uint256 | Amount of tokens to mint. |
Return Value
Name | Type | Description |
---|---|---|
isMinted | bool | Return true if the mint is successful. Otherwise, return false . |