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

update generate_type_stubs.py #84

Merged
merged 1 commit into from
Nov 17, 2022
Merged

update generate_type_stubs.py #84

merged 1 commit into from
Nov 17, 2022

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Nov 17, 2022

to parse structs from the rust code, to make it scale as we add more types.

The plan is to add all the protocol types and the types they depend on, to rust. This ends up including all the blockchain data structures as well, such as FullBlock, BlockHeader, SubEpochSegments, SpendBundle, CoinSpend etc.

This lowers the burden to add more types while still keeping the python type stubs up to date.

Here's the CI test ensuring the generated stubs are up-to-date:
https://github.com/Chia-Network/chia_rs/actions/runs/3487808670/jobs/5835877128#step:4:2

@arvidn arvidn marked this pull request as ready for review November 17, 2022 11:46
@arvidn arvidn merged commit 1a0d832 into main Nov 17, 2022
@arvidn arvidn deleted the generate-type-stubs branch November 17, 2022 15:57
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