-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Typegen - Account for program types automatically #989
Comments
[TL;DR] Currently, ABIs have no information about the program type. We touched on this here: And also here: Maybe we should have an explicit issue for this on the Sway repo? |
@nedsalk Should we address this together with the new abi spec PR? |
@arboleya we can, but I'd do it in a separate PR that can be based off of the "new ABI format" one. Also, I believe that this can bring about some breaking changes like removing |
Makes sense, better to do it in isolation. |
This is being implemented in TS-600 |
Currently the default behaviour of the typegen CLI is to generate types for the contract program type:
fuels-ts/packages/abi-typegen/src/cli.ts
Lines 16 to 34 in 49c103b
We have had a couple of questions on the forum suggesting that they would expect typegen default behaviour to account for predicates:
So should we adjust typegen to account for all program types? Program type can be inferred from the ABI
programType
property. The parameters could remain and act as a filter for when a single program type is required.The text was updated successfully, but these errors were encountered: