@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/kusama/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, Perquintill } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, 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
  /**
@@ -1086,20 +1057,12 @@ declare module '@polkadot/api-base/types/submittable' {
1086
1057
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
1087
1058
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
1088
1059
  *
1089
- * # <weight>
1090
- * ## Weight
1060
+ * ## Complexity
1091
1061
  * - `O(B + M + P1 + P2)` where:
1092
1062
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1093
1063
  * - `M` is members-count (code- and governance-bounded)
1094
1064
  * - `P1` is the complexity of `proposal` preimage.
1095
1065
  * - `P2` is proposal-count (code-bounded)
1096
- * - DB:
1097
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
1098
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
1099
- * `O(P2)`)
1100
- * - any mutations done while executing `proposal` (`P1`)
1101
- * - up to 3 events
1102
- * # </weight>
1103
1066
  **/
1104
1067
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
1105
1068
  refTime?: any;
@@ -1124,20 +1087,12 @@ declare module '@polkadot/api-base/types/submittable' {
1124
1087
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
1125
1088
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
1126
1089
  *
1127
- * # <weight>
1128
- * ## Weight
1090
+ * ## Complexity
1129
1091
  * - `O(B + M + P1 + P2)` where:
1130
1092
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1131
1093
  * - `M` is members-count (code- and governance-bounded)
1132
1094
  * - `P1` is the complexity of `proposal` preimage.
1133
1095
  * - `P2` is proposal-count (code-bounded)
1134
- * - DB:
1135
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
1136
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
1137
- * `O(P2)`)
1138
- * - any mutations done while executing `proposal` (`P1`)
1139
- * - up to 3 events
1140
- * # </weight>
1141
1096
  **/
1142
1097
  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>]>;
1143
1098
  /**
@@ -1149,12 +1104,8 @@ declare module '@polkadot/api-base/types/submittable' {
1149
1104
  * Parameters:
1150
1105
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
1151
1106
  *
1152
- * # <weight>
1153
- * Complexity: O(P) where P is the number of max proposals
1154
- * DB Weight:
1155
- * * Reads: Proposals
1156
- * * Writes: Voting, Proposals, ProposalOf
1157
- * # </weight>
1107
+ * ## Complexity
1108
+ * O(P) where P is the number of max proposals
1158
1109
  **/
1159
1110
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1160
1111
  /**
@@ -1162,13 +1113,11 @@ declare module '@polkadot/api-base/types/submittable' {
1162
1113
  *
1163
1114
  * Origin must be a member of the collective.
1164
1115
  *
1165
- * # <weight>
1166
- * ## Weight
1167
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
1168
- * `proposal`
1169
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
1170
- * - 1 event
1171
- * # </weight>
1116
+ * ## Complexity:
1117
+ * - `O(B + M + P)` where:
1118
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
1119
+ * - `M` members-count (code-bounded)
1120
+ * - `P` complexity of dispatching `proposal`
1172
1121
  **/
1173
1122
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
1174
1123
  /**
@@ -1179,26 +1128,13 @@ declare module '@polkadot/api-base/types/submittable' {
1179
1128
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
1180
1129
  * or put up for voting.
1181
1130
  *
1182
- * # <weight>
1183
- * ## Weight
1131
+ * ## Complexity
1184
1132
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
1185
1133
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1186
1134
  * - `M` is members-count (code- and governance-bounded)
1187
1135
  * - branching is influenced by `threshold` where:
1188
1136
  * - `P1` is proposal execution complexity (`threshold < 2`)
1189
1137
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
1190
- * - DB:
1191
- * - 1 storage read `is_member` (codec `O(M)`)
1192
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
1193
- * - DB accesses influenced by `threshold`:
1194
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
1195
- * - OR proposal insertion (`threshold <= 2`)
1196
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
1197
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
1198
- * - 1 storage write `ProposalOf` (codec `O(B)`)
1199
- * - 1 storage write `Voting` (codec `O(M)`)
1200
- * - 1 event
1201
- * # </weight>
1202
1138
  **/
1203
1139
  propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1204
1140
  /**
@@ -1209,7 +1145,7 @@ declare module '@polkadot/api-base/types/submittable' {
1209
1145
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
1210
1146
  * weight estimation.
1211
1147
  *
1212
- * Requires root origin.
1148
+ * The dispatch of this call must be `SetMembersOrigin`.
1213
1149
  *
1214
1150
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
1215
1151
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -1221,19 +1157,11 @@ declare module '@polkadot/api-base/types/submittable' {
1221
1157
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
1222
1158
  * with other logic managing the member set.
1223
1159
  *
1224
- * # <weight>
1225
- * ## Weight
1160
+ * ## Complexity:
1226
1161
  * - `O(MP + N)` where:
1227
1162
  * - `M` old-members-count (code- and governance-bounded)
1228
1163
  * - `N` new-members-count (code- and governance-bounded)
1229
1164
  * - `P` proposals-count (code-bounded)
1230
- * - DB:
1231
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
1232
- * members
1233
- * - 1 storage read (codec `O(P)`) for reading the proposals
1234
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
1235
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
1236
- * # </weight>
1237
1165
  **/
1238
1166
  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]>;
1239
1167
  /**
@@ -1244,14 +1172,8 @@ declare module '@polkadot/api-base/types/submittable' {
1244
1172
  * Transaction fees will be waived if the member is voting on any particular proposal
1245
1173
  * for the first time and the call is successful. Subsequent vote changes will charge a
1246
1174
  * fee.
1247
- * # <weight>
1248
- * ## Weight
1175
+ * ## Complexity
1249
1176
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
1250
- * - DB:
1251
- * - 1 storage read `Members` (codec `O(M)`)
1252
- * - 1 storage mutation `Voting` (codec `O(M)`)
1253
- * - 1 event
1254
- * # </weight>
1255
1177
  **/
1256
1178
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
1257
1179
  /**
@@ -1606,6 +1528,30 @@ declare module '@polkadot/api-base/types/submittable' {
1606
1528
  * - `proposal`: The index of the proposal to second.
1607
1529
  **/
1608
1530
  second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1531
