You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this seems like a massive PR: 11k lines of code where only ~50% (pg.go + mocks) are directly marked as generated. Could you please say how much of this PR is generated using the go tools (including genAI)? I am asking since it seems that there are random code pieces which are unused, e.g., like half of pkg/types/chains/solana/lp_types.go : its const part, type EventIdl EventIDLTypes and its descendants; e.g., most of const entries in pkg/types/chains/solana/solana.go.
Hi, this seems like a massive PR: 11k lines of code where only ~50% (pg.go + mocks) are directly marked as generated. Could you please say how much of this PR is generated using the go tools (including genAI)? I am asking since it seems that there are random code pieces which are unused, e.g., like half of pkg/types/chains/solana/lp_types.go : its const part, type EventIdl EventIDLTypes and its descendants; e.g., most of const entries in pkg/types/chains/solana/solana.go.
proto converters were generated by my own generator, and then brushed up manually
EventIdl, EventIDLTypes are copied from chainlink-solana, to be used from the chain capability implementation.
The meaningful part is SolanaService interface definition, the rest is mostly boilerplate for piping it through the relayer.
Actually, now when I think about it, solana chain capability can use log poller's types directly. gonna remove event idls
this seems like a confusing state - if someone wants to change proto converters, how should one proceed?
Just change them manually, like I did. I automated the process of initial scaffolding, but I don't think it should be fully automated
ok, can you at least put the generation code in the top comments of the proto converters file so that there is at least a hint about the generation process?
ok, can you at least put the generation code in the top comments of the proto converters file so that there is at least a hint about the generation process?
Yes, the generator itself is currently WIP, I'll open up a PR with it shortly with the readme on how to use it
ok, can you at least put the generation code in the top comments of the proto converters file so that there is at least a hint about the generation process?
Yes, the generator itself is currently WIP, I'll open up a PR with it shortly with the readme on how to use it
that is fine, but let's at least mark the files as generated, otherwise, this info will be lost.
that is fine, but let's at least mark the files as generated, otherwise, this info will be lost.
But they aren't fully generated, there is still manual work needed and I think "generated by" mark will be confusing.
Plus, the way the generator works it generates both proto + converters based on the interface surface. Whoever will have to extend this interface can't use generator for that, because it will change the protos.
Generator is used to make the initial work easier, but once its merged it shouldn't be used for extending the interface.
ok, can you at least put the generation code in the top comments of the proto converters file so that there is at least a hint about the generation process?
Yes, the generator itself is currently WIP, I'll open up a PR with it shortly with the readme on how to use it
that is fine, but let's at least mark the files as generated, otherwise, this info will be lost.
but IIUC we do not intend to re-generate these files. They were generated once to bootstrap things, and then manually edited, and cannot be reproduced deterministically. That is fine, but they should not be confused with files that are actually re-generated. They are now regular source files, and the code owners are responsible for them - not the generator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supported by chainlink-solana