423 lines
8.2 KiB
Markdown
423 lines
8.2 KiB
Markdown
|
|
|
|
# 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:9](https://github.com/polkadot-js/api/blob/96dc7df/packages/api-observable/src/classes.ts#L9)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| value | `Tuple` |
|
|
|
|
**Returns:** [RxProposal](_classes_.rxproposal.md)
|
|
|
|
___
|
|
|
|
# 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**: *`Map`<`keyof S`, `Base`>*
|
|
|
|
*Inherited from Struct.raw*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:25](https://github.com/polkadot-js/api/blob/96dc7df/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*
|
|
|
|
___
|
|
|
|
# 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:123](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L123)*
|
|
|
|
**Returns:** `E`
|
|
|
|
___
|
|
<a id="address"></a>
|
|
|
|
## address
|
|
|
|
getaddress(): `AccountId`
|
|
|
|
*Defined in [classes.ts:18](https://github.com/polkadot-js/api/blob/96dc7df/packages/api-observable/src/classes.ts#L18)*
|
|
|
|
**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:127](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L127)*
|
|
|
|
**Returns:** `number`
|
|
|
|
___
|
|
<a id="id"></a>
|
|
|
|
## id
|
|
|
|
getid(): `PropIndex`
|
|
|
|
*Defined in [classes.ts:22](https://github.com/polkadot-js/api/blob/96dc7df/packages/api-observable/src/classes.ts#L22)*
|
|
|
|
**Returns:** `PropIndex`
|
|
|
|
___
|
|
<a id="proposal"></a>
|
|
|
|
## proposal
|
|
|
|
getproposal(): `Proposal`
|
|
|
|
*Defined in [classes.ts:26](https://github.com/polkadot-js/api/blob/96dc7df/packages/api-observable/src/classes.ts#L26)*
|
|
|
|
**Returns:** `Proposal`
|
|
|
|
___
|
|
|
|
# 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
|
|
|
|
▸ **getAtIndex**(index: *`number`*): `Base`
|
|
|
|
*Inherited from Struct.getAtIndex*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:133](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L133)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| index | `number` |
|
|
|
|
**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**(): `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: *`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="toarray"></a>
|
|
|
|
## toArray
|
|
|
|
▸ **toArray**(): `Array`<`Base`>
|
|
|
|
*Inherited from Struct.toArray*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:137](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L137)*
|
|
|
|
**Returns:** `Array`<`Base`>
|
|
|
|
___
|
|
<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:141](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L141)*
|
|
|
|
**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:145](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L145)*
|
|
|
|
**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:156](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L156)*
|
|
|
|
**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:160](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L160)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| `Optional` isBare | `undefined` | `false` | `true`|
|
|
|
|
**Returns:** `Uint8Array`
|
|
|
|
___
|
|
<a id="values"></a>
|
|
|
|
## values
|
|
|
|
▸ **values**(): `IterableIterator`<`Base`>
|
|
|
|
*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`<`Base`>
|
|
|
|
___
|
|
<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:113](https://github.com/polkadot-js/api/blob/96dc7df/packages/types/src/codec/Struct.ts#L113)*
|
|
|
|
**Type parameters:**
|
|
|
|
#### S : `ConstructorDef`
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| Types | `S` |
|
|
|
|
**Returns:** `Constructor`<`Struct`<`S`>>
|
|
|
|
___
|
|
|