ChronoBank Platform. * The official ChronoBank assets platform powering TIME and LHT tokens, and possibly other unknown tokens needed later. Platform uses EventsHistory contract to keep events, so that in case it needs to be redeployed at some point, all the events keep appearing at the same place. * Every asset is meant to be used through a proxy contract. Only one proxy contract have access rights for a particular asset. * Features: transfers, allowances, supply adjustments, lost wallet access recovery. * Note: all the non constant functions return false instead of throwing in case if state change didn't happen yet.
/contracts/core/time/TimePlatform.sol

event

Approve 389385fc

inputs0addressfrom
inputs1addressspender
inputs2bytes32symbol
inputs3uint256value
inputs4uint256version
event

Error 8ad05dce

inputs0bytes32message
inputs1uint256version
event

Issue 714f0596

inputs0bytes32symbol
inputs1uint256value
inputs2addressby
inputs3uint256version
event

OwnershipChange a036716a

inputs0addressfrom
inputs1addressto
inputs2bytes32symbol
inputs3uint256version
event

Recovery d38446e2

inputs0addressfrom
inputs1addressto
inputs2addressby
inputs3uint256version
event

Revoke 21195415

inputs0bytes32symbol
inputs1uint256value
inputs2addressby
inputs3uint256version
event

Transfer 940c4b35

inputs0addressfrom
inputs1addressto
inputs2bytes32symbol
inputs3uint256value
inputs4stringreference
inputs5uint256version
function, constant

_address 6825c843

Returns current address for a particular holder id.

inputs0uint256_holderId

holder id.

outputs0address
function, constant

_balanceOf 5b7da338

Returns asset balance for a particular holder id.

inputs0uint256_holderId

holder id.

inputs1bytes32_symbol

asset symbol.

outputs0uint256
function, constant

allowance 1c8d5d38

Returns asset allowance from one holder to another.

inputs0address_from

holder that allowed spending.

inputs1address_spender

holder that is allowed to spend.

inputs2bytes32_symbol

asset symbol.

outputs0uint256
function, constant

assets 9fda5b66

inputs0bytes32
function, constant

balanceOf 4d30b6be

Returns asset balance for a particular holder.

inputs0address_holder

holder address.

inputs1bytes32_symbol

asset symbol.

outputs0uint256
function, constant

baseUnit dc86e6f0

Returns asset decimals.

inputs0bytes32_symbol

asset symbol.

outputs0uint8
function

changeContractOwnership 557f4bc9

Prepares ownership pass. * Can only be called by current owner.

inputs0address_to

address of the next owner.

outputs0bool
function

changeOwnership fd83915e

Passes asset ownership to specified address. * Only ownership is changed, balances are not touched. Can only be called by asset owner.

inputs0bytes32_symbol

asset symbol.

inputs1address_newOwner

address to become a new owner.

outputs0bool
function

claimContractOwnership 4592cd1d

Finalize ownership pass. * Can only be called by pending owner.

outputs0bool
function, constant

contractOwner ce606ee0

function, constant

description bebcc045

Returns asset description.

inputs0bytes32_symbol

asset symbol.

outputs0string
function

distrust f0c06aa5

Revoke trust to perform recovery procedure from an address.

inputs0address_to

trustee.

outputs0bool
function

emitApprove d54c8c87

inputs0address_from
inputs1address_spender
inputs2bytes32_symbol
inputs3uint256_value
function

emitError e90459f8

inputs0bytes32_message
function

emitIssue abafaa16

inputs0bytes32_symbol
inputs1uint256_value
inputs2address_by
function

emitOwnershipChange a9612f72

inputs0address_from
inputs1address_to
inputs2bytes32_symbol
function

emitRecovery ea14457e

inputs0address_from
inputs1address_to
inputs2address_by
function

emitRevoke c70bbc13

inputs0bytes32_symbol
inputs1uint256_value
inputs2address_by
function

emitTransfer 515c1457

inputs0address_from
inputs1address_to
inputs2bytes32_symbol
inputs3uint256_value
inputs4string_reference
function, constant

eventsHistory f07629f8

function, constant

getHolderId 0af3e660

Returns holder id for the specified address.

inputs0address_holder

holder address.

outputs0uint256
function, constant

