Permissioned¶
Permissioned
Execution cost: less than 689 gas
Deployment cost: less than 659000 gas
Combined cost: less than 659689 gas
Events¶
AssignKey(bytes32,address,address,bool,uint256,uint256,uint256)¶
Execution cost: No bound available
Params:
- _id of type
bytes32 - _from of type
address - _to of type
address - _assignable of type
bool - _start of type
uint256 - _expiration of type
uint256 - _uses of type
uint256
RevokeKey(bytes32,address)¶
Execution cost: No bound available
Params:
- _id of type
bytes32 - _owner of type
address
Methods¶
supportsInterface(bytes4)¶
Query if a contract implements an interface
Interface identification is specified in ERC-165. This function uses less than 30,000 gas.
Execution cost: less than 267 gas
Attributes: constant
Params:
-
interfaceID of type
bytes4The interface identifier, as specified in ERC-165
Returns:
trueif the contract implementsinterfaceIDandinterfaceIDis not 0xffffffff,falseotherwise
- output_0 of type
bool
assignFullKey(bytes32,address)¶
assign all capabilities from the sender to an account
Execution cost: No bound available
Params:
-
_id of type
bytes32lock id
-
_to of type
addressrecipient
keys(bytes32,address)¶
Execution cost: less than 1402 gas
Attributes: constant
Params:
- param_0 of type
bytes32 - param_1 of type
address
Returns:
- exists of type
bool - assignable of type
bool - start of type
uint256 - expiration of type
uint256 - uses of type
uint256
isValidExpiration(uint256)¶
is the current block timestamp less than
_expiration
Execution cost: less than 296 gas
Attributes: constant
Params:
-
_expiration of type
uint256expiration block timestamp
Returns:
is the expiration valid
- valid of type
bool
revokeKey(bytes32)¶
revoke the sender's key
Execution cost: less than 37256 gas
Params:
-
_id of type
bytes32lock id
unlockable(bytes32,address)¶
does the owner have a valid key for the lock id
Execution cost: less than 1901 gas
Attributes: constant
Params:
-
_id of type
bytes32lock id
-
_owner of type
addressowner address
Returns:
- output_0 of type
bool
getKey(bytes32,address)¶
does the owner have a valid key for the lock id
Execution cost: less than 1574 gas
Attributes: constant
Params:
-
_id of type
bytes32lock id
-
_owner of type
addressowner address
Returns:
the properties of the requested key as a tuple
- output_0 of type
bool - output_1 of type
bool - output_2 of type
uint256 - output_3 of type
uint256 - output_4 of type
uint256
assignKey(bytes32,address,bool,uint256,uint256,uint256)¶
assign partial or all capabilities from the sender to an account
Execution cost: No bound available
Params:
-
_id of type
bytes32lock id
-
_to of type
addressrecipient
-
_assignable of type
boolcan the recipient further assignKey capabilities to other accounts?
-
_start of type
uint256the key's start time (block timestamp)
-
_expiration of type
uint256the key's expiration time (block timestamp)
-
_uses of type
uint256number of times this key can be used (in
unlock(..))