-
Notifications
You must be signed in to change notification settings - Fork 106
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
Upgrade solana.py to 0.21.0, web3.py to 6.0.0b1 #2751
Conversation
cc90e30
to
a243204
Compare
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.
Can we try and absorb getTransaction here? instead of getConfirmedTransaction - https://michaelhly.github.io/solana-py/rpc/api/#solana.rpc.api.Client.get_transaction
https://docs.solana.com/developing/clients/jsonrpc-api#getconfirmedtransaction <-- being deprecated
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.
LGTM - thanks so much for resolving on the deps level and testing 🙏
@@ -714,7 +749,7 @@ workflows: | |||
|
|||
- test-discovery-provider: | |||
name: test-discovery-provider | |||
- docker-build-and-push: | |||
- docker-build-and-push-updated: |
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.
can we leave it build-and-push
bc we're replacing the old one?
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.
The updated one uses a new base image - I didn't want to go through the process of updating the build for all the services Base image circleci/buildpack-deps:stretch
=> cimg/base:2022.03
1ccf953
to
39202d7
Compare
39202d7
to
7ce1e9c
Compare
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.
Looks great, verified listens e2e on a local setup! Thanks for doing this
@@ -9,8 +9,7 @@ types-redis==3.5.4 | |||
types-requests==2.25.0 | |||
types-pytz==2021.1.2 | |||
|
|||
# web3 used to be 5.11.0 but due to a build issue in docker, downgraded to 5.8.0 | |||
web3==5.8.0 | |||
web3==6.0.0b1 |
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.
can we add some details as to why we are on 6.0.0.b1?
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.
it is the only version that supports websockets v10.1 and that's the version of ws we need for solana-py version that is compatible w anchor py
This will be addressed in a follow up |
Description
Upgrade solana.py version to a version compatible with anchor.py for tx parsing. Solana.py requires websockets >10.1 so we're also upgrading web3.py to a version compatible with websockets >10.1.
Tests
Fixing integration tests
How will this change be monitored? Are there sufficient logs?
N/A