constructor
| inputs | 0 | address | _store | |
| inputs | 1 | bytes32 | _crate | |
event
| inputs | 0 | address | assetAddress | |
event
| inputs | 0 | address | self | |
| inputs | 1 | uint256 | errorCode | |
event
| inputs | 0 | address | asset | |
| inputs | 1 | address | addr | |
| inputs | 2 | uint256 | amountReward | |
event
| inputs | 0 | address | addr | |
| inputs | 1 | uint256 | amount | |
| inputs | 2 | uint256 | total | |
function
| inputs | 0 | address | assetAddress | |
function
| inputs | 0 | address | addr | |
| inputs | 1 | uint256 | amount | |
| inputs | 2 | uint256 | total | |
function
| inputs | 0 | address | asset | |
| inputs | 1 | address | addr | |
| inputs | 2 | uint256 | amount | |
function, constant
Returns amount of accumulated rewards assets in a period. Always 0 for active period.
| inputs | 0 | address | _assetAddress | rewards asset contract address. |
| inputs | 1 | uint256 | _period | |
| outputs | 0 | uint256 | | |
function
Prepares 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 | | |
function
Finalize ownership pass. * Can only be called by pending owner.
function
Close current active period and start the new period. * Can only be done if period was active longer than minimum length.
| outputs | 0 | uint256 | resultCode | |
function, constant
Returns shares amount deposited by a particular shareholder.
| inputs | 0 | address | _address | |
| outputs | 0 | uint256 | | |
function, constant
Returns proven amount of shares possessed by a shareholder in a period.
| inputs | 0 | address | _address | |
| inputs | 1 | uint256 | _period | |
| outputs | 0 | uint256 | | |
function
| inputs | 0 | address | assetAddress | |
function
| inputs | 0 | address | addr | |
| inputs | 1 | uint256 | amount | |
| inputs | 2 | uint256 | total | |
function
| inputs | 0 | address | asset | |
| inputs | 1 | address | addr | |
| inputs | 2 | uint256 | amount | |
function, constant
| inputs | 0 | address | shareholder | |
function
Sets ContractManager contract and period minimum length. Starts the first period. * Can be set only once.
| inputs | 0 | address | _contractsManager | contracts Manager contract address. |
| inputs | 1 | address | _wallet | |
| inputs | 2 | address | _targetPlatform | |
| inputs | 3 | uint256 | _closeIntervalDays | period minimum length, in days. |
| outputs | 0 | uint256 | | |
function, constant
Check if shareholder have calculated rewards in a period.
| inputs | 0 | address | _assetAddress | rewards asset contract address. |
| inputs | 1 | address | _address | |
| inputs | 2 | uint256 | _period | |
| outputs | 0 | bool | | |
function, constant
Check if period is closed or not.
| inputs | 0 | uint256 | _period | |
| outputs | 0 | bool | | |
function, constant
Returns last closed period.
throws in case if there is no closed periods yet.
function, constant
Returns current active period.
function, constant
Will 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. |
function, constant
Returns accumulated asset rewards available for withdrawal for shareholder.
| inputs | 0 | address | _assetAddress | rewards asset contract address. |
| inputs | 1 | address | _address | |
| outputs | 0 | uint256 | | |
function
| inputs | 0 | uint256 | _closeInterval | |
function
Setter for ContractsManager. Force overrides currect manager.
| inputs | 0 | address | _contractsManager | contracts manager. 0x0 is not allowed. |
function
| inputs | 0 | address | _eventsHistory | |
function
| inputs | 0 | uint256 | _maxSharesTransfer | |
function
| outputs | 0 | uint256 | resultCode | |
function, constant
Returns total proven amount of shares possessed by shareholders in a period.
| inputs | 0 | uint256 | _period | |
| outputs | 0 | uint256 | | |
function
Direct ownership pass without change/claim pattern. Can be invoked only by current contract owner
| inputs | 0 | address | _to | |
| outputs | 0 | bool | | |
function, constant
Gets wallet address used to store tokens
function
Withdraw all accumulated rewards. * Withdrawals are made for caller and total amount.
function
Withdraw accumulated reward of a specified rewards asset. * Withdrawal is made for caller and specified amount.
| inputs | 0 | address | _asset | registered rewards asset contract address. |
| inputs | 1 | uint256 | _amount | |
| outputs | 0 | uint256 | | |
function
Withdraw accumulated reward of a specified rewards asset. * Withdrawal is made for caller and total amount.
| inputs | 0 | address | _asset | registered rewards asset contract address. |
| outputs | 0 | uint256 | | |
function
| inputs | 0 | address[] | tokens | |
| inputs | 1 | address | _to | |