A re-implementation of a Patricia Trie. Unlike other implementations, this allows for the specification of a hash function as well as encoder/decoder and operates in a sync fashion by default.
-This is a JavaScript port of the Python Ethereum Trie with additions to support transactions (checkpoints) and multiple hashing (npot only Keccak, but also Blake2 as found in Polkadot).
+This is a JavaScript port of the Python Ethereum Trie with additions to support transactions (checkpoints) and multiple codecs, by default only the Substrate codec.
Installation -
yarn add @polkadot/trie-db
@@ -401,7 +401,7 @@
diff --git a/docs/trie-db/interfaces/_types_.triedb.md b/docs/trie-db/interfaces/_types_.triedb.md
index a674fff79..bb3663f38 100644
--- a/docs/trie-db/interfaces/_types_.triedb.md
+++ b/docs/trie-db/interfaces/_types_.triedb.md
@@ -18,7 +18,7 @@
**● db**: *`TxDb`*
-*Defined in [types.ts:37](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L37)*
+*Defined in [types.ts:37](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L37)*
___
@@ -32,7 +32,7 @@ ___
*Inherited from BaseDb.close*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:18](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L18)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:18](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L18)*
**Returns:** `void`
@@ -45,7 +45,7 @@ ___
*Inherited from BaseDb.del*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:26](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L26)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:26](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L26)*
**Parameters:**
@@ -64,7 +64,7 @@ ___
*Inherited from BaseDb.drop*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L20)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L20)*
**Returns:** `void`
@@ -77,7 +77,7 @@ ___
*Inherited from BaseDb.empty*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:21](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L21)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:21](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L21)*
**Returns:** `void`
@@ -90,7 +90,7 @@ ___
*Inherited from BaseDb.get*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:27](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L27)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:27](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L27)*
**Parameters:**
@@ -107,7 +107,7 @@ ___
▸ **getRoot**(): `Uint8Array`
-*Defined in [types.ts:39](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L39)*
+*Defined in [types.ts:39](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L39)*
**Returns:** `Uint8Array`
@@ -120,7 +120,7 @@ ___
*Inherited from BaseDb.maintain*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L22)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L22)*
**Parameters:**
@@ -139,7 +139,7 @@ ___
*Inherited from BaseDb.open*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:19](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L19)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:19](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L19)*
**Returns:** `void`
@@ -152,7 +152,7 @@ ___
*Inherited from BaseDb.put*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:28](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L28)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:28](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L28)*
**Parameters:**
@@ -172,7 +172,7 @@ ___
*Inherited from BaseDb.rename*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L23)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:23](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L23)*
**Parameters:**
@@ -190,7 +190,7 @@ ___
▸ **setRoot**(rootHash: *`Uint8Array`*): `void`
-*Defined in [types.ts:40](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L40)*
+*Defined in [types.ts:40](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L40)*
**Parameters:**
@@ -209,7 +209,7 @@ ___
*Inherited from BaseDb.size*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L24)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L24)*
**Returns:** `number`
@@ -220,7 +220,7 @@ ___
▸ **snapshot**(dest: *[TrieDb](_types_.triedb.md)*, fn: *`ProgressCb`*): `number`
-*Defined in [types.ts:41](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L41)*
+*Defined in [types.ts:41](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L41)*
**Parameters:**
@@ -240,7 +240,7 @@ ___
*Inherited from TxDb.transaction*
-*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:32](https://github.com/polkadot-js/common/blob/477be90/packages/db/src/types.d.ts#L32)*
+*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.d.ts:32](https://github.com/polkadot-js/common/blob/f82092e/packages/db/src/types.d.ts#L32)*
**Parameters:**
diff --git a/docs/trie-db/modules/_constants_.md b/docs/trie-db/modules/_constants_.md
index 139597f9c..f5f3c03a0 100644
--- a/docs/trie-db/modules/_constants_.md
+++ b/docs/trie-db/modules/_constants_.md
@@ -1,2 +1,36 @@
+# Type aliases
+
+
+
+## Constants
+
+**Ƭ Constants**: *`object`*
+
+*Defined in [constants.ts:9](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/constants.ts#L9)*
+
+#### Type declaration
+
+___
+
+# Functions
+
+
+
+## default
+
+▸ **default**(codec: *`Codec`*): `object`
+
+*Defined in [constants.ts:14](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/constants.ts#L14)*
+
+**Parameters:**
+
+| Name | Type |
+| ------ | ------ |
+| codec | `Codec` |
+
+**Returns:** `object`
+
+___
+
diff --git a/docs/trie-db/modules/_ethereum_spec_.md b/docs/trie-db/modules/_ethereum_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-db/modules/_ethereum_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-db/modules/_ethereumcodec_.md b/docs/trie-db/modules/_ethereumcodec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-db/modules/_ethereumcodec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-db/modules/_genesis_spec_.md b/docs/trie-db/modules/_genesis_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-db/modules/_genesis_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-db/modules/_index_spec_.md b/docs/trie-db/modules/_index_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-db/modules/_index_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-db/modules/_snapshot_spec_.md b/docs/trie-db/modules/_snapshot_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-db/modules/_snapshot_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-db/modules/_subtrate_spec_.md b/docs/trie-db/modules/_subtrate_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-db/modules/_subtrate_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-db/modules/_types_.md b/docs/trie-db/modules/_types_.md
index c206560b2..b58a0ef5c 100644
--- a/docs/trie-db/modules/_types_.md
+++ b/docs/trie-db/modules/_types_.md
@@ -32,7 +32,7 @@
**Ƭ EncodedPath**: * `Uint8Array` | `null`
*
-*Defined in [types.ts:28](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L28)*
+*Defined in [types.ts:28](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L28)*
___
@@ -42,7 +42,7 @@ ___
**Ƭ Node**: * [NodeEmpty](_types_.md#nodeempty) | [NodeNotEmpty](_types_.md#nodenotempty)
*
-*Defined in [types.ts:34](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L34)*
+*Defined in [types.ts:34](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L34)*
___
@@ -51,7 +51,7 @@ ___
**Ƭ NodeBranch**: *[[NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty)]*
-*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L20)*
+*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L20)*
___
@@ -60,7 +60,7 @@ ___
**Ƭ NodeEmpty**: *`null`*
-*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L14)*
+*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L14)*
___
@@ -69,7 +69,7 @@ ___
**Ƭ NodeEncoded**: *`Uint8Array`*
-*Defined in [types.ts:16](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L16)*
+*Defined in [types.ts:16](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L16)*
___
@@ -79,7 +79,7 @@ ___
**Ƭ NodeEncodedOrEmpty**: * [NodeEncoded](_types_.md#nodeencoded) | [NodeEmpty](_types_.md#nodeempty)
*
-*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L18)*
+*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L18)*
___
@@ -88,7 +88,7 @@ ___
**Ƭ NodeKv**: *[[EncodedPath](_types_.md#encodedpath), [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty)]*
-*Defined in [types.ts:30](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L30)*
+*Defined in [types.ts:30](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L30)*
___
@@ -98,7 +98,7 @@ ___
**Ƭ NodeNotEmpty**: * [NodeKv](_types_.md#nodekv) | [NodeBranch](_types_.md#nodebranch)
*
-*Defined in [types.ts:32](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/types.ts#L32)*
+*Defined in [types.ts:32](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/types.ts#L32)*
___
diff --git a/docs/trie-db/modules/_util_is_.md b/docs/trie-db/modules/_util_is_.md
index 73516f208..445808907 100644
--- a/docs/trie-db/modules/_util_is_.md
+++ b/docs/trie-db/modules/_util_is_.md
@@ -8,7 +8,7 @@
▸ **isBranchNode**(node: *[Node](_types_.md#node)*): `boolean`
-*Defined in [util/is.ts:57](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/is.ts#L57)*
+*Defined in [util/is.ts:57](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/is.ts#L57)*
*__name__*: isBranchNode
@@ -33,7 +33,7 @@ ___
▸ **isEmptyNode**(node: *[Node](_types_.md#node)*): `boolean`
-*Defined in [util/is.ts:17](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/is.ts#L17)*
+*Defined in [util/is.ts:17](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/is.ts#L17)*
*__name__*: isEmptyNode
@@ -58,7 +58,7 @@ ___
▸ **isExtensionNode**(node: *[Node](_types_.md#node)*): `boolean`
-*Defined in [util/is.ts:37](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/is.ts#L37)*
+*Defined in [util/is.ts:37](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/is.ts#L37)*
*__name__*: isExtensionNode
@@ -83,7 +83,7 @@ ___
▸ **isKvNode**(node: *[Node](_types_.md#node)*): `boolean`
-*Defined in [util/is.ts:27](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/is.ts#L27)*
+*Defined in [util/is.ts:27](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/is.ts#L27)*
*__name__*: isKvNode
@@ -108,7 +108,7 @@ ___
▸ **isLeafNode**(node: *[Node](_types_.md#node)*): `boolean`
-*Defined in [util/is.ts:47](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/is.ts#L47)*
+*Defined in [util/is.ts:47](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/is.ts#L47)*
*__name__*: isLeafNode
diff --git a/docs/trie-db/modules/_util_key_.md b/docs/trie-db/modules/_util_key_.md
index 9e566f645..57589d992 100644
--- a/docs/trie-db/modules/_util_key_.md
+++ b/docs/trie-db/modules/_util_key_.md
@@ -8,7 +8,7 @@
▸ **computeExtensionKey**(nibbles: *`Uint8Array`*): [EncodedPath](_types_.md#encodedpath)
-*Defined in [util/key.ts:50](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/key.ts#L50)*
+*Defined in [util/key.ts:36](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/key.ts#L36)*
**Parameters:**
@@ -25,7 +25,7 @@ ___
▸ **computeLeafKey**(nibbles: *`Uint8Array`*): [EncodedPath](_types_.md#encodedpath)
-*Defined in [util/key.ts:54](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/key.ts#L54)*
+*Defined in [util/key.ts:40](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/key.ts#L40)*
**Parameters:**
@@ -42,7 +42,7 @@ ___
▸ **consumeCommonPrefix**(left: *`Uint8Array`*, right: *`Uint8Array`*): [`Uint8Array`, `Uint8Array`, `Uint8Array`]
-*Defined in [util/key.ts:70](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/key.ts#L70)*
+*Defined in [util/key.ts:56](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/key.ts#L56)*
**Parameters:**
@@ -53,23 +53,6 @@ ___
**Returns:** [`Uint8Array`, `Uint8Array`, `Uint8Array`]
-___
-
-
-## extractKey
-
-▸ **extractKey**(node: *[Node](_types_.md#node)*): `Uint8Array`
-
-*Defined in [util/key.ts:12](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/key.ts#L12)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| node | [Node](_types_.md#node) |
-
-**Returns:** `Uint8Array`
-
___
@@ -77,7 +60,7 @@ ___
▸ **getCommonPrefixLength**(left: *`Uint8Array`*, right: *`Uint8Array`*): `number`
-*Defined in [util/key.ts:60](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/key.ts#L60)*
+*Defined in [util/key.ts:46](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/key.ts#L46)*
**Parameters:**
@@ -95,7 +78,7 @@ ___
▸ **keyEquals**(key: * `Uint8Array` | `null`*, test: * `Uint8Array` | `null`*): `boolean`
-*Defined in [util/key.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/key.ts#L24)*
+*Defined in [util/key.ts:10](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/key.ts#L10)*
**Parameters:**
@@ -113,7 +96,7 @@ ___
▸ **keyStartsWith**(key: * `Uint8Array` | `null`*, partial: * `Uint8Array` | `null`*): `boolean`
-*Defined in [util/key.ts:34](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/key.ts#L34)*
+*Defined in [util/key.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/key.ts#L20)*
**Parameters:**
diff --git a/docs/trie-db/modules/_util_nibbles_.md b/docs/trie-db/modules/_util_nibbles_.md
deleted file mode 100644
index ca4375a98..000000000
--- a/docs/trie-db/modules/_util_nibbles_.md
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-# Functions
-
-
-
-## addNibblesTerminator
-
-▸ **addNibblesTerminator**(nibbles: *`Uint8Array`*): `Uint8Array`
-
-*Defined in [util/nibbles.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/nibbles.ts#L22)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| nibbles | `Uint8Array` |
-
-**Returns:** `Uint8Array`
-
-___
-
-
-## decodeNibbles
-
-▸ **decodeNibbles**(value: *[NodeEncodedOrEmpty](_types_.md#nodeencodedorempty)*): `Uint8Array`
-
-*Defined in [util/nibbles.ts:43](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/nibbles.ts#L43)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| value | [NodeEncodedOrEmpty](_types_.md#nodeencodedorempty) |
-
-**Returns:** `Uint8Array`
-
-___
-
-
-## encodeNibbles
-
-▸ **encodeNibbles**(nibbles: *`Uint8Array`*): [NodeEncoded](_types_.md#nodeencoded)
-
-*Defined in [util/nibbles.ts:56](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/nibbles.ts#L56)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| nibbles | `Uint8Array` |
-
-**Returns:** [NodeEncoded](_types_.md#nodeencoded)
-
-___
-
-
-## isNibblesTerminated
-
-▸ **isNibblesTerminated**(nibbles: *`Uint8Array`*): `boolean`
-
-*Defined in [util/nibbles.ts:18](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/nibbles.ts#L18)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| nibbles | `Uint8Array` |
-
-**Returns:** `boolean`
-
-___
-
-
-## removeNibblesTerminator
-
-▸ **removeNibblesTerminator**(nibbles: *`Uint8Array`*): `Uint8Array`
-
-*Defined in [util/nibbles.ts:35](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/nibbles.ts#L35)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| nibbles | `Uint8Array` |
-
-**Returns:** `Uint8Array`
-
-___
-
diff --git a/docs/trie-db/modules/_util_node_.md b/docs/trie-db/modules/_util_node_.md
index a519d7e4b..6cc513098 100644
--- a/docs/trie-db/modules/_util_node_.md
+++ b/docs/trie-db/modules/_util_node_.md
@@ -6,14 +6,15 @@
## decodeNode
-▸ **decodeNode**(encoded: * `Uint8Array` | [Node](_types_.md#node)*): [Node](_types_.md#node)
+▸ **decodeNode**(codec: *`Codec`*, encoded: * `Uint8Array` | [Node](_types_.md#node)*): [Node](_types_.md#node)
-*Defined in [util/node.ts:31](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/node.ts#L31)*
+*Defined in [util/node.ts:30](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/node.ts#L30)*
**Parameters:**
| Name | Type |
| ------ | ------ |
+| codec | `Codec` |
| encoded | `Uint8Array` | [Node](_types_.md#node)|
**Returns:** [Node](_types_.md#node)
@@ -23,14 +24,15 @@ ___
## encodeNode
-▸ **encodeNode**(node: *[Node](_types_.md#node)*): `Uint8Array`
+▸ **encodeNode**(codec: *`Codec`*, node: *[Node](_types_.md#node)*): `Uint8Array`
-*Defined in [util/node.ts:48](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/node.ts#L48)*
+*Defined in [util/node.ts:46](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/node.ts#L46)*
**Parameters:**
| Name | Type |
| ------ | ------ |
+| codec | `Codec` |
| node | [Node](_types_.md#node) |
**Returns:** `Uint8Array`
@@ -42,7 +44,7 @@ ___
▸ **getNodeType**(node: *[Node](_types_.md#node)*): [NodeType](../enums/_types_.nodetype.md)
-*Defined in [util/node.ts:14](https://github.com/polkadot-js/common/blob/477be90/packages/trie-db/src/util/node.ts#L14)*
+*Defined in [util/node.ts:13](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-db/src/util/node.ts#L13)*
**Parameters:**
diff --git a/docs/trie-hash/README.md b/docs/trie-hash/README.md
index 2bffcabb0..a9afeed42 100644
--- a/docs/trie-hash/README.md
+++ b/docs/trie-hash/README.md
@@ -2,7 +2,7 @@
@polkadot/trie-hash
===================
-Calculate ordered and unordered [Ethereum Trie hashes](https://github.com/ethereum/wiki/wiki/Patricia-Tree) from inputs.
+Calculate ordered and unordered [Trie hashes](https://github.com/ethereum/wiki/wiki/Patricia-Tree) from inputs.
Usage
-----
@@ -26,21 +26,6 @@ Below is a list of currently exposed methods published at the [Polkadot-JS Commo
* [trie-hash](https://polkadot.js.org/common/trie-hash/README.md)
* Functions
- * Encode
- * [encode](https://polkadot.js.org/common/trie-hash/modules/_encode_index_.md)
- * [encodeAux](https://polkadot.js.org/common/trie-hash/modules/_encode_aux_.md)
- * [encodeHexPrefix](https://polkadot.js.org/common/trie-hash/modules/_encode_hexprefix_.md)
- * [encodePairs](https://polkadot.js.org/common/trie-hash/modules/_encode_pairs_.md)
- * [encodeShared](https://polkadot.js.org/common/trie-hash/modules/_encode_shared_.md)
- * [encodeSingle](https://polkadot.js.org/common/trie-hash/modules/_encode_single_.md)
- * Trie Root
- * [trieRoot](https://polkadot.js.org/common/trie-hash/modules/_root_.md)
- * [trieRootOrdered](https://polkadot.js.org/common/trie-hash/modules/_rootordered_.md)
- * Util
- * [asNibbles](https://polkadot.js.org/common/trie-hash/modules/_util_asnibbles_.md)
- * [fromNibbles](https://polkadot.js.org/common/trie-hash/modules/_util_fromnibbles_.md)
- * [genRoot](https://polkadot.js.org/common/trie-hash/modules/_util_genroot_.md)
- * [getSharedLength](https://polkadot.js.org/common/trie-hash/modules/_util_sharedlength_.md)
- * [pairsUniq](https://polkadot.js.org/common/trie-hash/modules/_util_pairsuniq_.md)
- * [sharedPrefixLength](https://polkadot.js.org/common/trie-hash/modules/_util_sharedprefixlength_.md)
+ * [trieRoot](https://polkadot.js.org/common/trie-hash/modules/_trieroot_.md)
+ * [trieRootOrdered](https://polkadot.js.org/common/trie-hash/modules/_trierootordered_.md)
diff --git a/docs/trie-hash/SUMMARY.md b/docs/trie-hash/SUMMARY.md
index fe1bcd018..e918bdf4c 100644
--- a/docs/trie-hash/SUMMARY.md
+++ b/docs/trie-hash/SUMMARY.md
@@ -1,15 +1,10 @@
-* ["encode/aux"](modules/_encode_aux_.md)
-* ["encode/hexPrefix"](modules/_encode_hexprefix_.md)
-* ["encode/index"](modules/_encode_index_.md)
-* ["encode/pairs"](modules/_encode_pairs_.md)
-* ["encode/shared"](modules/_encode_shared_.md)
-* ["encode/single"](modules/_encode_single_.md)
+* ["buildTrie"](modules/_buildtrie_.md)
+* ["defaults"](modules/_defaults_.md)
+* ["genesis.spec"](modules/_genesis_spec_.md)
* ["index"](modules/_index_.md)
-* ["root"](modules/_root_.md)
-* ["rootOrdered"](modules/_rootordered_.md)
-* ["util/asNibbles"](modules/_util_asnibbles_.md)
-* ["util/fromNibbles"](modules/_util_fromnibbles_.md)
-* ["util/genRoot"](modules/_util_genroot_.md)
-* ["util/pairsUniq"](modules/_util_pairsuniq_.md)
-* ["util/sharedLength"](modules/_util_sharedlength_.md)
-* ["util/sharedPrefixLength"](modules/_util_sharedprefixlength_.md)
+* ["trieRoot"](modules/_trieroot_.md)
+* ["trieRoot.spec"](modules/_trieroot_spec_.md)
+* ["trieRootOrdered"](modules/_trierootordered_.md)
+* ["trieRootOrdered.spec"](modules/_trierootordered_spec_.md)
+* ["unhashedTrie"](modules/_unhashedtrie_.md)
+* ["unhashedTrie.spec"](modules/_unhashedtrie_spec_.md)
diff --git a/docs/trie-hash/index.html b/docs/trie-hash/index.html
index fb456b28d..d6eb1b24c 100644
--- a/docs/trie-hash/index.html
+++ b/docs/trie-hash/index.html
@@ -329,7 +329,7 @@
@polkadot/trie-hash
-Calculate ordered and unordered Ethereum Trie hashes from inputs.
+Calculate ordered and unordered Trie hashes from inputs.
Usage
Installation -
yarn add @polkadot/trie-hash
@@ -341,29 +341,8 @@
- trie-hash
- Functions
-- Encode
-
-- Trie Root
-
-- Util
-
+- trieRoot
+- trieRootOrdered
@@ -412,7 +391,7 @@
diff --git a/docs/trie-hash/modules/_buildtrie_.md b/docs/trie-hash/modules/_buildtrie_.md
new file mode 100644
index 000000000..dc2d6a549
--- /dev/null
+++ b/docs/trie-hash/modules/_buildtrie_.md
@@ -0,0 +1,25 @@
+
+
+# Functions
+
+
+
+## buildTrie
+
+▸ **buildTrie**(input: *`Array`<[`Uint8Array`, `Uint8Array`]>*, cursor?: *`number`*, codec?: *`Codec`*, stream?: *`any`*): `Uint8Array`
+
+*Defined in [buildTrie.ts:77](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-hash/src/buildTrie.ts#L77)*
+
+**Parameters:**
+
+| Name | Type | Default value |
+| ------ | ------ | ------ |
+| input | `Array`<[`Uint8Array`, `Uint8Array`]> | - |
+| `Default value` cursor | `number` | 0 |
+| `Default value` codec | `Codec` | DEFAULT_CODEC |
+| `Default value` stream | `any` | DEFAULT_STREAM |
+
+**Returns:** `Uint8Array`
+
+___
+
diff --git a/docs/trie-hash/modules/_defaults_.md b/docs/trie-hash/modules/_defaults_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-hash/modules/_defaults_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-hash/modules/_encode_aux_.md b/docs/trie-hash/modules/_encode_aux_.md
deleted file mode 100644
index a28cd7242..000000000
--- a/docs/trie-hash/modules/_encode_aux_.md
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-# Functions
-
-
-
-## encodeAux
-
-▸ **encodeAux**(pairs: *`Trie$Pairs`*, preLength: *`number`*): `Uint8Array` | `any`[]
-
-*Defined in [encode/aux.ts:12](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/encode/aux.ts#L12)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| pairs | `Trie$Pairs` |
-| preLength | `number` |
-
-**Returns:** `Uint8Array` | `any`[]
-
-___
-
diff --git a/docs/trie-hash/modules/_encode_hexprefix_.md b/docs/trie-hash/modules/_encode_hexprefix_.md
deleted file mode 100644
index b6dd6591e..000000000
--- a/docs/trie-hash/modules/_encode_hexprefix_.md
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-# Functions
-
-
-
-## encodeHexPrefix
-
-▸ **encodeHexPrefix**(nibbles: * `Uint8Array` | `Array`<`number`>*, isLeaf: *`boolean`*): `Uint8Array`
-
-*Defined in [encode/hexPrefix.ts:5](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/encode/hexPrefix.ts#L5)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| nibbles | `Uint8Array` | `Array`<`number`>|
-| isLeaf | `boolean` |
-
-**Returns:** `Uint8Array`
-
-___
-
diff --git a/docs/trie-hash/modules/_encode_index_.md b/docs/trie-hash/modules/_encode_index_.md
deleted file mode 100644
index 1c9714a93..000000000
--- a/docs/trie-hash/modules/_encode_index_.md
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-# Functions
-
-
-
-## encode
-
-▸ **encode**(pairs: *`Trie$Pairs`*, preLength: *`number`*): `Array`<`any`>
-
-*Defined in [encode/index.ts:36](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/encode/index.ts#L36)*
-
-*__name__*: encode
-
-*__signature__*: encode (pairs: Trie$Pairs, preLength: number): Array
-
-*__summary__*: Encodes Trie Pairs depending on a provided Prefix Length and the amount of pairs
-
-*__description__*: * `encode` is called and provided arguments including Trie Pairs and Prefix Length.
-* If the Trie Pairs have no length then return an empty array
-* If the Trie Pairs have a length of 1 then we call `encodeSingle` to return a single encoded array with two elements. The first element is a u8a calculated from calling `encodeHexPrefix` with arguments including a slice up to the Prefix Length of the pair's key (aka nibbles), and whether it's a leaf. The second element is the pair's value.
-* If the Trie Pairs have a length > 1 and we calculate that their Shared Prefix Length > Prefix Length then we return early with the results of calling `encodeShared` to return a single encoded array with two elements. The first element is a u8a calculated as previously with `encodeHexPrefix` and whereas second element is calculated from calling `encodeAux`, which recursively calls this function `encode` to obtain an encoded value, and then Recursive Length Prefix (RLP) encodes it. If the length of the RLP encoded u8a is less than 32 then return the RLP encoded value, otherwise return call the Keccak-256 hash function from [js-sha3](https://www.npmjs.com/package/js-sha3) library on the RLP encoded value and return the result.
-* If the Trie Pairs have a length > 1 and the calculated Share Prefix Length <= Prefix Length then we return the array result of calling `encodePairs` and push the pair's value onto the end of the array if the Prefix Length !== Pair's Key Length.
-
-*__description__*: Refer to [Merkle Patricia Trie specification](https://github.com/ethereum/wiki/wiki/Patricia-Tree#optimization)
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| pairs | `Trie$Pairs` |
-| preLength | `number` |
-
-**Returns:** `Array`<`any`>
-
-___
-
diff --git a/docs/trie-hash/modules/_encode_pairs_.md b/docs/trie-hash/modules/_encode_pairs_.md
deleted file mode 100644
index 1d92354ce..000000000
--- a/docs/trie-hash/modules/_encode_pairs_.md
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-# Functions
-
-
-
-## encodePairs
-
-▸ **encodePairs**(pairs: *`Trie$Pairs`*, preLength: *`number`*): `Array`<`any`>
-
-*Defined in [encode/pairs.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/encode/pairs.ts#L23)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| pairs | `Trie$Pairs` |
-| preLength | `number` |
-
-**Returns:** `Array`<`any`>
-
-___
-
diff --git a/docs/trie-hash/modules/_encode_shared_.md b/docs/trie-hash/modules/_encode_shared_.md
deleted file mode 100644
index 1558c5698..000000000
--- a/docs/trie-hash/modules/_encode_shared_.md
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-# Functions
-
-
-
-## encodeShared
-
-▸ **encodeShared**(pairs: *`Trie$Pairs`*, preLength: *`number`*, sharedLength: *`number`*): `Array`<`any`>
-
-*Defined in [encode/shared.ts:10](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/encode/shared.ts#L10)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| pairs | `Trie$Pairs` |
-| preLength | `number` |
-| sharedLength | `number` |
-
-**Returns:** `Array`<`any`>
-
-___
-
diff --git a/docs/trie-hash/modules/_encode_single_.md b/docs/trie-hash/modules/_encode_single_.md
deleted file mode 100644
index bfab66800..000000000
--- a/docs/trie-hash/modules/_encode_single_.md
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-# Functions
-
-
-
-## encodeSingle
-
-▸ **encodeSingle**(pair: *`Trie$Pair`*, preLength: *`number`*): `Array`<`any`>
-
-*Defined in [encode/single.ts:9](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/encode/single.ts#L9)*
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| pair | `Trie$Pair` |
-| preLength | `number` |
-
-**Returns:** `Array`<`any`>
-
-___
-
diff --git a/docs/trie-hash/modules/_genesis_spec_.md b/docs/trie-hash/modules/_genesis_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-hash/modules/_genesis_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-hash/modules/_root_.md b/docs/trie-hash/modules/_trieroot_.md
similarity index 66%
rename from docs/trie-hash/modules/_root_.md
rename to docs/trie-hash/modules/_trieroot_.md
index 0782b7450..26bbfe388 100644
--- a/docs/trie-hash/modules/_root_.md
+++ b/docs/trie-hash/modules/_trieroot_.md
@@ -6,9 +6,9 @@
## trieRoot
-▸ **trieRoot**(pairs: *`Trie$Pairs`*): `Uint8Array`
+▸ **trieRoot**(input: *`Array`<`TriePair`>*, codec?: *`Codec`*): `Uint8Array`
-*Defined in [root.ts:30](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/root.ts#L30)*
+*Defined in [trieRoot.ts:30](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-hash/src/trieRoot.ts#L30)*
*__name__*: trieRoot
@@ -32,9 +32,10 @@ trieRoot([{
**Parameters:**
-| Name | Type |
-| ------ | ------ |
-| pairs | `Trie$Pairs` |
+| Name | Type | Default value |
+| ------ | ------ | ------ |
+| input | `Array`<`TriePair`> | - |
+| `Default value` codec | `Codec` | DEFAULT_CODEC |
**Returns:** `Uint8Array`
diff --git a/docs/trie-hash/modules/_trieroot_spec_.md b/docs/trie-hash/modules/_trieroot_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-hash/modules/_trieroot_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-hash/modules/_rootordered_.md b/docs/trie-hash/modules/_trierootordered_.md
similarity index 64%
rename from docs/trie-hash/modules/_rootordered_.md
rename to docs/trie-hash/modules/_trierootordered_.md
index 599a01f84..476477b08 100644
--- a/docs/trie-hash/modules/_rootordered_.md
+++ b/docs/trie-hash/modules/_trierootordered_.md
@@ -6,9 +6,9 @@
## trieRootOrdered
-▸ **trieRootOrdered**(values: *`Array`<`Uint8Array`>*): `Uint8Array`
+▸ **trieRootOrdered**(input: *`Array`<`Uint8Array`>*, codec?: *`Codec`*): `Uint8Array`
-*Defined in [rootOrdered.ts:29](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/rootOrdered.ts#L29)*
+*Defined in [trieRootOrdered.ts:31](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-hash/src/trieRootOrdered.ts#L31)*
*__name__*: trieRootOrdered
@@ -32,9 +32,10 @@ trieRootOrdered([
**Parameters:**
-| Name | Type |
-| ------ | ------ |
-| values | `Array`<`Uint8Array`> |
+| Name | Type | Default value |
+| ------ | ------ | ------ |
+| input | `Array`<`Uint8Array`> | - |
+| `Default value` codec | `Codec` | DEFAULT_CODEC |
**Returns:** `Uint8Array`
diff --git a/docs/trie-hash/modules/_trierootordered_spec_.md b/docs/trie-hash/modules/_trierootordered_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-hash/modules/_trierootordered_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-hash/modules/_unhashedtrie_.md b/docs/trie-hash/modules/_unhashedtrie_.md
new file mode 100644
index 000000000..a91bb1d60
--- /dev/null
+++ b/docs/trie-hash/modules/_unhashedtrie_.md
@@ -0,0 +1,23 @@
+
+
+# Functions
+
+
+
+## unhashedTrie
+
+▸ **unhashedTrie**(input: *`Array`<`TriePair`>*, codec?: *`Codec`*): `Uint8Array`
+
+*Defined in [unhashedTrie.ts:14](https://github.com/polkadot-js/common/blob/f82092e/packages/trie-hash/src/unhashedTrie.ts#L14)*
+
+**Parameters:**
+
+| Name | Type | Default value |
+| ------ | ------ | ------ |
+| input | `Array`<`TriePair`> | - |
+| `Default value` codec | `Codec` | DEFAULT_CODEC |
+
+**Returns:** `Uint8Array`
+
+___
+
diff --git a/docs/trie-hash/modules/_unhashedtrie_spec_.md b/docs/trie-hash/modules/_unhashedtrie_spec_.md
new file mode 100644
index 000000000..139597f9c
--- /dev/null
+++ b/docs/trie-hash/modules/_unhashedtrie_spec_.md
@@ -0,0 +1,2 @@
+
+
diff --git a/docs/trie-hash/modules/_util_asnibbles_.md b/docs/trie-hash/modules/_util_asnibbles_.md
deleted file mode 100644
index b3ce7e82c..000000000
--- a/docs/trie-hash/modules/_util_asnibbles_.md
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-# Functions
-
-
-
-## asNibbles
-
-▸ **asNibbles**(bytes: * `Uint8Array` | `Array`<`number`> | `null`*): `Uint8Array`
-
-*Defined in [util/asNibbles.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/util/asNibbles.ts#L20)*
-
-*__name__*: asNibbles
-
-*__signature__*: asNibbles (bytes: Uint8Array | Array): Uint8Array
-
-*__summary__*: Converts the input to Nibbles.
-
-*__description__*: From an `Uint8Array` input, calculate and return a list of nibbles that makes up the input.
-
-*__example__*:
-
-```javascript
-import { asNibbles } from '@polkadot/trie-hash/util';
-
-asNibbles(new Uint8Array([0x41, 0x20]); // => Uint8Array([4, 1, 2, 0])
-```
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| bytes | `Uint8Array` | `Array`<`number`> | `null`|
-
-**Returns:** `Uint8Array`
-
-___
-
diff --git a/docs/trie-hash/modules/_util_genroot_.md b/docs/trie-hash/modules/_util_genroot_.md
deleted file mode 100644
index 42f6d1091..000000000
--- a/docs/trie-hash/modules/_util_genroot_.md
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-# Functions
-
-
-
-## genRoot
-
-▸ **genRoot**(pairs: *`Trie$Pairs`*): `Uint8Array`
-
-*Defined in [util/genRoot.ts:17](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/util/genRoot.ts#L17)*
-
-*__name__*: genRoot
-
-*__signature__*: genRoot (pairs: Trie$Pairs): Uint8Array
-
-*__summary__*: Encodes supplied pairs into u8a output by calculating with RLP.
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| pairs | `Trie$Pairs` |
-
-**Returns:** `Uint8Array`
-
-___
-
diff --git a/docs/trie-hash/modules/_util_pairsuniq_.md b/docs/trie-hash/modules/_util_pairsuniq_.md
deleted file mode 100644
index 7c64f49e6..000000000
--- a/docs/trie-hash/modules/_util_pairsuniq_.md
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-# Functions
-
-
-
-## pairsUniq
-
-▸ **pairsUniq**(pairs: *`Trie$Pairs`*): `Trie$Pairs`
-
-*Defined in [util/pairsUniq.ts:18](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/util/pairsUniq.ts#L18)*
-
-*__name__*: pairsUniq
-
-*__signature__*: pairsUniq (pairs: Trie$Pairs): Trie$Pairs
-
-*__summary__*: Removes pairs with duplicate keys from the supplied pairs.
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| pairs | `Trie$Pairs` |
-
-**Returns:** `Trie$Pairs`
-
-___
-
diff --git a/docs/trie-hash/modules/_util_sharedlength_.md b/docs/trie-hash/modules/_util_sharedlength_.md
deleted file mode 100644
index 8f4fd9fb6..000000000
--- a/docs/trie-hash/modules/_util_sharedlength_.md
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-# Functions
-
-
-
-## getSharedLength
-
-▸ **getSharedLength**(a: *`Uint8Array`*, b: *`Uint8Array`*): `number`
-
-*Defined in [util/sharedLength.ts:13](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/util/sharedLength.ts#L13)*
-
-*__name__*: getSharedLength
-
-*__signature__*: getSharedLength (a: Uint8Array, b: Uint8Array): number
-
-*__summary__*: Returns the highest shared index of two u8a's where the values in lesser indexes are the same. Given two u8a's, it first determines the u8a with the shortest length, then iterates through each u8a up to that length. If the value in both u8a's is the same for a certain index, it returns that index, otherwise it returns the shortest length.
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| a | `Uint8Array` |
-| b | `Uint8Array` |
-
-**Returns:** `number`
-
-___
-
diff --git a/docs/trie-hash/modules/_util_sharedprefixlength_.md b/docs/trie-hash/modules/_util_sharedprefixlength_.md
deleted file mode 100644
index 627a8c157..000000000
--- a/docs/trie-hash/modules/_util_sharedprefixlength_.md
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-# Functions
-
-
-
-## sharedPrefixLength
-
-▸ **sharedPrefixLength**(pairs: *`Trie$Pairs`*): `number`
-
-*Defined in [util/sharedPrefixLength.ts:13](https://github.com/polkadot-js/common/blob/477be90/packages/trie-hash/src/util/sharedPrefixLength.ts#L13)*
-
-*__name__*: sharedPrefixLength
-
-*__signature__*: sharedPrefixLength (pairs: Trie$Pairs): number
-
-**Parameters:**
-
-| Name | Type |
-| ------ | ------ |
-| pairs | `Trie$Pairs` |
-
-**Returns:** `number`
-
-___
-
diff --git a/docs/util-crypto/index.html b/docs/util-crypto/index.html
index 9908d8c54..ab565f9da 100644
--- a/docs/util-crypto/index.html
+++ b/docs/util-crypto/index.html
@@ -485,7 +485,7 @@
diff --git a/docs/util-crypto/modules/_blake2_ashex_.md b/docs/util-crypto/modules/_blake2_ashex_.md
index a0bb2f46f..936caa3f2 100644
--- a/docs/util-crypto/modules/_blake2_ashex_.md
+++ b/docs/util-crypto/modules/_blake2_ashex_.md
@@ -8,7 +8,7 @@
▸ **blake2AsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
-*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/blake2/asHex.ts#L22)*
+*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/blake2/asHex.ts#L22)*
*__name__*: blake2AsHex
diff --git a/docs/util-crypto/modules/_blake2_asu8a_.md b/docs/util-crypto/modules/_blake2_asu8a_.md
index f1e81f339..a9fc3661d 100644
--- a/docs/util-crypto/modules/_blake2_asu8a_.md
+++ b/docs/util-crypto/modules/_blake2_asu8a_.md
@@ -8,7 +8,7 @@
▸ **blake2AsU8a**(data: *`Uint8Array`*, bitLength?: *`number`*, key?: *`Uint8Array`*): `Uint8Array`
-*Defined in [blake2/asU8a.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/blake2/asU8a.ts#L22)*
+*Defined in [blake2/asU8a.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/blake2/asU8a.ts#L22)*
*__name__*: blake2AsU8a
diff --git a/docs/util-crypto/modules/_blake2_blake2b_ashex_.md b/docs/util-crypto/modules/_blake2_blake2b_ashex_.md
index 2351e8515..4df478462 100644
--- a/docs/util-crypto/modules/_blake2_blake2b_ashex_.md
+++ b/docs/util-crypto/modules/_blake2_blake2b_ashex_.md
@@ -8,7 +8,7 @@
▸ **blake2bAsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
-*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
+*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
*__name__*: blake2bAsHex
diff --git a/docs/util-crypto/modules/_blake2_blake2b_asu8a_.md b/docs/util-crypto/modules/_blake2_blake2b_asu8a_.md
index 2d8c5e3f8..1a42b5bdd 100644
--- a/docs/util-crypto/modules/_blake2_blake2b_asu8a_.md
+++ b/docs/util-crypto/modules/_blake2_blake2b_asu8a_.md
@@ -8,7 +8,7 @@
▸ **blake2bAsU8a**(data: *`Uint8Array`*, bitLength?: *`number`*, key?: * `Uint8Array` | `null`*): `Uint8Array`
-*Defined in [blake2/blake2b/asU8a.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
+*Defined in [blake2/blake2b/asU8a.ts:23](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
*__name__*: blake2bAsU8a
diff --git a/docs/util-crypto/modules/_keccak_ashex_.md b/docs/util-crypto/modules/_keccak_ashex_.md
index 747115afc..494b96c96 100644
--- a/docs/util-crypto/modules/_keccak_ashex_.md
+++ b/docs/util-crypto/modules/_keccak_ashex_.md
@@ -8,7 +8,7 @@
▸ **keccakAsHex**(value: * `Buffer` | `Uint8Array` | `string`*): `string`
-*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/keccak/asHex.ts#L24)*
+*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/keccak/asHex.ts#L24)*
*__name__*: keccakAsHex
diff --git a/docs/util-crypto/modules/_keccak_asu8a_.md b/docs/util-crypto/modules/_keccak_asu8a_.md
index 6b50bd5c5..306ad7ebc 100644
--- a/docs/util-crypto/modules/_keccak_asu8a_.md
+++ b/docs/util-crypto/modules/_keccak_asu8a_.md
@@ -8,7 +8,7 @@
▸ **keccakAsU8a**(value: * `Buffer` | `Uint8Array` | `string`*): `Uint8Array`
-*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/keccak/asU8a.ts#L22)*
+*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/keccak/asU8a.ts#L22)*
*__name__*: keccakAsU8a
diff --git a/docs/util-crypto/modules/_mnemonic_generate_.md b/docs/util-crypto/modules/_mnemonic_generate_.md
index 17e7004fd..739fcca68 100644
--- a/docs/util-crypto/modules/_mnemonic_generate_.md
+++ b/docs/util-crypto/modules/_mnemonic_generate_.md
@@ -8,7 +8,7 @@
▸ **mnemonicGenerate**(): `string`
-*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/mnemonic/generate.ts#L20)*
+*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/mnemonic/generate.ts#L20)*
*__name__*: mnemonicGenerate
diff --git a/docs/util-crypto/modules/_mnemonic_tosecret_.md b/docs/util-crypto/modules/_mnemonic_tosecret_.md
index d241d549d..6562655e3 100644
--- a/docs/util-crypto/modules/_mnemonic_tosecret_.md
+++ b/docs/util-crypto/modules/_mnemonic_tosecret_.md
@@ -8,7 +8,7 @@
▸ **toSecret**(mnemonic: *`string`*): `Uint8Array`
-*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
+*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
**Parameters:**
diff --git a/docs/util-crypto/modules/_mnemonic_toseed_.md b/docs/util-crypto/modules/_mnemonic_toseed_.md
index 520f6725f..5dc93c1f7 100644
--- a/docs/util-crypto/modules/_mnemonic_toseed_.md
+++ b/docs/util-crypto/modules/_mnemonic_toseed_.md
@@ -8,7 +8,7 @@
▸ **toSeed**(mnemonic: *`string`*): `Uint8Array`
-*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
+*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
*__name__*: toSeed
diff --git a/docs/util-crypto/modules/_mnemonic_validate_.md b/docs/util-crypto/modules/_mnemonic_validate_.md
index a146d33aa..c8662a6c1 100644
--- a/docs/util-crypto/modules/_mnemonic_validate_.md
+++ b/docs/util-crypto/modules/_mnemonic_validate_.md
@@ -8,7 +8,7 @@
▸ **mnemonicValidate**(mnemonic: *`string`*): `boolean`
-*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/mnemonic/validate.ts#L21)*
+*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/mnemonic/validate.ts#L21)*
*__name__*: mnemonicValidate
diff --git a/docs/util-crypto/modules/_nacl_decrypt_.md b/docs/util-crypto/modules/_nacl_decrypt_.md
index 3f5c91356..c29af4062 100644
--- a/docs/util-crypto/modules/_nacl_decrypt_.md
+++ b/docs/util-crypto/modules/_nacl_decrypt_.md
@@ -8,7 +8,7 @@
▸ **naclDecrypt**(encrypted: *`Uint8Array`*, nonce: *`Uint8Array`*, secret: *`Uint8Array`*): `Uint8Array` | `null`
-*Defined in [nacl/decrypt.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/nacl/decrypt.ts#L22)*
+*Defined in [nacl/decrypt.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/nacl/decrypt.ts#L22)*
*__name__*: naclDecrypt
diff --git a/docs/util-crypto/modules/_nacl_encrypt_.md b/docs/util-crypto/modules/_nacl_encrypt_.md
index cd6fd249e..a8aeb9993 100644
--- a/docs/util-crypto/modules/_nacl_encrypt_.md
+++ b/docs/util-crypto/modules/_nacl_encrypt_.md
@@ -8,7 +8,7 @@
▸ **naclEncrypt**(message: *`Uint8Array`*, secret: *`Uint8Array`*, nonce?: *`Uint8Array`*): `Encrypted`
-*Defined in [nacl/encrypt.ts:29](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/nacl/encrypt.ts#L29)*
+*Defined in [nacl/encrypt.ts:29](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/nacl/encrypt.ts#L29)*
*__name__*: naclEncrypt
diff --git a/docs/util-crypto/modules/_nacl_keypair_fromrandom_.md b/docs/util-crypto/modules/_nacl_keypair_fromrandom_.md
index 321981e3a..449f303ca 100644
--- a/docs/util-crypto/modules/_nacl_keypair_fromrandom_.md
+++ b/docs/util-crypto/modules/_nacl_keypair_fromrandom_.md
@@ -8,7 +8,7 @@
▸ **naclKeypairFromRandom**(): `KeypairType`
-*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
+*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
*__name__*: naclKeypairFromRandom
diff --git a/docs/util-crypto/modules/_nacl_keypair_fromsecret_.md b/docs/util-crypto/modules/_nacl_keypair_fromsecret_.md
index eaec19528..1863b4f2e 100644
--- a/docs/util-crypto/modules/_nacl_keypair_fromsecret_.md
+++ b/docs/util-crypto/modules/_nacl_keypair_fromsecret_.md
@@ -8,7 +8,7 @@
▸ **naclKeypairFromSecret**(secret: *`Uint8Array`*): `KeypairType`
-*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
+*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
*__name__*: naclKeypairFromSecret
diff --git a/docs/util-crypto/modules/_nacl_keypair_fromseed_.md b/docs/util-crypto/modules/_nacl_keypair_fromseed_.md
index c8a69f342..fac2e6b5a 100644
--- a/docs/util-crypto/modules/_nacl_keypair_fromseed_.md
+++ b/docs/util-crypto/modules/_nacl_keypair_fromseed_.md
@@ -8,7 +8,7 @@
▸ **naclKeypairFromSeed**(seed: *`Uint8Array`*): `KeypairType`
-*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
+*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
*__name__*: naclKeypairFromSeed
diff --git a/docs/util-crypto/modules/_nacl_keypair_fromstring_.md b/docs/util-crypto/modules/_nacl_keypair_fromstring_.md
index a9e1dd059..7b2cf200d 100644
--- a/docs/util-crypto/modules/_nacl_keypair_fromstring_.md
+++ b/docs/util-crypto/modules/_nacl_keypair_fromstring_.md
@@ -8,7 +8,7 @@
▸ **naclKeypairFromString**(value: *`string`*): `KeypairType`
-*Defined in [nacl/keypair/fromString.ts:27](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/nacl/keypair/fromString.ts#L27)*
+*Defined in [nacl/keypair/fromString.ts:27](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/nacl/keypair/fromString.ts#L27)*
*__name__*: naclKeypairFromString
diff --git a/docs/util-crypto/modules/_nacl_sign_.md b/docs/util-crypto/modules/_nacl_sign_.md
index 8bf7c7f3e..45ae94844 100644
--- a/docs/util-crypto/modules/_nacl_sign_.md
+++ b/docs/util-crypto/modules/_nacl_sign_.md
@@ -8,7 +8,7 @@
▸ **naclSign**(message: *`Uint8Array`*, secretKey: *`Uint8Array`*): `Uint8Array`
-*Defined in [nacl/sign.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/nacl/sign.ts#L22)*
+*Defined in [nacl/sign.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/nacl/sign.ts#L22)*
*__name__*: naclSign
diff --git a/docs/util-crypto/modules/_nacl_verify_.md b/docs/util-crypto/modules/_nacl_verify_.md
index 5825dff8c..9426a2212 100644
--- a/docs/util-crypto/modules/_nacl_verify_.md
+++ b/docs/util-crypto/modules/_nacl_verify_.md
@@ -8,7 +8,7 @@
▸ **naclVerify**(message: *`Uint8Array`*, signature: *`Uint8Array`*, publicKey: *`Uint8Array`*): `boolean`
-*Defined in [nacl/verify.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/nacl/verify.ts#L22)*
+*Defined in [nacl/verify.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/nacl/verify.ts#L22)*
*__name__*: naclSign
diff --git a/docs/util-crypto/modules/_random_ashex_.md b/docs/util-crypto/modules/_random_ashex_.md
index 13df5e8dc..13eb73640 100644
--- a/docs/util-crypto/modules/_random_ashex_.md
+++ b/docs/util-crypto/modules/_random_ashex_.md
@@ -8,7 +8,7 @@
▸ **randomAsHex**(length?: *`number`*): `string`
-*Defined in [random/asHex.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/random/asHex.ts#L24)*
+*Defined in [random/asHex.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/random/asHex.ts#L24)*
*__name__*: randomAsHex
diff --git a/docs/util-crypto/modules/_random_asnumber_.md b/docs/util-crypto/modules/_random_asnumber_.md
index 85de125dc..f290369ce 100644
--- a/docs/util-crypto/modules/_random_asnumber_.md
+++ b/docs/util-crypto/modules/_random_asnumber_.md
@@ -8,7 +8,7 @@
▸ **randomAsNumber**(): `number`
-*Defined in [random/asNumber.ts:27](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/random/asNumber.ts#L27)*
+*Defined in [random/asNumber.ts:27](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/random/asNumber.ts#L27)*
*__name__*: randomAsNumber
diff --git a/docs/util-crypto/modules/_random_asu8a_.md b/docs/util-crypto/modules/_random_asu8a_.md
index bdef7419e..5b6352a4c 100644
--- a/docs/util-crypto/modules/_random_asu8a_.md
+++ b/docs/util-crypto/modules/_random_asu8a_.md
@@ -8,7 +8,7 @@
▸ **randomAsU8a**(length?: *`number`*): `Uint8Array`
-*Defined in [random/asU8a.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/random/asU8a.ts#L22)*
+*Defined in [random/asU8a.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/random/asU8a.ts#L22)*
*__name__*: randomAsU8a
diff --git a/docs/util-crypto/modules/_sha512_asu8a_.md b/docs/util-crypto/modules/_sha512_asu8a_.md
index 4a3500e50..bdbe7a858 100644
--- a/docs/util-crypto/modules/_sha512_asu8a_.md
+++ b/docs/util-crypto/modules/_sha512_asu8a_.md
@@ -8,7 +8,7 @@
▸ **sha512AsU8a**(data: *`Uint8Array`*): `Uint8Array`
-*Defined in [sha512/asU8a.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/sha512/asU8a.ts#L22)*
+*Defined in [sha512/asU8a.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/sha512/asU8a.ts#L22)*
*__name__*: sha512AsU8a
diff --git a/docs/util-crypto/modules/_xxhash_ashex_.md b/docs/util-crypto/modules/_xxhash_ashex_.md
index 7374fd506..95f96e6c2 100644
--- a/docs/util-crypto/modules/_xxhash_ashex_.md
+++ b/docs/util-crypto/modules/_xxhash_ashex_.md
@@ -8,7 +8,7 @@
▸ **xxhashAsHex**(data: * `Buffer` | `Uint8Array` | `string`*, bitLength?: *`number`*): `string`
-*Defined in [xxhash/asHex.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/xxhash/asHex.ts#L24)*
+*Defined in [xxhash/asHex.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/xxhash/asHex.ts#L24)*
*__name__*: xxhashAsHex
diff --git a/docs/util-crypto/modules/_xxhash_asu8a_.md b/docs/util-crypto/modules/_xxhash_asu8a_.md
index 81d8de4d1..7a9408d20 100644
--- a/docs/util-crypto/modules/_xxhash_asu8a_.md
+++ b/docs/util-crypto/modules/_xxhash_asu8a_.md
@@ -8,7 +8,7 @@
▸ **xxhashAsU8a**(data: * `Buffer` | `Uint8Array` | `string`*, bitLength?: *`number`*): `Uint8Array`
-*Defined in [xxhash/asU8a.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/xxhash/asU8a.ts#L22)*
+*Defined in [xxhash/asU8a.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/xxhash/asU8a.ts#L22)*
*__name__*: xxhashAsU8a
diff --git a/docs/util-crypto/modules/_xxhash_xxhash64_asbn_.md b/docs/util-crypto/modules/_xxhash_xxhash64_asbn_.md
index 198a7b12e..ff2a0c461 100644
--- a/docs/util-crypto/modules/_xxhash_xxhash64_asbn_.md
+++ b/docs/util-crypto/modules/_xxhash_xxhash64_asbn_.md
@@ -8,7 +8,7 @@
▸ **xxhash64AsBn**(data: * `Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `BN`
-*Defined in [xxhash/xxhash64/asBn.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L24)*
+*Defined in [xxhash/xxhash64/asBn.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/xxhash/xxhash64/asBn.ts#L24)*
*__name__*: xxhash64AsBn
diff --git a/docs/util-crypto/modules/_xxhash_xxhash64_ashex_.md b/docs/util-crypto/modules/_xxhash_xxhash64_ashex_.md
index eee73606c..29428f375 100644
--- a/docs/util-crypto/modules/_xxhash_xxhash64_ashex_.md
+++ b/docs/util-crypto/modules/_xxhash_xxhash64_ashex_.md
@@ -8,7 +8,7 @@
▸ **xxhash64AsHex**(data: * `Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `string`
-*Defined in [xxhash/xxhash64/asHex.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L24)*
+*Defined in [xxhash/xxhash64/asHex.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/xxhash/xxhash64/asHex.ts#L24)*
*__name__*: xxhash64AsHex
diff --git a/docs/util-crypto/modules/_xxhash_xxhash64_asraw_.md b/docs/util-crypto/modules/_xxhash_xxhash64_asraw_.md
index f45b2f35a..032414bf9 100644
--- a/docs/util-crypto/modules/_xxhash_xxhash64_asraw_.md
+++ b/docs/util-crypto/modules/_xxhash_xxhash64_asraw_.md
@@ -8,7 +8,7 @@
▸ **xxhash64AsRaw**(data: * `Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `string`
-*Defined in [xxhash/xxhash64/asRaw.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L22)*
+*Defined in [xxhash/xxhash64/asRaw.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/xxhash/xxhash64/asRaw.ts#L22)*
*__name__*: xxhash64AsRaw
diff --git a/docs/util-crypto/modules/_xxhash_xxhash64_asvalue_.md b/docs/util-crypto/modules/_xxhash_xxhash64_asvalue_.md
index 784d3cae6..e078ab57c 100644
--- a/docs/util-crypto/modules/_xxhash_xxhash64_asvalue_.md
+++ b/docs/util-crypto/modules/_xxhash_xxhash64_asvalue_.md
@@ -8,7 +8,7 @@
▸ **xxhash64AsValue**(data: * `Buffer` | `Uint8Array` | `string`*, seed: *`number`*): `number`
-*Defined in [xxhash/xxhash64/asValue.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L23)*
+*Defined in [xxhash/xxhash64/asValue.ts:23](https://github.com/polkadot-js/common/blob/f82092e/packages/util-crypto/src/xxhash/xxhash64/asValue.ts#L23)*
*__name__*: xxhash64AsValue
diff --git a/docs/util-rlp/modules/_decoder_decode_.md b/docs/util-rlp/modules/_decoder_decode_.md
index ce3066cdb..cdfbf06e3 100644
--- a/docs/util-rlp/modules/_decoder_decode_.md
+++ b/docs/util-rlp/modules/_decoder_decode_.md
@@ -8,7 +8,7 @@
▸ **decode**(input: *`Uint8Array`*): `DecodeOutput`
-*Defined in [decoder/decode.ts:28](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/decoder/decode.ts#L28)*
+*Defined in [decoder/decode.ts:28](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/decoder/decode.ts#L28)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_decoder_index_.md b/docs/util-rlp/modules/_decoder_index_.md
index 8aeb4de5b..e257826bb 100644
--- a/docs/util-rlp/modules/_decoder_index_.md
+++ b/docs/util-rlp/modules/_decoder_index_.md
@@ -6,9 +6,9 @@
## decoder
-▸ **decoder**(input?: *`Uint8Array`*): `Uint8Array` | `Array`<`any`>
+▸ **decoder**(input?: * `null` | `Uint8Array`*): `Uint8Array` | `Array`<`any`>
-*Defined in [decoder/index.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/decoder/index.ts#L24)*
+*Defined in [decoder/index.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/decoder/index.ts#L24)*
*__name__*: decoder
@@ -30,7 +30,7 @@ decode(new Uint8Array([0x83, 0x64, 0x6f, 0x67])); // => 'dog' as Uint8Array
| Name | Type |
| ------ | ------ |
-| `Optional` input | `Uint8Array` |
+| `Optional` input | `null` | `Uint8Array`|
**Returns:** `Uint8Array` | `Array`<`any`>
diff --git a/docs/util-rlp/modules/_decoder_listlong_.md b/docs/util-rlp/modules/_decoder_listlong_.md
index 3d9b3d2ab..0731a68ea 100644
--- a/docs/util-rlp/modules/_decoder_listlong_.md
+++ b/docs/util-rlp/modules/_decoder_listlong_.md
@@ -8,7 +8,7 @@
▸ **decodeListLong**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
-*Defined in [decoder/listLong.ts:11](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/decoder/listLong.ts#L11)*
+*Defined in [decoder/listLong.ts:11](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/decoder/listLong.ts#L11)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_decoder_listshort_.md b/docs/util-rlp/modules/_decoder_listshort_.md
index 2cf75cf2b..14ef2bdfb 100644
--- a/docs/util-rlp/modules/_decoder_listshort_.md
+++ b/docs/util-rlp/modules/_decoder_listshort_.md
@@ -8,7 +8,7 @@
▸ **decodeListShort**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
-*Defined in [decoder/listShort.ts:7](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/decoder/listShort.ts#L7)*
+*Defined in [decoder/listShort.ts:7](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/decoder/listShort.ts#L7)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_decoder_number_.md b/docs/util-rlp/modules/_decoder_number_.md
index 7d1176ae4..45930d9be 100644
--- a/docs/util-rlp/modules/_decoder_number_.md
+++ b/docs/util-rlp/modules/_decoder_number_.md
@@ -8,7 +8,7 @@
▸ **decodeNumber**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
-*Defined in [decoder/number.ts:11](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/decoder/number.ts#L11)*
+*Defined in [decoder/number.ts:11](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/decoder/number.ts#L11)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_decoder_safeparseint_.md b/docs/util-rlp/modules/_decoder_safeparseint_.md
index d01dffe64..4f44f6925 100644
--- a/docs/util-rlp/modules/_decoder_safeparseint_.md
+++ b/docs/util-rlp/modules/_decoder_safeparseint_.md
@@ -8,7 +8,7 @@
▸ **safeParseInt**(input: *`Uint8Array`*): `number`
-*Defined in [decoder/safeParseInt.ts:7](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/decoder/safeParseInt.ts#L7)*
+*Defined in [decoder/safeParseInt.ts:7](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/decoder/safeParseInt.ts#L7)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_decoder_single_.md b/docs/util-rlp/modules/_decoder_single_.md
index 47a316275..4364e79e5 100644
--- a/docs/util-rlp/modules/_decoder_single_.md
+++ b/docs/util-rlp/modules/_decoder_single_.md
@@ -8,7 +8,7 @@
▸ **decodeSingle**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
-*Defined in [decoder/single.ts:7](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/decoder/single.ts#L7)*
+*Defined in [decoder/single.ts:7](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/decoder/single.ts#L7)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_decoder_string_.md b/docs/util-rlp/modules/_decoder_string_.md
index 2e42ae506..c9aa4348c 100644
--- a/docs/util-rlp/modules/_decoder_string_.md
+++ b/docs/util-rlp/modules/_decoder_string_.md
@@ -8,7 +8,7 @@
▸ **decodeString**(decode: *`DecodeFunc`*, input: *`Uint8Array`*): `DecodeOutput`
-*Defined in [decoder/string.ts:9](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/decoder/string.ts#L9)*
+*Defined in [decoder/string.ts:9](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/decoder/string.ts#L9)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_encoder_array_.md b/docs/util-rlp/modules/_encoder_array_.md
index 6a9cd2653..f1756d11e 100644
--- a/docs/util-rlp/modules/_encoder_array_.md
+++ b/docs/util-rlp/modules/_encoder_array_.md
@@ -8,7 +8,7 @@
▸ **encodeArray**(encoder: *`EncodeFunc`*, input: *`any`*): `Uint8Array`
-*Defined in [encoder/array.ts:11](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/encoder/array.ts#L11)*
+*Defined in [encoder/array.ts:11](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/encoder/array.ts#L11)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_encoder_index_.md b/docs/util-rlp/modules/_encoder_index_.md
index 01e4e19e6..fb5996185 100644
--- a/docs/util-rlp/modules/_encoder_index_.md
+++ b/docs/util-rlp/modules/_encoder_index_.md
@@ -8,7 +8,7 @@
▸ **encoder**(input: *`any`*): `Uint8Array`
-*Defined in [encoder/index.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/encoder/index.ts#L24)*
+*Defined in [encoder/index.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/encoder/index.ts#L24)*
*__name__*: encoder
diff --git a/docs/util-rlp/modules/_encoder_length_.md b/docs/util-rlp/modules/_encoder_length_.md
index 61fad0fcf..c611532eb 100644
--- a/docs/util-rlp/modules/_encoder_length_.md
+++ b/docs/util-rlp/modules/_encoder_length_.md
@@ -8,7 +8,7 @@
▸ **encodeLength**(length: *`number`*, offset: *`number`*): `Uint8Array`
-*Defined in [encoder/length.ts:7](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/encoder/length.ts#L7)*
+*Defined in [encoder/length.ts:7](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/encoder/length.ts#L7)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_encoder_tou8a_.md b/docs/util-rlp/modules/_encoder_tou8a_.md
index 5d602b1c2..025456345 100644
--- a/docs/util-rlp/modules/_encoder_tou8a_.md
+++ b/docs/util-rlp/modules/_encoder_tou8a_.md
@@ -8,7 +8,7 @@
▸ **toU8a**(value: *`any`*): `Uint8Array`
-*Defined in [encoder/toU8a.ts:39](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/encoder/toU8a.ts#L39)*
+*Defined in [encoder/toU8a.ts:39](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/encoder/toU8a.ts#L39)*
**Parameters:**
diff --git a/docs/util-rlp/modules/_encoder_u8a_.md b/docs/util-rlp/modules/_encoder_u8a_.md
index 452bb9235..e976dbdfb 100644
--- a/docs/util-rlp/modules/_encoder_u8a_.md
+++ b/docs/util-rlp/modules/_encoder_u8a_.md
@@ -8,7 +8,7 @@
▸ **encodeU8a**(encoder: *`EncodeFunc`*, input: *`Uint8Array`*): `Uint8Array`
-*Defined in [encoder/u8a.ts:11](https://github.com/polkadot-js/common/blob/477be90/packages/util-rlp/src/encoder/u8a.ts#L11)*
+*Defined in [encoder/u8a.ts:11](https://github.com/polkadot-js/common/blob/f82092e/packages/util-rlp/src/encoder/u8a.ts#L11)*
**Parameters:**
diff --git a/docs/util/classes/_ext_error_.exterror.md b/docs/util/classes/_ext_error_.exterror.md
index 5af644d9b..3e90820b6 100644
--- a/docs/util/classes/_ext_error_.exterror.md
+++ b/docs/util/classes/_ext_error_.exterror.md
@@ -34,7 +34,7 @@ throw new ExtError('some message', ExtError.CODES.METHOD_NOT_FOUND); // => error
⊕ **new ExtError**(message?: *`string`*, code?: *`number`*, data?: *`any`*): [ExtError](_ext_error_.exterror.md)
-*Defined in [ext/error.ts:44](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L44)*
+*Defined in [ext/error.ts:44](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L44)*
**Parameters:**
@@ -56,7 +56,7 @@ ___
**● code**: *`number`*
-*Defined in [ext/error.ts:36](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L36)*
+*Defined in [ext/error.ts:36](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L36)*
___
@@ -65,7 +65,7 @@ ___
**● data**: *`any`*
-*Defined in [ext/error.ts:38](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L38)*
+*Defined in [ext/error.ts:38](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L38)*
___
@@ -76,7 +76,7 @@ ___
*Overrides Error.message*
-*Defined in [ext/error.ts:40](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L40)*
+*Defined in [ext/error.ts:40](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L40)*
___
@@ -87,7 +87,7 @@ ___
*Overrides Error.name*
-*Defined in [ext/error.ts:42](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L42)*
+*Defined in [ext/error.ts:42](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L42)*
___
@@ -98,7 +98,7 @@ ___
*Overrides Error.stack*
-*Defined in [ext/error.ts:44](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L44)*
+*Defined in [ext/error.ts:44](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L44)*
___
@@ -119,7 +119,7 @@ ___
**CODES**: *`object`*
-*Defined in [ext/error.ts:61](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L61)*
+*Defined in [ext/error.ts:61](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L61)*
@@ -127,7 +127,7 @@ ___
**● ASSERT**: *`number`* = -90009
-*Defined in [ext/error.ts:62](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L62)*
+*Defined in [ext/error.ts:62](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L62)*
___
@@ -136,7 +136,7 @@ ___
**● INVALID_JSONRPC**: *`number`* = -99998
-*Defined in [ext/error.ts:64](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L64)*
+*Defined in [ext/error.ts:64](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L64)*
___
@@ -145,7 +145,7 @@ ___
**● METHOD_NOT_FOUND**: *`number`* = -32601
-*Defined in [ext/error.ts:65](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L65)*
+*Defined in [ext/error.ts:65](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L65)*
___
@@ -154,7 +154,7 @@ ___
**● UNKNOWN**: *`number`*
-*Defined in [ext/error.ts:63](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/ext/error.ts#L63)*
+*Defined in [ext/error.ts:63](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/ext/error.ts#L63)*
___
diff --git a/docs/util/index.html b/docs/util/index.html
index 2d6eb0328..7964163b9 100644
--- a/docs/util/index.html
+++ b/docs/util/index.html
@@ -416,7 +416,7 @@
diff --git a/docs/util/modules/_array_filter_.md b/docs/util/modules/_array_filter_.md
index 981aadf38..af738ce3f 100644
--- a/docs/util/modules/_array_filter_.md
+++ b/docs/util/modules/_array_filter_.md
@@ -8,7 +8,7 @@
▸ **arrayFilter**(array: *`Array`<`any`>*, allowNulls?: *`boolean`*): `Array`<`any`>
-*Defined in [array/filter.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/array/filter.ts#L24)*
+*Defined in [array/filter.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/array/filter.ts#L24)*
*__name__*: arrayFilter
diff --git a/docs/util/modules/_assert_.md b/docs/util/modules/_assert_.md
index 6b9f8886a..995f3d5fb 100644
--- a/docs/util/modules/_assert_.md
+++ b/docs/util/modules/_assert_.md
@@ -8,7 +8,7 @@
▸ **assert**(test: *`any`*, message: * `string` | `MessageFn`*, code?: *`number`*, data?: *`any`*): `boolean`
-*Defined in [assert.ts:27](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/assert.ts#L27)*
+*Defined in [assert.ts:27](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/assert.ts#L27)*
*__name__*: assert
diff --git a/docs/util/modules/_bn_tobn_.md b/docs/util/modules/_bn_tobn_.md
index df79cb6fc..af67230ff 100644
--- a/docs/util/modules/_bn_tobn_.md
+++ b/docs/util/modules/_bn_tobn_.md
@@ -8,7 +8,7 @@
▸ **bnToBn**(value?: * `BN` | `number`*): `BN`
-*Defined in [bn/toBn.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/bn/toBn.ts#L24)*
+*Defined in [bn/toBn.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/bn/toBn.ts#L24)*
*__name__*: bnToBn
diff --git a/docs/util/modules/_bn_tohex_.md b/docs/util/modules/_bn_tohex_.md
index 77d8e600a..56b19f3ad 100644
--- a/docs/util/modules/_bn_tohex_.md
+++ b/docs/util/modules/_bn_tohex_.md
@@ -8,7 +8,7 @@
▸ **bnToHex**(value?: * `BN` | `number`*, bitLength?: *`number`*): `string`
-*Defined in [bn/toHex.ts:28](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/bn/toHex.ts#L28)*
+*Defined in [bn/toHex.ts:28](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/bn/toHex.ts#L28)*
*__name__*: bnToHex
diff --git a/docs/util/modules/_bn_tou8a_.md b/docs/util/modules/_bn_tou8a_.md
index 64a6b09b4..9f372e0e3 100644
--- a/docs/util/modules/_bn_tou8a_.md
+++ b/docs/util/modules/_bn_tou8a_.md
@@ -8,7 +8,7 @@
▸ **bnToU8a**(value: * `BN` | `number`*, bitLength: *`number`*, isLe: *`boolean`*): `Uint8Array`
-*Defined in [bn/toU8a.ts:26](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/bn/toU8a.ts#L26)*
+*Defined in [bn/toU8a.ts:26](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/bn/toU8a.ts#L26)*
*__name__*: bnToU8a
diff --git a/docs/util/modules/_buffer_tou8a_.md b/docs/util/modules/_buffer_tou8a_.md
index 766781a7d..69c9023ba 100644
--- a/docs/util/modules/_buffer_tou8a_.md
+++ b/docs/util/modules/_buffer_tou8a_.md
@@ -8,7 +8,7 @@
▸ **bufferToU8a**(buffer?: * `Buffer` | `number`[]*): `Uint8Array`
-*Defined in [buffer/toU8a.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/buffer/toU8a.ts#L20)*
+*Defined in [buffer/toU8a.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/buffer/toU8a.ts#L20)*
*__name__*: bufferToU8a
diff --git a/docs/util/modules/_compact_addlength_.md b/docs/util/modules/_compact_addlength_.md
index bce37275e..544cdc26b 100644
--- a/docs/util/modules/_compact_addlength_.md
+++ b/docs/util/modules/_compact_addlength_.md
@@ -8,7 +8,7 @@
▸ **compactAddLength**(input: *`Uint8Array`*, bitLength?: *`BitLength`*): `Uint8Array`
-*Defined in [compact/addLength.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/compact/addLength.ts#L23)*
+*Defined in [compact/addLength.ts:23](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/compact/addLength.ts#L23)*
*__name__*: compactAddLength
diff --git a/docs/util/modules/_compact_defaults_.md b/docs/util/modules/_compact_defaults_.md
index 8b35cf378..82b1a4374 100644
--- a/docs/util/modules/_compact_defaults_.md
+++ b/docs/util/modules/_compact_defaults_.md
@@ -8,7 +8,7 @@
**● DEFAULT_BITLENGTH**: *`BitLength`* = 32
-*Defined in [compact/defaults.ts:7](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/compact/defaults.ts#L7)*
+*Defined in [compact/defaults.ts:7](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/compact/defaults.ts#L7)*
___
diff --git a/docs/util/modules/_compact_fromu8a_.md b/docs/util/modules/_compact_fromu8a_.md
index fd93be04c..b3ded6f5b 100644
--- a/docs/util/modules/_compact_fromu8a_.md
+++ b/docs/util/modules/_compact_fromu8a_.md
@@ -8,7 +8,7 @@
▸ **compactFromU8a**(_input: * `Uint8Array` | `string`*, bitLength?: *`BitLength`*): [`number`, `BN`]
-*Defined in [compact/fromU8a.ts:26](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/compact/fromU8a.ts#L26)*
+*Defined in [compact/fromU8a.ts:26](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/compact/fromU8a.ts#L26)*
*__name__*: compactFromU8a
diff --git a/docs/util/modules/_compact_striplength_.md b/docs/util/modules/_compact_striplength_.md
index 5ea24c307..e35e617a6 100644
--- a/docs/util/modules/_compact_striplength_.md
+++ b/docs/util/modules/_compact_striplength_.md
@@ -8,7 +8,7 @@
▸ **compactStripLength**(input: *`Uint8Array`*, bitLength?: *`BitLength`*): [`number`, `Uint8Array`]
-*Defined in [compact/stripLength.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/compact/stripLength.ts#L22)*
+*Defined in [compact/stripLength.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/compact/stripLength.ts#L22)*
*__name__*: compactStripLength
diff --git a/docs/util/modules/_compact_tou8a_.md b/docs/util/modules/_compact_tou8a_.md
index 1968d49fd..88c7e4faf 100644
--- a/docs/util/modules/_compact_tou8a_.md
+++ b/docs/util/modules/_compact_tou8a_.md
@@ -8,7 +8,7 @@
▸ **compactToU8a**(_value: * `BN` | `number`*, bitLength?: *`BitLength`*): `Uint8Array`
-*Defined in [compact/toU8a.ts:29](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/compact/toU8a.ts#L29)*
+*Defined in [compact/toU8a.ts:29](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/compact/toU8a.ts#L29)*
*__name__*: compactToU8a
diff --git a/docs/util/modules/_hex_addprefix_.md b/docs/util/modules/_hex_addprefix_.md
index fa325e0cf..23daaa989 100644
--- a/docs/util/modules/_hex_addprefix_.md
+++ b/docs/util/modules/_hex_addprefix_.md
@@ -8,7 +8,7 @@
▸ **hexAddPrefix**(value: * `string` | `null` | `undefined`*): `string`
-*Defined in [hex/addPrefix.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/hex/addPrefix.ts#L22)*
+*Defined in [hex/addPrefix.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/hex/addPrefix.ts#L22)*
*__name__*: hexAddPrefix
diff --git a/docs/util/modules/_hex_fixlength_.md b/docs/util/modules/_hex_fixlength_.md
index 05c8218c1..4ff3a3e1e 100644
--- a/docs/util/modules/_hex_fixlength_.md
+++ b/docs/util/modules/_hex_fixlength_.md
@@ -8,7 +8,7 @@
▸ **hexFixLength**(value: *`string`*, bitLength?: *`number`*, withPadding?: *`boolean`*): `string`
-*Defined in [hex/fixLength.ts:25](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/hex/fixLength.ts#L25)*
+*Defined in [hex/fixLength.ts:25](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/hex/fixLength.ts#L25)*
*__name__*: hexFixLength
diff --git a/docs/util/modules/_hex_hasprefix_.md b/docs/util/modules/_hex_hasprefix_.md
index ddbab2d4f..83d4bede6 100644
--- a/docs/util/modules/_hex_hasprefix_.md
+++ b/docs/util/modules/_hex_hasprefix_.md
@@ -8,7 +8,7 @@
▸ **hexHasPrefix**(value: * `string` | `null` | `undefined`*): `boolean`
-*Defined in [hex/hasPrefix.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/hex/hasPrefix.ts#L22)*
+*Defined in [hex/hasPrefix.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/hex/hasPrefix.ts#L22)*
*__name__*: hexHasPrefix
diff --git a/docs/util/modules/_hex_stripprefix_.md b/docs/util/modules/_hex_stripprefix_.md
index 6cba46f40..25f916084 100644
--- a/docs/util/modules/_hex_stripprefix_.md
+++ b/docs/util/modules/_hex_stripprefix_.md
@@ -8,7 +8,7 @@
▸ **hexStripPrefix**(value: * `string` | `null` | `undefined`*): `string`
-*Defined in [hex/stripPrefix.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/hex/stripPrefix.ts#L24)*
+*Defined in [hex/stripPrefix.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/hex/stripPrefix.ts#L24)*
*__name__*: hexStripPrefix
diff --git a/docs/util/modules/_hex_tobn_.md b/docs/util/modules/_hex_tobn_.md
index 7c2003ab0..21c01b4c8 100644
--- a/docs/util/modules/_hex_tobn_.md
+++ b/docs/util/modules/_hex_tobn_.md
@@ -8,7 +8,7 @@
▸ **hexToBn**(_value?: * `undefined` | `string`*, isLe?: *`boolean`*): `BN`
-*Defined in [hex/toBn.ts:30](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/hex/toBn.ts#L30)*
+*Defined in [hex/toBn.ts:30](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/hex/toBn.ts#L30)*
*__name__*: hexToBn
diff --git a/docs/util/modules/_hex_tonumber_.md b/docs/util/modules/_hex_tonumber_.md
index a0b760a8b..ca2f6cae5 100644
--- a/docs/util/modules/_hex_tonumber_.md
+++ b/docs/util/modules/_hex_tonumber_.md
@@ -8,7 +8,7 @@
▸ **hexToNumber**(value?: * `undefined` | `string`*): `number`
-*Defined in [hex/toNumber.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/hex/toNumber.ts#L22)*
+*Defined in [hex/toNumber.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/hex/toNumber.ts#L22)*
*__name__*: hexToNumber
diff --git a/docs/util/modules/_hex_tou8a_.md b/docs/util/modules/_hex_tou8a_.md
index bfd9f5889..d60ab87b9 100644
--- a/docs/util/modules/_hex_tou8a_.md
+++ b/docs/util/modules/_hex_tou8a_.md
@@ -8,7 +8,7 @@
▸ **hexToU8a**(_value?: * `string` | `null`*, bitLength?: *`number`*): `Uint8Array`
-*Defined in [hex/toU8a.ts:25](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/hex/toU8a.ts#L25)*
+*Defined in [hex/toU8a.ts:25](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/hex/toU8a.ts#L25)*
*__name__*: hexToU8a
diff --git a/docs/util/modules/_is_bn_.md b/docs/util/modules/_is_bn_.md
index fa33bc86a..a4cc551c2 100644
--- a/docs/util/modules/_is_bn_.md
+++ b/docs/util/modules/_is_bn_.md
@@ -8,7 +8,7 @@
▸ **isBn**(value: *`any`*): `boolean`
-*Defined in [is/bn.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/bn.ts#L23)*
+*Defined in [is/bn.ts:23](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/bn.ts#L23)*
*__name__*: isBn
diff --git a/docs/util/modules/_is_boolean_.md b/docs/util/modules/_is_boolean_.md
index e7c6ac72a..ec00bd8f2 100644
--- a/docs/util/modules/_is_boolean_.md
+++ b/docs/util/modules/_is_boolean_.md
@@ -8,7 +8,7 @@
▸ **isBoolean**(value: *`any`*): `boolean`
-*Defined in [is/boolean.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/boolean.ts#L20)*
+*Defined in [is/boolean.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/boolean.ts#L20)*
*__name__*: isBoolean
diff --git a/docs/util/modules/_is_buffer_.md b/docs/util/modules/_is_buffer_.md
index f252f62db..d194fa23c 100644
--- a/docs/util/modules/_is_buffer_.md
+++ b/docs/util/modules/_is_buffer_.md
@@ -8,7 +8,7 @@
▸ **isBuffer**(value: *`any`*): `boolean`
-*Defined in [is/buffer.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/buffer.ts#L22)*
+*Defined in [is/buffer.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/buffer.ts#L22)*
*__name__*: isBuffer
diff --git a/docs/util/modules/_is_error_.md b/docs/util/modules/_is_error_.md
index 45d2fc63f..b0a1c9673 100644
--- a/docs/util/modules/_is_error_.md
+++ b/docs/util/modules/_is_error_.md
@@ -8,7 +8,7 @@
▸ **isError**(value: *`any`*): `boolean`
-*Defined in [is/error.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/error.ts#L22)*
+*Defined in [is/error.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/error.ts#L22)*
*__name__*: isError
diff --git a/docs/util/modules/_is_function_.md b/docs/util/modules/_is_function_.md
index de3971522..b71cd940d 100644
--- a/docs/util/modules/_is_function_.md
+++ b/docs/util/modules/_is_function_.md
@@ -8,7 +8,7 @@
▸ **isFunction**(value: *`any`*): `boolean`
-*Defined in [is/function.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/function.ts#L20)*
+*Defined in [is/function.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/function.ts#L20)*
*__name__*: isFunction
diff --git a/docs/util/modules/_is_hex_.md b/docs/util/modules/_is_hex_.md
index c88a10c61..ce35ed2ca 100644
--- a/docs/util/modules/_is_hex_.md
+++ b/docs/util/modules/_is_hex_.md
@@ -8,7 +8,7 @@
▸ **isHex**(value: *`any`*, bitLength?: *`number`*, ignoreLength?: *`boolean`*): `boolean`
-*Defined in [is/hex.ts:25](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/hex.ts#L25)*
+*Defined in [is/hex.ts:25](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/hex.ts#L25)*
*__name__*: isHex
diff --git a/docs/util/modules/_is_instanceof_.md b/docs/util/modules/_is_instanceof_.md
index 90a3327f7..3fd0a23bb 100644
--- a/docs/util/modules/_is_instanceof_.md
+++ b/docs/util/modules/_is_instanceof_.md
@@ -8,7 +8,7 @@
▸ **isInstanceOf**(value: *`any`*, clazz: *`any`*): `boolean`
-*Defined in [is/instanceOf.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/instanceOf.ts#L20)*
+*Defined in [is/instanceOf.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/instanceOf.ts#L20)*
*__name__*: isInstanceOf
diff --git a/docs/util/modules/_is_ip_.md b/docs/util/modules/_is_ip_.md
index 164931fc1..12255c865 100644
--- a/docs/util/modules/_is_ip_.md
+++ b/docs/util/modules/_is_ip_.md
@@ -8,7 +8,7 @@
▸ **isIp**(value: *`string`*, type?: *`IpTypes`*): `boolean`
-*Defined in [is/ip.ts:27](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/ip.ts#L27)*
+*Defined in [is/ip.ts:27](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/ip.ts#L27)*
*__name__*: isIp
diff --git a/docs/util/modules/_is_null_.md b/docs/util/modules/_is_null_.md
index d3d0c9e15..d8871b05f 100644
--- a/docs/util/modules/_is_null_.md
+++ b/docs/util/modules/_is_null_.md
@@ -8,7 +8,7 @@
▸ **isNull**(value: *`any`*): `boolean`
-*Defined in [is/null.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/null.ts#L20)*
+*Defined in [is/null.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/null.ts#L20)*
*__name__*: isNull
diff --git a/docs/util/modules/_is_number_.md b/docs/util/modules/_is_number_.md
index b5009554e..a29e19908 100644
--- a/docs/util/modules/_is_number_.md
+++ b/docs/util/modules/_is_number_.md
@@ -8,7 +8,7 @@
▸ **isNumber**(value: *`any`*): `boolean`
-*Defined in [is/number.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/number.ts#L20)*
+*Defined in [is/number.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/number.ts#L20)*
*__name__*: isNumber
diff --git a/docs/util/modules/_is_object_.md b/docs/util/modules/_is_object_.md
index c788f5653..407caad28 100644
--- a/docs/util/modules/_is_object_.md
+++ b/docs/util/modules/_is_object_.md
@@ -8,7 +8,7 @@
▸ **isObject**(value: *`any`*): `boolean`
-*Defined in [is/object.ts:25](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/object.ts#L25)*
+*Defined in [is/object.ts:25](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/object.ts#L25)*
*__name__*: isObject
diff --git a/docs/util/modules/_is_observable_.md b/docs/util/modules/_is_observable_.md
index daf0dbe24..e5e3af529 100644
--- a/docs/util/modules/_is_observable_.md
+++ b/docs/util/modules/_is_observable_.md
@@ -8,7 +8,7 @@
▸ **isObservable**(value: *`any`*): `boolean`
-*Defined in [is/observable.ts:27](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/observable.ts#L27)*
+*Defined in [is/observable.ts:27](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/observable.ts#L27)*
*__name__*: isBObservable
diff --git a/docs/util/modules/_is_string_.md b/docs/util/modules/_is_string_.md
index 7e98f9b3a..9fe1d99ba 100644
--- a/docs/util/modules/_is_string_.md
+++ b/docs/util/modules/_is_string_.md
@@ -8,7 +8,7 @@
▸ **isString**(value: *`any`*): `boolean`
-*Defined in [is/string.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/string.ts#L20)*
+*Defined in [is/string.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/string.ts#L20)*
*__name__*: isString
diff --git a/docs/util/modules/_is_u8a_.md b/docs/util/modules/_is_u8a_.md
index 08070e182..705d1fcc3 100644
--- a/docs/util/modules/_is_u8a_.md
+++ b/docs/util/modules/_is_u8a_.md
@@ -8,7 +8,7 @@
▸ **isU8a**(value: *`any`*): `boolean`
-*Defined in [is/u8a.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/u8a.ts#L22)*
+*Defined in [is/u8a.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/u8a.ts#L22)*
*__name__*: isU8a
diff --git a/docs/util/modules/_is_undefined_.md b/docs/util/modules/_is_undefined_.md
index 54d8da46c..3f1b74aa3 100644
--- a/docs/util/modules/_is_undefined_.md
+++ b/docs/util/modules/_is_undefined_.md
@@ -8,7 +8,7 @@
▸ **isUndefined**(value: *`any`*): `boolean`
-*Defined in [is/undefined.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/is/undefined.ts#L20)*
+*Defined in [is/undefined.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/is/undefined.ts#L20)*
*__name__*: isUndefined
diff --git a/docs/util/modules/_logger_.md b/docs/util/modules/_logger_.md
index 1566ace4a..5b1149f39 100644
--- a/docs/util/modules/_logger_.md
+++ b/docs/util/modules/_logger_.md
@@ -8,7 +8,7 @@
▸ **format**(value: *`any`*): `any`
-*Defined in [logger.ts:36](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/logger.ts#L36)*
+*Defined in [logger.ts:36](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/logger.ts#L36)*
**Parameters:**
@@ -25,7 +25,7 @@ ___
▸ **logger**(_type: *`string`*): `Logger`
-*Defined in [logger.ts:109](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/logger.ts#L109)*
+*Defined in [logger.ts:109](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/logger.ts#L109)*
*__name__*: Logger
diff --git a/docs/util/modules/_number_tohex_.md b/docs/util/modules/_number_tohex_.md
index 1e6428d4c..a34c7b358 100644
--- a/docs/util/modules/_number_tohex_.md
+++ b/docs/util/modules/_number_tohex_.md
@@ -8,7 +8,7 @@
▸ **numberToHex**(value?: * `undefined` | `number`*, bitLength?: *`number`*): `string`
-*Defined in [number/toHex.ts:25](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/number/toHex.ts#L25)*
+*Defined in [number/toHex.ts:25](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/number/toHex.ts#L25)*
*__name__*: numberToHex
diff --git a/docs/util/modules/_number_tou8a_.md b/docs/util/modules/_number_tou8a_.md
index 095b3fc2d..ab3c43a11 100644
--- a/docs/util/modules/_number_tou8a_.md
+++ b/docs/util/modules/_number_tou8a_.md
@@ -8,7 +8,7 @@
▸ **numberToU8a**(value?: * `undefined` | `number`*, bitLength?: *`number`*): `Uint8Array`
-*Defined in [number/toU8a.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/number/toU8a.ts#L23)*
+*Defined in [number/toU8a.ts:23](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/number/toU8a.ts#L23)*
*__name__*: numberToU8a
diff --git a/docs/util/modules/_promisify_.md b/docs/util/modules/_promisify_.md
index 83ef0c5af..a01d11c0a 100644
--- a/docs/util/modules/_promisify_.md
+++ b/docs/util/modules/_promisify_.md
@@ -8,7 +8,7 @@
▸ **promisify**(self: *`any`*, fn: *`Function`*, ...params: *`Array`<`any`>*): `Promise`<`any`>
-*Defined in [promisify.ts:21](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/promisify.ts#L21)*
+*Defined in [promisify.ts:21](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/promisify.ts#L21)*
*__name__*: promisify
diff --git a/docs/util/modules/_string_lowerfirst_.md b/docs/util/modules/_string_lowerfirst_.md
index ba15a8e57..a5fb44aa3 100644
--- a/docs/util/modules/_string_lowerfirst_.md
+++ b/docs/util/modules/_string_lowerfirst_.md
@@ -8,7 +8,7 @@
▸ **stringLowerFirst**(_value: *`string`*): `string`
-*Defined in [string/lowerFirst.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/string/lowerFirst.ts#L23)*
+*Defined in [string/lowerFirst.ts:23](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/string/lowerFirst.ts#L23)*
*__name__*: stringLowerFirst
diff --git a/docs/util/modules/_string_shorten_.md b/docs/util/modules/_string_shorten_.md
index 119c6ba7e..62a8d437a 100644
--- a/docs/util/modules/_string_shorten_.md
+++ b/docs/util/modules/_string_shorten_.md
@@ -8,7 +8,7 @@
▸ **stringShorten**(_value: *`any`*, prefixLength?: *`number`*): `string`
-*Defined in [string/shorten.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/string/shorten.ts#L20)*
+*Defined in [string/shorten.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/string/shorten.ts#L20)*
*__name__*: stringShorten
diff --git a/docs/util/modules/_string_tou8a_.md b/docs/util/modules/_string_tou8a_.md
index 8d1769ff5..ae9e56e26 100644
--- a/docs/util/modules/_string_tou8a_.md
+++ b/docs/util/modules/_string_tou8a_.md
@@ -8,7 +8,7 @@
▸ **stringToU8a**(value?: * `undefined` | `string`*): `Uint8Array`
-*Defined in [string/toU8a.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/string/toU8a.ts#L24)*
+*Defined in [string/toU8a.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/string/toU8a.ts#L24)*
*__name__*: stringToU8a
diff --git a/docs/util/modules/_string_upperfirst_.md b/docs/util/modules/_string_upperfirst_.md
index c69223d75..bfba92902 100644
--- a/docs/util/modules/_string_upperfirst_.md
+++ b/docs/util/modules/_string_upperfirst_.md
@@ -8,7 +8,7 @@
▸ **stringUpperFirst**(_value: *`string`*): `string`
-*Defined in [string/upperFirst.ts:23](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/string/upperFirst.ts#L23)*
+*Defined in [string/upperFirst.ts:23](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/string/upperFirst.ts#L23)*
*__name__*: stringUpperFirst
diff --git a/docs/util/modules/_syncify_.md b/docs/util/modules/_syncify_.md
index 0ed451fbd..3449ce859 100644
--- a/docs/util/modules/_syncify_.md
+++ b/docs/util/modules/_syncify_.md
@@ -8,7 +8,7 @@
▸ **syncify**(promise: *`Promise`<`any`>*): `any`
-*Defined in [syncify.ts:11](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/syncify.ts#L11)*
+*Defined in [syncify.ts:11](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/syncify.ts#L11)*
**Parameters:**
diff --git a/docs/util/modules/_u8a_concat_.md b/docs/util/modules/_u8a_concat_.md
index 69349b0d2..503b765a0 100644
--- a/docs/util/modules/_u8a_concat_.md
+++ b/docs/util/modules/_u8a_concat_.md
@@ -8,7 +8,7 @@
▸ **u8aConcat**(..._list: *`Array`< `Uint8Array` | `string`>*): `Uint8Array`
-*Defined in [u8a/concat.ts:25](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/u8a/concat.ts#L25)*
+*Defined in [u8a/concat.ts:25](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/u8a/concat.ts#L25)*
*__name__*: u8aConcat
diff --git a/docs/util/modules/_u8a_fixlength_.md b/docs/util/modules/_u8a_fixlength_.md
index f28682ef5..747518ec0 100644
--- a/docs/util/modules/_u8a_fixlength_.md
+++ b/docs/util/modules/_u8a_fixlength_.md
@@ -8,7 +8,7 @@
▸ **u8aFixLength**(value: *`Uint8Array`*, bitLength?: *`number`*, atStart?: *`boolean`*): `Uint8Array`
-*Defined in [u8a/fixLength.ts:22](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/u8a/fixLength.ts#L22)*
+*Defined in [u8a/fixLength.ts:22](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/u8a/fixLength.ts#L22)*
*__name__*: u8aFixLength
diff --git a/docs/util/modules/_u8a_tobn_.md b/docs/util/modules/_u8a_tobn_.md
index 163fb57c6..ec2d226c2 100644
--- a/docs/util/modules/_u8a_tobn_.md
+++ b/docs/util/modules/_u8a_tobn_.md
@@ -8,7 +8,7 @@
▸ **u8aToBn**(value: *`Uint8Array`*, isLe: *`boolean`*): `BN`
-*Defined in [u8a/toBn.ts:25](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/u8a/toBn.ts#L25)*
+*Defined in [u8a/toBn.ts:25](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/u8a/toBn.ts#L25)*
*__name__*: u8aToBn
diff --git a/docs/util/modules/_u8a_tobuffer_.md b/docs/util/modules/_u8a_tobuffer_.md
index b7e753435..417fd4847 100644
--- a/docs/util/modules/_u8a_tobuffer_.md
+++ b/docs/util/modules/_u8a_tobuffer_.md
@@ -8,7 +8,7 @@
▸ **u8aToBuffer**(value?: *`Uint8Array`*): `Buffer`
-*Defined in [u8a/toBuffer.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/u8a/toBuffer.ts#L20)*
+*Defined in [u8a/toBuffer.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/u8a/toBuffer.ts#L20)*
*__name__*: u8aToBuffer
diff --git a/docs/util/modules/_u8a_tohex_.md b/docs/util/modules/_u8a_tohex_.md
index b3e168af4..8e04c444f 100644
--- a/docs/util/modules/_u8a_tohex_.md
+++ b/docs/util/modules/_u8a_tohex_.md
@@ -8,7 +8,7 @@
▸ **u8aToHex**(value?: * `Uint8Array` | `null`*, bitLength?: *`number`*, isPrefixed?: *`boolean`*): `string`
-*Defined in [u8a/toHex.ts:20](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/u8a/toHex.ts#L20)*
+*Defined in [u8a/toHex.ts:20](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/u8a/toHex.ts#L20)*
*__name__*: u8aToHex
diff --git a/docs/util/modules/_u8a_tostring_.md b/docs/util/modules/_u8a_tostring_.md
index 065eabb8b..d8f4a0013 100644
--- a/docs/util/modules/_u8a_tostring_.md
+++ b/docs/util/modules/_u8a_tostring_.md
@@ -8,7 +8,7 @@
▸ **u8aToString**(value?: *`Uint8Array`*): `string`
-*Defined in [u8a/toString.ts:24](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/u8a/toString.ts#L24)*
+*Defined in [u8a/toString.ts:24](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/u8a/toString.ts#L24)*
*__name__*: u8aToString
diff --git a/docs/util/modules/_u8a_tou8a_.md b/docs/util/modules/_u8a_tou8a_.md
index 56f938691..1e1f1bf8c 100644
--- a/docs/util/modules/_u8a_tou8a_.md
+++ b/docs/util/modules/_u8a_tou8a_.md
@@ -8,7 +8,7 @@
▸ **u8aToU8a**(value?: * `Array`<`number`> | `Buffer` | `Uint8Array` | `string` | `null`*): `Uint8Array`
-*Defined in [u8a/toU8a.ts:28](https://github.com/polkadot-js/common/blob/477be90/packages/util/src/u8a/toU8a.ts#L28)*
+*Defined in [u8a/toU8a.ts:28](https://github.com/polkadot-js/common/blob/f82092e/packages/util/src/u8a/toU8a.ts#L28)*
*__name__*: u8aToU8a
diff --git a/lerna.json b/lerna.json
index 567fa7a9d..6739054de 100644
--- a/lerna.json
+++ b/lerna.json
@@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
- "version": "0.33.0"
+ "version": "0.33.1"
}
diff --git a/package.json b/package.json
index b2717708b..eba3fd006 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "version": "0.32.23",
+ "version": "0.33.1",
"private": true,
"engines": {
"node": "^10.13.0",
diff --git a/packages/chainspec/package.json b/packages/chainspec/package.json
index 8a52ac238..1d4c493b8 100644
--- a/packages/chainspec/package.json
+++ b/packages/chainspec/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/chainspec",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "Contains chain specifications for known chains",
"main": "index.js",
"keywords": [
@@ -29,6 +29,6 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/chainspec#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
- "@polkadot/util": "^0.33.0"
+ "@polkadot/util": "^0.33.1"
}
}
diff --git a/packages/db/package.json b/packages/db/package.json
index 688ce8840..764668876 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/db",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "Implementation of a basic sync in-memory and on-disk databases with overlays",
"main": "index.js",
"keywords": [
@@ -29,8 +29,8 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/db#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
- "@polkadot/trie-hash": "^0.33.0",
- "@polkadot/util": "^0.33.0",
+ "@polkadot/trie-hash": "^0.33.1",
+ "@polkadot/util": "^0.33.1",
"@types/mkdirp": "^0.5.2",
"@types/snappy": "^6.0.0",
"lru_map": "^0.3.3",
diff --git a/packages/keyring/package.json b/packages/keyring/package.json
index 015d9478b..d0184d6b4 100644
--- a/packages/keyring/package.json
+++ b/packages/keyring/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/keyring",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "Keyring management",
"main": "index.js",
"engines": {
@@ -31,8 +31,8 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
- "@polkadot/util": "^0.33.0",
- "@polkadot/util-crypto": "^0.33.0",
+ "@polkadot/util": "^0.33.1",
+ "@polkadot/util-crypto": "^0.33.1",
"@types/bs58": "^3.0.30",
"bs58": "^4.0.1"
}
diff --git a/packages/trie-codec/package.json b/packages/trie-codec/package.json
index 5aa2a69bb..456176a61 100644
--- a/packages/trie-codec/package.json
+++ b/packages/trie-codec/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/trie-codec",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "This is an implementation of the codec for Substrate Trie",
"main": "index.js",
"keywords": [
@@ -29,6 +29,6 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/trie-codec#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
- "@polkadot/util": "^0.33.0"
+ "@polkadot/util": "^0.33.1"
}
}
diff --git a/packages/trie-db/package.json b/packages/trie-db/package.json
index 9d45347b6..056125eb2 100644
--- a/packages/trie-db/package.json
+++ b/packages/trie-db/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/trie-db",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "This is an implementation of the modified merkle patricia tree as specified in Ethereum's yellow paper, adapted for Polkadot",
"main": "index.js",
"keywords": [
@@ -29,15 +29,15 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/trie-db#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
- "@polkadot/db": "^0.33.0",
- "@polkadot/trie-codec": "^0.33.0",
- "@polkadot/trie-hash": "^0.33.0",
- "@polkadot/util": "^0.33.0",
- "@polkadot/util-crypto": "^0.33.0"
+ "@polkadot/db": "^0.33.1",
+ "@polkadot/trie-codec": "^0.33.1",
+ "@polkadot/trie-hash": "^0.33.1",
+ "@polkadot/util": "^0.33.1",
+ "@polkadot/util-crypto": "^0.33.1"
},
"devDependencies": {
- "@polkadot/chainspec": "^0.33.0",
- "@polkadot/util-rlp": "^0.33.0",
+ "@polkadot/chainspec": "^0.33.1",
+ "@polkadot/util-rlp": "^0.33.1",
"ethereumjs-testing": "1.0.4"
}
}
diff --git a/packages/trie-hash/package.json b/packages/trie-hash/package.json
index c7a8d12e7..04860daed 100644
--- a/packages/trie-hash/package.json
+++ b/packages/trie-hash/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/trie-hash",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "Generates trie roots from key-value pairs",
"main": "index.js",
"keywords": [
@@ -29,9 +29,9 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/trie-hash#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
- "@polkadot/util": "^0.33.0"
+ "@polkadot/util": "^0.33.1"
},
"devDependencies": {
- "@polkadot/chainspec": "^0.33.0"
+ "@polkadot/chainspec": "^0.33.1"
}
}
diff --git a/packages/util-crypto/package.json b/packages/util-crypto/package.json
index 1ebc8cf3b..02ac46fe8 100644
--- a/packages/util-crypto/package.json
+++ b/packages/util-crypto/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-crypto",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "A collection of useful crypto utilities for @polkadot",
"main": "index.js",
"keywords": [
@@ -29,7 +29,7 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
- "@polkadot/util": "^0.33.0",
+ "@polkadot/util": "^0.33.1",
"@types/bip39": "^2.4.0",
"bip39": "^2.5.0",
"blakejs": "^1.1.0",
diff --git a/packages/util-rlp/package.json b/packages/util-rlp/package.json
index 593435c2b..7f9bb0b90 100644
--- a/packages/util-rlp/package.json
+++ b/packages/util-rlp/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-rlp",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "RLP encoding and decoding",
"main": "index.js",
"keywords": [
@@ -31,7 +31,7 @@
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-rlp#readme",
"dependencies": {
"@babel/runtime": "^7.1.5",
- "@polkadot/util": "^0.33.0"
+ "@polkadot/util": "^0.33.1"
},
"devDependencies": {
"ethereumjs-testing": "1.0.4"
diff --git a/packages/util/package.json b/packages/util/package.json
index 65c535389..5c14eec4a 100644
--- a/packages/util/package.json
+++ b/packages/util/package.json
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util",
- "version": "0.33.0",
+ "version": "0.33.1",
"description": "A collection of useful utilities for @polkadot",
"main": "index.js",
"keywords": [