0.0.2 • Published 4 months ago
@heima-network/api-augment v0.0.2
Description
Heima types augment for @polkadot/api
Environment setup
Install nvm
Inside the repository, run
nvm use
to set the correct Node version.
- If the version is not installed, run
nvm install
.
- If the version is not installed, run
Installation
cd tee-worker/client-api
nvm use
corepack enable pnpm
pnpm install
Type Generated
Update metadata: pnpm load:metadata
or pnpm load:metadata:identity
for specific directory
Generate types:pnpm generate
Usage
pnpm run load:metadata
pnpm run generate
pnpm run build
import '@heima-network/api-augment/identity'
- applies Identity types and endpoint augmentationimport '@heima-network/api-augment/omni'
- applies Omni types and endpoint augmentationimport '@heima-network/api-augment/sidechain'
- applies Sidechain types and endpoint augmentation
Publish
pnpm run generate
pnpm run build
pnpm run publish