Add SetId from grandpa (#1343)
* Add SetId from grandpa * Add latest static
This commit is contained in:
@@ -838,6 +838,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": [
|
||||
@@ -1522,17 +1543,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,
|
||||
@@ -1541,7 +1551,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."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -3533,6 +3544,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."
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -3554,7 +3593,7 @@
|
||||
{
|
||||
"name": "NewAuthorities",
|
||||
"args": [
|
||||
"Vec<(AuthorityId,u64)>"
|
||||
"Vec<(AuthorityId,AuthorityWeight)>"
|
||||
],
|
||||
"documentation": [
|
||||
" New authority set has been applied."
|
||||
@@ -4352,6 +4391,13 @@
|
||||
],
|
||||
"constants": []
|
||||
},
|
||||
{
|
||||
"name": "AuthorityDiscovery",
|
||||
"storage": null,
|
||||
"calls": [],
|
||||
"events": null,
|
||||
"constants": []
|
||||
},
|
||||
{
|
||||
"name": "Offences",
|
||||
"storage": {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@ import { Conviction, PropIndex, Proposal, ReferendumIndex, ReferendumInfo } from
|
||||
import { AccountInfo, Amount, AssetOf, InherentOfflineReport, LockPeriods, NewAccountOutcome, OpaqueKey, SessionKey } from './interfaces/deprecated';
|
||||
import { ApprovalFlag, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from './interfaces/elections';
|
||||
import { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from './interfaces/genericAsset';
|
||||
import { AuthorityWeight, NextAuthority, PendingPause, PendingResume, StoredPendingChange, StoredState } from './interfaces/grandpa';
|
||||
import { AuthorityWeight, NextAuthority, PendingPause, PendingResume, SetId, StoredPendingChange, StoredState } from './interfaces/grandpa';
|
||||
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';
|
||||
@@ -436,6 +436,10 @@ export interface InterfaceRegistry {
|
||||
PendingResume: PendingResume;
|
||||
'Option<PendingResume>': Option<PendingResume>;
|
||||
'Vec<PendingResume>': Vec<PendingResume>;
|
||||
SetId: SetId;
|
||||
'Compact<SetId>': Compact<SetId>;
|
||||
'Option<SetId>': Option<SetId>;
|
||||
'Vec<SetId>': Vec<SetId>;
|
||||
StoredPendingChange: StoredPendingChange;
|
||||
'Option<StoredPendingChange>': Option<StoredPendingChange>;
|
||||
'Vec<StoredPendingChange>': Vec<StoredPendingChange>;
|
||||
|
||||
@@ -18,6 +18,7 @@ export default {
|
||||
/// Number of blocks after which the change will be enacted.
|
||||
delay: 'BlockNumber'
|
||||
},
|
||||
SetId: 'u64',
|
||||
StoredPendingChange: {
|
||||
scheduledAt: 'BlockNumber',
|
||||
delay: 'BlockNumber',
|
||||
|
||||
@@ -29,6 +29,9 @@ export interface PendingResume extends Struct {
|
||||
readonly delay: BlockNumber;
|
||||
}
|
||||
|
||||
/** u64 */
|
||||
export type SetId = u64;
|
||||
|
||||
/** Struct */
|
||||
export interface StoredPendingChange extends Struct {
|
||||
/** BlockNumber */
|
||||
|
||||
Reference in New Issue
Block a user