-
Notifications
You must be signed in to change notification settings - Fork 129
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
Chain specific message lane apis #503
Conversation
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 think it's a little unfortunate that there's no nice way to do this right now. Although I imagine it wouldn't be too difficult or controversial to add an Into<String>
implementation (or something similar) to the runtime API macros in Substrate.
As far as having separate runtime APIs goes, I also think it would be nice to see the macros accept a generic argument and that was we can reuse the same API with different types (so in our case different instances of the chains). That might be a bit harder to do though.
78aeb01
to
c099b83
Compare
Co-authored-by: Hernando Castano <[email protected]>
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.
lgtm!
* replace generic message lane APIs with chain-specific * moved SubstrateHeadersSyncPipeline to headers_pipeline.rs * substrate-specific message lane trait * Update relays/substrate/src/messages_lane.rs Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
* replace generic message lane APIs with chain-specific * moved SubstrateHeadersSyncPipeline to headers_pipeline.rs * substrate-specific message lane trait * Update relays/substrate/src/messages_lane.rs Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
closes #457
on top of #496 => draft
I've tried all possible options, including:
InstanceId
argument;InstanceId
argument);declare_message_lane_runtime_apis!(Rialto)
(failed, because I have found no way to call proc macro from decl macro);decl_runtime_apis
that will generate these string constants, but apparently there's no way to call proc macro from other proc macro. Probably good idea to have this in original substrate macro in the future