js-algorand-sdk
js-algorand-sdk copied to clipboard
Generate interfaces for algod responses
Summary
Currently, generated algod types are classes that extend the BaseModel, so using them for most of the JSON requests would introduce incorrect types, such as the BaseModel's _get_obj_for_encoding method. Before the next major release, it would be nice to generate interfaces that can be used to refine the current JSON request types and, unlike the current classes, do not introduce "breaking" types.
Scope
Create a code generation template that will generate algod API interfaces with comment documentation and include the generated interfaces in existing JSON requests where applicable.
Urgency
Not urgent, but would be a great enhancement to the current types.