5.2 KiB
Type parameters
S
T
V
E
Hierarchy
Struct
↳ RxProposal
Constructors
constructor
⊕ new RxProposal(value: Tuple): RxProposal
Overrides Struct.__constructor
Defined in classes.ts:9
Parameters:
| Param | Type |
|---|---|
| value | Tuple |
Returns: RxProposal
Properties
raw
● raw: T
Inherited from Base.raw
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Base.ts:19
Accessors
Type
getType(): E
Inherited from Struct.Type
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:117
Returns: E
address
getaddress(): AccountId
Defined in classes.ts:18
Returns: AccountId
encodedLength
getencodedLength(): number
Inherited from Struct.encodedLength
Overrides Base.encodedLength
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:121
Returns: number
id
getid(): PropIndex
Defined in classes.ts:22
Returns: PropIndex
proposal
getproposal(): Proposal
Defined in classes.ts:26
Returns: Proposal
Methods
getAtIndex
▸ getAtIndex(index: number): Base
Inherited from Struct.getAtIndex
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:127
Parameters:
| Param | Type |
|---|---|
| index | number |
Returns: Base
keys
▸ keys(): Array<string>
Inherited from Struct.keys
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:142
Returns: Array<string>
toJSON
▸ toJSON(): any
Inherited from Struct.toJSON
Overrides Base.toJSON
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:131
Returns: any
toString
▸ toString(): string
Inherited from Struct.toString
Overrides Base.toString
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:154
Returns: string
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:146
Parameters:
| Param | Type |
|---|---|
Optional isBare |
undefined | false | true |
Returns: Uint8Array
values
▸ values(): Array<Base>
Inherited from Struct.values
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:163
Returns: Array<Base>
<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:48
Type parameters:
S
V
T
Parameters:
| Param | Type |
|---|---|
| Types | S |
| value | any |
| jsonMap | Map<keyof S, string> |
Returns: T
<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:107
Type parameters:
S
Parameters:
| Param | Type |
|---|---|
| Types | S |
Returns: Constructor<Struct<S>>