TokenRegistry
function
addToken
Restricted (onlyOwner, tokenDoesNotExist, addressNotNull, symbolDoesNotExist, nameDoesNotExist)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _token | address | |
| _name | string | |
| _symbol | string | |
| _decimals | uint8 | |
| _ipfsHash | bytes | |
| _swarmHash | bytes |
Outputs
(void)
function
setTokenIpfsHash
Restricted (onlyOwner, tokenExists)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _token | address | |
| _ipfsHash | bytes |
Outputs
(void)
function
setTokenSwarmHash
Restricted (onlyOwner, tokenExists)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _token | address | |
| _swarmHash | bytes |
Outputs
(void)
function
removeToken
Restricted (onlyOwner, tokenExists)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _token | address | |
| _index | uint256 |
Outputs
(void)
function
setTokenName
Restricted (onlyOwner, tokenExists, nameDoesNotExist)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _token | address | |
| _name | string |
Outputs
(void)
function
setTokenSymbol
Restricted (onlyOwner, tokenExists, symbolDoesNotExist)
Inputs
| Parameter | Type | Description |
|---|---|---|
| _token | address | |
| _symbol | string |
Outputs
(void)
function
getTokenBySymbol
Inputs
| Parameter | Type | Description |
|---|---|---|
| _symbol | string |
Outputs
| Type | Description |
|---|---|
| address | |
| string | |
| string | |
| uint8 | |
| bytes | |
| bytes |
function
getTokenAddresses
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address[] |
function
getTokenByName
Inputs
| Parameter | Type | Description |
|---|---|---|
| _name | string |
Outputs
| Type | Description |
|---|---|
| address | |
| string | |
| string | |
| uint8 | |
| bytes | |
| bytes |
function
getTokenMetaData
Inputs
| Parameter | Type | Description |
|---|---|---|
| _token | address |
Outputs
| Type | Description |
|---|---|
| address | |
| string | |
| string | |
| uint8 | |
| bytes | |
| bytes |
event
LogTokenSwarmHashChange
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| oldSwarmHash | bytes | |
| newSwarmHash | bytes |
Outputs
(void)
event
LogTokenIpfsHashChange
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| oldIpfsHash | bytes | |
| newIpfsHash | bytes |
Outputs
(void)
event
LogTokenSymbolChange
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| oldSymbol | string | |
| newSymbol | string |
Outputs
(void)
event
LogTokenNameChange
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| oldName | string | |
| newName | string |
Outputs
(void)
event
LogRemoveToken
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| name | string | |
| symbol | string | |
| decimals | uint8 | |
| ipfsHash | bytes | |
| swarmHash | bytes |
Outputs
(void)
event
LogAddToken
Inputs
| Parameter | Type | Description |
|---|---|---|
| token | address | |
| name | string | |
| symbol | string | |
| decimals | uint8 | |
| ipfsHash | bytes | |
| swarmHash | bytes |
Outputs
(void)
function
transferOwnership
Inputs
| Parameter | Type | Description |
|---|---|---|
| newOwner | address |
Outputs
(void)
function
tokenAddresses
Inputs
| Parameter | Type | Description |
|---|---|---|
| uint256 |
Outputs
| Type | Description |
|---|---|
| address |
function
tokens
Inputs
| Parameter | Type | Description |
|---|---|---|
| address |
Outputs
| Type | Description |
|---|---|
| address | |
| string | |
| string | |
| uint8 | |
| bytes | |
| bytes |
function
owner
Inputs
(void)
Outputs
| Type | Description |
|---|---|
| address |
function
getTokenAddressBySymbol
Inputs
| Parameter | Type | Description |
|---|---|---|
| _symbol | string |
Outputs
| Type | Description |
|---|---|
| address |
function
getTokenAddressByName
Inputs
| Parameter | Type | Description |
|---|---|---|
| _name | string |
Outputs
| Type | Description |
|---|---|
| address |