From 03033ac72915131585ae7bec965470d96a6c2c03 Mon Sep 17 00:00:00 2001 From: aalu1418 Date: Fri, 4 Feb 2022 18:03:08 -0500 Subject: [PATCH] fix example specs --- examples/spec/ocr2-oracle-simple.spec.toml | 6 +++--- examples/spec/ocr2-oracle.spec.toml | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/spec/ocr2-oracle-simple.spec.toml b/examples/spec/ocr2-oracle-simple.spec.toml index 08a56892f..838892069 100644 --- a/examples/spec/ocr2-oracle-simple.spec.toml +++ b/examples/spec/ocr2-oracle-simple.spec.toml @@ -10,7 +10,7 @@ ocrKeyBundleID = "" # ov transmitterID = "" observationSource = """ // data source 1 - ds1 [type="bridge" name="bridge-coingecko" requestData="<{"data": {"from":"LINK","to":"USD"}}>"] + ds1 [type="bridge" name="bridge-coingecko" requestData=<{"data": {"from":"LINK","to":"USD"}}>] ds1_parse [type="jsonparse" path="result"] ds1_multiply [type="multiply" times=100000000] ds1 -> ds1_parse -> ds1_multiply @@ -18,13 +18,13 @@ observationSource = """ juelsPerFeeCoinSource = """ // Fetch the LINK price from a data source // data source 1 - ds1_link [type="bridge" name="bridge-coingecko" requestData="<{"data": {"from":"LINK","to":"USD"}}>"] + ds1_link [type="bridge" name="bridge-coingecko" requestData=<{"data": {"from":"LINK","to":"USD"}}>] ds1_link_parse [type="jsonparse" path="result"] ds1_link -> ds1_link_parse -> divide // Fetch the SOL price from a data source // data source 1 - ds1_coin [type="bridge" name="bridge-coingecko" requestData="<{"data": {"from":"SOL","to":"USD"}}."] + ds1_coin [type="bridge" name="bridge-coingecko" requestData=<{"data": {"from":"SOL","to":"USD"}}>] ds1_coin_parse [type="jsonparse" path="result"] ds1_coin -> ds1_coin_parse -> divide diff --git a/examples/spec/ocr2-oracle.spec.toml b/examples/spec/ocr2-oracle.spec.toml index ba366c4e9..5eeb3e16d 100644 --- a/examples/spec/ocr2-oracle.spec.toml +++ b/examples/spec/ocr2-oracle.spec.toml @@ -10,17 +10,17 @@ ocrKeyBundleID = "" # ov transmitterID = "" observationSource = """ // data source 1 - ds1 [type="bridge" name="bridge-tiingo" requestData="<{"data": {"from":"BTC","to":"USD"}}>"] + ds1 [type="bridge" name="bridge-tiingo" requestData=<{"data": {"from":"BTC","to":"USD"}}>] ds1_parse [type="jsonparse" path="result"] ds1_multiply [type="multiply" times=100000000] ds1 -> ds1_parse -> ds1_multiply -> answer // data source 2 - ds2 [type="bridge" name="bridge-nomics" requestData="<{"data": {"from":"BTC","to":"USD"}}>"] + ds2 [type="bridge" name="bridge-nomics" requestData=<{"data": {"from":"BTC","to":"USD"}}>] ds2_parse [type="jsonparse" path="result"] ds2_multiply [type="multiply" times=100000000] ds2 -> ds2_parse -> ds2_multiply -> answer // data source 3 - ds3 [type="bridge" name="bridge-coinmarketcap" requestData="<{"data": {"from":"BTC","to":"USD"}}>"] + ds3 [type="bridge" name="bridge-coinmarketcap" requestData=<{"data": {"from":"BTC","to":"USD"}}>] ds3_parse [type="jsonparse" path="result"] ds3_multiply [type="multiply" times=100000000] ds3 -> ds3_parse -> ds3_multiply -> answer @@ -29,29 +29,29 @@ observationSource = """ juelsPerFeeCoinSource = """ // Fetch the LINK price from three data sources // data source 1 - ds1_link [type="bridge" name="bridge-tiingo" requestData="<{"data": {"from":"LINK","to":"USD"}}>"] + ds1_link [type="bridge" name="bridge-tiingo" requestData=<{"data": {"from":"LINK","to":"USD"}}>] ds1_link_parse [type="jsonparse" path="result"] ds1_link -> ds1_link_parse -> median_link // data source 2 - ds2_link [type="bridge" name="bridge-nomics" requestData="<{"data": {"from":"LINK","to":"USD"}}>"] + ds2_link [type="bridge" name="bridge-nomics" requestData=<{"data": {"from":"LINK","to":"USD"}}>] ds2_link_parse [type="jsonparse" path="result"] ds2_link -> ds2_link_parse -> median_link // data source 3 - ds3_link [type="bridge" name="bridge-coinmarketcap" requestData="<{"data": {"from":"LINK","to":"USD"}}>"] + ds3_link [type="bridge" name="bridge-coinmarketcap" requestData=<{"data": {"from":"LINK","to":"USD"}}>] ds3_link_parse [type="jsonparse" path="result"] ds3_link -> ds3_link_parse -> median_link // Fetch the SOL price from three data sources // data source 1 - ds1_coin [type="bridge" name="bridge-tiingo" requestData="<{"data": {"from":"SOL","to":"USD"}}."] + ds1_coin [type="bridge" name="bridge-tiingo" requestData=<{"data": {"from":"SOL","to":"USD"}}>] ds1_coin_parse [type="jsonparse" path="result"] ds1_coin -> ds1_coin_parse -> median_coin // data source 2 - ds2_coin [type="bridge" name="bridge-nomics" requestData="<{"data": {"from":"SOL","to":"USD"}}>"] + ds2_coin [type="bridge" name="bridge-nomics" requestData=<{"data": {"from":"SOL","to":"USD"}}>] ds2_coin_parse [type="jsonparse" path="result"] ds2_coin -> ds2_coin_parse -> median_coin // data source 3 - ds3_coin [type="bridge" name="bridge-coinmarketcap" requestData="<{"data": {"from":"SOL","to":"USD"}}>"] + ds3_coin [type="bridge" name="bridge-coinmarketcap" requestData=<{"data": {"from":"SOL","to":"USD"}}>] ds3_coin_parse [type="jsonparse" path="result"] ds3_coin -> ds3_coin_parse -> median_coin