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
{{ message }}
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.
We have to extract the Rust types into Typescript types. This is done automatically through a typegen tool.
This is a sample TypeScript project with full source & config on GithHub, that uses @polkadot/typegen to generate type definitions that can be used to decorate the @polkadot/api. It uses both types defined for the specific chain as well as the chain metadata to generate TypeScript interfaces. This means that interfaces such as api.query., api.tx. and api.consts.* will be decorated based on chain-specific information, instead of an un-augmented catch-all definition.
We have to extract the Rust types into Typescript types. This is done automatically through a typegen tool.
Follow this tutorial to extract interface types instead of hardcoding them: https://github.com/subquery/subql-examples/tree/main/kitty
Definition of Done:
Budget: $80
The text was updated successfully, but these errors were encountered: