[CI Skip] 0.33.6
This commit is contained in:
+1
-1
@@ -359,7 +359,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"dir":"neutral"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"GLOSSARY.md","mtime":"2018-11-29T10:08:46.329Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":".","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"dir":"neutral"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"GLOSSARY.md","mtime":"2018-11-29T10:55:29.156Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":".","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
* ["bbqbirch"](modules/_bbqbirch_.md)
|
||||
* ["krummelanke"](modules/_krummelanke_.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="chainspec"></a>
|
||||
|
||||
## Chainspec
|
||||
|
||||
**Ƭ Chainspec**: *`object`*
|
||||
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/e3b45e7/packages/chainspec/src/types.ts#L5)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
|
||||
@@ -17,3 +17,6 @@
|
||||
* [MemoryDb](classes/_engines_memorydb_.memorydb.md)
|
||||
* ["engines/TransactionDb"](modules/_engines_transactiondb_.md)
|
||||
* [TransactionDb](classes/_engines_transactiondb_.transactiondb.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
* [BaseDb](interfaces/_types_.basedb.md)
|
||||
* [TxDb](interfaces/_types_.txdb.md)
|
||||
|
||||
@@ -62,7 +62,7 @@ diskDb.close();
|
||||
|
||||
# Implements
|
||||
|
||||
* `TxDb`
|
||||
* [TxDb](../interfaces/_types_.txdb.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -70,11 +70,11 @@ diskDb.close();
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new DiskDb**(base: *`string`*, name: *`string`*, options?: *`BaseDbOptions`*): [DiskDb](_disk_.diskdb.md)
|
||||
⊕ **new DiskDb**(base: *`string`*, name: *`string`*, options?: *[BaseDbOptions](../modules/_types_.md#basedboptions)*): [DiskDb](_disk_.diskdb.md)
|
||||
|
||||
*Overrides [TransactionDb](_engines_transactiondb_.transactiondb.md).[constructor](_engines_transactiondb_.transactiondb.md#constructor)*
|
||||
|
||||
*Defined in [Disk.ts:66](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/Disk.ts#L66)*
|
||||
*Defined in [Disk.ts:66](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/Disk.ts#L66)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -82,7 +82,7 @@ diskDb.close();
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| name | `string` |
|
||||
| `Optional` options | `BaseDbOptions` |
|
||||
| `Optional` options | [BaseDbOptions](../modules/_types_.md#basedboptions) |
|
||||
|
||||
**Returns:** [DiskDb](_disk_.diskdb.md)
|
||||
|
||||
@@ -96,9 +96,11 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[close](../interfaces/_types_.txdb.md#close)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[close](_engines_transactiondb_.transactiondb.md#close)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -109,9 +111,11 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[del](../interfaces/_types_.txdb.md#del)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[del](_engines_transactiondb_.transactiondb.md#del)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -128,9 +132,11 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[drop](../interfaces/_types_.txdb.md#drop)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[drop](_engines_transactiondb_.transactiondb.md#drop)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -141,9 +147,11 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[empty](../interfaces/_types_.txdb.md#empty)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[empty](_engines_transactiondb_.transactiondb.md#empty)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -154,9 +162,11 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[get](../interfaces/_types_.txdb.md#get)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[get](_engines_transactiondb_.transactiondb.md#get)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -171,17 +181,19 @@ ___
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[maintain](../interfaces/_types_.txdb.md#maintain)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[maintain](_engines_transactiondb_.transactiondb.md#maintain)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -192,9 +204,11 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[open](../interfaces/_types_.txdb.md#open)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[open](_engines_transactiondb_.transactiondb.md#open)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -205,9 +219,11 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[put](../interfaces/_types_.txdb.md#put)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[put](_engines_transactiondb_.transactiondb.md#put)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -225,9 +241,11 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[rename](../interfaces/_types_.txdb.md#rename)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[rename](_engines_transactiondb_.transactiondb.md#rename)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -245,9 +263,11 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[size](../interfaces/_types_.txdb.md#size)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[size](_engines_transactiondb_.transactiondb.md#size)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -260,7 +280,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[transaction](_engines_transactiondb_.transactiondb.md#transaction)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Implements
|
||||
|
||||
* `BaseDb`
|
||||
* [BaseDb](../interfaces/_types_.basedb.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
⊕ **new FileTreeDb**(location: *`string`*): [FileTreeDb](_engines_filetreedb_.filetreedb.md)
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:21](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L21)*
|
||||
*Defined in [engines/FileTreeDb.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L21)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -36,7 +36,7 @@ ___
|
||||
|
||||
**● _location**: *`string`*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:21](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L21)*
|
||||
*Defined in [engines/FileTreeDb.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L21)*
|
||||
|
||||
___
|
||||
|
||||
@@ -48,7 +48,9 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:46](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L46)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[close](../interfaces/_types_.basedb.md#close)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:46](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L46)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -59,7 +61,9 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:76](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L76)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[del](../interfaces/_types_.basedb.md#del)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:76](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L76)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -76,7 +80,9 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:50](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L50)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[drop](../interfaces/_types_.basedb.md#drop)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:50](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L50)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -87,7 +93,9 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:54](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L54)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[empty](../interfaces/_types_.basedb.md#empty)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:54](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L54)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -98,7 +106,9 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:86](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L86)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[get](../interfaces/_types_.basedb.md#get)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:86](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L86)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -113,15 +123,17 @@ ___
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:68](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L68)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[maintain](../interfaces/_types_.basedb.md#maintain)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:68](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L68)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -132,7 +144,9 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:42](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L42)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[open](../interfaces/_types_.basedb.md#open)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:42](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L42)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -143,7 +157,9 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:100](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L100)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[put](../interfaces/_types_.basedb.md#put)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:100](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L100)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -161,7 +177,9 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:58](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L58)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[rename](../interfaces/_types_.basedb.md#rename)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:58](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L58)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -179,7 +197,9 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:62](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/FileTreeDb.ts#L62)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[size](../interfaces/_types_.basedb.md#size)*
|
||||
|
||||
*Defined in [engines/FileTreeDb.ts:62](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/FileTreeDb.ts#L62)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Implements
|
||||
|
||||
* `BaseDb`
|
||||
* [BaseDb](../interfaces/_types_.basedb.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new LruDb**(backing: *`BaseDb`*, itemCount?: *`number`*): [LruDb](_engines_lrudb_.lrudb.md)
|
||||
⊕ **new LruDb**(backing: *[BaseDb](../interfaces/_types_.basedb.md)*, itemCount?: *`number`*): [LruDb](_engines_lrudb_.lrudb.md)
|
||||
|
||||
*Defined in [engines/LruDb.ts:20](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L20)*
|
||||
*Defined in [engines/LruDb.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L20)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| backing | `BaseDb` | - |
|
||||
| backing | [BaseDb](../interfaces/_types_.basedb.md) | - |
|
||||
| `Default value` itemCount | `number` | DEFAULT_ITEM_COUNT |
|
||||
|
||||
**Returns:** [LruDb](_engines_lrudb_.lrudb.md)
|
||||
@@ -37,7 +37,7 @@ ___
|
||||
|
||||
▸ **_getLru**(key: *`Uint8Array`*): `CachedValue` | `undefined`
|
||||
|
||||
*Defined in [engines/LruDb.ts:87](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L87)*
|
||||
*Defined in [engines/LruDb.ts:87](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L87)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -54,7 +54,9 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:27](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L27)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[close](../interfaces/_types_.basedb.md#close)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L27)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -65,7 +67,9 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:64](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L64)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[del](../interfaces/_types_.basedb.md#del)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:64](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L64)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -82,7 +86,9 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:41](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L41)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[drop](../interfaces/_types_.basedb.md#drop)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:41](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L41)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -93,7 +99,9 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:45](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L45)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[empty](../interfaces/_types_.basedb.md#empty)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:45](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L45)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -104,7 +112,9 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [engines/LruDb.ts:71](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L71)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[get](../interfaces/_types_.basedb.md#get)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:71](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L71)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -119,15 +129,17 @@ ___
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:56](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L56)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[maintain](../interfaces/_types_.basedb.md#maintain)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:56](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L56)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -138,7 +150,9 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:34](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L34)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[open](../interfaces/_types_.basedb.md#open)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:34](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L34)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -149,7 +163,9 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:91](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L91)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[put](../interfaces/_types_.basedb.md#put)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:91](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L91)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -167,7 +183,9 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [engines/LruDb.ts:52](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L52)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[rename](../interfaces/_types_.basedb.md#rename)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:52](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L52)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -185,7 +203,9 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [engines/LruDb.ts:60](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/LruDb.ts#L60)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[size](../interfaces/_types_.basedb.md#size)*
|
||||
|
||||
*Defined in [engines/LruDb.ts:60](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/LruDb.ts#L60)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Implements
|
||||
|
||||
* `BaseDb`
|
||||
* [BaseDb](../interfaces/_types_.basedb.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new MemoryDb**(options?: *`BaseDbOptions`*): [MemoryDb](_engines_memorydb_.memorydb.md)
|
||||
⊕ **new MemoryDb**(options?: *[BaseDbOptions](../modules/_types_.md#basedboptions)*): [MemoryDb](_engines_memorydb_.memorydb.md)
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:16](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L16)*
|
||||
*Defined in [engines/MemoryDb.ts:16](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L16)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` options | `BaseDbOptions` |
|
||||
| `Optional` options | [BaseDbOptions](../modules/_types_.md#basedboptions) |
|
||||
|
||||
**Returns:** [MemoryDb](_engines_memorydb_.memorydb.md)
|
||||
|
||||
@@ -36,7 +36,9 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:22](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L22)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[close](../interfaces/_types_.basedb.md#close)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L22)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -47,7 +49,9 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:56](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L56)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[del](../interfaces/_types_.basedb.md#del)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:56](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L56)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -64,7 +68,9 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:30](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L30)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[drop](../interfaces/_types_.basedb.md#drop)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:30](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L30)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -75,7 +81,9 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:34](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L34)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[empty](../interfaces/_types_.basedb.md#empty)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:34](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L34)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -86,7 +94,9 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:62](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L62)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[get](../interfaces/_types_.basedb.md#get)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:62](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L62)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -101,15 +111,17 @@ ___
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:42](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L42)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[maintain](../interfaces/_types_.basedb.md#maintain)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:42](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L42)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -120,7 +132,9 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:26](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L26)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[open](../interfaces/_types_.basedb.md#open)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:26](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L26)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -131,7 +145,9 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:68](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L68)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[put](../interfaces/_types_.basedb.md#put)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:68](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L68)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -149,7 +165,9 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:38](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L38)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[rename](../interfaces/_types_.basedb.md#rename)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:38](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L38)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -167,7 +185,9 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:50](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/MemoryDb.ts#L50)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[size](../interfaces/_types_.basedb.md#size)*
|
||||
|
||||
*Defined in [engines/MemoryDb.ts:50](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/MemoryDb.ts#L50)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
# Implements
|
||||
|
||||
* `TxDb`
|
||||
* [TxDb](../interfaces/_types_.txdb.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new TransactionDb**(backing: *`BaseDb`*): [TransactionDb](_engines_transactiondb_.transactiondb.md)
|
||||
⊕ **new TransactionDb**(backing: *[BaseDb](../interfaces/_types_.basedb.md)*): [TransactionDb](_engines_transactiondb_.transactiondb.md)
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:21](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L21)*
|
||||
*Defined in [engines/TransactionDb.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L21)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| backing | `BaseDb` |
|
||||
| backing | [BaseDb](../interfaces/_types_.basedb.md) |
|
||||
|
||||
**Returns:** [TransactionDb](_engines_transactiondb_.transactiondb.md)
|
||||
|
||||
@@ -40,7 +40,9 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[close](../interfaces/_types_.txdb.md#close)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -51,7 +53,9 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[del](../interfaces/_types_.txdb.md#del)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -68,7 +72,9 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[drop](../interfaces/_types_.txdb.md#drop)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -79,7 +85,9 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[empty](../interfaces/_types_.txdb.md#empty)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -90,7 +98,9 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[get](../interfaces/_types_.txdb.md#get)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -105,15 +115,17 @@ ___
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[maintain](../interfaces/_types_.txdb.md#maintain)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -124,7 +136,9 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[open](../interfaces/_types_.txdb.md#open)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -135,7 +149,9 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[put](../interfaces/_types_.txdb.md#put)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -153,7 +169,9 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[rename](../interfaces/_types_.txdb.md#rename)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -171,7 +189,9 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[size](../interfaces/_types_.txdb.md#size)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -182,7 +202,7 @@ ___
|
||||
|
||||
▸ **transaction**(fn: *`function`*): `boolean`
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
⊕ **new Compact**(file: *`string`*): [Compact](_fileflatdb_compact_.compact.md)
|
||||
|
||||
*Defined in [FileFlatDb/Compact.ts:17](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/Compact.ts#L17)*
|
||||
*Defined in [FileFlatDb/Compact.ts:17](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/Compact.ts#L17)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -30,15 +30,15 @@ ___
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/Compact.ts:24](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/Compact.ts#L24)*
|
||||
*Defined in [FileFlatDb/Compact.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/Compact.ts#L24)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Implements
|
||||
|
||||
* `BaseDb`
|
||||
* [BaseDb](../interfaces/_types_.basedb.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new FileFlatDb**(base: *`string`*, file?: *`string`*, options?: *`BaseDbOptions`*): [FileFlatDb](_fileflatdb_index_.fileflatdb.md)
|
||||
⊕ **new FileFlatDb**(base: *`string`*, file?: *`string`*, options?: *[BaseDbOptions](../modules/_types_.md#basedboptions)*): [FileFlatDb](_fileflatdb_index_.fileflatdb.md)
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:31](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L31)*
|
||||
*Defined in [FileFlatDb/index.ts:31](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L31)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
| ------ | ------ | ------ |
|
||||
| base | `string` | - |
|
||||
| `Default value` file | `string` | defaults.DEFAULT_FILE |
|
||||
| `Default value` options | `BaseDbOptions` | {} |
|
||||
| `Default value` options | [BaseDbOptions](../modules/_types_.md#basedboptions) | {} |
|
||||
|
||||
**Returns:** [FileFlatDb](_fileflatdb_index_.fileflatdb.md)
|
||||
|
||||
@@ -38,7 +38,9 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:56](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L56)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[close](../interfaces/_types_.basedb.md#close)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:56](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L56)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -49,7 +51,9 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:102](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L102)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[del](../interfaces/_types_.basedb.md#del)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:102](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L102)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -66,7 +70,9 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:66](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L66)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[drop](../interfaces/_types_.basedb.md#drop)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:66](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L66)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -77,7 +83,9 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:72](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L72)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[empty](../interfaces/_types_.basedb.md#empty)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:72](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L72)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -88,7 +96,9 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:106](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L106)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[get](../interfaces/_types_.basedb.md#get)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:106](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L106)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -103,15 +113,17 @@ ___
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:94](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L94)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[maintain](../interfaces/_types_.basedb.md#maintain)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:94](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L94)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -122,7 +134,9 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:46](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L46)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[open](../interfaces/_types_.basedb.md#open)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:46](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L46)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -133,7 +147,9 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:124](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L124)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[put](../interfaces/_types_.basedb.md#put)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:124](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L124)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -151,7 +167,9 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:83](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L83)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[rename](../interfaces/_types_.basedb.md#rename)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:83](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L83)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -169,7 +187,9 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:79](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/index.ts#L79)*
|
||||
*Implementation of [BaseDb](../interfaces/_types_.basedb.md).[size](../interfaces/_types_.basedb.md#size)*
|
||||
|
||||
*Defined in [FileFlatDb/index.ts:79](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/index.ts#L79)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ memoryDb.close();
|
||||
|
||||
# Implements
|
||||
|
||||
* `TxDb`
|
||||
* [TxDb](../interfaces/_types_.txdb.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -68,17 +68,17 @@ memoryDb.close();
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new Memory**(options?: *`BaseDbOptions`*): [Memory](_memory_.memory.md)
|
||||
⊕ **new Memory**(options?: *[BaseDbOptions](../modules/_types_.md#basedboptions)*): [Memory](_memory_.memory.md)
|
||||
|
||||
*Overrides [TransactionDb](_engines_transactiondb_.transactiondb.md).[constructor](_engines_transactiondb_.transactiondb.md#constructor)*
|
||||
|
||||
*Defined in [Memory.ts:66](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/Memory.ts#L66)*
|
||||
*Defined in [Memory.ts:66](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/Memory.ts#L66)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` options | `BaseDbOptions` |
|
||||
| `Optional` options | [BaseDbOptions](../modules/_types_.md#basedboptions) |
|
||||
|
||||
**Returns:** [Memory](_memory_.memory.md)
|
||||
|
||||
@@ -92,9 +92,11 @@ ___
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[close](../interfaces/_types_.txdb.md#close)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[close](_engines_transactiondb_.transactiondb.md#close)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
*Defined in [engines/TransactionDb.ts:51](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L51)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -105,9 +107,11 @@ ___
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[del](../interfaces/_types_.txdb.md#del)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[del](_engines_transactiondb_.transactiondb.md#del)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
*Defined in [engines/TransactionDb.ts:81](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L81)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -124,9 +128,11 @@ ___
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[drop](../interfaces/_types_.txdb.md#drop)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[drop](_engines_transactiondb_.transactiondb.md#drop)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
*Defined in [engines/TransactionDb.ts:59](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L59)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -137,9 +143,11 @@ ___
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[empty](../interfaces/_types_.txdb.md#empty)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[empty](_engines_transactiondb_.transactiondb.md#empty)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
*Defined in [engines/TransactionDb.ts:63](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L63)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -150,9 +158,11 @@ ___
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[get](../interfaces/_types_.txdb.md#get)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[get](_engines_transactiondb_.transactiondb.md#get)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
*Defined in [engines/TransactionDb.ts:93](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L93)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -167,17 +177,19 @@ ___
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *`ProgressCb`*): `void`
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[maintain](../interfaces/_types_.txdb.md#maintain)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[maintain](_engines_transactiondb_.transactiondb.md#maintain)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
*Defined in [engines/TransactionDb.ts:71](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L71)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `ProgressCb` |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -188,9 +200,11 @@ ___
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[open](../interfaces/_types_.txdb.md#open)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[open](_engines_transactiondb_.transactiondb.md#open)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
*Defined in [engines/TransactionDb.ts:55](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L55)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -201,9 +215,11 @@ ___
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[put](../interfaces/_types_.txdb.md#put)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[put](_engines_transactiondb_.transactiondb.md#put)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
*Defined in [engines/TransactionDb.ts:107](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L107)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -221,9 +237,11 @@ ___
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[rename](../interfaces/_types_.txdb.md#rename)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[rename](_engines_transactiondb_.transactiondb.md#rename)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
*Defined in [engines/TransactionDb.ts:67](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L67)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -241,9 +259,11 @@ ___
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Implementation of [TxDb](../interfaces/_types_.txdb.md).[size](../interfaces/_types_.txdb.md#size)*
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[size](_engines_transactiondb_.transactiondb.md#size)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
*Defined in [engines/TransactionDb.ts:77](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L77)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -256,7 +276,7 @@ ___
|
||||
|
||||
*Inherited from [TransactionDb](_engines_transactiondb_.transactiondb.md).[transaction](_engines_transactiondb_.transactiondb.md#transaction)*
|
||||
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
*Defined in [engines/TransactionDb.ts:29](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/engines/TransactionDb.ts#L29)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
**BRANCH**: = 1
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:7](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/types.ts#L7)*
|
||||
*Defined in [FileFlatDb/types.ts:7](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/types.ts#L7)*
|
||||
|
||||
___
|
||||
<a id="empty"></a>
|
||||
@@ -27,7 +27,7 @@ ___
|
||||
|
||||
**EMPTY**: = 0
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:6](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/types.ts#L6)*
|
||||
*Defined in [FileFlatDb/types.ts:6](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/types.ts#L6)*
|
||||
|
||||
___
|
||||
<a id="leaf"></a>
|
||||
@@ -36,7 +36,7 @@ ___
|
||||
|
||||
**LEAF**: = 2
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:8](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/types.ts#L8)*
|
||||
*Defined in [FileFlatDb/types.ts:8](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/types.ts#L8)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
**BaseDb**
|
||||
|
||||
↳ [TxDb](_types_.txdb.md)
|
||||
|
||||
# Implemented by
|
||||
|
||||
* [FileFlatDb](../classes/_fileflatdb_index_.fileflatdb.md)
|
||||
* [FileTreeDb](../classes/_engines_filetreedb_.filetreedb.md)
|
||||
* [LruDb](../classes/_engines_lrudb_.lrudb.md)
|
||||
* [MemoryDb](../classes/_engines_memorydb_.memorydb.md)
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="close"></a>
|
||||
|
||||
## close
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L18)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="del"></a>
|
||||
|
||||
## del
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [types.ts:26](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L26)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="drop"></a>
|
||||
|
||||
## drop
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L20)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="empty"></a>
|
||||
|
||||
## empty
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Defined in [types.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L21)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Defined in [types.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
**Returns:** `Uint8Array` | `null`
|
||||
|
||||
___
|
||||
<a id="maintain"></a>
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Defined in [types.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="open"></a>
|
||||
|
||||
## open
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Defined in [types.ts:19](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L19)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="put"></a>
|
||||
|
||||
## put
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [types.ts:28](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L28)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="rename"></a>
|
||||
|
||||
## rename
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Defined in [types.ts:23](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L23)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="size"></a>
|
||||
|
||||
## size
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Defined in [types.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L24)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,196 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
[BaseDb](_types_.basedb.md)
|
||||
|
||||
**↳ TxDb**
|
||||
|
||||
# Implemented by
|
||||
|
||||
* [DiskDb](../classes/_disk_.diskdb.md)
|
||||
* [Memory](../classes/_memory_.memory.md)
|
||||
* [TransactionDb](../classes/_engines_transactiondb_.transactiondb.md)
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="close"></a>
|
||||
|
||||
## close
|
||||
|
||||
▸ **close**(): `void`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[close](_types_.basedb.md#close)*
|
||||
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L18)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="del"></a>
|
||||
|
||||
## del
|
||||
|
||||
▸ **del**(key: *`Uint8Array`*): `void`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[del](_types_.basedb.md#del)*
|
||||
|
||||
*Defined in [types.ts:26](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L26)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="drop"></a>
|
||||
|
||||
## drop
|
||||
|
||||
▸ **drop**(): `void`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[drop](_types_.basedb.md#drop)*
|
||||
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L20)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="empty"></a>
|
||||
|
||||
## empty
|
||||
|
||||
▸ **empty**(): `void`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[empty](_types_.basedb.md#empty)*
|
||||
|
||||
*Defined in [types.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L21)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(key: *`Uint8Array`*): `Uint8Array` | `null`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[get](_types_.basedb.md#get)*
|
||||
|
||||
*Defined in [types.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
|
||||
**Returns:** `Uint8Array` | `null`
|
||||
|
||||
___
|
||||
<a id="maintain"></a>
|
||||
|
||||
## maintain
|
||||
|
||||
▸ **maintain**(fn: *[ProgressCb](../modules/_types_.md#progresscb)*): `void`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[maintain](_types_.basedb.md#maintain)*
|
||||
|
||||
*Defined in [types.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | [ProgressCb](../modules/_types_.md#progresscb) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="open"></a>
|
||||
|
||||
## open
|
||||
|
||||
▸ **open**(): `void`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[open](_types_.basedb.md#open)*
|
||||
|
||||
*Defined in [types.ts:19](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L19)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="put"></a>
|
||||
|
||||
## put
|
||||
|
||||
▸ **put**(key: *`Uint8Array`*, value: *`Uint8Array`*): `void`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[put](_types_.basedb.md#put)*
|
||||
|
||||
*Defined in [types.ts:28](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L28)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` |
|
||||
| value | `Uint8Array` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="rename"></a>
|
||||
|
||||
## rename
|
||||
|
||||
▸ **rename**(base: *`string`*, file: *`string`*): `void`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[rename](_types_.basedb.md#rename)*
|
||||
|
||||
*Defined in [types.ts:23](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L23)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| base | `string` |
|
||||
| file | `string` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="size"></a>
|
||||
|
||||
## size
|
||||
|
||||
▸ **size**(): `number`
|
||||
|
||||
*Inherited from [BaseDb](_types_.basedb.md).[size](_types_.basedb.md#size)*
|
||||
|
||||
*Defined in [types.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L24)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
___
|
||||
<a id="transaction"></a>
|
||||
|
||||
## transaction
|
||||
|
||||
▸ **transaction**(fn: *`function`*): `boolean`
|
||||
|
||||
*Defined in [types.ts:32](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L32)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| fn | `function` |
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
___
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
**Ƭ Key**: *`object`*
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:16](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/types.ts#L16)*
|
||||
*Defined in [FileFlatDb/types.ts:16](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/types.ts#L16)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -33,7 +33,7 @@ ___
|
||||
|
||||
**Ƭ NibbleBuffer**: *`object`*
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:11](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/types.ts#L11)*
|
||||
*Defined in [FileFlatDb/types.ts:11](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/types.ts#L11)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -44,7 +44,7 @@ ___
|
||||
|
||||
**Ƭ Value**: *`object`*
|
||||
|
||||
*Defined in [FileFlatDb/types.ts:22](https://github.com/polkadot-js/common/blob/dc996ef/packages/db/src/FileFlatDb/types.ts#L22)*
|
||||
*Defined in [FileFlatDb/types.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/FileFlatDb/types.ts#L22)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Interfaces
|
||||
|
||||
* [BaseDb](../interfaces/_types_.basedb.md)
|
||||
* [TxDb](../interfaces/_types_.txdb.md)
|
||||
|
||||
### Type aliases
|
||||
|
||||
* [BaseDbOptions](_types_.md#basedboptions)
|
||||
* [ProgressCb](_types_.md#progresscb)
|
||||
* [ProgressValue](_types_.md#progressvalue)
|
||||
|
||||
---
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="basedboptions"></a>
|
||||
|
||||
## BaseDbOptions
|
||||
|
||||
**Ƭ BaseDbOptions**: *`object`*
|
||||
|
||||
*Defined in [types.ts:13](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L13)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
<a id="progresscb"></a>
|
||||
|
||||
## ProgressCb
|
||||
|
||||
**Ƭ ProgressCb**: *`function`*
|
||||
|
||||
*Defined in [types.ts:11](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L11)*
|
||||
|
||||
#### Type declaration
|
||||
▸(progress: *[ProgressValue](_types_.md#progressvalue)*): `void`
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| progress | [ProgressValue](_types_.md#progressvalue) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="progressvalue"></a>
|
||||
|
||||
## ProgressValue
|
||||
|
||||
**Ƭ ProgressValue**: *`object`*
|
||||
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L5)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
|
||||
@@ -393,7 +393,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Create Account","level":"2.1.1","depth":2,"next":{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]},"previous":{"title":"Keyring","level":"2.1","depth":1,"path":"examples/keyring/README.md","ref":"examples/keyring/README.md","articles":[{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/keyring/01_create_account/README.md","mtime":"2018-11-29T10:08:46.329Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Create Account","level":"2.1.1","depth":2,"next":{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]},"previous":{"title":"Keyring","level":"2.1","depth":1,"path":"examples/keyring/README.md","ref":"examples/keyring/README.md","articles":[{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/keyring/01_create_account/README.md","mtime":"2018-11-29T10:55:29.156Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -405,7 +405,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Load Accounts","level":"2.1.2","depth":2,"next":{"title":"Util-Crypto","level":"2.2","depth":1,"path":"examples/util-crypto/README.md","ref":"examples/util-crypto/README.md","articles":[{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]}]},"previous":{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/keyring/02_load_accounts/README.md","mtime":"2018-11-29T10:08:46.329Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Load Accounts","level":"2.1.2","depth":2,"next":{"title":"Util-Crypto","level":"2.2","depth":1,"path":"examples/util-crypto/README.md","ref":"examples/util-crypto/README.md","articles":[{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]}]},"previous":{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/keyring/02_load_accounts/README.md","mtime":"2018-11-29T10:55:29.156Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -378,7 +378,7 @@ yarn start
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Keyring","level":"2.1","depth":1,"next":{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},"previous":{"title":"util-crypto","level":"1.6","depth":1,"path":"util-crypto/README.md","ref":"util-crypto/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/keyring/README.md","mtime":"2018-11-29T10:08:46.329Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Keyring","level":"2.1","depth":1,"next":{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},"previous":{"title":"util-crypto","level":"1.6","depth":1,"path":"util-crypto/README.md","ref":"util-crypto/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/keyring/README.md","mtime":"2018-11-29T10:55:29.156Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -397,7 +397,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"next":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},"previous":{"title":"Util-Crypto","level":"2.2","depth":1,"path":"examples/util-crypto/README.md","ref":"examples/util-crypto/README.md","articles":[{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","mtime":"2018-11-29T10:08:46.329Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"next":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},"previous":{"title":"Util-Crypto","level":"2.2","depth":1,"path":"examples/util-crypto/README.md","ref":"examples/util-crypto/README.md","articles":[{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","mtime":"2018-11-29T10:55:29.156Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -403,7 +403,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"next":{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]},"previous":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","mtime":"2018-11-29T10:08:46.329Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"next":{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","ref":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","articles":[]},"previous":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","mtime":"2018-11-29T10:55:29.160Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -392,7 +392,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"previous":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","mtime":"2018-11-29T10:08:46.329Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"../../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Create & Validate Mnemonic","level":"2.2.3","depth":2,"previous":{"title":"Sign & Verify Message","level":"2.2.2","depth":2,"path":"examples/util-crypto/02_sign_verify_message_nacl/README.md","ref":"examples/util-crypto/02_sign_verify_message_nacl/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/util-crypto/03_mnemonic_generate_validate_bip39/README.md","mtime":"2018-11-29T10:55:29.160Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"../../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -378,7 +378,7 @@ yarn start
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Util-Crypto","level":"2.2","depth":1,"next":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},"previous":{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/util-crypto/README.md","mtime":"2018-11-29T10:08:46.333Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Util-Crypto","level":"2.2","depth":1,"next":{"title":"Encrypt & Decrypt Message","level":"2.2.1","depth":2,"path":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","ref":"examples/util-crypto/01_encrypt_decrypt_message_nacl/README.md","articles":[]},"previous":{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"examples/util-crypto/README.md","mtime":"2018-11-29T10:55:29.160Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -415,7 +415,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"keyring","level":"1.2","depth":1,"path":"keyring/README.md","ref":"keyring/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"README.md","mtime":"2018-11-29T10:08:46.329Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":".","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"keyring","level":"1.2","depth":1,"path":"keyring/README.md","ref":"keyring/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"README.md","mtime":"2018-11-29T10:55:29.156Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":".","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* ["address/encode"](modules/_address_encode_.md)
|
||||
* ["address/index"](modules/_address_index_.md)
|
||||
* ["address/setPrefix"](modules/_address_setprefix_.md)
|
||||
* ["address/types"](modules/_address_types_.md)
|
||||
* ["index"](modules/_index_.md)
|
||||
* [Keyring](classes/_index_.keyring.md)
|
||||
* ["pair/decode"](modules/_pair_decode_.md)
|
||||
@@ -13,7 +14,11 @@
|
||||
* ["pair/nobody"](modules/_pair_nobody_.md)
|
||||
* ["pair/setMeta"](modules/_pair_setmeta_.md)
|
||||
* ["pair/toJson"](modules/_pair_tojson_.md)
|
||||
* ["pair/types"](modules/_pair_types_.md)
|
||||
* ["pairs"](modules/_pairs_.md)
|
||||
* [Pairs](classes/_pairs_.pairs.md)
|
||||
* ["testing"](modules/_testing_.md)
|
||||
* ["testingPairs"](modules/_testingpairs_.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
* [KeyringInstance](interfaces/_types_.keyringinstance.md)
|
||||
* [KeyringPairs](interfaces/_types_.keyringpairs.md)
|
||||
|
||||
@@ -19,7 +19,7 @@ Overview
|
||||
|
||||
# Implements
|
||||
|
||||
* `KeyringInstance`
|
||||
* [KeyringInstance](../interfaces/_types_.keyringinstance.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -29,7 +29,7 @@ Overview
|
||||
|
||||
⊕ **new Keyring**(): [Keyring](_index_.keyring.md)
|
||||
|
||||
*Defined in [index.ts:33](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L33)*
|
||||
*Defined in [index.ts:33](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L33)*
|
||||
|
||||
**Returns:** [Keyring](_index_.keyring.md)
|
||||
|
||||
@@ -43,7 +43,9 @@ ___
|
||||
|
||||
**● decodeAddress**: *[decode](../modules/_address_decode_.md#decode)* = decodeAddress
|
||||
|
||||
*Defined in [index.ts:39](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L39)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[decodeAddress](../interfaces/_types_.keyringinstance.md#decodeaddress)*
|
||||
|
||||
*Defined in [index.ts:39](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L39)*
|
||||
|
||||
___
|
||||
<a id="encodeaddress"></a>
|
||||
@@ -52,7 +54,9 @@ ___
|
||||
|
||||
**● encodeAddress**: *[encode](../modules/_address_encode_.md#encode)* = encodeAddress
|
||||
|
||||
*Defined in [index.ts:40](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L40)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[encodeAddress](../interfaces/_types_.keyringinstance.md#encodeaddress)*
|
||||
|
||||
*Defined in [index.ts:40](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L40)*
|
||||
|
||||
___
|
||||
<a id="setaddressprefix"></a>
|
||||
@@ -61,7 +65,9 @@ ___
|
||||
|
||||
**● setAddressPrefix**: *[setPrefix](../modules/_address_setprefix_.md#setprefix)* = setAddressPrefix
|
||||
|
||||
*Defined in [index.ts:41](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L41)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[setAddressPrefix](../interfaces/_types_.keyringinstance.md#setaddressprefix)*
|
||||
|
||||
*Defined in [index.ts:41](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L41)*
|
||||
|
||||
___
|
||||
|
||||
@@ -71,9 +77,9 @@ ___
|
||||
|
||||
## addFromAddress
|
||||
|
||||
▸ **addFromAddress**(address: * `string` | `Uint8Array`*, meta?: *`KeyringPair$Meta`*, defaultEncoded?: *`Uint8Array`*): `KeyringPair`
|
||||
▸ **addFromAddress**(address: * `string` | `Uint8Array`*, meta?: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*, defaultEncoded?: *`Uint8Array`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [index.ts:61](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L61)*
|
||||
*Defined in [index.ts:61](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L61)*
|
||||
|
||||
*__name__*: addFromAddress
|
||||
|
||||
@@ -88,19 +94,19 @@ ___
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
| `Optional` meta | `KeyringPair$Meta` |
|
||||
| `Optional` meta | [KeyringPair$Meta](../modules/_types_.md#keyringpair_meta) |
|
||||
| `Optional` defaultEncoded | `Uint8Array` |
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="addfromjson"></a>
|
||||
|
||||
## addFromJson
|
||||
|
||||
▸ **addFromJson**(__namedParameters: *`object`*): `KeyringPair`
|
||||
▸ **addFromJson**(__namedParameters: *`object`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [index.ts:76](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L76)*
|
||||
*Defined in [index.ts:76](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L76)*
|
||||
|
||||
*__name__*: addFromJson
|
||||
|
||||
@@ -118,16 +124,18 @@ ___
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="addfrommnemonic"></a>
|
||||
|
||||
## addFromMnemonic
|
||||
|
||||
▸ **addFromMnemonic**(mnemonic: *`string`*, meta?: *`KeyringPair$Meta`*): `KeyringPair`
|
||||
▸ **addFromMnemonic**(mnemonic: *`string`*, meta?: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [index.ts:89](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L89)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[addFromMnemonic](../interfaces/_types_.keyringinstance.md#addfrommnemonic)*
|
||||
|
||||
*Defined in [index.ts:89](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L89)*
|
||||
|
||||
*__name__*: addFromMnemonic
|
||||
|
||||
@@ -142,18 +150,20 @@ ___
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| mnemonic | `string` |
|
||||
| `Optional` meta | `KeyringPair$Meta` |
|
||||
| `Optional` meta | [KeyringPair$Meta](../modules/_types_.md#keyringpair_meta) |
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="addfromseed"></a>
|
||||
|
||||
## addFromSeed
|
||||
|
||||
▸ **addFromSeed**(seed: *`Uint8Array`*, meta?: *`KeyringPair$Meta`*): `KeyringPair`
|
||||
▸ **addFromSeed**(seed: *`Uint8Array`*, meta?: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [index.ts:118](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L118)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[addFromSeed](../interfaces/_types_.keyringinstance.md#addfromseed)*
|
||||
|
||||
*Defined in [index.ts:118](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L118)*
|
||||
|
||||
*__name__*: addFromSeed
|
||||
|
||||
@@ -185,18 +195,20 @@ Refer to an actual implementation in [Polkadot-JS ui-keyring > account > create]
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| seed | `Uint8Array` |
|
||||
| `Optional` meta | `KeyringPair$Meta` |
|
||||
| `Optional` meta | [KeyringPair$Meta](../modules/_types_.md#keyringpair_meta) |
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="addpair"></a>
|
||||
|
||||
## addPair
|
||||
|
||||
▸ **addPair**(pair: *`KeyringPair`*): `KeyringPair`
|
||||
▸ **addPair**(pair: *[KeyringPair](../modules/_types_.md#keyringpair)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [index.ts:48](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L48)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[addPair](../interfaces/_types_.keyringinstance.md#addpair)*
|
||||
|
||||
*Defined in [index.ts:48](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L48)*
|
||||
|
||||
*__name__*: addPair
|
||||
|
||||
@@ -208,18 +220,20 @@ ___
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pair | `KeyringPair` |
|
||||
| pair | [KeyringPair](../modules/_types_.md#keyringpair) |
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="getpair"></a>
|
||||
|
||||
## getPair
|
||||
|
||||
▸ **getPair**(address: * `string` | `Uint8Array`*): `KeyringPair`
|
||||
▸ **getPair**(address: * `string` | `Uint8Array`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [index.ts:154](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L154)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[getPair](../interfaces/_types_.keyringinstance.md#getpair)*
|
||||
|
||||
*Defined in [index.ts:154](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L154)*
|
||||
|
||||
*__name__*: getPair
|
||||
|
||||
@@ -260,16 +274,18 @@ console.log(`Are all pairs the same? : ` +
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="getpairs"></a>
|
||||
|
||||
## getPairs
|
||||
|
||||
▸ **getPairs**(): `Array`<`KeyringPair`>
|
||||
▸ **getPairs**(): `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
*Defined in [index.ts:186](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L186)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[getPairs](../interfaces/_types_.keyringinstance.md#getpairs)*
|
||||
|
||||
*Defined in [index.ts:186](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L186)*
|
||||
|
||||
*__name__*: getPairs
|
||||
|
||||
@@ -301,7 +317,7 @@ keyring
|
||||
|
||||
Refer to an actual implementation in [Polkadot-JS ui-keyring > loadAll](https://github.com/polkadot-js/apps/blob/master/packages/ui-keyring/src/loadAll.ts)
|
||||
|
||||
**Returns:** `Array`<`KeyringPair`>
|
||||
**Returns:** `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
___
|
||||
<a id="getpublickeys"></a>
|
||||
@@ -310,7 +326,9 @@ ___
|
||||
|
||||
▸ **getPublicKeys**(): `Array`<`Uint8Array`>
|
||||
|
||||
*Defined in [index.ts:196](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L196)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[getPublicKeys](../interfaces/_types_.keyringinstance.md#getpublickeys)*
|
||||
|
||||
*Defined in [index.ts:196](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L196)*
|
||||
|
||||
*__name__*: getPublicKeys
|
||||
|
||||
@@ -329,7 +347,9 @@ ___
|
||||
|
||||
▸ **removePair**(address: * `string` | `Uint8Array`*): `void`
|
||||
|
||||
*Defined in [index.ts:211](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L211)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[removePair](../interfaces/_types_.keyringinstance.md#removepair)*
|
||||
|
||||
*Defined in [index.ts:211](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L211)*
|
||||
|
||||
*__name__*: removePair
|
||||
|
||||
@@ -352,9 +372,11 @@ ___
|
||||
|
||||
## toJson
|
||||
|
||||
▸ **toJson**(address: * `string` | `Uint8Array`*, passphrase?: * `undefined` | `string`*): `KeyringPair$Json`
|
||||
▸ **toJson**(address: * `string` | `Uint8Array`*, passphrase?: * `undefined` | `string`*): [KeyringPair$Json](../modules/_types_.md#keyringpair_json)
|
||||
|
||||
*Defined in [index.ts:226](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/index.ts#L226)*
|
||||
*Implementation of [KeyringInstance](../interfaces/_types_.keyringinstance.md).[toJson](../interfaces/_types_.keyringinstance.md#tojson)*
|
||||
|
||||
*Defined in [index.ts:226](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/index.ts#L226)*
|
||||
|
||||
*__name__*: toJson
|
||||
|
||||
@@ -373,7 +395,7 @@ ___
|
||||
| address | `string` | `Uint8Array`|
|
||||
| `Optional` passphrase | `undefined` | `string`|
|
||||
|
||||
**Returns:** `KeyringPair$Json`
|
||||
**Returns:** [KeyringPair$Json](../modules/_types_.md#keyringpair_json)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# Implements
|
||||
|
||||
* `KeyringPairs`
|
||||
* [KeyringPairs](../interfaces/_types_.keyringpairs.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
⊕ **new Pairs**(): [Pairs](_pairs_.pairs.md)
|
||||
|
||||
*Defined in [pairs.ts:17](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pairs.ts#L17)*
|
||||
*Defined in [pairs.ts:17](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pairs.ts#L17)*
|
||||
|
||||
**Returns:** [Pairs](_pairs_.pairs.md)
|
||||
|
||||
@@ -28,37 +28,37 @@ ___
|
||||
|
||||
## add
|
||||
|
||||
▸ **add**(pair: *`KeyringPair`*): `KeyringPair`
|
||||
▸ **add**(pair: *[KeyringPair](../modules/_types_.md#keyringpair)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [pairs.ts:23](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pairs.ts#L23)*
|
||||
*Defined in [pairs.ts:23](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pairs.ts#L23)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pair | `KeyringPair` |
|
||||
| pair | [KeyringPair](../modules/_types_.md#keyringpair) |
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="all"></a>
|
||||
|
||||
## all
|
||||
|
||||
▸ **all**(): `Array`<`KeyringPair`>
|
||||
▸ **all**(): `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
*Defined in [pairs.ts:30](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pairs.ts#L30)*
|
||||
*Defined in [pairs.ts:30](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pairs.ts#L30)*
|
||||
|
||||
**Returns:** `Array`<`KeyringPair`>
|
||||
**Returns:** `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(address: * `string` | `Uint8Array`*): `KeyringPair`
|
||||
▸ **get**(address: * `string` | `Uint8Array`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [pairs.ts:34](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pairs.ts#L34)*
|
||||
*Defined in [pairs.ts:34](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pairs.ts#L34)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -66,7 +66,7 @@ ___
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="remove"></a>
|
||||
@@ -75,7 +75,7 @@ ___
|
||||
|
||||
▸ **remove**(address: * `string` | `Uint8Array`*): `void`
|
||||
|
||||
*Defined in [pairs.ts:49](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pairs.ts#L49)*
|
||||
*Defined in [pairs.ts:49](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pairs.ts#L49)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -397,7 +397,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"keyring","level":"1.2","depth":1,"next":{"title":"trie-db","level":"1.3","depth":1,"path":"trie-db/README.md","ref":"trie-db/README.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"keyring/README.md","mtime":"2018-11-29T10:11:28.636Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"keyring","level":"1.2","depth":1,"next":{"title":"trie-db","level":"1.3","depth":1,"path":"trie-db/README.md","ref":"trie-db/README.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"keyring/README.md","mtime":"2018-11-29T10:58:23.675Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,226 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
**KeyringInstance**
|
||||
|
||||
# Implemented by
|
||||
|
||||
* [Keyring](../classes/_index_.keyring.md)
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="addfromaddress"></a>
|
||||
|
||||
## addFromAddress
|
||||
|
||||
▸ **addFromAddress**(address: * `string` | `Uint8Array`*, meta?: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:49](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L49)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
| `Optional` meta | [KeyringPair$Meta](../modules/_types_.md#keyringpair_meta) |
|
||||
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="addfromjson"></a>
|
||||
|
||||
## addFromJson
|
||||
|
||||
▸ **addFromJson**(pair: *[KeyringPair$Json](../modules/_types_.md#keyringpair_json)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:52](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L52)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pair | [KeyringPair$Json](../modules/_types_.md#keyringpair_json) |
|
||||
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="addfrommnemonic"></a>
|
||||
|
||||
## addFromMnemonic
|
||||
|
||||
▸ **addFromMnemonic**(mnemonic: *`string`*, meta?: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:50](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L50)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| mnemonic | `string` |
|
||||
| `Optional` meta | [KeyringPair$Meta](../modules/_types_.md#keyringpair_meta) |
|
||||
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="addfromseed"></a>
|
||||
|
||||
## addFromSeed
|
||||
|
||||
▸ **addFromSeed**(seed: *`Uint8Array`*, meta?: *[KeyringPair$Meta](../modules/_types_.md#keyringpair_meta)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:51](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L51)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| seed | `Uint8Array` |
|
||||
| `Optional` meta | [KeyringPair$Meta](../modules/_types_.md#keyringpair_meta) |
|
||||
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="addpair"></a>
|
||||
|
||||
## addPair
|
||||
|
||||
▸ **addPair**(pair: *[KeyringPair](../modules/_types_.md#keyringpair)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:48](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L48)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pair | [KeyringPair](../modules/_types_.md#keyringpair) |
|
||||
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="decodeaddress"></a>
|
||||
|
||||
## decodeAddress
|
||||
|
||||
▸ **decodeAddress**(encoded: * `string` | `Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [types.ts:44](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L44)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| encoded | `string` | `Uint8Array`|
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
___
|
||||
<a id="encodeaddress"></a>
|
||||
|
||||
## encodeAddress
|
||||
|
||||
▸ **encodeAddress**(key: * `Uint8Array` | `string`*): `string`
|
||||
|
||||
*Defined in [types.ts:45](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L45)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` | `string`|
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="getpair"></a>
|
||||
|
||||
## getPair
|
||||
|
||||
▸ **getPair**(address: * `string` | `Uint8Array`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
*Defined in [types.ts:53](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L53)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="getpairs"></a>
|
||||
|
||||
## getPairs
|
||||
|
||||
▸ **getPairs**(): `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
*Defined in [types.ts:54](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L54)*
|
||||
|
||||
**Returns:** `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
___
|
||||
<a id="getpublickeys"></a>
|
||||
|
||||
## getPublicKeys
|
||||
|
||||
▸ **getPublicKeys**(): `Array`<`Uint8Array`>
|
||||
|
||||
*Defined in [types.ts:55](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L55)*
|
||||
|
||||
**Returns:** `Array`<`Uint8Array`>
|
||||
|
||||
___
|
||||
<a id="removepair"></a>
|
||||
|
||||
## removePair
|
||||
|
||||
▸ **removePair**(address: * `string` | `Uint8Array`*): `void`
|
||||
|
||||
*Defined in [types.ts:56](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L56)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="setaddressprefix"></a>
|
||||
|
||||
## setAddressPrefix
|
||||
|
||||
▸ **setAddressPrefix**(prefix: *[Prefix](../modules/_address_types_.md#prefix)*): `void`
|
||||
|
||||
*Defined in [types.ts:46](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L46)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| prefix | [Prefix](../modules/_address_types_.md#prefix) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="tojson"></a>
|
||||
|
||||
## toJson
|
||||
|
||||
▸ **toJson**(address: * `string` | `Uint8Array`*, passphrase?: * `undefined` | `string`*): [KeyringPair$Json](../modules/_types_.md#keyringpair_json)
|
||||
|
||||
*Defined in [types.ts:57](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L57)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
| `Optional` passphrase | `undefined` | `string`|
|
||||
|
||||
**Returns:** [KeyringPair$Json](../modules/_types_.md#keyringpair_json)
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
**KeyringPairs**
|
||||
|
||||
# Implemented by
|
||||
|
||||
* [Pairs](../classes/_pairs_.pairs.md)
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="add"></a>
|
||||
|
||||
## add
|
||||
|
||||
**● add**: *`function`*
|
||||
|
||||
*Defined in [types.ts:37](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L37)*
|
||||
|
||||
#### Type declaration
|
||||
▸(pair: *[KeyringPair](../modules/_types_.md#keyringpair)*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| pair | [KeyringPair](../modules/_types_.md#keyringpair) |
|
||||
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="all"></a>
|
||||
|
||||
## all
|
||||
|
||||
**● all**: *`function`*
|
||||
|
||||
*Defined in [types.ts:38](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L38)*
|
||||
|
||||
#### Type declaration
|
||||
▸(): `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
**Returns:** `Array`<[KeyringPair](../modules/_types_.md#keyringpair)>
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
**● get**: *`function`*
|
||||
|
||||
*Defined in [types.ts:39](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L39)*
|
||||
|
||||
#### Type declaration
|
||||
▸(address: * `string` | `Uint8Array`*): [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
**Returns:** [KeyringPair](../modules/_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
<a id="remove"></a>
|
||||
|
||||
## remove
|
||||
|
||||
**● remove**: *`function`*
|
||||
|
||||
*Defined in [types.ts:40](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L40)*
|
||||
|
||||
#### Type declaration
|
||||
▸(address: * `string` | `Uint8Array`*): `void`
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `string` | `Uint8Array`|
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
## decode
|
||||
|
||||
▸ **decode**(encoded: * `string` | `Uint8Array`*, prefix?: *`Prefix`*): `Uint8Array`
|
||||
▸ **decode**(encoded: * `string` | `Uint8Array`*, prefix?: *[Prefix](_address_types_.md#prefix)*): `Uint8Array`
|
||||
|
||||
*Defined in [address/decode.ts:15](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/address/decode.ts#L15)*
|
||||
*Defined in [address/decode.ts:15](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/address/decode.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| encoded | `string` | `Uint8Array`| - |
|
||||
| `Default value` prefix | `Prefix` | defaults.prefix |
|
||||
| `Default value` prefix | [Prefix](_address_types_.md#prefix) | defaults.prefix |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
## encode
|
||||
|
||||
▸ **encode**(_key: * `Uint8Array` | `string`*, prefix?: *`Prefix`*): `string`
|
||||
▸ **encode**(_key: * `Uint8Array` | `string`*, prefix?: *[Prefix](_address_types_.md#prefix)*): `string`
|
||||
|
||||
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/address/encode.ts#L15)*
|
||||
*Defined in [address/encode.ts:15](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/address/encode.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| _key | `Uint8Array` | `string`| - |
|
||||
| `Default value` prefix | `Prefix` | defaults.prefix |
|
||||
| `Default value` prefix | [Prefix](_address_types_.md#prefix) | defaults.prefix |
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
|
||||
## setPrefix
|
||||
|
||||
▸ **setPrefix**(prefix: *`Prefix`*): `void`
|
||||
▸ **setPrefix**(prefix: *[Prefix](_address_types_.md#prefix)*): `void`
|
||||
|
||||
*Defined in [address/setPrefix.ts:9](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/address/setPrefix.ts#L9)*
|
||||
*Defined in [address/setPrefix.ts:9](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/address/setPrefix.ts#L9)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| prefix | `Prefix` |
|
||||
| prefix | [Prefix](_address_types_.md#prefix) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="prefix"></a>
|
||||
|
||||
## Prefix
|
||||
|
||||
**Ƭ Prefix**: * `0` | `1` | `42` | `43` | `68` | `69`
|
||||
*
|
||||
|
||||
*Defined in [address/types.ts:5](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/address/types.ts#L5)*
|
||||
|
||||
___
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **decode**(passphrase?: * `undefined` | `string`*, _encrypted?: *`Uint8Array`*): `object`
|
||||
|
||||
*Defined in [pair/decode.ts:15](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pair/decode.ts#L15)*
|
||||
*Defined in [pair/decode.ts:15](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pair/decode.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encode**(secretKey: *`Uint8Array`*, passphrase?: * `undefined` | `string`*): `Uint8Array`
|
||||
|
||||
*Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pair/encode.ts#L10)*
|
||||
*Defined in [pair/encode.ts:10](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pair/encode.ts#L10)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -6,17 +6,17 @@
|
||||
|
||||
## getMeta
|
||||
|
||||
▸ **getMeta**(state: *`PairState`*): `KeyringPair$Meta`
|
||||
▸ **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/dc996ef/packages/keyring/src/pair/getMeta.ts#L8)*
|
||||
*Defined in [pair/getMeta.ts:8](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pair/getMeta.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| state | `PairState` |
|
||||
| state | [PairState](_pair_types_.md#pairstate) |
|
||||
|
||||
**Returns:** `KeyringPair$Meta`
|
||||
**Returns:** [KeyringPair$Meta](_types_.md#keyringpair_meta)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## pair
|
||||
|
||||
▸ **pair**(__namedParameters: *`object`*, meta?: *`KeyringPair$Meta`*, defaultEncoded?: *`Uint8Array`*): `KeyringPair`
|
||||
▸ **pair**(__namedParameters: *`object`*, meta?: *[KeyringPair$Meta](_types_.md#keyringpair_meta)*, defaultEncoded?: *`Uint8Array`*): [KeyringPair](_types_.md#keyringpair)
|
||||
|
||||
*Defined in [pair/index.ts:50](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pair/index.ts#L50)*
|
||||
*Defined in [pair/index.ts:50](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pair/index.ts#L50)*
|
||||
|
||||
*__name__*: pair
|
||||
|
||||
@@ -33,10 +33,10 @@ It has properties whose values are functions that may be called to perform accou
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| __namedParameters | `object` | - |
|
||||
| `Default value` meta | `KeyringPair$Meta` | {} |
|
||||
| `Default value` meta | [KeyringPair$Meta](_types_.md#keyringpair_meta) | {} |
|
||||
| `Optional` defaultEncoded | `Uint8Array` | - |
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
## everybody
|
||||
|
||||
▸ **everybody**(): `KeyringPair`
|
||||
▸ **everybody**(): [KeyringPair](_types_.md#keyringpair)
|
||||
|
||||
*Defined in [pair/nobody.ts:25](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/pair/nobody.ts#L25)*
|
||||
*Defined in [pair/nobody.ts:25](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pair/nobody.ts#L25)*
|
||||
|
||||
**Returns:** `KeyringPair`
|
||||
**Returns:** [KeyringPair](_types_.md#keyringpair)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
## setMeta
|
||||
|
||||
▸ **setMeta**(state: *`PairState`*, meta: *`KeyringPair$Meta`*): `void`
|
||||
▸ **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/dc996ef/packages/keyring/src/pair/setMeta.ts#L8)*
|
||||
*Defined in [pair/setMeta.ts:8](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pair/setMeta.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| state | `PairState` |
|
||||
| meta | `KeyringPair$Meta` |
|
||||
| state | [PairState](_pair_types_.md#pairstate) |
|
||||
| meta | [KeyringPair$Meta](_types_.md#keyringpair_meta) |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## toJson
|
||||
|
||||
▸ **toJson**(__namedParameters: *`object`*, encoded: *`Uint8Array`*, isEncrypted: *`boolean`*): `KeyringPair$Json`
|
||||
▸ **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/dc996ef/packages/keyring/src/pair/toJson.ts#L12)*
|
||||
*Defined in [pair/toJson.ts:12](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pair/toJson.ts#L12)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
| encoded | `Uint8Array` |
|
||||
| isEncrypted | `boolean` |
|
||||
|
||||
**Returns:** `KeyringPair$Json`
|
||||
**Returns:** [KeyringPair$Json](_types_.md#keyringpair_json)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="pairstate"></a>
|
||||
|
||||
## PairState
|
||||
|
||||
**Ƭ PairState**: *`object`*
|
||||
|
||||
*Defined in [pair/types.ts:7](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/pair/types.ts#L7)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## testKeyring
|
||||
|
||||
▸ **testKeyring**(): `KeyringInstance`
|
||||
▸ **testKeyring**(): [KeyringInstance](../interfaces/_types_.keyringinstance.md)
|
||||
|
||||
*Defined in [testing.ts:57](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/testing.ts#L57)*
|
||||
*Defined in [testing.ts:57](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/testing.ts#L57)*
|
||||
|
||||
*__name__*: testKeyring
|
||||
|
||||
@@ -33,7 +33,7 @@ const addressAlice = keyring.alice.address();
|
||||
const publicKeyAlice = keyring.alice.publicKey();
|
||||
```
|
||||
|
||||
**Returns:** `KeyringInstance`
|
||||
**Returns:** [KeyringInstance](../interfaces/_types_.keyringinstance.md)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **testKeyringPairs**(): `TestKeyringMap`
|
||||
|
||||
*Defined in [testingPairs.ts:14](https://github.com/polkadot-js/common/blob/dc996ef/packages/keyring/src/testingPairs.ts#L14)*
|
||||
*Defined in [testingPairs.ts:14](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/testingPairs.ts#L14)*
|
||||
|
||||
**Returns:** `TestKeyringMap`
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Interfaces
|
||||
|
||||
* [KeyringInstance](../interfaces/_types_.keyringinstance.md)
|
||||
* [KeyringPairs](../interfaces/_types_.keyringpairs.md)
|
||||
|
||||
### Type aliases
|
||||
|
||||
* [KeyringPair](_types_.md#keyringpair)
|
||||
* [KeyringPair$Json](_types_.md#keyringpair_json)
|
||||
* [KeyringPair$Meta](_types_.md#keyringpair_meta)
|
||||
|
||||
---
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="keyringpair"></a>
|
||||
|
||||
## KeyringPair
|
||||
|
||||
**Ƭ KeyringPair**: *`object`*
|
||||
|
||||
*Defined in [types.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L22)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
<a id="keyringpair_json"></a>
|
||||
|
||||
## KeyringPair$Json
|
||||
|
||||
**Ƭ KeyringPair$Json**: *`object`*
|
||||
|
||||
*Defined in [types.ts:11](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L11)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
<a id="keyringpair_meta"></a>
|
||||
|
||||
## KeyringPair$Meta
|
||||
|
||||
**Ƭ KeyringPair$Meta**: *`object`*
|
||||
|
||||
*Defined in [types.ts:7](https://github.com/polkadot-js/common/blob/e3b45e7/packages/keyring/src/types.ts#L7)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
[index: `string`]: `any`
|
||||
|
||||
___
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
* ["stream/createValue"](modules/_stream_createvalue_.md)
|
||||
* ["stream/endBranch"](modules/_stream_endbranch_.md)
|
||||
* ["stream/index"](modules/_stream_index_.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
* ["util/fromNibbles"](modules/_util_fromnibbles_.md)
|
||||
* ["util/fromNibbles.spec"](modules/_util_fromnibbles_spec_.md)
|
||||
* ["util/fuseNibbles"](modules/_util_fusenibbles_.md)
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
*Inherited from [NibbleHeader](_nodeheader_.nibbleheader.md).[constructor](_nodeheader_.nibbleheader.md#constructor)*
|
||||
|
||||
*Defined in [NodeHeader.ts:21](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L21)*
|
||||
*Defined in [NodeHeader.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L21)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -38,7 +38,7 @@ ___
|
||||
|
||||
*Inherited from [NibbleHeader](_nodeheader_.nibbleheader.md).[toNumber](_nodeheader_.nibbleheader.md#tonumber)*
|
||||
|
||||
*Defined in [NodeHeader.ts:27](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L27)*
|
||||
*Defined in [NodeHeader.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L27)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
*Inherited from [NibbleHeader](_nodeheader_.nibbleheader.md).[constructor](_nodeheader_.nibbleheader.md#constructor)*
|
||||
|
||||
*Defined in [NodeHeader.ts:21](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L21)*
|
||||
*Defined in [NodeHeader.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L21)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -38,7 +38,7 @@ ___
|
||||
|
||||
*Inherited from [NibbleHeader](_nodeheader_.nibbleheader.md).[toNumber](_nodeheader_.nibbleheader.md#tonumber)*
|
||||
|
||||
*Defined in [NodeHeader.ts:27](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L27)*
|
||||
*Defined in [NodeHeader.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L27)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
⊕ **new NibbleHeader**(input: *`number`*): [NibbleHeader](_nodeheader_.nibbleheader.md)
|
||||
|
||||
*Defined in [NodeHeader.ts:21](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L21)*
|
||||
*Defined in [NodeHeader.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L21)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -36,7 +36,7 @@ ___
|
||||
|
||||
▸ **toNumber**(): `number`
|
||||
|
||||
*Defined in [NodeHeader.ts:27](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L27)*
|
||||
*Defined in [NodeHeader.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L27)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
⊕ **new NodeHeader**(input?: * `null` | `Uint8Array` | `Array`< `null` | `Uint8Array`>*): [NodeHeader](_nodeheader_.nodeheader.md)
|
||||
|
||||
*Defined in [NodeHeader.ts:40](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L40)*
|
||||
*Defined in [NodeHeader.ts:40](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L40)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -32,7 +32,7 @@ ___
|
||||
|
||||
getencodedLength(): `number`
|
||||
|
||||
*Defined in [NodeHeader.ts:127](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L127)*
|
||||
*Defined in [NodeHeader.ts:127](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L127)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -43,7 +43,7 @@ ___
|
||||
|
||||
getnodeType(): `number`
|
||||
|
||||
*Defined in [NodeHeader.ts:149](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L149)*
|
||||
*Defined in [NodeHeader.ts:149](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L149)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -54,7 +54,7 @@ ___
|
||||
|
||||
getvalue(): [Null](_nodeheader_.null.md) | [BranchHeader](_nodeheader_.branchheader.md) | [ExtensionHeader](_nodeheader_.extensionheader.md) | [LeafHeader](_nodeheader_.leafheader.md)
|
||||
|
||||
*Defined in [NodeHeader.ts:153](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L153)*
|
||||
*Defined in [NodeHeader.ts:153](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L153)*
|
||||
|
||||
**Returns:** [Null](_nodeheader_.null.md) | [BranchHeader](_nodeheader_.branchheader.md) | [ExtensionHeader](_nodeheader_.extensionheader.md) | [LeafHeader](_nodeheader_.leafheader.md)
|
||||
|
||||
@@ -68,7 +68,7 @@ ___
|
||||
|
||||
▸ **toU8a**(): `Uint8Array`
|
||||
|
||||
*Defined in [NodeHeader.ts:157](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/NodeHeader.ts#L157)*
|
||||
*Defined in [NodeHeader.ts:157](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/NodeHeader.ts#L157)*
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**● BRANCH_NODE_NO_VALUE**: *`254`* = 254
|
||||
|
||||
*Defined in [constants.ts:10](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/constants.ts#L10)*
|
||||
*Defined in [constants.ts:10](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L11)*
|
||||
*Defined in [constants.ts:11](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L5)*
|
||||
*Defined in [constants.ts:5](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L9)*
|
||||
*Defined in [constants.ts:9](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L8)*
|
||||
*Defined in [constants.ts:8](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L15)*
|
||||
*Defined in [constants.ts:15](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L13)*
|
||||
*Defined in [constants.ts:13](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L7)*
|
||||
*Defined in [constants.ts:7](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L6)*
|
||||
*Defined in [constants.ts:6](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L14)*
|
||||
*Defined in [constants.ts:14](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L12)*
|
||||
*Defined in [constants.ts:12](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L17)*
|
||||
*Defined in [constants.ts:17](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L18)*
|
||||
*Defined in [constants.ts:18](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L19)*
|
||||
*Defined in [constants.ts:19](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/constants.ts#L16)*
|
||||
*Defined in [constants.ts:16](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/constants.ts#L16)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **decode**(input: * `null` | `Uint8Array`*): `Uint8Array` | `null` | `Array`< `null` | `Uint8Array` | `Array`< `null` | `Uint8Array`>>
|
||||
|
||||
*Defined in [decode.ts:86](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/decode.ts#L86)*
|
||||
*Defined in [decode.ts:86](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/decode.ts#L86)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encode**(input?: * `null` | `Uint8Array` | `Array`< `null` | `Uint8Array`>*): `Uint8Array`
|
||||
|
||||
*Defined in [encode.ts:94](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/encode.ts#L94)*
|
||||
*Defined in [encode.ts:94](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/encode.ts#L94)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **addNibblesTerminator**(nibbles: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [nibbles.ts:31](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/nibbles.ts#L31)*
|
||||
*Defined in [nibbles.ts:31](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/nibbles.ts#L31)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -25,7 +25,7 @@ ___
|
||||
|
||||
▸ **decodeNibbles**(value: * `null` | `Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [nibbles.ts:52](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/nibbles.ts#L52)*
|
||||
*Defined in [nibbles.ts:52](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/nibbles.ts#L52)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -42,7 +42,7 @@ ___
|
||||
|
||||
▸ **encodeNibbles**(nibbles: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [nibbles.ts:65](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/nibbles.ts#L65)*
|
||||
*Defined in [nibbles.ts:65](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/nibbles.ts#L65)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -59,7 +59,7 @@ ___
|
||||
|
||||
▸ **extractKey**(key: * `null` | `Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [nibbles.ts:15](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/nibbles.ts#L15)*
|
||||
*Defined in [nibbles.ts:15](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/nibbles.ts#L15)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -76,7 +76,7 @@ ___
|
||||
|
||||
▸ **extractNodeKey**(__namedParameters: *[`null` | `Uint8Array`]*): `Uint8Array`
|
||||
|
||||
*Defined in [nibbles.ts:21](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/nibbles.ts#L21)*
|
||||
*Defined in [nibbles.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/nibbles.ts#L21)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -93,7 +93,7 @@ ___
|
||||
|
||||
▸ **isNibblesTerminated**(nibbles: *`Uint8Array`*): `boolean`
|
||||
|
||||
*Defined in [nibbles.ts:27](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/nibbles.ts#L27)*
|
||||
*Defined in [nibbles.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/nibbles.ts#L44)*
|
||||
*Defined in [nibbles.ts:44](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/nibbles.ts#L44)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **createBranch**(value: * `Uint8Array` | `null`*, hasChildren: *`Array`<`boolean`>*): `Uint8Array`
|
||||
|
||||
*Defined in [stream/createBranch.ts:10](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/stream/createBranch.ts#L10)*
|
||||
*Defined in [stream/createBranch.ts:10](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/stream/createBranch.ts#L10)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **createEmpty**(): `Uint8Array`
|
||||
|
||||
*Defined in [stream/createEmpty.ts:7](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/stream/createEmpty.ts#L7)*
|
||||
*Defined in [stream/createEmpty.ts:7](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/stream/createExtension.ts#L7)*
|
||||
*Defined in [stream/createExtension.ts:7](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/stream/createLeaf.ts#L10)*
|
||||
*Defined in [stream/createLeaf.ts:10](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/stream/createSubstream.ts#L8)*
|
||||
*Defined in [stream/createSubstream.ts:8](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/stream/createSubstream.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **createValue**(value: * `null` | `Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [stream/createValue.ts:9](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/stream/createValue.ts#L9)*
|
||||
*Defined in [stream/createValue.ts:9](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/stream/createValue.ts#L9)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **encBranch**(value: * `Uint8Array` | `null`*): `Uint8Array`
|
||||
|
||||
*Defined in [stream/endBranch.ts:7](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/stream/endBranch.ts#L7)*
|
||||
*Defined in [stream/endBranch.ts:7](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/stream/endBranch.ts#L7)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="codec"></a>
|
||||
|
||||
## Codec
|
||||
|
||||
**Ƭ Codec**: *`object`*
|
||||
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/types.ts#L5)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **fromNibbles**(input: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [util/fromNibbles.ts:20](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/util/fromNibbles.ts#L20)*
|
||||
*Defined in [util/fromNibbles.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/util/fromNibbles.ts#L20)*
|
||||
|
||||
*__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/dc996ef/packages/trie-codec/src/util/fuseNibbles.ts#L12)*
|
||||
*Defined in [util/fuseNibbles.ts:12](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-codec/src/util/sharedPrefixLength.ts#L5)*
|
||||
*Defined in [util/sharedPrefixLength.ts:5](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/util/sharedPrefixLength.ts#L5)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **toNibbles**(input?: * `Uint8Array` | `null`*): `Uint8Array`
|
||||
|
||||
*Defined in [util/toNibbles.ts:20](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-codec/src/util/toNibbles.ts#L20)*
|
||||
*Defined in [util/toNibbles.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-codec/src/util/toNibbles.ts#L20)*
|
||||
|
||||
*__name__*: toNibbles
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ Overview
|
||||
|
||||
⊕ **new Trie**(db?: *`TxDb`*, rootHash?: *`Uint8Array`*, codec?: *`Codec`*): [Trie](_index_.trie.md)
|
||||
|
||||
*Defined in [index.ts:36](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L36)*
|
||||
*Defined in [index.ts:36](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L36)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -51,7 +51,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[db](../interfaces/_types_.triedb.md#db)*
|
||||
|
||||
*Defined in [index.ts:32](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L32)*
|
||||
*Defined in [index.ts:32](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L32)*
|
||||
|
||||
___
|
||||
|
||||
@@ -65,7 +65,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[close](../interfaces/_types_.triedb.md#close)*
|
||||
|
||||
*Defined in [index.ts:88](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L88)*
|
||||
*Defined in [index.ts:88](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L88)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -78,7 +78,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[del](../interfaces/_types_.triedb.md#del)*
|
||||
|
||||
*Defined in [index.ts:112](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L112)*
|
||||
*Defined in [index.ts:112](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L112)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -97,7 +97,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[drop](../interfaces/_types_.triedb.md#drop)*
|
||||
|
||||
*Defined in [index.ts:96](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L96)*
|
||||
*Defined in [index.ts:96](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L96)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -110,7 +110,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[empty](../interfaces/_types_.triedb.md#empty)*
|
||||
|
||||
*Defined in [index.ts:92](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L92)*
|
||||
*Defined in [index.ts:92](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L92)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -123,7 +123,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[get](../interfaces/_types_.triedb.md#get)*
|
||||
|
||||
*Defined in [index.ts:123](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L123)*
|
||||
*Defined in [index.ts:123](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L123)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -140,7 +140,7 @@ ___
|
||||
|
||||
▸ **getNode**(hash?: *`Uint8Array`*): [Node](../modules/_types_.md#node)
|
||||
|
||||
*Defined in [index.ts:154](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L154)*
|
||||
*Defined in [index.ts:154](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L154)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -159,7 +159,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[getRoot](../interfaces/_types_.triedb.md#getroot)*
|
||||
|
||||
*Defined in [index.ts:144](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L144)*
|
||||
*Defined in [index.ts:144](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L144)*
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
@@ -172,7 +172,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[maintain](../interfaces/_types_.triedb.md#maintain)*
|
||||
|
||||
*Defined in [index.ts:100](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L100)*
|
||||
*Defined in [index.ts:100](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L100)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -191,7 +191,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[open](../interfaces/_types_.triedb.md#open)*
|
||||
|
||||
*Defined in [index.ts:84](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L84)*
|
||||
*Defined in [index.ts:84](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L84)*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
@@ -204,7 +204,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[put](../interfaces/_types_.triedb.md#put)*
|
||||
|
||||
*Defined in [index.ts:132](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L132)*
|
||||
*Defined in [index.ts:132](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L132)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -224,7 +224,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[rename](../interfaces/_types_.triedb.md#rename)*
|
||||
|
||||
*Defined in [index.ts:104](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L104)*
|
||||
*Defined in [index.ts:104](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L104)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -244,7 +244,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[setRoot](../interfaces/_types_.triedb.md#setroot)*
|
||||
|
||||
*Defined in [index.ts:158](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L158)*
|
||||
*Defined in [index.ts:158](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L158)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -263,7 +263,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[size](../interfaces/_types_.triedb.md#size)*
|
||||
|
||||
*Defined in [index.ts:108](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L108)*
|
||||
*Defined in [index.ts:108](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L108)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -276,7 +276,7 @@ ___
|
||||
|
||||
*Implementation of [TrieDb](../interfaces/_types_.triedb.md).[snapshot](../interfaces/_types_.triedb.md#snapshot)*
|
||||
|
||||
*Defined in [index.ts:163](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L163)*
|
||||
*Defined in [index.ts:163](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L163)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -294,7 +294,7 @@ ___
|
||||
|
||||
▸ **transaction**(fn: *`function`*): `boolean`
|
||||
|
||||
*Defined in [index.ts:64](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/index.ts#L64)*
|
||||
*Defined in [index.ts:64](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/index.ts#L64)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
**BRANCH**: = 3
|
||||
|
||||
*Defined in [types.ts:11](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L11)*
|
||||
*Defined in [types.ts:11](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L11)*
|
||||
|
||||
___
|
||||
<a id="empty"></a>
|
||||
@@ -28,7 +28,7 @@ ___
|
||||
|
||||
**EMPTY**: = 0
|
||||
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L8)*
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L8)*
|
||||
|
||||
___
|
||||
<a id="extension"></a>
|
||||
@@ -37,7 +37,7 @@ ___
|
||||
|
||||
**EXTENSION**: = 2
|
||||
|
||||
*Defined in [types.ts:10](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L10)*
|
||||
*Defined in [types.ts:10](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L10)*
|
||||
|
||||
___
|
||||
<a id="leaf"></a>
|
||||
@@ -46,7 +46,7 @@ ___
|
||||
|
||||
**LEAF**: = 1
|
||||
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L9)*
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L9)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -401,7 +401,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"trie-db","level":"1.3","depth":1,"next":{"title":"trie-hash","level":"1.4","depth":1,"path":"trie-hash/README.md","ref":"trie-hash/README.md","articles":[]},"previous":{"title":"keyring","level":"1.2","depth":1,"path":"keyring/README.md","ref":"keyring/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"trie-db/README.md","mtime":"2018-11-29T10:11:43.584Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"trie-db","level":"1.3","depth":1,"next":{"title":"trie-hash","level":"1.4","depth":1,"path":"trie-hash/README.md","ref":"trie-hash/README.md","articles":[]},"previous":{"title":"keyring","level":"1.2","depth":1,"path":"keyring/README.md","ref":"keyring/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"trie-db/README.md","mtime":"2018-11-29T10:58:39.055Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
**● db**: *`TxDb`*
|
||||
|
||||
*Defined in [types.ts:37](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L37)*
|
||||
*Defined in [types.ts:37](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/db/src/types.d.ts#L18)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:18](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.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/dc996ef/packages/db/src/types.d.ts#L26)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:26](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.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/dc996ef/packages/db/src/types.d.ts#L20)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.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/dc996ef/packages/db/src/types.d.ts#L21)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.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/dc996ef/packages/db/src/types.d.ts#L27)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -107,7 +107,7 @@ ___
|
||||
|
||||
▸ **getRoot**(): `Uint8Array`
|
||||
|
||||
*Defined in [types.ts:39](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L39)*
|
||||
*Defined in [types.ts:39](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/db/src/types.d.ts#L22)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.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/dc996ef/packages/db/src/types.d.ts#L19)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:19](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.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/dc996ef/packages/db/src/types.d.ts#L28)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:28](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.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/dc996ef/packages/db/src/types.d.ts#L23)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:23](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L23)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -190,7 +190,7 @@ ___
|
||||
|
||||
▸ **setRoot**(rootHash: *`Uint8Array`*): `void`
|
||||
|
||||
*Defined in [types.ts:40](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L40)*
|
||||
*Defined in [types.ts:40](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/db/src/types.d.ts#L24)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.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/dc996ef/packages/trie-db/src/types.ts#L41)*
|
||||
*Defined in [types.ts:41](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/db/src/types.d.ts#L32)*
|
||||
*Defined in [/home/travis/build/polkadot-js/common/packages/db/src/types.ts:32](https://github.com/polkadot-js/common/blob/e3b45e7/packages/db/src/types.ts#L32)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ Constants**: *`object`*
|
||||
|
||||
*Defined in [constants.ts:9](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/constants.ts#L9)*
|
||||
*Defined in [constants.ts:9](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/constants.ts#L9)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -22,7 +22,7 @@ ___
|
||||
|
||||
▸ **default**(codec: *`Codec`*): `object`
|
||||
|
||||
*Defined in [constants.ts:14](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/constants.ts#L14)*
|
||||
*Defined in [constants.ts:14](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/constants.ts#L14)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
**Ƭ EncodedPath**: * `Uint8Array` | `null`
|
||||
*
|
||||
|
||||
*Defined in [types.ts:28](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L28)*
|
||||
*Defined in [types.ts:28](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L28)*
|
||||
|
||||
___
|
||||
<a id="node"></a>
|
||||
@@ -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/dc996ef/packages/trie-db/src/types.ts#L34)*
|
||||
*Defined in [types.ts:34](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L34)*
|
||||
|
||||
___
|
||||
<a id="nodebranch"></a>
|
||||
@@ -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/dc996ef/packages/trie-db/src/types.ts#L20)*
|
||||
*Defined in [types.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L20)*
|
||||
|
||||
___
|
||||
<a id="nodeempty"></a>
|
||||
@@ -60,7 +60,7 @@ ___
|
||||
|
||||
**Ƭ NodeEmpty**: *`null`*
|
||||
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L14)*
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L14)*
|
||||
|
||||
___
|
||||
<a id="nodeencoded"></a>
|
||||
@@ -69,7 +69,7 @@ ___
|
||||
|
||||
**Ƭ NodeEncoded**: *`Uint8Array`*
|
||||
|
||||
*Defined in [types.ts:16](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/types.ts#L16)*
|
||||
*Defined in [types.ts:16](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L16)*
|
||||
|
||||
___
|
||||
<a id="nodeencodedorempty"></a>
|
||||
@@ -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/dc996ef/packages/trie-db/src/types.ts#L18)*
|
||||
*Defined in [types.ts:18](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L18)*
|
||||
|
||||
___
|
||||
<a id="nodekv"></a>
|
||||
@@ -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/dc996ef/packages/trie-db/src/types.ts#L30)*
|
||||
*Defined in [types.ts:30](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L30)*
|
||||
|
||||
___
|
||||
<a id="nodenotempty"></a>
|
||||
@@ -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/dc996ef/packages/trie-db/src/types.ts#L32)*
|
||||
*Defined in [types.ts:32](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/types.ts#L32)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isBranchNode**(node: *[Node](_types_.md#node)*): `boolean`
|
||||
|
||||
*Defined in [util/is.ts:57](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/is.ts#L57)*
|
||||
*Defined in [util/is.ts:57](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-db/src/util/is.ts#L17)*
|
||||
*Defined in [util/is.ts:17](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-db/src/util/is.ts#L37)*
|
||||
*Defined in [util/is.ts:37](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-db/src/util/is.ts#L27)*
|
||||
*Defined in [util/is.ts:27](https://github.com/polkadot-js/common/blob/e3b45e7/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/dc996ef/packages/trie-db/src/util/is.ts#L47)*
|
||||
*Defined in [util/is.ts:47](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/util/is.ts#L47)*
|
||||
|
||||
*__name__*: isLeafNode
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **computeExtensionKey**(nibbles: *`Uint8Array`*): [EncodedPath](_types_.md#encodedpath)
|
||||
|
||||
*Defined in [util/key.ts:36](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/key.ts#L36)*
|
||||
*Defined in [util/key.ts:36](https://github.com/polkadot-js/common/blob/e3b45e7/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:40](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/key.ts#L40)*
|
||||
*Defined in [util/key.ts:40](https://github.com/polkadot-js/common/blob/e3b45e7/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:56](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/key.ts#L56)*
|
||||
*Defined in [util/key.ts:56](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/util/key.ts#L56)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -60,7 +60,7 @@ ___
|
||||
|
||||
▸ **getCommonPrefixLength**(left: *`Uint8Array`*, right: *`Uint8Array`*): `number`
|
||||
|
||||
*Defined in [util/key.ts:46](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/key.ts#L46)*
|
||||
*Defined in [util/key.ts:46](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/util/key.ts#L46)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -78,7 +78,7 @@ ___
|
||||
|
||||
▸ **keyEquals**(key: * `Uint8Array` | `null`*, test: * `Uint8Array` | `null`*): `boolean`
|
||||
|
||||
*Defined in [util/key.ts:10](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/key.ts#L10)*
|
||||
*Defined in [util/key.ts:10](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/util/key.ts#L10)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -96,7 +96,7 @@ ___
|
||||
|
||||
▸ **keyStartsWith**(key: * `Uint8Array` | `null`*, partial: * `Uint8Array` | `null`*): `boolean`
|
||||
|
||||
*Defined in [util/key.ts:20](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/key.ts#L20)*
|
||||
*Defined in [util/key.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/util/key.ts#L20)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **decodeNode**(codec: *`Codec`*, encoded: * `Uint8Array` | [Node](_types_.md#node)*): [Node](_types_.md#node)
|
||||
|
||||
*Defined in [util/node.ts:30](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/node.ts#L30)*
|
||||
*Defined in [util/node.ts:30](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/util/node.ts#L30)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -26,7 +26,7 @@ ___
|
||||
|
||||
▸ **encodeNode**(codec: *`Codec`*, node: *[Node](_types_.md#node)*): `Uint8Array`
|
||||
|
||||
*Defined in [util/node.ts:46](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/node.ts#L46)*
|
||||
*Defined in [util/node.ts:46](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/util/node.ts#L46)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -44,7 +44,7 @@ ___
|
||||
|
||||
▸ **getNodeType**(node: *[Node](_types_.md#node)*): [NodeType](../enums/_types_.nodetype.md)
|
||||
|
||||
*Defined in [util/node.ts:13](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-db/src/util/node.ts#L13)*
|
||||
*Defined in [util/node.ts:13](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-db/src/util/node.ts#L13)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -6,5 +6,6 @@
|
||||
* ["trieRoot.spec"](modules/_trieroot_spec_.md)
|
||||
* ["trieRootOrdered"](modules/_trierootordered_.md)
|
||||
* ["trieRootOrdered.spec"](modules/_trierootordered_spec_.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
* ["unhashedTrie"](modules/_unhashedtrie_.md)
|
||||
* ["unhashedTrie.spec"](modules/_unhashedtrie_spec_.md)
|
||||
|
||||
@@ -391,7 +391,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"trie-hash","level":"1.4","depth":1,"next":{"title":"util","level":"1.5","depth":1,"path":"util/README.md","ref":"util/README.md","articles":[]},"previous":{"title":"trie-db","level":"1.3","depth":1,"path":"trie-db/README.md","ref":"trie-db/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"trie-hash/README.md","mtime":"2018-11-29T10:11:51.600Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"trie-hash","level":"1.4","depth":1,"next":{"title":"util","level":"1.5","depth":1,"path":"util/README.md","ref":"util/README.md","articles":[]},"previous":{"title":"trie-db","level":"1.3","depth":1,"path":"trie-db/README.md","ref":"trie-db/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"trie-hash/README.md","mtime":"2018-11-29T10:58:46.379Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **buildTrie**(input: *`Array`<[`Uint8Array`, `Uint8Array`]>*, cursor?: *`number`*, codec?: *`Codec`*, stream?: *`any`*): `Uint8Array`
|
||||
|
||||
*Defined in [buildTrie.ts:77](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-hash/src/buildTrie.ts#L77)*
|
||||
*Defined in [buildTrie.ts:77](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-hash/src/buildTrie.ts#L77)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## trieRoot
|
||||
|
||||
▸ **trieRoot**(input: *`Array`<`TriePair`>*, codec?: *`Codec`*): `Uint8Array`
|
||||
▸ **trieRoot**(input: *`Array`<[TriePair](_types_.md#triepair)>*, codec?: *`Codec`*): `Uint8Array`
|
||||
|
||||
*Defined in [trieRoot.ts:30](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-hash/src/trieRoot.ts#L30)*
|
||||
*Defined in [trieRoot.ts:30](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-hash/src/trieRoot.ts#L30)*
|
||||
|
||||
*__name__*: trieRoot
|
||||
|
||||
@@ -34,7 +34,7 @@ trieRoot([{
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| input | `Array`<`TriePair`> | - |
|
||||
| input | `Array`<[TriePair](_types_.md#triepair)> | - |
|
||||
| `Default value` codec | `Codec` | DEFAULT_CODEC |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **trieRootOrdered**(input: *`Array`<`Uint8Array`>*, codec?: *`Codec`*): `Uint8Array`
|
||||
|
||||
*Defined in [trieRootOrdered.ts:31](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-hash/src/trieRootOrdered.ts#L31)*
|
||||
*Defined in [trieRootOrdered.ts:31](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-hash/src/trieRootOrdered.ts#L31)*
|
||||
|
||||
*__name__*: trieRootOrdered
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="triepair"></a>
|
||||
|
||||
## TriePair
|
||||
|
||||
**Ƭ TriePair**: *`object`*
|
||||
|
||||
*Defined in [types.ts:5](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-hash/src/types.ts#L5)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
|
||||
## unhashedTrie
|
||||
|
||||
▸ **unhashedTrie**(input: *`Array`<`TriePair`>*, codec?: *`Codec`*): `Uint8Array`
|
||||
▸ **unhashedTrie**(input: *`Array`<[TriePair](_types_.md#triepair)>*, codec?: *`Codec`*): `Uint8Array`
|
||||
|
||||
*Defined in [unhashedTrie.ts:14](https://github.com/polkadot-js/common/blob/dc996ef/packages/trie-hash/src/unhashedTrie.ts#L14)*
|
||||
*Defined in [unhashedTrie.ts:14](https://github.com/polkadot-js/common/blob/e3b45e7/packages/trie-hash/src/unhashedTrie.ts#L14)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Default value |
|
||||
| ------ | ------ | ------ |
|
||||
| input | `Array`<`TriePair`> | - |
|
||||
| input | `Array`<[TriePair](_types_.md#triepair)> | - |
|
||||
| `Default value` codec | `Codec` | DEFAULT_CODEC |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
* ["random/index"](modules/_random_index_.md)
|
||||
* ["sha512/asU8a"](modules/_sha512_asu8a_.md)
|
||||
* ["sha512/index"](modules/_sha512_index_.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
* ["xxhash/asHex"](modules/_xxhash_ashex_.md)
|
||||
* ["xxhash/asU8a"](modules/_xxhash_asu8a_.md)
|
||||
* ["xxhash/index"](modules/_xxhash_index_.md)
|
||||
|
||||
@@ -485,7 +485,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"util-crypto","level":"1.6","depth":1,"next":{"title":"Keyring","level":"2.1","depth":1,"path":"examples/keyring/README.md","ref":"examples/keyring/README.md","articles":[{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]}]},"previous":{"title":"util","level":"1.5","depth":1,"path":"util/README.md","ref":"util/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"util-crypto/README.md","mtime":"2018-11-29T10:12:06.848Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:12:45.549Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"util-crypto","level":"1.6","depth":1,"next":{"title":"Keyring","level":"2.1","depth":1,"path":"examples/keyring/README.md","ref":"examples/keyring/README.md","articles":[{"title":"Create Account","level":"2.1.1","depth":2,"path":"examples/keyring/01_create_account/README.md","ref":"examples/keyring/01_create_account/README.md","articles":[]},{"title":"Load Accounts","level":"2.1.2","depth":2,"path":"examples/keyring/02_load_accounts/README.md","ref":"examples/keyring/02_load_accounts/README.md","articles":[]}]},"previous":{"title":"util","level":"1.5","depth":1,"path":"util/README.md","ref":"util/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["include-codeblock","insert-logo-link","mermaid-gb3","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css"},"pluginsConfig":{"insert-logo-link":{"src":"/common/logo.png","url":"https://polkadot.js.org"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot Common Book","gitbook":">=2.4.0"},"file":{"path":"util-crypto/README.md","mtime":"2018-11-29T10:59:01.596Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-29T10:59:37.613Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **blake2AsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/blake2/asHex.ts#L22)*
|
||||
*Defined in [blake2/asHex.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/blake2/asHex.ts#L22)*
|
||||
|
||||
*__name__*: blake2AsHex
|
||||
|
||||
|
||||
@@ -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/dc996ef/packages/util-crypto/src/blake2/asU8a.ts#L22)*
|
||||
*Defined in [blake2/asU8a.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/blake2/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: blake2AsU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **blake2bAsHex**(data: *`Uint8Array`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
|
||||
*Defined in [blake2/blake2b/asHex.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/blake2/blake2b/asHex.ts#L24)*
|
||||
|
||||
*__name__*: blake2bAsHex
|
||||
|
||||
|
||||
@@ -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/dc996ef/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
|
||||
*Defined in [blake2/blake2b/asU8a.ts:23](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/blake2/blake2b/asU8a.ts#L23)*
|
||||
|
||||
*__name__*: blake2bAsU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **keccakAsHex**(value: * `Buffer` | `Uint8Array` | `string`*): `string`
|
||||
|
||||
*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/keccak/asHex.ts#L24)*
|
||||
*Defined in [keccak/asHex.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/keccak/asHex.ts#L24)*
|
||||
|
||||
*__name__*: keccakAsHex
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **keccakAsU8a**(value: * `Buffer` | `Uint8Array` | `string`*): `Uint8Array`
|
||||
|
||||
*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/keccak/asU8a.ts#L22)*
|
||||
*Defined in [keccak/asU8a.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/keccak/asU8a.ts#L22)*
|
||||
|
||||
*__name__*: keccakAsU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **mnemonicGenerate**(): `string`
|
||||
|
||||
*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/mnemonic/generate.ts#L20)*
|
||||
*Defined in [mnemonic/generate.ts:20](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/mnemonic/generate.ts#L20)*
|
||||
|
||||
*__name__*: mnemonicGenerate
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **toSecret**(mnemonic: *`string`*): `Uint8Array`
|
||||
|
||||
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
|
||||
*Defined in [mnemonic/toSecret.ts:8](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/mnemonic/toSecret.ts#L8)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **toSeed**(mnemonic: *`string`*): `Uint8Array`
|
||||
|
||||
*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
|
||||
*Defined in [mnemonic/toSeed.ts:25](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/mnemonic/toSeed.ts#L25)*
|
||||
|
||||
*__name__*: toSeed
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **mnemonicValidate**(mnemonic: *`string`*): `boolean`
|
||||
|
||||
*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/mnemonic/validate.ts#L21)*
|
||||
*Defined in [mnemonic/validate.ts:21](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/mnemonic/validate.ts#L21)*
|
||||
|
||||
*__name__*: mnemonicValidate
|
||||
|
||||
|
||||
@@ -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/dc996ef/packages/util-crypto/src/nacl/decrypt.ts#L22)*
|
||||
*Defined in [nacl/decrypt.ts:22](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/nacl/decrypt.ts#L22)*
|
||||
|
||||
*__name__*: naclDecrypt
|
||||
|
||||
|
||||
@@ -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/dc996ef/packages/util-crypto/src/nacl/encrypt.ts#L29)*
|
||||
*Defined in [nacl/encrypt.ts:29](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/nacl/encrypt.ts#L29)*
|
||||
|
||||
*__name__*: naclEncrypt
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## naclKeypairFromRandom
|
||||
|
||||
▸ **naclKeypairFromRandom**(): `KeypairType`
|
||||
▸ **naclKeypairFromRandom**(): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromRandom.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/nacl/keypair/fromRandom.ts#L24)*
|
||||
|
||||
*__name__*: naclKeypairFromRandom
|
||||
|
||||
@@ -26,7 +26,7 @@ import { naclKeypairFromRandom } from '@polkadot/util-crypto';
|
||||
naclKeypairFromRandom(); // => { secretKey: [...], publicKey: [...] }
|
||||
```
|
||||
|
||||
**Returns:** `KeypairType`
|
||||
**Returns:** [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## naclKeypairFromSecret
|
||||
|
||||
▸ **naclKeypairFromSecret**(secret: *`Uint8Array`*): `KeypairType`
|
||||
▸ **naclKeypairFromSecret**(secret: *`Uint8Array`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromSecret.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/nacl/keypair/fromSecret.ts#L24)*
|
||||
|
||||
*__name__*: naclKeypairFromSecret
|
||||
|
||||
@@ -32,7 +32,7 @@ naclKeypairFromSecret(...); // => { secretKey: [...], publicKey: [...] }
|
||||
| ------ | ------ |
|
||||
| secret | `Uint8Array` |
|
||||
|
||||
**Returns:** `KeypairType`
|
||||
**Returns:** [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
## naclKeypairFromSeed
|
||||
|
||||
▸ **naclKeypairFromSeed**(seed: *`Uint8Array`*): `KeypairType`
|
||||
▸ **naclKeypairFromSeed**(seed: *`Uint8Array`*): [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/dc996ef/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
|
||||
*Defined in [nacl/keypair/fromSeed.ts:24](https://github.com/polkadot-js/common/blob/e3b45e7/packages/util-crypto/src/nacl/keypair/fromSeed.ts#L24)*
|
||||
|
||||
*__name__*: naclKeypairFromSeed
|
||||
|
||||
@@ -32,7 +32,7 @@ naclKeypairFromSeed(...); // => { secretKey: [...], publicKey: [...] }
|
||||
| ------ | ------ |
|
||||
| seed | `Uint8Array` |
|
||||
|
||||
**Returns:** `KeypairType`
|
||||
**Returns:** [KeypairType](_types_.md#keypairtype)
|
||||
|
||||
___
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user