mirror of https://github.com/nucypher/nucypher.git
includes offchain condition class resolution in top level validator
parent
0d9489762f
commit
ed34186255
|
@ -417,6 +417,7 @@ class ConditionLingo(_Serializable):
|
|||
conditions expression framework.
|
||||
"""
|
||||
from nucypher.policy.conditions.evm import ContractCondition, RPCCondition
|
||||
from nucypher.policy.conditions.offchain import OffchainCondition
|
||||
from nucypher.policy.conditions.time import TimeCondition
|
||||
|
||||
# version logical adjustments can be made here as required
|
||||
|
@ -427,6 +428,7 @@ class ConditionLingo(_Serializable):
|
|||
ContractCondition,
|
||||
RPCCondition,
|
||||
CompoundAccessControlCondition,
|
||||
OffchainCondition,
|
||||
):
|
||||
if condition.CONDITION_TYPE == condition_type:
|
||||
return condition
|
||||
|
|
Loading…
Reference in New Issue