SchemeRegistrar¶
A registrar for Schemes for organizations
Execution cost: less than 21089 gas
Deployment cost: less than 689600 gas
Combined cost: less than 710689 gas
Constructor¶
Events¶
NewSchemeProposal(address,bytes32,address,address,bytes32,bytes4)¶
Execution cost: No bound available
Params:
- _avatar of type
address - _proposalId of type
bytes32 - _intVoteInterface of type
address - _scheme of type
address - _parametersHash of type
bytes32 - _permissions of type
bytes4
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
RemoveSchemeProposal(address,bytes32,address,address)¶
Execution cost: No bound available
Params:
- _avatar of type
address - _proposalId of type
bytes32 - _intVoteInterface of type
address - _scheme of type
address
Methods¶
execute(bytes32,address,int256)¶
execute a proposal This method can only be called by the voting machine in which the vote is held.
Execution cost: No bound available
Params:
-
_proposalId of type
bytes32the ID of the proposal in the voting machine
-
_avatar of type
addressaddress of the controller
-
_param of type
int256identifies the action to be taken
Returns:
- output_0 of type
bool
hashedParameters()¶
Execution cost: less than 656 gas
Attributes: constant
Returns:
- output_0 of type
bytes32
getParametersHash(bytes32,bytes32,address)¶
Execution cost: less than 733 gas
Attributes: constant
Params:
- _voteRegisterParams of type
bytes32 - _voteRemoveParams of type
bytes32 - _intVote of type
address
Returns:
- output_0 of type
bytes32
organizationsProposals(address,bytes32)¶
Execution cost: less than 1711 gas
Attributes: constant
Params:
- param_0 of type
address - param_1 of type
bytes32
Returns:
- scheme of type
address - parametersHash of type
bytes32 - proposalType of type
uint256 - permissions of type
bytes4
owner()¶
Execution cost: less than 765 gas
Attributes: constant
Returns:
- output_0 of type
address
parameters(bytes32)¶
Execution cost: less than 1148 gas
Attributes: constant
Params:
- param_0 of type
bytes32
Returns:
- voteRegisterParams of type
bytes32 - voteRemoveParams of type
bytes32 - intVote of type
address
proposeScheme(address,address,bytes32,bytes4)¶
create a proposal to register a schemeNB: not only proposes the vote, but also votes for it
Execution cost: No bound available
Params:
-
_avatar of type
addressthe address of the organization the scheme will be registered for
-
_scheme of type
addressthe address of the scheme to be registered
-
_parametersHash of type
bytes32a hash of the configuration of the _scheme
-
_permissions of type
bytes4the permission of the scheme to be registered
Returns:
a proposal Id
- output_0 of type
bytes32
proposeToRemoveScheme(address,address)¶
propose to remove a scheme for a controller
Execution cost: No bound available
Params:
-
_avatar of type
addressthe address of the controller from which we want to remove a scheme
-
_scheme of type
addressthe address of the scheme we want to remove * NB: not only registers the proposal, but also votes for it
Returns:
- output_0 of type
bytes32
setParameters(bytes32,bytes32,address)¶
hash the parameters, save them if necessary, and return the hash value
Execution cost: less than 61088 gas
Params:
- _voteRegisterParams of type
bytes32 - _voteRemoveParams of type
bytes32 - _intVote of type
address
Returns:
- 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
addressThe address to transfer ownership to.
updateParameters(bytes32)¶
Execution cost: less than 20594 gas
Params:
- _hashedParameters of type
bytes32