[CI Skip] 0.34.1

This commit is contained in:
Travis CI
2019-02-13 15:51:29 +00:00
parent 2aba82e569
commit aabcfd3d17
223 changed files with 712 additions and 605 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
▸ **decode**(encoded: *`string` | `Uint8Array`*, prefix?: *[Prefix](_address_types_.md#prefix)*): `Uint8Array`
*Defined in [address/decode.ts:15](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/address/decode.ts#L15)*
*Defined in [address/decode.ts:15](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/address/decode.ts#L15)*
**Parameters:**
@@ -0,0 +1,2 @@
+1 -1
View File
@@ -8,7 +8,7 @@
▸ **encode**(_key: *`Uint8Array` | `string`*, prefix?: *[Prefix](_address_types_.md#prefix)*): `string`
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/address/encode.ts#L15)*
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/address/encode.ts#L15)*
**Parameters:**
@@ -0,0 +1,2 @@
+1 -1
View File
@@ -8,7 +8,7 @@
▸ **setPrefix**(prefix: *[Prefix](_address_types_.md#prefix)*): `void`
*Defined in [address/setPrefix.ts:9](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/address/setPrefix.ts#L9)*
*Defined in [address/setPrefix.ts:9](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/address/setPrefix.ts#L9)*
**Parameters:**
@@ -0,0 +1,2 @@
+1 -1
View File
@@ -8,7 +8,7 @@
**Ƭ Prefix**: *`0` | `1` | `3` | `42` | `43` | `68` | `69`*
*Defined in [address/types.ts:5](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/address/types.ts#L5)*
*Defined in [address/types.ts:5](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/address/types.ts#L5)*
___
+2
View File
@@ -0,0 +1,2 @@
+4 -4
View File
@@ -6,18 +6,18 @@
## decode
▸ **decode**(passphrase?: *`undefined` | `string`*, _encrypted?: *`Uint8Array`*): `object`
▸ **decode**(passphrase?: *`undefined` | `string`*, _encrypted?: *`Uint8Array` | `null`*): `DecodeResult`
*Defined in [pair/decode.ts:15](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/pair/decode.ts#L15)*
*Defined in [pair/decode.ts:19](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/decode.ts#L19)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| `Optional` passphrase | `undefined` | `string` |
| `Optional` _encrypted | `Uint8Array` |
| `Optional` _encrypted | `Uint8Array` | `null` |
**Returns:** `object`
**Returns:** `DecodeResult`
___
@@ -0,0 +1,2 @@
+4 -3
View File
@@ -6,15 +6,16 @@
## encode
▸ **encode**(secretKey: *`Uint8Array`*, passphrase?: *`undefined` | `string`*): `Uint8Array`
▸ **encode**(publicKey: *`Uint8Array`*, seed?: *`Uint8Array` | `null`*, passphrase?: *`undefined` | `string`*): `Uint8Array`
*Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/pair/encode.ts#L10)*
*Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/encode.ts#L10)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| secretKey | `Uint8Array` |
| publicKey | `Uint8Array` |
| `Optional` seed | `Uint8Array` | `null` |
| `Optional` passphrase | `undefined` | `string` |
**Returns:** `Uint8Array`
@@ -0,0 +1,2 @@
-22
View File
@@ -1,22 +0,0 @@
# Functions
<a id="getmeta"></a>
## getMeta
▸ **getMeta**(state: *[PairState](_pair_types_.md#pairstate)*): [KeyringPair$Meta](_types_.md#keyringpair_meta)
*Defined in [pair/getMeta.ts:8](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/pair/getMeta.ts#L8)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| state | [PairState](_pair_types_.md#pairstate) |
**Returns:** [KeyringPair$Meta](_types_.md#keyringpair_meta)
___
+4 -5
View File
@@ -6,14 +6,12 @@
## pair
▸ **pair**(__namedParameters: *`object`*, meta?: *[KeyringPair$Meta](_types_.md#keyringpair_meta)*, defaultEncoded?: *`Uint8Array`*): [KeyringPair](_types_.md#keyringpair)
▸ **pair**(type: *[PairType](_types_.md#pairtype)*, __namedParameters: *`object`*, meta?: *[KeyringPair$Meta](_types_.md#keyringpair_meta)*, encoded: *`Uint8Array` | `null`*): [KeyringPair](_types_.md#keyringpair)
*Defined in [pair/index.ts:50](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/pair/index.ts#L50)*
*Defined in [pair/index.ts:47](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/index.ts#L47)*
*__name__*: pair
*__signature__*: pair ({ publicKey, secretKey }: KeypairType, meta: KeyringPair$Meta = {}, defaultEncoded?: Uint8Array): KeyringPair
*__summary__*: Creates a keyring pair object
*__description__*: Creates a keyring pair object with provided account public key, metadata, and encoded arguments. The keyring pair stores the account state including the encoded address and associated metadata.
@@ -32,9 +30,10 @@ It has properties whose values are functions that may be called to perform accou
| Name | Type | Default value |
| ------ | ------ | ------ |
| type | [PairType](_types_.md#pairtype) | - |
| __namedParameters | `object` | - |
| `Default value` meta | [KeyringPair$Meta](_types_.md#keyringpair_meta) | {} |
| `Optional` defaultEncoded | `Uint8Array` | - |
| encoded | `Uint8Array` | `null` | - |
**Returns:** [KeyringPair](_types_.md#keyringpair)
@@ -0,0 +1,2 @@
+1 -1
View File
@@ -8,7 +8,7 @@
▸ **everybody**(): [KeyringPair](_types_.md#keyringpair)
*Defined in [pair/nobody.ts:25](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/pair/nobody.ts#L25)*
*Defined in [pair/nobody.ts:25](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/nobody.ts#L25)*
**Returns:** [KeyringPair](_types_.md#keyringpair)
-23
View File
@@ -1,23 +0,0 @@
# Functions
<a id="setmeta"></a>
## setMeta
▸ **setMeta**(state: *[PairState](_pair_types_.md#pairstate)*, meta: *[KeyringPair$Meta](_types_.md#keyringpair_meta)*): `void`
*Defined in [pair/setMeta.ts:8](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/pair/setMeta.ts#L8)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| state | [PairState](_pair_types_.md#pairstate) |
| meta | [KeyringPair$Meta](_types_.md#keyringpair_meta) |
**Returns:** `void`
___
+1 -1
View File
@@ -8,7 +8,7 @@
▸ **toJson**(__namedParameters: *`object`*, encoded: *`Uint8Array`*, isEncrypted: *`boolean`*): [KeyringPair$Json](_types_.md#keyringpair_json)
*Defined in [pair/toJson.ts:12](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/pair/toJson.ts#L12)*
*Defined in [pair/toJson.ts:15](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/toJson.ts#L15)*
**Parameters:**
@@ -0,0 +1,2 @@
+4 -4
View File
@@ -2,13 +2,13 @@
# Type aliases
<a id="pairstate"></a>
<a id="pairinfo"></a>
## PairState
## PairInfo
**Ƭ PairState**: *`object`*
**Ƭ PairInfo**: *`object`*
*Defined in [pair/types.ts:7](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/pair/types.ts#L7)*
*Defined in [pair/types.ts:5](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/pair/types.ts#L5)*
#### Type declaration
+6 -15
View File
@@ -6,9 +6,9 @@
## testKeyring
▸ **testKeyring**(): [KeyringInstance](../interfaces/_types_.keyringinstance.md)
▸ **testKeyring**(options: *[KeyringOptions](_types_.md#keyringoptions)*): [KeyringInstance](../interfaces/_types_.keyringinstance.md)
*Defined in [testing.ts:57](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/testing.ts#L57)*
*Defined in [testing.ts:42](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/testing.ts#L42)*
*__name__*: testKeyring
@@ -18,20 +18,11 @@
*__description__*: The test accounts (i.e. alice, bob, dave, eve, ferdie) are available on the dev chain and each test account is initialised with DOT funds.
*__example__*:
**Parameters:**
```javascript
import testKeyring from '@polkadot/keyring/testing';
// Create an instance of Keyring that includes test accounts
const keyring = testingPairs();
// Retrieve the address of one of the test accounts
const addressAlice = keyring.alice.address();
// Retrieve the public key of one of the test accounts
const publicKeyAlice = keyring.alice.publicKey();
```
| Name | Type |
| ------ | ------ |
| options | [KeyringOptions](_types_.md#keyringoptions) |
**Returns:** [KeyringInstance](../interfaces/_types_.keyringinstance.md)
+8 -2
View File
@@ -6,9 +6,15 @@
## testKeyringPairs
▸ **testKeyringPairs**(): `TestKeyringMap`
▸ **testKeyringPairs**(options: *[KeyringOptions](_types_.md#keyringoptions)*): `TestKeyringMap`
*Defined in [testingPairs.ts:14](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/testingPairs.ts#L14)*
*Defined in [testingPairs.ts:14](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/testingPairs.ts#L14)*
**Parameters:**
| Name | Type |
| ------ | ------ |
| options | [KeyringOptions](_types_.md#keyringoptions) |
**Returns:** `TestKeyringMap`
@@ -0,0 +1,2 @@
+47 -3
View File
@@ -9,21 +9,36 @@
### Type aliases
* [KeyringOptions](_types_.md#keyringoptions)
* [KeyringPair](_types_.md#keyringpair)
* [KeyringPair$Json](_types_.md#keyringpair_json)
* [KeyringPair$JsonEncoding](_types_.md#keyringpair_jsonencoding)
* [KeyringPair$JsonVersion](_types_.md#keyringpair_jsonversion)
* [KeyringPair$Meta](_types_.md#keyringpair_meta)
* [PairType](_types_.md#pairtype)
---
# Type aliases
<a id="keyringoptions"></a>
## KeyringOptions
**Ƭ KeyringOptions**: *`object`*
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L9)*
#### Type declaration
___
<a id="keyringpair"></a>
## KeyringPair
**Ƭ KeyringPair**: *`object`*
*Defined in [types.ts:22](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/types.ts#L22)*
*Defined in [types.ts:33](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L33)*
#### Type declaration
@@ -34,10 +49,30 @@ ___
**Ƭ KeyringPair$Json**: *`object`*
*Defined in [types.ts:11](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/types.ts#L11)*
*Defined in [types.ts:26](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L26)*
#### Type declaration
___
<a id="keyringpair_jsonencoding"></a>
## KeyringPair$JsonEncoding
**Ƭ KeyringPair$JsonEncoding**: *`object`*
*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L20)*
#### Type declaration
___
<a id="keyringpair_jsonversion"></a>
## KeyringPair$JsonVersion
**Ƭ KeyringPair$JsonVersion**: *"0" | "1"*
*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L18)*
___
<a id="keyringpair_meta"></a>
@@ -45,11 +80,20 @@ ___
**Ƭ KeyringPair$Meta**: *`object`*
*Defined in [types.ts:7](https://github.com/polkadot-js/common/blob/5cb5390/packages/keyring/src/types.ts#L7)*
*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L14)*
#### Type declaration
[index: `string`]: `any`
___
<a id="pairtype"></a>
## PairType
**Ƭ PairType**: *"ed25519" | "sr25519"*
*Defined in [types.ts:7](https://github.com/polkadot-js/common/blob/2aba82e/packages/keyring/src/types.ts#L7)*
___