TwoKeyAdmin
contract TwoKeyAdmin
Index
Reference
Modifiers
onlyTwoKeyCongress
modifier onlyTwoKeyCongress()Modifier which throws if caller is not TwoKeyCongress.
onlyTwoKeyUpgradableExchange
modifier onlyTwoKeyUpgradableExchange()Modifier will revert if caller is not TwoKeyUpgradableExchange.
Functions
addNameToReg
function addNameToReg(string _name, address _addr, string _fullName, string _email, bytes _signature) externalFunction to add/update name - address pair from twoKeyAdmin.
- Parameters:
_name- is name of user_addr- is address of user_fullName- is full name of the user_email- is the email of the user_signature- is the signature generated on client side
fallback
function () external payableFallback function.
freezeTransfersInEconomy
function freezeTransfersInEconomy() externalFunction to freeze all transfers for 2KEY token.
- Modifiers:
- onlyTwoKeyCongress
getDefaultIntegratorFeePercent
function getDefaultIntegratorFeePercent() public view returns (uint)Getter function for TwoKeyIntegratorDefaultFeePercent.
- Returns:
- uint
getDefaultNetworkTaxPercent
function getDefaultNetworkTaxPercent() public view returns (uint)Getter function for TwoKeyNetworkTaxPercent.
- Returns:
- uint
getTwoKeyRewardsReleaseDate
function getTwoKeyRewardsReleaseDate() external view returns (uint)Getter function for TwoKeyRewardsReleaseDate.
- Returns:
- uint
getTwoKeyTokenRate
function getTwoKeyTokenRate() public view returns (uint)Getter function for TwoKeyTokenRate.
- Returns:
- uint
getUint
function getUint(string key) internal view returns (uint)Getter for all integers we'd like to store.
- Parameters:
key- is the key (var name)- Returns:
- uint
setInitialParams
function setInitialParams(address _twoKeySingletonRegistry, address _proxyStorageContract, address _twoKeyCongress, address _economy, uint _twoKeyTokenReleaseDate) externalThis function can be called only once, which will be done immediately after deployment., Function to set initial parameters in the contract including singletones.
- Parameters:
_twoKeySingletonRegistry- is the singletons registry contract address_proxyStorageContract- is the address of proxy for storage for this contract_twoKeyCongress- is the address of TwoKeyCongress_economy- is the address of TwoKeyEconomy_twoKeyTokenReleaseDate- uint
setUint
function setUint(string key, uint value) internalSetter for all integers we'd like to store.
- Parameters:
key- is the key (var name)value- is the value of integer we'd like to store
transfer2KeyTokens
function transfer2KeyTokens(address _to, uint256 _amount) public returns (bool)Only TwoKeyCongress can call this function, Function to transfer 2key tokens.
- Modifiers:
- onlyTwoKeyCongress
- Parameters:
_to- is tokens receiver_amount- is the amount of tokens to be transferred- Returns:
- bool
transferEtherByAdmins
function transferEtherByAdmins(address to, uint256 amount) externalWe're recurring to address different from address 0, Function where only TwoKeyCongress can transfer ether to an address.
- Modifiers:
- onlyTwoKeyCongress
- Parameters:
to- receiver's addressamount- of ether to be transferred
unfreezeTransfersInEconomy
function unfreezeTransfersInEconomy() externalFunction to unfreeze all transfers for 2KEY token.
- Modifiers:
- onlyTwoKeyCongress