ChronoBankPlatformTestable
/contracts/helpers/ChronoBankPlatformTestable.sol

event

Approve 859b1cdd

inputs0addressfrom
inputs1addressspender
inputs2bytes32symbol
inputs3uint256value
event

Error 2e36a709

inputs0uint256errorCode
event

Issue d03c2206

inputs0bytes32symbol
inputs1uint256value
inputs2addressby
event

OwnershipChange 0de92ba2

inputs0addressfrom
inputs1addressto
inputs2bytes32symbol
event

Recovery 6c046851

inputs0addressfrom
inputs1addressto
inputs2addressby
event

Revoke a4e2520a

inputs0bytes32symbol
inputs1uint256value
inputs2addressby
event

Transfer 8f1b8386

inputs0addressfrom
inputs1addressto
inputs2bytes32symbol
inputs3uint256value
inputs4stringreference
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

addAssetPartOwner 048ae1bb

Adds a co-owner for an asset with provided symbol.

Should be performed by a contract owner or its co-owners

inputs0bytes32_symbol

asset's symbol

inputs1address_partowner

a co-owner of an asset

outputs0uint256
function

addPartOwner a831751d

Adds a co-owner of a contract. Might be more than one co-owner

Allowed to only contract onwer

inputs0address_partowner

a co-owner of a contract

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

approve 8180f2fc

inputs0address_spender
inputs1uint256_value
inputs2bytes32_symbol
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. 0x0 is not allowed.

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.

outputs0uint256
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

destroy 83197ef0

Only owner can call it

Destroy contract and scrub a data

function

distrust f0c06aa5

Revoke trust to perform recovery procedure from an address.

inputs0address_to

trustee.

outputs0uint256
function

emitApprove d54c8c87

inputs0address_from
inputs1address_spender
inputs2bytes32_symbol
inputs3uint256_value
function

emitError df26ca08

inputs0uint256_errorCode
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

hasAssetRights ccc11f11

Checks if a specified address has asset owner or co-owner rights.

inputs0address_owner

address to check.

inputs1bytes32_symbol

asset symbol.

outputs0bool
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 a3ff0ea2

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.

inputs6address_account

address where issued balance will be held

outputs0uint256
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.

outputs0uint256
function

massTransfer cdeb1485

Performes asset transfer for multiple destinations

inputs0address[]addresses

list of addresses to receive some amount

inputs1uint256[]values

list of asset amounts for according addresses

inputs2bytes32_symbol

asset symbol

outputs0uint256errorCode

resultCode of an operation

outputs1uint256count

an amount of succeeded transfers

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

partowners cb596466

inputs0address
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.

outputs0uint256
function

proxyTransferFromWithReference 161ff662

Performs 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.

outputs0uint256
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.

outputs0uint256
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.

outputs0uint256errorCode
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.

outputs0uint256
function

removeAssetPartOwner ec77809f

Removes a co-owner for an asset with provided symbol.

Should be performed by a contract owner or its co-owners

inputs0bytes32_symbol

asset's symbol

inputs1address_partowner

a co-owner of an asset

outputs0uint256
function

removePartOwner 1286e393

Removes a co-owner of a contract

Should be performed only by root contract owner

inputs0address_partowner

a co-owner of a contract

outputs0uint256
function

revokeAsset ca448a88

Destroys specified amount of senders asset tokens.

inputs0bytes32_symbol

asset symbol.

inputs1uint256_value

amount of tokens to destroy.

outputs0uint256
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_proxyAddress

Proxy contract address.

inputs1bytes32_symbol

asset symbol.

outputs0uint256
function

setupEventsHistory 02927d20

Sets EventsHistory contract address.

Can be set only by owner.

inputs0address_eventsHistory

MultiEventsHistory contract address.

outputs0uint256errorCode
function, constant

symbols ccce413b

inputs0uint256
function, constant

symbolsCount ecac7f4b

Provides a cheap way to get number of symbols registered in a platform

outputs0uint256
function, constant

totalSupply b524abcf

Returns asset total supply.

inputs0bytes32_symbol

asset symbol.

outputs0uint256
function

transfer 57cfeeee

inputs0address_to
inputs1uint256_value
inputs2bytes32_symbol
function

transferContractOwnership a843c51f

Direct ownership pass without change/claim pattern. Can be invoked only by current contract owner

inputs0address_to

the next contract owner

outputs0bool
function

transferFrom 401e3367

inputs0address_from
inputs1address_to
inputs2uint256_value
inputs3bytes32_symbol
function

transferFromWithReference 31c6c4cf

inputs0address_from
inputs1address_to
inputs2uint256_value
inputs3bytes32_symbol
inputs4string_reference
function

transferWithReference 6e293817

inputs0address_to
inputs1uint256_value
inputs2bytes32_symbol
inputs3string_reference
function

trust 4637d827

Trust an address to perform recovery procedure for the caller.

inputs0address_to

trustee.

outputs0uint256
function

withdrawnTokens d8f9659b

inputs0address[]tokens
inputs1address_to