polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.06k stars 342 forks source link

Generate type definitions for contract abi, just like generating type definitions for metadata. #3337

Open ii-ii-ii opened 3 years ago

ii-ii-ii commented 3 years ago

hi, now the contract abi is no typescript type definition. For example, metadata would be able to generate typescript type definitions via script: https://github.com/polkadot-js/api/blob/master/packages/typegen/README.md I think you understand what I mean. I would like to know if there are plans to do this.

jacogr commented 3 years ago

There are plans to do so, but no promises as to when. (It looked relatively straight-forward when I investigated it around 6 months ago)