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

chore!: break out BlobTx and IndexWrapper types into separate tx package #97

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

cmwaters
Copy link
Collaborator

While updating celestia-app, it felt out of place that BlobTx and IndexWrapper should be part of the shares package. This moves them out

@cmwaters cmwaters requested review from a team as code owners July 24, 2024 14:52
@cmwaters cmwaters requested review from rach-id, evan-forbes, cristaloleg and walldiss and removed request for a team July 24, 2024 14:52
@celestia-bot celestia-bot requested review from a team July 24, 2024 14:52
Copy link
Collaborator

@rootulp rootulp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also want to move the proto definitions for BlobTx and IndexWrapper from proto/blob/v1/blob.proto to something like proto/tx/blobtx.proto and proto/tx/indexwrapper.proto

@@ -7,8 +7,10 @@
Package | Description
----------|---------------------------------------------------------------------------------------------------------------------
inclusion | Package inclusion contains functions to generate the blob share commitment from a given blob.
proto | Package contains proto definitions and go generated code
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[question] does this proto package actually exist? It looks like the proto definition for BlobTx and IndexWrapper are still inside proto/blob/v1

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put another way: there is no Go package named proto

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No but here is generated code in the proto directory and that's what I was referring to. I'm happy to remove it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this list was just Go packages but I can see an argument for expanding this list to all directories and not just Go packages

@cmwaters
Copy link
Collaborator Author

Do we also want to move the proto definitions for BlobTx and IndexWrapper from proto/blob/v1/blob.proto to something like proto/tx/blobtx.proto and proto/tx/indexwrapper.proto

Yeah it seems more logical to separate them but we don't need to

@cmwaters cmwaters merged commit 384e43d into main Jul 25, 2024
12 checks passed
@cmwaters cmwaters deleted the cal/separate-tx-pkg branch July 25, 2024 12:02
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.

3 participants