10.4.10 • Published 1 year ago

@paraspell/pallets v10.4.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Information

This package serves as a core component for both @paraspell/sdk and @paraspell/sdk-pjs and is automatically installed as a dependency. The package on its own offers functionality that can be imported separately and be used in front-end applications. It allows developers to query the XCM pallets that Parachains currently support.

Implementation

Install package

pnpm | npm install || yarn add @paraspell/pallets

Import functionality

To use this functionality you first have to import it in the following way.

import { getDefaultPallet, getSupportedPallets, getPalletIndex, SUPPORTED_PALLETS } from  '@paraspell/pallets'

Get default XCM pallet

The function returns the default XCM pallet for selected compatible Parachain.

getDefaultPallet(node: TNode)

Get all supported XCM pallets

The function returns all supported XCM pallets for selected compatible Parachain.

getSupportedPallets(node: TNode)

Get index of XCM Pallet

The function returns all index of XCM Pallet for selected Parachain.

getPalletIndex(node: TNode)

Print all supported XCM pallets

This returns all supported XCM pallets supported by compatible Parachains as constant.

console.log(SUPPORTED_PALLETS)

💻 Tests

  • Run compilation using pnpm compile

  • Run linter using pnpm lint

  • Run unit tests using pnpm test

  • Update XCM pallets in the map using script - pnpm updatePallets

Pallet queries can be tested in Playground.

License

Made with 💛 by ParaSpell✨

Published under MIT License.

Support

10.4.10

1 year ago

10.4.9

1 year ago

10.4.8

1 year ago

10.4.7

1 year ago

10.4.6

1 year ago

10.4.5

1 year ago

10.4.4

1 year ago

10.4.3

1 year ago

10.4.2

1 year ago

10.4.1

1 year ago

10.4.0

1 year ago

10.3.1

1 year ago

10.3.0

1 year ago

10.2.0

1 year ago

10.1.7

1 year ago

9.2.5

1 year ago

10.1.6

1 year ago

10.1.5

1 year ago

10.1.4

1 year ago

9.2.4

1 year ago

10.1.3

1 year ago

10.1.2

1 year ago

10.1.1

1 year ago

10.1.0

1 year ago

10.0.2

1 year ago

10.0.1

1 year ago

10.0.0

1 year ago

9.2.2

1 year ago

9.2.1

1 year ago

9.2.0

1 year ago

9.1.2

1 year ago

9.1.1

1 year ago

9.1.0

1 year ago

9.0.0

1 year ago

8.16.0

1 year ago

8.15.2

1 year ago

8.15.1

1 year ago

8.15.0

1 year ago

8.14.0

1 year ago

8.13.2

1 year ago

8.13.1

1 year ago

8.13.0

1 year ago

8.12.1

1 year ago

8.12.0

1 year ago

8.11.1

1 year ago

8.11.0

1 year ago

8.10.0

1 year ago

8.9.10

1 year ago

8.9.9

1 year ago

8.9.8

1 year ago

8.9.7

1 year ago

8.9.6

1 year ago

8.9.5

1 year ago

8.9.4

1 year ago

8.9.3

1 year ago

8.9.2

1 year ago

8.9.1

1 year ago

8.9.0

1 year ago