0.9.24-next.996 • Published 10 months ago

@litentry/parachain-api v0.9.24-next.996

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

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

  1. Install the package from NPM

    npm install @litentry/parachain-api
  2. Extend 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,
    });
  3. 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

  1. Update your published package version number

  2. Update the CHANGELOG.md file

  3. Build the package

    pnpm run build
  4. Publish the distribution files

    Use next tag for preview versions. Use latest tag 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.

0.9.21-next.35

10 months ago

0.9.21-next.34

10 months ago

0.9.21-next.33

10 months ago

0.9.21-next.39

10 months ago

0.9.21-next.38

10 months ago

0.9.21-next.37

10 months ago

0.9.21-next.312

10 months ago

0.9.24-next.999

10 months ago

0.9.21-next.313

10 months ago

0.9.24-next.998

10 months ago

0.9.24-next.997

10 months ago

0.9.24-next.996

10 months ago

0.9.21-next.311

10 months ago

0.9.21-next.319

10 months ago

0.9.24-next.989

10 months ago

0.9.21-next.323

10 months ago

0.9.21-next.324

10 months ago

0.9.21-next.326

10 months ago

0.9.21-next.320

10 months ago

0.9.21-next.321

10 months ago

0.9.21-next.322

10 months ago

0.9.20-next.8

1 year ago

0.9.20-next.10

1 year ago

0.9.20-next.7

1 year ago

0.9.20-next.9

1 year ago

0.9.21-next.32

10 months ago

0.9.21-next.31

10 months ago

0.9.21-next.0

1 year ago

0.9.21-next.1

1 year ago

0.9.21-next.2

1 year ago

0.9.21-next.3

1 year ago

0.9.20-next.6

1 year ago

0.9.20-next.5

1 year ago

0.9.20-next.0

1 year ago

0.9.20-next.2

1 year ago

0.9.20-next.1

1 year ago

0.9.20-next.4

1 year ago

0.9.20-next.3

1 year ago

0.9.20-4.1

1 year ago

0.9.20-4

1 year ago

0.9.19-7

1 year ago

0.9.18-11.2

2 years ago

0.9.18-11.1

2 years ago

0.9.18-11

2 years ago

0.9.18-10-next.1

2 years ago

0.9.18-10-next.0

2 years ago

0.9.18-10

2 years ago

0.9.18-next.11

2 years ago

0.9.18-next.10

2 years ago

0.9.18-next.9

2 years ago

0.9.18-next.8

2 years ago

0.9.18-next.7

2 years ago

0.9.18-next.6

2 years ago

0.9.18-next.5

2 years ago

0.9.18-05-next.0

2 years ago

0.9.17-1

2 years ago

0.9.18-next.2

2 years ago

0.9.18-next.1

2 years ago

0.9.18-next.0

2 years ago

0.9.18

2 years ago

0.9.17

2 years ago