-
Notifications
You must be signed in to change notification settings - Fork 49
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
V3 state crawler #1142
base: main
Are you sure you want to change the base?
V3 state crawler #1142
Conversation
Request connection string from the Moonstream API. | ||
""" | ||
response = requests.get( | ||
f"https://mdb-v3-api.moonstream.to/customers/{customer_id}/instances/{instance_id}/creds/seer/url", |
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.
Create env var for mdb-v3 api pls. Actually it is already exists MOONSTREAM_DB_V3_CONTROLLER_API
Add env MOONSTREAM_DB_V3_CONTROLLER_API.
Determines the table names based on the blockchain and labels version. | ||
Returns an empty dictionary if blockchain is not provided. | ||
""" | ||
if not request_data.blockchain: |
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.
Maybe better to throw exception here?
### bytea | ||
address=HexBytes(call["address"]), | ||
block_number=call["block_number"], | ||
transaction_hash="0x2653135e31407726a25dd8d304878578cdfcc7d69a2b319d1aca4a37ed66956a", |
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.
Hardcoded tx hash?
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.
Let me think about that table require it me need check if i can simple reduce that unique constrain.
moonstreamapi/requirements.txt
Outdated
@@ -39,6 +39,7 @@ MarkupSafe==2.1.1 | |||
moonstream==0.1.1 | |||
moonstreamdb==0.4.5 | |||
moonstreamdb-v3==0.0.18 | |||
moonstreamtypes==0.0.6 |
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.
In setup.py version is 0.0.7
State jobs have ability run over v3 instaces.
Added --customer-db-uri parameter.
new types of jobs available.