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
{{ message }}
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
This is similar to a GQL client executing GQL queries/mutations.
On the naming conflict, I would prefer to keep pallets without the .pallets props.
The other non-pallet props, would probably be better to have their own prop.
We currently codegen pallet bindings, which are accessible from the root mod. Ie.
There's an issue with this however: we may want to specify the discovery value / how to connect at runtime.
We can do this if we utilize
chain
.This experience is different from that of utilizing the generated bindings. It's not the "happy path."
Alternatively, we could expose a means of mutating the internally-held connection state.
However, this too is not ideal.
Per an offline Capi team convo yesterday, we're thinking of changing the look of the codegen, such that the experience would be as follows.
There's an issue with this: what if a pallet name conflicts with that of a property of chain? Perhaps...
I'd personally prefer not to place pallet bindings under yet another prop. That being said, I'm unsure of whether there are better options.
One more thing to note: this approach would be consumable within pattern libraries, which is not true of the current pallet bindings.
@kratico @ryanleecode @tjjfvi –– thoughts?
The text was updated successfully, but these errors were encountered: