Skip to content

Commit 393f46b

Browse files
authored
Bump metadata (#2300)
1 parent 455f5ad commit 393f46b

File tree

2 files changed

+78
-22
lines changed

2 files changed

+78
-22
lines changed

packages/metadata/src/Metadata/v11/static-substrate.json

Lines changed: 77 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
]
3737
},
3838
{
39-
"name": "AllExtrinsicsWeight",
39+
"name": "BlockWeight",
4040
"modifier": "Default",
4141
"type": {
4242
"Plain": "ExtrinsicsWeight"
4343
},
4444
"fallback": "0x00000000000000000000000000000000",
4545
"documentation": [
46-
" Total weight for all extrinsics for the current block."
46+
" The current weight for the block."
4747
]
4848
},
4949
{
@@ -1064,7 +1064,9 @@
10641064
}
10651065
},
10661066
"fallback": "0x00",
1067-
"documentation": []
1067+
"documentation": [
1068+
" TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."
1069+
]
10681070
},
10691071
{
10701072
"name": "Initialized",
@@ -1807,6 +1809,14 @@
18071809
"documentation": [
18081810
" The fee to be paid for making a transaction; the per-byte portion."
18091811
]
1812+
},
1813+
{
1814+
"name": "WeightToFee",
1815+
"type": "Vec<WeightToFeeCoefficient>",
1816+
"value": "0x0401000000000000000000000000000000000000000001",
1817+
"documentation": [
1818+
" The polynomial that is applied in order to derive fee from weight."
1819+
]
18101820
}
18111821
],
18121822
"errors": []
@@ -3641,7 +3651,9 @@
36413651
},
36423652
"fallback": "0x00",
36433653
"documentation": [
3644-
" Those who have locked a deposit."
3654+
" Those who have locked a deposit.",
3655+
"",
3656+
" TWOX-NOTE: Safe, as increasing integer keys are safe."
36453657
]
36463658
},
36473659
{
@@ -3697,7 +3709,9 @@
36973709
},
36983710
"fallback": "0x00",
36993711
"documentation": [
3700-
" Information concerning any given referendum."
3712+
" Information concerning any given referendum.",
3713+
"",
3714+
" TWOX-NOTE: SAFE as indexes are not under an attacker’s control."
37013715
]
37023716
},
37033717
{
@@ -3714,7 +3728,9 @@
37143728
"fallback": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
37153729
"documentation": [
37163730
" All votes for a particular voter. We store the balance for the number of votes that we",
3717-
" have recorded. The second item is the total amount of delegations, that will be added."
3731+
" have recorded. The second item is the total amount of delegations, that will be added.",
3732+
"",
3733+
" TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."
37183734
]
37193735
},
37203736
{
@@ -3731,7 +3747,9 @@
37313747
"fallback": "0x00",
37323748
"documentation": [
37333749
" Who is able to vote for whom. Value is the fund-holding account, key is the",
3734-
" vote-transaction-sending account."
3750+
" vote-transaction-sending account.",
3751+
"",
3752+
" TWOX-NOTE: OK ― `AccountId` is a secure hash."
37353753
]
37363754
},
37373755
{
@@ -3748,7 +3766,9 @@
37483766
"fallback": "0x00",
37493767
"documentation": [
37503768
" Accounts for which there are locks in action which may be removed at some point in the",
3751-
" future. The value is the block number at which the lock expires and may be removed."
3769+
" future. The value is the block number at which the lock expires and may be removed.",
3770+
"",
3771+
" TWOX-NOTE: OK ― `AccountId` is a secure hash."
37523772
]
37533773
},
37543774
{
@@ -4342,13 +4362,22 @@
43424362
" Emits `PreimageNoted`.",
43434363
"",
43444364
" # <weight>",
4345-
" - Complexity: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).",
4346-
" - Db reads: `Preimages`",
4347-
" - Db writes: `Preimages`",
4348-
" - Base Weight: 37.93 + .004 * b µs",
4365+
" see `weight_for::note_preimage`",
43494366
" # </weight>"
43504367
]
43514368
},
4369+
{
4370+
"name": "note_preimage_operational",
4371+
"args": [
4372+
{
4373+
"name": "encoded_proposal",
4374+
"type": "Bytes"
4375+
}
4376+
],
4377+
"documentation": [
4378+
" Same as `note_preimage` but origin is `OperationalPreimageOrigin`."
4379+
]
4380+
},
43524381
{
43534382
"name": "note_imminent_preimage",
43544383
"args": [
@@ -4368,13 +4397,22 @@
43684397
" Emits `PreimageNoted`.",
43694398
"",
43704399
" # <weight>",
4371-
" - Complexity: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).",
4372-
" - Db reads: `Preimages`",
4373-
" - Db writes: `Preimages`",
4374-
" - Base Weight: 28.04 + .003 * b µs",
4400+
" see `weight_for::note_preimage`",
43754401
" # </weight>"
43764402
]
43774403
},
4404+
{
4405+
"name": "note_imminent_preimage_operational",
4406+
"args": [
4407+
{
4408+
"name": "encoded_proposal",
4409+
"type": "Bytes"
4410+
}
4411+
],
4412+
"documentation": [
4413+
" Same as `note_imminent_preimage` but origin is `OperationalPreimageOrigin`."
4414+
]
4415+
},
43784416
{
43794417
"name": "reap_preimage",
43804418
"args": [
@@ -4882,6 +4920,14 @@
48824920
"documentation": [
48834921
" The amount of balance that must be deposited per byte of preimage stored."
48844922
]
4923+
},
4924+
{
4925+
"name": "MaxVotes",
4926+
"type": "u32",
4927+
"value": "0x64000000",
4928+
"documentation": [
4929+
" The maximum number of votes for an account."
4930+
]
48854931
}
48864932
],
48874933
"errors": [
@@ -6019,7 +6065,9 @@
60196065
},
60206066
"fallback": "0x0000000000000000000000000000000000",
60216067
"documentation": [
6022-
" Votes and locked stake of a particular voter."
6068+
" Votes and locked stake of a particular voter.",
6069+
"",
6070+
" TWOX-NOTE: SAFE as `AccountId` is a crypto hash"
60236071
]
60246072
},
60256073
{
@@ -6750,7 +6798,9 @@
67506798
"fallback": "0x00",
67516799
"documentation": [
67526800
" A mapping from grandpa set ID to the index of the *most recent* session for which its",
6753-
" members were responsible."
6801+
" members were responsible.",
6802+
"",
6803+
" TWOX-NOTE: `SetId` is not under user control."
67546804
]
67556805
}
67566806
]
@@ -7467,7 +7517,9 @@
74677517
},
74687518
"fallback": "0x00",
74697519
"documentation": [
7470-
" The code associated with a given account."
7520+
" The code associated with a given account.",
7521+
"",
7522+
" TWOX-NOTE: SAFE since `AccountId` is a secure hash."
74717523
]
74727524
}
74737525
]
@@ -8241,7 +8293,9 @@
82418293
},
82428294
"fallback": "0x00",
82438295
"documentation": [
8244-
" Information that is pertinent to identify the entity behind an account."
8296+
" Information that is pertinent to identify the entity behind an account.",
8297+
"",
8298+
" TWOX-NOTE: OK ― `AccountId` is a secure hash."
82458299
]
82468300
},
82478301
{
@@ -8276,7 +8330,9 @@
82768330
"documentation": [
82778331
" Alternative \"sub\" identities of this account.",
82788332
"",
8279-
" The first item is the deposit, the second is a vector of the accounts."
8333+
" The first item is the deposit, the second is a vector of the accounts.",
8334+
"",
8335+
" TWOX-NOTE: OK ― `AccountId` is a secure hash."
82808336
]
82818337
},
82828338
{

packages/metadata/src/Metadata/v11/static.ts

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

0 commit comments

Comments
 (0)