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
There is still a lot to explore here so this issue mainly offer a space to discuss this in more detail before committing to this.
The main idea here is to allow ecosystem users to extend the Codama IDL using customisable PluginNodes that can be understood by anyone that wishes to support that plugin.
For instance, here's a rough implementation proposal for illustration purposes:
constplugins: PluginNode[]=[{kind: 'pluginNode',name: 'translation',data: {'fr': {'transferSol': {name: 'transfertDeSol',docs: [...]},'nonceState': {name: 'étatDuNonce'},},'es': {'transferSol': {name: 'transferenciaDeSol',docs: [...]},'nonceState': {name: 'estadoDelNonce'},},},},{kind: 'pluginNode',name: 'instructionSummary',data: {'transferSol': 'Transfer $amount SOL from $source to $destination','createAccount': 'Create a new account $account with $space bytes on the $programId program',},},];
The text was updated successfully, but these errors were encountered:
There is still a lot to explore here so this issue mainly offer a space to discuss this in more detail before committing to this.
The main idea here is to allow ecosystem users to extend the Codama IDL using customisable
PluginNodes
that can be understood by anyone that wishes to support that plugin.For instance, here's a rough implementation proposal for illustration purposes:
Such that:
Now, imagine the following two concrete plugins:
Which could be used in that way:
The text was updated successfully, but these errors were encountered: