Satoshi Qazi Muhammed 1f5ec1bdda typegen: give getSimilarTypes the registry's name for tx arguments
The tx generator rebranded each argument's lookup name (SpWeightsWeightV2Weight
to PezspWeightsWeightV2Weight) before asking getSimilarTypes for its inputs.
The registry knows the type only by its metadata name, so for every lookup
type the class checks found nothing and the generated signature was the bare
type: multisig.asMulti took `maxWeight: PezspWeightsWeightV2Weight` with no
`{ refTime?: any; proofSize?: any }`, and a timepoint without
`{ height?: any; index?: any }`. Passing a plain object, as every caller
does, was a type error.

getSimilarTypes and formatType now get the metadata name, as the query
generator already does for storage keys, and return rebranded names
themselves; the rebranded name is what goes into the imports and the
used-type list. The augment is regenerated (yarn build:metadata, 1070
passed). Only tx.ts files change; enum variant names are untouched.
2026-10-08 23:18:21 +04:00
2026-10-08 03:23:10 +04:00
2026-10-08 03:23:10 +04:00
2026-10-08 03:23:10 +04:00
2026-10-08 23:10:31 +04:00

@pezkuwi/api

Promise and RxJS APIs for interacting with PezkuwiChain and Bizinikiwi-based networks.

Developed by Dijital Kurdistan Tech Institute

Overview

This library provides a clean wrapper around all the methods exposed by a PezkuwiChain/Bizinikiwi network client and defines all the types exposed by a node.

Documentation

For complete documentation around the interfaces and their use, visit the documentation portal.

Installation

# Using npm
npm install @pezkuwi/api

# Using yarn
yarn add @pezkuwi/api

Quick Start

import { ApiPromise, WsProvider } from '@pezkuwi/api';

// Connect to a PezkuwiChain node
const wsProvider = new WsProvider('wss://rpc.pezkuwichain.io');
const api = await ApiPromise.create({ provider: wsProvider });

// Query chain info
const chain = await api.rpc.system.chain();
console.log(`Connected to ${chain}`);

Packages

Package Description
@pezkuwi/api Main API package
@pezkuwi/api-derive Derived API methods
@pezkuwi/types Type definitions
@pezkuwi/rpc-core RPC core functionality
@pezkuwi/rpc-provider RPC providers (WS, HTTP)

Tutorials

Looking for tutorials? Check out examples for guides on how to use the API to make queries and submit transactions.

Changelog

If you are an existing user, please track the CHANGELOG when changing versions.

License

Apache-2.0

Author

Dijital Kurdistan Tech Institute

S
Description
No description provided
Readme Apache-2.0
7.6 MiB
1 Watchers 0 Forks
Languages
TypeScript 99.8%