Open apopiak opened 4 years ago
It would be great to have instructions on how to (quickly) generate polkadot-js types to json for development purposes.
e.g. something similar to the following script we created together:
const edgewareDefinitions = require('./dist/definitions.js'); console.log(edgewareDefinitions); const types = Object .values(edgewareDefinitions) .reduce((res, { types }) => ({ ...res, ...types }), {}); console.log(JSON.stringify(types));
and add it here (or similar).
Updated doc link for the "here" above - https://polkadot.js.org/docs/api/examples/promise/typegen/#packages
It would be great to have instructions on how to (quickly) generate polkadot-js types to json for development purposes.
e.g. something similar to the following script we created together:
and add it here (or similar).