Encointer type definitions for Polkadot.js
yarn add @encointer/types
import types from '@encointer/types';
TODO
To update the types, a new definition is added to the types
map.
export default {
rpc: {},
types: {
NewType: '<NewTypeDef>',
}
};
A subsequent yarn generate:types
updates the types.
To update the polkadot types, upgrade the @polkadot/types
package and generate the types again.
The type generation process is elaborated on in the polkadot.{js} docs.