Expose status from result, remove now-unused api-observable docs (#545)
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
|
||||
@polkadot/api-observable
|
||||
========================
|
||||
|
||||
A combination Observable wrapper around [@polkadot/rpc-rx](packages/rpc-rx), including both [JSON-RPC methods](https://polkadot.js.org/api/METHODS_RPC.html) and [Storage methods](https://polkadot.js.org/api/METHODS_STORAGE.html)
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
* ["Base"](modules/_base_.md)
|
||||
* [ApiBase](classes/_base_.apibase.md)
|
||||
* ["Calls"](modules/_calls_.md)
|
||||
* [ApiCalls](classes/_calls_.apicalls.md)
|
||||
* ["Combined"](modules/_combined_.md)
|
||||
* [ApiCombined](classes/_combined_.apicombined.md)
|
||||
* ["Queries"](modules/_queries_.md)
|
||||
* [ApiQueries](classes/_queries_.apiqueries.md)
|
||||
* ["classes"](modules/_classes_.md)
|
||||
* [RxProposal](classes/_classes_.rxproposal.md)
|
||||
* [RxProposalDeposits](classes/_classes_.rxproposaldeposits.md)
|
||||
* ["index"](modules/_index_.md)
|
||||
* [Api](classes/_index_.api.md)
|
||||
* ["types"](modules/_types_.md)
|
||||
@@ -1,148 +0,0 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
**ApiBase**
|
||||
|
||||
↳ [ApiQueries](_queries_.apiqueries.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new ApiBase**(api: *`RpcRxInterface`*): [ApiBase](_base_.apibase.md)
|
||||
|
||||
*Defined in [Base.ts:33](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L33)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| api | `RpcRxInterface` |
|
||||
|
||||
**Returns:** [ApiBase](_base_.apibase.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="whenready"></a>
|
||||
|
||||
## whenReady
|
||||
|
||||
**● whenReady**: *`Observable`<`boolean`>*
|
||||
|
||||
*Defined in [Base.ts:33](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L33)*
|
||||
|
||||
___
|
||||
<a id="extrinsics"></a>
|
||||
|
||||
## `<Static>` extrinsics
|
||||
|
||||
**● extrinsics**: *`ModulesWithMethods`* = extrinsicsStatic
|
||||
|
||||
*Defined in [Base.ts:41](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L41)*
|
||||
|
||||
___
|
||||
<a id="storage"></a>
|
||||
|
||||
## `<Static>` storage
|
||||
|
||||
**● storage**: *`Storage`* = storageStatic
|
||||
|
||||
*Defined in [Base.ts:42](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L42)*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="genesishash"></a>
|
||||
|
||||
## genesisHash
|
||||
|
||||
getgenesisHash(): `Hash`
|
||||
|
||||
*Defined in [Base.ts:87](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L87)*
|
||||
|
||||
**Returns:** `Hash`
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `Observable`<`boolean`>
|
||||
|
||||
*Defined in [Base.ts:91](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L91)*
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="rawcall"></a>
|
||||
|
||||
## rawCall
|
||||
|
||||
▸ **rawCall**<`T`>(__namedParameters: *`object`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Defined in [Base.ts:95](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L95)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstorage"></a>
|
||||
|
||||
## rawStorage
|
||||
|
||||
▸ **rawStorage**<`T`>(key: * `Uint8Array` | `StorageFunction`*, ...params: *`Array`<`any`>*): `Observable`< `T` | `undefined`>
|
||||
|
||||
*Defined in [Base.ts:108](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L108)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` | `StorageFunction`|
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`< `T` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="rawstoragemulti"></a>
|
||||
|
||||
## rawStorageMulti
|
||||
|
||||
▸ **rawStorageMulti**<`T`>(...keys: *`Array`< `Uint8Array` | [`StorageFunction`] | [`StorageFunction`, `any`]>*): `Observable`<`T`>
|
||||
|
||||
*Defined in [Base.ts:123](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L123)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T : `[]`
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` keys | `Array`< `Uint8Array` | [`StorageFunction`] | [`StorageFunction`, `any`]> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
|
||||
@@ -1,771 +0,0 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
↳ [ApiQueries](_queries_.apiqueries.md)
|
||||
|
||||
**↳ ApiCalls**
|
||||
|
||||
↳ [ApiCombined](_combined_.apicombined.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new ApiCalls**(api: *`RpcRxInterface`*): [ApiCalls](_calls_.apicalls.md)
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[constructor](_base_.apibase.md#constructor)*
|
||||
|
||||
*Defined in [Base.ts:33](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L33)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| api | `RpcRxInterface` |
|
||||
|
||||
**Returns:** [ApiCalls](_calls_.apicalls.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="whenready"></a>
|
||||
|
||||
## whenReady
|
||||
|
||||
**● whenReady**: *`Observable`<`boolean`>*
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[whenReady](_base_.apibase.md#whenready)*
|
||||
|
||||
*Defined in [Base.ts:33](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L33)*
|
||||
|
||||
___
|
||||
<a id="extrinsics"></a>
|
||||
|
||||
## `<Static>` extrinsics
|
||||
|
||||
**● extrinsics**: *`ModulesWithMethods`* = extrinsicsStatic
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[extrinsics](_base_.apibase.md#extrinsics)*
|
||||
|
||||
*Defined in [Base.ts:41](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L41)*
|
||||
|
||||
___
|
||||
<a id="storage"></a>
|
||||
|
||||
## `<Static>` storage
|
||||
|
||||
**● storage**: *`Storage`* = storageStatic
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[storage](_base_.apibase.md#storage)*
|
||||
|
||||
*Defined in [Base.ts:42](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L42)*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="genesishash"></a>
|
||||
|
||||
## genesisHash
|
||||
|
||||
getgenesisHash(): `Hash`
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[genesisHash](_base_.apibase.md#genesishash)*
|
||||
|
||||
*Defined in [Base.ts:87](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L87)*
|
||||
|
||||
**Returns:** `Hash`
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="accountnonce"></a>
|
||||
|
||||
## accountNonce
|
||||
|
||||
▸ **accountNonce**(address: * `AccountId` | `string`*): `Observable`< `Index` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[accountNonce](_queries_.apiqueries.md#accountnonce)*
|
||||
|
||||
*Defined in [Queries.ts:18](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L18)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Index` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="balancefree"></a>
|
||||
|
||||
## balanceFree
|
||||
|
||||
▸ **balanceFree**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[balanceFree](_queries_.apiqueries.md#balancefree)*
|
||||
|
||||
*Defined in [Queries.ts:22](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="balancereserved"></a>
|
||||
|
||||
## balanceReserved
|
||||
|
||||
▸ **balanceReserved**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[balanceReserved](_queries_.apiqueries.md#balancereserved)*
|
||||
|
||||
*Defined in [Queries.ts:26](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L26)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="bestnumber"></a>
|
||||
|
||||
## bestNumber
|
||||
|
||||
▸ **bestNumber**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:13](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L13)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="bestnumberfinalised"></a>
|
||||
|
||||
## bestNumberFinalised
|
||||
|
||||
▸ **bestNumberFinalised**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:25](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L25)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="blocknow"></a>
|
||||
|
||||
## blockNow
|
||||
|
||||
▸ **blockNow**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[blockNow](_queries_.apiqueries.md#blocknow)*
|
||||
|
||||
*Defined in [Queries.ts:34](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L34)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="blockperiod"></a>
|
||||
|
||||
## blockPeriod
|
||||
|
||||
▸ **blockPeriod**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[blockPeriod](_queries_.apiqueries.md#blockperiod)*
|
||||
|
||||
*Defined in [Queries.ts:30](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L30)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="chain"></a>
|
||||
|
||||
## chain
|
||||
|
||||
▸ **chain**(): `Observable`< `Text` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:37](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L37)*
|
||||
|
||||
**Returns:** `Observable`< `Text` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="chainproperties"></a>
|
||||
|
||||
## chainProperties
|
||||
|
||||
▸ **chainProperties**(): `Observable`<`ChainProperties`>
|
||||
|
||||
*Defined in [Calls.ts:41](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L41)*
|
||||
|
||||
**Returns:** `Observable`<`ChainProperties`>
|
||||
|
||||
___
|
||||
<a id="democracylaunchperiod"></a>
|
||||
|
||||
## democracyLaunchPeriod
|
||||
|
||||
▸ **democracyLaunchPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyLaunchPeriod](_queries_.apiqueries.md#democracylaunchperiod)*
|
||||
|
||||
*Defined in [Queries.ts:38](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L38)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracynexttally"></a>
|
||||
|
||||
## democracyNextTally
|
||||
|
||||
▸ **democracyNextTally**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyNextTally](_queries_.apiqueries.md#democracynexttally)*
|
||||
|
||||
*Defined in [Queries.ts:42](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L42)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyvotingperiod"></a>
|
||||
|
||||
## democracyVotingPeriod
|
||||
|
||||
▸ **democracyVotingPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[democracyVotingPeriod](_queries_.apiqueries.md#democracyvotingperiod)*
|
||||
|
||||
*Defined in [Queries.ts:125](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L125)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="eralastlengthchange"></a>
|
||||
|
||||
## eraLastLengthChange
|
||||
|
||||
▸ **eraLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[eraLastLengthChange](_queries_.apiqueries.md#eralastlengthchange)*
|
||||
|
||||
*Defined in [Queries.ts:150](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L150)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="fees"></a>
|
||||
|
||||
## fees
|
||||
|
||||
▸ **fees**(): `Observable`<[RxFees](../modules/_types_.md#rxfees)>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[fees](_queries_.apiqueries.md#fees)*
|
||||
|
||||
*Defined in [Queries.ts:129](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L129)*
|
||||
|
||||
**Returns:** `Observable`<[RxFees](../modules/_types_.md#rxfees)>
|
||||
|
||||
___
|
||||
<a id="getaccountenumset"></a>
|
||||
|
||||
## getAccountEnumSet
|
||||
|
||||
▸ **getAccountEnumSet**(index: * `AccountIndex` | `BN` | `number`*): `Observable`< `Array`<`AccountId`> | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[getAccountEnumSet](_queries_.apiqueries.md#getaccountenumset)*
|
||||
|
||||
*Defined in [Queries.ts:46](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L46)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| index | `AccountIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< `Array`<`AccountId`> | `undefined`>
|
||||
|
||||
___
|
||||
<a id="getblock"></a>
|
||||
|
||||
## getBlock
|
||||
|
||||
▸ **getBlock**(hash: *`Uint8Array`*): `Observable`< `SignedBlock` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:53](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L53)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| hash | `Uint8Array` |
|
||||
|
||||
**Returns:** `Observable`< `SignedBlock` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `Observable`<`boolean`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[isConnected](_base_.apibase.md#isconnected)*
|
||||
|
||||
*Defined in [Base.ts:91](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L91)*
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="nextaccountenumset"></a>
|
||||
|
||||
## nextAccountEnumSet
|
||||
|
||||
▸ **nextAccountEnumSet**(): `Observable`< `AccountIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[nextAccountEnumSet](_queries_.apiqueries.md#nextaccountenumset)*
|
||||
|
||||
*Defined in [Queries.ts:57](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L57)*
|
||||
|
||||
**Returns:** `Observable`< `AccountIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="proposaldeposits"></a>
|
||||
|
||||
## proposalDeposits
|
||||
|
||||
▸ **proposalDeposits**(proposalId: * `PropIndex` | `BN` | `number`*): `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[proposalDeposits](_queries_.apiqueries.md#proposaldeposits)*
|
||||
|
||||
*Defined in [Queries.ts:61](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L61)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| proposalId | `PropIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="publicproposals"></a>
|
||||
|
||||
## publicProposals
|
||||
|
||||
▸ **publicProposals**(): `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[publicProposals](_queries_.apiqueries.md#publicproposals)*
|
||||
|
||||
*Defined in [Queries.ts:74](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L74)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
___
|
||||
<a id="rawcall"></a>
|
||||
|
||||
## rawCall
|
||||
|
||||
▸ **rawCall**<`T`>(__namedParameters: *`object`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawCall](_base_.apibase.md#rawcall)*
|
||||
|
||||
*Defined in [Base.ts:95](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L95)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstorage"></a>
|
||||
|
||||
## rawStorage
|
||||
|
||||
▸ **rawStorage**<`T`>(key: * `Uint8Array` | `StorageFunction`*, ...params: *`Array`<`any`>*): `Observable`< `T` | `undefined`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorage](_base_.apibase.md#rawstorage)*
|
||||
|
||||
*Defined in [Base.ts:108](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L108)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` | `StorageFunction`|
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`< `T` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="rawstoragemulti"></a>
|
||||
|
||||
## rawStorageMulti
|
||||
|
||||
▸ **rawStorageMulti**<`T`>(...keys: *`Array`< `Uint8Array` | [`StorageFunction`] | [`StorageFunction`, `any`]>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorageMulti](_base_.apibase.md#rawstoragemulti)*
|
||||
|
||||
*Defined in [Base.ts:123](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L123)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T : `[]`
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` keys | `Array`< `Uint8Array` | [`StorageFunction`] | [`StorageFunction`, `any`]> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="referendumcount"></a>
|
||||
|
||||
## referendumCount
|
||||
|
||||
▸ **referendumCount**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[referendumCount](_queries_.apiqueries.md#referendumcount)*
|
||||
|
||||
*Defined in [Queries.ts:93](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L93)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="referenduminfo"></a>
|
||||
|
||||
## referendumInfo
|
||||
|
||||
▸ **referendumInfo**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`< `ReferendumInfo` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[referendumInfo](_queries_.apiqueries.md#referenduminfo)*
|
||||
|
||||
*Defined in [Queries.ts:97](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L97)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< `ReferendumInfo` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="referendumvote"></a>
|
||||
|
||||
## referendumVote
|
||||
|
||||
▸ **referendumVote**(index: * `ReferendumIndex` | `BN` | `number`*, address: * `AccountId` | `string`*): `Observable`< `Bool` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[referendumVote](_queries_.apiqueries.md#referendumvote)*
|
||||
|
||||
*Defined in [Queries.ts:110](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L110)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Bool` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="referendumvoters"></a>
|
||||
|
||||
## referendumVoters
|
||||
|
||||
▸ **referendumVoters**(index: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[referendumVoters](_queries_.apiqueries.md#referendumvoters)*
|
||||
|
||||
*Defined in [Queries.ts:114](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L114)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentindex"></a>
|
||||
|
||||
## sessionCurrentIndex
|
||||
|
||||
▸ **sessionCurrentIndex**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionCurrentIndex](_queries_.apiqueries.md#sessioncurrentindex)*
|
||||
|
||||
*Defined in [Queries.ts:162](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L162)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentstart"></a>
|
||||
|
||||
## sessionCurrentStart
|
||||
|
||||
▸ **sessionCurrentStart**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionCurrentStart](_queries_.apiqueries.md#sessioncurrentstart)*
|
||||
|
||||
*Defined in [Queries.ts:166](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L166)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlastlengthchange"></a>
|
||||
|
||||
## sessionLastLengthChange
|
||||
|
||||
▸ **sessionLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionLastLengthChange](_queries_.apiqueries.md#sessionlastlengthchange)*
|
||||
|
||||
*Defined in [Queries.ts:170](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L170)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlength"></a>
|
||||
|
||||
## sessionLength
|
||||
|
||||
▸ **sessionLength**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionLength](_queries_.apiqueries.md#sessionlength)*
|
||||
|
||||
*Defined in [Queries.ts:174](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L174)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionreward"></a>
|
||||
|
||||
## sessionReward
|
||||
|
||||
▸ **sessionReward**(): `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionReward](_queries_.apiqueries.md#sessionreward)*
|
||||
|
||||
*Defined in [Queries.ts:154](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L154)*
|
||||
|
||||
**Returns:** `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionrewardcurrent"></a>
|
||||
|
||||
## sessionRewardCurrent
|
||||
|
||||
▸ **sessionRewardCurrent**(): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionRewardCurrent](_queries_.apiqueries.md#sessionrewardcurrent)*
|
||||
|
||||
*Defined in [Queries.ts:158](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L158)*
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionvalidators"></a>
|
||||
|
||||
## sessionValidators
|
||||
|
||||
▸ **sessionValidators**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionValidators](_queries_.apiqueries.md#sessionvalidators)*
|
||||
|
||||
*Defined in [Queries.ts:182](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L182)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="sessionsperera"></a>
|
||||
|
||||
## sessionsPerEra
|
||||
|
||||
▸ **sessionsPerEra**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[sessionsPerEra](_queries_.apiqueries.md#sessionsperera)*
|
||||
|
||||
*Defined in [Queries.ts:178](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L178)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingintentions"></a>
|
||||
|
||||
## stakingIntentions
|
||||
|
||||
▸ **stakingIntentions**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingIntentions](_queries_.apiqueries.md#stakingintentions)*
|
||||
|
||||
*Defined in [Queries.ts:193](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L193)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingnominating"></a>
|
||||
|
||||
## stakingNominating
|
||||
|
||||
▸ **stakingNominating**(address: * `AccountId` | `string`*): `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingNominating](_queries_.apiqueries.md#stakingnominating)*
|
||||
|
||||
*Defined in [Queries.ts:215](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L215)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingnominatorsfor"></a>
|
||||
|
||||
## stakingNominatorsFor
|
||||
|
||||
▸ **stakingNominatorsFor**(address: * `AccountId` | `string`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[stakingNominatorsFor](_queries_.apiqueries.md#stakingnominatorsfor)*
|
||||
|
||||
*Defined in [Queries.ts:204](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L204)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="submitandwatchextrinsic"></a>
|
||||
|
||||
## submitAndWatchExtrinsic
|
||||
|
||||
▸ **submitAndWatchExtrinsic**(extrinsic: *`Extrinsic`*): `Observable`< `ExtrinsicStatus` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:81](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L81)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| extrinsic | `Extrinsic` |
|
||||
|
||||
**Returns:** `Observable`< `ExtrinsicStatus` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="submitextrinsic"></a>
|
||||
|
||||
## submitExtrinsic
|
||||
|
||||
▸ **submitExtrinsic**(extrinsic: *`Extrinsic`*): `Observable`< `Hash` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:77](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L77)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| extrinsic | `Extrinsic` |
|
||||
|
||||
**Returns:** `Observable`< `Hash` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="subscribefinalisedhead"></a>
|
||||
|
||||
## subscribeFinalisedHead
|
||||
|
||||
▸ **subscribeFinalisedHead**(): `Observable`< `Header` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:57](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L57)*
|
||||
|
||||
**Returns:** `Observable`< `Header` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="subscribenewhead"></a>
|
||||
|
||||
## subscribeNewHead
|
||||
|
||||
▸ **subscribeNewHead**(): `Observable`< `Header` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:63](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L63)*
|
||||
|
||||
**Returns:** `Observable`< `Header` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="systemevents"></a>
|
||||
|
||||
## systemEvents
|
||||
|
||||
▸ **systemEvents**(): `Observable`<`Array`<`EventRecord`>>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[systemEvents](_queries_.apiqueries.md#systemevents)*
|
||||
|
||||
*Defined in [Queries.ts:219](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L219)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`EventRecord`>>
|
||||
|
||||
___
|
||||
<a id="systemname"></a>
|
||||
|
||||
## systemName
|
||||
|
||||
▸ **systemName**(): `Observable`< `Text` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:69](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L69)*
|
||||
|
||||
**Returns:** `Observable`< `Text` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="systemversion"></a>
|
||||
|
||||
## systemVersion
|
||||
|
||||
▸ **systemVersion**(): `Observable`< `Text` | `undefined`>
|
||||
|
||||
*Defined in [Calls.ts:73](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Calls.ts#L73)*
|
||||
|
||||
**Returns:** `Observable`< `Text` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="validatorcount"></a>
|
||||
|
||||
## validatorCount
|
||||
|
||||
▸ **validatorCount**(): `Observable`< `u32` | `undefined`>
|
||||
|
||||
*Inherited from [ApiQueries](_queries_.apiqueries.md).[validatorCount](_queries_.apiqueries.md#validatorcount)*
|
||||
|
||||
*Defined in [Queries.ts:230](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L230)*
|
||||
|
||||
**Returns:** `Observable`< `u32` | `undefined`>
|
||||
|
||||
___
|
||||
|
||||
@@ -1,431 +0,0 @@
|
||||
|
||||
|
||||
# Type parameters
|
||||
#### S : `ConstructorDef`
|
||||
#### T : `object`
|
||||
#### V : `object`
|
||||
#### E : `object`
|
||||
# Hierarchy
|
||||
|
||||
`Struct`
|
||||
|
||||
**↳ RxProposal**
|
||||
|
||||
# Implements
|
||||
|
||||
* `Codec`
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new RxProposal**(value: *`Tuple`*): [RxProposal](_classes_.rxproposal.md)
|
||||
|
||||
*Overrides Struct.__constructor*
|
||||
|
||||
*Defined in [classes.ts:11](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/classes.ts#L11)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Tuple` |
|
||||
|
||||
**Returns:** [RxProposal](_classes_.rxproposal.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="___tostringtag"></a>
|
||||
|
||||
## __@toStringTag
|
||||
|
||||
**● __@toStringTag**: *`string`*
|
||||
|
||||
*Inherited from Map.[Symbol.toStringTag]*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:130*
|
||||
|
||||
___
|
||||
<a id="size"></a>
|
||||
|
||||
## size
|
||||
|
||||
**● size**: *`number`*
|
||||
|
||||
*Inherited from Map.size*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:28*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="type"></a>
|
||||
|
||||
## Type
|
||||
|
||||
getType(): `E`
|
||||
|
||||
*Inherited from Struct.Type*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:142](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L142)*
|
||||
|
||||
*__description__*: Returns the Type description to sthe structure
|
||||
|
||||
**Returns:** `E`
|
||||
|
||||
___
|
||||
<a id="address"></a>
|
||||
|
||||
## address
|
||||
|
||||
getaddress(): `AccountId`
|
||||
|
||||
*Defined in [classes.ts:20](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/classes.ts#L20)*
|
||||
|
||||
**Returns:** `AccountId`
|
||||
|
||||
___
|
||||
<a id="encodedlength"></a>
|
||||
|
||||
## encodedLength
|
||||
|
||||
getencodedLength(): `number`
|
||||
|
||||
*Inherited from Struct.encodedLength*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:149](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L149)*
|
||||
|
||||
*__description__*: The length of the value when encoded as a Uint8Array
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
___
|
||||
<a id="id"></a>
|
||||
|
||||
## id
|
||||
|
||||
getid(): `PropIndex`
|
||||
|
||||
*Defined in [classes.ts:24](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/classes.ts#L24)*
|
||||
|
||||
**Returns:** `PropIndex`
|
||||
|
||||
___
|
||||
<a id="proposal"></a>
|
||||
|
||||
## proposal
|
||||
|
||||
getproposal(): `Proposal`
|
||||
|
||||
*Defined in [classes.ts:28](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/classes.ts#L28)*
|
||||
|
||||
**Returns:** `Proposal`
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="___iterator"></a>
|
||||
|
||||
## __@iterator
|
||||
|
||||
▸ **__@iterator**(): `IterableIterator`<[`keyof S`, `Codec`]>
|
||||
|
||||
*Inherited from Map.[Symbol.iterator]*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:113*
|
||||
|
||||
Returns an iterable of entries in the map.
|
||||
|
||||
**Returns:** `IterableIterator`<[`keyof S`, `Codec`]>
|
||||
|
||||
___
|
||||
<a id="clear"></a>
|
||||
|
||||
## clear
|
||||
|
||||
▸ **clear**(): `void`
|
||||
|
||||
*Inherited from Map.clear*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:22*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="delete"></a>
|
||||
|
||||
## delete
|
||||
|
||||
▸ **delete**(key: *`keyof S`*): `boolean`
|
||||
|
||||
*Inherited from Map.delete*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:23*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
___
|
||||
<a id="entries"></a>
|
||||
|
||||
## entries
|
||||
|
||||
▸ **entries**(): `IterableIterator`<[`keyof S`, `Codec`]>
|
||||
|
||||
*Inherited from Map.entries*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:118*
|
||||
|
||||
Returns an iterable of key, value pairs for every entry in the map.
|
||||
|
||||
**Returns:** `IterableIterator`<[`keyof S`, `Codec`]>
|
||||
|
||||
___
|
||||
<a id="foreach"></a>
|
||||
|
||||
## forEach
|
||||
|
||||
▸ **forEach**(callbackfn: *`function`*, thisArg?: *`any`*): `void`
|
||||
|
||||
*Inherited from Map.forEach*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:24*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| callbackfn | `function` |
|
||||
| `Optional` thisArg | `any` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(name: *`keyof S`*): `Codec` | `undefined`
|
||||
|
||||
*Inherited from Struct.get*
|
||||
|
||||
*Overrides Map.get*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:159](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L159)*
|
||||
|
||||
*__description__*: Returns a specific names entry in the structure
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ------ | ------ |
|
||||
| name | `keyof S` | The name of the entry to retrieve |
|
||||
|
||||
**Returns:** `Codec` | `undefined`
|
||||
|
||||
___
|
||||
<a id="getatindex"></a>
|
||||
|
||||
## getAtIndex
|
||||
|
||||
▸ **getAtIndex**(index: *`number`*): `Codec`
|
||||
|
||||
*Inherited from Struct.getAtIndex*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:166](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L166)*
|
||||
|
||||
*__description__*: Returns the values of a member at a specific index (Rather use get(name) for performance)
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| index | `number` |
|
||||
|
||||
**Returns:** `Codec`
|
||||
|
||||
___
|
||||
<a id="has"></a>
|
||||
|
||||
## has
|
||||
|
||||
▸ **has**(key: *`keyof S`*): `boolean`
|
||||
|
||||
*Inherited from Map.has*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:26*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
___
|
||||
<a id="keys"></a>
|
||||
|
||||
## keys
|
||||
|
||||
▸ **keys**(): `IterableIterator`<`keyof S`>
|
||||
|
||||
*Inherited from Map.keys*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:123*
|
||||
|
||||
Returns an iterable of keys in the map
|
||||
|
||||
**Returns:** `IterableIterator`<`keyof S`>
|
||||
|
||||
___
|
||||
<a id="set"></a>
|
||||
|
||||
## set
|
||||
|
||||
▸ **set**(key: *`keyof S`*, value: *`Codec`*): `this`
|
||||
|
||||
*Inherited from Map.set*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:27*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
| value | `Codec` |
|
||||
|
||||
**Returns:** `this`
|
||||
|
||||
___
|
||||
<a id="toarray"></a>
|
||||
|
||||
## toArray
|
||||
|
||||
▸ **toArray**(): `Array`<`Codec`>
|
||||
|
||||
*Inherited from Struct.toArray*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:173](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L173)*
|
||||
|
||||
*__description__*: Converts the Object to an standard JavaScript Array
|
||||
|
||||
**Returns:** `Array`<`Codec`>
|
||||
|
||||
___
|
||||
<a id="tohex"></a>
|
||||
|
||||
## toHex
|
||||
|
||||
▸ **toHex**(): `string`
|
||||
|
||||
*Inherited from Struct.toHex*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:180](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L180)*
|
||||
|
||||
*__description__*: Returns a hex string representation of the value
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="tojson"></a>
|
||||
|
||||
## toJSON
|
||||
|
||||
▸ **toJSON**(): `any`
|
||||
|
||||
*Inherited from Struct.toJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:187](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L187)*
|
||||
|
||||
*__description__*: Converts the Object to JSON, typically used for RPC transfers
|
||||
|
||||
**Returns:** `any`
|
||||
|
||||
___
|
||||
<a id="tostring"></a>
|
||||
|
||||
## toString
|
||||
|
||||
▸ **toString**(): `string`
|
||||
|
||||
*Inherited from Struct.toString*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:201](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L201)*
|
||||
|
||||
*__description__*: Returns the string representation of the value
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="tou8a"></a>
|
||||
|
||||
## toU8a
|
||||
|
||||
▸ **toU8a**(isBare?: * `undefined` | `false` | `true`*): `Uint8Array`
|
||||
|
||||
*Inherited from Struct.toU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:209](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L209)*
|
||||
|
||||
*__description__*: Encodes the value as a Uint8Array as per the parity-codec specifications
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ------ | ------ |
|
||||
| `Optional` isBare | `undefined` | `false` | `true`| true when the value has none of the type-specific prefixes (internal) |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
___
|
||||
<a id="values"></a>
|
||||
|
||||
## values
|
||||
|
||||
▸ **values**(): `IterableIterator`<`Codec`>
|
||||
|
||||
*Inherited from Map.values*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:128*
|
||||
|
||||
Returns an iterable of values in the map
|
||||
|
||||
**Returns:** `IterableIterator`<`Codec`>
|
||||
|
||||
___
|
||||
<a id="with"></a>
|
||||
|
||||
## `<Static>` with
|
||||
|
||||
▸ **with**<`S`>(Types: *`S`*): `Constructor`<`Struct`<`S`>>
|
||||
|
||||
*Inherited from Struct.with*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:122](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L122)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S : `ConstructorDef`
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
|
||||
**Returns:** `Constructor`<`Struct`<`S`>>
|
||||
|
||||
___
|
||||
|
||||
@@ -1,420 +0,0 @@
|
||||
|
||||
|
||||
# Type parameters
|
||||
#### S : `ConstructorDef`
|
||||
#### T : `object`
|
||||
#### V : `object`
|
||||
#### E : `object`
|
||||
# Hierarchy
|
||||
|
||||
`Struct`
|
||||
|
||||
**↳ RxProposalDeposits**
|
||||
|
||||
# Implements
|
||||
|
||||
* `Codec`
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new RxProposalDeposits**(value: *`Tuple`*): [RxProposalDeposits](_classes_.rxproposaldeposits.md)
|
||||
|
||||
*Overrides Struct.__constructor*
|
||||
|
||||
*Defined in [classes.ts:35](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/classes.ts#L35)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| value | `Tuple` |
|
||||
|
||||
**Returns:** [RxProposalDeposits](_classes_.rxproposaldeposits.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="___tostringtag"></a>
|
||||
|
||||
## __@toStringTag
|
||||
|
||||
**● __@toStringTag**: *`string`*
|
||||
|
||||
*Inherited from Map.[Symbol.toStringTag]*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:130*
|
||||
|
||||
___
|
||||
<a id="size"></a>
|
||||
|
||||
## size
|
||||
|
||||
**● size**: *`number`*
|
||||
|
||||
*Inherited from Map.size*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:28*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="type"></a>
|
||||
|
||||
## Type
|
||||
|
||||
getType(): `E`
|
||||
|
||||
*Inherited from Struct.Type*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:142](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L142)*
|
||||
|
||||
*__description__*: Returns the Type description to sthe structure
|
||||
|
||||
**Returns:** `E`
|
||||
|
||||
___
|
||||
<a id="addresses"></a>
|
||||
|
||||
## addresses
|
||||
|
||||
getaddresses(): `Vector`<`AccountId`>
|
||||
|
||||
*Defined in [classes.ts:43](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/classes.ts#L43)*
|
||||
|
||||
**Returns:** `Vector`<`AccountId`>
|
||||
|
||||
___
|
||||
<a id="balance"></a>
|
||||
|
||||
## balance
|
||||
|
||||
getbalance(): `Balance`
|
||||
|
||||
*Defined in [classes.ts:47](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/classes.ts#L47)*
|
||||
|
||||
**Returns:** `Balance`
|
||||
|
||||
___
|
||||
<a id="encodedlength"></a>
|
||||
|
||||
## encodedLength
|
||||
|
||||
getencodedLength(): `number`
|
||||
|
||||
*Inherited from Struct.encodedLength*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:149](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L149)*
|
||||
|
||||
*__description__*: The length of the value when encoded as a Uint8Array
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="___iterator"></a>
|
||||
|
||||
## __@iterator
|
||||
|
||||
▸ **__@iterator**(): `IterableIterator`<[`keyof S`, `Codec`]>
|
||||
|
||||
*Inherited from Map.[Symbol.iterator]*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:113*
|
||||
|
||||
Returns an iterable of entries in the map.
|
||||
|
||||
**Returns:** `IterableIterator`<[`keyof S`, `Codec`]>
|
||||
|
||||
___
|
||||
<a id="clear"></a>
|
||||
|
||||
## clear
|
||||
|
||||
▸ **clear**(): `void`
|
||||
|
||||
*Inherited from Map.clear*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:22*
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="delete"></a>
|
||||
|
||||
## delete
|
||||
|
||||
▸ **delete**(key: *`keyof S`*): `boolean`
|
||||
|
||||
*Inherited from Map.delete*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:23*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
___
|
||||
<a id="entries"></a>
|
||||
|
||||
## entries
|
||||
|
||||
▸ **entries**(): `IterableIterator`<[`keyof S`, `Codec`]>
|
||||
|
||||
*Inherited from Map.entries*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:118*
|
||||
|
||||
Returns an iterable of key, value pairs for every entry in the map.
|
||||
|
||||
**Returns:** `IterableIterator`<[`keyof S`, `Codec`]>
|
||||
|
||||
___
|
||||
<a id="foreach"></a>
|
||||
|
||||
## forEach
|
||||
|
||||
▸ **forEach**(callbackfn: *`function`*, thisArg?: *`any`*): `void`
|
||||
|
||||
*Inherited from Map.forEach*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:24*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| callbackfn | `function` |
|
||||
| `Optional` thisArg | `any` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(name: *`keyof S`*): `Codec` | `undefined`
|
||||
|
||||
*Inherited from Struct.get*
|
||||
|
||||
*Overrides Map.get*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:159](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L159)*
|
||||
|
||||
*__description__*: Returns a specific names entry in the structure
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ------ | ------ |
|
||||
| name | `keyof S` | The name of the entry to retrieve |
|
||||
|
||||
**Returns:** `Codec` | `undefined`
|
||||
|
||||
___
|
||||
<a id="getatindex"></a>
|
||||
|
||||
## getAtIndex
|
||||
|
||||
▸ **getAtIndex**(index: *`number`*): `Codec`
|
||||
|
||||
*Inherited from Struct.getAtIndex*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:166](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L166)*
|
||||
|
||||
*__description__*: Returns the values of a member at a specific index (Rather use get(name) for performance)
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| index | `number` |
|
||||
|
||||
**Returns:** `Codec`
|
||||
|
||||
___
|
||||
<a id="has"></a>
|
||||
|
||||
## has
|
||||
|
||||
▸ **has**(key: *`keyof S`*): `boolean`
|
||||
|
||||
*Inherited from Map.has*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:26*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
___
|
||||
<a id="keys"></a>
|
||||
|
||||
## keys
|
||||
|
||||
▸ **keys**(): `IterableIterator`<`keyof S`>
|
||||
|
||||
*Inherited from Map.keys*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:123*
|
||||
|
||||
Returns an iterable of keys in the map
|
||||
|
||||
**Returns:** `IterableIterator`<`keyof S`>
|
||||
|
||||
___
|
||||
<a id="set"></a>
|
||||
|
||||
## set
|
||||
|
||||
▸ **set**(key: *`keyof S`*, value: *`Codec`*): `this`
|
||||
|
||||
*Inherited from Map.set*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:27*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
| value | `Codec` |
|
||||
|
||||
**Returns:** `this`
|
||||
|
||||
___
|
||||
<a id="toarray"></a>
|
||||
|
||||
## toArray
|
||||
|
||||
▸ **toArray**(): `Array`<`Codec`>
|
||||
|
||||
*Inherited from Struct.toArray*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:173](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L173)*
|
||||
|
||||
*__description__*: Converts the Object to an standard JavaScript Array
|
||||
|
||||
**Returns:** `Array`<`Codec`>
|
||||
|
||||
___
|
||||
<a id="tohex"></a>
|
||||
|
||||
## toHex
|
||||
|
||||
▸ **toHex**(): `string`
|
||||
|
||||
*Inherited from Struct.toHex*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:180](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L180)*
|
||||
|
||||
*__description__*: Returns a hex string representation of the value
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="tojson"></a>
|
||||
|
||||
## toJSON
|
||||
|
||||
▸ **toJSON**(): `any`
|
||||
|
||||
*Inherited from Struct.toJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:187](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L187)*
|
||||
|
||||
*__description__*: Converts the Object to JSON, typically used for RPC transfers
|
||||
|
||||
**Returns:** `any`
|
||||
|
||||
___
|
||||
<a id="tostring"></a>
|
||||
|
||||
## toString
|
||||
|
||||
▸ **toString**(): `string`
|
||||
|
||||
*Inherited from Struct.toString*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:201](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L201)*
|
||||
|
||||
*__description__*: Returns the string representation of the value
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="tou8a"></a>
|
||||
|
||||
## toU8a
|
||||
|
||||
▸ **toU8a**(isBare?: * `undefined` | `false` | `true`*): `Uint8Array`
|
||||
|
||||
*Inherited from Struct.toU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:209](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L209)*
|
||||
|
||||
*__description__*: Encodes the value as a Uint8Array as per the parity-codec specifications
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ------ | ------ |
|
||||
| `Optional` isBare | `undefined` | `false` | `true`| true when the value has none of the type-specific prefixes (internal) |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
___
|
||||
<a id="values"></a>
|
||||
|
||||
## values
|
||||
|
||||
▸ **values**(): `IterableIterator`<`Codec`>
|
||||
|
||||
*Inherited from Map.values*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:128*
|
||||
|
||||
Returns an iterable of values in the map
|
||||
|
||||
**Returns:** `IterableIterator`<`Codec`>
|
||||
|
||||
___
|
||||
<a id="with"></a>
|
||||
|
||||
## `<Static>` with
|
||||
|
||||
▸ **with**<`S`>(Types: *`S`*): `Constructor`<`Struct`<`S`>>
|
||||
|
||||
*Inherited from Struct.with*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:122](https://github.com/polkadot-js/api/blob/18dfda5/packages/types/src/codec/Struct.ts#L122)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S : `ConstructorDef`
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
|
||||
**Returns:** `Constructor`<`Struct`<`S`>>
|
||||
|
||||
___
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,570 +0,0 @@
|
||||
|
||||
|
||||
# Hierarchy
|
||||
|
||||
[ApiBase](_base_.apibase.md)
|
||||
|
||||
**↳ ApiQueries**
|
||||
|
||||
↳ [ApiCalls](_calls_.apicalls.md)
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new ApiQueries**(api: *`RpcRxInterface`*): [ApiQueries](_queries_.apiqueries.md)
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[constructor](_base_.apibase.md#constructor)*
|
||||
|
||||
*Defined in [Base.ts:33](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L33)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| api | `RpcRxInterface` |
|
||||
|
||||
**Returns:** [ApiQueries](_queries_.apiqueries.md)
|
||||
|
||||
___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="whenready"></a>
|
||||
|
||||
## whenReady
|
||||
|
||||
**● whenReady**: *`Observable`<`boolean`>*
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[whenReady](_base_.apibase.md#whenready)*
|
||||
|
||||
*Defined in [Base.ts:33](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L33)*
|
||||
|
||||
___
|
||||
<a id="extrinsics"></a>
|
||||
|
||||
## `<Static>` extrinsics
|
||||
|
||||
**● extrinsics**: *`ModulesWithMethods`* = extrinsicsStatic
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[extrinsics](_base_.apibase.md#extrinsics)*
|
||||
|
||||
*Defined in [Base.ts:41](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L41)*
|
||||
|
||||
___
|
||||
<a id="storage"></a>
|
||||
|
||||
## `<Static>` storage
|
||||
|
||||
**● storage**: *`Storage`* = storageStatic
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[storage](_base_.apibase.md#storage)*
|
||||
|
||||
*Defined in [Base.ts:42](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L42)*
|
||||
|
||||
___
|
||||
|
||||
# Accessors
|
||||
|
||||
<a id="genesishash"></a>
|
||||
|
||||
## genesisHash
|
||||
|
||||
getgenesisHash(): `Hash`
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[genesisHash](_base_.apibase.md#genesishash)*
|
||||
|
||||
*Defined in [Base.ts:87](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L87)*
|
||||
|
||||
**Returns:** `Hash`
|
||||
|
||||
___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="accountnonce"></a>
|
||||
|
||||
## accountNonce
|
||||
|
||||
▸ **accountNonce**(address: * `AccountId` | `string`*): `Observable`< `Index` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:18](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L18)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Index` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="balancefree"></a>
|
||||
|
||||
## balanceFree
|
||||
|
||||
▸ **balanceFree**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:22](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L22)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="balancereserved"></a>
|
||||
|
||||
## balanceReserved
|
||||
|
||||
▸ **balanceReserved**(address: * `AccountId` | `string`*): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:26](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L26)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="blocknow"></a>
|
||||
|
||||
## blockNow
|
||||
|
||||
▸ **blockNow**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:34](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L34)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="blockperiod"></a>
|
||||
|
||||
## blockPeriod
|
||||
|
||||
▸ **blockPeriod**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:30](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L30)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracylaunchperiod"></a>
|
||||
|
||||
## democracyLaunchPeriod
|
||||
|
||||
▸ **democracyLaunchPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:38](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L38)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracynexttally"></a>
|
||||
|
||||
## democracyNextTally
|
||||
|
||||
▸ **democracyNextTally**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:42](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L42)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="democracyvotingperiod"></a>
|
||||
|
||||
## democracyVotingPeriod
|
||||
|
||||
▸ **democracyVotingPeriod**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:125](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L125)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="eralastlengthchange"></a>
|
||||
|
||||
## eraLastLengthChange
|
||||
|
||||
▸ **eraLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:150](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L150)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="fees"></a>
|
||||
|
||||
## fees
|
||||
|
||||
▸ **fees**(): `Observable`<[RxFees](../modules/_types_.md#rxfees)>
|
||||
|
||||
*Defined in [Queries.ts:129](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L129)*
|
||||
|
||||
**Returns:** `Observable`<[RxFees](../modules/_types_.md#rxfees)>
|
||||
|
||||
___
|
||||
<a id="getaccountenumset"></a>
|
||||
|
||||
## getAccountEnumSet
|
||||
|
||||
▸ **getAccountEnumSet**(index: * `AccountIndex` | `BN` | `number`*): `Observable`< `Array`<`AccountId`> | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:46](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L46)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| index | `AccountIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< `Array`<`AccountId`> | `undefined`>
|
||||
|
||||
___
|
||||
<a id="isconnected"></a>
|
||||
|
||||
## isConnected
|
||||
|
||||
▸ **isConnected**(): `Observable`<`boolean`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[isConnected](_base_.apibase.md#isconnected)*
|
||||
|
||||
*Defined in [Base.ts:91](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L91)*
|
||||
|
||||
**Returns:** `Observable`<`boolean`>
|
||||
|
||||
___
|
||||
<a id="nextaccountenumset"></a>
|
||||
|
||||
## nextAccountEnumSet
|
||||
|
||||
▸ **nextAccountEnumSet**(): `Observable`< `AccountIndex` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:57](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L57)*
|
||||
|
||||
**Returns:** `Observable`< `AccountIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="proposaldeposits"></a>
|
||||
|
||||
## proposalDeposits
|
||||
|
||||
▸ **proposalDeposits**(proposalId: * `PropIndex` | `BN` | `number`*): `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:61](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L61)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| proposalId | `PropIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< [RxProposalDeposits](_classes_.rxproposaldeposits.md) | `undefined`>
|
||||
|
||||
___
|
||||
<a id="publicproposals"></a>
|
||||
|
||||
## publicProposals
|
||||
|
||||
▸ **publicProposals**(): `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
*Defined in [Queries.ts:74](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L74)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<[RxProposal](_classes_.rxproposal.md)>>
|
||||
|
||||
___
|
||||
<a id="rawcall"></a>
|
||||
|
||||
## rawCall
|
||||
|
||||
▸ **rawCall**<`T`>(__namedParameters: *`object`*, ...params: *`Array`<`any`>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawCall](_base_.apibase.md#rawcall)*
|
||||
|
||||
*Defined in [Base.ts:95](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L95)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| __namedParameters | `object` |
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="rawstorage"></a>
|
||||
|
||||
## rawStorage
|
||||
|
||||
▸ **rawStorage**<`T`>(key: * `Uint8Array` | `StorageFunction`*, ...params: *`Array`<`any`>*): `Observable`< `T` | `undefined`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorage](_base_.apibase.md#rawstorage)*
|
||||
|
||||
*Defined in [Base.ts:108](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L108)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| key | `Uint8Array` | `StorageFunction`|
|
||||
| `Rest` params | `Array`<`any`> |
|
||||
|
||||
**Returns:** `Observable`< `T` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="rawstoragemulti"></a>
|
||||
|
||||
## rawStorageMulti
|
||||
|
||||
▸ **rawStorageMulti**<`T`>(...keys: *`Array`< `Uint8Array` | [`StorageFunction`] | [`StorageFunction`, `any`]>*): `Observable`<`T`>
|
||||
|
||||
*Inherited from [ApiBase](_base_.apibase.md).[rawStorageMulti](_base_.apibase.md#rawstoragemulti)*
|
||||
|
||||
*Defined in [Base.ts:123](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Base.ts#L123)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### T : `[]`
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| `Rest` keys | `Array`< `Uint8Array` | [`StorageFunction`] | [`StorageFunction`, `any`]> |
|
||||
|
||||
**Returns:** `Observable`<`T`>
|
||||
|
||||
___
|
||||
<a id="referendumcount"></a>
|
||||
|
||||
## referendumCount
|
||||
|
||||
▸ **referendumCount**(): `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:93](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L93)*
|
||||
|
||||
**Returns:** `Observable`< `ReferendumIndex` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="referenduminfo"></a>
|
||||
|
||||
## referendumInfo
|
||||
|
||||
▸ **referendumInfo**(referendumId: * `ReferendumIndex` | `BN` | `number`*): `Observable`< `ReferendumInfo` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:97](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L97)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| referendumId | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`< `ReferendumInfo` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="referendumvote"></a>
|
||||
|
||||
## referendumVote
|
||||
|
||||
▸ **referendumVote**(index: * `ReferendumIndex` | `BN` | `number`*, address: * `AccountId` | `string`*): `Observable`< `Bool` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:110](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L110)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `Bool` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="referendumvoters"></a>
|
||||
|
||||
## referendumVoters
|
||||
|
||||
▸ **referendumVoters**(index: * `ReferendumIndex` | `BN` | `number`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Defined in [Queries.ts:114](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L114)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| index | `ReferendumIndex` | `BN` | `number`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentindex"></a>
|
||||
|
||||
## sessionCurrentIndex
|
||||
|
||||
▸ **sessionCurrentIndex**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:162](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L162)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessioncurrentstart"></a>
|
||||
|
||||
## sessionCurrentStart
|
||||
|
||||
▸ **sessionCurrentStart**(): `Observable`< `Moment` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:166](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L166)*
|
||||
|
||||
**Returns:** `Observable`< `Moment` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlastlengthchange"></a>
|
||||
|
||||
## sessionLastLengthChange
|
||||
|
||||
▸ **sessionLastLengthChange**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:170](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L170)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionlength"></a>
|
||||
|
||||
## sessionLength
|
||||
|
||||
▸ **sessionLength**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:174](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L174)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionreward"></a>
|
||||
|
||||
## sessionReward
|
||||
|
||||
▸ **sessionReward**(): `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:154](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L154)*
|
||||
|
||||
**Returns:** `Observable`< `Perbill` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionrewardcurrent"></a>
|
||||
|
||||
## sessionRewardCurrent
|
||||
|
||||
▸ **sessionRewardCurrent**(): `Observable`< `Balance` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:158](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L158)*
|
||||
|
||||
**Returns:** `Observable`< `Balance` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="sessionvalidators"></a>
|
||||
|
||||
## sessionValidators
|
||||
|
||||
▸ **sessionValidators**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Defined in [Queries.ts:182](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L182)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="sessionsperera"></a>
|
||||
|
||||
## sessionsPerEra
|
||||
|
||||
▸ **sessionsPerEra**(): `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:178](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L178)*
|
||||
|
||||
**Returns:** `Observable`< `BlockNumber` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingintentions"></a>
|
||||
|
||||
## stakingIntentions
|
||||
|
||||
▸ **stakingIntentions**(): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Defined in [Queries.ts:193](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L193)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="stakingnominating"></a>
|
||||
|
||||
## stakingNominating
|
||||
|
||||
▸ **stakingNominating**(address: * `AccountId` | `string`*): `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:215](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L215)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`< `AccountId` | `undefined`>
|
||||
|
||||
___
|
||||
<a id="stakingnominatorsfor"></a>
|
||||
|
||||
## stakingNominatorsFor
|
||||
|
||||
▸ **stakingNominatorsFor**(address: * `AccountId` | `string`*): `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
*Defined in [Queries.ts:204](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L204)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| address | `AccountId` | `string`|
|
||||
|
||||
**Returns:** `Observable`<`Array`<`AccountId`>>
|
||||
|
||||
___
|
||||
<a id="systemevents"></a>
|
||||
|
||||
## systemEvents
|
||||
|
||||
▸ **systemEvents**(): `Observable`<`Array`<`EventRecord`>>
|
||||
|
||||
*Defined in [Queries.ts:219](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L219)*
|
||||
|
||||
**Returns:** `Observable`<`Array`<`EventRecord`>>
|
||||
|
||||
___
|
||||
<a id="validatorcount"></a>
|
||||
|
||||
## validatorCount
|
||||
|
||||
▸ **validatorCount**(): `Observable`< `u32` | `undefined`>
|
||||
|
||||
*Defined in [Queries.ts:230](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/Queries.ts#L230)*
|
||||
|
||||
**Returns:** `Observable`< `u32` | `undefined`>
|
||||
|
||||
___
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [ApiBase](../classes/_base_.apibase.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [ApiCalls](../classes/_calls_.apicalls.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [RxProposal](../classes/_classes_.rxproposal.md)
|
||||
* [RxProposalDeposits](../classes/_classes_.rxproposaldeposits.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [ApiCombined](../classes/_combined_.apicombined.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [Api](../classes/_index_.api.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
|
||||
# Index
|
||||
|
||||
### Classes
|
||||
|
||||
* [ApiQueries](../classes/_queries_.apiqueries.md)
|
||||
|
||||
---
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
|
||||
|
||||
# Type aliases
|
||||
|
||||
<a id="apifunctions"></a>
|
||||
|
||||
## ApiFunctions
|
||||
|
||||
**Ƭ ApiFunctions**: * `keyof ApiBase` | `keyof ApiCalls` | `keyof ApiCombined` | `keyof ApiQueries`
|
||||
*
|
||||
|
||||
*Defined in [types.ts:12](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/types.ts#L12)*
|
||||
|
||||
___
|
||||
<a id="rxbalance"></a>
|
||||
|
||||
## RxBalance
|
||||
|
||||
**Ƭ RxBalance**: *`object`*
|
||||
|
||||
*Defined in [types.ts:14](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/types.ts#L14)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
<a id="rxbalancemap"></a>
|
||||
|
||||
## RxBalanceMap
|
||||
|
||||
**Ƭ RxBalanceMap**: *`object`*
|
||||
|
||||
*Defined in [types.ts:38](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/types.ts#L38)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
[index: `string`]: [RxBalance](_types_.md#rxbalance)
|
||||
|
||||
___
|
||||
<a id="rxfees"></a>
|
||||
|
||||
## RxFees
|
||||
|
||||
**Ƭ RxFees**: *`object`*
|
||||
|
||||
*Defined in [types.ts:24](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/types.ts#L24)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
<a id="rxreferendumvote"></a>
|
||||
|
||||
## RxReferendumVote
|
||||
|
||||
**Ƭ RxReferendumVote**: *`object`*
|
||||
|
||||
*Defined in [types.ts:32](https://github.com/polkadot-js/api/blob/18dfda5/packages/api-observable/src/types.ts#L32)*
|
||||
|
||||
#### Type declaration
|
||||
|
||||
___
|
||||
|
||||
@@ -40,7 +40,7 @@ async function main () {
|
||||
api.tx.upgradeKey
|
||||
.upgrade(code)
|
||||
.sign(adminPair, adminNonce)
|
||||
.send(({ events = [], type }) => {
|
||||
.send(({ events = [], status, type }) => {
|
||||
console.log('Transaction status:', type);
|
||||
|
||||
if (type === 'Finalised') {
|
||||
|
||||
Reference in New Issue
Block a user