Chronobank TIME
ERC20
This contract is an ERC20 token.
Name
Chronobank TIME
Symbol
TIME
Decimals
8
Total Supply
710,113 TIME
About
Stats
Public Functions
29
Event Types
3
Code Size
40,919 bytes
Constants (1) keyboard_arrow_up
State Variables (8) keyboard_arrow_up
Functions
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
transferFrom keyboard_arrow_up
approve keyboard_arrow_up
allowance keyboard_arrow_up
init keyboard_arrow_up
Parameters help
Source Code
function init(
ChronoBankPlatform _chronoBankPlatform,
string _symbol,
string _name
) returns (bool) {
if (address(chronoBankPlatform) != 0x0) {
return false;
}
chronoBankPlatform = _chronoBankPlatform;
symbol = _symbol;
smbl = stringToBytes32(_symbol);
name = _name;
return true;
}
stringToBytes32 keyboard_arrow_up
decimals keyboard_arrow_up
transfer keyboard_arrow_up
transferWithReference keyboard_arrow_up
Source Code
function transferWithReference(
address _to,
uint256 _value,
string _reference
) returns (bool) {
return _transferWithReference(_to, _value, _reference);
}
__transferWithReference keyboard_arrow_up
Parameters help
Modifiers help
onlyAccess checks for the following:
Source Code
function __transferWithReference(
address _to,
uint256 _value,
string _reference,
address _sender
) onlyAccess(_sender) returns (bool) {
return
chronoBankPlatform.proxyTransferWithReference(
_to,
_value,
smbl,
_reference,
_sender
);
}
transferFrom keyboard_arrow_up
transferFromWithReference keyboard_arrow_up
Parameters help
Source Code
function transferFromWithReference(
address _from,
address _to,
uint256 _value,
string _reference
) returns (bool) {
return _transferFromWithReference(_from, _to, _value, _reference);
}
__transferFromWithReference keyboard_arrow_up
Parameters help
Modifiers help
onlyAccess checks for the following:
Source Code
function __transferFromWithReference(
address _from,
address _to,
uint256 _value,
string _reference,
address _sender
) onlyAccess(_sender) returns (bool) {
return
chronoBankPlatform.proxyTransferFromWithReference(
_from,
_to,
_value,
smbl,
_reference,
_sender
);
}
approve keyboard_arrow_up
__approve keyboard_arrow_up
Modifiers help
onlyAccess checks for the following:
Source Code
function __approve(
address _spender,
uint256 _value,
address _sender
) onlyAccess(_sender) returns (bool) {
return chronoBankPlatform.proxyApprove(_spender, _value, smbl, _sender);
}
emitTransfer keyboard_arrow_up
Modifiers help
onlyChronoBankPlatform checks for the following:
Source Code
function emitTransfer(
address _from,
address _to,
uint256 _value
) onlyChronoBankPlatform() {
Transfer(_from, _to, _value);
}
emitApprove keyboard_arrow_up
Modifiers help
onlyChronoBankPlatform checks for the following:
Source Code
function emitApprove(
address _from,
address _spender,
uint256 _value
) onlyChronoBankPlatform() {
Approval(_from, _spender, _value);
}
constructor keyboard_arrow_up
getVersionFor keyboard_arrow_up
getLatestVersion keyboard_arrow_up
getPendingVersion keyboard_arrow_up
getPendingVersionTimestamp keyboard_arrow_up
proposeUpgrade keyboard_arrow_up
Modifiers help
onlyAssetOwner checks for the following:
Source Code
function proposeUpgrade(address _newVersion) onlyAssetOwner() returns (bool) {
// Should not already be in the upgrading process.
if (pendingVersion != 0x0) {
return false;
}
// New version address should be other than 0x0.
if (_newVersion == 0x0) {
return false;
}
// Don't apply freeze-time for the initial setup.
if (latestVersion == 0x0) {
latestVersion = _newVersion;
return true;
}
pendingVersion = _newVersion;
pendingVersionTimestamp = now;
UpgradeProposal(_newVersion);
return true;
}
purgeUpgrade keyboard_arrow_up
commitUpgrade keyboard_arrow_up
Parameters help
This function has no parameters.
Source Code
function commitUpgrade() returns (bool) {
if (pendingVersion == 0x0) {
return false;
}
if (pendingVersionTimestamp + UPGRADE_FREEZE_TIME > now) {
return false;
}
latestVersion = pendingVersion;
delete pendingVersion;
delete pendingVersionTimestamp;
return true;
}
optOut keyboard_arrow_up
Internal Functions
Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.
internal ChronoBankAssetProxy._getAsset keyboard_arrow_up
internal ChronoBankAssetProxy._transferWithReference keyboard_arrow_up
Source Code
function _transferWithReference(
address _to,
uint256 _value,
string _reference
) internal returns (bool) {
return
_getAsset().__transferWithReference(_to, _value, _reference, msg.sender);
}
internal ChronoBankAssetProxy._transferFromWithReference keyboard_arrow_up
Parameters help
Source Code
function _transferFromWithReference(
address _from,
address _to,
uint256 _value,
string _reference
) internal returns (bool) {
return
_getAsset().__transferFromWithReference(
_from,
_to,
_value,
_reference,
msg.sender
);
}