[CI Skip] 0.43.6
This commit is contained in:
@@ -25,18 +25,18 @@
|
||||
|
||||
## constructor
|
||||
|
||||
⊕ **new ReferendumInfoExtended**(info: *`ReferendumInfo`*, index: *`BN` | `number`*): [ReferendumInfoExtended](_democracy_referenduminfo_.referenduminfoextended.md)
|
||||
⊕ **new ReferendumInfoExtended**(info: *`ReferendumInfo`*, index: *`BN` \| `number`*): [ReferendumInfoExtended](_democracy_referenduminfo_.referenduminfoextended.md)
|
||||
|
||||
*Overrides ReferendumInfo.__constructor*
|
||||
|
||||
*Defined in [democracy/referendumInfo.ts:19](https://github.com/polkadot-js/api/blob/1b2694d/packages/api-derive/src/democracy/referendumInfo.ts#L19)*
|
||||
*Defined in [democracy/referendumInfo.ts:19](https://github.com/polkadot-js/api/blob/4735253/packages/api-derive/src/democracy/referendumInfo.ts#L19)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
| Name | Type |
|
||||
| ------ | ------ |
|
||||
| info | `ReferendumInfo` |
|
||||
| index | `BN` | `number` |
|
||||
| index | `BN` \| `number` |
|
||||
|
||||
**Returns:** [ReferendumInfoExtended](_democracy_referenduminfo_.referenduminfoextended.md)
|
||||
|
||||
@@ -77,7 +77,7 @@ getType(): `E`
|
||||
|
||||
*Inherited from Struct.Type*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:142](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L142)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:145](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L145)*
|
||||
|
||||
*__description__*: Returns the Type description to sthe structure
|
||||
|
||||
@@ -92,7 +92,7 @@ getdelay(): `BlockNumber`
|
||||
|
||||
*Inherited from ReferendumInfo.delay*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/ReferendumInfo.ts:56](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/ReferendumInfo.ts#L56)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/ReferendumInfo.ts:56](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/ReferendumInfo.ts#L56)*
|
||||
|
||||
*__description__*: The delay (in blocks) to wait after a successful referendum before deploying
|
||||
|
||||
@@ -107,7 +107,7 @@ getencodedLength(): `number`
|
||||
|
||||
*Inherited from Struct.encodedLength*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:149](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L149)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:152](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L152)*
|
||||
|
||||
*__description__*: The length of the value when encoded as a Uint8Array
|
||||
|
||||
@@ -122,7 +122,7 @@ getend(): `BlockNumber`
|
||||
|
||||
*Inherited from ReferendumInfo.end*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/ReferendumInfo.ts:35](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/ReferendumInfo.ts#L35)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/ReferendumInfo.ts:35](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/ReferendumInfo.ts#L35)*
|
||||
|
||||
*__description__*: When voting on this referendum will end
|
||||
|
||||
@@ -135,7 +135,7 @@ ___
|
||||
|
||||
getindex(): `ReferendumIndex`
|
||||
|
||||
*Defined in [democracy/referendumInfo.ts:30](https://github.com/polkadot-js/api/blob/1b2694d/packages/api-derive/src/democracy/referendumInfo.ts#L30)*
|
||||
*Defined in [democracy/referendumInfo.ts:30](https://github.com/polkadot-js/api/blob/4735253/packages/api-derive/src/democracy/referendumInfo.ts#L30)*
|
||||
|
||||
*__description__*: Convenience getter, returns the referendumIndex
|
||||
|
||||
@@ -150,7 +150,7 @@ getproposal(): `Proposal`
|
||||
|
||||
*Inherited from ReferendumInfo.proposal*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/ReferendumInfo.ts:42](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/ReferendumInfo.ts#L42)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/ReferendumInfo.ts:42](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/ReferendumInfo.ts#L42)*
|
||||
|
||||
*__description__*: The proposal being voted on
|
||||
|
||||
@@ -165,7 +165,7 @@ getthreshold(): `VoteThreshold`
|
||||
|
||||
*Inherited from ReferendumInfo.threshold*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/ReferendumInfo.ts:49](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/ReferendumInfo.ts#L49)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/ReferendumInfo.ts:49](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/ReferendumInfo.ts#L49)*
|
||||
|
||||
*__description__*: The thresholding mechanism to determine whether it passed
|
||||
|
||||
@@ -245,7 +245,7 @@ ___
|
||||
|
||||
*Inherited from Struct.eq*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:158](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L158)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:161](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L161)*
|
||||
|
||||
*__description__*: Compares the value of the input to see if there is a match
|
||||
|
||||
@@ -282,13 +282,13 @@ ___
|
||||
|
||||
## get
|
||||
|
||||
▸ **get**(name: *`keyof S`*): `Codec` | `undefined`
|
||||
▸ **get**(name: *`keyof S`*): `Codec` \| `undefined`
|
||||
|
||||
*Inherited from Struct.get*
|
||||
|
||||
*Overrides Map.get*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:166](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L166)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:169](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L169)*
|
||||
|
||||
*__description__*: Returns a specific names entry in the structure
|
||||
|
||||
@@ -298,7 +298,7 @@ ___
|
||||
| ------ | ------ | ------ |
|
||||
| name | `keyof S` | The name of the entry to retrieve |
|
||||
|
||||
**Returns:** `Codec` | `undefined`
|
||||
**Returns:** `Codec` \| `undefined`
|
||||
|
||||
___
|
||||
<a id="getatindex"></a>
|
||||
@@ -309,7 +309,7 @@ ___
|
||||
|
||||
*Inherited from Struct.getAtIndex*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:173](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L173)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:176](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L176)*
|
||||
|
||||
*__description__*: Returns the values of a member at a specific index (Rather use get(name) for performance)
|
||||
|
||||
@@ -384,7 +384,7 @@ ___
|
||||
|
||||
*Inherited from Struct.toArray*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:180](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L180)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:183](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L183)*
|
||||
|
||||
*__description__*: Converts the Object to an standard JavaScript Array
|
||||
|
||||
@@ -399,7 +399,7 @@ ___
|
||||
|
||||
*Inherited from Struct.toHex*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:187](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L187)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:190](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L190)*
|
||||
|
||||
*__description__*: Returns a hex string representation of the value
|
||||
|
||||
@@ -414,7 +414,7 @@ ___
|
||||
|
||||
*Inherited from Struct.toJSON*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:194](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L194)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:197](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L197)*
|
||||
|
||||
*__description__*: Converts the Object to JSON, typically used for RPC transfers
|
||||
|
||||
@@ -429,7 +429,7 @@ ___
|
||||
|
||||
*Inherited from Struct.toString*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:208](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L208)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:211](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L211)*
|
||||
|
||||
*__description__*: Returns the string representation of the value
|
||||
|
||||
@@ -440,11 +440,11 @@ ___
|
||||
|
||||
## toU8a
|
||||
|
||||
▸ **toU8a**(isBare?: *`undefined` | `false` | `true`*): `Uint8Array`
|
||||
▸ **toU8a**(isBare?: *`undefined` \| `false` \| `true`*): `Uint8Array`
|
||||
|
||||
*Inherited from Struct.toU8a*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:216](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L216)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:219](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L219)*
|
||||
|
||||
*__description__*: Encodes the value as a Uint8Array as per the parity-codec specifications
|
||||
|
||||
@@ -452,7 +452,7 @@ ___
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ------ | ------ |
|
||||
| `Optional` isBare | `undefined` | `false` | `true` | true when the value has none of the type-specific prefixes (internal) |
|
||||
| `Optional` isBare | `undefined` \| `false` \| `true` | true when the value has none of the type-specific prefixes (internal) |
|
||||
|
||||
**Returns:** `Uint8Array`
|
||||
|
||||
@@ -480,7 +480,7 @@ ___
|
||||
|
||||
*Inherited from Struct.with*
|
||||
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:122](https://github.com/polkadot-js/api/blob/1b2694d/packages/types/src/codec/Struct.ts#L122)*
|
||||
*Defined in [/home/travis/build/polkadot-js/api/packages/types/src/codec/Struct.ts:125](https://github.com/polkadot-js/api/blob/4735253/packages/types/src/codec/Struct.ts#L125)*
|
||||
|
||||
**Type parameters:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user