From 0773f30ea182c466851b87cdecba6dae6f6e51c5 Mon Sep 17 00:00:00 2001 From: mgild Date: Fri, 3 Jun 2022 14:23:30 -0400 Subject: [PATCH] add force_mainnet flag to arithetic operations --- libraries/protos/job_schemas.proto | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/libraries/protos/job_schemas.proto b/libraries/protos/job_schemas.proto index 55bbb2c..b70a8e4 100644 --- a/libraries/protos/job_schemas.proto +++ b/libraries/protos/job_schemas.proto @@ -91,6 +91,7 @@ message OracleJob { // Specifies an aggregatorr to pull the value of. string aggregator_pubkey = 2; } + optional bool force_mainnet = 3; } // Opens and maintains a websocket for light speed data retrieval. @@ -127,6 +128,7 @@ message OracleJob { // A job whose result is computed before dividing our numerical input by that result. OracleJob job = 3; } + optional bool force_mainnet = 3; } // This task will multiply a numerical input by a scalar value or by another @@ -140,6 +142,7 @@ message OracleJob { // A job whose result is computed before multiplying our numerical input by that result. OracleJob job = 3; } + optional bool force_mainnet = 3; } // This task will add a numerical input by a scalar value or by another @@ -153,6 +156,7 @@ message OracleJob { // A job whose result is computed before adding our numerical input by that result. OracleJob job = 3; } + optional bool force_mainnet = 3; } // This task will subtract a numerical input by a scalar value or by another @@ -166,6 +170,7 @@ message OracleJob { // A job whose result is computed before subtracting our numerical input by that result. OracleJob job = 3; } + optional bool force_mainnet = 3; } // Fetch LP token price info from a number of supported exchanges. @@ -418,24 +423,3 @@ message OracleJob { repeated Task tasks = 1; } - -// The schema Oracle nodes receive when they are notified to fulfill a job. -message JobPosting { - // Pubkey of the aggregator to fulfill the job for. - optional bytes aggregator_state_pubkey = 1; - // The pubkey of the nodes this job is assigned to. - repeated bytes node_pubkeys = 2; - // Slot number of the job posting. - optional uint64 slot = 3; -} - -// This schema Oracle nodes respond with when fulfilling a job. -message JobResult { - reserved 1, 5, 6; - // The public key of the responding node. - optional bytes node_pubkey = 2; - // The median value of the jobs the node has fulfilled successfully. - optional double result = 3; - // True if the node failed to decide on an answer to the job. - optional bool error = 4; -}