0.22.1 • Published 5 years ago

@polkadot/client-db v0.22.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

polkadotjs license npm beta maintainability coverage

@polkadot/client

A JavaScript version of a Polkadot/Substrate network client. It allows operation in full and light nodes fullfilling all functions of chain operation, however does not include the ability to author blocks (i.e. run as a validator on the network).

Current status

This is the current status of the client -

  • It can sync and operate on Polkadot POC-3 networks, and has been tested against Alexander (Polkadot), Dried Danta (Substrate) as well as Edgeware networks.
  • It currently does not include much (if any) of the RPC interfaces - so it is not (currently) able to support eg. the apps UI connecting to it
  • It does not (currently) do any state and trie pruning, so the resulting backing database growth is not controlled
  • As of 0.19.1 the backing database has been swapped to LmDB, this interface is much faster than the previous implementation, however uses more disk space (follow-up from the previous point). Investigations are still ongoing as to the best fit for the backend DB engine.

Development overview

It is split up into a number of internal packages -

Local development node

Start the node with yarn run start <options>, e.g. yarn run start --chain dried-danta. You can use --help to get a list of the available options.

Running via docker

A docker image is built from the supplied Dockerfile, which includes the latest version as supported and deployed to the registry. To run via docker, the following commands can be used. (Split into lines for readability) -

docker run -d \
  --name dd \
  -p 60666:60666 \
  -v ~/db:/data \
  jacogr/polkadot-js-client:latest \
    --chain alexander \
    --db-path /data \
    --db-type file \
    --telemetry-name "some-cool-name-here"

Some additional expansion to the above -

  • docker -d runs the container as a daemon (skip as required)
  • docker --name specifies the name of the container in docker container ls
  • docker -p maps the p2p port externally (ensure the firewall is open on this)
  • docker -v uses the local host path ~/db as the data path, mapping it to the container itself.
  • For --chain either alexander or dried-danta are built-in options.
  • --db-type can be either file (default, experimental) or lmdb (experimental, more memory intensive).
  • Images are deployed to dockerhub, and we try to keep them current.

You can build your own container via the ./docker.sh script included which will use the latest available repo version to base an image on.

Contributing

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

5 years ago

0.23.0-beta.29

5 years ago

0.23.0-beta.28

5 years ago

0.23.0-beta.27

5 years ago

0.23.0-beta.26

5 years ago

0.23.0-beta.25

5 years ago

0.23.0-beta.24

5 years ago

0.23.0-beta.23

5 years ago

0.23.0-beta.22

5 years ago

0.23.0-beta.21

5 years ago

0.23.0-beta.20

5 years ago

0.23.0-beta.19

5 years ago

0.23.0-beta.18

5 years ago

0.23.0-beta.17

5 years ago

0.23.0-beta.16

5 years ago

0.23.0-beta.15

5 years ago

0.23.0-beta.14

5 years ago

0.23.0-beta.13

5 years ago

0.23.0-beta.12

5 years ago

0.23.0-beta.11

5 years ago

0.23.0-beta.10

5 years ago

0.23.0-beta.9

5 years ago

0.23.0-beta.8

5 years ago

0.23.0-beta.7

5 years ago

0.23.0-beta.6

5 years ago

0.23.0-beta.5

5 years ago

0.23.0-beta.4

5 years ago

0.23.0-beta.3

5 years ago

0.23.0-beta.2

5 years ago

0.23.0-beta.1

5 years ago

0.23.0-beta.0

5 years ago

0.22.1

5 years ago

0.22.0-beta.4

5 years ago

0.22.0-beta.3

5 years ago

0.22.0-beta.2

5 years ago

0.22.0-beta.1

5 years ago

0.22.0-beta.0

5 years ago

0.21.1

5 years ago

0.21.0-beta.4

5 years ago

0.21.0-beta.3

5 years ago

0.21.0-beta.2

5 years ago

0.21.0-beta.1

5 years ago

0.21.0-beta.0

5 years ago

0.20.1

5 years ago

0.19.7

5 years ago

0.19.6

5 years ago

0.19.5

5 years ago

0.19.4

5 years ago

0.19.3

5 years ago

0.19.2

5 years ago

0.19.1

5 years ago

0.18.2

5 years ago

0.18.1

5 years ago

0.17.4

5 years ago

0.17.3

5 years ago

0.17.2

5 years ago

0.17.1

5 years ago

0.16.6

6 years ago

0.16.5

6 years ago

0.16.4

6 years ago

0.16.3

6 years ago

0.16.2

6 years ago

0.16.1

6 years ago

0.15.5

6 years ago

0.15.4

6 years ago

0.15.3

6 years ago

0.15.2

6 years ago

0.15.1

6 years ago

0.13.8

6 years ago

0.13.7

6 years ago

0.13.6

6 years ago

0.13.5

6 years ago

0.13.4

6 years ago

0.13.3

6 years ago

0.13.2

6 years ago

0.13.1

6 years ago

0.12.3

6 years ago

0.12.2

6 years ago

0.12.1

6 years ago

0.11.8

6 years ago

0.11.7

6 years ago

0.11.6

6 years ago

0.11.5

6 years ago

0.11.4

6 years ago

0.11.3

6 years ago

0.11.2

6 years ago

0.11.1

6 years ago

0.10.4

6 years ago

0.10.3

6 years ago

0.10.2

6 years ago

0.10.1

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.8.13

6 years ago

0.8.12

6 years ago

0.8.11

6 years ago

0.8.10

6 years ago

0.8.9

6 years ago

0.8.8

6 years ago

0.8.7

6 years ago

0.8.6

6 years ago

0.8.5

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.7.13

6 years ago

0.7.12

6 years ago

0.7.11

6 years ago

0.7.10

6 years ago

0.7.9

6 years ago

0.7.8

6 years ago

0.7.7

6 years ago

0.7.6

6 years ago

0.7.5

6 years ago

0.7.4

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago