Socket
Socket
Sign inDemoInstall

@unique-nft/quartz-mainnet-types

Package Overview
Dependencies
0
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @unique-nft/quartz-mainnet-types

Unique network api types


Version published
Weekly downloads
10K
increased by17.45%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

@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';

FAQs

Last updated on 18 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc