0.92 (#1390)
* Metadata for current Substrate master * 0.92 doc updates * @polkadot/util 1.4.1 * Update static polkadot metadata * Version bump
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "0.92.0-beta.9",
|
||||
"version": "0.92.0",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,12 +27,12 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.6.0",
|
||||
"@polkadot/util": "^1.4.0-beta.0",
|
||||
"@polkadot/util-crypto": "^1.4.0-beta.0",
|
||||
"@polkadot/util": "^1.4.1",
|
||||
"@polkadot/util-crypto": "^1.4.1",
|
||||
"@types/memoizee": "^0.4.3",
|
||||
"memoizee": "^0.4.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^1.4.0-beta.0"
|
||||
"@polkadot/keyring": "^1.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -289,7 +289,9 @@
|
||||
},
|
||||
{
|
||||
"name": "ExtrinsicFailed",
|
||||
"args": [],
|
||||
"args": [
|
||||
"DispatchError"
|
||||
],
|
||||
"documentation": [
|
||||
" An extrinsic failed."
|
||||
]
|
||||
@@ -471,7 +473,7 @@
|
||||
{
|
||||
"name": "EpochDuration",
|
||||
"type": "u64",
|
||||
"value": "0x5802000000000000",
|
||||
"value": "0x6009000000000000",
|
||||
"documentation": [
|
||||
" The number of **slots** that an epoch takes. We couple sessions to",
|
||||
" epochs, i.e. we start a new session once the new epoch begins."
|
||||
@@ -480,7 +482,7 @@
|
||||
{
|
||||
"name": "ExpectedBlockTime",
|
||||
"type": "Moment",
|
||||
"value": "0xe803000000000000",
|
||||
"value": "0x7017000000000000",
|
||||
"documentation": [
|
||||
" The expected average block time at which BABE should be creating",
|
||||
" blocks. Since BABE is probabilistic it is not trivial to figure out",
|
||||
@@ -547,7 +549,7 @@
|
||||
{
|
||||
"name": "MinimumPeriod",
|
||||
"type": "Moment",
|
||||
"value": "0xf401000000000000",
|
||||
"value": "0xb80b000000000000",
|
||||
"documentation": [
|
||||
" The minimum period between blocks. Beware that this is different to the *expected* period",
|
||||
" that the block production apparatus provides. Your chosen consensus system will generally",
|
||||
@@ -781,6 +783,27 @@
|
||||
" - Contains a limited number of reads and writes.",
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "force_transfer",
|
||||
"args": [
|
||||
{
|
||||
"name": "source",
|
||||
"type": "Address"
|
||||
},
|
||||
{
|
||||
"name": "dest",
|
||||
"type": "Address"
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": "Compact<Balance>"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Exactly as `transfer`, except the origin must be root and the source account may be",
|
||||
" specified."
|
||||
]
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
@@ -943,28 +966,6 @@
|
||||
" Minimum number of staking participants before emergency conditions are imposed."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OfflineSlash",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "Perbill"
|
||||
},
|
||||
"fallback": "0x40420f00",
|
||||
"documentation": [
|
||||
" Slash, per validator that is taken for the first time they are found to be offline."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OfflineSlashGrace",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "u32"
|
||||
},
|
||||
"fallback": "0x00000000",
|
||||
"documentation": [
|
||||
" Number of instances of offline reports before slashing begins for validators."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Invulnerables",
|
||||
"modifier": 1,
|
||||
@@ -1037,7 +1038,7 @@
|
||||
"linked": true
|
||||
}
|
||||
},
|
||||
"fallback": "0x0c00",
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" The map from (wannabe) validator stash key to the preferences of that validator."
|
||||
]
|
||||
@@ -1145,35 +1146,6 @@
|
||||
" This is used to derive rewards and punishments."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SlashCount",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Map": {
|
||||
"hasher": "Blake2_256",
|
||||
"key": "AccountId",
|
||||
"value": "u32",
|
||||
"linked": false
|
||||
}
|
||||
},
|
||||
"fallback": "0x00000000",
|
||||
"documentation": [
|
||||
" The number of times a given validator has been reported offline. This gets decremented",
|
||||
" by one each era that passes."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "RecentlyOffline",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "Vec<(AccountId,BlockNumber,u32)>"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Most recent `RECENT_OFFLINE_COUNT` instances. (Who it was, when it was reported, how",
|
||||
" many instances they were offline for)."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ForceEra",
|
||||
"modifier": 1,
|
||||
@@ -1185,6 +1157,19 @@
|
||||
" True if the next session change will be a new era regardless of index."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SlashRewardFraction",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "Perbill"
|
||||
},
|
||||
"fallback": "0x00000000",
|
||||
"documentation": [
|
||||
" The percentage of the slash that is distributed to reporters.",
|
||||
"",
|
||||
" The rest of the slashed value is handled by the `Slash`."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BondedEras",
|
||||
"modifier": 1,
|
||||
@@ -1195,6 +1180,22 @@
|
||||
"documentation": [
|
||||
" A mapping from still-bonded eras to the first session index of that era."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "EraSlashJournal",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Map": {
|
||||
"hasher": "Blake2_256",
|
||||
"key": "EraIndex",
|
||||
"value": "Vec<SlashJournalEntry>",
|
||||
"linked": false
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" All slashes that have occurred in a given era."
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1219,7 +1220,7 @@
|
||||
" Take the origin account as a stash and lock up `value` of its balance. `controller` will",
|
||||
" be the account that controls it.",
|
||||
"",
|
||||
" `value` must be more than the `existential_deposit` defined in the Balances module.",
|
||||
" `value` must be more than the `minimum_balance` specified by `T::Currency`.",
|
||||
"",
|
||||
" The dispatch origin for this call must be _Signed_ by the stash account.",
|
||||
"",
|
||||
@@ -1269,7 +1270,7 @@
|
||||
"documentation": [
|
||||
" Schedule a portion of the stash to be unlocked ready for transfer out after the bond",
|
||||
" period ends. If this leaves an amount actively bonded less than",
|
||||
" T::Currency::existential_deposit(), then it is increased to the full amount.",
|
||||
" T::Currency::minimum_balance(), then it is increased to the full amount.",
|
||||
"",
|
||||
" Once the unlock period is done, you can call `withdraw_unbonded` to actually move",
|
||||
" the funds out of management ready for transfer.",
|
||||
@@ -1454,18 +1455,6 @@
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "set_offline_slash_grace",
|
||||
"args": [
|
||||
{
|
||||
"name": "new",
|
||||
"type": "Compact<u32>"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Set the offline slash grace period."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "set_invulnerables",
|
||||
"args": [
|
||||
@@ -1490,18 +1479,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OfflineWarning",
|
||||
"args": [
|
||||
"AccountId",
|
||||
"u32"
|
||||
],
|
||||
"documentation": [
|
||||
" One validator (and its nominators) has been given an offline-warning (it is still",
|
||||
" within its grace). The accrued number of slashes is recorded, too."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OfflineSlash",
|
||||
"name": "Slash",
|
||||
"args": [
|
||||
"AccountId",
|
||||
"Balance"
|
||||
@@ -1509,6 +1487,16 @@
|
||||
"documentation": [
|
||||
" One validator (and its nominators) has been slashed by the given amount."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OldSlashingReportDiscarded",
|
||||
"args": [
|
||||
"SessionIndex"
|
||||
],
|
||||
"documentation": [
|
||||
" An old slashing report from a prior era was discarded because it could",
|
||||
" not be processed."
|
||||
]
|
||||
}
|
||||
],
|
||||
"constants": [
|
||||
@@ -1523,13 +1511,90 @@
|
||||
{
|
||||
"name": "BondingDuration",
|
||||
"type": "EraIndex",
|
||||
"value": "0xa0020000",
|
||||
"value": "0x1c000000",
|
||||
"documentation": [
|
||||
" Number of eras that staked funds must remain bonded for."
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Offences",
|
||||
"storage": {
|
||||
"prefix": "Offences",
|
||||
"items": [
|
||||
{
|
||||
"name": "Reports",
|
||||
"modifier": 0,
|
||||
"type": {
|
||||
"Map": {
|
||||
"hasher": "Blake2_256",
|
||||
"key": "ReportIdOf",
|
||||
"value": "OffenceDetails",
|
||||
"linked": false
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" The primary structure that holds all offence records keyed by report identifiers."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ConcurrentReportsIndex",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"DoubleMap": {
|
||||
"hasher": "Blake2_256",
|
||||
"key1": "Kind",
|
||||
"key2": "OpaqueTimeSlot",
|
||||
"value": "Vec<ReportIdOf>",
|
||||
"key2Hasher": "Blake2_256"
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" A vector of reports of the same kind that happened at the same time slot."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ReportsByKindIndex",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Map": {
|
||||
"hasher": "Blake2_256",
|
||||
"key": "Kind",
|
||||
"value": "Bytes",
|
||||
"linked": false
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Enumerates all reports of a kind along with the time they happened.",
|
||||
"",
|
||||
" All reports are sorted by the time of offence.",
|
||||
"",
|
||||
" Note that the actual type of this mapping is `Vec<u8>`, this is because values of",
|
||||
" different types are not supported at the moment so we are doing the manual serialization."
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"calls": [],
|
||||
"events": [
|
||||
{
|
||||
"name": "Offence",
|
||||
"args": [
|
||||
"Kind",
|
||||
"OpaqueTimeSlot"
|
||||
],
|
||||
"documentation": [
|
||||
" There is an offence reported of the given `kind` happened at the `session_index` and",
|
||||
" (kind-specific) time slot. This event is not deposited for duplicate slashes."
|
||||
]
|
||||
}
|
||||
],
|
||||
"constants": []
|
||||
},
|
||||
{
|
||||
"name": "Session",
|
||||
"storage": {
|
||||
@@ -1557,17 +1622,6 @@
|
||||
" Current index of the session."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Changed",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "bool"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" True if anything has changed in this session."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "QueuedChanged",
|
||||
"modifier": 1,
|
||||
@@ -1576,7 +1630,8 @@
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Queued keys changed."
|
||||
" True if the underlying economic identities or weighting behind the validators",
|
||||
" has changed in the queued validator set."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1781,6 +1836,34 @@
|
||||
"documentation": [
|
||||
" `true` if we are currently stalled."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CurrentSetId",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "SetId"
|
||||
},
|
||||
"fallback": "0x0000000000000000",
|
||||
"documentation": [
|
||||
" The number of changes (both in terms of keys and underlying economic responsibilities)",
|
||||
" in the \"set\" of Grandpa validators from genesis."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SetIdSession",
|
||||
"modifier": 0,
|
||||
"type": {
|
||||
"Map": {
|
||||
"hasher": "Blake2_256",
|
||||
"key": "SetId",
|
||||
"value": "SessionIndex",
|
||||
"linked": false
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" A mapping from grandpa set ID to the index of the *most recent* session for which its members were responsible."
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1802,7 +1885,7 @@
|
||||
{
|
||||
"name": "NewAuthorities",
|
||||
"args": [
|
||||
"Vec<(AuthorityId,u64)>"
|
||||
"Vec<(AuthorityId,AuthorityWeight)>"
|
||||
],
|
||||
"documentation": [
|
||||
" New authority set has been applied."
|
||||
@@ -1882,7 +1965,7 @@
|
||||
},
|
||||
{
|
||||
"name": "signature",
|
||||
"type": "AuthoritySignature"
|
||||
"type": "Signature"
|
||||
}
|
||||
],
|
||||
"documentation": []
|
||||
@@ -2503,7 +2586,7 @@
|
||||
{
|
||||
"name": "EnactmentPeriod",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x008d2700",
|
||||
"value": "0x80970600",
|
||||
"documentation": [
|
||||
" The minimum period of locking and the period between a proposal being approved and enacted.",
|
||||
"",
|
||||
@@ -2515,7 +2598,7 @@
|
||||
{
|
||||
"name": "LaunchPeriod",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x00ea2400",
|
||||
"value": "0x00270600",
|
||||
"documentation": [
|
||||
" How often (in blocks) new public referenda are launched."
|
||||
]
|
||||
@@ -2523,7 +2606,7 @@
|
||||
{
|
||||
"name": "VotingPeriod",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x00ea2400",
|
||||
"value": "0x00270600",
|
||||
"documentation": [
|
||||
" How often (in blocks) to check for new votes."
|
||||
]
|
||||
@@ -2539,7 +2622,7 @@
|
||||
{
|
||||
"name": "EmergencyVotingPeriod",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x80f40300",
|
||||
"value": "0xc0a80000",
|
||||
"documentation": [
|
||||
" Minimum voting period allowed for an emergency referendum."
|
||||
]
|
||||
@@ -2547,7 +2630,7 @@
|
||||
{
|
||||
"name": "CooloffPeriod",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x00ea2400",
|
||||
"value": "0x00270600",
|
||||
"documentation": [
|
||||
" Period in blocks where an external proposal may not be re-submitted after being vetoed."
|
||||
]
|
||||
@@ -3530,7 +3613,7 @@
|
||||
{
|
||||
"name": "VotingPeriod",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x00a30200",
|
||||
"value": "0x80700000",
|
||||
"documentation": [
|
||||
" How often (in blocks) to check for new votes. A reasonable default value",
|
||||
" is 1000."
|
||||
@@ -3858,7 +3941,7 @@
|
||||
{
|
||||
"name": "ProposalBondMinimum",
|
||||
"type": "BalanceOf",
|
||||
"value": "0x00e40b54020000000000000000000000",
|
||||
"value": "0x0010a5d4e80000000000000000000000",
|
||||
"documentation": [
|
||||
" Minimum amount of funds that should be placed in a deposit for making a proposal."
|
||||
]
|
||||
@@ -3866,7 +3949,7 @@
|
||||
{
|
||||
"name": "SpendPeriod",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x80510100",
|
||||
"value": "0x00460500",
|
||||
"documentation": [
|
||||
" Period between successive spends."
|
||||
]
|
||||
@@ -3874,7 +3957,7 @@
|
||||
{
|
||||
"name": "Burn",
|
||||
"type": "Permill",
|
||||
"value": "0x20a10700",
|
||||
"value": "0x50c30000",
|
||||
"documentation": [
|
||||
" Percentage of spare funds (if any) that are burnt per spend period."
|
||||
]
|
||||
@@ -3953,88 +4036,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Sudo",
|
||||
"storage": {
|
||||
"prefix": "Sudo",
|
||||
"items": [
|
||||
{
|
||||
"name": "Key",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "AccountId"
|
||||
},
|
||||
"fallback": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"documentation": [
|
||||
" The `AccountId` of the sudo key."
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"calls": [
|
||||
{
|
||||
"name": "sudo",
|
||||
"args": [
|
||||
{
|
||||
"name": "proposal",
|
||||
"type": "Proposal"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Authenticates the sudo key and dispatches a function call with `Root` origin.",
|
||||
"",
|
||||
" The dispatch origin for this call must be _Signed_.",
|
||||
"",
|
||||
" # <weight>",
|
||||
" - O(1).",
|
||||
" - Limited storage reads.",
|
||||
" - No DB writes.",
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "set_key",
|
||||
"args": [
|
||||
{
|
||||
"name": "new",
|
||||
"type": "Address"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.",
|
||||
"",
|
||||
" The dispatch origin for this call must be _Signed_.",
|
||||
"",
|
||||
" # <weight>",
|
||||
" - O(1).",
|
||||
" - Limited storage reads.",
|
||||
" - One DB change.",
|
||||
" # </weight>"
|
||||
]
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"name": "Sudid",
|
||||
"args": [
|
||||
"bool"
|
||||
],
|
||||
"documentation": [
|
||||
" A sudo just took place."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "KeyChanged",
|
||||
"args": [
|
||||
"AccountId"
|
||||
],
|
||||
"documentation": [
|
||||
" The sudoer just switched identity; the old key is supplied."
|
||||
]
|
||||
}
|
||||
],
|
||||
"constants": []
|
||||
},
|
||||
{
|
||||
"name": "Parachains",
|
||||
"storage": {
|
||||
@@ -4723,6 +4724,88 @@
|
||||
}
|
||||
],
|
||||
"constants": []
|
||||
},
|
||||
{
|
||||
"name": "Sudo",
|
||||
"storage": {
|
||||
"prefix": "Sudo",
|
||||
"items": [
|
||||
{
|
||||
"name": "Key",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "AccountId"
|
||||
},
|
||||
"fallback": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"documentation": [
|
||||
" The `AccountId` of the sudo key."
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"calls": [
|
||||
{
|
||||
"name": "sudo",
|
||||
"args": [
|
||||
{
|
||||
"name": "proposal",
|
||||
"type": "Proposal"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Authenticates the sudo key and dispatches a function call with `Root` origin.",
|
||||
"",
|
||||
" The dispatch origin for this call must be _Signed_.",
|
||||
"",
|
||||
" # <weight>",
|
||||
" - O(1).",
|
||||
" - Limited storage reads.",
|
||||
" - No DB writes.",
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "set_key",
|
||||
"args": [
|
||||
{
|
||||
"name": "new",
|
||||
"type": "Address"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.",
|
||||
"",
|
||||
" The dispatch origin for this call must be _Signed_.",
|
||||
"",
|
||||
" # <weight>",
|
||||
" - O(1).",
|
||||
" - Limited storage reads.",
|
||||
" - One DB change.",
|
||||
" # </weight>"
|
||||
]
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{
|
||||
"name": "Sudid",
|
||||
"args": [
|
||||
"bool"
|
||||
],
|
||||
"documentation": [
|
||||
" A sudo just took place."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "KeyChanged",
|
||||
"args": [
|
||||
"AccountId"
|
||||
],
|
||||
"documentation": [
|
||||
" The sudoer just switched identity; the old key is supplied."
|
||||
]
|
||||
}
|
||||
],
|
||||
"constants": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1123,10 +1123,10 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CurrentEraRewards",
|
||||
"name": "CurrentEraPointsEarned",
|
||||
"modifier": 1,
|
||||
"type": {
|
||||
"Type": "EraRewards"
|
||||
"Type": "EraPoints"
|
||||
},
|
||||
"fallback": "0x0000000000",
|
||||
"documentation": [
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -19,7 +19,7 @@ import { AuthorityWeight, NextAuthority, PendingPause, PendingResume, SetId, Sto
|
||||
import { AuthIndex, AuthoritySignature, Heartbeat, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from './interfaces/imOnline';
|
||||
import { Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from './interfaces/offences';
|
||||
import { FullIdentification, IdentificationTuple, Keys, SessionIndex, SessionKeysPolkadot, SessionKeysSubstrate } from './interfaces/session';
|
||||
import { EraIndex, EraRewards, Exposure, Forcing, IndividualExposure, MomentOf, RewardDestination, SlashJournalEntry, StakingLedger, UnlockChunk, ValidatorPrefs, ValidatorPrefs0to145 } from './interfaces/staking';
|
||||
import { EraIndex, EraPoints, EraRewards, Exposure, Forcing, IndividualExposure, MomentOf, Points, RewardDestination, SlashJournalEntry, StakingLedger, UnlockChunk, ValidatorPrefs, ValidatorPrefs0to145 } from './interfaces/staking';
|
||||
import { DigestOf, DispatchError, Event, EventId, EventIndex, EventRecord, EventRecord0to76, Key, Phase } from './interfaces/system';
|
||||
import { TreasuryProposal } from './interfaces/treasury';
|
||||
import { BlockAttestations, IncludedBlocks, MoreAttestations } from './interfaces/attestations';
|
||||
@@ -533,6 +533,9 @@ export interface InterfaceRegistry {
|
||||
'Compact<EraIndex>': Compact<EraIndex>;
|
||||
'Option<EraIndex>': Option<EraIndex>;
|
||||
'Vec<EraIndex>': Vec<EraIndex>;
|
||||
EraPoints: EraPoints;
|
||||
'Option<EraPoints>': Option<EraPoints>;
|
||||
'Vec<EraPoints>': Vec<EraPoints>;
|
||||
EraRewards: EraRewards;
|
||||
'Option<EraRewards>': Option<EraRewards>;
|
||||
'Vec<EraRewards>': Vec<EraRewards>;
|
||||
@@ -548,6 +551,10 @@ export interface InterfaceRegistry {
|
||||
MomentOf: MomentOf;
|
||||
'Option<MomentOf>': Option<MomentOf>;
|
||||
'Vec<MomentOf>': Vec<MomentOf>;
|
||||
Points: Points;
|
||||
'Compact<Points>': Compact<Points>;
|
||||
'Option<Points>': Option<Points>;
|
||||
'Vec<Points>': Vec<Points>;
|
||||
RewardDestination: RewardDestination;
|
||||
'Option<RewardDestination>': Option<RewardDestination>;
|
||||
'Vec<RewardDestination>': Vec<RewardDestination>;
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
export default {
|
||||
types: {
|
||||
EraIndex: 'u32',
|
||||
EraPoints: {
|
||||
total: 'Points',
|
||||
individual: 'Vec<Points>'
|
||||
},
|
||||
EraRewards: {
|
||||
total: 'u32',
|
||||
rewards: 'Vec<u32>'
|
||||
@@ -26,6 +30,7 @@ export default {
|
||||
value: 'Compact<Balance>'
|
||||
},
|
||||
MomentOf: 'Moment',
|
||||
Points: 'u32',
|
||||
RewardDestination: {
|
||||
_enum: [
|
||||
'Staked',
|
||||
|
||||
@@ -8,6 +8,14 @@ import { AccountId, Balance, BlockNumber, Moment } from '../runtime';
|
||||
/** u32 */
|
||||
export type EraIndex = u32;
|
||||
|
||||
/** Struct */
|
||||
export interface EraPoints extends Struct {
|
||||
/** Points */
|
||||
readonly total: Points;
|
||||
/** Vec<Points> */
|
||||
readonly individual: Vec<Points>;
|
||||
}
|
||||
|
||||
/** Struct */
|
||||
export interface EraRewards extends Struct {
|
||||
/** u32 */
|
||||
@@ -47,6 +55,9 @@ export interface IndividualExposure extends Struct {
|
||||
/** Moment */
|
||||
export type MomentOf = Moment;
|
||||
|
||||
/** u32 */
|
||||
export type Points = u32;
|
||||
|
||||
/** Enum */
|
||||
export interface RewardDestination extends Enum {
|
||||
/** 0:: Staked */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import '../../injector';
|
||||
|
||||
import { setAddressPrefix } from '@polkadot/util-crypto';
|
||||
import { setSS58Format } from '@polkadot/util-crypto';
|
||||
|
||||
import { createType } from '../../codec/create';
|
||||
import U8a from '../../codec/U8a';
|
||||
@@ -84,7 +84,7 @@ describe('AccountId', (): void => {
|
||||
|
||||
describe('storage decoding', (): void => {
|
||||
it('has the correct entries', (): void => {
|
||||
setAddressPrefix(68);
|
||||
setSS58Format(68);
|
||||
|
||||
const data = createType('StorageData', jsonVec.params.result.changes[0][1]);
|
||||
const list = createType('Vec<AccountId>', data).map((accountId): string => accountId.toString());
|
||||
|
||||
Reference in New Issue
Block a user