-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MERC-6190: Remove bid/ask fields from Mercury v4 schema #14252
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2ca2b14
Remove bid/ask fields from Mercury v4 schema
martin-cll 9d8ca7d
Add changeset
martin-cll 73b7b63
make generate
martin-cll 4078e66
Add #internal changeset tag
martin-cll 6d2cd8d
Update chainlink-data-streams dep
martin-cll 27b6e41
Merge branch 'develop' into ml/v4-bid-ask
martin-cll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this
replace
directive to match common: https://github.com/smartcontractkit/chainlink-common/blob/main/go.mod#L111