-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Cardano cli chain context #274
Cardano cli chain context #274
Conversation
Thanks, this is great! Looks good overall. I think it needs some integration test with cardano-cli, we can add the tests to here. |
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.
I did some formatting - make sure to run make qa
to ensure that QA tests pass for your code. Formatting can be simply done with black .
Thanks for the review and feedback. I will work on the fixes over the coming week. |
I will work on adding integration tests for the cardano-cli chain context next. But to do so, I will need to add the Docker SDK for Python package. This will be an improvement to the cardano-cli chain context that would allow the user to use PyCardano with the cardano-cli in a Docker container. |
…r and network args method to use custom networks
@KINGH242 the PyCardano already contains integrations tests, which are run in a docker container with Ogmios (and likely also the cardano CLI accessible) - I think the Ogmios endpoint is also tested there. Just pointing you in case you were not aware :) |
This is correct. |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #274 +/- ##
==========================================
- Coverage 84.51% 83.17% -1.34%
==========================================
Files 27 28 +1
Lines 3093 3412 +319
Branches 758 835 +77
==========================================
+ Hits 2614 2838 +224
- Misses 358 424 +66
- Partials 121 150 +29 ☔ View full report in Codecov by Sentry. |
Looks good to me. Added more integration tests. I noticed that |
I just realized that this can be done using ‘transaction build ... --calculate-plutus-script-cost’. Never saw or used it before. I will implement it this week. |
I just realized that going through the calculate-plutus-script-cost is quite painful because we would need to essentially disassemble the transaction for the cli to re-build it. I think this is fine to be merged as-is and a cost estimation can be added later based on a per-demand basis. Moreover, uplc 1.0.0 could be used to estimate script cost now entirely without the need of any backend so the estimation based on cli or ogmios or blockfrost might become unneccessary. |
Awesome! It would be great if we can get rid of the dependency on chain context for fee estimation. |
No description provided.