62d1415d1b8eed4b3219f355ac4685b9ad426f7e
* Don't log full error In `txwrapper` we can't always know if a payload is a signing payload or a signed tx so we first try one and then the other. When the former fails users get a scary-looking error. If upstream logs the error there's little we can do about it lest we [monkey patch `console.error`](https://github.com/paritytech/txwrapper-core/pull/22/files#diff-ea2d1c5845dd0e2fb9814e98a3464c2c63a43922983391e98fe9c20c328e979cR55) which is nasty af. Hence this PR that removes the log here so that downstream can choose what to do with the error message. * Add UnsafeOptions to let callers decide if they want errors logged or not * Update packages/api-contract/src/util.ts Co-authored-by: Jaco Greeff <jacogr@gmail.com> * Update packages/rpc-core/src/index.ts Co-authored-by: Jaco Greeff <jacogr@gmail.com> * Update packages/rpc-core/src/index.ts Co-authored-by: Jaco Greeff <jacogr@gmail.com> * Update packages/types/src/create/createType.ts Co-authored-by: Jaco Greeff <jacogr@gmail.com> Co-authored-by: Jaco Greeff <jacogr@gmail.com>
@polkadot/api
This library provides a clean wrapper around all the methods exposed by a Polkadot/Substrate network client and defines all the types exposed by a node. For complete documentation around the classes, interfaces and their use, visit the documentation portal.
If you are an existing user, please be sure to track the CHANGELOG and UPGRADING guides when changing versions.
tutorials
Looking for tutorials to get started? Look at examples for guides on how to use the API to make queries and submit transactions.
overview
The API is split up into a number of internal packages -
- @polkadot/api The API library, providing both Promise and RxJS Observable-based interfaces. This is the main user-facing entry point.
- @polkadot/api-derive Derived results that are injected into the API, allowing for combinations of various query results (only used internally and exposed on the Api instances via
api.derive.*) - @polkadot/api-metadata Base extrinsic, storage and constant injectors for injection
- @polkadot/rpc-core Wrapper around all JSON-RPC methods exposed by a Polkadot network client
- @polkadot/rpc-provider Providers for connecting to nodes, including WebSockets and Http
Type definitions for interfaces as exposed by Polkadot & Substrate clients -
- @polkadot/types Codecs for all Polkadot and Substrate primitives
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%