From 1e07367c8a23553463012dff365869ed1adb14ca Mon Sep 17 00:00:00 2001 From: Vegaklaus <62546834+Vegaklaus@users.noreply.github.com> Date: Wed, 15 May 2024 01:53:43 -0700 Subject: [PATCH] Update 0082-ETHD-ethereum-data-source.md --- protocol/0082-ETHD-ethereum-data-source.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/0082-ETHD-ethereum-data-source.md b/protocol/0082-ETHD-ethereum-data-source.md index 2a6fac444..7e4bd420c 100644 --- a/protocol/0082-ETHD-ethereum-data-source.md +++ b/protocol/0082-ETHD-ethereum-data-source.md @@ -140,7 +140,7 @@ Select { 3. Create a market to use an external data source to terminate a market and an ethereum oracle to settle the market (0082-ETHD-017) 4. Create a market to use an open oracle data source to settle a market and an ethereum oracle to terminate the market (0082-ETHD-018) 5. Chain events should only be sent when the filter is matched, this can be verified using an API and the core/data node events (BUS_EVENT_TYPE_ORACLE_DATA) (0082-ETHD-019) -6. Ethereum oracle data sources should only forward data after a configurable number of confirmations (0082-ETHD-020) +6. Ethereum oracle data sources should only forward data after a Ethereum finality is assured (0082-ETHD-020) 7. Create 2 markets to use the same ethereum oracle for termination say DS-T1 but two different ethereum oracles for settlement DS-S1 and DS-S2. Now trigger the termination ethereum oracle data source. Both markets should be terminated and the data source DS-T1 is set to DEACTIVATED and the data sources DS-S1 and DS-S2 are still ACTIVE. Now settle market1. DS-S1 is set to DEACTIVATED and DS-S2 is still active. (0082-ETHD-021) 8. Create a market to use an ethereum oracle for termination configured such that - it expects a boolean value True for termination and the contract supplying the termination value is polled every 5 seconds. Set the contract to return False for termination. The market is not terminated. The data source is still ACTIVE and no BUS_EVENT_TYPE_ORACLE_DATA events for that ethereum oracle spec are emitted. Then set the contract to return True for termination. The market is terminated and an event for BUS_EVENT_TYPE_ORACLE_DATA for the ethereum oracle data spec is received and the ethereum oracle is set to DEACTIVATED. (0082-ETHD-022) 9. One oracle data event is emitted for data that matches each data source - Create 2 markets with ethereum oracle settlement specs that use the same settlement key such that - the first settlement spec expects settlement data to be greater than 100 and the second expects greater than 200. Now send it a settlement data of 300. One single event BUS_EVENT_TYPE_ORACLE_DATA for the settlement data is emitted for each matching ethereum oracle data sources i.e. in this case, two oracle data events will be emitted - one for each settlement data source. Both markets are settled and both the data sources are DEACTIVATED. (0082-ETHD-023)