-
Notifications
You must be signed in to change notification settings - Fork 9
feat: types for sync_state_genSyncSpec
#455
Conversation
The main thing blocking this is figuring out how to incorporate the chain spec into the url. I'd suggest we use |
Good question: I was thinking something along the lines of...
I suppose this doesn't take into account the full life cycle
Thoughts @wirednkod? |
Let me try to give my 2 cents here - which is based on some assumptions:
Having said that I think that there could be 2 possible solutions: TBH I do not think that chainspecs should be "saved" somewhere in a URL/IPFS or anything if there is a Substrate on-chain API that one can use to retrieve those; Finally I want to bring to your attention the whole |
I think we should separate the discovery value used for the codegen from the discovery value used at runtime. Right now they're linked, but theoretically it shouldn't matter if, say, a proxy server is used for the codegen but then smoldot is used at runtime, as the codegen only cares about the metadata, as AFAIK that is independent of the way you connect to the chain. I think it's much more important to support using smoldot at runtime by divorcing the codegen discovery value from the runtime discovery value than by supporting smoldot for the codegen discovery value (although that will, of course, be important). Right now, I don't think there's a great way to do this, but I think this will be feasible upon the integration of env into Rune. In terms of supporting smoldot for the codegen discovery value: As those who have concern about using proxy servers would likely have similar concerns about using This would mean:
|
sync_state_genSyncSpec
I completely agree –– I believe this merits a dedicated issue. @tjjfvi, would you like to copy the body of your latest comment into a new issue? Meanwhile, I've renamed this PR to reflect a more minor change (not touching on codegen). |
effects/rpc_known_methods.ts