@unique-nft/rc-types
TypeScript icon, indicating that this package has built-in type declarations

929.31.0 • Public • Published

@unique-nft/unique-mainnet-types

Unique network api types

Do not edit by hand, those types are generated automatically, and definitions are located in chain repo

Using types

Install library:

yarn add --dev @unique-nft/unique-mainnet-types

Replace polkadot.js types with our chain types adding corresponding path override to the tsconfig compilerOptions.paths section:

// in tsconfig.json
{
  "compilerOptions": {
    "paths": {
      "@polkadot/types/lookup": ["node_modules/@unique-nft/unique-mainnet-types/types-lookup"]
    }
  }
}

Since polkadot v7 api augmentations not loaded by default, in every file, where you need to access api.tx, api.query, api.rpc, etc; you should explicitly import corresponding augmentation before any other polkadot.js related import:

import '@unique-nft/unique-mainnet-types/augment-api';

Dependents (0)

Package Sidebar

Install

npm i @unique-nft/rc-types

Weekly Downloads

1

Version

929.31.0

License

MIT

Unpacked Size

2.22 MB

Total Files

117

Last publish

Collaborators

  • max.andreev
  • ashkuc
  • ut-akuznetsov
  • lach
  • nonfungible