diff --git a/examples/spec/ocr2-bootstrap.spec.toml b/examples/spec/ocr2-bootstrap.spec.toml new file mode 100644 index 000000000..017045af9 --- /dev/null +++ b/examples/spec/ocr2-bootstrap.spec.toml @@ -0,0 +1,22 @@ +type = "offchainreporting2" +schemaVersion = 1 +blockchainTimeout = "20s" +contractConfigConfirmations = 3 +contractConfigTrackerPollInterval = "1m" +contractConfigTrackerSubscribeInterval = "2m" +name = "" +relay = "solana" +contractID = "" +p2pBootstrapPeers = [] +isBootstrapPeer = true +p2pPeerID = "" +ocrKeyBundleID = "" +monitoringEndpoint = "" +transmitterID = "" + +[relayConfig] +nodeEndpointHTTP = "http:..." +nodeEndpointWS = "ws:..." +stateID = "" +transmissionsID = "" +validatorProgramID = "" diff --git a/examples/spec/ocr2-oracle.spec.toml b/examples/spec/ocr2-oracle.spec.toml new file mode 100644 index 000000000..0a73c2494 --- /dev/null +++ b/examples/spec/ocr2-oracle.spec.toml @@ -0,0 +1,43 @@ +type = "offchainreporting2" +schemaVersion = 1 +blockchainTimeout = "20s" +contractConfigConfirmations = 3 +contractConfigTrackerPollInterval = "1m" +contractConfigTrackerSubscribeInterval = "2m" +name = "" +relay = "solana" +contractID = "" +p2pBootstrapPeers = ["somep2pkey@localhost-tcp:port"] +isBootstrapPeer = false +p2pPeerID = "" +ocrKeyBundleID = "" +monitoringEndpoint = "" +transmitterID = "" +observationSource = """ + ea [type=bridge name=coingecko requestData=<{"data":{"from":"LINK", "to":"USD"}}>] + parse [type="jsonparse" path="result"] + multiply [type="multiply" times=100000000] + + ea -> parse -> multiply +""" +juelsPerFeeCoinSource = """ + link2usd [type=bridge name=coingecko requestData=<{"data":{"from":"LINK", "to":"USD"}}>] + parseL [type="jsonparse" path="result"] + + sol2usd [type=bridge name=coingecko requestData=<{"data":{"from":"SOL", "to":"USD"}}>] + parseT [type="jsonparse" path="result"] + + divide [type="divide" input="$(parseL)" divisor="$(parseT)" precision="9"] + scale [type="multiply" times=1000000000] + + link2usd -> parseL -> divide + sol2usd -> parseT -> divide + divide -> scale +""" + +[relayConfig] +nodeEndpointHTTP = "http:..." +nodeEndpointWS = "ws:..." +stateID = "" +transmissionsID = "" +validatorProgramID = ""