holders 2a11ced0

inputs0uint256
function, constant

holdersCount 6b4ed21b

function, constant

isCreated 2f553d31

Check asset existance.

inputs0bytes32_symbol

asset symbol.

outputs0bool
function, constant

isOwner e96b462a

Check if specified address has asset owner rights.

inputs0address_owner

address to check.

inputs1bytes32_symbol

asset symbol.

outputs0bool
function, constant

isReissuable c4eeeeb9

Returns asset reissuability.

inputs0bytes32_symbol

asset symbol.

outputs0bool
function, constant

isTrusted 6713e230

Check if specified holder trusts an address with recovery procedure.

inputs0address_from

truster.

inputs1address_to

trustee.

outputs0bool
function

issueAsset 085a4705

Issues new asset token on the platform. * Tokens issued with this call go straight to contract owner. Each symbol can be issued only once, and only by contract owner.

inputs0bytes32_symbol

asset symbol.

inputs1uint256_value

amount of tokens to issue immediately.

inputs2string_name

name of the asset.

inputs3string_description

description for the asset.

inputs4uint8_baseUnit

number of decimals.

inputs5bool_isReissuable

dynamic or fixed supply.

outputs0bool
function, constant

name 691f3431

Returns asset name.

inputs0bytes32_symbol

asset symbol.

outputs0string
function, constant

owner 02571be3

Returns asset owner address.

inputs0bytes32_symbol

asset symbol.

outputs0address
function, constant

pendingContractOwner 5aa77d3c

function, constant

proxies 6932af36

inputs0bytes32
function

proxyApprove 14712e2f

Sets asset spending allowance for a specified spender. * Can only be called by asset proxy.

inputs0address_spender

holder address to set allowance to.

inputs1uint256_value

amount to allow.

inputs2bytes32_symbol

asset symbol.

inputs3address_sender

approve initiator address.

outputs0bool
function

proxyTransferFromWithReference 161ff662

Prforms allowance transfer of asset balance between holders wallets. * Can only be called by asset proxy.

inputs0address_from

holder address to take from.

inputs1address_to

holder address to give to.

inputs2uint256_value

amount to transfer.

inputs3bytes32_symbol

asset symbol.

inputs4string_reference

transfer comment to be included in a Transfer event.

inputs5address_sender

allowance transfer initiator address.

outputs0bool
function

proxyTransferWithReference 57a96dd0

Transfers asset balance between holders wallets. * Can only be called by asset proxy.

inputs0address_to

holder address to give to.

inputs1uint256_value

amount to transfer.

inputs2bytes32_symbol

asset symbol.

inputs3string_reference

transfer comment to be included in a Transfer event.

inputs4address_sender

transfer initiator address.

outputs0bool
function

recover 648bf774

Perform recovery procedure. * This function logic is actually more of an addAccess(uint _holderId, address _to). It grants another address access to recovery subject wallets. Can only be called by trustee of recovery subject.

inputs0address_from

holder address to recover from.

inputs1address_to

address to grant access to.

outputs0bool
function

reissueAsset e0873c06

Issues additional asset tokens if the asset have dynamic supply. * Tokens issued with this call go straight to asset owner. Can only be called by asset owner.

inputs0bytes32_symbol

asset symbol.

inputs1uint256_value

amount of additional tokens to issue.

outputs0bool
function

revokeAsset ca448a88

Destroys specified amount of senders asset tokens.

inputs0bytes32_symbol

asset symbol.

inputs1uint256_value

amount of tokens to destroy.

outputs0bool
function

setProxy 638a9ce9

Sets Proxy contract address for a particular asset. * Can be set only once for each asset, and only by contract owner.

inputs0address_address

Proxy contract address.

inputs1bytes32_symbol

asset symbol.

outputs0bool
function

setupEventsHistory 02927d20

Sets EventsHstory contract address. * Can be set only once, and only by contract owner.

inputs0address_eventsHistory

EventsHistory contract address.

outputs0bool
function, constant

totalSupply b524abcf

Returns asset total supply.

inputs0bytes32_symbol

asset symbol.

outputs0uint256
function

trust 4637d827

Trust an address to perform recovery procedure for the caller.

inputs0address_to

trustee.

outputs0bool