@hubiinetwork/soldoc
Version:
Solidity documentation generator
196 lines (91 loc) • 2.48 kB
Markdown
# CommunityVote
[see the source](https://github.com/dev-matan-tsuberi/soldoc/tree/master/contracts/CommunityVote.sol)
> Community vote
**Execution cost**: less than 61335 gas
**Deployment cost**: less than 214000 gas
**Combined cost**: less than 275335 gas
## Constructor
Params:
1. **_owner** *of type `address`*
## Events
### ChangeDeployerEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldDeployer** *of type `address`*
2. **newDeployer** *of type `address`*
### ChangeOperatorEvent(address,address)
**Execution cost**: No bound available
Params:
1. **oldOperator** *of type `address`*
2. **newOperator** *of type `address`*
## Methods
### changeDeployer(address)
>
>Change the deployer of this contract
**Execution cost**: less than 22910 gas
Params:
1. **newDeployer** *of type `address`*
> The address of the new deployer
### changeOperator(address)
>
>Change the operator of this contract
**Execution cost**: less than 22735 gas
Params:
1. **newOperator** *of type `address`*
> The address of the new operator
### deployer()
**Execution cost**: less than 691 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### destructor()
>
>Return the address that is able to initiate self-destruction
**Execution cost**: less than 581 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### getMaxDriipNonce()
>
>Get the max driip nonce to be accepted in settlements
**Execution cost**: less than 406 gas
**Attributes**: constant
Returns:
> the max driip nonce
1. **output_0** *of type `uint256`*
### isDataAvailable()
>
>Get the data availability status
**Execution cost**: less than 528 gas
**Attributes**: constant
Returns:
> true if data is available
1. **output_0** *of type `bool`*
### isDoubleSpenderWallet(address)
>
>Get the double spender status of given wallet
**Execution cost**: less than 706 gas
**Attributes**: constant
Params:
1. **wallet** *of type `address`*
> The wallet address for which to check double spender status
Returns:
> true if wallet is double spender, false otherwise
1. **output_0** *of type `bool`*
### operator()
**Execution cost**: less than 603 gas
**Attributes**: constant
Returns:
1. **output_0** *of type `address`*
### triggerDestroy()
**Execution cost**: No bound available
[Back to the top ↑](#communityvote)