+ /**
1532
+ * Set or clear a metadata of a proposal or a referendum.
1533
+ *
1534
+ * Parameters:
1535
+ * - `origin`: Must correspond to the `MetadataOwner`.
1536
+ * - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
1537
+ * threshold.
1538
+ * - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
1539
+ * threshold.
1540
+ * - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
1541
+ * threshold.
1542
+ * - `Signed` by a creator for a public proposal.
1543
+ * - `Signed` to clear a metadata for a finished referendum.
1544
+ * - `Root` to set a metadata for an ongoing referendum.
1545
+ * - `owner`: an identifier of a metadata owner.
1546
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
1547
+ **/
1548
+ setMetadata: AugmentedSubmittable<(owner: PalletDemocracyMetadataOwner | {
1549
+ External: any;
1550
+ } | {
1551
+ Proposal: any;
1552
+ } | {
1553
+ Referendum: any;
1554
+ } | string | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [PalletDemocracyMetadataOwner, Option<H256>]>;
1609
1555
  /**
1610
1556
  * Undelegate the voting power of the sending account.
1611
1557
  *
@@ -1981,6 +1927,16 @@ declare module '@polkadot/api-base/types/submittable' {
1981
1927
  * Emits `SubmissionDepositRefunded`.
1982
1928
  **/
1983
1929
  refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1930
+ /**
1931
+ * Set or clear metadata of a referendum.
1932
+ *
1933
+ * Parameters:
1934
+ * - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
1935
+ * metadata of a finished referendum.
1936
+ * - `index`: The index of a referendum to set or clear metadata for.
1937
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
1938
+ **/
1939
+ setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
1984
1940
  /**
1985
1941
  * Propose a referendum on a privileged action.
1986
1942
  *
@@ -2172,11 +2128,8 @@ declare module '@polkadot/api-base/types/submittable' {
2172
2128
  *
2173
2129
  * Emits `RegistrarAdded` if successful.
2174
2130
  *
2175
- * # <weight>
2131
+ * ## Complexity
2176
2132
  * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
2177
- * - One storage mutation (codec `O(R)`).
2178
- * - One event.
2179
- * # </weight>
2180
2133
  **/
2181
2134
  addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
2182
2135
  Id: any;
@@ -2233,12 +2186,10 @@ declare module '@polkadot/api-base/types/submittable' {
2233
2186
  *
2234
2187
  * Emits `JudgementUnrequested` if successful.
2235
2188
  *
2236
- * # <weight>
2189
+ * ## Complexity
2237
2190
  * - `O(R + X)`.
2238
- * - One balance-reserve operation.
2239
- * - One storage mutation `O(R + X)`.
2240
- * - One event
2241
- * # </weight>
2191
+ * - where `R` registrar-count (governance-bounded).
2192
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2242
2193
  **/
2243
2194
  cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2244
2195
  /**
@@ -2251,15 +2202,11 @@ declare module '@polkadot/api-base/types/submittable' {
2251
2202
  *
2252
2203
  * Emits `IdentityCleared` if successful.
2253
2204
  *
2254
- * # <weight>
2205
+ * ## Complexity
2255
2206
  * - `O(R + S + X)`
2256
2207
  * - where `R` registrar-count (governance-bounded).
2257
2208
  * - where `S` subs-count (hard- and deposit-bounded).
2258
2209
  * - where `X` additional-field-count (deposit-bounded and code-bounded).
2259
- * - One balance-unreserve operation.
2260
- * - `2` storage reads and `S + 2` storage deletions.
2261
- * - One event.
2262
- * # </weight>
2263
2210
  **/
2264
2211
  clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2265
2212
  /**
@@ -2276,12 +2223,11 @@ declare module '@polkadot/api-base/types/submittable' {
2276
2223
  *
2277
2224
  * Emits `IdentityKilled` if successful.
2278
2225
  *
2279
- * # <weight>
2280
- * - `O(R + S + X)`.
2281
- * - One balance-reserve operation.
2282
- * - `S + 2` storage mutations.
2283
- * - One event.
2284
- * # </weight>
2226
+ * ## Complexity
2227
+ * - `O(R + S + X)`
2228
+ * - where `R` registrar-count (governance-bounded).
2229
+ * - where `S` subs-count (hard- and deposit-bounded).
2230
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2285
2231
  **/
2286
2232
  killIdentity: AugmentedSubmittable<(target: MultiAddress | {
2287
2233
  Id: any;
@@ -2308,13 +2254,10 @@ declare module '@polkadot/api-base/types/submittable' {
2308
2254
  *
2309
2255
  * Emits `JudgementGiven` if successful.
2310
2256
  *
2311
- * # <weight>
2257
+ * ## Complexity
2312
2258
  * - `O(R + X)`.
2313
- * - One balance-transfer operation.
2314
- * - Up to one account-lookup operation.
2315
- * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
2316
- * - One event.
2317
- * # </weight>
2259
+ * - where `R` registrar-count (governance-bounded).
2260
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2318
2261
  **/
2319
2262
  provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
2320
2263
  Id: any;
@@ -2421,12 +2364,10 @@ declare module '@polkadot/api-base/types/submittable' {
2421
2364
  *
2422
2365
  * Emits `JudgementRequested` if successful.
2423
2366
  *
2424
- * # <weight>
2367
+ * ## Complexity
2425
2368
  * - `O(R + X)`.
2426
- * - One balance-reserve operation.
2427
- * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.
2428
- * - One event.
2429
- * # </weight>
2369
+ * - where `R` registrar-count (governance-bounded).
2370
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2430
2371
  **/
2431
2372
  requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
2432
2373
  /**
@@ -2438,11 +2379,9 @@ declare module '@polkadot/api-base/types/submittable' {
2438
2379
  * - `index`: the index of the registrar whose fee is to be set.
2439
2380
  * - `new`: the new account ID.
2440
2381
  *
2441
- * # <weight>
2382
+ * ## Complexity
2442
2383
  * - `O(R)`.
2443
- * - One storage mutation `O(R)`.
2444
- * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
2445
- * # </weight>
2384
+ * - where `R` registrar-count (governance-bounded).
2446
2385
  **/
2447
2386
  setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
2448
2387
  Id: any;
@@ -2464,11 +2403,9 @@ declare module '@polkadot/api-base/types/submittable' {
2464
2403
  * - `index`: the index of the registrar whose fee is to be set.
2465
2404
  * - `fee`: the new fee.
2466
2405
  *
2467
- * # <weight>
2406
+ * ## Complexity
2468
2407
  * - `O(R)`.
2469
- * - One storage mutation `O(R)`.
2470
- * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
2471
- * # </weight>
2408
+ * - where `R` registrar-count (governance-bounded).
2472
2409
  **/
2473
2410
  setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
2474
2411
  /**
@@ -2480,11 +2417,9 @@ declare module '@polkadot/api-base/types/submittable' {
2480
2417
  * - `index`: the index of the registrar whose fee is to be set.
2481
2418
  * - `fields`: the fields that the registrar concerns themselves with.
2482
2419
  *
2483
- * # <weight>
2420
+ * ## Complexity
2484
2421
  * - `O(R)`.
2485
- * - One storage mutation `O(R)`.
2486
- * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
2487
- * # </weight>
2422
+ * - where `R` registrar-count (governance-bounded).
2488
2423
  **/
2489
2424
  setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
2490
2425
  /**
@@ -2499,14 +2434,10 @@ declare module '@polkadot/api-base/types/submittable' {
2499
2434
  *
2500
2435
  * Emits `IdentitySet` if successful.
2501
2436
  *
2502
- * # <weight>
2437
+ * ## Complexity
2503
2438
  * - `O(X + X' + R)`
2504
2439
  * - where `X` additional-field-count (deposit-bounded and code-bounded)
2505
2440
  * - where `R` judgements-count (registrar-count-bounded)
2506
- * - One balance reserve operation.
2507
- * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
2508
- * - One event.
2509
- * # </weight>
2510
2441
  **/
2511
2442
  setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
2512
2443
  additional?: any;
@@ -2530,17 +2461,10 @@ declare module '@polkadot/api-base/types/submittable' {
2530
2461
  *
2531
2462
  * - `subs`: The identity's (new) sub-accounts.
2532
2463
  *
2533
- * # <weight>
2464
+ * ## Complexity
2534
2465
  * - `O(P + S)`
2535
2466
  * - where `P` old-subs-count (hard- and deposit-bounded).
2536
2467
  * - where `S` subs-count (hard- and deposit-bounded).
2537
- * - At most one balance operations.
2538
- * - DB:
2539
- * - `P + S` storage mutations (codec complexity `O(1)`)
2540
- * - One storage read (codec complexity `O(P)`).
2541
- * - One storage write (codec complexity `O(S)`).
2542
- * - One storage-exists (`IdentityOf::contains_key`).
2543
- * # </weight>
2544
2468
  **/
2545
2469
  setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
2546
2470
  None: any;
@@ -2562,15 +2486,11 @@ declare module '@polkadot/api-base/types/submittable' {
2562
2486
  };
2563
2487
  imOnline: {
2564
2488
  /**
2565
- * # <weight>
2566
- * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is
2567
- * length of `heartbeat.network_state.external_address`
2489
+ * ## Complexity:
2490
+ * - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
2491
+ * `heartbeat.network_state.external_address`
2568
2492
  * - `O(K)`: decoding of length `K`
2569
2493
  * - `O(E)`: decoding/encoding of length `E`
2570
- * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
2571
- * `ReceivedHeartbeats`
2572
- * - DbWrites: `ReceivedHeartbeats`
2573
- * # </weight>
2574
2494
  **/
2575
2495
  heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
2576
2496
  blockNumber?: any;
@@ -2596,14 +2516,8 @@ declare module '@polkadot/api-base/types/submittable' {
2596
2516
  *
2597
2517
  * Emits `IndexAssigned` if successful.
2598
2518
  *
2599
- * # <weight>
2519
+ * ## Complexity
2600
2520
  * - `O(1)`.
2601
- * - One storage mutation (codec `O(1)`).
2602
- * - One reserve operation.
2603
- * - One event.
2604
- * -------------------
2605
- * - DB Weight: 1 Read/Write (Accounts)
2606
- * # </weight>
2607
2521
  **/
2608
2522
  claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2609
2523
  /**
@@ -2618,16 +2532,8 @@ declare module '@polkadot/api-base/types/submittable' {
2618
2532
  *
2619
2533
  * Emits `IndexAssigned` if successful.
2620
2534
  *
2621
- * # <weight>
2535
+ * ## Complexity
2622
2536
  * - `O(1)`.
2623
- * - One storage mutation (codec `O(1)`).
2624
- * - Up to one reserve operation.
2625
- * - One event.
2626
- * -------------------
2627
- * - DB Weight:
2628
- * - Reads: Indices Accounts, System Account (original owner)
2629
- * - Writes: Indices Accounts, System Account (original owner)
2630
- * # </weight>
2631
2537
  **/
2632
2538
  forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
2633
2539
  Id: any;
@@ -2651,14 +2557,8 @@ declare module '@polkadot/api-base/types/submittable' {
2651
2557
  *
2652
2558
  * Emits `IndexFreed` if successful.
2653
2559
  *
2654
- * # <weight>
2560
+ * ## Complexity
2655
2561
  * - `O(1)`.
2656
- * - One storage mutation (codec `O(1)`).
2657
- * - One reserve operation.
2658
- * - One event.
2659
- * -------------------
2660
- * - DB Weight: 1 Read/Write (Accounts)
2661
- * # </weight>
2662
2562
  **/
2663
2563
  free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2664
2564
  /**
@@ -2672,14 +2572,8 @@ declare module '@polkadot/api-base/types/submittable' {
2672
2572
  *
2673
2573
  * Emits `IndexFrozen` if successful.
2674
2574
  *
2675
- * # <weight>
2575
+ * ## Complexity
2676
2576
  * - `O(1)`.
2677
- * - One storage mutation (codec `O(1)`).
2678
- * - Up to one slash operation.
2679
- * - One event.
2680
- * -------------------
2681
- * - DB Weight: 1 Read/Write (Accounts)
2682
- * # </weight>
2683
2577
  **/
2684
2578
  freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2685
2579
  /**
@@ -2693,16 +2587,8 @@ declare module '@polkadot/api-base/types/submittable' {
2693
2587
  *
2694
2588
  * Emits `IndexAssigned` if successful.
2695
2589
  *
2696
- * # <weight>
2590
+ * ## Complexity
2697
2591
  * - `O(1)`.
2698
- * - One storage mutation (codec `O(1)`).
2699
- * - One transfer operation.
2700
- * - One event.
2701
- * -------------------
2702
- * - DB Weight:
2703
- * - Reads: Indices Accounts, System Account (recipient)
2704
- * - Writes: Indices Accounts, System Account (recipient)
2705
- * # </weight>
2706
2592
  **/
2707
2593
  transfer: AugmentedSubmittable<(updated: MultiAddress | {
2708
2594
  Id: any;
@@ -2753,7 +2639,7 @@ declare module '@polkadot/api-base/types/submittable' {
2753
2639
  *
2754
2640
  * NOTE: If this is the final approval, you will want to use `as_multi` instead.
2755
2641
  *
2756
- * # <weight>
2642
+ * ## Complexity
2757
2643
  * - `O(S)`.
2758
2644
  * - Up to one balance-reserve or unreserve operation.
2759
2645
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2764,11 +2650,6 @@ declare module '@polkadot/api-base/types/submittable' {
2764
2650
  * - One event.
2765
2651
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2766
2652
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2767
- * ----------------------------------
2768
- * - DB Weight:
2769
- * - Read: Multisig Storage, [Caller Account]
2770
- * - Write: Multisig Storage, [Caller Account]
2771
- * # </weight>
2772
2653
  **/
2773
2654
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2774
2655
  height?: any;
@@ -2804,7 +2685,7 @@ declare module '@polkadot/api-base/types/submittable' {
2804
2685
  * on success, result is `Ok` and the result from the interior call, if it was executed,
2805
2686
  * may be found in the deposited `MultisigExecuted` event.
2806
2687
  *
2807
- * # <weight>
2688
+ * ## Complexity
2808
2689
  * - `O(S + Z + Call)`.
2809
2690
  * - Up to one balance-reserve or unreserve operation.
2810
2691
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2817,12 +2698,6 @@ declare module '@polkadot/api-base/types/submittable' {
2817
2698
  * - The weight of the `call`.
2818
2699
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2819
2700
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2820
- * -------------------------------
2821
- * - DB Weight:
2822
- * - Reads: Multisig Storage, [Caller Account]
2823
- * - Writes: Multisig Storage, [Caller Account]
2824
- * - Plus Call Weight
2825
- * # </weight>
2826
2701
  **/
2827
2702
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2828
2703
  height?: any;
@@ -2842,12 +2717,8 @@ declare module '@polkadot/api-base/types/submittable' {
2842
2717
  *
2843
2718
  * Result is equivalent to the dispatched result.
2844
2719
  *
2845
- * # <weight>
2720
+ * ## Complexity
2846
2721
  * O(Z + C) where Z is the length of the call and C its execution weight.
2847
- * -------------------------------
2848
- * - DB Weight: None
2849
- * - Plus Call Weight
2850
- * # </weight>
2851
2722
  **/
2852
2723
  asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2853
2724
  /**
@@ -2863,7 +2734,7 @@ declare module '@polkadot/api-base/types/submittable' {
2863
2734
  * transaction for this dispatch.
2864
2735
  * - `call_hash`: The hash of the call to be executed.
2865
2736
  *
2866
- * # <weight>
2737
+ * ## Complexity
2867
2738
  * - `O(S)`.
2868
2739
  * - Up to one balance-reserve or unreserve operation.
2869
2740
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2872,11 +2743,6 @@ declare module '@polkadot/api-base/types/submittable' {
2872
2743
  * - One event.
2873
2744
  * - I/O: 1 read `O(S)`, one remove.
2874
2745
  * - Storage: removes one item.
2875
- * ----------------------------------
2876
- * - DB Weight:
2877
- * - Read: Multisig Storage, [Caller Account], Refund Account
2878
- * - Write: Multisig Storage, [Caller Account], Refund Account
2879
- * # </weight>
2880
2746
  **/
2881
2747
  cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
2882
2748
  height?: any;
@@ -2955,10 +2821,9 @@ declare module '@polkadot/api-base/types/submittable' {
2955
2821
  /**
2956
2822
  * Exactly as `transfer`, except the origin must be root and the source account may be
2957
2823
  * specified.
2958
- * # <weight>
2824
+ * ## Complexity
2959
2825
  * - Same as transfer, but additional read and write because the source account is not
2960
2826
  * assumed to be in the overlay.
2961
- * # </weight>
2962
2827
  **/
2963
2828
  forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
2964
2829
  Id: any;
@@ -3027,7 +2892,7 @@ declare module '@polkadot/api-base/types/submittable' {
3027
2892
  *
3028
2893
  * The dispatch origin for this call must be `Signed` by the transactor.
3029
2894
  *
3030
- * # <weight>
2895
+ * ## Complexity
3031
2896
  * - Dependent on arguments but not critical, given proper implementations for input config
3032
2897
  * types. See related functions below.
3033
2898
  * - It contains a limited number of reads and writes internally and no complex
@@ -3041,9 +2906,6 @@ declare module '@polkadot/api-base/types/submittable' {
3041
2906
  * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
3042
2907
  * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
3043
2908
  * that the transfer will not kill the origin account.
3044
- * ---------------------------------
3045
- * - Origin account is already in memory, so no DB operations for them.
3046
- * # </weight>
3047
2909
  **/
3048
2910
  transfer: AugmentedSubmittable<(dest: MultiAddress | {
3049
2911
  Id: any;
@@ -3071,9 +2933,8 @@ declare module '@polkadot/api-base/types/submittable' {
3071
2933
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
3072
2934
  * of the funds the account has, causing the sender account to be killed (false), or
3073
2935
  * transfer everything except at least the existential deposit, which will guarantee to
3074
- * keep the sender account alive (true). # <weight>
2936
+ * keep the sender account alive (true). ## Complexity
3075
2937
  * - O(1). Just like transfer, but reading the user's transferable balance first.
3076
- * #</weight>
3077
2938
  **/
3078
2939
  transferAll: AugmentedSubmittable<(dest: MultiAddress | {
3079
2940
  Id: any;
@@ -3541,9 +3402,8 @@ declare module '@polkadot/api-base/types/submittable' {
3541
3402
  *
3542
3403
  * The dispatch origin of this call must be root.
3543
3404
  *
3544
- * # <weight>
3545
- * The total number of voters and those that are defunct must be provided as witness data.
3546
- * # </weight>
3405
+ * ## Complexity
3406
+ * - Check is_defunct_voter() details.
3547
3407
  **/
3548
3408
  cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
3549
3409
  /**
@@ -3561,10 +3421,8 @@ declare module '@polkadot/api-base/types/submittable' {
3561
3421
  *
3562
3422
  * Note that this does not affect the designated block number of the next election.
3563
3423
  *
3564
- * # <weight>
3565
- * If we have a replacement, we use a small weight. Else, since this is a root call and
3566
- * will go into phragmen, we assume full block for now.
3567
- * # </weight>
3424
+ * ## Complexity
3425
+ * - Check details of remove_and_replace_member() and do_phragmen().
3568
3426
  **/
3569
3427
  removeMember: AugmentedSubmittable<(who: MultiAddress | {
3570
3428
  Id: any;
@@ -3600,10 +3458,12 @@ declare module '@polkadot/api-base/types/submittable' {
3600
3458
  * next round.
3601
3459
  *
3602
3460
  * The dispatch origin of this call must be signed, and have one of the above roles.
3603
- *
3604
- * # <weight>
3605
3461
  * The type of renouncing must be provided as witness data.
3606
- * # </weight>
3462
+ *
3463
+ * ## Complexity
3464
+ * - Renouncing::Candidate(count): O(count + log(count))
3465
+ * - Renouncing::Member: O(1)
3466
+ * - Renouncing::RunnerUp: O(1)
3607
3467
  **/
3608
3468
  renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
3609
3469
  Member: any;
@@ -3625,9 +3485,9 @@ declare module '@polkadot/api-base/types/submittable' {
3625
3485
  * Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
3626
3486
  * to get their deposit back. Losing the spot in an election will always lead to a slash.
3627
3487
  *
3628
- * # <weight>
3629
3488
  * The number of current candidates must be provided as witness data.
3630
- * # </weight>
3489
+ * ## Complexity
3490
+ * O(C + log(C)) where C is candidate_count.
3631
3491
  **/
3632
3492
  submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3633
3493
  /**
@@ -3650,10 +3510,6 @@ declare module '@polkadot/api-base/types/submittable' {
3650
3510
  *
3651
3511
  * It is the responsibility of the caller to **NOT** place all of their balance into the
3652
3512
  * lock and keep some for further operations.
3653
- *
3654
- * # <weight>
3655
- * We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less.
3656
- * # </weight>
3657
3513
  **/
3658
3514
  vote: AugmentedSubmittable<(votes: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Compact<u128>]>;
3659
3515
  /**
@@ -3801,8 +3657,6 @@ declare module '@polkadot/api-base/types/submittable' {
3801
3657
  * Dispatch the given `call` from an account that the sender is authorised for through
3802
3658
  * `add_proxy`.
3803
3659
  *
3804
- * Removes any corresponding announcement(s).
3805
- *
3806
3660
  * The dispatch origin for this call must be _Signed_.
3807
3661
  *
3808
3662
  * Parameters:
@@ -4220,6 +4074,16 @@ declare module '@polkadot/api-base/types/submittable' {
4220
4074
  * Emits `SubmissionDepositRefunded`.
4221
4075
  **/
4222
4076
  refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4077
+ /**
4078
+ * Set or clear metadata of a referendum.
4079
+ *
4080
+ * Parameters:
4081
+ * - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
4082
+ * metadata of a finished referendum.
4083
+ * - `index`: The index of a referendum to set or clear metadata for.
4084
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
4085
+ **/
4086
+ setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
4223
4087
  /**
4224
4088
  * Propose a referendum on a privileged action.
4225
4089
  *
@@ -4371,10 +4235,6 @@ declare module '@polkadot/api-base/types/submittable' {
4371
4235
  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]>;
4372
4236
  /**
4373
4237
  * Anonymously schedule a task after a delay.
4374
- *
4375
- * # <weight>
4376
- * Same as [`schedule`].
4377
- * # </weight>
4378
4238
  **/
4379
4239
  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]>;
4380
4240
  /**
@@ -4383,10 +4243,6 @@ declare module '@polkadot/api-base/types/submittable' {
4383
4243
  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]>;
4384
4244
  /**
4385
4245
  * Schedule a named task after a delay.
4386
- *
4387
- * # <weight>
4388
- * Same as [`schedule_named`](Self::schedule_named).
4389
- * # </weight>
4390
4246
  **/
4391
4247
  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]>;
4392
4248
  /**
@@ -4405,13 +4261,9 @@ declare module '@polkadot/api-base/types/submittable' {
4405
4261
  * means being a controller account) or directly convertible into a validator ID (which
4406
4262
  * usually means being a stash account).
4407
4263
  *
4408
- * # <weight>
4409
- * - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
4410
- * of `T::Keys::key_ids()` which is fixed.
4411
- * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
4412
- * - DbWrites: `NextKeys`, `origin account`
4413
- * - DbWrites per key id: `KeyOwner`
4414
- * # </weight>
4264
+ * ## Complexity
4265
+ * - `O(1)` in number of key types. Actual cost depends on the number of length of
4266
+ * `T::Keys::key_ids()` which is fixed.
4415
4267
  **/
4416
4268
  purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4417
4269
  /**
@@ -4421,14 +4273,9 @@ declare module '@polkadot/api-base/types/submittable' {
4421
4273
  *
4422
4274
  * The dispatch origin of this function must be signed.
4423
4275
  *
4424
- * # <weight>
4425
- * - Complexity: `O(1)`. Actual cost depends on the number of length of
4426
- * `T::Keys::key_ids()` which is fixed.
4427
- * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
4428
- * - DbWrites: `origin account`, `NextKeys`
4429
- * - DbReads per key id: `KeyOwner`
4430
- * - DbWrites per key id: `KeyOwner`
4431
- * # </weight>
4276
+ * ## Complexity
4277
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
4278
+ * fixed.
4432
4279
  **/
4433
4280
  setKeys: AugmentedSubmittable<(keys: KusamaRuntimeSessionKeys | {
4434
4281
  grandpa?: any;
@@ -4484,30 +4331,12 @@ declare module '@polkadot/api-base/types/submittable' {
4484
4331
  * Parameters:
4485
4332
  * - `value`: A one time payment the bid would like to receive when joining the society.
4486
4333
  *
4487
- * # <weight>
4488
- * Key: B (len of bids), C (len of candidates), M (len of members), X (balance reserve)
4489
- * - Storage Reads:
4490
- * - One storage read to check for suspended candidate. O(1)
4491
- * - One storage read to check for suspended member. O(1)
4492
- * - One storage read to retrieve all current bids. O(B)
4493
- * - One storage read to retrieve all current candidates. O(C)
4494
- * - One storage read to retrieve all members. O(M)
4495
- * - Storage Writes:
4496
- * - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
4497
- * w/ read)
4498
- * - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
4499
- * - Notable Computation:
4500
- * - O(B + C + log M) search to check user is not already a part of society.
4501
- * - O(log B) search to insert the new bid sorted.
4502
- * - External Pallet Operations:
4503
- * - One balance reserve operation. O(X)
4504
- * - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
4505
- * - Events:
4506
- * - One event for new bid.
4507
- * - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
4508
- *
4509
- * Total Complexity: O(M + B + C + logM + logB + X)
4510
- * # </weight>
4334
+ * ## Complexity
4335
+ * - O(M + B + C + logM + logB + X)
4336
+ * - B (len of bids)
4337
+ * - C (len of candidates)
4338
+ * - M (len of members)
4339
+ * - X (balance reserve)
4511
4340
  **/
4512
4341
  bid: AugmentedSubmittable<(value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
4513
4342
  /**
@@ -4519,14 +4348,9 @@ declare module '@polkadot/api-base/types/submittable' {
4519
4348
  * - `approve`: A boolean which says if the candidate should be
4520
4349
  * approved (`true`) or rejected (`false`).
4521
4350
  *
4522
- * # <weight>
4523
- * - Key: M (len of members)
4524
- * - One storage read O(M) and O(log M) search to check user is a member.
4525
- * - One storage write to add vote to votes. O(1)
4526
- * - One event.
4527
- *
4528
- * Total Complexity: O(M + logM)
4529
- * # </weight>
4351
+ * ## Complexity
4352
+ * - O(M + logM)
4353
+ * - M (len of members)
4530
4354
  **/
4531
4355
  defenderVote: AugmentedSubmittable<(approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
4532
4356
  /**
@@ -4542,13 +4366,8 @@ declare module '@polkadot/api-base/types/submittable' {
4542
4366
  * - `max_members` - The initial max number of members for the society.
4543
4367
  * - `rules` - The rules of this society concerning membership.
4544
4368
  *
4545
- * # <weight>
4546
- * - Two storage mutates to set `Head` and `Founder`. O(1)
4547
- * - One storage write to add the first member to society. O(1)
4548
- * - One event.
4549
- *
4550
- * Total Complexity: O(1)
4551
- * # </weight>
4369
+ * ## Complexity
4370
+ * - O(1)
4552
4371
  **/
4553
4372
  found: AugmentedSubmittable<(founder: MultiAddress | {
4554
4373
  Id: any;
@@ -4579,29 +4398,11 @@ declare module '@polkadot/api-base/types/submittable' {
4579
4398
  * - `who` - The suspended candidate to be judged.
4580
4399
  * - `judgement` - `Approve`, `Reject`, or `Rebid`.
4581
4400
  *
4582
- * # <weight>
4583
- * Key: B (len of bids), M (len of members), X (balance action)
4584
- * - One storage read to check `who` is a suspended candidate.
4585
- * - One storage removal of the suspended candidate.
4586
- * - Approve Logic
4587
- * - One storage read to get the available pot to pay users with. O(1)
4588
- * - One storage write to update the available pot. O(1)
4589
- * - One storage read to get the current block number. O(1)
4590
- * - One storage read to get all members. O(M)
4591
- * - Up to one unreserve currency action.
4592
- * - Up to two new storage writes to payouts.
4593
- * - Up to one storage write with O(log M) binary search to add a member to society.
4594
- * - Reject Logic
4595
- * - Up to one repatriate reserved currency action. O(X)
4596
- * - Up to one storage write to ban the vouching member from vouching again.
4597
- * - Rebid Logic
4598
- * - Storage mutate with O(log B) binary search to place the user back into bids.
4599
- * - Up to one additional event if unvouch takes place.
4600
- * - One storage removal.
4601
- * - One event for the judgement.
4602
- *
4603
- * Total Complexity: O(M + logM + B + X)
4604
- * # </weight>
4401
+ * ## Complexity
4402
+ * - O(M + logM + B + X)
4403
+ * - B (len of bids)
4404
+ * - M (len of members)
4405
+ * - X (balance action)
4605
4406
  **/
4606
4407
  judgeSuspendedCandidate: AugmentedSubmittable<(who: MultiAddress | {
4607
4408
  Id: any;
@@ -4630,19 +4431,10 @@ declare module '@polkadot/api-base/types/submittable' {
4630
4431
  * - `forgive` - A boolean representing whether the suspension judgement origin forgives
4631
4432
  * (`true`) or rejects (`false`) a suspended member.
4632
4433
  *
4633
- * # <weight>
4634
- * Key: B (len of bids), M (len of members)
4635
- * - One storage read to check `who` is a suspended member. O(1)
4636
- * - Up to one storage write O(M) with O(log M) binary search to add a member back to
4637
- * society.
4638
- * - Up to 3 storage removals O(1) to clean up a removed member.
4639
- * - Up to one storage write O(B) with O(B) search to remove vouched bid from bids.
4640
- * - Up to one additional event if unvouch takes place.
4641
- * - One storage removal. O(1)
4642
- * - One event for the judgement.
4643
- *
4644
- * Total Complexity: O(M + logM + B)
4645
- * # </weight>
4434
+ * ## Complexity
4435
+ * - O(M + logM + B)
4436
+ * - B (len of bids)
4437
+ * - M (len of members)
4646
4438
  **/
4647
4439
  judgeSuspendedMember: AugmentedSubmittable<(who: MultiAddress | {
4648
4440
  Id: any;
@@ -4667,16 +4459,11 @@ declare module '@polkadot/api-base/types/submittable' {
4667
4459
  * The dispatch origin for this call must be _Signed_ and a member with
4668
4460
  * payouts remaining.
4669
4461
  *
4670
- * # <weight>
4671
- * Key: M (len of members), P (number of payouts for a particular member)
4672
- * - One storage read O(M) and O(log M) search to check signer is a member.
4673
- * - One storage read O(P) to get all payouts for a member.
4674
- * - One storage read O(1) to get the current block number.
4675
- * - One currency transfer call. O(X)
4676
- * - One storage write or removal to update the member's payouts. O(P)
4677
- *
4678
- * Total Complexity: O(M + logM + P + X)
4679
- * # </weight>
4462
+ * ## Complexity
4463
+ * - O(M + logM + P + X)
4464
+ * - M (len of members)
4465
+ * - P (number of payouts for a particular member)
4466
+ * - X (currency transfer call)
4680
4467
  **/
4681
4468
  payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4682
4469
  /**
@@ -4688,12 +4475,8 @@ declare module '@polkadot/api-base/types/submittable' {
4688
4475
  * Parameters:
4689
4476
  * - `max` - The maximum number of members for the society.
4690
4477
  *
4691
- * # <weight>
4692
- * - One storage write to update the max. O(1)
4693
- * - One event.
4694
- *
4695
- * Total Complexity: O(1)
4696
- * # </weight>
4478
+ * ## Complexity
4479
+ * - O(1)
4697
4480
  **/
4698
4481
  setMaxMembers: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4699
4482
  /**
@@ -4708,14 +4491,10 @@ declare module '@polkadot/api-base/types/submittable' {
4708
4491
  * Parameters:
4709
4492
  * - `pos`: Position in the `Bids` vector of the bid who wants to unbid.
4710
4493
  *
4711
- * # <weight>
4712
- * Key: B (len of bids), X (balance unreserve)
4713
- * - One storage read and write to retrieve and update the bids. O(B)
4714
- * - Either one unreserve balance action O(X) or one vouching storage removal. O(1)
4715
- * - One event.
4716
- *
4717
- * Total Complexity: O(B + X)
4718
- * # </weight>
4494
+ * ## Complexity
4495
+ * - O(B + X)
4496
+ * - B (len of bids)
4497
+ * - X (balance unreserve)
4719
4498
  **/
4720
4499
  unbid: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4721
4500
  /**
@@ -4725,13 +4504,8 @@ declare module '@polkadot/api-base/types/submittable' {
4725
4504
  * the `Founder` and the `Head`. This implies that it may only be done when there is one
4726
4505
  * member.
4727
4506
  *
4728
- * # <weight>
4729
- * - Two storage reads O(1).
4730
- * - Four storage removals O(1).
4731
- * - One event.
4732
- *
4733
- * Total Complexity: O(1)
4734
- * # </weight>
4507
+ * ## Complexity
4508
+ * - O(1)
4735
4509
  **/
4736
4510
  unfound: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4737
4511
  /**
@@ -4743,15 +4517,9 @@ declare module '@polkadot/api-base/types/submittable' {
4743
4517
  * Parameters:
4744
4518
  * - `pos`: Position in the `Bids` vector of the bid who should be unvouched.
4745
4519
  *
4746
- * # <weight>
4747
- * Key: B (len of bids)
4748
- * - One storage read O(1) to check the signer is a vouching member.
4749
- * - One storage mutate to retrieve and update the bids. O(B)
4750
- * - One vouching storage removal. O(1)
4751
- * - One event.
4752
- *
4753
- * Total Complexity: O(B)
4754
- * # </weight>
4520
+ * ## Complexity
4521
+ * - O(B)
4522
+ * - B (len of bids)
4755
4523
  **/
4756
4524
  unvouch: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4757
4525
  /**
@@ -4764,16 +4532,10 @@ declare module '@polkadot/api-base/types/submittable' {
4764
4532
  * - `approve`: A boolean which says if the candidate should be approved (`true`) or
4765
4533
  * rejected (`false`).
4766
4534
  *
4767
- * # <weight>
4768
- * Key: C (len of candidates), M (len of members)
4769
- * - One storage read O(M) and O(log M) search to check user is a member.
4770
- * - One account lookup.
4771
- * - One storage read O(C) and O(C) search to check that user is a candidate.
4772
- * - One storage write to add vote to votes. O(1)
4773
- * - One event.
4774
- *
4775
- * Total Complexity: O(M + logM + C)
4776
- * # </weight>
4535
+ * ## Complexity
4536
+ * - O(M + logM + C)
4537
+ * - C (len of candidates)
4538
+ * - M (len of members)
4777
4539
  **/
4778
4540
  vote: AugmentedSubmittable<(candidate: MultiAddress | {
4779
4541
  Id: any;
@@ -4805,33 +4567,12 @@ declare module '@polkadot/api-base/types/submittable' {
4805
4567
  * - `tip`: Your cut of the total `value` payout when the candidate is inducted into
4806
4568
  * the society. Tips larger than `value` will be saturated upon payout.
4807
4569
  *
4808
- * # <weight>
4809
- * Key: B (len of bids), C (len of candidates), M (len of members)
4810
- * - Storage Reads:
4811
- * - One storage read to retrieve all members. O(M)
4812
- * - One storage read to check member is not already vouching. O(1)
4813
- * - One storage read to check for suspended candidate. O(1)
4814
- * - One storage read to check for suspended member. O(1)
4815
- * - One storage read to retrieve all current bids. O(B)
4816
- * - One storage read to retrieve all current candidates. O(C)
4817
- * - Storage Writes:
4818
- * - One storage write to insert vouching status to the member. O(1)
4819
- * - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
4820
- * w/ read)
4821
- * - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
4822
- * - Notable Computation:
4823
- * - O(log M) search to check sender is a member.
4824
- * - O(B + C + log M) search to check user is not already a part of society.
4825
- * - O(log B) search to insert the new bid sorted.
4826
- * - External Pallet Operations:
4827
- * - One balance reserve operation. O(X)
4828
- * - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
4829
- * - Events:
4830
- * - One event for vouch.
4831
- * - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
4832
- *
4833
- * Total Complexity: O(M + B + C + logM + logB + X)
4834
- * # </weight>
4570
+ * ## Complexity
4571
+ * - O(M + B + C + logM + logB + X)
4572
+ * - B (len of bids)
4573
+ * - C (len of candidates)
4574
+ * - M (len of members)
4575
+ * - X (balance reserve)
4835
4576
  **/
4836
4577
  vouch: AugmentedSubmittable<(who: MultiAddress | {
4837
4578
  Id: any;
@@ -4859,15 +4600,13 @@ declare module '@polkadot/api-base/types/submittable' {
4859
4600
  * The dispatch origin for this call must be _Signed_ by the stash account.
4860
4601
  *
4861
4602
  * Emits `Bonded`.
4862
- * # <weight>
4603
+ * ## Complexity
4863
4604
  * - Independent of the arguments. Moderate complexity.
4864
4605
  * - O(1).
4865
4606
  * - Three extra DB entries.
4866
4607
  *
4867
4608
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
4868
4609
  * unless the `origin` falls below _existential deposit_ and gets removed as dust.
4869
- * ------------------
4870
- * # </weight>
4871
4610
  **/
4872
4611
  bond: AugmentedSubmittable<(controller: MultiAddress | {
4873
4612
  Id: any;
@@ -4902,10 +4641,9 @@ declare module '@polkadot/api-base/types/submittable' {
4902
4641
  *
4903
4642
  * Emits `Bonded`.
4904
4643
  *
4905
- * # <weight>
4644
+ * ## Complexity
4906
4645
  * - Independent of the arguments. Insignificant complexity.
4907
4646
  * - O(1).
4908
- * # </weight>
4909
4647
  **/
4910
4648
  bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
4911
4649
  /**
@@ -4923,11 +4661,10 @@ declare module '@polkadot/api-base/types/submittable' {
4923
4661
  *
4924
4662
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
4925
4663
  *
4926
- * # <weight>
4664
+ * ## Complexity
4927
4665
  * - Independent of the arguments. Insignificant complexity.
4928
4666
  * - Contains one read.
4929
4667
  * - Writes are limited to the `origin` account key.
4930
- * # </weight>
4931
4668
  **/
4932
4669
  chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4933
4670
  /**
@@ -4977,11 +4714,9 @@ declare module '@polkadot/api-base/types/submittable' {
4977
4714
  * If this is called just before a new era is triggered, the election process may not
4978
4715
  * have enough blocks to get a result.
4979
4716
  *
4980
- * # <weight>
4717
+ * ## Complexity
4981
4718
  * - No arguments.
4982
4719
  * - Weight: O(1)
4983
- * - Write ForceEra
4984
- * # </weight>
4985
4720
  **/
4986
4721
  forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4987
4722
  /**
@@ -5007,11 +4742,9 @@ declare module '@polkadot/api-base/types/submittable' {
5007
4742
  * Thus the election process may be ongoing when this is called. In this case the
5008
4743
  * election will continue until the next era is triggered.
5009
4744
  *
5010
- * # <weight>
4745
+ * ## Complexity
5011
4746
  * - No arguments.
5012
4747
  * - Weight: O(1)
5013
- * - Write: ForceEra
5014
- * # </weight>
5015
4748
  **/
5016
4749
  forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5017
4750
  /**
@@ -5026,9 +4759,8 @@ declare module '@polkadot/api-base/types/submittable' {
5026
4759
  *
5027
4760
  * The dispatch origin must be Root.
5028
4761
  *
5029
- * # <weight>
4762
+ * ## Complexity
5030
4763
  * Same as [`Self::set_validator_count`].
5031
- * # </weight>
5032
4764
  **/
5033
4765
  increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5034
4766
  /**
@@ -5062,11 +4794,10 @@ declare module '@polkadot/api-base/types/submittable' {
5062
4794
  *
5063
4795
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
5064
4796
  *
5065
- * # <weight>
4797
+ * ## Complexity
5066
4798
  * - The transaction's complexity is proportional to the size of `targets` (N)
5067
4799
  * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
5068
4800
  * - Both the reads and writes follow a similar pattern.
5069
- * # </weight>
5070
4801
  **/
5071
4802
  nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
5072
4803
  Id: any;
@@ -5089,18 +4820,8 @@ declare module '@polkadot/api-base/types/submittable' {
5089
4820
  * The origin of this call must be _Signed_. Any account can call this function, even if
5090
4821
  * it is not one of the stakers.
5091
4822
  *
5092
- * # <weight>
5093
- * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
5094
- * - Contains a limited number of reads and writes.
5095
- * -----------
5096
- * N is the Number of payouts for the validator (including the validator)
5097
- * Weight:
5098
- * - Reward Destination Staked: O(N)
5099
- * - Reward Destination Controller (Creating): O(N)
5100
- *
5101
- * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
5102
- * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
5103
- * # </weight>
4823
+ * ## Complexity
4824
+ * - At most O(MaxNominatorRewardedPerValidator).
5104
4825
  **/
5105
4826
  payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
5106
4827
  /**
@@ -5123,11 +4844,9 @@ declare module '@polkadot/api-base/types/submittable' {
5123
4844
  *
5124
4845
  * The dispatch origin must be signed by the controller.
5125
4846
  *
5126
- * # <weight>
4847
+ * ## Complexity
5127
4848
  * - Time complexity: O(L), where L is unlocking chunks
5128
4849
  * - Bounded by `MaxUnlockingChunks`.
5129
- * - Storage changes: Can't increase storage, only decrease it.
5130
- * # </weight>
5131
4850
  **/
5132
4851
  rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
5133
4852
  /**
@@ -5136,9 +4855,8 @@ declare module '@polkadot/api-base/types/submittable' {
5136
4855
  *
5137
4856
  * The dispatch origin must be Root.
5138
4857
  *
5139
- * # <weight>
4858
+ * ## Complexity
5140
4859
  * Same as [`Self::set_validator_count`].
5141
- * # </weight>
5142
4860
  **/
5143
4861
  scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
5144
4862
  /**
@@ -5148,16 +4866,11 @@ declare module '@polkadot/api-base/types/submittable' {
5148
4866
  *
5149
4867
  * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
5150
4868
  *
5151
- * # <weight>
4869
+ * ## Complexity
4870
+ * O(1)
5152
4871
  * - Independent of the arguments. Insignificant complexity.
5153
4872
  * - Contains a limited number of reads.
5154
4873
  * - Writes are limited to the `origin` account key.
5155
- * ----------
5156
- * Weight: O(1)
5157
- * DB Weight:
5158
- * - Read: Bonded, Ledger New Controller, Ledger Old Controller
5159
- * - Write: Bonded, Ledger New Controller, Ledger Old Controller
5160
- * # </weight>
5161
4874
  **/
5162
4875
  setController: AugmentedSubmittable<(controller: MultiAddress | {
5163
4876
  Id: any;
@@ -5190,16 +4903,12 @@ declare module '@polkadot/api-base/types/submittable' {
5190
4903
  *
5191
4904
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
5192
4905
  *
5193
- * # <weight>
4906
+ * ## Complexity
4907
+ * - O(1)
5194
4908
  * - Independent of the arguments. Insignificant complexity.
5195
4909
  * - Contains a limited number of reads.
5196
4910
  * - Writes are limited to the `origin` account key.
5197
4911
  * ---------
5198
- * - Weight: O(1)
5199
- * - DB Weight:
5200
- * - Read: Ledger
5201
- * - Write: Payee
5202
- * # </weight>
5203
4912
  **/
5204
4913
  setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
5205
4914
  Staked: any;
@@ -5273,10 +4982,8 @@ declare module '@polkadot/api-base/types/submittable' {
5273
4982
  *
5274
4983
  * The dispatch origin must be Root.
5275
4984
  *
5276
- * # <weight>
5277
- * Weight: O(1)
5278
- * Write: Validator Count
5279
- * # </weight>
4985
+ * ## Complexity
4986
+ * O(1)
5280
4987
  **/
5281
4988
  setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5282
4989
  /**
@@ -5324,10 +5031,9 @@ declare module '@polkadot/api-base/types/submittable' {
5324
5031
  *
5325
5032
  * See also [`Call::unbond`].
5326
5033
  *
5327
- * # <weight>
5328
- * Complexity O(S) where S is the number of slashing spans to remove
5034
+ * ## Complexity
5035
+ * O(S) where S is the number of slashing spans to remove
5329
5036
  * NOTE: Weight annotation is the kill scenario, we refund otherwise.
5330
- * # </weight>
5331
5037
  **/
5332
5038
  withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5333
5039
  /**
@@ -5350,9 +5056,8 @@ declare module '@polkadot/api-base/types/submittable' {
5350
5056
  /**
5351
5057
  * Make some on-chain remark.
5352
5058
  *
5353
- * # <weight>
5059
+ * ## Complexity
5354
5060
  * - `O(1)`
5355
- * # </weight>
5356
5061
  **/
5357
5062
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
5358
5063
  /**
@@ -5362,28 +5067,15 @@ declare module '@polkadot/api-base/types/submittable' {
5362
5067
  /**
5363
5068
  * Set the new runtime code.
5364
5069
  *
5365
- * # <weight>
5070
+ * ## Complexity
5366
5071
  * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
5367
- * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
5368
- * expensive).
5369
- * - 1 storage write (codec `O(C)`).
5370
- * - 1 digest item.
5371
- * - 1 event.
5372
- * The weight of this function is dependent on the runtime, but generally this is very
5373
- * expensive. We will treat this as a full block.
5374
- * # </weight>
5375
5072
  **/
5376
5073
  setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
5377
5074
  /**
5378
5075
  * Set the new runtime code without doing any checks of the given `code`.
5379
5076
  *
5380
- * # <weight>
5077
+ * ## Complexity
5381
5078
  * - `O(C)` where `C` length of `code`
5382
- * - 1 storage write (codec `O(C)`).
5383
- * - 1 digest item.
5384
- * - 1 event.
5385
- * The weight of this function is dependent on the runtime. We will treat this as a full
5386
- * block. # </weight>
5387
5079
  **/
5388
5080
  setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
5389
5081
  /**
@@ -5419,20 +5111,12 @@ declare module '@polkadot/api-base/types/submittable' {
5419
5111
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
5420
5112
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
5421
5113
  *
5422
- * # <weight>
5423
- * ## Weight
5114
+ * ## Complexity
5424
5115
  * - `O(B + M + P1 + P2)` where:
5425
5116
  * - `B` is `proposal` size in bytes (length-fee-bounded)
5426
5117
  * - `M` is members-count (code- and governance-bounded)
5427
5118
  * - `P1` is the complexity of `proposal` preimage.
5428
5119
  * - `P2` is proposal-count (code-bounded)
5429
- * - DB:
5430
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
5431
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
5432
- * `O(P2)`)
5433
- * - any mutations done while executing `proposal` (`P1`)
5434
- * - up to 3 events
5435
- * # </weight>
5436
5120
  **/
5437
5121
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
5438
5122
  refTime?: any;
@@ -5457,20 +5141,12 @@ declare module '@polkadot/api-base/types/submittable' {
5457
5141
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
5458
5142
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
5459
5143
  *
5460
- * # <weight>
5461
- * ## Weight
5144
+ * ## Complexity
5462
5145
  * - `O(B + M + P1 + P2)` where:
5463
5146
  * - `B` is `proposal` size in bytes (length-fee-bounded)
5464
5147
  * - `M` is members-count (code- and governance-bounded)
5465
5148
  * - `P1` is the complexity of `proposal` preimage.
5466
5149
  * - `P2` is proposal-count (code-bounded)
5467
- * - DB:
5468
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
5469
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
5470
- * `O(P2)`)
5471
- * - any mutations done while executing `proposal` (`P1`)
5472
- * - up to 3 events
5473
- * # </weight>
5474
5150
  **/
5475
5151
  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>]>;
5476
5152
  /**
@@ -5482,12 +5158,8 @@ declare module '@polkadot/api-base/types/submittable' {
5482
5158
  * Parameters:
5483
5159
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
5484
5160
  *
5485
- * # <weight>
5486
- * Complexity: O(P) where P is the number of max proposals
5487
- * DB Weight:
5488
- * * Reads: Proposals
5489
- * * Writes: Voting, Proposals, ProposalOf
5490
- * # </weight>
5161
+ * ## Complexity
5162
+ * O(P) where P is the number of max proposals
5491
5163
  **/
5492
5164
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5493
5165
  /**
@@ -5495,13 +5167,11 @@ declare module '@polkadot/api-base/types/submittable' {
5495
5167
  *
5496
5168
  * Origin must be a member of the collective.
5497
5169
  *
5498
- * # <weight>
5499
- * ## Weight
5500
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
5501
- * `proposal`
5502
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
5503
- * - 1 event
5504
- * # </weight>
5170
+ * ## Complexity:
5171
+ * - `O(B + M + P)` where:
5172
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
5173
+ * - `M` members-count (code-bounded)
5174
+ * - `P` complexity of dispatching `proposal`
5505
5175
  **/
5506
5176
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
5507
5177
  /**
@@ -5512,26 +5182,13 @@ declare module '@polkadot/api-base/types/submittable' {
5512
5182
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
5513
5183
  * or put up for voting.
5514
5184
  *
5515
- * # <weight>
5516
- * ## Weight
5185
+ * ## Complexity
5517
5186
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
5518
5187
  * - `B` is `proposal` size in bytes (length-fee-bounded)
5519
5188
  * - `M` is members-count (code- and governance-bounded)
5520
5189
  * - branching is influenced by `threshold` where:
5521
5190
  * - `P1` is proposal execution complexity (`threshold < 2`)
5522
5191
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
5523
- * - DB:
5524
- * - 1 storage read `is_member` (codec `O(M)`)
5525
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
5526
- * - DB accesses influenced by `threshold`:
5527
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
5528
- * - OR proposal insertion (`threshold <= 2`)
5529
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
5530
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
5531
- * - 1 storage write `ProposalOf` (codec `O(B)`)
5532
- * - 1 storage write `Voting` (codec `O(M)`)
5533
- * - 1 event
5534
- * # </weight>
5535
5192
  **/
5536
5193
  propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
5537
5194
  /**
@@ -5542,7 +5199,7 @@ declare module '@polkadot/api-base/types/submittable' {
5542
5199
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
5543
5200
  * weight estimation.
5544
5201
  *
5545
- * Requires root origin.
5202
+ * The dispatch of this call must be `SetMembersOrigin`.
5546
5203
  *
5547
5204
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
5548
5205
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -5554,19 +5211,11 @@ declare module '@polkadot/api-base/types/submittable' {
5554
5211
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
5555
5212
  * with other logic managing the member set.
5556
5213
  *
5557
- * # <weight>
5558
- * ## Weight
5214
+ * ## Complexity:
5559
5215
  * - `O(MP + N)` where:
5560
5216
  * - `M` old-members-count (code- and governance-bounded)
5561
5217
  * - `N` new-members-count (code- and governance-bounded)
5562
5218
  * - `P` proposals-count (code-bounded)
5563
- * - DB:
5564
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
5565
- * members
5566
- * - 1 storage read (codec `O(P)`) for reading the proposals
5567
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
5568
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
5569
- * # </weight>
5570
5219
  **/
5571
5220
  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]>;
5572
5221
  /**
@@ -5577,14 +5226,8 @@ declare module '@polkadot/api-base/types/submittable' {
5577
5226
  * Transaction fees will be waived if the member is voting on any particular proposal
5578
5227
  * for the first time and the call is successful. Subsequent vote changes will charge a
5579
5228
  * fee.
5580
- * # <weight>
5581
- * ## Weight
5229
+ * ## Complexity
5582
5230
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
5583
- * - DB:
5584
- * - 1 storage read `Members` (codec `O(M)`)
5585
- * - 1 storage mutation `Voting` (codec `O(M)`)
5586
- * - 1 event
5587
- * # </weight>
5588
5231
  **/
5589
5232
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
5590
5233
  /**
@@ -5717,12 +5360,11 @@ declare module '@polkadot/api-base/types/submittable' {
5717
5360
  *
5718
5361
  * The dispatch origin for this call must be `Inherent`.
5719
5362
  *
5720
- * # <weight>
5363
+ * ## Complexity
5721
5364
  * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
5722
5365
  * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
5723
5366
  * `on_finalize`)
5724
5367
  * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
5725
- * # </weight>
5726
5368
  **/
5727
5369
  set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
5728
5370
  /**
@@ -5741,13 +5383,10 @@ declare module '@polkadot/api-base/types/submittable' {
5741
5383
  * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
5742
5384
  * as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
5743
5385
  *
5744
- * # <weight>
5745
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
5746
- * `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost
5747
- * depends on the implementation of `T::Tippers`.
5748
- * - DbReads: `Tips`, `Tippers`, `tip finder`
5749
- * - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
5750
- * # </weight>
5386
+ * ## Complexity
5387
+ * - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
5388
+ * is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
5389
+ * the implementation of `T::Tippers`.
5751
5390
  **/
5752
5391
  closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5753
5392
  /**
@@ -5764,12 +5403,9 @@ declare module '@polkadot/api-base/types/submittable' {
5764
5403
  *
5765
5404
  * Emits `NewTip` if successful.
5766
5405
  *
5767
- * # <weight>
5768
- * - Complexity: `O(R)` where `R` length of `reason`.
5406
+ * ## Complexity
5407
+ * - `O(R)` where `R` length of `reason`.
5769
5408
  * - encoding and hashing of 'reason'
5770
- * - DbReads: `Reasons`, `Tips`
5771
- * - DbWrites: `Reasons`, `Tips`
5772
- * # </weight>
5773
5409
  **/
5774
5410
  reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
5775
5411
  Id: any;
@@ -5796,12 +5432,9 @@ declare module '@polkadot/api-base/types/submittable' {
5796
5432
  *
5797
5433
  * Emits `TipRetracted` if successful.
5798
5434
  *
5799
- * # <weight>
5800
- * - Complexity: `O(1)`
5435
+ * ## Complexity
5436
+ * - `O(1)`
5801
5437
  * - Depends on the length of `T::Hash` which is fixed.
5802
- * - DbReads: `Tips`, `origin account`
5803
- * - DbWrites: `Reasons`, `Tips`, `origin account`
5804
- * # </weight>
5805
5438
  **/
5806
5439
  retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5807
5440
  /**
@@ -5813,10 +5446,8 @@ declare module '@polkadot/api-base/types/submittable' {
5813
5446
  *
5814
5447
  * Emits `TipSlashed` if successful.
5815
5448
  *
5816
- * # <weight>
5817
- * `T` is charged as upper bound given by `ContainsLengthBound`.
5818
- * The actual cost depends on the implementation of `T::Tippers`.
5819
- * # </weight>
5449
+ * ## Complexity
5450
+ * - O(1).
5820
5451
  **/
5821
5452
  slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5822
5453
  /**
@@ -5834,16 +5465,13 @@ declare module '@polkadot/api-base/types/submittable' {
5834
5465
  * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
5835
5466
  * has started.
5836
5467
  *
5837
- * # <weight>
5838
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
5839
- * `T`, insert tip and check closing, `T` is charged as upper bound given by
5840
- * `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`.
5468
+ * ## Complexity
5469
+ * - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
5470
+ * tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
5471
+ * The actual cost depends on the implementation of `T::Tippers`.
5841
5472
  *
5842
5473
  * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
5843
5474
  * is weighted as if almost full i.e of length `T-1`.
5844
- * - DbReads: `Tippers`, `Tips`
5845
- * - DbWrites: `Tips`
5846
- * # </weight>
5847
5475
  **/
5848
5476
  tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
5849
5477
  /**
@@ -5860,15 +5488,12 @@ declare module '@polkadot/api-base/types/submittable' {
5860
5488
  *
5861
5489
  * Emits `NewTip` if successful.
5862
5490
  *
5863
- * # <weight>
5864
- * - Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
5491
+ * ## Complexity
5492
+ * - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
5865
5493
  * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
5866
5494
  * `ContainsLengthBound`. The actual cost depends on the implementation of
5867
5495
  * `T::Tippers`.
5868
5496
  * - `O(R)`: hashing and encoding of reason of length `R`
5869
- * - DbReads: `Tippers`, `Reasons`
5870
- * - DbWrites: `Reasons`, `Tips`
5871
- * # </weight>
5872
5497
  **/
5873
5498
  tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
5874
5499
  Id: any;
@@ -5893,11 +5518,8 @@ declare module '@polkadot/api-base/types/submittable' {
5893
5518
  *
5894
5519
  * May only be called from `T::ApproveOrigin`.
5895
5520
  *
5896
- * # <weight>
5897
- * - Complexity: O(1).
5898
- * - DbReads: `Proposals`, `Approvals`
5899
- * - DbWrite: `Approvals`
5900
- * # </weight>
5521
+ * ## Complexity
5522
+ * - O(1).
5901
5523
  **/
5902
5524
  approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5903
5525
  /**
@@ -5905,11 +5527,8 @@ declare module '@polkadot/api-base/types/submittable' {
5905
5527
  * is reserved and slashed if the proposal is rejected. It is returned once the
5906
5528
  * proposal is awarded.
5907
5529
  *
5908
- * # <weight>
5909
- * - Complexity: O(1)
5910
- * - DbReads: `ProposalCount`, `origin account`
5911
- * - DbWrites: `ProposalCount`, `Proposals`, `origin account`
5912
- * # </weight>
5530
+ * ## Complexity
5531
+ * - O(1)
5913
5532
  **/
5914
5533
  proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
5915
5534
  Id: any;
@@ -5927,11 +5546,8 @@ declare module '@polkadot/api-base/types/submittable' {
5927
5546
  *
5928
5547
  * May only be called from `T::RejectOrigin`.
5929
5548
  *
5930
- * # <weight>
5931
- * - Complexity: O(1)
5932
- * - DbReads: `Proposals`, `rejected proposer account`
5933
- * - DbWrites: `Proposals`, `rejected proposer account`
5934
- * # </weight>
5549
+ * ## Complexity
5550
+ * - O(1)
5935
5551
  **/
5936
5552
  rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5937
5553
  /**
@@ -5941,10 +5557,8 @@ declare module '@polkadot/api-base/types/submittable' {
5941
5557
  * May only be called from `T::RejectOrigin`.
5942
5558
  * - `proposal_id`: The index of a proposal
5943
5559
  *
5944
- * # <weight>
5945
- * - Complexity: O(A) where `A` is the number of approvals
5946
- * - Db reads and writes: `Approvals`
5947
- * # </weight>
5560
+ * ## Complexity
5561
+ * - O(A) where `A` is the number of approvals
5948
5562
  *
5949
5563
  * Errors:
5950
5564
  * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
@@ -6030,9 +5644,8 @@ declare module '@polkadot/api-base/types/submittable' {
6030
5644
  * If origin is root then the calls are dispatched without checking origin filter. (This
6031
5645
  * includes bypassing `frame_system::Config::BaseCallFilter`).
6032
5646
  *
6033
- * # <weight>
6034
- * - Complexity: O(C) where C is the number of calls to be batched.
6035
- * # </weight>
5647
+ * ## Complexity
5648
+ * - O(C) where C is the number of calls to be batched.
6036
5649
  *
6037
5650
  * This will return `Ok` in all circumstances. To determine the success of the batch, an
6038
5651
  * event is deposited. If a call failed and the batch was interrupted, then the
@@ -6053,9 +5666,8 @@ declare module '@polkadot/api-base/types/submittable' {
6053
5666
  * If origin is root then the calls are dispatched without checking origin filter. (This
6054
5667
  * includes bypassing `frame_system::Config::BaseCallFilter`).
6055
5668
  *
6056
- * # <weight>
6057
- * - Complexity: O(C) where C is the number of calls to be batched.
6058
- * # </weight>
5669
+ * ## Complexity
5670
+ * - O(C) where C is the number of calls to be batched.
6059
5671
  **/
6060
5672
  batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
6061
5673
  /**
@@ -6063,12 +5675,8 @@ declare module '@polkadot/api-base/types/submittable' {
6063
5675
  *
6064
5676
  * The dispatch origin for this call must be _Root_.
6065
5677
  *
6066
- * # <weight>
5678
+ * ## Complexity
6067
5679
  * - O(1).
6068
- * - Limited storage reads.
6069
- * - One DB write (event).
6070
- * - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
6071
- * # </weight>
6072
5680
  **/
6073
5681
  dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | {
6074
5682
  system: any;
@@ -6097,9 +5705,8 @@ declare module '@polkadot/api-base/types/submittable' {
6097
5705
  * If origin is root then the calls are dispatch without checking origin filter. (This
6098
5706
  * includes bypassing `frame_system::Config::BaseCallFilter`).
6099
5707
  *
6100
- * # <weight>
6101
- * - Complexity: O(C) where C is the number of calls to be batched.
6102
- * # </weight>
5708
+ * ## Complexity
5709
+ * - O(C) where C is the number of calls to be batched.
6103
5710
  **/
6104
5711
  forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
6105
5712
  /**
@@ -6133,12 +5740,8 @@ declare module '@polkadot/api-base/types/submittable' {
6133
5740
  *
6134
5741
  * NOTE: This will unlock all schedules through the current block.
6135
5742
  *
6136
- * # <weight>
5743
+ * ## Complexity
6137
5744
  * - `O(1)`.
6138
- * - DbWeight: 4 Reads, 4 Writes
6139
- * - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
6140
- * - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
6141
- * # </weight>
6142
5745
  **/
6143
5746
  forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
6144
5747
  Id: any;
@@ -6197,12 +5800,8 @@ declare module '@polkadot/api-base/types/submittable' {
6197
5800
  *
6198
5801
  * Emits either `VestingCompleted` or `VestingUpdated`.
6199
5802
  *
6200
- * # <weight>
5803
+ * ## Complexity
6201
5804
  * - `O(1)`.
6202
- * - DbWeight: 2 Reads, 2 Writes
6203
- * - Reads: Vesting Storage, Balances Locks, [Sender Account]
6204
- * - Writes: Vesting Storage, Balances Locks, [Sender Account]
6205
- * # </weight>
6206
5805
  **/
6207
5806
  vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
6208
5807
  /**
@@ -6217,12 +5816,8 @@ declare module '@polkadot/api-base/types/submittable' {
6217
5816
  *
6218
5817
  * NOTE: This will unlock all schedules through the current block.
6219
5818
  *
6220
- * # <weight>
5819
+ * ## Complexity
6221
5820
  * - `O(1)`.
6222
- * - DbWeight: 3 Reads, 3 Writes
6223
- * - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
6224
- * - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
6225
- * # </weight>
6226
5821
  **/
6227
5822
  vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
6228
5823
  Id: any;
@@ -6249,12 +5844,8 @@ declare module '@polkadot/api-base/types/submittable' {
6249
5844
  *
6250
5845
  * Emits either `VestingCompleted` or `VestingUpdated`.
6251
5846
  *
6252
- * # <weight>
5847
+ * ## Complexity
6253
5848
  * - `O(1)`.
6254
- * - DbWeight: 3 Reads, 3 Writes
6255
- * - Reads: Vesting Storage, Balances Locks, Target Account
6256
- * - Writes: Vesting Storage, Balances Locks, Target Account
6257
- * # </weight>
6258
5849
  **/
6259
5850
  vestOther: AugmentedSubmittable<(target: MultiAddress | {
6260
5851
  Id: any;