-
Notifications
You must be signed in to change notification settings - Fork 44
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
[NONEVM-1091] - Refactor/Setup CR init and cfg and codec init #991
base: develop
Are you sure you want to change the base?
Conversation
9c4e95d
to
382f401
Compare
Quality Gate failedFailed conditions |
// This is necessary because AddressModifier cannot be serialized and must be applied at runtime. | ||
func injectAddressModifier(outputModifications codeccommon.ModifiersConfig) { | ||
func injectAddressModifier(inputModifications, outputModifications commoncodec.ModifiersConfig) { |
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.
Can you elaborate on this a little bit more? Why would someone use commoncodec.AddressBytesToStringModifierConfig
instead of codec.SolanaAddressModifier{}
?
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.
Because this AddressBytesToStringModifierConfig
is the actual serializeable modifier config, the actual chain specific impl. which is a function and therefore cannot be serialized is injected during CR startup
ReadType ReadType `json:"readType,omitempty"` | ||
InputModifications commoncodec.ModifiersConfig `json:"inputModifications,omitempty"` | ||
OutputModifications commoncodec.ModifiersConfig `json:"outputModifications,omitempty"` | ||
RPCOpts *RPCOpts `json:"rpcOpts,omitempty"` |
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.
Are the RPCOpts
necessary anymore? We are explicitly using finalized commitment and encoding will probably always be base64
. The only remaining option is for data slices. Do we use that or are we expecting to use that?
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.
Idk, I haven't looked into this yet, just kept it because it was already there
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.
it can most likely be removed
Description