• Stars
    star
    252
  • Rank 161,312 (Top 4 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created almost 7 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Utilities and base libraries for use across polkadot-js for Polkadot and Substrate. Includes base libraries, crypto helpers and cross-environment helpers.

@polkadot/common

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.

overview

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

development

Contributions are welcome!

To start off, this repo (along with others in the @polkadot family) uses yarn workspaces to organise the code. As such, after cloning, its dependencies should be installed via yarn, not via npm; the latter will result in broken dependencies.

To get started -

  1. Clone the repo locally, via git clone https://github.com/polkadot-js/common <optional local path>
  2. Ensure that you have a recent version of Node.js, for development purposes Node 10 is recommended.
  3. Ensure that you have a recent version of Yarn, for development purposes Yarn >=1.10.1 is required.
  4. Install the dependencies by running yarn
  5. Build the everything via yarn run build
  6. You can also launch the API Docs, via yarn vuepress dev docs
  7. Access the docs via http://localhost:8080

tutorials

Looking for tutorials to get started? Look at examples for guides on how to use the base utilities.

More Repositories

1

apps

Basic Polkadot/Substrate UI for interacting with a Polkadot and Substrate node. This is the main user-facing application, allowing access to all features available on Substrate chains.
TypeScript
1,743
star
2

api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
TypeScript
1,065
star
3

extension

Simple browser extension for managing Polkadot and Substrate network accounts in a browser. Allows the signing of extrinsics using these accounts. Also provides a simple interface for compliant extensions for dapps.
TypeScript
972
star
4

tools

Various cli tools for Polkadot and Substrate chains, including basic node monitoring, making API queries via a cli app and other command-line tools
TypeScript
278
star
5

phishing

A curated list of known less-than-honest operators on Polkadot and Substrate networks. Includes a simple JS utility function to check any host or address against this list.
TypeScript
196
star
6

docs

This is the documentation portal for all Polkadot and Substrate related tools and libraries in the polkadot-js family of repos.
JavaScript
164
star
7

wasm

A collection of WASM wrappers (mostly around Rust libraries) that are used as faster versions of JS-native functions on Polkadot and Substrate networks.
TypeScript
126
star
8

ui

Re-usable browser libraries and React UI components used inside the polkadot.{js} family of Polkadot and Substrate applications. Full documentation & examples available
TypeScript
120
star
9

dotapps.io

IPNS with dnslink for the apps UI to interact with Polkadot and Substrate chains.
HTML
102
star
10

client

An alternative Polkadot Runtime Environment implementation acting as a full-node (excluding block production for validators) for syncing with Substrate-based chains.
TypeScript
83
star
11

dev

Development configuration, scripts and and CI setup for polkadot-js projects. It acts as templates for other projects to reduce boilerplate, making everything consistent.
JavaScript
44
star
12

polkadot-js.github.io

Simple landing and project overview page for the polkadot-js family of repos.
HTML
34
star
13

build-deno.land

Package publishing for deno.land/x/polkadot
TypeScript
30
star
14

ts

Misc. TypeScript definitions that are not yet available on DefinitelyTyped but required by other projects in this repo. Should be merged with upstream projects or the DT project.
TypeScript
14
star
15

polkadot-identicon

Deprecated. Moved to partitytech/oo7.
JavaScript
8
star
16

ss58

The SS58 address encoder/decoder
JavaScript
8
star
17

build-bundle

Browser bundles that can be included as-is, without a build step
JavaScript
6
star
18

oo7-polkadot

Polkadot Bonds library
JavaScript
4
star
19

polyfill

Deprecated. Moved to the common repo. A collection of cross-environment polyfills
TypeScript
3
star