Closed filo87 closed 2 years ago
Not all paths are implemented for typegen - since these paths do not appear in Substrate master (and Polkadot master), they are untested and unverified to ensure that they push out the correct outputs in all cases. So the approach here is to rather be explicit on what is non-tested instead of doing the wrong things because the type generation it has not been checked for validity.
So in cases like this,
In all cases, it needs to be checked and verified. Generally can make an attempt to support all cases, but without tests this will result in "this doesn't do what it is supposed to" issues logged, so it is not an avenue I wish to go on.
Something similar (on latest Substrate) addressed in https://github.com/polkadot-js/api/pull/4934
However, the cause of that one is probably vastly different to this.
As for now, going to close this since there is absolutely nothing that can be done without a reproducible case. As it stands this is an issue in the queue that cannot get attention since there is no metadata provided that can replicate the specific issue.
Flee free to re-open once there is actual metadata available.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.
I am trying to generate custom types definitions in the following branch of our project:
https://github.com/embrio-tech/centrifuge-subql/tree/13-implement-custom-types-for-pools-chain-state-getters
After extending the
package.json
to include the ts-node calls for type generation and also updatedtsconfig.json
as following:package.json
tsconfig.json
Some files are created correctly:
types.ts
augment-types.ts
lookup.ts
However when running the
yarn generate:defs
command I get the following error:All @polkadot/api package versions are "8.4.2"
Any idea how to fix this?