@oceanprotocol/keeper-contracts
Version:
Integration of SEAs, DID and OceanToken in Solidity
62 lines (49 loc) • 1.31 kB
Markdown
# contract: WhitelistingCondition
Documentation:
```
Whitelisting Condition
Ocean Protocol Team
* Implementation of the Whitelisting Condition
TODO: documentation
```
## Functions
### external initialize
Documentation:
```
initialize init the
contract with the following parameters
this function is called only once during the contract
initialization.
_owner contract's owner account address
_conditionStoreManagerAddress condition store manager address
```
Parameters:
* address _owner
* address _conditionStoreManagerAddress
### public hashValues
Documentation:
```
hashValues generates the hash of condition inputs
with the following parameters
_listAddress list contract address
_item item in the list
bytes32 hash of all these values
```
Parameters:
* address _listAddress
* bytes32 _item
### public fulfill
Documentation:
```
fulfill check whether address is whitelisted
in order to fulfill the condition. This method will be
called by anyone in this whitelist.
_agreementId SEA agreement identifier
_listAddress list contract address
_item item in the list
condition state
```
Parameters:
* bytes32 _agreementId
* address _listAddress
* bytes32 _item