-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MERC-6190: Remove bid/ask fields from Mercury v4 schema (#14252)
* Remove bid/ask fields from Mercury v4 schema * Add changeset * make generate * Add #internal changeset tag * Update chainlink-data-streams dep
- Loading branch information
1 parent
1a2b7b6
commit 8490c96
Showing
25 changed files
with
86 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": patch | ||
--- | ||
|
||
Remove bid/ask fields for Mercury v4 schema #internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -478,8 +478,6 @@ func addV4MercuryJob( | |
bootstrapPeerID string, | ||
bootstrapNodePort int, | ||
bmBridge, | ||
bidBridge, | ||
askBridge, | ||
marketStatusBridge string, | ||
servers map[string]string, | ||
clientPubKey ed25519.PublicKey, | ||
|
@@ -497,19 +495,19 @@ func addV4MercuryJob( | |
node.AddJob(t, fmt.Sprintf(` | ||
type = "offchainreporting2" | ||
schemaVersion = 1 | ||
name = "mercury-%[1]d-%[11]s" | ||
name = "mercury-%[1]d-%[9]s" | ||
forwardingAllowed = false | ||
maxTaskDuration = "1s" | ||
contractID = "%[2]s" | ||
feedID = "0x%[10]x" | ||
feedID = "0x%[8]x" | ||
contractConfigTrackerPollInterval = "1s" | ||
ocrKeyBundleID = "%[3]s" | ||
p2pv2Bootstrappers = [ | ||
"%[4]s" | ||
] | ||
relay = "evm" | ||
pluginType = "mercury" | ||
transmitterID = "%[9]x" | ||
transmitterID = "%[7]x" | ||
observationSource = """ | ||
// Benchmark Price | ||
price1 [type=bridge name="%[5]s" timeout="50ms" requestData="{\\"data\\":{\\"from\\":\\"ETH\\",\\"to\\":\\"USD\\"}}"]; | ||
|
@@ -518,31 +516,17 @@ observationSource = """ | |
price1 -> price1_parse -> price1_multiply; | ||
// Bid | ||
bid [type=bridge name="%[6]s" timeout="50ms" requestData="{\\"data\\":{\\"from\\":\\"ETH\\",\\"to\\":\\"USD\\"}}"]; | ||
bid_parse [type=jsonparse path="result"]; | ||
bid_multiply [type=multiply times=100000000 index=1]; | ||
bid -> bid_parse -> bid_multiply; | ||
// Ask | ||
ask [type=bridge name="%[7]s" timeout="50ms" requestData="{\\"data\\":{\\"from\\":\\"ETH\\",\\"to\\":\\"USD\\"}}"]; | ||
ask_parse [type=jsonparse path="result"]; | ||
ask_multiply [type=multiply times=100000000 index=2]; | ||
ask -> ask_parse -> ask_multiply; | ||
// Market Status | ||
marketstatus [type=bridge name="%[14]s" timeout="50ms" requestData="{\\"data\\":{\\"from\\":\\"ETH\\",\\"to\\":\\"USD\\"}}"]; | ||
marketstatus_parse [type=jsonparse path="result" index=3]; | ||
marketstatus [type=bridge name="%[12]s" timeout="50ms" requestData="{\\"data\\":{\\"from\\":\\"ETH\\",\\"to\\":\\"USD\\"}}"]; | ||
marketstatus_parse [type=jsonparse path="result" index=1]; | ||
marketstatus -> marketstatus_parse; | ||
""" | ||
[pluginConfig] | ||
servers = %[8]s | ||
linkFeedID = "0x%[12]x" | ||
nativeFeedID = "0x%[13]x" | ||
servers = %[6]s | ||
linkFeedID = "0x%[10]x" | ||
nativeFeedID = "0x%[11]x" | ||
[relayConfig] | ||
chainID = 1337 | ||
|
@@ -552,8 +536,6 @@ chainID = 1337 | |
node.KeyBundle.ID(), | ||
fmt.Sprintf("%[email protected]:%d", bootstrapPeerID, bootstrapNodePort), | ||
bmBridge, | ||
bidBridge, | ||
askBridge, | ||
serversStr, | ||
clientPubKey, | ||
feedID, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.