VotingManager | inputs | 0 | address | _store | |
| 1 | bytes32 | _crate |
Error 9cf38cf2| inputs | 0 | address | self | |
| 1 | uint256 | errorCode |
PollCreated 02c09d2d| inputs | 0 | address | self | |
| 1 | address | pollAddress | ||
| 2 | uint256 | optionsCount | ||
| 3 | bytes32 | detailsIpfsHash | ||
| 4 | uint256 | votelimit | ||
| 5 | uint256 | deadline |
PollRemoved f8bb25a0| inputs | 0 | address | self | |
| 1 | address | pollAddress |
VotingSharesPercentUpdated 5598993b| inputs | 0 | address | self | |
| 1 | uint256 | percent |
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 53253d31createPoll 3c101a3eCreates a brand new poll with provided description and properties. Emits PollCreated event in case of success.
| inputs | 0 | uint256 | _optionsCount | number of options provided for a poll |
| 1 | bytes32 | _detailsIpfsHash | ipfs hash of poll's description and other details | |
| 2 | uint256 | _votelimit | limit when poll would be treated as completed | |
| 3 | uint256 | _deadline | time after which poll isn't active anymore | |
| outputs | 0 | uint256 |
destroy 83197ef0emitError df26ca08| inputs | 0 | uint256 | errorCode |
emitPollCreated 9f24f2b6| inputs | 0 | address | _pollAddress | |
| 1 | uint256 | _optionsCount | ||
| 2 | bytes32 | _detailsIpfsHash | ||
| 3 | uint256 | _votelimit | ||
| 4 | uint256 | _deadline |
emitPollRemoved 5c053ca8| inputs | 0 | address | pollAddress |
emitVotingSharesPercentUpdated 98d22b01| inputs | 0 | uint256 | _percent |
getActivePollsCount a9581703Gets a number of active polls. Couldn't be more than ACTIVE_POLLS_MAX
| outputs | 0 | uint256 |
getEventsHistory fff10abagetPollsCount e0995916Gets a number of polls registered in the manager. Includes a number of both active and inactive polls
| outputs | 0 | uint256 |
getPollsDetails fb39e8b3Gets descriptions for a list of polls
| inputs | 0 | address[] | _polls | a list of polls |
| outputs | 0 | address[] | _owner | |
| 1 | bytes32[] | _detailsIpfsHash | ||
| 2 | uint256[] | _votelimit | ||
| 3 | uint256[] | _deadline | ||
| 4 | bool[] | _status | ||
| 5 | bool[] | _active | ||
| 6 | uint256[] | _creation |
getPollsPaginated 56f80c3cGets a paginated results of polls stored in the manager. Could be mixed with getPollsCount() passed as a pageSize to get full list of polls at one call.
| inputs | 0 | uint256 | _startIndex | index of a poll to start. For first call should be equal to |
| 1 | uint32 | _pageSize | size of an output list | |
| outputs | 0 | address[] | _polls | list of polls |
getVoteLimit 657e8c13Gets votes limit (or number of tokens to be voted to treat a poll as completed)
| outputs | 0 | uint256 |
getVotesPercent ec6dfab7Returns votes percent value
init 184b9559Initializes contract
| inputs | 0 | address | _contractsManager | address of a contracts manager |
| 1 | address | _pollsFactory | address of a poll factory | |
| 2 | address | _pollBackend | ||
| outputs | 0 | uint256 | _resultCode | result code of an operation. REINITIALIZED if it was once initialized. |
isAuthorized fe9fbb80| inputs | 0 | address | key |
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. |
onActivatePoll 654fd7d6Emits PollActivated event in case of successful activation.
DO NOT СALL IT DIRECTLY. Used by a poll contract.
onEndPoll cfe0784aEmits PollActivated event in case of successful ending (completing).
DO NOT СALL IT DIRECTLY. Used by a poll contract.
onRemovePoll d9b35f8aEmits PollRemoved event in case of successful removal.
DO NOT СALL IT DIRECTLY. Used by a poll contract.
onVote a2ad5faaEmits PollVoted event in case of successful voting.
DO NOT СALL IT DIRECTLY. Used by a poll contract.
| inputs | 0 | address | ||
| 1 | uint8 |
pendingContractOwner 5aa77d3csetBackend da7fc24fSets poll backend address that will be used for future polls
| inputs | 0 | address | _backend |
setContractsManager 71d3b573Setter for ContractsManager. Force overrides currect manager.
| inputs | 0 | address | _contractsManager | contracts manager. 0x0 is not allowed. |
setEventsHistory 6521afd7| inputs | 0 | address | _eventsHistory |
setVotesPercent 023fa93fSets votes percent. Multisignature required.
| inputs | 0 | uint256 | _percent | a value of percent for a vote limit. Should be between 0 and 10000 (because not float in a system) |
| outputs | 0 | uint256 | _resultCode | result code of an operation |
tokenDeposit 9cd00448ListenerInterface interface
| inputs | 0 | address | _token | |
| 1 | address | _who | ||
| 2 | uint256 | _amount | ||
| 3 | uint256 | _total |
tokenWithdrawn 4ca95be8| inputs | 0 | address | _token | |
| 1 | address | _who | ||
| 2 | uint256 | _amount | ||
| 3 | uint256 | _total |
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 |
voteShares 7b144b9cGets shares contract that is set up as default in TimeHolder
withdrawnTokens d8f9659b| inputs | 0 | address[] | tokens | |
| 1 | address | _to |