add force_mainnet flag to arithetic operations

This commit is contained in:
mgild 2022-06-03 14:23:30 -04:00
parent 6665cd3e72
commit 0773f30ea1
1 changed files with 5 additions and 21 deletions

View File

@ -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;
}