Skip to content

Commit 32c4aa3

Browse files
authored
Bump polkadot meta (#1419)
1 parent 8293f4b commit 32c4aa3

File tree

2 files changed

+110
-82
lines changed

2 files changed

+110
-82
lines changed

packages/types/src/Metadata/v7/static-polkadot.json

Lines changed: 109 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -327,16 +327,15 @@
327327
]
328328
},
329329
{
330-
"name": "EpochStartSlot",
330+
"name": "GenesisSlot",
331331
"modifier": 1,
332332
"type": {
333333
"Type": "u64"
334334
},
335335
"fallback": "0x0000000000000000",
336336
"documentation": [
337-
" Slot at which the current epoch started. It is possible that no",
338-
" block was authored at the given slot and the epoch change was",
339-
" signalled later than this."
337+
" The slot at which the first epoch actually started. This is 0",
338+
" until the first block of the chain."
340339
]
341340
},
342341
{
@@ -350,30 +349,6 @@
350349
" Current slot number."
351350
]
352351
},
353-
{
354-
"name": "SecondarySlots",
355-
"modifier": 1,
356-
"type": {
357-
"Type": "(bool,bool)"
358-
},
359-
"fallback": "0x0101",
360-
"documentation": [
361-
" Whether secondary slots are enabled in case the VRF-based slot is",
362-
" empty for the current epoch and the next epoch, respectively."
363-
]
364-
},
365-
{
366-
"name": "PendingSecondarySlotsChange",
367-
"modifier": 0,
368-
"type": {
369-
"Type": "bool"
370-
},
371-
"fallback": "0x00",
372-
"documentation": [
373-
" Pending change to enable/disable secondary slots which will be",
374-
" triggered at `current_epoch + 2`."
375-
]
376-
},
377352
{
378353
"name": "Randomness",
379354
"modifier": 1,
@@ -442,32 +417,17 @@
442417
"name": "Initialized",
443418
"modifier": 0,
444419
"type": {
445-
"Type": "bool"
420+
"Type": "MaybeVrf"
446421
},
447422
"fallback": "0x00",
448423
"documentation": [
449-
" Temporary value (cleared at block finalization) which is true",
424+
" Temporary value (cleared at block finalization) which is `Some`",
450425
" if per-block initialization has already been called for current block."
451426
]
452427
}
453428
]
454429
},
455-
"calls": [
456-
{
457-
"name": "set_pending_secondary_slots_change",
458-
"args": [
459-
{
460-
"name": "change",
461-
"type": "Option<bool>"
462-
}
463-
],
464-
"documentation": [
465-
" Sets a pending change to enable / disable secondary slot assignment.",
466-
" The pending change will be set at the end of the current epoch and",
467-
" will be enacted at `current_epoch + 2`."
468-
]
469-
}
470-
],
430+
"calls": [],
471431
"events": null,
472432
"constants": [
473433
{
@@ -1123,10 +1083,10 @@
11231083
]
11241084
},
11251085
{
1126-
"name": "CurrentEraRewards",
1086+
"name": "CurrentEraPointsEarned",
11271087
"modifier": 1,
11281088
"type": {
1129-
"Type": "EraRewards"
1089+
"Type": "EraPoints"
11301090
},
11311091
"fallback": "0x0000000000",
11321092
"documentation": [
@@ -1646,6 +1606,19 @@
16461606
" will be used to determine the validator's session keys."
16471607
]
16481608
},
1609+
{
1610+
"name": "DisabledValidators",
1611+
"modifier": 1,
1612+
"type": {
1613+
"Type": "Vec<u32>"
1614+
},
1615+
"fallback": "0x00",
1616+
"documentation": [
1617+
" Indices of disabled validators.",
1618+
"",
1619+
" The set is cleared when `on_session_ending` returns a new set of identities."
1620+
]
1621+
},
16491622
{
16501623
"name": "NextKeys",
16511624
"modifier": 0,
@@ -1984,6 +1957,13 @@
19841957
],
19851958
"constants": []
19861959
},
1960+
{
1961+
"name": "AuthorityDiscovery",
1962+
"storage": null,
1963+
"calls": [],
1964+
"events": null,
1965+
"constants": []
1966+
},
19871967
{
19881968
"name": "Democracy",
19891969
"storage": {
@@ -3111,10 +3091,10 @@
31113091
},
31123092
"fallback": "0x00",
31133093
"documentation": [
3114-
" The current membership. When there's a vote going on, this should still be used for executive",
3115-
" matters. The block number (second element in the tuple) is the block that their position is",
3116-
" active until (calculated by the sum of the block number when the member was elected",
3117-
" and their term duration)."
3094+
" The current membership. When there's a vote going on, this should still be used for",
3095+
" executive matters. The block number (second element in the tuple) is the block that",
3096+
" their position is active until (calculated by the sum of the block number when the",
3097+
" member was elected and their term duration)."
31183098
]
31193099
},
31203100
{
@@ -3140,13 +3120,7 @@
31403120
}
31413121
},
31423122
"fallback": "0x00",
3143-
"documentation": [
3144-
" A list of votes for each voter. The votes are stored as numeric values and parsed in a bit-wise manner.",
3145-
"",
3146-
" In order to get a human-readable representation (`Vec<bool>`), use [`all_approvals_of`].",
3147-
"",
3148-
" Furthermore, each vector of scalars is chunked with the cap of `APPROVAL_SET_SIZE`."
3149-
]
3123+
"documentation": []
31503124
},
31513125
{
31523126
"name": "RegisterInfoOf",
@@ -3161,8 +3135,8 @@
31613135
},
31623136
"fallback": "0x00",
31633137
"documentation": [
3164-
" The vote index and list slot that the candidate `who` was registered or `None` if they are not",
3165-
" currently registered."
3138+
" The vote index and list slot that the candidate `who` was registered or `None` if they",
3139+
" are not currently registered."
31663140
]
31673141
},
31683142
{
@@ -3260,8 +3234,9 @@
32603234
},
32613235
"fallback": "0x00",
32623236
"documentation": [
3263-
" Get the leaderboard if we're in the presentation phase. The first element is the weight of each entry;",
3264-
" It may be the direct summed approval stakes, or a weighted version of it."
3237+
" Get the leaderboard if we're in the presentation phase. The first element is the weight",
3238+
" of each entry; It may be the direct summed approval stakes, or a weighted version of it.",
3239+
" Sorted from low to high."
32653240
]
32663241
},
32673242
{
@@ -3298,27 +3273,31 @@
32983273
{
32993274
"name": "hint",
33003275
"type": "SetIndex"
3276+
},
3277+
{
3278+
"name": "value",
3279+
"type": "BalanceOf"
33013280
}
33023281
],
33033282
"documentation": [
33043283
" Set candidate approvals. Approval slots stay valid as long as candidates in those slots",
33053284
" are registered.",
33063285
"",
3307-
" Locks the total balance of caller indefinitely.",
3308-
" Only [`retract_voter`] or [`reap_inactive_voter`] can unlock the balance.",
3286+
" Locks `value` from the balance of `origin` indefinitely. Only [`retract_voter`] or",
3287+
" [`reap_inactive_voter`] can unlock the balance.",
33093288
"",
33103289
" `hint` argument is interpreted differently based on:",
3311-
" - if `origin` is setting approvals for the first time: The index will be checked",
3312-
" for being a valid _hole_ in the voter list.",
3290+
" - if `origin` is setting approvals for the first time: The index will be checked for",
3291+
" being a valid _hole_ in the voter list.",
33133292
" - if the hint is correctly pointing to a hole, no fee is deducted from `origin`.",
3314-
" - Otherwise, the call will succeed but the index is ignored and simply a push to the last chunk",
3315-
" with free space happens. If the new push causes a new chunk to be created, a fee indicated by",
3316-
" [`VotingFee`] is deducted.",
3293+
" - Otherwise, the call will succeed but the index is ignored and simply a push to the",
3294+
" last chunk with free space happens. If the new push causes a new chunk to be",
3295+
" created, a fee indicated by [`VotingFee`] is deducted.",
33173296
" - if `origin` is already a voter: the index __must__ be valid and point to the correct",
3318-
" position of the `origin` in the current voters list.",
3297+
" position of the `origin` in the current voters list.",
33193298
"",
3320-
" Note that any trailing `false` votes in `votes` is ignored; In approval voting, not voting for a candidate",
3321-
" and voting false, are equal.",
3299+
" Note that any trailing `false` votes in `votes` is ignored; In approval voting, not",
3300+
" voting for a candidate and voting false, are equal.",
33223301
"",
33233302
" # <weight>",
33243303
" - O(1).",
@@ -3341,11 +3320,15 @@
33413320
{
33423321
"name": "hint",
33433322
"type": "SetIndex"
3323+
},
3324+
{
3325+
"name": "value",
3326+
"type": "BalanceOf"
33443327
}
33453328
],
33463329
"documentation": [
3347-
" Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in those slots",
3348-
" are registered.",
3330+
" Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in",
3331+
" those slots are registered.",
33493332
"",
33503333
" # <weight>",
33513334
" - Same as `set_approvals` with one additional storage read.",
@@ -3374,8 +3357,8 @@
33743357
],
33753358
"documentation": [
33763359
" Remove a voter. For it not to be a bond-consuming no-op, all approved candidate indices",
3377-
" must now be either unregistered or registered to a candidate that registered the slot after",
3378-
" the voter gave their last approval set.",
3360+
" must now be either unregistered or registered to a candidate that registered the slot",
3361+
" after the voter gave their last approval set.",
33793362
"",
33803363
" Both indices must be provided as explained in [`voter_at`] function.",
33813364
"",
@@ -3449,9 +3432,10 @@
34493432
}
34503433
],
34513434
"documentation": [
3452-
" Claim that `signed` is one of the top Self::carry_count() + current_vote().1 candidates.",
3453-
" Only works if the `block_number >= current_vote().0` and `< current_vote().0 + presentation_duration()`",
3454-
" `signed` should have at least",
3435+
" Claim that `candidate` is one of the top `carry_count + desired_seats` candidates. Only",
3436+
" works iff the presentation period is active. `candidate` should have at least collected",
3437+
" some non-zero `total` votes and `origin` must have enough funds to pay for a potential",
3438+
" slash.",
34553439
"",
34563440
" # <weight>",
34573441
" - O(voters) compute.",
@@ -3619,6 +3603,14 @@
36193603
" is 1000."
36203604
]
36213605
},
3606+
{
3607+
"name": "MinimumVotingLock",
3608+
"type": "BalanceOf",
3609+
"value": "0x00e40b54020000000000000000000000",
3610+
"documentation": [
3611+
" Minimum about that can be used as the locked value for voting."
3612+
]
3613+
},
36223614
{
36233615
"name": "DecayRatio",
36243616
"type": "u32",
@@ -4760,7 +4752,8 @@
47604752
" # <weight>",
47614753
" - O(1).",
47624754
" - Limited storage reads.",
4763-
" - No DB writes.",
4755+
" - One DB write (event).",
4756+
" - Unknown weight of derivative `proposal` execution.",
47644757
" # </weight>"
47654758
]
47664759
},
@@ -4783,6 +4776,32 @@
47834776
" - One DB change.",
47844777
" # </weight>"
47854778
]
4779+
},
4780+
{
4781+
"name": "sudo_as",
4782+
"args": [
4783+
{
4784+
"name": "who",
4785+
"type": "Address"
4786+
},
4787+
{
4788+
"name": "proposal",
4789+
"type": "Proposal"
4790+
}
4791+
],
4792+
"documentation": [
4793+
" Authenticates the sudo key and dispatches a function call with `Signed` origin from",
4794+
" a given account.",
4795+
"",
4796+
" The dispatch origin for this call must be _Signed_.",
4797+
"",
4798+
" # <weight>",
4799+
" - O(1).",
4800+
" - Limited storage reads.",
4801+
" - One DB write (event).",
4802+
" - Unknown weight of derivative `proposal` execution.",
4803+
" # </weight>"
4804+
]
47864805
}
47874806
],
47884807
"events": [
@@ -4803,6 +4822,15 @@
48034822
"documentation": [
48044823
" The sudoer just switched identity; the old key is supplied."
48054824
]
4825+
},
4826+
{
4827+
"name": "SudoAsDone",
4828+
"args": [
4829+
"bool"
4830+
],
4831+
"documentation": [
4832+
" A sudo just took place."
4833+
]
48064834
}
48074835
],
48084836
"constants": []

packages/types/src/Metadata/v7/static.polkadot.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)