@polkadot/api-augment 9.14.1 → 9.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/polkadot/tx.d.ts CHANGED
@@ -105,10 +105,9 @@ declare module '@polkadot/api-base/types/submittable' {
105
105
  /**
106
106
  * Exactly as `transfer`, except the origin must be root and the source account may be
107
107
  * specified.
108
- * # <weight>
108
+ * ## Complexity
109
109
  * - Same as transfer, but additional read and write because the source account is not
110
110
  * assumed to be in the overlay.
111
- * # </weight>
112
111
  **/
113
112
  forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
114
113
  Id: any;
@@ -177,7 +176,7 @@ declare module '@polkadot/api-base/types/submittable' {
177
176
  *
178
177
  * The dispatch origin for this call must be `Signed` by the transactor.
179
178
  *
180
- * # <weight>
179
+ * ## Complexity
181
180
  * - Dependent on arguments but not critical, given proper implementations for input config
182
181
  * types. See related functions below.
183
182
  * - It contains a limited number of reads and writes internally and no complex
@@ -191,9 +190,6 @@ declare module '@polkadot/api-base/types/submittable' {
191
190
  * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
192
191
  * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
193
192
  * that the transfer will not kill the origin account.
194
- * ---------------------------------
195
- * - Origin account is already in memory, so no DB operations for them.
196
- * # </weight>
197
193
  **/
198
194
  transfer: AugmentedSubmittable<(dest: MultiAddress | {
199
195
  Id: any;
@@ -221,9 +217,8 @@ declare module '@polkadot/api-base/types/submittable' {
221
217
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
222
218
  * of the funds the account has, causing the sender account to be killed (false), or
223
219
  * transfer everything except at least the existential deposit, which will guarantee to
224
- * keep the sender account alive (true). # <weight>
220
+ * keep the sender account alive (true). ## Complexity
225
221
  * - O(1). Just like transfer, but reading the user's transferable balance first.
226
- * #</weight>
227
222
  **/
228
223
  transferAll: AugmentedSubmittable<(dest: MultiAddress | {
229
224
  Id: any;
@@ -267,9 +262,8 @@ declare module '@polkadot/api-base/types/submittable' {
267
262
  *
268
263
  * May only be called from the curator.
269
264
  *
270
- * # <weight>
265
+ * ## Complexity
271
266
  * - O(1).
272
- * # </weight>
273
267
  **/
274
268
  acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
275
269
  /**
@@ -278,9 +272,8 @@ declare module '@polkadot/api-base/types/submittable' {
278
272
  *
279
273
  * May only be called from `T::SpendOrigin`.
280
274
  *
281
- * # <weight>
275
+ * ## Complexity
282
276
  * - O(1).
283
- * # </weight>
284
277
  **/
285
278
  approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
286
279
  /**
@@ -292,9 +285,8 @@ declare module '@polkadot/api-base/types/submittable' {
292
285
  * - `bounty_id`: Bounty ID to award.
293
286
  * - `beneficiary`: The beneficiary account whom will receive the payout.
294
287
  *
295
- * # <weight>
288
+ * ## Complexity
296
289
  * - O(1).
297
- * # </weight>
298
290
  **/
299
291
  awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
300
292
  Id: any;
@@ -314,9 +306,8 @@ declare module '@polkadot/api-base/types/submittable' {
314
306
  *
315
307
  * - `bounty_id`: Bounty ID to claim.
316
308
  *
317
- * # <weight>
309
+ * ## Complexity
318
310
  * - O(1).
319
- * # </weight>
320
311
  **/
321
312
  claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
322
313
  /**
@@ -327,9 +318,8 @@ declare module '@polkadot/api-base/types/submittable' {
327
318
  *
328
319
  * - `bounty_id`: Bounty ID to cancel.
329
320
  *
330
- * # <weight>
321
+ * ## Complexity
331
322
  * - O(1).
332
- * # </weight>
333
323
  **/
334
324
  closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
335
325
  /**
@@ -340,9 +330,8 @@ declare module '@polkadot/api-base/types/submittable' {
340
330
  * - `bounty_id`: Bounty ID to extend.
341
331
  * - `remark`: additional information.
342
332
  *
343
- * # <weight>
333
+ * ## Complexity
344
334
  * - O(1).
345
- * # </weight>
346
335
  **/
347
336
  extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
348
337
  /**
@@ -365,9 +354,8 @@ declare module '@polkadot/api-base/types/submittable' {
365
354
  *
366
355
  * May only be called from `T::SpendOrigin`.
367
356
  *
368
- * # <weight>
357
+ * ## Complexity
369
358
  * - O(1).
370
- * # </weight>
371
359
  **/
372
360
  proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
373
361
  Id: any;
@@ -396,9 +384,8 @@ declare module '@polkadot/api-base/types/submittable' {
396
384
  * anyone in the community to call out that a curator is not doing their due diligence, and
397
385
  * we should pick a new curator. In this case the curator should also be slashed.
398
386
  *
399
- * # <weight>
387
+ * ## Complexity
400
388
  * - O(1).
401
- * # </weight>
402
389
  **/
403
390
  unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
404
391
  /**
@@ -910,20 +897,12 @@ declare module '@polkadot/api-base/types/submittable' {
910
897
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
911
898
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
912
899
  *
913
- * # <weight>
914
- * ## Weight
900
+ * ## Complexity
915
901
  * - `O(B + M + P1 + P2)` where:
916
902
  * - `B` is `proposal` size in bytes (length-fee-bounded)
917
903
  * - `M` is members-count (code- and governance-bounded)
918
904
  * - `P1` is the complexity of `proposal` preimage.
919
905
  * - `P2` is proposal-count (code-bounded)
920
- * - DB:
921
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
922
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
923
- * `O(P2)`)
924
- * - any mutations done while executing `proposal` (`P1`)
925
- * - up to 3 events
926
- * # </weight>
927
906
  **/
928
907
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
929
908
  refTime?: any;
@@ -948,20 +927,12 @@ declare module '@polkadot/api-base/types/submittable' {
948
927
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
949
928
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
950
929
  *
951
- * # <weight>
952
- * ## Weight
930
+ * ## Complexity
953
931
  * - `O(B + M + P1 + P2)` where:
954
932
  * - `B` is `proposal` size in bytes (length-fee-bounded)
955
933
  * - `M` is members-count (code- and governance-bounded)
956
934
  * - `P1` is the complexity of `proposal` preimage.
957
935
  * - `P2` is proposal-count (code-bounded)
958
- * - DB:
959
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
960
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
961
- * `O(P2)`)
962
- * - any mutations done while executing `proposal` (`P1`)
963
- * - up to 3 events
964
- * # </weight>
965
936
  **/
966
937
  closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
967
938
  /**
@@ -973,12 +944,8 @@ declare module '@polkadot/api-base/types/submittable' {
973
944
  * Parameters:
974
945
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
975
946
  *
976
- * # <weight>
977
- * Complexity: O(P) where P is the number of max proposals
978
- * DB Weight:
979
- * * Reads: Proposals
980
- * * Writes: Voting, Proposals, ProposalOf
981
- * # </weight>
947
+ * ## Complexity
948
+ * O(P) where P is the number of max proposals
982
949
  **/
983
950
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
984
951
  /**
@@ -986,13 +953,11 @@ declare module '@polkadot/api-base/types/submittable' {
986
953
  *
987
954
  * Origin must be a member of the collective.
988
955
  *
989
- * # <weight>
990
- * ## Weight
991
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
992
- * `proposal`
993
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
994
- * - 1 event
995
- * # </weight>
956
+ * ## Complexity:
957
+ * - `O(B + M + P)` where:
958
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
959
+ * - `M` members-count (code-bounded)
960
+ * - `P` complexity of dispatching `proposal`
996
961
  **/
997
962
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
998
963
  /**
@@ -1003,26 +968,13 @@ declare module '@polkadot/api-base/types/submittable' {
1003
968
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
1004
969
  * or put up for voting.
1005
970
  *
1006
- * # <weight>
1007
- * ## Weight
971
+ * ## Complexity
1008
972
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
1009
973
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1010
974
  * - `M` is members-count (code- and governance-bounded)
1011
975
  * - branching is influenced by `threshold` where:
1012
976
  * - `P1` is proposal execution complexity (`threshold < 2`)
1013
977
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
1014
- * - DB:
1015
- * - 1 storage read `is_member` (codec `O(M)`)
1016
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
1017
- * - DB accesses influenced by `threshold`:
1018
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
1019
- * - OR proposal insertion (`threshold <= 2`)
1020
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
1021
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
1022
- * - 1 storage write `ProposalOf` (codec `O(B)`)
1023
- * - 1 storage write `Voting` (codec `O(M)`)
1024
- * - 1 event
1025
- * # </weight>
1026
978
  **/
1027
979
  propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1028
980
  /**
@@ -1033,7 +985,7 @@ declare module '@polkadot/api-base/types/submittable' {
1033
985
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
1034
986
  * weight estimation.
1035
987
  *
1036
- * Requires root origin.
988
+ * The dispatch of this call must be `SetMembersOrigin`.
1037
989
  *
1038
990
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
1039
991
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -1045,19 +997,11 @@ declare module '@polkadot/api-base/types/submittable' {
1045
997
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
1046
998
  * with other logic managing the member set.
1047
999
  *
1048
- * # <weight>
1049
- * ## Weight
1000
+ * ## Complexity:
1050
1001
  * - `O(MP + N)` where:
1051
1002
  * - `M` old-members-count (code- and governance-bounded)
1052
1003
  * - `N` new-members-count (code- and governance-bounded)
1053
1004
  * - `P` proposals-count (code-bounded)
1054
- * - DB:
1055
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
1056
- * members
1057
- * - 1 storage read (codec `O(P)`) for reading the proposals
1058
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
1059
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
1060
- * # </weight>
1061
1005
  **/
1062
1006
  setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
1063
1007
  /**
@@ -1068,14 +1012,8 @@ declare module '@polkadot/api-base/types/submittable' {
1068
1012
  * Transaction fees will be waived if the member is voting on any particular proposal
1069
1013
  * for the first time and the call is successful. Subsequent vote changes will charge a
1070
1014
  * fee.
1071
- * # <weight>
1072
- * ## Weight
1015
+ * ## Complexity
1073
1016
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
1074
- * - DB:
1075
- * - 1 storage read `Members` (codec `O(M)`)
1076
- * - 1 storage mutation `Voting` (codec `O(M)`)
1077
- * - 1 event
1078
- * # </weight>
1079
1017
  **/
1080
1018
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
1081
1019
  /**
@@ -1798,11 +1736,8 @@ declare module '@polkadot/api-base/types/submittable' {
1798
1736
  *
1799
1737
  * Emits `RegistrarAdded` if successful.
1800
1738
  *
1801
- * # <weight>
1739
+ * ## Complexity
1802
1740
  * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
1803
- * - One storage mutation (codec `O(R)`).
1804
- * - One event.
1805
- * # </weight>
1806
1741
  **/
1807
1742
  addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
1808
1743
  Id: any;
@@ -1859,12 +1794,10 @@ declare module '@polkadot/api-base/types/submittable' {
1859
1794
  *
1860
1795
  * Emits `JudgementUnrequested` if successful.
1861
1796
  *
1862
- * # <weight>
1797
+ * ## Complexity
1863
1798
  * - `O(R + X)`.
1864
- * - One balance-reserve operation.
1865
- * - One storage mutation `O(R + X)`.
1866
- * - One event
1867
- * # </weight>
1799
+ * - where `R` registrar-count (governance-bounded).
1800
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
1868
1801
  **/
1869
1802
  cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1870
1803
  /**
@@ -1877,15 +1810,11 @@ declare module '@polkadot/api-base/types/submittable' {
1877
1810
  *
1878
1811
  * Emits `IdentityCleared` if successful.
1879
1812
  *
1880
- * # <weight>
1813
+ * ## Complexity
1881
1814
  * - `O(R + S + X)`
1882
1815
  * - where `R` registrar-count (governance-bounded).
1883
1816
  * - where `S` subs-count (hard- and deposit-bounded).
1884
1817
  * - where `X` additional-field-count (deposit-bounded and code-bounded).
1885
- * - One balance-unreserve operation.
1886
- * - `2` storage reads and `S + 2` storage deletions.
1887
- * - One event.
1888
- * # </weight>
1889
1818
  **/
1890
1819
  clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1891
1820
  /**
@@ -1902,12 +1831,11 @@ declare module '@polkadot/api-base/types/submittable' {
1902
1831
  *
1903
1832
  * Emits `IdentityKilled` if successful.
1904
1833
  *
1905
- * # <weight>
1906
- * - `O(R + S + X)`.
1907
- * - One balance-reserve operation.
1908
- * - `S + 2` storage mutations.
1909
- * - One event.
1910
- * # </weight>
1834
+ * ## Complexity
1835
+ * - `O(R + S + X)`
1836
+ * - where `R` registrar-count (governance-bounded).
1837
+ * - where `S` subs-count (hard- and deposit-bounded).
1838
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
1911
1839
  **/
1912
1840
  killIdentity: AugmentedSubmittable<(target: MultiAddress | {
1913
1841
  Id: any;
@@ -1934,13 +1862,10 @@ declare module '@polkadot/api-base/types/submittable' {
1934
1862
  *
1935
1863
  * Emits `JudgementGiven` if successful.
1936
1864
  *
1937
- * # <weight>
1865
+ * ## Complexity
1938
1866
  * - `O(R + X)`.
1939
- * - One balance-transfer operation.
1940
- * - Up to one account-lookup operation.
1941
- * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
1942
- * - One event.
1943
- * # </weight>
1867
+ * - where `R` registrar-count (governance-bounded).
1868
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
1944
1869
  **/
1945
1870
  provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
1946
1871
  Id: any;
@@ -2047,12 +1972,10 @@ declare module '@polkadot/api-base/types/submittable' {
2047
1972
  *
2048
1973
  * Emits `JudgementRequested` if successful.
2049
1974
  *
2050
- * # <weight>
1975
+ * ## Complexity
2051
1976
  * - `O(R + X)`.
2052
- * - One balance-reserve operation.
2053
- * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.
2054
- * - One event.
2055
- * # </weight>
1977
+ * - where `R` registrar-count (governance-bounded).
1978
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2056
1979
  **/
2057
1980
  requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
2058
1981
  /**
@@ -2064,11 +1987,9 @@ declare module '@polkadot/api-base/types/submittable' {
2064
1987
  * - `index`: the index of the registrar whose fee is to be set.
2065
1988
  * - `new`: the new account ID.
2066
1989
  *
2067
- * # <weight>
1990
+ * ## Complexity
2068
1991
  * - `O(R)`.
2069
- * - One storage mutation `O(R)`.
2070
- * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
2071
- * # </weight>
1992
+ * - where `R` registrar-count (governance-bounded).
2072
1993
  **/
2073
1994
  setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
2074
1995
  Id: any;
@@ -2090,11 +2011,9 @@ declare module '@polkadot/api-base/types/submittable' {
2090
2011
  * - `index`: the index of the registrar whose fee is to be set.
2091
2012
  * - `fee`: the new fee.
2092
2013
  *
2093
- * # <weight>
2014
+ * ## Complexity
2094
2015
  * - `O(R)`.
2095
- * - One storage mutation `O(R)`.
2096
- * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
2097
- * # </weight>
2016
+ * - where `R` registrar-count (governance-bounded).
2098
2017
  **/
2099
2018
  setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
2100
2019
  /**
@@ -2106,11 +2025,9 @@ declare module '@polkadot/api-base/types/submittable' {
2106
2025
  * - `index`: the index of the registrar whose fee is to be set.
2107
2026
  * - `fields`: the fields that the registrar concerns themselves with.
2108
2027
  *
2109
- * # <weight>
2028
+ * ## Complexity
2110
2029
  * - `O(R)`.
2111
- * - One storage mutation `O(R)`.
2112
- * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
2113
- * # </weight>
2030
+ * - where `R` registrar-count (governance-bounded).
2114
2031
  **/
2115
2032
  setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
2116
2033
  /**
@@ -2125,14 +2042,10 @@ declare module '@polkadot/api-base/types/submittable' {
2125
2042
  *
2126
2043
  * Emits `IdentitySet` if successful.
2127
2044
  *
2128
- * # <weight>
2045
+ * ## Complexity
2129
2046
  * - `O(X + X' + R)`
2130
2047
  * - where `X` additional-field-count (deposit-bounded and code-bounded)
2131
2048
  * - where `R` judgements-count (registrar-count-bounded)
2132
- * - One balance reserve operation.
2133
- * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
2134
- * - One event.
2135
- * # </weight>
2136
2049
  **/
2137
2050
  setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
2138
2051
  additional?: any;
@@ -2156,17 +2069,10 @@ declare module '@polkadot/api-base/types/submittable' {
2156
2069
  *
2157
2070
  * - `subs`: The identity's (new) sub-accounts.
2158
2071
  *
2159
- * # <weight>
2072
+ * ## Complexity
2160
2073
  * - `O(P + S)`
2161
2074
  * - where `P` old-subs-count (hard- and deposit-bounded).
2162
2075
  * - where `S` subs-count (hard- and deposit-bounded).
2163
- * - At most one balance operations.
2164
- * - DB:
2165
- * - `P + S` storage mutations (codec complexity `O(1)`)
2166
- * - One storage read (codec complexity `O(P)`).
2167
- * - One storage write (codec complexity `O(S)`).
2168
- * - One storage-exists (`IdentityOf::contains_key`).
2169
- * # </weight>
2170
2076
  **/
2171
2077
  setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
2172
2078
  None: any;
@@ -2188,15 +2094,11 @@ declare module '@polkadot/api-base/types/submittable' {
2188
2094
  };
2189
2095
  imOnline: {
2190
2096
  /**
2191
- * # <weight>
2192
- * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is
2193
- * length of `heartbeat.network_state.external_address`
2097
+ * ## Complexity:
2098
+ * - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
2099
+ * `heartbeat.network_state.external_address`
2194
2100
  * - `O(K)`: decoding of length `K`
2195
2101
  * - `O(E)`: decoding/encoding of length `E`
2196
- * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
2197
- * `ReceivedHeartbeats`
2198
- * - DbWrites: `ReceivedHeartbeats`
2199
- * # </weight>
2200
2102
  **/
2201
2103
  heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
2202
2104
  blockNumber?: any;
@@ -2222,14 +2124,8 @@ declare module '@polkadot/api-base/types/submittable' {
2222
2124
  *
2223
2125
  * Emits `IndexAssigned` if successful.
2224
2126
  *
2225
- * # <weight>
2127
+ * ## Complexity
2226
2128
  * - `O(1)`.
2227
- * - One storage mutation (codec `O(1)`).
2228
- * - One reserve operation.
2229
- * - One event.
2230
- * -------------------
2231
- * - DB Weight: 1 Read/Write (Accounts)
2232
- * # </weight>
2233
2129
  **/
2234
2130
  claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2235
2131
  /**
@@ -2244,16 +2140,8 @@ declare module '@polkadot/api-base/types/submittable' {
2244
2140
  *
2245
2141
  * Emits `IndexAssigned` if successful.
2246
2142
  *
2247
- * # <weight>
2143
+ * ## Complexity
2248
2144
  * - `O(1)`.
2249
- * - One storage mutation (codec `O(1)`).
2250
- * - Up to one reserve operation.
2251
- * - One event.
2252
- * -------------------
2253
- * - DB Weight:
2254
- * - Reads: Indices Accounts, System Account (original owner)
2255
- * - Writes: Indices Accounts, System Account (original owner)
2256
- * # </weight>
2257
2145
  **/
2258
2146
  forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
2259
2147
  Id: any;
@@ -2277,14 +2165,8 @@ declare module '@polkadot/api-base/types/submittable' {
2277
2165
  *
2278
2166
  * Emits `IndexFreed` if successful.
2279
2167
  *
2280
- * # <weight>
2168
+ * ## Complexity
2281
2169
  * - `O(1)`.
2282
- * - One storage mutation (codec `O(1)`).
2283
- * - One reserve operation.
2284
- * - One event.
2285
- * -------------------
2286
- * - DB Weight: 1 Read/Write (Accounts)
2287
- * # </weight>
2288
2170
  **/
2289
2171
  free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2290
2172
  /**
@@ -2298,14 +2180,8 @@ declare module '@polkadot/api-base/types/submittable' {
2298
2180
  *
2299
2181
  * Emits `IndexFrozen` if successful.
2300
2182
  *
2301
- * # <weight>
2183
+ * ## Complexity
2302
2184
  * - `O(1)`.
2303
- * - One storage mutation (codec `O(1)`).
2304
- * - Up to one slash operation.
2305
- * - One event.
2306
- * -------------------
2307
- * - DB Weight: 1 Read/Write (Accounts)
2308
- * # </weight>
2309
2185
  **/
2310
2186
  freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2311
2187
  /**
@@ -2319,16 +2195,8 @@ declare module '@polkadot/api-base/types/submittable' {
2319
2195
  *
2320
2196
  * Emits `IndexAssigned` if successful.
2321
2197
  *
2322
- * # <weight>
2198
+ * ## Complexity
2323
2199
  * - `O(1)`.
2324
- * - One storage mutation (codec `O(1)`).
2325
- * - One transfer operation.
2326
- * - One event.
2327
- * -------------------
2328
- * - DB Weight:
2329
- * - Reads: Indices Accounts, System Account (recipient)
2330
- * - Writes: Indices Accounts, System Account (recipient)
2331
- * # </weight>
2332
2200
  **/
2333
2201
  transfer: AugmentedSubmittable<(updated: MultiAddress | {
2334
2202
  Id: any;
@@ -2379,7 +2247,7 @@ declare module '@polkadot/api-base/types/submittable' {
2379
2247
  *
2380
2248
  * NOTE: If this is the final approval, you will want to use `as_multi` instead.
2381
2249
  *
2382
- * # <weight>
2250
+ * ## Complexity
2383
2251
  * - `O(S)`.
2384
2252
  * - Up to one balance-reserve or unreserve operation.
2385
2253
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2390,11 +2258,6 @@ declare module '@polkadot/api-base/types/submittable' {
2390
2258
  * - One event.
2391
2259
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2392
2260
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2393
- * ----------------------------------
2394
- * - DB Weight:
2395
- * - Read: Multisig Storage, [Caller Account]
2396
- * - Write: Multisig Storage, [Caller Account]
2397
- * # </weight>
2398
2261
  **/
2399
2262
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2400
2263
  height?: any;
@@ -2430,7 +2293,7 @@ declare module '@polkadot/api-base/types/submittable' {
2430
2293
  * on success, result is `Ok` and the result from the interior call, if it was executed,
2431
2294
  * may be found in the deposited `MultisigExecuted` event.
2432
2295
  *
2433
- * # <weight>
2296
+ * ## Complexity
2434
2297
  * - `O(S + Z + Call)`.
2435
2298
  * - Up to one balance-reserve or unreserve operation.
2436
2299
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2443,12 +2306,6 @@ declare module '@polkadot/api-base/types/submittable' {
2443
2306
  * - The weight of the `call`.
2444
2307
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2445
2308
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2446
- * -------------------------------
2447
- * - DB Weight:
2448
- * - Reads: Multisig Storage, [Caller Account]
2449
- * - Writes: Multisig Storage, [Caller Account]
2450
- * - Plus Call Weight
2451
- * # </weight>
2452
2309
  **/
2453
2310
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2454
2311
  height?: any;
@@ -2468,12 +2325,8 @@ declare module '@polkadot/api-base/types/submittable' {
2468
2325
  *
2469
2326
  * Result is equivalent to the dispatched result.
2470
2327
  *
2471
- * # <weight>
2328
+ * ## Complexity
2472
2329
  * O(Z + C) where Z is the length of the call and C its execution weight.
2473
- * -------------------------------
2474
- * - DB Weight: None
2475
- * - Plus Call Weight
2476
- * # </weight>
2477
2330
  **/
2478
2331
  asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2479
2332
  /**
@@ -2489,7 +2342,7 @@ declare module '@polkadot/api-base/types/submittable' {
2489
2342
  * transaction for this dispatch.
2490
2343
  * - `call_hash`: The hash of the call to be executed.
2491
2344
  *
2492
- * # <weight>
2345
+ * ## Complexity
2493
2346
  * - `O(S)`.
2494
2347
  * - Up to one balance-reserve or unreserve operation.
2495
2348
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2498,11 +2351,6 @@ declare module '@polkadot/api-base/types/submittable' {
2498
2351
  * - One event.
2499
2352
  * - I/O: 1 read `O(S)`, one remove.
2500
2353
  * - Storage: removes one item.
2501
- * ----------------------------------
2502
- * - DB Weight:
2503
- * - Read: Multisig Storage, [Caller Account], Refund Account
2504
- * - Write: Multisig Storage, [Caller Account], Refund Account
2505
- * # </weight>
2506
2354
  **/
2507
2355
  cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
2508
2356
  height?: any;
@@ -2944,9 +2792,8 @@ declare module '@polkadot/api-base/types/submittable' {
2944
2792
  *
2945
2793
  * The dispatch origin of this call must be root.
2946
2794
  *
2947
- * # <weight>
2948
- * The total number of voters and those that are defunct must be provided as witness data.
2949
- * # </weight>
2795
+ * ## Complexity
2796
+ * - Check is_defunct_voter() details.
2950
2797
  **/
2951
2798
  cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
2952
2799
  /**
@@ -2964,10 +2811,8 @@ declare module '@polkadot/api-base/types/submittable' {
2964
2811
  *
2965
2812
  * Note that this does not affect the designated block number of the next election.
2966
2813
  *
2967
- * # <weight>
2968
- * If we have a replacement, we use a small weight. Else, since this is a root call and
2969
- * will go into phragmen, we assume full block for now.
2970
- * # </weight>
2814
+ * ## Complexity
2815
+ * - Check details of remove_and_replace_member() and do_phragmen().
2971
2816
  **/
2972
2817
  removeMember: AugmentedSubmittable<(who: MultiAddress | {
2973
2818
  Id: any;
@@ -3003,10 +2848,12 @@ declare module '@polkadot/api-base/types/submittable' {
3003
2848
  * next round.
3004
2849
  *
3005
2850
  * The dispatch origin of this call must be signed, and have one of the above roles.
3006
- *
3007
- * # <weight>
3008
2851
  * The type of renouncing must be provided as witness data.
3009
- * # </weight>
2852
+ *
2853
+ * ## Complexity
2854
+ * - Renouncing::Candidate(count): O(count + log(count))
2855
+ * - Renouncing::Member: O(1)
2856
+ * - Renouncing::RunnerUp: O(1)
3010
2857
  **/
3011
2858
  renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
3012
2859
  Member: any;
@@ -3028,9 +2875,9 @@ declare module '@polkadot/api-base/types/submittable' {
3028
2875
  * Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
3029
2876
  * to get their deposit back. Losing the spot in an election will always lead to a slash.
3030
2877
  *
3031
- * # <weight>
3032
2878
  * The number of current candidates must be provided as witness data.
3033
- * # </weight>
2879
+ * ## Complexity
2880
+ * O(C + log(C)) where C is candidate_count.
3034
2881
  **/
3035
2882
  submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3036
2883
  /**
@@ -3442,10 +3289,6 @@ declare module '@polkadot/api-base/types/submittable' {
3442
3289
  schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
3443
3290
  /**
3444
3291
  * Anonymously schedule a task after a delay.
3445
- *
3446
- * # <weight>
3447
- * Same as [`schedule`].
3448
- * # </weight>
3449
3292
  **/
3450
3293
  scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
3451
3294
  /**
@@ -3454,10 +3297,6 @@ declare module '@polkadot/api-base/types/submittable' {
3454
3297
  scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
3455
3298
  /**
3456
3299
  * Schedule a named task after a delay.
3457
- *
3458
- * # <weight>
3459
- * Same as [`schedule_named`](Self::schedule_named).
3460
- * # </weight>
3461
3300
  **/
3462
3301
  scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
3463
3302
  /**
@@ -3476,13 +3315,9 @@ declare module '@polkadot/api-base/types/submittable' {
3476
3315
  * means being a controller account) or directly convertible into a validator ID (which
3477
3316
  * usually means being a stash account).
3478
3317
  *
3479
- * # <weight>
3480
- * - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
3481
- * of `T::Keys::key_ids()` which is fixed.
3482
- * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
3483
- * - DbWrites: `NextKeys`, `origin account`
3484
- * - DbWrites per key id: `KeyOwner`
3485
- * # </weight>
3318
+ * ## Complexity
3319
+ * - `O(1)` in number of key types. Actual cost depends on the number of length of
3320
+ * `T::Keys::key_ids()` which is fixed.
3486
3321
  **/
3487
3322
  purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3488
3323
  /**
@@ -3492,14 +3327,9 @@ declare module '@polkadot/api-base/types/submittable' {
3492
3327
  *
3493
3328
  * The dispatch origin of this function must be signed.
3494
3329
  *
3495
- * # <weight>
3496
- * - Complexity: `O(1)`. Actual cost depends on the number of length of
3497
- * `T::Keys::key_ids()` which is fixed.
3498
- * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
3499
- * - DbWrites: `origin account`, `NextKeys`
3500
- * - DbReads per key id: `KeyOwner`
3501
- * - DbWrites per key id: `KeyOwner`
3502
- * # </weight>
3330
+ * ## Complexity
3331
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
3332
+ * fixed.
3503
3333
  **/
3504
3334
  setKeys: AugmentedSubmittable<(keys: PolkadotRuntimeSessionKeys | {
3505
3335
  grandpa?: any;
@@ -3553,15 +3383,13 @@ declare module '@polkadot/api-base/types/submittable' {
3553
3383
  * The dispatch origin for this call must be _Signed_ by the stash account.
3554
3384
  *
3555
3385
  * Emits `Bonded`.
3556
- * # <weight>
3386
+ * ## Complexity
3557
3387
  * - Independent of the arguments. Moderate complexity.
3558
3388
  * - O(1).
3559
3389
  * - Three extra DB entries.
3560
3390
  *
3561
3391
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
3562
3392
  * unless the `origin` falls below _existential deposit_ and gets removed as dust.
3563
- * ------------------
3564
- * # </weight>
3565
3393
  **/
3566
3394
  bond: AugmentedSubmittable<(controller: MultiAddress | {
3567
3395
  Id: any;
@@ -3596,10 +3424,9 @@ declare module '@polkadot/api-base/types/submittable' {
3596
3424
  *
3597
3425
  * Emits `Bonded`.
3598
3426
  *
3599
- * # <weight>
3427
+ * ## Complexity
3600
3428
  * - Independent of the arguments. Insignificant complexity.
3601
3429
  * - O(1).
3602
- * # </weight>
3603
3430
  **/
3604
3431
  bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
3605
3432
  /**
@@ -3617,11 +3444,10 @@ declare module '@polkadot/api-base/types/submittable' {
3617
3444
  *
3618
3445
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
3619
3446
  *
3620
- * # <weight>
3447
+ * ## Complexity
3621
3448
  * - Independent of the arguments. Insignificant complexity.
3622
3449
  * - Contains one read.
3623
3450
  * - Writes are limited to the `origin` account key.
3624
- * # </weight>
3625
3451
  **/
3626
3452
  chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3627
3453
  /**
@@ -3671,11 +3497,9 @@ declare module '@polkadot/api-base/types/submittable' {
3671
3497
  * If this is called just before a new era is triggered, the election process may not
3672
3498
  * have enough blocks to get a result.
3673
3499
  *
3674
- * # <weight>
3500
+ * ## Complexity
3675
3501
  * - No arguments.
3676
3502
  * - Weight: O(1)
3677
- * - Write ForceEra
3678
- * # </weight>
3679
3503
  **/
3680
3504
  forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3681
3505
  /**
@@ -3701,11 +3525,9 @@ declare module '@polkadot/api-base/types/submittable' {
3701
3525
  * Thus the election process may be ongoing when this is called. In this case the
3702
3526
  * election will continue until the next era is triggered.
3703
3527
  *
3704
- * # <weight>
3528
+ * ## Complexity
3705
3529
  * - No arguments.
3706
3530
  * - Weight: O(1)
3707
- * - Write: ForceEra
3708
- * # </weight>
3709
3531
  **/
3710
3532
  forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3711
3533
  /**
@@ -3720,9 +3542,8 @@ declare module '@polkadot/api-base/types/submittable' {
3720
3542
  *
3721
3543
  * The dispatch origin must be Root.
3722
3544
  *
3723
- * # <weight>
3545
+ * ## Complexity
3724
3546
  * Same as [`Self::set_validator_count`].
3725
- * # </weight>
3726
3547
  **/
3727
3548
  increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3728
3549
  /**
@@ -3756,11 +3577,10 @@ declare module '@polkadot/api-base/types/submittable' {
3756
3577
  *
3757
3578
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
3758
3579
  *
3759
- * # <weight>
3580
+ * ## Complexity
3760
3581
  * - The transaction's complexity is proportional to the size of `targets` (N)
3761
3582
  * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
3762
3583
  * - Both the reads and writes follow a similar pattern.
3763
- * # </weight>
3764
3584
  **/
3765
3585
  nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
3766
3586
  Id: any;
@@ -3783,18 +3603,8 @@ declare module '@polkadot/api-base/types/submittable' {
3783
3603
  * The origin of this call must be _Signed_. Any account can call this function, even if
3784
3604
  * it is not one of the stakers.
3785
3605
  *
3786
- * # <weight>
3787
- * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
3788
- * - Contains a limited number of reads and writes.
3789
- * -----------
3790
- * N is the Number of payouts for the validator (including the validator)
3791
- * Weight:
3792
- * - Reward Destination Staked: O(N)
3793
- * - Reward Destination Controller (Creating): O(N)
3794
- *
3795
- * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
3796
- * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
3797
- * # </weight>
3606
+ * ## Complexity
3607
+ * - At most O(MaxNominatorRewardedPerValidator).
3798
3608
  **/
3799
3609
  payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
3800
3610
  /**
@@ -3817,11 +3627,9 @@ declare module '@polkadot/api-base/types/submittable' {
3817
3627
  *
3818
3628
  * The dispatch origin must be signed by the controller.
3819
3629
  *
3820
- * # <weight>
3630
+ * ## Complexity
3821
3631
  * - Time complexity: O(L), where L is unlocking chunks
3822
3632
  * - Bounded by `MaxUnlockingChunks`.
3823
- * - Storage changes: Can't increase storage, only decrease it.
3824
- * # </weight>
3825
3633
  **/
3826
3634
  rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
3827
3635
  /**
@@ -3830,9 +3638,8 @@ declare module '@polkadot/api-base/types/submittable' {
3830
3638
  *
3831
3639
  * The dispatch origin must be Root.
3832
3640
  *
3833
- * # <weight>
3641
+ * ## Complexity
3834
3642
  * Same as [`Self::set_validator_count`].
3835
- * # </weight>
3836
3643
  **/
3837
3644
  scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
3838
3645
  /**
@@ -3842,16 +3649,11 @@ declare module '@polkadot/api-base/types/submittable' {
3842
3649
  *
3843
3650
  * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
3844
3651
  *
3845
- * # <weight>
3652
+ * ## Complexity
3653
+ * O(1)
3846
3654
  * - Independent of the arguments. Insignificant complexity.
3847
3655
  * - Contains a limited number of reads.
3848
3656
  * - Writes are limited to the `origin` account key.
3849
- * ----------
3850
- * Weight: O(1)
3851
- * DB Weight:
3852
- * - Read: Bonded, Ledger New Controller, Ledger Old Controller
3853
- * - Write: Bonded, Ledger New Controller, Ledger Old Controller
3854
- * # </weight>
3855
3657
  **/
3856
3658
  setController: AugmentedSubmittable<(controller: MultiAddress | {
3857
3659
  Id: any;
@@ -3884,16 +3686,12 @@ declare module '@polkadot/api-base/types/submittable' {
3884
3686
  *
3885
3687
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
3886
3688
  *
3887
- * # <weight>
3689
+ * ## Complexity
3690
+ * - O(1)
3888
3691
  * - Independent of the arguments. Insignificant complexity.
3889
3692
  * - Contains a limited number of reads.
3890
3693
  * - Writes are limited to the `origin` account key.
3891
3694
  * ---------
3892
- * - Weight: O(1)
3893
- * - DB Weight:
3894
- * - Read: Ledger
3895
- * - Write: Payee
3896
- * # </weight>
3897
3695
  **/
3898
3696
  setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
3899
3697
  Staked: any;
@@ -3967,10 +3765,8 @@ declare module '@polkadot/api-base/types/submittable' {
3967
3765
  *
3968
3766
  * The dispatch origin must be Root.
3969
3767
  *
3970
- * # <weight>
3971
- * Weight: O(1)
3972
- * Write: Validator Count
3973
- * # </weight>
3768
+ * ## Complexity
3769
+ * O(1)
3974
3770
  **/
3975
3771
  setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3976
3772
  /**
@@ -4018,10 +3814,9 @@ declare module '@polkadot/api-base/types/submittable' {
4018
3814
  *
4019
3815
  * See also [`Call::unbond`].
4020
3816
  *
4021
- * # <weight>
4022
- * Complexity O(S) where S is the number of slashing spans to remove
3817
+ * ## Complexity
3818
+ * O(S) where S is the number of slashing spans to remove
4023
3819
  * NOTE: Weight annotation is the kill scenario, we refund otherwise.
4024
- * # </weight>
4025
3820
  **/
4026
3821
  withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4027
3822
  /**
@@ -4044,9 +3839,8 @@ declare module '@polkadot/api-base/types/submittable' {
4044
3839
  /**
4045
3840
  * Make some on-chain remark.
4046
3841
  *
4047
- * # <weight>
3842
+ * ## Complexity
4048
3843
  * - `O(1)`
4049
- * # </weight>
4050
3844
  **/
4051
3845
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4052
3846
  /**
@@ -4056,28 +3850,15 @@ declare module '@polkadot/api-base/types/submittable' {
4056
3850
  /**
4057
3851
  * Set the new runtime code.
4058
3852
  *
4059
- * # <weight>
3853
+ * ## Complexity
4060
3854
  * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
4061
- * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
4062
- * expensive).
4063
- * - 1 storage write (codec `O(C)`).
4064
- * - 1 digest item.
4065
- * - 1 event.
4066
- * The weight of this function is dependent on the runtime, but generally this is very
4067
- * expensive. We will treat this as a full block.
4068
- * # </weight>
4069
3855
  **/
4070
3856
  setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4071
3857
  /**
4072
3858
  * Set the new runtime code without doing any checks of the given `code`.
4073
3859
  *
4074
- * # <weight>
3860
+ * ## Complexity
4075
3861
  * - `O(C)` where `C` length of `code`
4076
- * - 1 storage write (codec `O(C)`).
4077
- * - 1 digest item.
4078
- * - 1 event.
4079
- * The weight of this function is dependent on the runtime. We will treat this as a full
4080
- * block. # </weight>
4081
3862
  **/
4082
3863
  setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4083
3864
  /**
@@ -4113,20 +3894,12 @@ declare module '@polkadot/api-base/types/submittable' {
4113
3894
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
4114
3895
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
4115
3896
  *
4116
- * # <weight>
4117
- * ## Weight
3897
+ * ## Complexity
4118
3898
  * - `O(B + M + P1 + P2)` where:
4119
3899
  * - `B` is `proposal` size in bytes (length-fee-bounded)
4120
3900
  * - `M` is members-count (code- and governance-bounded)
4121
3901
  * - `P1` is the complexity of `proposal` preimage.
4122
3902
  * - `P2` is proposal-count (code-bounded)
4123
- * - DB:
4124
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
4125
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
4126
- * `O(P2)`)
4127
- * - any mutations done while executing `proposal` (`P1`)
4128
- * - up to 3 events
4129
- * # </weight>
4130
3903
  **/
4131
3904
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
4132
3905
  refTime?: any;
@@ -4151,20 +3924,12 @@ declare module '@polkadot/api-base/types/submittable' {
4151
3924
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
4152
3925
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
4153
3926
  *
4154
- * # <weight>
4155
- * ## Weight
3927
+ * ## Complexity
4156
3928
  * - `O(B + M + P1 + P2)` where:
4157
3929
  * - `B` is `proposal` size in bytes (length-fee-bounded)
4158
3930
  * - `M` is members-count (code- and governance-bounded)
4159
3931
  * - `P1` is the complexity of `proposal` preimage.
4160
3932
  * - `P2` is proposal-count (code-bounded)
4161
- * - DB:
4162
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
4163
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
4164
- * `O(P2)`)
4165
- * - any mutations done while executing `proposal` (`P1`)
4166
- * - up to 3 events
4167
- * # </weight>
4168
3933
  **/
4169
3934
  closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
4170
3935
  /**
@@ -4176,12 +3941,8 @@ declare module '@polkadot/api-base/types/submittable' {
4176
3941
  * Parameters:
4177
3942
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
4178
3943
  *
4179
- * # <weight>
4180
- * Complexity: O(P) where P is the number of max proposals
4181
- * DB Weight:
4182
- * * Reads: Proposals
4183
- * * Writes: Voting, Proposals, ProposalOf
4184
- * # </weight>
3944
+ * ## Complexity
3945
+ * O(P) where P is the number of max proposals
4185
3946
  **/
4186
3947
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
4187
3948
  /**
@@ -4189,13 +3950,11 @@ declare module '@polkadot/api-base/types/submittable' {
4189
3950
  *
4190
3951
  * Origin must be a member of the collective.
4191
3952
  *
4192
- * # <weight>
4193
- * ## Weight
4194
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
4195
- * `proposal`
4196
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
4197
- * - 1 event
4198
- * # </weight>
3953
+ * ## Complexity:
3954
+ * - `O(B + M + P)` where:
3955
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
3956
+ * - `M` members-count (code-bounded)
3957
+ * - `P` complexity of dispatching `proposal`
4199
3958
  **/
4200
3959
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
4201
3960
  /**
@@ -4206,26 +3965,13 @@ declare module '@polkadot/api-base/types/submittable' {
4206
3965
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
4207
3966
  * or put up for voting.
4208
3967
  *
4209
- * # <weight>
4210
- * ## Weight
3968
+ * ## Complexity
4211
3969
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
4212
3970
  * - `B` is `proposal` size in bytes (length-fee-bounded)
4213
3971
  * - `M` is members-count (code- and governance-bounded)
4214
3972
  * - branching is influenced by `threshold` where:
4215
3973
  * - `P1` is proposal execution complexity (`threshold < 2`)
4216
3974
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
4217
- * - DB:
4218
- * - 1 storage read `is_member` (codec `O(M)`)
4219
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
4220
- * - DB accesses influenced by `threshold`:
4221
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
4222
- * - OR proposal insertion (`threshold <= 2`)
4223
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
4224
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
4225
- * - 1 storage write `ProposalOf` (codec `O(B)`)
4226
- * - 1 storage write `Voting` (codec `O(M)`)
4227
- * - 1 event
4228
- * # </weight>
4229
3975
  **/
4230
3976
  propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
4231
3977
  /**
@@ -4236,7 +3982,7 @@ declare module '@polkadot/api-base/types/submittable' {
4236
3982
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
4237
3983
  * weight estimation.
4238
3984
  *
4239
- * Requires root origin.
3985
+ * The dispatch of this call must be `SetMembersOrigin`.
4240
3986
  *
4241
3987
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
4242
3988
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -4248,19 +3994,11 @@ declare module '@polkadot/api-base/types/submittable' {
4248
3994
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
4249
3995
  * with other logic managing the member set.
4250
3996
  *
4251
- * # <weight>
4252
- * ## Weight
3997
+ * ## Complexity:
4253
3998
  * - `O(MP + N)` where:
4254
3999
  * - `M` old-members-count (code- and governance-bounded)
4255
4000
  * - `N` new-members-count (code- and governance-bounded)
4256
4001
  * - `P` proposals-count (code-bounded)
4257
- * - DB:
4258
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
4259
- * members
4260
- * - 1 storage read (codec `O(P)`) for reading the proposals
4261
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
4262
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
4263
- * # </weight>
4264
4002
  **/
4265
4003
  setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
4266
4004
  /**
@@ -4271,14 +4009,8 @@ declare module '@polkadot/api-base/types/submittable' {
4271
4009
  * Transaction fees will be waived if the member is voting on any particular proposal
4272
4010
  * for the first time and the call is successful. Subsequent vote changes will charge a
4273
4011
  * fee.
4274
- * # <weight>
4275
- * ## Weight
4012
+ * ## Complexity
4276
4013
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
4277
- * - DB:
4278
- * - 1 storage read `Members` (codec `O(M)`)
4279
- * - 1 storage mutation `Voting` (codec `O(M)`)
4280
- * - 1 event
4281
- * # </weight>
4282
4014
  **/
4283
4015
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
4284
4016
  /**
@@ -4411,12 +4143,11 @@ declare module '@polkadot/api-base/types/submittable' {
4411
4143
  *
4412
4144
  * The dispatch origin for this call must be `Inherent`.
4413
4145
  *
4414
- * # <weight>
4146
+ * ## Complexity
4415
4147
  * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
4416
4148
  * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
4417
4149
  * `on_finalize`)
4418
4150
  * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
4419
- * # </weight>
4420
4151
  **/
4421
4152
  set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
4422
4153
  /**
@@ -4435,13 +4166,10 @@ declare module '@polkadot/api-base/types/submittable' {
4435
4166
  * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
4436
4167
  * as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
4437
4168
  *
4438
- * # <weight>
4439
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
4440
- * `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost
4441
- * depends on the implementation of `T::Tippers`.
4442
- * - DbReads: `Tips`, `Tippers`, `tip finder`
4443
- * - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
4444
- * # </weight>
4169
+ * ## Complexity
4170
+ * - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
4171
+ * is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
4172
+ * the implementation of `T::Tippers`.
4445
4173
  **/
4446
4174
  closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
4447
4175
  /**
@@ -4458,12 +4186,9 @@ declare module '@polkadot/api-base/types/submittable' {
4458
4186
  *
4459
4187
  * Emits `NewTip` if successful.
4460
4188
  *
4461
- * # <weight>
4462
- * - Complexity: `O(R)` where `R` length of `reason`.
4189
+ * ## Complexity
4190
+ * - `O(R)` where `R` length of `reason`.
4463
4191
  * - encoding and hashing of 'reason'
4464
- * - DbReads: `Reasons`, `Tips`
4465
- * - DbWrites: `Reasons`, `Tips`
4466
- * # </weight>
4467
4192
  **/
4468
4193
  reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
4469
4194
  Id: any;
@@ -4490,12 +4215,9 @@ declare module '@polkadot/api-base/types/submittable' {
4490
4215
  *
4491
4216
  * Emits `TipRetracted` if successful.
4492
4217
  *
4493
- * # <weight>
4494
- * - Complexity: `O(1)`
4218
+ * ## Complexity
4219
+ * - `O(1)`
4495
4220
  * - Depends on the length of `T::Hash` which is fixed.
4496
- * - DbReads: `Tips`, `origin account`
4497
- * - DbWrites: `Reasons`, `Tips`, `origin account`
4498
- * # </weight>
4499
4221
  **/
4500
4222
  retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
4501
4223
  /**
@@ -4507,10 +4229,8 @@ declare module '@polkadot/api-base/types/submittable' {
4507
4229
  *
4508
4230
  * Emits `TipSlashed` if successful.
4509
4231
  *
4510
- * # <weight>
4511
- * `T` is charged as upper bound given by `ContainsLengthBound`.
4512
- * The actual cost depends on the implementation of `T::Tippers`.
4513
- * # </weight>
4232
+ * ## Complexity
4233
+ * - O(1).
4514
4234
  **/
4515
4235
  slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
4516
4236
  /**
@@ -4528,16 +4248,13 @@ declare module '@polkadot/api-base/types/submittable' {
4528
4248
  * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
4529
4249
  * has started.
4530
4250
  *
4531
- * # <weight>
4532
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
4533
- * `T`, insert tip and check closing, `T` is charged as upper bound given by
4534
- * `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`.
4251
+ * ## Complexity
4252
+ * - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
4253
+ * tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
4254
+ * The actual cost depends on the implementation of `T::Tippers`.
4535
4255
  *
4536
4256
  * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
4537
4257
  * is weighted as if almost full i.e of length `T-1`.
4538
- * - DbReads: `Tippers`, `Tips`
4539
- * - DbWrites: `Tips`
4540
- * # </weight>
4541
4258
  **/
4542
4259
  tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
4543
4260
  /**
@@ -4554,15 +4271,12 @@ declare module '@polkadot/api-base/types/submittable' {
4554
4271
  *
4555
4272
  * Emits `NewTip` if successful.
4556
4273
  *
4557
- * # <weight>
4558
- * - Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
4274
+ * ## Complexity
4275
+ * - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
4559
4276
  * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
4560
4277
  * `ContainsLengthBound`. The actual cost depends on the implementation of
4561
4278
  * `T::Tippers`.
4562
4279
  * - `O(R)`: hashing and encoding of reason of length `R`
4563
- * - DbReads: `Tippers`, `Reasons`
4564
- * - DbWrites: `Reasons`, `Tips`
4565
- * # </weight>
4566
4280
  **/
4567
4281
  tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
4568
4282
  Id: any;
@@ -4587,11 +4301,8 @@ declare module '@polkadot/api-base/types/submittable' {
4587
4301
  *
4588
4302
  * May only be called from `T::ApproveOrigin`.
4589
4303
  *
4590
- * # <weight>
4591
- * - Complexity: O(1).
4592
- * - DbReads: `Proposals`, `Approvals`
4593
- * - DbWrite: `Approvals`
4594
- * # </weight>
4304
+ * ## Complexity
4305
+ * - O(1).
4595
4306
  **/
4596
4307
  approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4597
4308
  /**
@@ -4599,11 +4310,8 @@ declare module '@polkadot/api-base/types/submittable' {
4599
4310
  * is reserved and slashed if the proposal is rejected. It is returned once the
4600
4311
  * proposal is awarded.
4601
4312
  *
4602
- * # <weight>
4603
- * - Complexity: O(1)
4604
- * - DbReads: `ProposalCount`, `origin account`
4605
- * - DbWrites: `ProposalCount`, `Proposals`, `origin account`
4606
- * # </weight>
4313
+ * ## Complexity
4314
+ * - O(1)
4607
4315
  **/
4608
4316
  proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
4609
4317
  Id: any;
@@ -4621,11 +4329,8 @@ declare module '@polkadot/api-base/types/submittable' {
4621
4329
  *
4622
4330
  * May only be called from `T::RejectOrigin`.
4623
4331
  *
4624
- * # <weight>
4625
- * - Complexity: O(1)
4626
- * - DbReads: `Proposals`, `rejected proposer account`
4627
- * - DbWrites: `Proposals`, `rejected proposer account`
4628
- * # </weight>
4332
+ * ## Complexity
4333
+ * - O(1)
4629
4334
  **/
4630
4335
  rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4631
4336
  /**
@@ -4635,10 +4340,8 @@ declare module '@polkadot/api-base/types/submittable' {
4635
4340
  * May only be called from `T::RejectOrigin`.
4636
4341
  * - `proposal_id`: The index of a proposal
4637
4342
  *
4638
- * # <weight>
4639
- * - Complexity: O(A) where `A` is the number of approvals
4640
- * - Db reads and writes: `Approvals`
4641
- * # </weight>
4343
+ * ## Complexity
4344
+ * - O(A) where `A` is the number of approvals
4642
4345
  *
4643
4346
  * Errors:
4644
4347
  * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
@@ -4724,9 +4427,8 @@ declare module '@polkadot/api-base/types/submittable' {
4724
4427
  * If origin is root then the calls are dispatched without checking origin filter. (This
4725
4428
  * includes bypassing `frame_system::Config::BaseCallFilter`).
4726
4429
  *
4727
- * # <weight>
4728
- * - Complexity: O(C) where C is the number of calls to be batched.
4729
- * # </weight>
4430
+ * ## Complexity
4431
+ * - O(C) where C is the number of calls to be batched.
4730
4432
  *
4731
4433
  * This will return `Ok` in all circumstances. To determine the success of the batch, an
4732
4434
  * event is deposited. If a call failed and the batch was interrupted, then the
@@ -4747,9 +4449,8 @@ declare module '@polkadot/api-base/types/submittable' {
4747
4449
  * If origin is root then the calls are dispatched without checking origin filter. (This
4748
4450
  * includes bypassing `frame_system::Config::BaseCallFilter`).
4749
4451
  *
4750
- * # <weight>
4751
- * - Complexity: O(C) where C is the number of calls to be batched.
4752
- * # </weight>
4452
+ * ## Complexity
4453
+ * - O(C) where C is the number of calls to be batched.
4753
4454
  **/
4754
4455
  batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4755
4456
  /**
@@ -4757,12 +4458,8 @@ declare module '@polkadot/api-base/types/submittable' {
4757
4458
  *
4758
4459
  * The dispatch origin for this call must be _Root_.
4759
4460
  *
4760
- * # <weight>
4461
+ * ## Complexity
4761
4462
  * - O(1).
4762
- * - Limited storage reads.
4763
- * - One DB write (event).
4764
- * - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
4765
- * # </weight>
4766
4463
  **/
4767
4464
  dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | {
4768
4465
  system: any;
@@ -4789,9 +4486,8 @@ declare module '@polkadot/api-base/types/submittable' {
4789
4486
  * If origin is root then the calls are dispatch without checking origin filter. (This
4790
4487
  * includes bypassing `frame_system::Config::BaseCallFilter`).
4791
4488
  *
4792
- * # <weight>
4793
- * - Complexity: O(C) where C is the number of calls to be batched.
4794
- * # </weight>
4489
+ * ## Complexity
4490
+ * - O(C) where C is the number of calls to be batched.
4795
4491
  **/
4796
4492
  forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4797
4493
  /**
@@ -4825,12 +4521,8 @@ declare module '@polkadot/api-base/types/submittable' {
4825
4521
  *
4826
4522
  * NOTE: This will unlock all schedules through the current block.
4827
4523
  *
4828
- * # <weight>
4524
+ * ## Complexity
4829
4525
  * - `O(1)`.
4830
- * - DbWeight: 4 Reads, 4 Writes
4831
- * - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
4832
- * - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
4833
- * # </weight>
4834
4526
  **/
4835
4527
  forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
4836
4528
  Id: any;
@@ -4889,12 +4581,8 @@ declare module '@polkadot/api-base/types/submittable' {
4889
4581
  *
4890
4582
  * Emits either `VestingCompleted` or `VestingUpdated`.
4891
4583
  *
4892
- * # <weight>
4584
+ * ## Complexity
4893
4585
  * - `O(1)`.
4894
- * - DbWeight: 2 Reads, 2 Writes
4895
- * - Reads: Vesting Storage, Balances Locks, [Sender Account]
4896
- * - Writes: Vesting Storage, Balances Locks, [Sender Account]
4897
- * # </weight>
4898
4586
  **/
4899
4587
  vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4900
4588
  /**
@@ -4909,12 +4597,8 @@ declare module '@polkadot/api-base/types/submittable' {
4909
4597
  *
4910
4598
  * NOTE: This will unlock all schedules through the current block.
4911
4599
  *
4912
- * # <weight>
4600
+ * ## Complexity
4913
4601
  * - `O(1)`.
4914
- * - DbWeight: 3 Reads, 3 Writes
4915
- * - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
4916
- * - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
4917
- * # </weight>
4918
4602
  **/
4919
4603
  vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
4920
4604
  Id: any;
@@ -4941,12 +4625,8 @@ declare module '@polkadot/api-base/types/submittable' {
4941
4625
  *
4942
4626
  * Emits either `VestingCompleted` or `VestingUpdated`.
4943
4627
  *
4944
- * # <weight>
4628
+ * ## Complexity
4945
4629
  * - `O(1)`.
4946
- * - DbWeight: 3 Reads, 3 Writes
4947
- * - Reads: Vesting Storage, Balances Locks, Target Account
4948
- * - Writes: Vesting Storage, Balances Locks, Target Account
4949
- * # </weight>
4950
4630
  **/
4951
4631
  vestOther: AugmentedSubmittable<(target: MultiAddress | {
4952
4632
  Id: any;