325 lines
6.6 KiB
Markdown
325 lines
6.6 KiB
Markdown
|
|
|
|
# Type parameters
|
|
#### S
|
|
#### T
|
|
#### V
|
|
#### E
|
|
# Hierarchy
|
|
|
|
`Struct`
|
|
|
|
**↳ RxProposal**
|
|
|
|
# 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/522eae6/packages/api-observable/src/classes.ts#L9)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| value | `Tuple` |
|
|
|
|
**Returns:** [RxProposal](_classes_.rxproposal.md)
|
|
|
|
___
|
|
|
|
# Properties
|
|
|
|
<a id="_types"></a>
|
|
|
|
## `<Protected>` _Types
|
|
|
|
**● _Types**: *`E`*
|
|
|
|
*Inherited from Struct._Types*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:27](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L27)*
|
|
|
|
___
|
|
<a id="_jsonmap"></a>
|
|
|
|
## `<Protected>` _jsonMap
|
|
|
|
**● _jsonMap**: *`Map`<`keyof S`, `string`>*
|
|
|
|
*Inherited from Struct._jsonMap*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:26](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L26)*
|
|
|
|
___
|
|
<a id="raw"></a>
|
|
|
|
## raw
|
|
|
|
**● raw**: *`T`*
|
|
|
|
*Inherited from Base.raw*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Base.ts:19](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Base.ts#L19)*
|
|
|
|
___
|
|
|
|
# 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:76](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L76)*
|
|
|
|
**Returns:** `E`
|
|
|
|
___
|
|
<a id="address"></a>
|
|
|
|
## address
|
|
|
|
getaddress(): `AccountId`
|
|
|
|
*Defined in [classes.ts:18](https://github.com/polkadot-js/api/blob/522eae6/packages/api-observable/src/classes.ts#L18)*
|
|
|
|
**Returns:** `AccountId`
|
|
|
|
___
|
|
<a id="id"></a>
|
|
|
|
## id
|
|
|
|
getid(): `PropIndex`
|
|
|
|
*Defined in [classes.ts:22](https://github.com/polkadot-js/api/blob/522eae6/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/522eae6/packages/api-observable/src/classes.ts#L26)*
|
|
|
|
**Returns:** `Proposal`
|
|
|
|
___
|
|
|
|
# Methods
|
|
|
|
<a id="bytelength"></a>
|
|
|
|
## byteLength
|
|
|
|
▸ **byteLength**(): `number`
|
|
|
|
*Inherited from Struct.byteLength*
|
|
|
|
*Overrides Base.byteLength*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:80](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L80)*
|
|
|
|
**Returns:** `number`
|
|
|
|
___
|
|
<a id="fromjson"></a>
|
|
|
|
## fromJSON
|
|
|
|
▸ **fromJSON**(input: *`any`*): `Struct`<`S`, `T`, `V`, `E`>
|
|
|
|
*Inherited from Struct.fromJSON*
|
|
|
|
*Overrides Base.fromJSON*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:86](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L86)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| input | `any` |
|
|
|
|
**Returns:** `Struct`<`S`, `T`, `V`, `E`>
|
|
|
|
___
|
|
<a id="fromu8a"></a>
|
|
|
|
## fromU8a
|
|
|
|
▸ **fromU8a**(input: *`Uint8Array`*): `Struct`<`S`, `T`, `V`, `E`>
|
|
|
|
*Inherited from Struct.fromU8a*
|
|
|
|
*Overrides Base.fromU8a*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:101](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L101)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| input | `Uint8Array` |
|
|
|
|
**Returns:** `Struct`<`S`, `T`, `V`, `E`>
|
|
|
|
___
|
|
<a id="get"></a>
|
|
|
|
## get
|
|
|
|
▸ **get**(index: *`number`*): `Base`
|
|
|
|
*Inherited from Struct.get*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:111](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L111)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| index | `number` |
|
|
|
|
**Returns:** `Base`
|
|
|
|
___
|
|
<a id="keys"></a>
|
|
|
|
## keys
|
|
|
|
▸ **keys**(): `Array`<`string`>
|
|
|
|
*Inherited from Struct.keys*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:126](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L126)*
|
|
|
|
**Returns:** `Array`<`string`>
|
|
|
|
___
|
|
<a id="tojson"></a>
|
|
|
|
## toJSON
|
|
|
|
▸ **toJSON**(): `any`
|
|
|
|
*Inherited from Struct.toJSON*
|
|
|
|
*Overrides Base.toJSON*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:115](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L115)*
|
|
|
|
**Returns:** `any`
|
|
|
|
___
|
|
<a id="tostring"></a>
|
|
|
|
## toString
|
|
|
|
▸ **toString**(): `string`
|
|
|
|
*Inherited from Struct.toString*
|
|
|
|
*Overrides Base.toString*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:138](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L138)*
|
|
|
|
**Returns:** `string`
|
|
|
|
___
|
|
<a id="tou8a"></a>
|
|
|
|
## toU8a
|
|
|
|
▸ **toU8a**(isBare?: * `undefined` | `false` | `true`*): `Uint8Array`
|
|
|
|
*Inherited from Struct.toU8a*
|
|
|
|
*Overrides Base.toU8a*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:130](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L130)*
|
|
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| `Optional` isBare | `undefined` | `false` | `true`|
|
|
|
|
**Returns:** `Uint8Array`
|
|
|
|
___
|
|
<a id="values"></a>
|
|
|
|
## values
|
|
|
|
▸ **values**(): `Array`<`Base`>
|
|
|
|
*Inherited from Struct.values*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:147](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L147)*
|
|
|
|
**Returns:** `Array`<`Base`>
|
|
|
|
___
|
|
<a id="decode"></a>
|
|
|
|
## `<Static>` decode
|
|
|
|
▸ **decode**<`S`,`V`,`T`>(Types: *`S`*, value: * `V` | `Array`<`any`>*, isTuple: *`boolean`*): `T`
|
|
|
|
*Inherited from Struct.decode*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:45](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L45)*
|
|
|
|
**Type parameters:**
|
|
|
|
#### S
|
|
#### V
|
|
#### T
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| Types | `S` |
|
|
| value | `V` | `Array`<`any`>|
|
|
| isTuple | `boolean` |
|
|
|
|
**Returns:** `T`
|
|
|
|
___
|
|
<a id="with"></a>
|
|
|
|
## `<Static>` with
|
|
|
|
▸ **with**<`S`>(Types: *`S`*): `object`
|
|
|
|
*Inherited from Struct.with*
|
|
|
|
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:66](https://github.com/polkadot-js/api/blob/522eae6/packages/types/src/codec/Struct.ts#L66)*
|
|
|
|
**Type parameters:**
|
|
|
|
#### S
|
|
**Parameters:**
|
|
|
|
| Param | Type |
|
|
| ------ | ------ |
|
|
| Types | `S` |
|
|
|
|
**Returns:** `object`
|
|
|
|
___
|
|
|