[CI Skip] 0.34.13

This commit is contained in:
Travis CI
2019-02-15 13:40:51 +00:00
parent 2efc5f7ca1
commit fcfc20fe95
200 changed files with 681 additions and 710 deletions
+15 -15
View File
@@ -8,7 +8,7 @@
**● BRANCH_NODE_NO_VALUE**: *`254`* = 254
*Defined in [constants.ts:10](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L10)*
*Defined in [constants.ts:10](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L10)*
___
<a id="branch_node_with_value"></a>
@@ -17,7 +17,7 @@ ___
**● BRANCH_NODE_WITH_VALUE**: *`255`* = 255
*Defined in [constants.ts:11](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L11)*
*Defined in [constants.ts:11](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L11)*
___
<a id="empty_trie"></a>
@@ -26,7 +26,7 @@ ___
**● EMPTY_TRIE**: *`0`* = 0
*Defined in [constants.ts:5](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L5)*
*Defined in [constants.ts:5](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L5)*
___
<a id="extension_node_big"></a>
@@ -35,7 +35,7 @@ ___
**● EXTENSION_NODE_BIG**: *`253`* = 253
*Defined in [constants.ts:9](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L9)*
*Defined in [constants.ts:9](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L9)*
___
<a id="extension_node_offset"></a>
@@ -44,7 +44,7 @@ ___
**● EXTENSION_NODE_OFFSET**: *`128`* = 128
*Defined in [constants.ts:8](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L8)*
*Defined in [constants.ts:8](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L8)*
___
<a id="extension_node_small_max"></a>
@@ -53,7 +53,7 @@ ___
**● EXTENSION_NODE_SMALL_MAX**: *`number`* = EXTENSION_NODE_BIG - 1
*Defined in [constants.ts:15](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L15)*
*Defined in [constants.ts:15](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L15)*
___
<a id="extension_node_threshold"></a>
@@ -62,7 +62,7 @@ ___
**● EXTENSION_NODE_THRESHOLD**: *`number`* = EXTENSION_NODE_BIG - EXTENSION_NODE_OFFSET
*Defined in [constants.ts:13](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L13)*
*Defined in [constants.ts:13](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L13)*
___
<a id="leaf_node_big"></a>
@@ -71,7 +71,7 @@ ___
**● LEAF_NODE_BIG**: *`127`* = 127
*Defined in [constants.ts:7](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L7)*
*Defined in [constants.ts:7](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L7)*
___
<a id="leaf_node_offset"></a>
@@ -80,7 +80,7 @@ ___
**● LEAF_NODE_OFFSET**: *`1`* = 1
*Defined in [constants.ts:6](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L6)*
*Defined in [constants.ts:6](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L6)*
___
<a id="leaf_node_small_max"></a>
@@ -89,7 +89,7 @@ ___
**● LEAF_NODE_SMALL_MAX**: *`number`* = LEAF_NODE_BIG - 1
*Defined in [constants.ts:14](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L14)*
*Defined in [constants.ts:14](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L14)*
___
<a id="leaf_node_threshold"></a>
@@ -98,7 +98,7 @@ ___
**● LEAF_NODE_THRESHOLD**: *`number`* = LEAF_NODE_BIG - LEAF_NODE_OFFSET
*Defined in [constants.ts:12](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L12)*
*Defined in [constants.ts:12](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L12)*
___
<a id="node_type_branch"></a>
@@ -107,7 +107,7 @@ ___
**● NODE_TYPE_BRANCH**: *`1`* = 1
*Defined in [constants.ts:17](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L17)*
*Defined in [constants.ts:17](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L17)*
___
<a id="node_type_ext"></a>
@@ -116,7 +116,7 @@ ___
**● NODE_TYPE_EXT**: *`2`* = 2
*Defined in [constants.ts:18](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L18)*
*Defined in [constants.ts:18](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L18)*
___
<a id="node_type_leaf"></a>
@@ -125,7 +125,7 @@ ___
**● NODE_TYPE_LEAF**: *`3`* = 3
*Defined in [constants.ts:19](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L19)*
*Defined in [constants.ts:19](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L19)*
___
<a id="node_type_null"></a>
@@ -134,7 +134,7 @@ ___
**● NODE_TYPE_NULL**: *`0`* = 0
*Defined in [constants.ts:16](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/constants.ts#L16)*
*Defined in [constants.ts:16](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/constants.ts#L16)*
___
+4 -4
View File
@@ -6,17 +6,17 @@
## decode
▸ **decode**(input: *`null` | `Uint8Array`*): `Uint8Array` | `null` | `Array`<`null` | `Uint8Array` | `Array`<`null` | `Uint8Array`>>
▸ **decode**(input: *`null` \| `Uint8Array`*): `Uint8Array` \| `null` \| `Array`<`null` \| `Uint8Array` \| `Array`<`null` \| `Uint8Array`>>
*Defined in [decode.ts:95](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/decode.ts#L95)*
*Defined in [decode.ts:95](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/decode.ts#L95)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| input | `null` | `Uint8Array` |
| input | `null` \| `Uint8Array` |
**Returns:** `Uint8Array` | `null` | `Array`<`null` | `Uint8Array` | `Array`<`null` | `Uint8Array`>>
**Returns:** `Uint8Array` \| `null` \| `Array`<`null` \| `Uint8Array` \| `Array`<`null` \| `Uint8Array`>>
___
+3 -3
View File
@@ -6,15 +6,15 @@
## encode
▸ **encode**(input?: *`null` | `Uint8Array` | `Array`<`null` | `Uint8Array`>*): `Uint8Array`
▸ **encode**(input?: *`null` \| `Uint8Array` \| `Array`<`null` \| `Uint8Array`>*): `Uint8Array`
*Defined in [encode.ts:101](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/encode.ts#L101)*
*Defined in [encode.ts:101](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/encode.ts#L101)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| `Optional` input | `null` | `Uint8Array` | `Array`<`null` | `Uint8Array`> |
| `Optional` input | `null` \| `Uint8Array` \| `Array`<`null` \| `Uint8Array`> |
**Returns:** `Uint8Array`
+13 -13
View File
@@ -8,7 +8,7 @@
▸ **addNibblesTerminator**(nibbles: *`Uint8Array`*): `Uint8Array`
*Defined in [nibbles.ts:31](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/nibbles.ts#L31)*
*Defined in [nibbles.ts:31](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/nibbles.ts#L31)*
**Parameters:**
@@ -23,15 +23,15 @@ ___
## decodeNibbles
▸ **decodeNibbles**(value: *`null` | `Uint8Array`*): `Uint8Array`
▸ **decodeNibbles**(value: *`null` \| `Uint8Array`*): `Uint8Array`
*Defined in [nibbles.ts:52](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/nibbles.ts#L52)*
*Defined in [nibbles.ts:52](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/nibbles.ts#L52)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| value | `null` | `Uint8Array` |
| value | `null` \| `Uint8Array` |
**Returns:** `Uint8Array`
@@ -42,7 +42,7 @@ ___
▸ **encodeNibbles**(nibbles: *`Uint8Array`*): `Uint8Array`
*Defined in [nibbles.ts:65](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/nibbles.ts#L65)*
*Defined in [nibbles.ts:65](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/nibbles.ts#L65)*
**Parameters:**
@@ -57,15 +57,15 @@ ___
## extractKey
▸ **extractKey**(key: *`null` | `Uint8Array`*): `Uint8Array`
▸ **extractKey**(key: *`null` \| `Uint8Array`*): `Uint8Array`
*Defined in [nibbles.ts:15](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/nibbles.ts#L15)*
*Defined in [nibbles.ts:15](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/nibbles.ts#L15)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| key | `null` | `Uint8Array` |
| key | `null` \| `Uint8Array` |
**Returns:** `Uint8Array`
@@ -74,15 +74,15 @@ ___
## extractNodeKey
▸ **extractNodeKey**(__namedParameters: *[`null` | `Uint8Array`]*): `Uint8Array`
▸ **extractNodeKey**(__namedParameters: *[`null` \| `Uint8Array`]*): `Uint8Array`
*Defined in [nibbles.ts:21](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/nibbles.ts#L21)*
*Defined in [nibbles.ts:21](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/nibbles.ts#L21)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| __namedParameters | [`null` | `Uint8Array`] |
| __namedParameters | [`null` \| `Uint8Array`] |
**Returns:** `Uint8Array`
@@ -93,7 +93,7 @@ ___
▸ **isNibblesTerminated**(nibbles: *`Uint8Array`*): `boolean`
*Defined in [nibbles.ts:27](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/nibbles.ts#L27)*
*Defined in [nibbles.ts:27](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/nibbles.ts#L27)*
**Parameters:**
@@ -110,7 +110,7 @@ ___
▸ **removeNibblesTerminator**(nibbles: *`Uint8Array`*): `Uint8Array`
*Defined in [nibbles.ts:44](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/nibbles.ts#L44)*
*Defined in [nibbles.ts:44](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/nibbles.ts#L44)*
**Parameters:**
@@ -6,15 +6,15 @@
## createBranch
▸ **createBranch**(value: *`Uint8Array` | `null`*, hasChildren: *`Array`<`boolean`>*): `Uint8Array`
▸ **createBranch**(value: *`Uint8Array` \| `null`*, hasChildren: *`Array`<`boolean`>*): `Uint8Array`
*Defined in [stream/createBranch.ts:10](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/stream/createBranch.ts#L10)*
*Defined in [stream/createBranch.ts:10](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/stream/createBranch.ts#L10)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| value | `Uint8Array` | `null` |
| value | `Uint8Array` \| `null` |
| hasChildren | `Array`<`boolean`> |
**Returns:** `Uint8Array`
@@ -8,7 +8,7 @@
▸ **createEmpty**(): `Uint8Array`
*Defined in [stream/createEmpty.ts:7](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/stream/createEmpty.ts#L7)*
*Defined in [stream/createEmpty.ts:7](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/stream/createEmpty.ts#L7)*
**Returns:** `Uint8Array`
@@ -8,7 +8,7 @@
▸ **createExtension**(key: *`Uint8Array`*): `Uint8Array`
*Defined in [stream/createExtension.ts:7](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/stream/createExtension.ts#L7)*
*Defined in [stream/createExtension.ts:7](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/stream/createExtension.ts#L7)*
**Parameters:**
@@ -8,7 +8,7 @@
▸ **createLeaf**(key: *`Uint8Array`*, value: *`Uint8Array`*): `Uint8Array`
*Defined in [stream/createLeaf.ts:10](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/stream/createLeaf.ts#L10)*
*Defined in [stream/createLeaf.ts:10](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/stream/createLeaf.ts#L10)*
**Parameters:**
@@ -8,7 +8,7 @@
▸ **createSubstream**(value: *`Uint8Array`*): `Uint8Array`
*Defined in [stream/createSubstream.ts:8](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/stream/createSubstream.ts#L8)*
*Defined in [stream/createSubstream.ts:8](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/stream/createSubstream.ts#L8)*
**Parameters:**
@@ -6,15 +6,15 @@
## createValue
▸ **createValue**(value: *`null` | `Uint8Array`*): `Uint8Array`
▸ **createValue**(value: *`null` \| `Uint8Array`*): `Uint8Array`
*Defined in [stream/createValue.ts:9](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/stream/createValue.ts#L9)*
*Defined in [stream/createValue.ts:9](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/stream/createValue.ts#L9)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| value | `null` | `Uint8Array` |
| value | `null` \| `Uint8Array` |
**Returns:** `Uint8Array`
@@ -6,15 +6,15 @@
## encBranch
▸ **encBranch**(value: *`Uint8Array` | `null`*): `Uint8Array`
▸ **encBranch**(value: *`Uint8Array` \| `null`*): `Uint8Array`
*Defined in [stream/endBranch.ts:7](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/stream/endBranch.ts#L7)*
*Defined in [stream/endBranch.ts:7](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/stream/endBranch.ts#L7)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| value | `Uint8Array` | `null` |
| value | `Uint8Array` \| `null` |
**Returns:** `Uint8Array`
+1 -1
View File
@@ -8,7 +8,7 @@
**Ƭ Codec**: *`object`*
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/types.ts#L5)*
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/types.ts#L5)*
#### Type declaration
@@ -8,7 +8,7 @@
▸ **fromNibbles**(input: *`Uint8Array`*): `Uint8Array`
*Defined in [util/fromNibbles.ts:19](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/util/fromNibbles.ts#L19)*
*Defined in [util/fromNibbles.ts:19](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/util/fromNibbles.ts#L19)*
*__name__*: fromNibbles
@@ -8,7 +8,7 @@
▸ **fuseNibbles**(nibbles: *`Uint8Array`*, isLeaf: *`boolean`*): `Uint8Array`
*Defined in [util/fuseNibbles.ts:12](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/util/fuseNibbles.ts#L12)*
*Defined in [util/fuseNibbles.ts:12](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/util/fuseNibbles.ts#L12)*
**Parameters:**
@@ -8,7 +8,7 @@
▸ **sharedPrefixLength**(first: *`Uint8Array`*, second: *`Uint8Array`*): `number`
*Defined in [util/sharedPrefixLength.ts:5](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/util/sharedPrefixLength.ts#L5)*
*Defined in [util/sharedPrefixLength.ts:5](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/util/sharedPrefixLength.ts#L5)*
**Parameters:**
+3 -3
View File
@@ -6,9 +6,9 @@
## toNibbles
▸ **toNibbles**(input?: *`Uint8Array` | `null`*): `Uint8Array`
▸ **toNibbles**(input?: *`Uint8Array` \| `null`*): `Uint8Array`
*Defined in [util/toNibbles.ts:19](https://github.com/polkadot-js/common/blob/9f9ceff/packages/trie-codec/src/util/toNibbles.ts#L19)*
*Defined in [util/toNibbles.ts:19](https://github.com/polkadot-js/common/blob/2efc5f7/packages/trie-codec/src/util/toNibbles.ts#L19)*
*__name__*: toNibbles
@@ -28,7 +28,7 @@ toNibbles(new Uint8Array([0x41, 0x20]); // => Uint8Array([4, 1, 2, 0])
| Name | Type |
| ------ | ------ |
| `Optional` input | `Uint8Array` | `null` |
| `Optional` input | `Uint8Array` \| `null` |
**Returns:** `Uint8Array`