* Add documentation * Justification u8a decoding and json encoding (#146) * Decode Justifications * Json encoding for justifications * Bump deps * Allow extrinsic length encoding to operate on u8a[] (#148) * Fix config and move generated doc to a subfolder * Cleanup extrinsic encoding (#150) * Cleanup extrinsic encoding * Removed now-defunct type * Add uncheckedLength encoding * Add examples * Ignore package-lock since we use yarn * Cleanup examples * Add gitbook config and some base files for the doc * Do not make full doc mandatory for now * Add contributing guide, polish doc and samples * Update the deps of all samples and add yarn scripts Fix and regenerate the doc * Fix Contributing guide
28 lines
728 B
Plaintext
28 lines
728 B
Plaintext
= Examples
|
||
|
||
For the following examples, you need a local node. It is usually convenient testing with:
|
||
|
||
```
|
||
polkadot --dev
|
||
```
|
||
|
||
Some of the examples use the following accounts:
|
||
|
||
- Alice: `5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaDtZ`
|
||
- Bob: `5Gw3s7q4QLkSWwknsiPtjujPv3XM4Trxi5d4PgKMMk3gfGTE`
|
||
|
||
Those accounts are easy to add if you don´t have/see them. The seed of Alice´s account is `Alice␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣` and the seed of Bob is... well you guess...
|
||
|
||
NOTE: Note the spaces padding Alice´s key up to 32 chars.
|
||
|
||
== Install
|
||
|
||
From each folder, run `yarn` to install the required dependencies
|
||
|
||
== Running the examples
|
||
|
||
From each folder, run:
|
||
```
|
||
yarn start
|
||
```
|