[CI Skip] 0.33.32
This commit is contained in:
@@ -34,7 +34,7 @@ throw new ExtError('some message', ExtError.CODES.METHOD_NOT_FOUND); // => error
|
||||
|
||||
⊕ **new ExtError**(message?: *`string`*, code?: *`number`*, data?: *`any`*): [ExtError](_ext_error_.exterror.md)
|
||||
|
||||
*Defined in [ext/error.ts:44](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L44)*
|
||||
*Defined in [ext/error.ts:44](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L44)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -58,7 +58,7 @@ ___
|
||||
|
||||
*Implementation of [ExtErrorInterface](../interfaces/_types_.exterrorinterface.md).[code](../interfaces/_types_.exterrorinterface.md#code)*
|
||||
|
||||
*Defined in [ext/error.ts:36](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L36)*
|
||||
*Defined in [ext/error.ts:36](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L36)*
|
||||
|
||||
___
|
||||
<a id="data"></a>
|
||||
@@ -69,7 +69,7 @@ ___
|
||||
|
||||
*Implementation of [ExtErrorInterface](../interfaces/_types_.exterrorinterface.md).[data](../interfaces/_types_.exterrorinterface.md#data)*
|
||||
|
||||
*Defined in [ext/error.ts:38](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L38)*
|
||||
*Defined in [ext/error.ts:38](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L38)*
|
||||
|
||||
___
|
||||
<a id="message"></a>
|
||||
@@ -82,7 +82,7 @@ ___
|
||||
|
||||
*Overrides Error.message*
|
||||
|
||||
*Defined in [ext/error.ts:40](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L40)*
|
||||
*Defined in [ext/error.ts:40](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L40)*
|
||||
|
||||
___
|
||||
<a id="name"></a>
|
||||
@@ -93,7 +93,7 @@ ___
|
||||
|
||||
*Overrides Error.name*
|
||||
|
||||
*Defined in [ext/error.ts:42](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L42)*
|
||||
*Defined in [ext/error.ts:42](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L42)*
|
||||
|
||||
___
|
||||
<a id="stack"></a>
|
||||
@@ -106,7 +106,7 @@ ___
|
||||
|
||||
*Overrides Error.stack*
|
||||
|
||||
*Defined in [ext/error.ts:44](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L44)*
|
||||
*Defined in [ext/error.ts:44](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L44)*
|
||||
|
||||
___
|
||||
<a id="error"></a>
|
||||
@@ -127,7 +127,7 @@ ___
|
||||
|
||||
**CODES**: *`object`*
|
||||
|
||||
*Defined in [ext/error.ts:61](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L61)*
|
||||
*Defined in [ext/error.ts:61](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L61)*
|
||||
|
||||
<a id="codes.assert"></a>
|
||||
|
||||
@@ -135,7 +135,7 @@ ___
|
||||
|
||||
**● ASSERT**: *`number`* = -90009
|
||||
|
||||
*Defined in [ext/error.ts:62](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L62)*
|
||||
*Defined in [ext/error.ts:62](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L62)*
|
||||
|
||||
___
|
||||
<a id="codes.invalid_jsonrpc"></a>
|
||||
@@ -144,7 +144,7 @@ ___
|
||||
|
||||
**● INVALID_JSONRPC**: *`number`* = -99998
|
||||
|
||||
*Defined in [ext/error.ts:64](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L64)*
|
||||
*Defined in [ext/error.ts:64](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L64)*
|
||||
|
||||
___
|
||||
<a id="codes.method_not_found"></a>
|
||||
@@ -153,7 +153,7 @@ ___
|
||||
|
||||
**● METHOD_NOT_FOUND**: *`number`* = -32601
|
||||
|
||||
*Defined in [ext/error.ts:65](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L65)*
|
||||
*Defined in [ext/error.ts:65](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L65)*
|
||||
|
||||
___
|
||||
<a id="codes.unknown"></a>
|
||||
@@ -162,7 +162,7 @@ ___
|
||||
|
||||
**● UNKNOWN**: *`number`*
|
||||
|
||||
*Defined in [ext/error.ts:63](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/ext/error.ts#L63)*
|
||||
*Defined in [ext/error.ts:63](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/ext/error.ts#L63)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -416,7 +416,7 @@
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"util","level":"1.5","depth":1,"next":{"title":"util-crypto","level":"1.6","depth":1,"path":"util-crypto/README.md","ref":"util-crypto/README.md","articles":[]},"previous":{"title":"trie-hash","level":"1.4","depth":1,"path":"trie-hash/README.md","ref":"trie-hash/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/README.md","mtime":"2019-01-11T09:41:53.344Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-11T09:42:37.555Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"util","level":"1.5","depth":1,"next":{"title":"util-crypto","level":"1.6","depth":1,"path":"util-crypto/README.md","ref":"util-crypto/README.md","articles":[]},"previous":{"title":"trie-hash","level":"1.4","depth":1,"path":"trie-hash/README.md","ref":"trie-hash/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/README.md","mtime":"2019-01-11T09:59:22.514Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-11T10:00:10.961Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
**● code**: *`number`*
|
||||
|
||||
*Defined in [types.ts:6](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/types.ts#L6)*
|
||||
*Defined in [types.ts:6](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/types.ts#L6)*
|
||||
|
||||
___
|
||||
<a id="data"></a>
|
||||
@@ -25,7 +25,7 @@ ___
|
||||
|
||||
**● data**: *`any`*
|
||||
|
||||
*Defined in [types.ts:7](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/types.ts#L7)*
|
||||
*Defined in [types.ts:7](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/types.ts#L7)*
|
||||
|
||||
___
|
||||
<a id="message"></a>
|
||||
@@ -34,7 +34,7 @@ ___
|
||||
|
||||
**● message**: *`string`*
|
||||
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/types.ts#L8)*
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/types.ts#L8)*
|
||||
|
||||
___
|
||||
<a id="stack"></a>
|
||||
@@ -43,7 +43,7 @@ ___
|
||||
|
||||
**● stack**: *`string`*
|
||||
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/types.ts#L9)*
|
||||
*Defined in [types.ts:9](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/types.ts#L9)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
**● isLe**: *`undefined` | `false` | `true`*
|
||||
|
||||
*Defined in [types.ts:24](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/types.ts#L24)*
|
||||
*Defined in [types.ts:24](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/types.ts#L24)*
|
||||
|
||||
___
|
||||
<a id="isnegative"></a>
|
||||
@@ -21,7 +21,7 @@ ___
|
||||
|
||||
**● isNegative**: *`undefined` | `false` | `true`*
|
||||
|
||||
*Defined in [types.ts:25](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/types.ts#L25)*
|
||||
*Defined in [types.ts:25](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/types.ts#L25)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **arrayFilter**(array: *`Array`<`any`>*, allowNulls?: *`boolean`*): `Array`<`any`>
|
||||
|
||||
*Defined in [array/filter.ts:24](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/array/filter.ts#L24)*
|
||||
*Defined in [array/filter.ts:24](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/array/filter.ts#L24)*
|
||||
|
||||
*__name__*: arrayFilter
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **assert**(test: *`any`*, message: *`string` | `MessageFn`*, code?: *`number`*, data?: *`any`*): `boolean`
|
||||
|
||||
*Defined in [assert.ts:27](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/assert.ts#L27)*
|
||||
*Defined in [assert.ts:27](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/assert.ts#L27)*
|
||||
|
||||
*__name__*: assert
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **bnToBn**(value?: *`BN` | `number` | `null`*): `BN`
|
||||
|
||||
*Defined in [bn/toBn.ts:24](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/bn/toBn.ts#L24)*
|
||||
*Defined in [bn/toBn.ts:24](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/bn/toBn.ts#L24)*
|
||||
|
||||
*__name__*: bnToBn
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **bnToHex**(value?: *`BN` | `number` | `null`*, options?: *`number` | `Options`*): `string`
|
||||
|
||||
*Defined in [bn/toHex.ts:34](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/bn/toHex.ts#L34)*
|
||||
*Defined in [bn/toHex.ts:34](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/bn/toHex.ts#L34)*
|
||||
|
||||
*__name__*: bnToHex
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
▸ **bnToU8a**(value: *`BN` | `number` | `null`*, bitLength?: *`undefined` | `number`*, isLe?: *`undefined` | `false` | `true`*): `Uint8Array`
|
||||
|
||||
*Defined in [bn/toU8a.ts:30](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/bn/toU8a.ts#L30)*
|
||||
*Defined in [bn/toU8a.ts:30](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/bn/toU8a.ts#L30)*
|
||||
|
||||
*__name__*: bnToU8a
|
||||
|
||||
@@ -37,7 +37,7 @@ bnToU8a(new BN(0x1234)); // => [0x12, 0x34]
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
*Defined in [bn/toU8a.ts:31](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/bn/toU8a.ts#L31)*
|
||||
*Defined in [bn/toU8a.ts:31](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/bn/toU8a.ts#L31)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **bufferToU8a**(buffer?: *`Buffer` | `number`[]*): `Uint8Array`
|
||||
|
||||
*Defined in [buffer/toU8a.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/buffer/toU8a.ts#L20)*
|
||||
*Defined in [buffer/toU8a.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/buffer/toU8a.ts#L20)*
|
||||
|
||||
*__name__*: bufferToU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **compactAddLength**(input: *`Uint8Array`*): `Uint8Array`
|
||||
|
||||
*Defined in [compact/addLength.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/compact/addLength.ts#L20)*
|
||||
*Defined in [compact/addLength.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/compact/addLength.ts#L20)*
|
||||
|
||||
*__name__*: compactAddLength
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**● DEFAULT_BITLENGTH**: *[BitLength](_compact_types_.md#bitlength)* = 32
|
||||
|
||||
*Defined in [compact/defaults.ts:7](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/compact/defaults.ts#L7)*
|
||||
*Defined in [compact/defaults.ts:7](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/compact/defaults.ts#L7)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **compactFromU8a**(_input: *`Uint8Array` | `string`*, bitLength?: *[BitLength](_compact_types_.md#bitlength)*): [`number`, `BN`]
|
||||
|
||||
*Defined in [compact/fromU8a.ts:26](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/compact/fromU8a.ts#L26)*
|
||||
*Defined in [compact/fromU8a.ts:26](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/compact/fromU8a.ts#L26)*
|
||||
|
||||
*__name__*: compactFromU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **compactStripLength**(input: *`Uint8Array`*, bitLength?: *[BitLength](_compact_types_.md#bitlength)*): [`number`, `Uint8Array`]
|
||||
|
||||
*Defined in [compact/stripLength.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/compact/stripLength.ts#L22)*
|
||||
*Defined in [compact/stripLength.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/compact/stripLength.ts#L22)*
|
||||
|
||||
*__name__*: compactStripLength
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **compactToU8a**(_value: *`BN` | `number`*): `Uint8Array`
|
||||
|
||||
*Defined in [compact/toU8a.ts:27](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/compact/toU8a.ts#L27)*
|
||||
*Defined in [compact/toU8a.ts:27](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/compact/toU8a.ts#L27)*
|
||||
|
||||
*__name__*: compactToU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ BitLength**: *`8` | `16` | `32` | `64` | `128` | `256`*
|
||||
|
||||
*Defined in [compact/types.ts:5](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/compact/types.ts#L5)*
|
||||
*Defined in [compact/types.ts:5](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/compact/types.ts#L5)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **hexAddPrefix**(value: *`string` | `null` | `undefined`*): `string`
|
||||
|
||||
*Defined in [hex/addPrefix.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/hex/addPrefix.ts#L22)*
|
||||
*Defined in [hex/addPrefix.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/hex/addPrefix.ts#L22)*
|
||||
|
||||
*__name__*: hexAddPrefix
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **hexFixLength**(value: *`string`*, bitLength?: *`number`*, withPadding?: *`boolean`*): `string`
|
||||
|
||||
*Defined in [hex/fixLength.ts:25](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/hex/fixLength.ts#L25)*
|
||||
*Defined in [hex/fixLength.ts:25](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/hex/fixLength.ts#L25)*
|
||||
|
||||
*__name__*: hexFixLength
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **hexHasPrefix**(value: *`string` | `null` | `undefined`*): `boolean`
|
||||
|
||||
*Defined in [hex/hasPrefix.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/hex/hasPrefix.ts#L22)*
|
||||
*Defined in [hex/hasPrefix.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/hex/hasPrefix.ts#L22)*
|
||||
|
||||
*__name__*: hexHasPrefix
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **hexStripPrefix**(value: *`string` | `null` | `undefined`*): `string`
|
||||
|
||||
*Defined in [hex/stripPrefix.ts:24](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/hex/stripPrefix.ts#L24)*
|
||||
*Defined in [hex/stripPrefix.ts:24](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/hex/stripPrefix.ts#L24)*
|
||||
|
||||
*__name__*: hexStripPrefix
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **hexToBn**(value?: *`string` | `number` | `null`*, options?: *[ToBnOptions](../interfaces/_types_.tobnoptions.md) | `boolean`*): `BN`
|
||||
|
||||
*Defined in [hex/toBn.ts:36](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/hex/toBn.ts#L36)*
|
||||
*Defined in [hex/toBn.ts:36](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/hex/toBn.ts#L36)*
|
||||
|
||||
*__name__*: hexToBn
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **hexToNumber**(value?: *`undefined` | `string`*): `number`
|
||||
|
||||
*Defined in [hex/toNumber.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/hex/toNumber.ts#L22)*
|
||||
*Defined in [hex/toNumber.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/hex/toNumber.ts#L22)*
|
||||
|
||||
*__name__*: hexToNumber
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **hexToU8a**(_value?: *`string` | `null`*, bitLength?: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [hex/toU8a.ts:25](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/hex/toU8a.ts#L25)*
|
||||
*Defined in [hex/toU8a.ts:25](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/hex/toU8a.ts#L25)*
|
||||
|
||||
*__name__*: hexToU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isBn**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/bn.ts:23](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/bn.ts#L23)*
|
||||
*Defined in [is/bn.ts:23](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/bn.ts#L23)*
|
||||
|
||||
*__name__*: isBn
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isBoolean**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/boolean.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/boolean.ts#L20)*
|
||||
*Defined in [is/boolean.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/boolean.ts#L20)*
|
||||
|
||||
*__name__*: isBoolean
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isBuffer**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/buffer.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/buffer.ts#L22)*
|
||||
*Defined in [is/buffer.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/buffer.ts#L22)*
|
||||
|
||||
*__name__*: isBuffer
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isError**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/error.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/error.ts#L22)*
|
||||
*Defined in [is/error.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/error.ts#L22)*
|
||||
|
||||
*__name__*: isError
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isFunction**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/function.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/function.ts#L20)*
|
||||
*Defined in [is/function.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/function.ts#L20)*
|
||||
|
||||
*__name__*: isFunction
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isHex**(value: *`any`*, bitLength?: *`number`*, ignoreLength?: *`boolean`*): `boolean`
|
||||
|
||||
*Defined in [is/hex.ts:25](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/hex.ts#L25)*
|
||||
*Defined in [is/hex.ts:25](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/hex.ts#L25)*
|
||||
|
||||
*__name__*: isHex
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isInstanceOf**(value: *`any`*, clazz: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/instanceOf.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/instanceOf.ts#L20)*
|
||||
*Defined in [is/instanceOf.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/instanceOf.ts#L20)*
|
||||
|
||||
*__name__*: isInstanceOf
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isIp**(value: *`string`*, type?: *`IpTypes`*): `boolean`
|
||||
|
||||
*Defined in [is/ip.ts:27](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/ip.ts#L27)*
|
||||
*Defined in [is/ip.ts:27](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/ip.ts#L27)*
|
||||
|
||||
*__name__*: isIp
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isNull**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/null.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/null.ts#L20)*
|
||||
*Defined in [is/null.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/null.ts#L20)*
|
||||
|
||||
*__name__*: isNull
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isNumber**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/number.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/number.ts#L20)*
|
||||
*Defined in [is/number.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/number.ts#L20)*
|
||||
|
||||
*__name__*: isNumber
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isObject**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/object.ts:25](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/object.ts#L25)*
|
||||
*Defined in [is/object.ts:25](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/object.ts#L25)*
|
||||
|
||||
*__name__*: isObject
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isObservable**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/observable.ts:27](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/observable.ts#L27)*
|
||||
*Defined in [is/observable.ts:27](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/observable.ts#L27)*
|
||||
|
||||
*__name__*: isBObservable
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isString**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/string.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/string.ts#L20)*
|
||||
*Defined in [is/string.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/string.ts#L20)*
|
||||
|
||||
*__name__*: isString
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isU8a**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/u8a.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/u8a.ts#L22)*
|
||||
*Defined in [is/u8a.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/u8a.ts#L22)*
|
||||
|
||||
*__name__*: isU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **isUndefined**(value: *`any`*): `boolean`
|
||||
|
||||
*Defined in [is/undefined.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/is/undefined.ts#L20)*
|
||||
*Defined in [is/undefined.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/is/undefined.ts#L20)*
|
||||
|
||||
*__name__*: isUndefined
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **format**(value: *`any`*): `any`
|
||||
|
||||
*Defined in [logger.ts:42](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/logger.ts#L42)*
|
||||
*Defined in [logger.ts:42](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/logger.ts#L42)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -25,7 +25,7 @@ ___
|
||||
|
||||
▸ **logger**(_type: *`string`*): [Logger](_types_.md#logger)
|
||||
|
||||
*Defined in [logger.ts:105](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/logger.ts#L105)*
|
||||
*Defined in [logger.ts:105](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/logger.ts#L105)*
|
||||
|
||||
*__name__*: Logger
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **numberToHex**(value?: *`undefined` | `number`*, bitLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [number/toHex.ts:25](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/number/toHex.ts#L25)*
|
||||
*Defined in [number/toHex.ts:25](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/number/toHex.ts#L25)*
|
||||
|
||||
*__name__*: numberToHex
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **numberToU8a**(value?: *`undefined` | `number`*, bitLength?: *`number`*): `Uint8Array`
|
||||
|
||||
*Defined in [number/toU8a.ts:23](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/number/toU8a.ts#L23)*
|
||||
*Defined in [number/toU8a.ts:23](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/number/toU8a.ts#L23)*
|
||||
|
||||
*__name__*: numberToU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **promisify**(self: *`any`*, fn: *`Function`*, ...params: *`Array`<`any`>*): `Promise`<`any`>
|
||||
|
||||
*Defined in [promisify.ts:21](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/promisify.ts#L21)*
|
||||
*Defined in [promisify.ts:21](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/promisify.ts#L21)*
|
||||
|
||||
*__name__*: promisify
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **stringLowerFirst**(_value: *`string`*): `string`
|
||||
|
||||
*Defined in [string/lowerFirst.ts:23](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/string/lowerFirst.ts#L23)*
|
||||
*Defined in [string/lowerFirst.ts:23](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/string/lowerFirst.ts#L23)*
|
||||
|
||||
*__name__*: stringLowerFirst
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **stringShorten**(_value: *`any`*, prefixLength?: *`number`*): `string`
|
||||
|
||||
*Defined in [string/shorten.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/string/shorten.ts#L20)*
|
||||
*Defined in [string/shorten.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/string/shorten.ts#L20)*
|
||||
|
||||
*__name__*: stringShorten
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **stringToU8a**(value?: *`undefined` | `string`*): `Uint8Array`
|
||||
|
||||
*Defined in [string/toU8a.ts:40](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/string/toU8a.ts#L40)*
|
||||
*Defined in [string/toU8a.ts:40](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/string/toU8a.ts#L40)*
|
||||
|
||||
*__name__*: stringToU8a
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **stringUpperFirst**(_value: *`string`*): `string`
|
||||
|
||||
*Defined in [string/upperFirst.ts:23](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/string/upperFirst.ts#L23)*
|
||||
*Defined in [string/upperFirst.ts:23](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/string/upperFirst.ts#L23)*
|
||||
|
||||
*__name__*: stringUpperFirst
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **syncify**(promise: *`Promise`<`any`>*): `any`
|
||||
|
||||
*Defined in [syncify.ts:11](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/syncify.ts#L11)*
|
||||
*Defined in [syncify.ts:11](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/syncify.ts#L11)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
**Ƭ Logger**: *`object`*
|
||||
|
||||
*Defined in [types.ts:15](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/types.ts#L15)*
|
||||
*Defined in [types.ts:15](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/types.ts#L15)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -33,7 +33,7 @@ ___
|
||||
|
||||
**Ƭ Logger$Data**: *`Array`<`any` | `Logger$Data$Fn`>*
|
||||
|
||||
*Defined in [types.ts:13](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/types.ts#L13)*
|
||||
*Defined in [types.ts:13](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/types.ts#L13)*
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **u8aConcat**(..._list: *`Array`<`Uint8Array` | `string`>*): `Uint8Array`
|
||||
|
||||
*Defined in [u8a/concat.ts:25](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/u8a/concat.ts#L25)*
|
||||
*Defined in [u8a/concat.ts:25](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/u8a/concat.ts#L25)*
|
||||
|
||||
*__name__*: u8aConcat
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **u8aFixLength**(value: *`Uint8Array`*, bitLength?: *`number`*, atStart?: *`boolean`*): `Uint8Array`
|
||||
|
||||
*Defined in [u8a/fixLength.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/u8a/fixLength.ts#L22)*
|
||||
*Defined in [u8a/fixLength.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/u8a/fixLength.ts#L22)*
|
||||
|
||||
*__name__*: u8aFixLength
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **u8aToBn**(value: *`Uint8Array`*, options?: *[ToBnOptions](../interfaces/_types_.tobnoptions.md) | `boolean`*): `BN`
|
||||
|
||||
*Defined in [u8a/toBn.ts:30](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/u8a/toBn.ts#L30)*
|
||||
*Defined in [u8a/toBn.ts:30](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/u8a/toBn.ts#L30)*
|
||||
|
||||
*__name__*: u8aToBn
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **u8aToBuffer**(value?: *`Uint8Array`*): `Buffer`
|
||||
|
||||
*Defined in [u8a/toBuffer.ts:20](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/u8a/toBuffer.ts#L20)*
|
||||
*Defined in [u8a/toBuffer.ts:20](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/u8a/toBuffer.ts#L20)*
|
||||
|
||||
*__name__*: u8aToBuffer
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **u8aToHex**(value?: *`Uint8Array` | `null`*, bitLength?: *`number`*, isPrefixed?: *`boolean`*): `string`
|
||||
|
||||
*Defined in [u8a/toHex.ts:22](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/u8a/toHex.ts#L22)*
|
||||
*Defined in [u8a/toHex.ts:22](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/u8a/toHex.ts#L22)*
|
||||
|
||||
*__name__*: u8aToHex
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **u8aToString**(value?: *`Uint8Array`*): `string`
|
||||
|
||||
*Defined in [u8a/toString.ts:36](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/u8a/toString.ts#L36)*
|
||||
*Defined in [u8a/toString.ts:36](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/u8a/toString.ts#L36)*
|
||||
|
||||
*__name__*: u8aToString
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
▸ **u8aToU8a**(value?: *`Array`<`number`> | `Buffer` | `Uint8Array` | `string` | `null`*): `Uint8Array`
|
||||
|
||||
*Defined in [u8a/toU8a.ts:28](https://github.com/polkadot-js/common/blob/5d6dd86/packages/util/src/u8a/toU8a.ts#L28)*
|
||||
*Defined in [u8a/toU8a.ts:28](https://github.com/polkadot-js/common/blob/2d4097d/packages/util/src/u8a/toU8a.ts#L28)*
|
||||
|
||||
*__name__*: u8aToU8a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user