VoteInOrganizationScheme¶
VoteInOrganizationScheme.
Execution cost: less than 21051 gas
Deployment cost: less than 650400 gas
Combined cost: less than 671451 gas
Constructor¶
Events¶
NewVoteProposal(address,bytes32,address,address,bytes32,uint256)¶
Execution cost: No bound available
Params:
- _avatar of type
address
- _proposalId of type
bytes32
- _intVoteInterface of type
address
- _originalIntVote of type
address
- _originalProposalId of type
bytes32
- _originalNumOfChoices of type
uint256
OwnershipTransferred(address,address)¶
Execution cost: No bound available
Params:
- previousOwner of type
address
- newOwner of type
address
ProposalDeleted(address,bytes32)¶
Execution cost: No bound available
Params:
- _avatar of type
address
- _proposalId of type
bytes32
ProposalExecuted(address,bytes32,int256)¶
Execution cost: No bound available
Params:
- _avatar of type
address
- _proposalId of type
bytes32
- _param of type
int256
VoteOnBehalf(bytes32[])¶
Execution cost: No bound available
Params:
- _params of type
bytes32[]
Methods¶
proposeVote(address,address,bytes32)¶
propose to vote in other organization The function trigger NewVoteProposal event
Execution cost: No bound available
Params:
-
_avatar of type
address
avatar of the organization
-
_originalIntVote of type
address
the other organization voting machine
-
_originalProposalId of type
bytes32
the other organization proposal id
Returns:
an id which represents the proposal
- output_0 of type
bytes32
hashedParameters()¶
Execution cost: less than 656 gas
Attributes: constant
Returns:
- output_0 of type
bytes32
getParametersHash(bytes32,address)¶
Hash the parameters, and return the hash value
Execution cost: less than 564 gas
Attributes: constant
Params:
-
_voteParams of type
bytes32
- voting parameters
-
_intVote of type
address
- voting machine contract.
Returns:
bytes32 -the parameters hash
- output_0 of type
bytes32
action(bytes32[])¶
do the actual voting in the other organization in behalf of the organization's avatar.
Execution cost: No bound available
Params:
-
_params of type
bytes32[]
array represent the voting . _params[0] - the address of the voting machine. _params[1] - the proposalId. _params[2] - the voting machine params.
Returns:
bool which indicate success.
- output_0 of type
bool
execute(bytes32,address,int256)¶
execution of proposals, can only be called by the voting machine in which the vote is held. This function will trigger ProposalDeleted and ProposalExecuted events
Execution cost: No bound available
Params:
-
_proposalId of type
bytes32
the ID of the voting in the voting machine
-
_avatar of type
address
address of the organization's avatar
-
_param of type
int256
a parameter of the voting result 0 to numOfChoices .
Returns:
bool which indicate success.
- output_0 of type
bool
organizationsData(address,bytes32)¶
Execution cost: less than 1326 gas
Attributes: constant
Params:
- param_0 of type
address
- param_1 of type
bytes32
Returns:
- originalIntVote of type
address
- originalProposalId of type
bytes32
- originalNumOfChoices of type
uint256
owner()¶
Execution cost: less than 765 gas
Attributes: constant
Returns:
- output_0 of type
address
parameters(bytes32)¶
Execution cost: less than 906 gas
Attributes: constant
Params:
- param_0 of type
bytes32
Returns:
- intVote of type
address
- voteParams of type
bytes32
setParameters(bytes32,address)¶
Hash the parameters, save them if necessary, and return the hash value
Execution cost: less than 41099 gas
Params:
-
_voteParams of type
bytes32
- voting parameters
-
_intVote of type
address
- voting machine contract.
Returns:
bytes32 -the parameters hash
- output_0 of type
bytes32
transferOwnership(address)¶
Allows the current owner to transfer control of the contract to a newOwner.
Execution cost: less than 23005 gas
Params:
-
newOwner of type
address
The address to transfer ownership to.
updateParameters(bytes32)¶
Execution cost: less than 20572 gas
Params:
- _hashedParameters of type
bytes32