@litentry/parachain-api v0.9.20-4.1
Parachain-api
This library contains the Litentry Network API types and types definitions.
These types were auto generated using Polkadot.js Type Generation
How to use it
Install the package from NPM
npm install @litentry/parachain-apiExtend and decorate the API's types with:
import { identity, vc, trusted_operations, sidechain } from "parachain-api"; const types = { ...identity.types, ...vc.types, ...trusted_operations.types, ...sidechain.types }; const api = await ApiPromise.create({ provider, types, });Import type definitions as needed:
import type { LitentryIdentity } from "@litentry/parachain-api"; function myFunction(identity: LitentryIdentity) { // ... }
Versions
This package is distributed under two main tags: next and latest.
Versions in the pattern of x.x.x-next.x feature the most recent code version to work with tee-dev. E.g., 1.0.0-next.0. Once stable and once the Litentry Protocol is upgraded, the version will be tagged as latest and should be used against tee-prod. E.g.1.0.0.
Publish new versions
Update the
CHANGELOG.mdfileBuild the package
pnpm run buildPublish the distribution files
Use
nexttag for preview versions. Uselatesttag for# for preview versions npm publish --access=public --tag next # for stable versions npm publish --access=public --tag latest
How to regenerate types
Please read the commands of client-api.
1 year ago
12 months ago
1 year ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago