Company¶
Execution cost: No bound available
Deployment cost: less than 1046800 gas
Combined cost: No bound available
Constructor¶
Params:
- _coo of type
address
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 271 gas
Attributes: constant
Params:
-
interfaceID of type
bytes4
The interface identifier, as specified in ERC-165
Returns:
true
if the contract implementsinterfaceID
andinterfaceID
is not 0xffffffff,false
otherwise
- output_0 of type
bool
payout(address)¶
Execution cost: No bound available
Params:
- _employee of type
address
assignFullKey(bytes32,address)¶
assign all capabilities from the sender to an account
Execution cost: No bound available
Params:
-
_id of type
bytes32
lock id
-
_to of type
address
recipient
keys(bytes32,address)¶
Execution cost: less than 1424 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
fireHRCompany(address)¶
Execution cost: No bound available
Params:
- _hrCompany of type
address
isValidExpiration(uint256)¶
is the current block timestamp less than
_expiration
Execution cost: less than 340 gas
Attributes: constant
Params:
-
_expiration of type
uint256
expiration block timestamp
Returns:
is the expiration valid
- valid of type
bool
revokeKey(bytes32)¶
revoke the sender's key
Execution cost: less than 37300 gas
Params:
-
_id of type
bytes32
lock id
unlockable(bytes32,address)¶
does the owner have a valid key for the lock id
Execution cost: less than 1945 gas
Attributes: constant
Params:
-
_id of type
bytes32
lock id
-
_owner of type
address
owner address
Returns:
- output_0 of type
bool
hireHRCompany(address,uint80)¶
Execution cost: No bound available
Params:
- _hrCompany of type
address
- nEmployees of type
uint80
getKey(bytes32,address)¶
does the owner have a valid key for the lock id
Execution cost: less than 1640 gas
Attributes: constant
Params:
-
_id of type
bytes32
lock id
-
_owner of type
address
owner 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
bytes32
lock id
-
_to of type
address
recipient
-
_assignable of type
bool
can the recipient further assignKey capabilities to other accounts?
-
_start of type
uint256
the key's start time (block timestamp)
-
_expiration of type
uint256
the key's expiration time (block timestamp)
-
_uses of type
uint256
number of times this key can be used (in
unlock(..)
)
registerEmployee(address,uint256)¶
Execution cost: No bound available
Params:
- _employee of type
address
- _salary of type
uint256