java.lang.Comparable<Permission>
, net.sergeych.biserializer.BiSerializable
public class ChangeOwnerPermission extends Permission
params
Constructor | Description |
---|---|
ChangeOwnerPermission(Role role) |
Create new permission for change owner role.
|
Modifier and Type | Method | Description |
---|---|---|
void |
checkChangesQuantized(Contract contract,
Contract changed,
java.util.Map<java.lang.String,net.sergeych.diff.Delta> stateChanges,
java.util.Set<Contract> revokingItems,
java.util.Collection<com.icodici.crypto.PublicKey> keys) |
Check and remove change of state.owner, if any.
|
checkChanges, compareTo, deserialize, equals, forName, getId, getName, getParams, getRole, isAllowedFor, isAllowedForKeys, isAllowedForKeys, isAllowedForKeysQuantized, isAllowedForKeysQuantized, isAllowedForQuantized, serialize, setId, toString
public ChangeOwnerPermission(Role role)
role
- allows to permissionpublic void checkChangesQuantized(Contract contract, Contract changed, java.util.Map<java.lang.String,net.sergeych.diff.Delta> stateChanges, java.util.Set<Contract> revokingItems, java.util.Collection<com.icodici.crypto.PublicKey> keys) throws Quantiser.QuantiserException
checkChangesQuantized
in class Permission
contract
- valid contract statechanged
- is contract for checkingstateChanges
- changes in its state sectionrevokingItems
- items to be revoked. The ones are getting joined will be removed during checkkeys
- keys contract is sealed with. Keys are used to check other contracts permissionsQuantiser.QuantiserException