Socket
Socket
Sign inDemoInstall

@unique-nft/opal-testnet-types

Package Overview
Dependencies
70
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unique-nft/opal-testnet-types

Unique network api types


Version published
Maintainers
5
Weekly downloads
8,437
increased by78.45%

Weekly downloads

Readme

Source

@unique-nft/opal-testnet-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/opal-testnet-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/opal-testnet-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/opal-testnet-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