TimeHolder | inputs | 0 | address | _store | |
| 1 | bytes32 | _crate |
Deposit 5548c837| inputs | 0 | address | token | |
| 1 | address | who | ||
| 2 | uint256 | amount |
Error 9cf38cf2| inputs | 0 | address | self | |
| 1 | uint256 | errorCode |
FeatureFeeTaken 2943030e| inputs | 0 | address | self | |
| 1 | address | from | ||
| 2 | address | to | ||
| 3 | uint256 | amount |
ListenerAdded f8748b04| inputs | 0 | address | listener | |
| 1 | address | token |
ListenerRemoved ec2210f0| inputs | 0 | address | listener | |
| 1 | address | token |
SharesWhiteListAdded 0c5b936f| inputs | 0 | address | token |
SharesWhiteListChanged 360225f7| inputs | 0 | address | token | |
| 1 | uint256 | limit | ||
| 2 | bool | isAdded |
WithdrawShares 144845ee| inputs | 0 | address | token | |
| 1 | address | who | ||
| 2 | uint256 | amount | ||
| 3 | address | receiver |
addListener 024c4199Adds provided listener to observe changes of passed symbol when some amount will be deposited/withdrawn. Checks passed listener for HolderListenerInterface compatibility.
Allowed only for CBEs
| inputs | 0 | address | _token | token symbol to watch deposits and withdrawals |
| 1 | address | _listener | address of a listener to add |
allowShares 5882a548Adds ERC20-compatible token symbols and put them in the whitelist to be used then as shares for other contracts and allow users to deposit for this share.
Allowed only for CBEs
| inputs | 0 | address[] | _whitelist | list of token addresses that will be allowed to be deposited in TimeHolder |
| 1 | uint256[] | _limits | list of limits |
changeContractOwnership 557f4bc9Prepares ownership pass. * Can only be called by current owner.
| inputs | 0 | address | _to | address of the next owner. 0x0 is not allowed. |
| outputs | 0 | bool |
claimContractOwnership 4592cd1dFinalize ownership pass. * Can only be called by pending owner.
| outputs | 0 | bool |
contractOwner ce606ee0contractsManager 53253d31defaultShareholdersCount 3253fcc8Number of shareholders
| outputs | 0 | uint256 |
denyShares 5d1be4acRemoves ERC20-compatible token symbols from TimeHolder so they will be removed from the whitelist and will not be accessible to be used as shares. All deposited amounts still will be available to withdraw.
Allowed only for CBEs
| inputs | 0 | address[] | _blacklist | list of token addresses that will be removed from TimeHolder |
deposit 47e7ef24Deposits shares with provided symbol and prove possesion. Amount should be less than or equal to current allowance value. /// Proof should be repeated for each active period. To prove possesion without depositing more shares, specify 0 amount.
| inputs | 0 | address | _token | token address for shares |
| 1 | uint256 | _amount | amount of shares to deposit, or 0 to just prove. | |
| outputs | 0 | uint256 |
depositBalance 956501bbGets shares amount deposited by a particular shareholder.
| inputs | 0 | address | _depositor | shareholder address. |
| outputs | 0 | uint256 |
depositFor b3db428bDeposit own shares and prove possession for arbitrary shareholder. Amount should be less than or equal to caller current allowance value. /// Proof should be repeated for each active period. To prove possesion without depositing more shares, specify 0 amount. /// This function meant to be used by some backend application to prove shares possesion of arbitrary shareholders.
| inputs | 0 | address | _token | token address for shares |
| 1 | address | _target | to deposit and prove for. | |
| 2 | uint256 | _amount | amount of shares to deposit, or 0 to just prove. | |
| outputs | 0 | uint256 |
destroy 83197ef0emitDeposit 8b7711b4| inputs | 0 | address | token | |
| 1 | address | who | ||
| 2 | uint256 | amount |
emitError df26ca08| inputs | 0 | uint256 | error |
emitFeatureFeeTaken 9826ad69| inputs | 0 | address | _from | |
| 1 | address | _to | ||
| 2 | uint256 | _amount |
emitListenerAdded 544a6487| inputs | 0 | address | listener | |
| 1 | address | token |
emitListenerRemoved a191d167| inputs | 0 | address | listener | |
| 1 | address | token |
emitSharesWhiteListChanged e9112e9a| inputs | 0 | address | token | |
| 1 | uint256 | limit | ||
| 2 | bool | isAdded |
emitWithdrawShares 728994e7| inputs | 0 | address | token | |
| 1 | address | who | ||
| 2 | uint256 | amount | ||
| 3 | address | receiver |
feeWallet f25f4b56Gets an associated fee wallet for the time holder
forceWithdrawShares b59d9f16Force Withdraw Shares Only CBE members are permited to call this function. Multisig concensus is required to withdraw shares from shareholder "_from" and send it to "_to".
| inputs | 0 | address | _from | |
| 1 | address | _token | ||
| 2 | uint256 | _amount |
getDefaultShares a4d4f0d2Gets shares contract that is set up as default (usually TIMEs)
getDepositBalance 0ae112a4Gets balance of tokens deposited to TimeHolder
| inputs | 0 | address | _token | token to check |
| 1 | address | _depositor | shareholder address | |
| outputs | 0 | uint256 | _balance | shares amount. |
getEventsHistory fff10abagetLimitForToken 6680d8c1Returns deposit/withdraw limit for shares with provided symbol
| inputs | 0 | address | _token | token address to get limit |
| outputs | 0 | uint256 |
init 359ef75bInit TimeHolder contract.
| inputs | 0 | address | _contractsManager | address. |
| 1 | address | _defaultToken | ||
| 2 | address | _wallet | ||
| 3 | address | _feeWallet | ||
| 4 | address | _erc20DepositStorage | ||
| outputs | 0 | uint256 |
isAuthorized fe9fbb80| inputs | 0 | address | key |
isListener aaf38b5a| inputs | 0 | address | _token | |
| 1 | address | _listener |
lookupManager 4fe59012Will crash if no manager in the system with given identifier.
Returns manager's address by its identifier (type).
| inputs | 0 | bytes32 | _identifier | is a manager's identifier. 0x0 is not allowed. |
pendingContractOwner 5aa77d3cremoveListener 2aa852b3Removes provided listener from observing changes of passed symbol.
Allowed only for CBEs
| inputs | 0 | address | _token | token symbol to stop watching by a listener |
| 1 | address | _listener | address of a listener to remove |
setContractsManager 71d3b573Setter for ContractsManager. Force overrides currect manager.
| inputs | 0 | address | _contractsManager | contracts manager. 0x0 is not allowed. |
setEventsHistory 6521afd7| inputs | 0 | address | _eventsHistory |
setFeeWallet 90d49b9dSets fee wallet address.
| inputs | 0 | address | _feeWallet |
shareholdersCount 6ab3c700Number of shareholders
| inputs | 0 | address | _token | |
| outputs | 0 | uint256 |
takeFeatureFee eca87918Provides a way to support getting additional fee for using features of the system.
| inputs | 0 | address | _account | holder of deposits, will pay for using a features |
| 1 | uint256 | _amount | size of a fee | |
| outputs | 0 | uint256 | resultCode | result code of the operation |
totalShares bf6b874eTotal amount of shares for provided symbol
| inputs | 0 | address | _token | token address to check total shares amout |
| outputs | 0 | uint256 |
transferContractOwnership a843c51fDirect ownership pass without change/claim pattern. Can be invoked only by current contract owner
| inputs | 0 | address | _to | the next contract owner |
| outputs | 0 | bool |
wallet 521eb273Gets an associated wallet for the time holder
withdrawShares a92ec968Withdraw shares from the contract, updating the possesion proof in active period.
| inputs | 0 | address | _token | token symbol to withdraw from. |
| 1 | uint256 | _amount | amount of shares to withdraw. | |
| outputs | 0 | uint256 | resultCode | result code of an operation. |
withdrawnTokens d8f9659b| inputs | 0 | address[] | tokens | |
| 1 | address | _to |