@unique-nft/quartz-mainnet-types
v1003.70.0
Published
Unique network api types
Downloads
65,371
Keywords
Readme
@unique-nft/quartz-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/quartz-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/quartz-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/quartz-mainnet-types/augment-api';