60d3d6396a8e48626c74376e5cba0bdd41f17110
* Add missing U* (number) types * Missing number types & indexes * Add H256, H512, Hash & Signature * Add Bool, KeyValue & U8a (base) * Fix LengthCompact encoder (with tests) * AccountId * AccountId toU8a * Order imports * Apply type aliasses, PropIndex -> ProposalIndex * Cleanup mappers * Add fromJSON to Type * Spliut with Address, AccountId & AccountIndex * Add some comments around the types * instanceOf check * Address can construct from AccountIndex or AccountId * Remove Address.encode (unused) * Allow instance of class in constructor * Cleanup instanceof (String, Bool, H256, H512) * AccountId/AccountIndex check around CodecU8a * Fix unused imports * Additional in-constructor instanceof constructions * u8a allows hex, string or u8a inputs * Metadata.fromJSON * Add Header * Allow CodecNumber to take hex/string inputs * fromJSON uses decoder * Remove LengthFixed (only compact used), add tests * Some tests around Type * Remove unused package * PR comments * Expand tests (and fix some bug - yay for tests) * Rename /base -> /codec
@polkadot/api
This library provides a clean wrapper around all the methods exposed by a Polkadot/Subtrate network client. For complete documentation around the classes, interfaces and their use, visit the documentation portal.
The API is split up into a number of internal packages -
- @polkadot/api The low-level base API library
- @polkadot/api-rx A RxJs Observable wrapper around the API
- @polkadot/api-format Input and output formatters
- @polkadot/api-provider Providers for connecting
Type definitions for interfaces as exposed by Polkadot & Substrate clients -
- @polkadot/extrinsics Base extrinsic definitions & codecs
- @polkadot/jsonrpc Definitions for JSONRPC endpoints
- @polkadot/params Input/output parameter formatting
- @polkadot/primitives Primitive type definitions, builder & codecs
- @polkadot/storage Definitions for storage entries
Description
Fork of polkadot-js/api. Held for the @polkadot/types side of Quantus support — ExtrinsicSignature is MultiSignature (64/65 bytes) upstream, where Quantus needs a 5261/7219-byte DilithiumSignatureScheme. May turn out to need no patch at all if registry type overrides suffice; see quantus/api#1.
142 MiB
Languages
TypeScript
99.9%