|
36 | 36 | ] |
37 | 37 | }, |
38 | 38 | { |
39 | | - "name": "AllExtrinsicsWeight", |
| 39 | + "name": "BlockWeight", |
40 | 40 | "modifier": "Default", |
41 | 41 | "type": { |
42 | 42 | "Plain": "ExtrinsicsWeight" |
43 | 43 | }, |
44 | 44 | "fallback": "0x00000000000000000000000000000000", |
45 | 45 | "documentation": [ |
46 | | - " Total weight for all extrinsics for the current block." |
| 46 | + " The current weight for the block." |
47 | 47 | ] |
48 | 48 | }, |
49 | 49 | { |
|
1064 | 1064 | } |
1065 | 1065 | }, |
1066 | 1066 | "fallback": "0x00", |
1067 | | - "documentation": [] |
| 1067 | + "documentation": [ |
| 1068 | + " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay." |
| 1069 | + ] |
1068 | 1070 | }, |
1069 | 1071 | { |
1070 | 1072 | "name": "Initialized", |
|
1807 | 1809 | "documentation": [ |
1808 | 1810 | " The fee to be paid for making a transaction; the per-byte portion." |
1809 | 1811 | ] |
| 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 | + ] |
1810 | 1820 | } |
1811 | 1821 | ], |
1812 | 1822 | "errors": [] |
|
3641 | 3651 | }, |
3642 | 3652 | "fallback": "0x00", |
3643 | 3653 | "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." |
3645 | 3657 | ] |
3646 | 3658 | }, |
3647 | 3659 | { |
|
3697 | 3709 | }, |
3698 | 3710 | "fallback": "0x00", |
3699 | 3711 | "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." |
3701 | 3715 | ] |
3702 | 3716 | }, |
3703 | 3717 | { |
|
3714 | 3728 | "fallback": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", |
3715 | 3729 | "documentation": [ |
3716 | 3730 | " 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." |
3718 | 3734 | ] |
3719 | 3735 | }, |
3720 | 3736 | { |
|
3731 | 3747 | "fallback": "0x00", |
3732 | 3748 | "documentation": [ |
3733 | 3749 | " 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." |
3735 | 3753 | ] |
3736 | 3754 | }, |
3737 | 3755 | { |
|
3748 | 3766 | "fallback": "0x00", |
3749 | 3767 | "documentation": [ |
3750 | 3768 | " 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." |
3752 | 3772 | ] |
3753 | 3773 | }, |
3754 | 3774 | { |
|
4342 | 4362 | " Emits `PreimageNoted`.", |
4343 | 4363 | "", |
4344 | 4364 | " # <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`", |
4349 | 4366 | " # </weight>" |
4350 | 4367 | ] |
4351 | 4368 | }, |
| 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 | + }, |
4352 | 4381 | { |
4353 | 4382 | "name": "note_imminent_preimage", |
4354 | 4383 | "args": [ |
|
4368 | 4397 | " Emits `PreimageNoted`.", |
4369 | 4398 | "", |
4370 | 4399 | " # <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`", |
4375 | 4401 | " # </weight>" |
4376 | 4402 | ] |
4377 | 4403 | }, |
| 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 | + }, |
4378 | 4416 | { |
4379 | 4417 | "name": "reap_preimage", |
4380 | 4418 | "args": [ |
|
4882 | 4920 | "documentation": [ |
4883 | 4921 | " The amount of balance that must be deposited per byte of preimage stored." |
4884 | 4922 | ] |
| 4923 | + }, |
| 4924 | + { |
| 4925 | + "name": "MaxVotes", |
| 4926 | + "type": "u32", |
| 4927 | + "value": "0x64000000", |
| 4928 | + "documentation": [ |
| 4929 | + " The maximum number of votes for an account." |
| 4930 | + ] |
4885 | 4931 | } |
4886 | 4932 | ], |
4887 | 4933 | "errors": [ |
|
6019 | 6065 | }, |
6020 | 6066 | "fallback": "0x0000000000000000000000000000000000", |
6021 | 6067 | "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" |
6023 | 6071 | ] |
6024 | 6072 | }, |
6025 | 6073 | { |
|
6750 | 6798 | "fallback": "0x00", |
6751 | 6799 | "documentation": [ |
6752 | 6800 | " 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." |
6754 | 6804 | ] |
6755 | 6805 | } |
6756 | 6806 | ] |
|
7467 | 7517 | }, |
7468 | 7518 | "fallback": "0x00", |
7469 | 7519 | "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." |
7471 | 7523 | ] |
7472 | 7524 | } |
7473 | 7525 | ] |
|
8241 | 8293 | }, |
8242 | 8294 | "fallback": "0x00", |
8243 | 8295 | "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." |
8245 | 8299 | ] |
8246 | 8300 | }, |
8247 | 8301 | { |
|
8276 | 8330 | "documentation": [ |
8277 | 8331 | " Alternative \"sub\" identities of this account.", |
8278 | 8332 | "", |
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." |
8280 | 8336 | ] |
8281 | 8337 | }, |
8282 | 8338 | { |
|
0 commit comments