@polkadot/api-augment 9.13.6 → 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
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
7
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
+ import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
9
9
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
11
11
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -50,22 +50,6 @@ declare module '@polkadot/api-base/types/submittable' {
50
50
  **/
51
51
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
52
52
  };
53
- authorship: {
54
- /**
55
- * Provide a set of uncles.
56
- **/
57
- setUncles: AugmentedSubmittable<(newUncles: Vec<SpRuntimeHeader> | (SpRuntimeHeader | {
58
- parentHash?: any;
59
- number?: any;
60
- stateRoot?: any;
61
- extrinsicsRoot?: any;
62
- digest?: any;
63
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<SpRuntimeHeader>]>;
64
- /**
65
- * Generic tx
66
- **/
67
- [key: string]: SubmittableExtrinsicFunction<ApiType>;
68
- };
69
53
  babe: {
70
54
  /**
71
55
  * Plan an epoch config change. The epoch config change is recorded and will be enacted on
@@ -121,10 +105,9 @@ declare module '@polkadot/api-base/types/submittable' {
121
105
  /**
122
106
  * Exactly as `transfer`, except the origin must be root and the source account may be
123
107
  * specified.
124
- * # <weight>
108
+ * ## Complexity
125
109
  * - Same as transfer, but additional read and write because the source account is not
126
110
  * assumed to be in the overlay.
127
- * # </weight>
128
111
  **/
129
112
  forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
130
113
  Id: any;
@@ -193,7 +176,7 @@ declare module '@polkadot/api-base/types/submittable' {
193
176
  *
194
177
  * The dispatch origin for this call must be `Signed` by the transactor.
195
178
  *
196
- * # <weight>
179
+ * ## Complexity
197
180
  * - Dependent on arguments but not critical, given proper implementations for input config
198
181
  * types. See related functions below.
199
182
  * - It contains a limited number of reads and writes internally and no complex
@@ -207,9 +190,6 @@ declare module '@polkadot/api-base/types/submittable' {
207
190
  * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
208
191
  * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
209
192
  * that the transfer will not kill the origin account.
210
- * ---------------------------------
211
- * - Origin account is already in memory, so no DB operations for them.
212
- * # </weight>
213
193
  **/
214
194
  transfer: AugmentedSubmittable<(dest: MultiAddress | {
215
195
  Id: any;
@@ -237,9 +217,8 @@ declare module '@polkadot/api-base/types/submittable' {
237
217
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
238
218
  * of the funds the account has, causing the sender account to be killed (false), or
239
219
  * transfer everything except at least the existential deposit, which will guarantee to
240
- * keep the sender account alive (true). # <weight>
220
+ * keep the sender account alive (true). ## Complexity
241
221
  * - O(1). Just like transfer, but reading the user's transferable balance first.
242
- * #</weight>
243
222
  **/
244
223
  transferAll: AugmentedSubmittable<(dest: MultiAddress | {
245
224
  Id: any;
@@ -283,9 +262,8 @@ declare module '@polkadot/api-base/types/submittable' {
283
262
  *
284
263
  * May only be called from the curator.
285
264
  *
286
- * # <weight>
265
+ * ## Complexity
287
266
  * - O(1).
288
- * # </weight>
289
267
  **/
290
268
  acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
291
269
  /**
@@ -294,9 +272,8 @@ declare module '@polkadot/api-base/types/submittable' {
294
272
  *
295
273
  * May only be called from `T::SpendOrigin`.
296
274
  *
297
- * # <weight>
275
+ * ## Complexity
298
276
  * - O(1).
299
- * # </weight>
300
277
  **/
301
278
  approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
302
279
  /**
@@ -308,9 +285,8 @@ declare module '@polkadot/api-base/types/submittable' {
308
285
  * - `bounty_id`: Bounty ID to award.
309
286
  * - `beneficiary`: The beneficiary account whom will receive the payout.
310
287
  *
311
- * # <weight>
288
+ * ## Complexity
312
289
  * - O(1).
313
- * # </weight>
314
290
  **/
315
291
  awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
316
292
  Id: any;
@@ -330,9 +306,8 @@ declare module '@polkadot/api-base/types/submittable' {
330
306
  *
331
307
  * - `bounty_id`: Bounty ID to claim.
332
308
  *
333
- * # <weight>
309
+ * ## Complexity
334
310
  * - O(1).
335
- * # </weight>
336
311
  **/
337
312
  claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
338
313
  /**
@@ -343,9 +318,8 @@ declare module '@polkadot/api-base/types/submittable' {
343
318
  *
344
319
  * - `bounty_id`: Bounty ID to cancel.
345
320
  *
346
- * # <weight>
321
+ * ## Complexity
347
322
  * - O(1).
348
- * # </weight>
349
323
  **/
350
324
  closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
351
325
  /**
@@ -356,9 +330,8 @@ declare module '@polkadot/api-base/types/submittable' {
356
330
  * - `bounty_id`: Bounty ID to extend.
357
331
  * - `remark`: additional information.
358
332
  *
359
- * # <weight>
333
+ * ## Complexity
360
334
  * - O(1).
361
- * # </weight>
362
335
  **/
363
336
  extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
364
337
  /**
@@ -381,9 +354,8 @@ declare module '@polkadot/api-base/types/submittable' {
381
354
  *
382
355
  * May only be called from `T::SpendOrigin`.
383
356
  *
384
- * # <weight>
357
+ * ## Complexity
385
358
  * - O(1).
386
- * # </weight>
387
359
  **/
388
360
  proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
389
361
  Id: any;
@@ -412,9 +384,8 @@ declare module '@polkadot/api-base/types/submittable' {
412
384
  * anyone in the community to call out that a curator is not doing their due diligence, and
413
385
  * we should pick a new curator. In this case the curator should also be slashed.
414
386
  *
415
- * # <weight>
387
+ * ## Complexity
416
388
  * - O(1).
417
- * # </weight>
418
389
  **/
419
390
  unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
420
391
  /**
@@ -926,20 +897,12 @@ declare module '@polkadot/api-base/types/submittable' {
926
897
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
927
898
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
928
899
  *
929
- * # <weight>
930
- * ## Weight
900
+ * ## Complexity
931
901
  * - `O(B + M + P1 + P2)` where:
932
902
  * - `B` is `proposal` size in bytes (length-fee-bounded)
933
903
  * - `M` is members-count (code- and governance-bounded)
934
904
  * - `P1` is the complexity of `proposal` preimage.
935
905
  * - `P2` is proposal-count (code-bounded)
936
- * - DB:
937
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
938
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
939
- * `O(P2)`)
940
- * - any mutations done while executing `proposal` (`P1`)
941
- * - up to 3 events
942
- * # </weight>
943
906
  **/
944
907
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
945
908
  refTime?: any;
@@ -964,20 +927,12 @@ declare module '@polkadot/api-base/types/submittable' {
964
927
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
965
928
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
966
929
  *
967
- * # <weight>
968
- * ## Weight
930
+ * ## Complexity
969
931
  * - `O(B + M + P1 + P2)` where:
970
932
  * - `B` is `proposal` size in bytes (length-fee-bounded)
971
933
  * - `M` is members-count (code- and governance-bounded)
972
934
  * - `P1` is the complexity of `proposal` preimage.
973
935
  * - `P2` is proposal-count (code-bounded)
974
- * - DB:
975
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
976
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
977
- * `O(P2)`)
978
- * - any mutations done while executing `proposal` (`P1`)
979
- * - up to 3 events
980
- * # </weight>
981
936
  **/
982
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>]>;
983
938
  /**
@@ -989,12 +944,8 @@ declare module '@polkadot/api-base/types/submittable' {
989
944
  * Parameters:
990
945
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
991
946
  *
992
- * # <weight>
993
- * Complexity: O(P) where P is the number of max proposals
994
- * DB Weight:
995
- * * Reads: Proposals
996
- * * Writes: Voting, Proposals, ProposalOf
997
- * # </weight>
947
+ * ## Complexity
948
+ * O(P) where P is the number of max proposals
998
949
  **/
999
950
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1000
951
  /**
@@ -1002,13 +953,11 @@ declare module '@polkadot/api-base/types/submittable' {
1002
953
  *
1003
954
  * Origin must be a member of the collective.
1004
955
  *
1005
- * # <weight>
1006
- * ## Weight
1007
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
1008
- * `proposal`
1009
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
1010
- * - 1 event
1011
- * # </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`
1012
961
  **/
1013
962
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
1014
963
  /**
@@ -1019,26 +968,13 @@ declare module '@polkadot/api-base/types/submittable' {
1019
968
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
1020
969
  * or put up for voting.
1021
970
  *
1022
- * # <weight>
1023
- * ## Weight
971
+ * ## Complexity
1024
972
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
1025
973
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1026
974
  * - `M` is members-count (code- and governance-bounded)
1027
975
  * - branching is influenced by `threshold` where:
1028
976
  * - `P1` is proposal execution complexity (`threshold < 2`)
1029
977
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
1030
- * - DB:
1031
- * - 1 storage read `is_member` (codec `O(M)`)
1032
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
1033
- * - DB accesses influenced by `threshold`:
1034
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
1035
- * - OR proposal insertion (`threshold <= 2`)
1036
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
1037
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
1038
- * - 1 storage write `ProposalOf` (codec `O(B)`)
1039
- * - 1 storage write `Voting` (codec `O(M)`)
1040
- * - 1 event
1041
- * # </weight>
1042
978
  **/
1043
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>]>;
1044
980
  /**
@@ -1049,7 +985,7 @@ declare module '@polkadot/api-base/types/submittable' {
1049
985
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
1050
986
  * weight estimation.
1051
987
  *
1052
- * Requires root origin.
988
+ * The dispatch of this call must be `SetMembersOrigin`.
1053
989
  *
1054
990
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
1055
991
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -1061,19 +997,11 @@ declare module '@polkadot/api-base/types/submittable' {
1061
997
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
1062
998
  * with other logic managing the member set.
1063
999
  *
1064
- * # <weight>
1065
- * ## Weight
1000
+ * ## Complexity:
1066
1001
  * - `O(MP + N)` where:
1067
1002
  * - `M` old-members-count (code- and governance-bounded)
1068
1003
  * - `N` new-members-count (code- and governance-bounded)
1069
1004
  * - `P` proposals-count (code-bounded)
1070
- * - DB:
1071
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
1072
- * members
1073
- * - 1 storage read (codec `O(P)`) for reading the proposals
1074
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
1075
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
1076
- * # </weight>
1077
1005
  **/
1078
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]>;
1079
1007
  /**
@@ -1084,14 +1012,8 @@ declare module '@polkadot/api-base/types/submittable' {
1084
1012
  * Transaction fees will be waived if the member is voting on any particular proposal
1085
1013
  * for the first time and the call is successful. Subsequent vote changes will charge a
1086
1014
  * fee.
1087
- * # <weight>
1088
- * ## Weight
1015
+ * ## Complexity
1089
1016
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
1090
- * - DB:
1091
- * - 1 storage read `Members` (codec `O(M)`)
1092
- * - 1 storage mutation `Voting` (codec `O(M)`)
1093
- * - 1 event
1094
- * # </weight>
1095
1017
  **/
1096
1018
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
1097
1019
  /**
@@ -1446,6 +1368,30 @@ declare module '@polkadot/api-base/types/submittable' {
1446
1368
  * - `proposal`: The index of the proposal to second.
1447
1369
  **/
1448
1370
  second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1371
+ /**
1372
+ * Set or clear a metadata of a proposal or a referendum.
1373
+ *
1374
+ * Parameters:
1375
+ * - `origin`: Must correspond to the `MetadataOwner`.
1376
+ * - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
1377
+ * threshold.
1378
+ * - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
1379
+ * threshold.
1380
+ * - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
1381
+ * threshold.
1382
+ * - `Signed` by a creator for a public proposal.
1383
+ * - `Signed` to clear a metadata for a finished referendum.
1384
+ * - `Root` to set a metadata for an ongoing referendum.
1385
+ * - `owner`: an identifier of a metadata owner.
1386
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
1387
+ **/
1388
+ setMetadata: AugmentedSubmittable<(owner: PalletDemocracyMetadataOwner | {
1389
+ External: any;
1390
+ } | {
1391
+ Proposal: any;
1392
+ } | {
1393
+ Referendum: any;
1394
+ } | string | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [PalletDemocracyMetadataOwner, Option<H256>]>;
1449
1395
  /**
1450
1396
  * Undelegate the voting power of the sending account.
1451
1397
  *
@@ -1790,11 +1736,8 @@ declare module '@polkadot/api-base/types/submittable' {
1790
1736
  *
1791
1737
  * Emits `RegistrarAdded` if successful.
1792
1738
  *
1793
- * # <weight>
1739
+ * ## Complexity
1794
1740
  * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
1795
- * - One storage mutation (codec `O(R)`).
1796
- * - One event.
1797
- * # </weight>
1798
1741
  **/
1799
1742
  addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
1800
1743
  Id: any;
@@ -1851,12 +1794,10 @@ declare module '@polkadot/api-base/types/submittable' {
1851
1794
  *
1852
1795
  * Emits `JudgementUnrequested` if successful.
1853
1796
  *
1854
- * # <weight>
1797
+ * ## Complexity
1855
1798
  * - `O(R + X)`.
1856
- * - One balance-reserve operation.
1857
- * - One storage mutation `O(R + X)`.
1858
- * - One event
1859
- * # </weight>
1799
+ * - where `R` registrar-count (governance-bounded).
1800
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
1860
1801
  **/
1861
1802
  cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1862
1803
  /**
@@ -1869,15 +1810,11 @@ declare module '@polkadot/api-base/types/submittable' {
1869
1810
  *
1870
1811
  * Emits `IdentityCleared` if successful.
1871
1812
  *
1872
- * # <weight>
1813
+ * ## Complexity
1873
1814
  * - `O(R + S + X)`
1874
1815
  * - where `R` registrar-count (governance-bounded).
1875
1816
  * - where `S` subs-count (hard- and deposit-bounded).
1876
1817
  * - where `X` additional-field-count (deposit-bounded and code-bounded).
1877
- * - One balance-unreserve operation.
1878
- * - `2` storage reads and `S + 2` storage deletions.
1879
- * - One event.
1880
- * # </weight>
1881
1818
  **/
1882
1819
  clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
1883
1820
  /**
@@ -1894,12 +1831,11 @@ declare module '@polkadot/api-base/types/submittable' {
1894
1831
  *
1895
1832
  * Emits `IdentityKilled` if successful.
1896
1833
  *
1897
- * # <weight>
1898
- * - `O(R + S + X)`.
1899
- * - One balance-reserve operation.
1900
- * - `S + 2` storage mutations.
1901
- * - One event.
1902
- * # </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).
1903
1839
  **/
1904
1840
  killIdentity: AugmentedSubmittable<(target: MultiAddress | {
1905
1841
  Id: any;
@@ -1926,13 +1862,10 @@ declare module '@polkadot/api-base/types/submittable' {
1926
1862
  *
1927
1863
  * Emits `JudgementGiven` if successful.
1928
1864
  *
1929
- * # <weight>
1865
+ * ## Complexity
1930
1866
  * - `O(R + X)`.
1931
- * - One balance-transfer operation.
1932
- * - Up to one account-lookup operation.
1933
- * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
1934
- * - One event.
1935
- * # </weight>
1867
+ * - where `R` registrar-count (governance-bounded).
1868
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
1936
1869
  **/
1937
1870
  provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
1938
1871
  Id: any;
@@ -2039,12 +1972,10 @@ declare module '@polkadot/api-base/types/submittable' {
2039
1972
  *
2040
1973
  * Emits `JudgementRequested` if successful.
2041
1974
  *
2042
- * # <weight>
1975
+ * ## Complexity
2043
1976
  * - `O(R + X)`.
2044
- * - One balance-reserve operation.
2045
- * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.
2046
- * - One event.
2047
- * # </weight>
1977
+ * - where `R` registrar-count (governance-bounded).
1978
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2048
1979
  **/
2049
1980
  requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
2050
1981
  /**
@@ -2056,11 +1987,9 @@ declare module '@polkadot/api-base/types/submittable' {
2056
1987
  * - `index`: the index of the registrar whose fee is to be set.
2057
1988
  * - `new`: the new account ID.
2058
1989
  *
2059
- * # <weight>
1990
+ * ## Complexity
2060
1991
  * - `O(R)`.
2061
- * - One storage mutation `O(R)`.
2062
- * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
2063
- * # </weight>
1992
+ * - where `R` registrar-count (governance-bounded).
2064
1993
  **/
2065
1994
  setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
2066
1995
  Id: any;
@@ -2082,11 +2011,9 @@ declare module '@polkadot/api-base/types/submittable' {
2082
2011
  * - `index`: the index of the registrar whose fee is to be set.
2083
2012
  * - `fee`: the new fee.
2084
2013
  *
2085
- * # <weight>
2014
+ * ## Complexity
2086
2015
  * - `O(R)`.
2087
- * - One storage mutation `O(R)`.
2088
- * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
2089
- * # </weight>
2016
+ * - where `R` registrar-count (governance-bounded).
2090
2017
  **/
2091
2018
  setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
2092
2019
  /**
@@ -2098,11 +2025,9 @@ declare module '@polkadot/api-base/types/submittable' {
2098
2025
  * - `index`: the index of the registrar whose fee is to be set.
2099
2026
  * - `fields`: the fields that the registrar concerns themselves with.
2100
2027
  *
2101
- * # <weight>
2028
+ * ## Complexity
2102
2029
  * - `O(R)`.
2103
- * - One storage mutation `O(R)`.
2104
- * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
2105
- * # </weight>
2030
+ * - where `R` registrar-count (governance-bounded).
2106
2031
  **/
2107
2032
  setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
2108
2033
  /**
@@ -2117,14 +2042,10 @@ declare module '@polkadot/api-base/types/submittable' {
2117
2042
  *
2118
2043
  * Emits `IdentitySet` if successful.
2119
2044
  *
2120
- * # <weight>
2045
+ * ## Complexity
2121
2046
  * - `O(X + X' + R)`
2122
2047
  * - where `X` additional-field-count (deposit-bounded and code-bounded)
2123
2048
  * - where `R` judgements-count (registrar-count-bounded)
2124
- * - One balance reserve operation.
2125
- * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
2126
- * - One event.
2127
- * # </weight>
2128
2049
  **/
2129
2050
  setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
2130
2051
  additional?: any;
@@ -2148,17 +2069,10 @@ declare module '@polkadot/api-base/types/submittable' {
2148
2069
  *
2149
2070
  * - `subs`: The identity's (new) sub-accounts.
2150
2071
  *
2151
- * # <weight>
2072
+ * ## Complexity
2152
2073
  * - `O(P + S)`
2153
2074
  * - where `P` old-subs-count (hard- and deposit-bounded).
2154
2075
  * - where `S` subs-count (hard- and deposit-bounded).
2155
- * - At most one balance operations.
2156
- * - DB:
2157
- * - `P + S` storage mutations (codec complexity `O(1)`)
2158
- * - One storage read (codec complexity `O(P)`).
2159
- * - One storage write (codec complexity `O(S)`).
2160
- * - One storage-exists (`IdentityOf::contains_key`).
2161
- * # </weight>
2162
2076
  **/
2163
2077
  setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
2164
2078
  None: any;
@@ -2180,15 +2094,11 @@ declare module '@polkadot/api-base/types/submittable' {
2180
2094
  };
2181
2095
  imOnline: {
2182
2096
  /**
2183
- * # <weight>
2184
- * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is
2185
- * 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`
2186
2100
  * - `O(K)`: decoding of length `K`
2187
2101
  * - `O(E)`: decoding/encoding of length `E`
2188
- * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
2189
- * `ReceivedHeartbeats`
2190
- * - DbWrites: `ReceivedHeartbeats`
2191
- * # </weight>
2192
2102
  **/
2193
2103
  heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
2194
2104
  blockNumber?: any;
@@ -2214,14 +2124,8 @@ declare module '@polkadot/api-base/types/submittable' {
2214
2124
  *
2215
2125
  * Emits `IndexAssigned` if successful.
2216
2126
  *
2217
- * # <weight>
2127
+ * ## Complexity
2218
2128
  * - `O(1)`.
2219
- * - One storage mutation (codec `O(1)`).
2220
- * - One reserve operation.
2221
- * - One event.
2222
- * -------------------
2223
- * - DB Weight: 1 Read/Write (Accounts)
2224
- * # </weight>
2225
2129
  **/
2226
2130
  claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2227
2131
  /**
@@ -2236,16 +2140,8 @@ declare module '@polkadot/api-base/types/submittable' {
2236
2140
  *
2237
2141
  * Emits `IndexAssigned` if successful.
2238
2142
  *
2239
- * # <weight>
2143
+ * ## Complexity
2240
2144
  * - `O(1)`.
2241
- * - One storage mutation (codec `O(1)`).
2242
- * - Up to one reserve operation.
2243
- * - One event.
2244
- * -------------------
2245
- * - DB Weight:
2246
- * - Reads: Indices Accounts, System Account (original owner)
2247
- * - Writes: Indices Accounts, System Account (original owner)
2248
- * # </weight>
2249
2145
  **/
2250
2146
  forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
2251
2147
  Id: any;
@@ -2269,14 +2165,8 @@ declare module '@polkadot/api-base/types/submittable' {
2269
2165
  *
2270
2166
  * Emits `IndexFreed` if successful.
2271
2167
  *
2272
- * # <weight>
2168
+ * ## Complexity
2273
2169
  * - `O(1)`.
2274
- * - One storage mutation (codec `O(1)`).
2275
- * - One reserve operation.
2276
- * - One event.
2277
- * -------------------
2278
- * - DB Weight: 1 Read/Write (Accounts)
2279
- * # </weight>
2280
2170
  **/
2281
2171
  free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2282
2172
  /**
@@ -2290,14 +2180,8 @@ declare module '@polkadot/api-base/types/submittable' {
2290
2180
  *
2291
2181
  * Emits `IndexFrozen` if successful.
2292
2182
  *
2293
- * # <weight>
2183
+ * ## Complexity
2294
2184
  * - `O(1)`.
2295
- * - One storage mutation (codec `O(1)`).
2296
- * - Up to one slash operation.
2297
- * - One event.
2298
- * -------------------
2299
- * - DB Weight: 1 Read/Write (Accounts)
2300
- * # </weight>
2301
2185
  **/
2302
2186
  freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2303
2187
  /**
@@ -2311,16 +2195,8 @@ declare module '@polkadot/api-base/types/submittable' {
2311
2195
  *
2312
2196
  * Emits `IndexAssigned` if successful.
2313
2197
  *
2314
- * # <weight>
2198
+ * ## Complexity
2315
2199
  * - `O(1)`.
2316
- * - One storage mutation (codec `O(1)`).
2317
- * - One transfer operation.
2318
- * - One event.
2319
- * -------------------
2320
- * - DB Weight:
2321
- * - Reads: Indices Accounts, System Account (recipient)
2322
- * - Writes: Indices Accounts, System Account (recipient)
2323
- * # </weight>
2324
2200
  **/
2325
2201
  transfer: AugmentedSubmittable<(updated: MultiAddress | {
2326
2202
  Id: any;
@@ -2371,7 +2247,7 @@ declare module '@polkadot/api-base/types/submittable' {
2371
2247
  *
2372
2248
  * NOTE: If this is the final approval, you will want to use `as_multi` instead.
2373
2249
  *
2374
- * # <weight>
2250
+ * ## Complexity
2375
2251
  * - `O(S)`.
2376
2252
  * - Up to one balance-reserve or unreserve operation.
2377
2253
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2382,11 +2258,6 @@ declare module '@polkadot/api-base/types/submittable' {
2382
2258
  * - One event.
2383
2259
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2384
2260
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2385
- * ----------------------------------
2386
- * - DB Weight:
2387
- * - Read: Multisig Storage, [Caller Account]
2388
- * - Write: Multisig Storage, [Caller Account]
2389
- * # </weight>
2390
2261
  **/
2391
2262
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2392
2263
  height?: any;
@@ -2422,7 +2293,7 @@ declare module '@polkadot/api-base/types/submittable' {
2422
2293
  * on success, result is `Ok` and the result from the interior call, if it was executed,
2423
2294
  * may be found in the deposited `MultisigExecuted` event.
2424
2295
  *
2425
- * # <weight>
2296
+ * ## Complexity
2426
2297
  * - `O(S + Z + Call)`.
2427
2298
  * - Up to one balance-reserve or unreserve operation.
2428
2299
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2435,12 +2306,6 @@ declare module '@polkadot/api-base/types/submittable' {
2435
2306
  * - The weight of the `call`.
2436
2307
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2437
2308
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2438
- * -------------------------------
2439
- * - DB Weight:
2440
- * - Reads: Multisig Storage, [Caller Account]
2441
- * - Writes: Multisig Storage, [Caller Account]
2442
- * - Plus Call Weight
2443
- * # </weight>
2444
2309
  **/
2445
2310
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2446
2311
  height?: any;
@@ -2460,12 +2325,8 @@ declare module '@polkadot/api-base/types/submittable' {
2460
2325
  *
2461
2326
  * Result is equivalent to the dispatched result.
2462
2327
  *
2463
- * # <weight>
2328
+ * ## Complexity
2464
2329
  * O(Z + C) where Z is the length of the call and C its execution weight.
2465
- * -------------------------------
2466
- * - DB Weight: None
2467
- * - Plus Call Weight
2468
- * # </weight>
2469
2330
  **/
2470
2331
  asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2471
2332
  /**
@@ -2481,7 +2342,7 @@ declare module '@polkadot/api-base/types/submittable' {
2481
2342
  * transaction for this dispatch.
2482
2343
  * - `call_hash`: The hash of the call to be executed.
2483
2344
  *
2484
- * # <weight>
2345
+ * ## Complexity
2485
2346
  * - `O(S)`.
2486
2347
  * - Up to one balance-reserve or unreserve operation.
2487
2348
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2490,11 +2351,6 @@ declare module '@polkadot/api-base/types/submittable' {
2490
2351
  * - One event.
2491
2352
  * - I/O: 1 read `O(S)`, one remove.
2492
2353
  * - Storage: removes one item.
2493
- * ----------------------------------
2494
- * - DB Weight:
2495
- * - Read: Multisig Storage, [Caller Account], Refund Account
2496
- * - Write: Multisig Storage, [Caller Account], Refund Account
2497
- * # </weight>
2498
2354
  **/
2499
2355
  cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
2500
2356
  height?: any;
@@ -2936,9 +2792,8 @@ declare module '@polkadot/api-base/types/submittable' {
2936
2792
  *
2937
2793
  * The dispatch origin of this call must be root.
2938
2794
  *
2939
- * # <weight>
2940
- * The total number of voters and those that are defunct must be provided as witness data.
2941
- * # </weight>
2795
+ * ## Complexity
2796
+ * - Check is_defunct_voter() details.
2942
2797
  **/
2943
2798
  cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
2944
2799
  /**
@@ -2956,10 +2811,8 @@ declare module '@polkadot/api-base/types/submittable' {
2956
2811
  *
2957
2812
  * Note that this does not affect the designated block number of the next election.
2958
2813
  *
2959
- * # <weight>
2960
- * If we have a replacement, we use a small weight. Else, since this is a root call and
2961
- * will go into phragmen, we assume full block for now.
2962
- * # </weight>
2814
+ * ## Complexity
2815
+ * - Check details of remove_and_replace_member() and do_phragmen().
2963
2816
  **/
2964
2817
  removeMember: AugmentedSubmittable<(who: MultiAddress | {
2965
2818
  Id: any;
@@ -2995,10 +2848,12 @@ declare module '@polkadot/api-base/types/submittable' {
2995
2848
  * next round.
2996
2849
  *
2997
2850
  * The dispatch origin of this call must be signed, and have one of the above roles.
2998
- *
2999
- * # <weight>
3000
2851
  * The type of renouncing must be provided as witness data.
3001
- * # </weight>
2852
+ *
2853
+ * ## Complexity
2854
+ * - Renouncing::Candidate(count): O(count + log(count))
2855
+ * - Renouncing::Member: O(1)
2856
+ * - Renouncing::RunnerUp: O(1)
3002
2857
  **/
3003
2858
  renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
3004
2859
  Member: any;
@@ -3020,9 +2875,9 @@ declare module '@polkadot/api-base/types/submittable' {
3020
2875
  * Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
3021
2876
  * to get their deposit back. Losing the spot in an election will always lead to a slash.
3022
2877
  *
3023
- * # <weight>
3024
2878
  * The number of current candidates must be provided as witness data.
3025
- * # </weight>
2879
+ * ## Complexity
2880
+ * O(C + log(C)) where C is candidate_count.
3026
2881
  **/
3027
2882
  submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3028
2883
  /**
@@ -3045,10 +2900,6 @@ declare module '@polkadot/api-base/types/submittable' {
3045
2900
  *
3046
2901
  * It is the responsibility of the caller to **NOT** place all of their balance into the
3047
2902
  * lock and keep some for further operations.
3048
- *
3049
- * # <weight>
3050
- * We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less.
3051
- * # </weight>
3052
2903
  **/
3053
2904
  vote: AugmentedSubmittable<(votes: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Compact<u128>]>;
3054
2905
  /**
@@ -3196,8 +3047,6 @@ declare module '@polkadot/api-base/types/submittable' {
3196
3047
  * Dispatch the given `call` from an account that the sender is authorised for through
3197
3048
  * `add_proxy`.
3198
3049
  *
3199
- * Removes any corresponding announcement(s).
3200
- *
3201
3050
  * The dispatch origin for this call must be _Signed_.
3202
3051
  *
3203
3052
  * Parameters:
@@ -3440,10 +3289,6 @@ declare module '@polkadot/api-base/types/submittable' {
3440
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]>;
3441
3290
  /**
3442
3291
  * Anonymously schedule a task after a delay.
3443
- *
3444
- * # <weight>
3445
- * Same as [`schedule`].
3446
- * # </weight>
3447
3292
  **/
3448
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]>;
3449
3294
  /**
@@ -3452,10 +3297,6 @@ declare module '@polkadot/api-base/types/submittable' {
3452
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]>;
3453
3298
  /**
3454
3299
  * Schedule a named task after a delay.
3455
- *
3456
- * # <weight>
3457
- * Same as [`schedule_named`](Self::schedule_named).
3458
- * # </weight>
3459
3300
  **/
3460
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]>;
3461
3302
  /**
@@ -3474,13 +3315,9 @@ declare module '@polkadot/api-base/types/submittable' {
3474
3315
  * means being a controller account) or directly convertible into a validator ID (which
3475
3316
  * usually means being a stash account).
3476
3317
  *
3477
- * # <weight>
3478
- * - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
3479
- * of `T::Keys::key_ids()` which is fixed.
3480
- * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
3481
- * - DbWrites: `NextKeys`, `origin account`
3482
- * - DbWrites per key id: `KeyOwner`
3483
- * # </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.
3484
3321
  **/
3485
3322
  purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3486
3323
  /**
@@ -3490,14 +3327,9 @@ declare module '@polkadot/api-base/types/submittable' {
3490
3327
  *
3491
3328
  * The dispatch origin of this function must be signed.
3492
3329
  *
3493
- * # <weight>
3494
- * - Complexity: `O(1)`. Actual cost depends on the number of length of
3495
- * `T::Keys::key_ids()` which is fixed.
3496
- * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
3497
- * - DbWrites: `origin account`, `NextKeys`
3498
- * - DbReads per key id: `KeyOwner`
3499
- * - DbWrites per key id: `KeyOwner`
3500
- * # </weight>
3330
+ * ## Complexity
3331
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
3332
+ * fixed.
3501
3333
  **/
3502
3334
  setKeys: AugmentedSubmittable<(keys: PolkadotRuntimeSessionKeys | {
3503
3335
  grandpa?: any;
@@ -3551,15 +3383,13 @@ declare module '@polkadot/api-base/types/submittable' {
3551
3383
  * The dispatch origin for this call must be _Signed_ by the stash account.
3552
3384
  *
3553
3385
  * Emits `Bonded`.
3554
- * # <weight>
3386
+ * ## Complexity
3555
3387
  * - Independent of the arguments. Moderate complexity.
3556
3388
  * - O(1).
3557
3389
  * - Three extra DB entries.
3558
3390
  *
3559
3391
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
3560
3392
  * unless the `origin` falls below _existential deposit_ and gets removed as dust.
3561
- * ------------------
3562
- * # </weight>
3563
3393
  **/
3564
3394
  bond: AugmentedSubmittable<(controller: MultiAddress | {
3565
3395
  Id: any;
@@ -3594,10 +3424,9 @@ declare module '@polkadot/api-base/types/submittable' {
3594
3424
  *
3595
3425
  * Emits `Bonded`.
3596
3426
  *
3597
- * # <weight>
3427
+ * ## Complexity
3598
3428
  * - Independent of the arguments. Insignificant complexity.
3599
3429
  * - O(1).
3600
- * # </weight>
3601
3430
  **/
3602
3431
  bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
3603
3432
  /**
@@ -3615,11 +3444,10 @@ declare module '@polkadot/api-base/types/submittable' {
3615
3444
  *
3616
3445
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
3617
3446
  *
3618
- * # <weight>
3447
+ * ## Complexity
3619
3448
  * - Independent of the arguments. Insignificant complexity.
3620
3449
  * - Contains one read.
3621
3450
  * - Writes are limited to the `origin` account key.
3622
- * # </weight>
3623
3451
  **/
3624
3452
  chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3625
3453
  /**
@@ -3669,11 +3497,9 @@ declare module '@polkadot/api-base/types/submittable' {
3669
3497
  * If this is called just before a new era is triggered, the election process may not
3670
3498
  * have enough blocks to get a result.
3671
3499
  *
3672
- * # <weight>
3500
+ * ## Complexity
3673
3501
  * - No arguments.
3674
3502
  * - Weight: O(1)
3675
- * - Write ForceEra
3676
- * # </weight>
3677
3503
  **/
3678
3504
  forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3679
3505
  /**
@@ -3699,11 +3525,9 @@ declare module '@polkadot/api-base/types/submittable' {
3699
3525
  * Thus the election process may be ongoing when this is called. In this case the
3700
3526
  * election will continue until the next era is triggered.
3701
3527
  *
3702
- * # <weight>
3528
+ * ## Complexity
3703
3529
  * - No arguments.
3704
3530
  * - Weight: O(1)
3705
- * - Write: ForceEra
3706
- * # </weight>
3707
3531
  **/
3708
3532
  forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3709
3533
  /**
@@ -3718,9 +3542,8 @@ declare module '@polkadot/api-base/types/submittable' {
3718
3542
  *
3719
3543
  * The dispatch origin must be Root.
3720
3544
  *
3721
- * # <weight>
3545
+ * ## Complexity
3722
3546
  * Same as [`Self::set_validator_count`].
3723
- * # </weight>
3724
3547
  **/
3725
3548
  increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3726
3549
  /**
@@ -3754,11 +3577,10 @@ declare module '@polkadot/api-base/types/submittable' {
3754
3577
  *
3755
3578
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
3756
3579
  *
3757
- * # <weight>
3580
+ * ## Complexity
3758
3581
  * - The transaction's complexity is proportional to the size of `targets` (N)
3759
3582
  * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
3760
3583
  * - Both the reads and writes follow a similar pattern.
3761
- * # </weight>
3762
3584
  **/
3763
3585
  nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
3764
3586
  Id: any;
@@ -3781,18 +3603,8 @@ declare module '@polkadot/api-base/types/submittable' {
3781
3603
  * The origin of this call must be _Signed_. Any account can call this function, even if
3782
3604
  * it is not one of the stakers.
3783
3605
  *
3784
- * # <weight>
3785
- * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
3786
- * - Contains a limited number of reads and writes.
3787
- * -----------
3788
- * N is the Number of payouts for the validator (including the validator)
3789
- * Weight:
3790
- * - Reward Destination Staked: O(N)
3791
- * - Reward Destination Controller (Creating): O(N)
3792
- *
3793
- * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
3794
- * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
3795
- * # </weight>
3606
+ * ## Complexity
3607
+ * - At most O(MaxNominatorRewardedPerValidator).
3796
3608
  **/
3797
3609
  payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
3798
3610
  /**
@@ -3815,11 +3627,9 @@ declare module '@polkadot/api-base/types/submittable' {
3815
3627
  *
3816
3628
  * The dispatch origin must be signed by the controller.
3817
3629
  *
3818
- * # <weight>
3630
+ * ## Complexity
3819
3631
  * - Time complexity: O(L), where L is unlocking chunks
3820
3632
  * - Bounded by `MaxUnlockingChunks`.
3821
- * - Storage changes: Can't increase storage, only decrease it.
3822
- * # </weight>
3823
3633
  **/
3824
3634
  rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
3825
3635
  /**
@@ -3828,9 +3638,8 @@ declare module '@polkadot/api-base/types/submittable' {
3828
3638
  *
3829
3639
  * The dispatch origin must be Root.
3830
3640
  *
3831
- * # <weight>
3641
+ * ## Complexity
3832
3642
  * Same as [`Self::set_validator_count`].
3833
- * # </weight>
3834
3643
  **/
3835
3644
  scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
3836
3645
  /**
@@ -3840,16 +3649,11 @@ declare module '@polkadot/api-base/types/submittable' {
3840
3649
  *
3841
3650
  * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
3842
3651
  *
3843
- * # <weight>
3652
+ * ## Complexity
3653
+ * O(1)
3844
3654
  * - Independent of the arguments. Insignificant complexity.
3845
3655
  * - Contains a limited number of reads.
3846
3656
  * - Writes are limited to the `origin` account key.
3847
- * ----------
3848
- * Weight: O(1)
3849
- * DB Weight:
3850
- * - Read: Bonded, Ledger New Controller, Ledger Old Controller
3851
- * - Write: Bonded, Ledger New Controller, Ledger Old Controller
3852
- * # </weight>
3853
3657
  **/
3854
3658
  setController: AugmentedSubmittable<(controller: MultiAddress | {
3855
3659
  Id: any;
@@ -3882,16 +3686,12 @@ declare module '@polkadot/api-base/types/submittable' {
3882
3686
  *
3883
3687
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
3884
3688
  *
3885
- * # <weight>
3689
+ * ## Complexity
3690
+ * - O(1)
3886
3691
  * - Independent of the arguments. Insignificant complexity.
3887
3692
  * - Contains a limited number of reads.
3888
3693
  * - Writes are limited to the `origin` account key.
3889
3694
  * ---------
3890
- * - Weight: O(1)
3891
- * - DB Weight:
3892
- * - Read: Ledger
3893
- * - Write: Payee
3894
- * # </weight>
3895
3695
  **/
3896
3696
  setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
3897
3697
  Staked: any;
@@ -3965,10 +3765,8 @@ declare module '@polkadot/api-base/types/submittable' {
3965
3765
  *
3966
3766
  * The dispatch origin must be Root.
3967
3767
  *
3968
- * # <weight>
3969
- * Weight: O(1)
3970
- * Write: Validator Count
3971
- * # </weight>
3768
+ * ## Complexity
3769
+ * O(1)
3972
3770
  **/
3973
3771
  setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3974
3772
  /**
@@ -4016,10 +3814,9 @@ declare module '@polkadot/api-base/types/submittable' {
4016
3814
  *
4017
3815
  * See also [`Call::unbond`].
4018
3816
  *
4019
- * # <weight>
4020
- * 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
4021
3819
  * NOTE: Weight annotation is the kill scenario, we refund otherwise.
4022
- * # </weight>
4023
3820
  **/
4024
3821
  withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4025
3822
  /**
@@ -4042,9 +3839,8 @@ declare module '@polkadot/api-base/types/submittable' {
4042
3839
  /**
4043
3840
  * Make some on-chain remark.
4044
3841
  *
4045
- * # <weight>
3842
+ * ## Complexity
4046
3843
  * - `O(1)`
4047
- * # </weight>
4048
3844
  **/
4049
3845
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4050
3846
  /**
@@ -4054,28 +3850,15 @@ declare module '@polkadot/api-base/types/submittable' {
4054
3850
  /**
4055
3851
  * Set the new runtime code.
4056
3852
  *
4057
- * # <weight>
3853
+ * ## Complexity
4058
3854
  * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
4059
- * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
4060
- * expensive).
4061
- * - 1 storage write (codec `O(C)`).
4062
- * - 1 digest item.
4063
- * - 1 event.
4064
- * The weight of this function is dependent on the runtime, but generally this is very
4065
- * expensive. We will treat this as a full block.
4066
- * # </weight>
4067
3855
  **/
4068
3856
  setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4069
3857
  /**
4070
3858
  * Set the new runtime code without doing any checks of the given `code`.
4071
3859
  *
4072
- * # <weight>
3860
+ * ## Complexity
4073
3861
  * - `O(C)` where `C` length of `code`
4074
- * - 1 storage write (codec `O(C)`).
4075
- * - 1 digest item.
4076
- * - 1 event.
4077
- * The weight of this function is dependent on the runtime. We will treat this as a full
4078
- * block. # </weight>
4079
3862
  **/
4080
3863
  setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4081
3864
  /**
@@ -4111,20 +3894,12 @@ declare module '@polkadot/api-base/types/submittable' {
4111
3894
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
4112
3895
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
4113
3896
  *
4114
- * # <weight>
4115
- * ## Weight
3897
+ * ## Complexity
4116
3898
  * - `O(B + M + P1 + P2)` where:
4117
3899
  * - `B` is `proposal` size in bytes (length-fee-bounded)
4118
3900
  * - `M` is members-count (code- and governance-bounded)
4119
3901
  * - `P1` is the complexity of `proposal` preimage.
4120
3902
  * - `P2` is proposal-count (code-bounded)
4121
- * - DB:
4122
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
4123
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
4124
- * `O(P2)`)
4125
- * - any mutations done while executing `proposal` (`P1`)
4126
- * - up to 3 events
4127
- * # </weight>
4128
3903
  **/
4129
3904
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
4130
3905
  refTime?: any;
@@ -4149,20 +3924,12 @@ declare module '@polkadot/api-base/types/submittable' {
4149
3924
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
4150
3925
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
4151
3926
  *
4152
- * # <weight>
4153
- * ## Weight
3927
+ * ## Complexity
4154
3928
  * - `O(B + M + P1 + P2)` where:
4155
3929
  * - `B` is `proposal` size in bytes (length-fee-bounded)
4156
3930
  * - `M` is members-count (code- and governance-bounded)
4157
3931
  * - `P1` is the complexity of `proposal` preimage.
4158
3932
  * - `P2` is proposal-count (code-bounded)
4159
- * - DB:
4160
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
4161
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
4162
- * `O(P2)`)
4163
- * - any mutations done while executing `proposal` (`P1`)
4164
- * - up to 3 events
4165
- * # </weight>
4166
3933
  **/
4167
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>]>;
4168
3935
  /**
@@ -4174,12 +3941,8 @@ declare module '@polkadot/api-base/types/submittable' {
4174
3941
  * Parameters:
4175
3942
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
4176
3943
  *
4177
- * # <weight>
4178
- * Complexity: O(P) where P is the number of max proposals
4179
- * DB Weight:
4180
- * * Reads: Proposals
4181
- * * Writes: Voting, Proposals, ProposalOf
4182
- * # </weight>
3944
+ * ## Complexity
3945
+ * O(P) where P is the number of max proposals
4183
3946
  **/
4184
3947
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
4185
3948
  /**
@@ -4187,13 +3950,11 @@ declare module '@polkadot/api-base/types/submittable' {
4187
3950
  *
4188
3951
  * Origin must be a member of the collective.
4189
3952
  *
4190
- * # <weight>
4191
- * ## Weight
4192
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
4193
- * `proposal`
4194
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
4195
- * - 1 event
4196
- * # </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`
4197
3958
  **/
4198
3959
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
4199
3960
  /**
@@ -4204,26 +3965,13 @@ declare module '@polkadot/api-base/types/submittable' {
4204
3965
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
4205
3966
  * or put up for voting.
4206
3967
  *
4207
- * # <weight>
4208
- * ## Weight
3968
+ * ## Complexity
4209
3969
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
4210
3970
  * - `B` is `proposal` size in bytes (length-fee-bounded)
4211
3971
  * - `M` is members-count (code- and governance-bounded)
4212
3972
  * - branching is influenced by `threshold` where:
4213
3973
  * - `P1` is proposal execution complexity (`threshold < 2`)
4214
3974
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
4215
- * - DB:
4216
- * - 1 storage read `is_member` (codec `O(M)`)
4217
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
4218
- * - DB accesses influenced by `threshold`:
4219
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
4220
- * - OR proposal insertion (`threshold <= 2`)
4221
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
4222
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
4223
- * - 1 storage write `ProposalOf` (codec `O(B)`)
4224
- * - 1 storage write `Voting` (codec `O(M)`)
4225
- * - 1 event
4226
- * # </weight>
4227
3975
  **/
4228
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>]>;
4229
3977
  /**
@@ -4234,7 +3982,7 @@ declare module '@polkadot/api-base/types/submittable' {
4234
3982
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
4235
3983
  * weight estimation.
4236
3984
  *
4237
- * Requires root origin.
3985
+ * The dispatch of this call must be `SetMembersOrigin`.
4238
3986
  *
4239
3987
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
4240
3988
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -4246,19 +3994,11 @@ declare module '@polkadot/api-base/types/submittable' {
4246
3994
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
4247
3995
  * with other logic managing the member set.
4248
3996
  *
4249
- * # <weight>
4250
- * ## Weight
3997
+ * ## Complexity:
4251
3998
  * - `O(MP + N)` where:
4252
3999
  * - `M` old-members-count (code- and governance-bounded)
4253
4000
  * - `N` new-members-count (code- and governance-bounded)
4254
4001
  * - `P` proposals-count (code-bounded)
4255
- * - DB:
4256
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
4257
- * members
4258
- * - 1 storage read (codec `O(P)`) for reading the proposals
4259
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
4260
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
4261
- * # </weight>
4262
4002
  **/
4263
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]>;
4264
4004
  /**
@@ -4269,14 +4009,8 @@ declare module '@polkadot/api-base/types/submittable' {
4269
4009
  * Transaction fees will be waived if the member is voting on any particular proposal
4270
4010
  * for the first time and the call is successful. Subsequent vote changes will charge a
4271
4011
  * fee.
4272
- * # <weight>
4273
- * ## Weight
4012
+ * ## Complexity
4274
4013
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
4275
- * - DB:
4276
- * - 1 storage read `Members` (codec `O(M)`)
4277
- * - 1 storage mutation `Voting` (codec `O(M)`)
4278
- * - 1 event
4279
- * # </weight>
4280
4014
  **/
4281
4015
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
4282
4016
  /**
@@ -4409,12 +4143,11 @@ declare module '@polkadot/api-base/types/submittable' {
4409
4143
  *
4410
4144
  * The dispatch origin for this call must be `Inherent`.
4411
4145
  *
4412
- * # <weight>
4146
+ * ## Complexity
4413
4147
  * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
4414
4148
  * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
4415
4149
  * `on_finalize`)
4416
4150
  * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
4417
- * # </weight>
4418
4151
  **/
4419
4152
  set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
4420
4153
  /**
@@ -4433,13 +4166,10 @@ declare module '@polkadot/api-base/types/submittable' {
4433
4166
  * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
4434
4167
  * as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
4435
4168
  *
4436
- * # <weight>
4437
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
4438
- * `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost
4439
- * depends on the implementation of `T::Tippers`.
4440
- * - DbReads: `Tips`, `Tippers`, `tip finder`
4441
- * - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
4442
- * # </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`.
4443
4173
  **/
4444
4174
  closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
4445
4175
  /**
@@ -4456,12 +4186,9 @@ declare module '@polkadot/api-base/types/submittable' {
4456
4186
  *
4457
4187
  * Emits `NewTip` if successful.
4458
4188
  *
4459
- * # <weight>
4460
- * - Complexity: `O(R)` where `R` length of `reason`.
4189
+ * ## Complexity
4190
+ * - `O(R)` where `R` length of `reason`.
4461
4191
  * - encoding and hashing of 'reason'
4462
- * - DbReads: `Reasons`, `Tips`
4463
- * - DbWrites: `Reasons`, `Tips`
4464
- * # </weight>
4465
4192
  **/
4466
4193
  reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
4467
4194
  Id: any;
@@ -4488,12 +4215,9 @@ declare module '@polkadot/api-base/types/submittable' {
4488
4215
  *
4489
4216
  * Emits `TipRetracted` if successful.
4490
4217
  *
4491
- * # <weight>
4492
- * - Complexity: `O(1)`
4218
+ * ## Complexity
4219
+ * - `O(1)`
4493
4220
  * - Depends on the length of `T::Hash` which is fixed.
4494
- * - DbReads: `Tips`, `origin account`
4495
- * - DbWrites: `Reasons`, `Tips`, `origin account`
4496
- * # </weight>
4497
4221
  **/
4498
4222
  retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
4499
4223
  /**
@@ -4505,10 +4229,8 @@ declare module '@polkadot/api-base/types/submittable' {
4505
4229
  *
4506
4230
  * Emits `TipSlashed` if successful.
4507
4231
  *
4508
- * # <weight>
4509
- * `T` is charged as upper bound given by `ContainsLengthBound`.
4510
- * The actual cost depends on the implementation of `T::Tippers`.
4511
- * # </weight>
4232
+ * ## Complexity
4233
+ * - O(1).
4512
4234
  **/
4513
4235
  slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
4514
4236
  /**
@@ -4526,16 +4248,13 @@ declare module '@polkadot/api-base/types/submittable' {
4526
4248
  * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
4527
4249
  * has started.
4528
4250
  *
4529
- * # <weight>
4530
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
4531
- * `T`, insert tip and check closing, `T` is charged as upper bound given by
4532
- * `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`.
4533
4255
  *
4534
4256
  * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
4535
4257
  * is weighted as if almost full i.e of length `T-1`.
4536
- * - DbReads: `Tippers`, `Tips`
4537
- * - DbWrites: `Tips`
4538
- * # </weight>
4539
4258
  **/
4540
4259
  tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
4541
4260
  /**
@@ -4552,15 +4271,12 @@ declare module '@polkadot/api-base/types/submittable' {
4552
4271
  *
4553
4272
  * Emits `NewTip` if successful.
4554
4273
  *
4555
- * # <weight>
4556
- * - 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.
4557
4276
  * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
4558
4277
  * `ContainsLengthBound`. The actual cost depends on the implementation of
4559
4278
  * `T::Tippers`.
4560
4279
  * - `O(R)`: hashing and encoding of reason of length `R`
4561
- * - DbReads: `Tippers`, `Reasons`
4562
- * - DbWrites: `Reasons`, `Tips`
4563
- * # </weight>
4564
4280
  **/
4565
4281
  tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
4566
4282
  Id: any;
@@ -4585,11 +4301,8 @@ declare module '@polkadot/api-base/types/submittable' {
4585
4301
  *
4586
4302
  * May only be called from `T::ApproveOrigin`.
4587
4303
  *
4588
- * # <weight>
4589
- * - Complexity: O(1).
4590
- * - DbReads: `Proposals`, `Approvals`
4591
- * - DbWrite: `Approvals`
4592
- * # </weight>
4304
+ * ## Complexity
4305
+ * - O(1).
4593
4306
  **/
4594
4307
  approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4595
4308
  /**
@@ -4597,11 +4310,8 @@ declare module '@polkadot/api-base/types/submittable' {
4597
4310
  * is reserved and slashed if the proposal is rejected. It is returned once the
4598
4311
  * proposal is awarded.
4599
4312
  *
4600
- * # <weight>
4601
- * - Complexity: O(1)
4602
- * - DbReads: `ProposalCount`, `origin account`
4603
- * - DbWrites: `ProposalCount`, `Proposals`, `origin account`
4604
- * # </weight>
4313
+ * ## Complexity
4314
+ * - O(1)
4605
4315
  **/
4606
4316
  proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
4607
4317
  Id: any;
@@ -4619,11 +4329,8 @@ declare module '@polkadot/api-base/types/submittable' {
4619
4329
  *
4620
4330
  * May only be called from `T::RejectOrigin`.
4621
4331
  *
4622
- * # <weight>
4623
- * - Complexity: O(1)
4624
- * - DbReads: `Proposals`, `rejected proposer account`
4625
- * - DbWrites: `Proposals`, `rejected proposer account`
4626
- * # </weight>
4332
+ * ## Complexity
4333
+ * - O(1)
4627
4334
  **/
4628
4335
  rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4629
4336
  /**
@@ -4633,10 +4340,8 @@ declare module '@polkadot/api-base/types/submittable' {
4633
4340
  * May only be called from `T::RejectOrigin`.
4634
4341
  * - `proposal_id`: The index of a proposal
4635
4342
  *
4636
- * # <weight>
4637
- * - Complexity: O(A) where `A` is the number of approvals
4638
- * - Db reads and writes: `Approvals`
4639
- * # </weight>
4343
+ * ## Complexity
4344
+ * - O(A) where `A` is the number of approvals
4640
4345
  *
4641
4346
  * Errors:
4642
4347
  * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
@@ -4722,9 +4427,8 @@ declare module '@polkadot/api-base/types/submittable' {
4722
4427
  * If origin is root then the calls are dispatched without checking origin filter. (This
4723
4428
  * includes bypassing `frame_system::Config::BaseCallFilter`).
4724
4429
  *
4725
- * # <weight>
4726
- * - Complexity: O(C) where C is the number of calls to be batched.
4727
- * # </weight>
4430
+ * ## Complexity
4431
+ * - O(C) where C is the number of calls to be batched.
4728
4432
  *
4729
4433
  * This will return `Ok` in all circumstances. To determine the success of the batch, an
4730
4434
  * event is deposited. If a call failed and the batch was interrupted, then the
@@ -4745,9 +4449,8 @@ declare module '@polkadot/api-base/types/submittable' {
4745
4449
  * If origin is root then the calls are dispatched without checking origin filter. (This
4746
4450
  * includes bypassing `frame_system::Config::BaseCallFilter`).
4747
4451
  *
4748
- * # <weight>
4749
- * - Complexity: O(C) where C is the number of calls to be batched.
4750
- * # </weight>
4452
+ * ## Complexity
4453
+ * - O(C) where C is the number of calls to be batched.
4751
4454
  **/
4752
4455
  batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4753
4456
  /**
@@ -4755,12 +4458,8 @@ declare module '@polkadot/api-base/types/submittable' {
4755
4458
  *
4756
4459
  * The dispatch origin for this call must be _Root_.
4757
4460
  *
4758
- * # <weight>
4461
+ * ## Complexity
4759
4462
  * - O(1).
4760
- * - Limited storage reads.
4761
- * - One DB write (event).
4762
- * - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
4763
- * # </weight>
4764
4463
  **/
4765
4464
  dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | {
4766
4465
  system: any;
@@ -4787,9 +4486,8 @@ declare module '@polkadot/api-base/types/submittable' {
4787
4486
  * If origin is root then the calls are dispatch without checking origin filter. (This
4788
4487
  * includes bypassing `frame_system::Config::BaseCallFilter`).
4789
4488
  *
4790
- * # <weight>
4791
- * - Complexity: O(C) where C is the number of calls to be batched.
4792
- * # </weight>
4489
+ * ## Complexity
4490
+ * - O(C) where C is the number of calls to be batched.
4793
4491
  **/
4794
4492
  forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4795
4493
  /**
@@ -4823,12 +4521,8 @@ declare module '@polkadot/api-base/types/submittable' {
4823
4521
  *
4824
4522
  * NOTE: This will unlock all schedules through the current block.
4825
4523
  *
4826
- * # <weight>
4524
+ * ## Complexity
4827
4525
  * - `O(1)`.
4828
- * - DbWeight: 4 Reads, 4 Writes
4829
- * - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
4830
- * - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
4831
- * # </weight>
4832
4526
  **/
4833
4527
  forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
4834
4528
  Id: any;
@@ -4887,12 +4581,8 @@ declare module '@polkadot/api-base/types/submittable' {
4887
4581
  *
4888
4582
  * Emits either `VestingCompleted` or `VestingUpdated`.
4889
4583
  *
4890
- * # <weight>
4584
+ * ## Complexity
4891
4585
  * - `O(1)`.
4892
- * - DbWeight: 2 Reads, 2 Writes
4893
- * - Reads: Vesting Storage, Balances Locks, [Sender Account]
4894
- * - Writes: Vesting Storage, Balances Locks, [Sender Account]
4895
- * # </weight>
4896
4586
  **/
4897
4587
  vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4898
4588
  /**
@@ -4907,12 +4597,8 @@ declare module '@polkadot/api-base/types/submittable' {
4907
4597
  *
4908
4598
  * NOTE: This will unlock all schedules through the current block.
4909
4599
  *
4910
- * # <weight>
4600
+ * ## Complexity
4911
4601
  * - `O(1)`.
4912
- * - DbWeight: 3 Reads, 3 Writes
4913
- * - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
4914
- * - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
4915
- * # </weight>
4916
4602
  **/
4917
4603
  vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
4918
4604
  Id: any;
@@ -4939,12 +4625,8 @@ declare module '@polkadot/api-base/types/submittable' {
4939
4625
  *
4940
4626
  * Emits either `VestingCompleted` or `VestingUpdated`.
4941
4627
  *
4942
- * # <weight>
4628
+ * ## Complexity
4943
4629
  * - `O(1)`.
4944
- * - DbWeight: 3 Reads, 3 Writes
4945
- * - Reads: Vesting Storage, Balances Locks, Target Account
4946
- * - Writes: Vesting Storage, Balances Locks, Target Account
4947
- * # </weight>
4948
4630
  **/
4949
4631
  vestOther: AugmentedSubmittable<(target: MultiAddress | {
4950
4632
  Id: any;