-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
refactor!: extract nft protos #15442
Conversation
@@ -0,0 +1,21 @@ | |||
version: v1 | |||
name: buf.build/mods/nft |
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 cannot push this because buf.build/cosmos/cosmos-sdk
already defines it.
Looking how to force the push with the use of draft commits.
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.
Failure: failed to push module, pushing a module with a dependency pinned to a draft commit is not allowed, dependency "buf.build/cosmos/cosmos-sdk" is pinning to a draft commit "eb123a948f1c4f12881e020940fe007b"
🤡
We can publish only in a follow-up, but generation works, so everything is ok.
I have not added any proto-registry GH Action workflow, as we still need to decide when to publish.
@AmauryM's argument (cosmos/cosmos-proto#94 (review)) is getting relevant here too.
I'm not too sure about this, see #13363 (comment) |
Actually, here I purposely not created another go.mod. What is the use case of that extra go.mod? |
So we'd move the proto files to /x/nft/proto but generate pulsar types to /api? Edit: It doesn't look like this PR is doing the above. If we don't generate an API module (either monolith or one per module) I don't see how we can resolve many of our cyclic dependency issues. |
No, I indeed meant having the pulsar types directly in the module. |
If that's the case, we should be aware that, as written, this PR's approach will hard block cyclic dependency resolution behind an SDK rewrite of SOA over ABI as described in #15410, which is still in design/planning (RFC phase). I guess I'm suggesting we hold off on this refactor for now until SOA over ABI is further along, so that we can explore pulsar adoption and composable SDK modules apart from that workstream. |
Fine by me! I am curious how it should look for non SDK modules, however. Do they need their API module as well? |
How an implementer chooses to organize their code is their choice, so far I don't see a need to impose our design or opinions since non-sdk modules will depend on sdk modules, but sdk modules won't depend on non-sdk modules. |
Closing for now, let's see if we actually need that in next meeting. |
Description
ref: #13363, related to adr-54 discussions
Attempt to do the above for NFT.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change