Skip to content
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

Add queryAPI v3 and update leaderboard generator. #1143

Merged
merged 5 commits into from
Nov 27, 2024
Merged

Conversation

Andrei-Dolgolev
Copy link
Contributor

@Andrei-Dolgolev Andrei-Dolgolev commented Nov 26, 2024

New query parameters which define database of query execution.

POST http://127.0.0.1:7481/queries/Leaderboard_swaps/update_data?customer_id=<db-id>&instance_id=1
Authorization: Bearer <moonstream-token>
Content-Type: application/json

{
    "blockchain": "arbitrum_one",
    "params": {
    }
}

Update leaderboards generator to use new parameters in query execution flow.

Add env variables.
MOONSTREAM_DB_V3_CONTROLLER_API = 'https://mdb-v3-api.moonstream.to'
MOONSTREAM_DB_V3_SCHEMA_NAME = 'blockchain'

moonstreamapi/moonstreamapi/routes/queries.py Outdated Show resolved Hide resolved
@@ -2,4 +2,4 @@
Moonstream crawlers version.
"""

MOONCRAWL_VERSION = "0.4.13"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How it will be merged with PR #1142 - same versions

Copy link
Contributor

@kompotkot kompotkot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

@Andrei-Dolgolev Andrei-Dolgolev merged commit 79b464d into main Nov 27, 2024
0 of 2 checks passed
@Andrei-Dolgolev Andrei-Dolgolev deleted the query-api-v3 branch November 27, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants