[CI Skip] 0.45.15
This commit is contained in:
@@ -4,3 +4,8 @@
|
||||
|
||||
An RxJs wrapper around the [@polkadot/rpc-core](../rpc-core).
|
||||
|
||||
Classes
|
||||
-------
|
||||
|
||||
[Classes](SUMMARY.md)
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1 @@
|
||||
* ["cached.spec"](modules/_cached_spec_.md)
|
||||
* ["index"](modules/_index_.md)
|
||||
* [RpcRx](classes/_index_.rpcrx.md)
|
||||
* ["index.spec"](modules/_index_spec_.md)
|
||||
* ["replay.spec"](modules/_replay_spec_.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
|
||||
|
||||
*__name__*: RpcRx
|
||||
|
||||
*__summary__*: The RxJS API is a wrapper around the API.
|
||||
|
||||
*__description__*: It allows wrapping API components with observables using RxJS.
|
||||
|
||||
*__example__*:
|
||||
|
||||
```javascript
|
||||
import RpcRx from '@polkadot/rpc-rx';
|
||||
import WsProvider from '@polkadot/rpc-provider/ws';
|
||||
|
||||
const provider = new WsProvider('http://127.0.0.1:9944');
|
||||
const api = new RpcRx(provider);
|
||||
```
|
||||
|
||||
# Hierarchy
|
||||
|
||||
**RpcRx**
|
||||
|
||||
# Implements
|
||||
|
||||
* `object`
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new RpcRx**(providerOrRpc?: *`Rpc` \| `ProviderInterface`*): [RpcRx](_index_.rpcrx.md)
|
||||
|
||||
*Defined in [index.ts:39](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/index.ts#L39)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Optional` providerOrRpc | `Rpc` \| `ProviderInterface` |
|
||||
|
||||
**Returns:** [RpcRx](_index_.rpcrx.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="author"></a>
|
||||
|
||||
## author
|
||||
|
||||
**● author**: *[RpcRxInterface$Section](../modules/_types_.md#rpcrxinterface_section)*
|
||||
|
||||
*Defined in [index.ts:36](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/index.ts#L36)*
|
||||
|
||||
___
|
||||
<a id="chain"></a>
|
||||
|
||||
## chain
|
||||
|
||||
**● chain**: *[RpcRxInterface$Section](../modules/_types_.md#rpcrxinterface_section)*
|
||||
|
||||
*Defined in [index.ts:37](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/index.ts#L37)*
|
||||
|
||||
___
|
||||
<a id="state"></a>
|
||||
|
||||
## state
|
||||
|
||||
**● state**: *[RpcRxInterface$Section](../modules/_types_.md#rpcrxinterface_section)*
|
||||
|
||||
*Defined in [index.ts:38](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/index.ts#L38)*
|
||||
|
||||
___
|
||||
<a id="system"></a>
|
||||
|
||||
## system
|
||||
|
||||
**● system**: *[RpcRxInterface$Section](../modules/_types_.md#rpcrxinterface_section)*
|
||||
|
||||
*Defined in [index.ts:39](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/index.ts#L39)*
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `BehaviorSubject`<`boolean`>
|
||||
|
||||
*Defined in [index.ts:59](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/index.ts#L59)*
|
||||
|
||||
**Returns:** `BehaviorSubject`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="on"></a>
|
||||
|
||||
## on
|
||||
|
||||
▸ **on**(type: *[RpcRxInterface$Events](../modules/_types_.md#rpcrxinterface_events)*, handler: *`function`*): `void`
|
||||
|
||||
*Defined in [index.ts:63](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/index.ts#L63)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| type | [RpcRxInterface$Events](../modules/_types_.md#rpcrxinterface_events) |
|
||||
| handler | `function` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [RpcRx](../classes/_index_.rpcrx.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -8,7 +8,7 @@
|
||||
|
||||
**Ƭ RpcRxInterface**: *`object`*
|
||||
|
||||
*Defined in [types.ts:16](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/types.ts#L16)*
|
||||
*Defined in [types.ts:16](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-rx/src/types.ts#L16)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
@@ -19,7 +19,7 @@ ___
|
||||
|
||||
**Ƭ RpcRxInterface$Events**: *`ProviderInterface$Emitted`*
|
||||
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/types.ts#L14)*
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-rx/src/types.ts#L14)*
|
||||
|
||||
___
|
||||
<a id="rpcrxinterface_method"></a>
|
||||
@@ -28,7 +28,7 @@ ___
|
||||
|
||||
**Ƭ RpcRxInterface$Method**: *`function`*
|
||||
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/types.ts#L8)*
|
||||
*Defined in [types.ts:8](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-rx/src/types.ts#L8)*
|
||||
|
||||
#### Type declaration
|
||||
▸(...params: *`Array`<`any`>*): `Observable`<`any`>
|
||||
@@ -48,7 +48,7 @@ ___
|
||||
|
||||
**Ƭ RpcRxInterface$Section**: *`object`*
|
||||
|
||||
*Defined in [types.ts:10](https://github.com/polkadot-js/api/blob/0b9484f/packages/rpc-rx/src/types.ts#L10)*
|
||||
*Defined in [types.ts:10](https://github.com/polkadot-js/api/blob/73a5ea1/packages/rpc-rx/src/types.ts#L10)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user