If the dispute is on a live network, it will be resolved by the DVM on Ethereum, and the results returned within 48-72 hours (depending on when the dispute was raised during the DVM voting cycle).
If you are testing the dispute flow on Görli, you will need to manually resolve the dispute through the Mock Oracle. This contract stands in for the DVM on Görli and allows you to manually return your own values for testing purposes.
- Go to the Mock Oracle contract on Görli Etherscan.
- Click 'Write Contract.'
- Click 'Connect to Web3' to connect your wallet.
- Click 'OK' on the pop-up that warns you that writing to contracts on Etherscan is a beta test feature.
- Connect through your wallet interface, and switch networks to Görli if necessary.
- Click
pushPrice
to see the parameters you will need to enter. - Enter the original request's
identifier
,time
, andancillaryData
, and enter the value you want to return forprice
. - Click 'Write' and submit the transaction.
- Depending on how the contract you are testing was written, you may need to call
settleAndGetPrice
from your contract to the Optimistic Oracle contract to get the value returned from the mock oracle, or you may be able to callsettle
on the Optimistic Oracle and have your contract automatically receive and handle the return value with apriceSettled
callback function.