A scheme to manage the upgrade of an organization.
Execution cost: less than 21109 gas
Deployment cost: less than 707200 gas
Combined cost: less than 728309 gas
Execution cost: No bound available
Params:
- _avatar of type
address
- _proposalId of type
bytes32
- _intVoteInterface of type
address
- _newUpgradeScheme of type
address
- _params of type
bytes32
Execution cost: No bound available
Params:
- _avatar of type
address
- _proposalId of type
bytes32
- _intVoteInterface of type
address
- _newController of type
address
Execution cost: No bound available
Params:
- previousOwner of type
address
- newOwner of type
address
Execution cost: No bound available
Params:
- _avatar of type
address
- _proposalId of type
bytes32
Execution cost: No bound available
Params:
- _avatar of type
address
- _proposalId of type
bytes32
- _param of type
int256
execution of proposals, can only be called by the voting machine in which the vote is held.
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 controller
-
_param of type
int256
a parameter of the voting result, 0 is no and 1 is yes.
Returns:
- output_0 of type
bool
Execution cost: less than 656 gas
Attributes: constant
Returns:
- output_0 of type
bytes32
return a hash of the given parameters
Execution cost: less than 586 gas
Attributes: constant
Params:
- _voteParams of type
bytes32
- _intVote of type
address
Returns:
- output_0 of type
bytes32
Execution cost: less than 1348 gas
Attributes: constant
Params:
- param_0 of type
address
- param_1 of type
bytes32
Returns:
- upgradeContract of type
address
- params of type
bytes32
- proposalType of type
uint256
Execution cost: less than 765 gas
Attributes: constant
Returns:
- output_0 of type
address
Execution cost: less than 894 gas
Attributes: constant
Params:
- param_0 of type
bytes32
Returns:
- voteParams of type
bytes32
- intVote of type
address
propose to replace this scheme by another upgrading scheme
Execution cost: No bound available
Params:
-
_avatar of type
address
avatar of the organization
-
_scheme of type
address
address of the new upgrading scheme
-
_params of type
bytes32
???
Returns:
an id which represents the proposal
- output_0 of type
bytes32
propose an upgrade of the organization's controller
Execution cost: No bound available
Params:
-
_avatar of type
address
avatar of the organization
-
_newController of type
address
address of the new controller that is being proposed
Returns:
an id which represents the proposal
- output_0 of type
bytes32
hash the parameters, save them if necessary, and return the hash value
Execution cost: less than 41096 gas
Params:
- _voteParams of type
bytes32
- _intVote of type
address
Returns:
- output_0 of type
bytes32
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.
Execution cost: less than 20594 gas
Params:
- _hashedParameters of type
bytes32