-
Notifications
You must be signed in to change notification settings - Fork 115
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
update sidecar in localnet to support polymarket #2043
update sidecar in localnet to support polymarket #2043
Conversation
WalkthroughThe recent updates enhance the functionality and configuration of the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- protocol/contrib/slinky/oracle.json (1 hunks)
- protocol/docker-compose.yml (1 hunks)
Files skipped from review due to trivial changes (1)
- protocol/docker-compose.yml
Additional comments not posted (1)
protocol/contrib/slinky/oracle.json (1)
26-47
: LGTM! Verify the correctness of the configuration.The new
polymarket_api
section is well-structured and follows the same pattern as the existingdydx_migration_api
section. The changes enhance the functionality by integrating a new data source for market prices.However, ensure that the configuration values, especially the
timeout
,interval
,reconnectTimeout
, andendpoints
, are correct and meet the requirements.Verification successful
LGTM! Verify the correctness of the configuration.
The new
polymarket_api
section is well-structured and follows the same pattern as the existingdydx_migration_api
section. The changes enhance the functionality by integrating a new data source for market prices.All required attributes, including
name
,type
,api
,enabled
,timeout
,interval
,reconnectTimeout
,maxQueries
,atomic
,endpoints
,apiKey
,apiKeyHeader
, andbatchSize
, are correctly present and configured.
name
: "polymarket_api"type
: "price_provider"api
:
enabled
: truetimeout
: 3000000000interval
: 500000000reconnectTimeout
: 2000000000maxQueries
: 1atomic
: falseendpoints
:
url
: "https://clob.polymarket.com/price?token_id=%s&side=BUY"authentication
:
apiKey
: ""apiKeyHeader
: ""batchSize
: 0Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the correctness of the configuration values. # Test: Check for the presence of required keys and validate their values. rg --type json -A 5 $'"polymarket_api"'Length of output: 707
Script:
#!/bin/bash # Description: Verify the remaining configuration values within the `api` object and the `endpoints` array. # Test: Check for the presence and values of `atomic`, `endpoints`, and `batchSize`. rg --type json -A 10 $'"polymarket_api"'Length of output: 1067
Script:
#!/bin/bash # Description: Verify the remaining configuration values within the `api` object and the `endpoints` array. # Test: Check for the presence and values of `apiKey`, `apiKeyHeader`, and `batchSize`. rg --type json -A 15 $'"polymarket_api"'Length of output: 1355
Script:
#!/bin/bash # Description: Verify the remaining configuration value of `batchSize`. # Test: Check for the presence and value of `batchSize`. rg --type json -A 20 $'"polymarket_api"'Length of output: 1542
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.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (1)
protocol/contrib/slinky/oracle.json (1)
26-47
: Review thepolymarket_api
configuration for completeness and potential issues.
- The
polymarket_api
configuration lacks awebSocket
section, which is present in other price provider configurations. Consider adding it if applicable.- The authentication fields
apiKey
andapiKeyHeader
are empty. Ensure these are filled if authentication is required.Analysis chain
Verify the completeness of the
polymarket_api
configuration.Ensure that all necessary parameters for the
polymarket_api
are included and correctly configured. Compare with other similar configurations to maintain consistency.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the completeness and consistency of `polymarket_api` configuration. # Test: Check for similar configurations and ensure consistency. rg --type json '"type": "price_provider"' -A 20Length of output: 23315
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- protocol/contrib/slinky/oracle.json (1 hunks)
- protocol/docker-compose.yml (1 hunks)
Additional comments not posted (2)
protocol/docker-compose.yml (2)
116-116
: Verify the image version update forslinky0
.Ensure that the new image version
v1.0.8
is tested and compatible with the current configuration.
121-122
: Confirm the necessity and correctness of new environment variables.The new environment variables for Uniswap V3 API integration should be verified for correctness and necessity.
"authentication": { | ||
"apiKey": "", | ||
"apiKeyHeader": "" |
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.
Flag potential issues with empty authentication parameters.
The apiKey
and apiKeyHeader
are empty. Ensure that these values are set appropriately to avoid authentication issues.
{
"authentication": {
"apiKey": "your_api_key_here",
"apiKeyHeader": "your_api_key_header_here"
}
}
Changelist
[Describe or list the changes made in this PR]
Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
New Features
Chores
slinky0
service to versionv1.0.8
, potentially improving performance and functionality.