Open sirlensalot opened 2 years ago
When I was cleaning up the kadena-community/kadena.js issues, I came across this comment
A few thoughts:
An AST from the contract would benefit tool makers. Could be a property in the current describe-module
response. Could be instead of the "members" field that you mention, but a members field would serve this purpose too.
An AST would also allow end users to traverse the tree and find which caps are necessary for each defun. If that's something we can offer from describe-module
directly, that would be even easier.
For @kadena/client we'd like to be able to also have the dependencies for each contract. Mainly for the defcaps to know what should be added as a cap to a transaction in the transactionbuilder.
Currently
describe-module
returns the following, e.g. for(describe-module 'coin)
:Improvements include:
Fix
keyset
output (or change togovernance
)The current output is useless. Suggest something like
{ "type": "defcap|keyset", "value": ... }
Add a "members" field
This is a list of all declared members. Suggest following for member schema: