6.9 KiB
Type parameters
S
T
V
E
Hierarchy
Struct
↳ RxReferendum
Constructors
constructor
⊕ new RxReferendum(value: Tuple, id: * ReferendumIndex | BN | number*): RxReferendum
Overrides Struct.__constructor
Defined in classes.ts:48
Parameters:
| Param | Type |
|---|---|
| value | Tuple |
| id | ReferendumIndex | BN | number |
Returns: RxReferendum
Properties
<Protected> _Types
● _Types: E
Inherited from Struct._Types
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:28
<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:27
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:77
Returns: E
blockNumber
getblockNumber(): BlockNumber
Defined in classes.ts:58
Returns: BlockNumber
id
getid(): ReferendumIndex
Defined in classes.ts:62
Returns: ReferendumIndex
proposal
getproposal(): Proposal
Defined in classes.ts:66
Returns: Proposal
voteThreshold
getvoteThreshold(): VoteThreshold
Defined in classes.ts:70
Returns: VoteThreshold
Methods
byteLength
▸ byteLength(): number
Inherited from Struct.byteLength
Overrides Base.byteLength
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:81
Returns: number
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:87
Parameters:
| Param | Type |
|---|---|
| input | any |
Returns: Struct<S, T, V, E>
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:102
Parameters:
| Param | Type |
|---|---|
| input | Uint8Array |
Returns: Struct<S, T, V, E>
get
▸ get(index: number): Base
Inherited from Struct.get
Defined in /home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:112
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:127
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:116
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:139
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:131
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:148
Returns: Array<Base>
<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:46
Type parameters:
S
V
T
Parameters:
| Param | Type |
|---|---|
| Types | S |
| value | V | Array<any> |
| isTuple | boolean |
Returns: T
<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:67
Type parameters:
S
Parameters:
| Param | Type |
|---|---|
| Types | S |
Returns: object