Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@moonbeam-network/types-bundle

moonbeam-foundation4.2kGPL-3.0-only1.0.2TypeScript support: included

Bundled types to instantiate the Polkadot JS api with a Moonbeam network

moonbeam, moonriver, types, bundle, polkadot, api

readme

Moonbeam Types Bundle

Exports npm package @moonbeam-network/types-bundle, formated as per polkadot-js specification to use with the app or the API.

Development

typesBundlePre900 is of type OverrideBundleType to associate runtime names with correct definitions.

moonbeamDefinitions is of types OverrideBundleDefinition and returns a different set of types for each runtime version.

To print and save types JSON for a specific version run: ts-node generateJSON.ts <version number>

To print and save the latest: ts-node generateJSON.ts latest