Skip to content
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

[@kadena/pactjs-cli] allow the user to retrieve and generate in one command #173

Closed
alber70g opened this issue Feb 24, 2023 · 1 comment · Fixed by #193 or #475
Closed

[@kadena/pactjs-cli] allow the user to retrieve and generate in one command #173

alber70g opened this issue Feb 24, 2023 · 1 comment · Fixed by #193 or #475

Comments

@alber70g
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently the commands are split up between retrieval of the contract and generation of the typings

Describe the solution you'd like
I like to have one command for retrieval and generation

Describe alternatives you've considered
Running both after one another but this requires the storing of a file.

Additional context
Related to this is the namespace that's not included in the retrieved contract. So the namespace is lost in type generation. See also #127

@alber70g
Copy link
Member Author

alber70g commented Mar 10, 2023

  • create contract-generate --contract option, that calls the functions used for retrieve-contract and contract-generate

[0] Namespace can be derived from the passed argument and the information in the contract about the module. In this case the module in the contract is "KAO" so the namespace is the difference between free.KAO and KAO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant