-
Notifications
You must be signed in to change notification settings - Fork 61
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
Replace Deprecated Account type with Keypair #92
Conversation
successfully placed an order with this PR |
thanks for verifying @vikulikov. I'm working to get the integration tests all working. Had some issues bootstrapping serum-dex locally. |
Hey @Imaclean74 , anything that I can help with? |
thanks @leonardgee. I've had some issues running the integration tests locally - older PC not running the release builds of solana. So have been pushing fixes and waiting for the CI to run :( |
oh - and there is also some weirdness with stubbed_base_mint() in conftest.py. It was returning an Account ( changed to Keypair ), but it should almost certainly be a public_key - which is what test_bootstrapped_market() has in it's type hints. But then it was doing a public_key() call on the input which would only work if passed an Account. if you have some insight into how the bootstrapping should work in conftest.py that would be great. Maybe just as simple as returning something like |
@leonardgee I have the integration tests passing locally now - against Solana v1.5.8. With the latest ( 1.7.15 ) I'm getting a couple of failures that will need digging in to. However that looks unrelated to my Account -> Keypair change. It might be tidier to address that in a separate PR ? |
Codecov Report
@@ Coverage Diff @@
## alpha #92 +/- ##
=======================================
Coverage 87.17% 87.17%
=======================================
Files 24 24
Lines 1053 1053
=======================================
Hits 918 918
Misses 135 135 |
thanks for merging @michaelhly. Would this now be ready to publish to Pypi ? |
Thanks for this! @Imaclean74 |
Why is the doc failure after merge. 🤔 Is this caused by the dependency upgrade? |
The Account class was recently deprecated in favor of Keypair in the upstream solana python package as well as the js web3 library. This PR brings pyserum in line with that and resolves #88 and #89
Summary of changes:
solana-py change :
michaelhly/solana-py#62
web3 :
Deprecate Account for Keypair: https://solana-labs.github.io/solana-web3.js/classes/account.html