TickerRegistry
contract TickerRegistry
is ITickerRegistry, Util, Pausable, RegistryUpdater, ReclaimTokens
SecurityTokenRegistry would reference this contract and ensure that a token symbol exists here and only its owner can deploy the token with that symbol., Allows issuers to reserve their token symbols ahead of actually generating their security token.
Source: TickerRegistry.sol
Index
Reference
Events
LogChangeExpiryLimit
event LogChangeExpiryLimit(uint256 _oldExpiry, uint256 _newExpiry)
- Parameters:
_oldExpiry
- uint256_newExpiry
- uint256
LogChangePolyRegistrationFee
event LogChangePolyRegistrationFee(uint256 _oldFee, uint256 _newFee)
- Parameters:
_oldFee
- uint256_newFee
- uint256
LogRegisterTicker
event LogRegisterTicker(address _owner, string _symbol, string _name, bytes32 _swarmHash, uint256 _timestamp)
- Parameters:
_owner
- address_symbol
- string_name
- string_swarmHash
- bytes32_timestamp
- uint256
Functions
changeExpiryLimit
function changeExpiryLimit(uint256 _newExpiry) public
Change the expiry time for the token symbol.
- Modifiers:
- onlyOwner
- Parameters:
_newExpiry
- new time period for token symbol expiry
changePolyRegistrationFee
function changePolyRegistrationFee(uint256 _registrationFee) public
Set the ticker registration fee in POLY tokens.
- Modifiers:
- onlyOwner
- Parameters:
_registrationFee
- registration fee in POLY tokens (base 18 decimals)
checkValidity
function checkValidity(string _symbol, address _owner, string _tokenName) public returns (bool)
Check the validity of the symbol.
- Parameters:
_symbol
- token symbol_owner
- address of the owner_tokenName
- Name of the token- Returns:
- bool
expiryCheck
function expiryCheck(string _symbol) internal returns (bool)
To re-initialize the token symbol details if symbol validity expires.
- Parameters:
_symbol
- token symbol- Returns:
- bool
fallback
function (address _polymathRegistry, uint256 _registrationFee) public
- Modifiers:
- Parameters:
_polymathRegistry
- address_registrationFee
- uint256
getDetails
function getDetails(string _symbol) public view returns (address, uint256, string, bytes32, bool)
Returns the owner and timestamp for a given symbol.
- Parameters:
_symbol
- symbol- Returns:
- bool
isReserved
function isReserved(string _symbol, address _owner, string _tokenName, bytes32 _swarmHash) public returns (bool)
Check the symbol is reserved or not.
- Parameters:
_symbol
- Symbol of the token_owner
- Owner of the token_tokenName
- Name of the token_swarmHash
- off-chain hash- Returns:
- bool
pause
registerTicker
function registerTicker(address _owner, string _symbol, string _tokenName, bytes32 _swarmHash) public
Its ownership. If the symbol expires and its issuer hasn't used it, then someone else can take it.
- Modifiers:
- whenNotPaused
- Parameters:
_owner
- Address of the owner of the token_symbol
- token symbol_tokenName
- Name of the token_swarmHash
- Off-chain details of the issuer and token
unpause