[CI Skip] 0.31.68
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
|
||||
|
||||
# Type parameters
|
||||
#### S
|
||||
#### T
|
||||
#### V
|
||||
#### E
|
||||
#### S : `ConstructorDef`
|
||||
#### T : `object`
|
||||
#### V : `object`
|
||||
#### E : `object`
|
||||
# Hierarchy
|
||||
|
||||
`Struct`
|
||||
|
||||
**↳ RxReferendum**
|
||||
|
||||
# Implements
|
||||
|
||||
* `Codec`
|
||||
|
||||
# Constructors
|
||||
|
||||
<a id="constructor"></a>
|
||||
@@ -21,7 +25,7 @@
|
||||
|
||||
*Overrides Struct.__constructor*
|
||||
|
||||
*Defined in [classes.ts:48](https://github.com/polkadot-js/api/blob/3e79ac5/packages/api-observable/src/classes.ts#L48)*
|
||||
*Defined in [classes.ts:48](https://github.com/polkadot-js/api/blob/f2287f3/packages/api-observable/src/classes.ts#L48)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -36,15 +40,37 @@ ___
|
||||
|
||||
# Properties
|
||||
|
||||
<a id="___tostringtag"></a>
|
||||
|
||||
## __@toStringTag
|
||||
|
||||
**● __@toStringTag**: *"Map"*
|
||||
|
||||
*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="raw"></a>
|
||||
|
||||
## raw
|
||||
|
||||
**● raw**: *`T`*
|
||||
**● raw**: *`Map`<`keyof S`, `Base`>*
|
||||
|
||||
*Inherited from Base.raw*
|
||||
*Inherited from Struct.raw*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Base.ts:19](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Base.ts#L19)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:25](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L25)*
|
||||
|
||||
___
|
||||
<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*
|
||||
|
||||
___
|
||||
|
||||
@@ -58,7 +84,7 @@ getType(): `E`
|
||||
|
||||
*Inherited from Struct.Type*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:113](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L113)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:122](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L122)*
|
||||
|
||||
**Returns:** `E`
|
||||
|
||||
@@ -69,7 +95,7 @@ ___
|
||||
|
||||
getblockNumber(): `BlockNumber`
|
||||
|
||||
*Defined in [classes.ts:58](https://github.com/polkadot-js/api/blob/3e79ac5/packages/api-observable/src/classes.ts#L58)*
|
||||
*Defined in [classes.ts:58](https://github.com/polkadot-js/api/blob/f2287f3/packages/api-observable/src/classes.ts#L58)*
|
||||
|
||||
**Returns:** `BlockNumber`
|
||||
|
||||
@@ -82,9 +108,7 @@ getencodedLength(): `number`
|
||||
|
||||
*Inherited from Struct.encodedLength*
|
||||
|
||||
*Overrides Base.encodedLength*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:117](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L117)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:126](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L126)*
|
||||
|
||||
**Returns:** `number`
|
||||
|
||||
@@ -95,7 +119,7 @@ ___
|
||||
|
||||
getid(): `ReferendumIndex`
|
||||
|
||||
*Defined in [classes.ts:62](https://github.com/polkadot-js/api/blob/3e79ac5/packages/api-observable/src/classes.ts#L62)*
|
||||
*Defined in [classes.ts:62](https://github.com/polkadot-js/api/blob/f2287f3/packages/api-observable/src/classes.ts#L62)*
|
||||
|
||||
**Returns:** `ReferendumIndex`
|
||||
|
||||
@@ -106,7 +130,7 @@ ___
|
||||
|
||||
getproposal(): `Proposal`
|
||||
|
||||
*Defined in [classes.ts:66](https://github.com/polkadot-js/api/blob/3e79ac5/packages/api-observable/src/classes.ts#L66)*
|
||||
*Defined in [classes.ts:66](https://github.com/polkadot-js/api/blob/f2287f3/packages/api-observable/src/classes.ts#L66)*
|
||||
|
||||
**Returns:** `Proposal`
|
||||
|
||||
@@ -117,7 +141,7 @@ ___
|
||||
|
||||
getvoteThreshold(): `VoteThreshold`
|
||||
|
||||
*Defined in [classes.ts:70](https://github.com/polkadot-js/api/blob/3e79ac5/packages/api-observable/src/classes.ts#L70)*
|
||||
*Defined in [classes.ts:70](https://github.com/polkadot-js/api/blob/f2287f3/packages/api-observable/src/classes.ts#L70)*
|
||||
|
||||
**Returns:** `VoteThreshold`
|
||||
|
||||
@@ -125,6 +149,107 @@ ___
|
||||
|
||||
# Methods
|
||||
|
||||
<a id="___iterator"></a>
|
||||
|
||||
## __@iterator
|
||||
|
||||
▸ **__@iterator**(): `IterableIterator`<[`keyof S`, `Base`]>
|
||||
|
||||
*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`, `Base`]>
|
||||
|
||||
___
|
||||
<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:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
___
|
||||
<a id="entries"></a>
|
||||
|
||||
## entries
|
||||
|
||||
▸ **entries**(): `IterableIterator`<[`keyof S`, `Base`]>
|
||||
|
||||
*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`, `Base`]>
|
||||
|
||||
___
|
||||
<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:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| callbackfn | `function` |
|
||||
| `Optional` thisArg | `any` |
|
||||
|
||||
**Returns:** `void`
|
||||
|
||||
___
|
||||
<a id="get"></a>
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(key: *`keyof S`*): `Base` | `undefined`
|
||||
|
||||
*Inherited from Map.get*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:25*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
|
||||
**Returns:** `Base` | `undefined`
|
||||
|
||||
___
|
||||
<a id="getatindex"></a>
|
||||
|
||||
## getAtIndex
|
||||
@@ -133,7 +258,7 @@ ___
|
||||
|
||||
*Inherited from Struct.getAtIndex*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:123](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L123)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:132](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L132)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -143,18 +268,72 @@ ___
|
||||
|
||||
**Returns:** `Base`
|
||||
|
||||
___
|
||||
<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:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
|
||||
**Returns:** `boolean`
|
||||
|
||||
___
|
||||
<a id="keys"></a>
|
||||
|
||||
## keys
|
||||
|
||||
▸ **keys**(): `Array`<`string`>
|
||||
▸ **keys**(): `IterableIterator`<`keyof S`>
|
||||
|
||||
*Inherited from Struct.keys*
|
||||
*Inherited from Map.keys*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:138](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L138)*
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:123*
|
||||
|
||||
**Returns:** `Array`<`string`>
|
||||
Returns an iterable of keys in the map
|
||||
|
||||
**Returns:** `IterableIterator`<`keyof S`>
|
||||
|
||||
___
|
||||
<a id="set"></a>
|
||||
|
||||
## set
|
||||
|
||||
▸ **set**(key: *`keyof S`*, value: *`Base`*): `this`
|
||||
|
||||
*Inherited from Map.set*
|
||||
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.collection.d.ts:27*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| key | `keyof S` |
|
||||
| value | `Base` |
|
||||
|
||||
**Returns:** `this`
|
||||
|
||||
___
|
||||
<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:136](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L136)*
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
___
|
||||
<a id="tojson"></a>
|
||||
@@ -165,9 +344,7 @@ ___
|
||||
|
||||
*Inherited from Struct.toJSON*
|
||||
|
||||
*Overrides Base.toJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:127](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L127)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:140](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L140)*
|
||||
|
||||
**Returns:** `any`
|
||||
|
||||
@@ -180,9 +357,7 @@ ___
|
||||
|
||||
*Inherited from Struct.toString*
|
||||
|
||||
*Overrides Base.toString*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:150](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L150)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:151](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L151)*
|
||||
|
||||
**Returns:** `string`
|
||||
|
||||
@@ -195,9 +370,7 @@ ___
|
||||
|
||||
*Inherited from Struct.toU8a*
|
||||
|
||||
*Overrides Base.toU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:142](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L142)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:155](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L155)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -212,39 +385,15 @@ ___
|
||||
|
||||
## values
|
||||
|
||||
▸ **values**(): `Array`<`Base`>
|
||||
▸ **values**(): `IterableIterator`<`Base`>
|
||||
|
||||
*Inherited from Struct.values*
|
||||
*Inherited from Map.values*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:159](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L159)*
|
||||
*Defined in /home/travis/build/polkadot-js/api/node_modules/typescript/lib/lib.es2015.iterable.d.ts:128*
|
||||
|
||||
**Returns:** `Array`<`Base`>
|
||||
Returns an iterable of values in the map
|
||||
|
||||
___
|
||||
<a id="decodestruct"></a>
|
||||
|
||||
## `<Static>` decodeStruct
|
||||
|
||||
▸ **decodeStruct**<`S`,`V`,`T`>(Types: *`S`*, value: *`any`*, jsonMap: *`Map`<`keyof S`, `string`>*): `T`
|
||||
|
||||
*Inherited from Struct.decodeStruct*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:44](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L44)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S
|
||||
#### V
|
||||
#### T
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
| ------ | ------ |
|
||||
| Types | `S` |
|
||||
| value | `any` |
|
||||
| jsonMap | `Map`<`keyof S`, `string`> |
|
||||
|
||||
**Returns:** `T`
|
||||
**Returns:** `IterableIterator`<`Base`>
|
||||
|
||||
___
|
||||
<a id="with"></a>
|
||||
@@ -255,11 +404,11 @@ ___
|
||||
|
||||
*Inherited from Struct.with*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:103](https://github.com/polkadot-js/api/blob/3e79ac5/packages/types/src/codec/Struct.ts#L103)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:112](https://github.com/polkadot-js/api/blob/f2287f3/packages/types/src/codec/Struct.ts#L112)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
#### S
|
||||
#### S : `ConstructorDef`
|
||||
**Parameters:**
|
||||
|
||||
| Param | Type |
|
||||
|
||||
Reference in New Issue
Block a user