[CI Skip] 0.38.2
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
|
||||
@polkadot/api-derive
|
||||
====================
|
||||
|
||||
Common functions used across Polkadot, derived from RPC calls and storage queries.
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
* ["cache"](modules/_cache_.md)
|
||||
* ["cache.spec"](modules/_cache_spec_.md)
|
||||
* ["chain/bestNumber"](modules/_chain_bestnumber_.md)
|
||||
* ["chain/index"](modules/_chain_index_.md)
|
||||
* ["index"](modules/_index_.md)
|
||||
* [Derive](interfaces/_index_.derive.md)
|
||||
* ["index.spec"](modules/_index_spec_.md)
|
||||
* ["session/index"](modules/_session_index_.md)
|
||||
* ["session/sessionProgress"](modules/_session_sessionprogress_.md)
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
**Derive**
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="chain"></a>
|
||||
|
||||
## chain
|
||||
|
||||
**● chain**: *`ReturnTypes`<["chain/index"](../modules/_chain_index_.md)>*
|
||||
|
||||
*Defined in [index.ts:23](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/index.ts#L23)*
|
||||
|
||||
___
|
||||
<a id="session"></a>
|
||||
|
||||
## session
|
||||
|
||||
**● session**: *`ReturnTypes`<["session/index"](../modules/_session_index_.md)>*
|
||||
|
||||
*Defined in [index.ts:24](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/index.ts#L24)*
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
# Functions
|
||||
|
||||
<a id="cache"></a>
|
||||
|
||||
## `<Const>` cache
|
||||
|
||||
▸ **cache**(fn: *`Function`*, map?: *`WeakMap`<`object`, `any`>*): `(Anonymous function)`
|
||||
|
||||
*Defined in [cache.ts:23](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/cache.ts#L23)*
|
||||
|
||||
Create memoization for a 2-currified function.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Default value | Description |
|
||||
| ------ | ------ | ------ | ------ |
|
||||
| fn | `Function` | - | The function to memoize. |
|
||||
| `Default value` map | `WeakMap`<`object`, `any`> | new WeakMap() | The Map used to cache function returns. |
|
||||
|
||||
**Returns:** `(Anonymous function)`
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||
# Functions
|
||||
|
||||
<a id="bestnumber"></a>
|
||||
|
||||
## bestNumber
|
||||
|
||||
▸ **bestNumber**(api: *`ApiRx`*): `(Anonymous function)`
|
||||
|
||||
*Defined in [chain/bestNumber.ts:13](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/chain/bestNumber.ts#L13)*
|
||||
|
||||
Get the latest block number.
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| api | `ApiRx` |
|
||||
|
||||
**Returns:** `(Anonymous function)`
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Interfaces
|
||||
|
||||
* [Derive](../interfaces/_index_.derive.md)
|
||||
|
||||
### Functions
|
||||
|
||||
* [decorateDerive](_index_.md#decoratederive)
|
||||
|
||||
---
|
||||
|
||||
# Functions
|
||||
|
||||
<a id="decoratederive"></a>
|
||||
|
||||
## decorateDerive
|
||||
|
||||
▸ **decorateDerive**(api: *`ApiRx`*): [Derive](../interfaces/_index_.derive.md)
|
||||
|
||||
*Defined in [index.ts:27](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/index.ts#L27)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| api | `ApiRx` |
|
||||
|
||||
**Returns:** [Derive](../interfaces/_index_.derive.md)
|
||||
|
||||
___
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
# Functions
|
||||
|
||||
<a id="sessionprogress"></a>
|
||||
|
||||
## sessionProgress
|
||||
|
||||
▸ **sessionProgress**(api: *`ApiRx`*): `(Anonymous function)`
|
||||
|
||||
*Defined in [session/sessionProgress.ts:13](https://github.com/polkadot-js/api/blob/f6c93e4/packages/api-derive/src/session/sessionProgress.ts#L13)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| api | `ApiRx` |
|
||||
|
||||
**Returns:** `(Anonymous function)`
|
||||
|
||||
___
|
||||
|
||||
Reference in New Issue
Block a user