@@ -111,6 +111,9 @@ declare module '@polkadot/api/types/storage' {
111111 * epoch.
112112 **/
113113 segmentIndex : AugmentedQuery < ApiType , ( ) => Observable < u32 > > & QueryableStorageEntry < ApiType > ;
114+ /**
115+ * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
116+ **/
114117 underConstruction : AugmentedQuery < ApiType , ( arg : u32 | AnyNumber | Uint8Array ) => Observable < Vec < Randomness > > > & QueryableStorageEntry < ApiType > ;
115118 } ;
116119 balances : {
@@ -152,6 +155,8 @@ declare module '@polkadot/api/types/storage' {
152155 codeStorage : AugmentedQuery < ApiType , ( arg : CodeHash | string | Uint8Array ) => Observable < Option < PrefabWasmModule > > > & QueryableStorageEntry < ApiType > ;
153156 /**
154157 * The code associated with a given account.
158+ *
159+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
155160 **/
156161 contractInfoOf : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < Option < ContractInfo > > > & QueryableStorageEntry < ApiType > ;
157162 /**
@@ -204,6 +209,8 @@ declare module '@polkadot/api/types/storage' {
204209 cancellations : AugmentedQuery < ApiType , ( arg : Hash | string | Uint8Array ) => Observable < bool > > & QueryableStorageEntry < ApiType > ;
205210 /**
206211 * Those who have locked a deposit.
212+ *
213+ * TWOX-NOTE: Safe, as increasing integer keys are safe.
207214 **/
208215 depositOf : AugmentedQuery < ApiType , ( arg : PropIndex | AnyNumber | Uint8Array ) => Observable < Option < ITuple < [ Vec < AccountId > , BalanceOf ] > > > > & QueryableStorageEntry < ApiType > ;
209216 /**
@@ -214,6 +221,8 @@ declare module '@polkadot/api/types/storage' {
214221 /**
215222 * Accounts for which there are locks in action which may be removed at some point in the
216223 * future. The value is the block number at which the lock expires and may be removed.
224+ *
225+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
217226 **/
218227 locks : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < Option < BlockNumber > > > & QueryableStorageEntry < ApiType > ;
219228 /**
@@ -236,6 +245,8 @@ declare module '@polkadot/api/types/storage' {
236245 /**
237246 * Who is able to vote for whom. Value is the fund-holding account, key is the
238247 * vote-transaction-sending account.
248+ *
249+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
239250 **/
240251 proxy : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < Option < ProxyState > > > & QueryableStorageEntry < ApiType > ;
241252 /**
@@ -252,6 +263,8 @@ declare module '@polkadot/api/types/storage' {
252263 referendumCount : AugmentedQuery < ApiType , ( ) => Observable < ReferendumIndex > > & QueryableStorageEntry < ApiType > ;
253264 /**
254265 * Information concerning any given referendum.
266+ *
267+ * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
255268 **/
256269 referendumInfoOf : AugmentedQuery < ApiType , ( arg : ReferendumIndex | AnyNumber | Uint8Array ) => Observable < Option < ReferendumInfo > > > & QueryableStorageEntry < ApiType > ;
257270 /**
@@ -263,6 +276,8 @@ declare module '@polkadot/api/types/storage' {
263276 /**
264277 * All votes for a particular voter. We store the balance for the number of votes that we
265278 * have recorded. The second item is the total amount of delegations, that will be added.
279+ *
280+ * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
266281 **/
267282 votingOf : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < Voting > > & QueryableStorageEntry < ApiType > ;
268283 } ;
@@ -287,6 +302,8 @@ declare module '@polkadot/api/types/storage' {
287302 runnersUp : AugmentedQuery < ApiType , ( ) => Observable < Vec < ITuple < [ AccountId , BalanceOf ] > > > > & QueryableStorageEntry < ApiType > ;
288303 /**
289304 * Votes and locked stake of a particular voter.
305+ *
306+ * TWOX-NOTE: SAFE as `AccountId` is a crypto hash
290307 **/
291308 voting : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < ITuple < [ BalanceOf , Vec < AccountId > ] > > > & QueryableStorageEntry < ApiType > ;
292309 } ;
@@ -308,6 +325,8 @@ declare module '@polkadot/api/types/storage' {
308325 /**
309326 * A mapping from grandpa set ID to the index of the *most recent* session for which its
310327 * members were responsible.
328+ *
329+ * TWOX-NOTE: `SetId` is not under user control.
311330 **/
312331 setIdSession : AugmentedQuery < ApiType , ( arg : SetId | AnyNumber | Uint8Array ) => Observable < Option < SessionIndex > > > & QueryableStorageEntry < ApiType > ;
313332 /**
@@ -323,6 +342,8 @@ declare module '@polkadot/api/types/storage' {
323342 [ index : string ] : QueryableStorageEntry < ApiType > ;
324343 /**
325344 * Information that is pertinent to identify the entity behind an account.
345+ *
346+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
326347 **/
327348 identityOf : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < Option < Registration > > > & QueryableStorageEntry < ApiType > ;
328349 /**
@@ -336,6 +357,8 @@ declare module '@polkadot/api/types/storage' {
336357 * Alternative "sub" identities of this account.
337358 *
338359 * The first item is the deposit, the second is a vector of the accounts.
360+ *
361+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
339362 **/
340363 subsOf : AugmentedQuery < ApiType , ( arg : AccountId | string | Uint8Array ) => Observable < ITuple < [ BalanceOf , Vec < AccountId > ] > > > & QueryableStorageEntry < ApiType > ;
341364 /**
@@ -763,14 +786,14 @@ declare module '@polkadot/api/types/storage' {
763786 * Total length (in bytes) for all extrinsics put together, for the current block.
764787 **/
765788 allExtrinsicsLen : AugmentedQuery < ApiType , ( ) => Observable < Option < u32 > > > & QueryableStorageEntry < ApiType > ;
766- /**
767- * Total weight for all extrinsics for the current block.
768- **/
769- allExtrinsicsWeight : AugmentedQuery < ApiType , ( ) => Observable < ExtrinsicsWeight > > & QueryableStorageEntry < ApiType > ;
770789 /**
771790 * Map of block numbers to block hashes.
772791 **/
773792 blockHash : AugmentedQuery < ApiType , ( arg : BlockNumber | AnyNumber | Uint8Array ) => Observable < Hash > > & QueryableStorageEntry < ApiType > ;
793+ /**
794+ * The current weight for the block.
795+ **/
796+ blockWeight : AugmentedQuery < ApiType , ( ) => Observable < ExtrinsicsWeight > > & QueryableStorageEntry < ApiType > ;
774797 /**
775798 * Digest of the current block, also part of the block header.
776799 **/
0 commit comments