Required functions for the External Oracle
Denial Oracle
Approval Oracle
see OracleApproved
see OracleDenied
Process for using an external oracle
External oracles are used in conjunction with the Account Approve Deny Oracle Rule or the Account Approve Deny Oracle Flexible Rule. The external oracle is created and its deployed address is noted. When the oracle rule is created, this address is used in the _oracleAddress parameter whereas _oracleType corresponds to approved or denied type(0 for denied, 1 for approved).see Account Approve Deny Oracle Rule or Account Approve Deny Oracle Flexible Rule
Once the this rule is created, it can then be applied like any other rule. The process is as follows:-
- Deploy the external oracle.
-
- Create the rule specifying the _oracleAddress and _oracleType.
-
- Apply the rule to the desired token’s handler.