Files
common/README.md
Jaco Greeff 78e01a0e16 Combine util, types & trie into common (#150)
* Pull in trie repo

* Bring in types repo
2018-06-26 21:26:51 +02:00

3.1 KiB

polkadotjs isc style npm travis maintainability coverage greenkeeper dependency devDependency

@polkadot/util

Various useful utility functions that are used across all projects in the @polkadot namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.

It is split up into a number of internal packages, namely utilities -

Various useful trie interfaces and utilities -

  • trie-db Merkle Patricia Tree implementation adapcted for Polkadot
  • trie-hash Calculate hashes (either ordered or unordered) from a set of inputs

Type definitions for interfaces as exposed by Polkadot & Substrate clients -

Codecs for types (possibly to be combined with types) -

Contributing

  • Bootstrap the dependencies, yarn
  • Make any changes in the relevant package, on master merges new versions will be published automatically