@polkadot/api-augment 9.14.1 → 9.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/kusama/tx.d.ts CHANGED
@@ -105,10 +105,9 @@ declare module '@polkadot/api-base/types/submittable' {
105
105
  /**
106
106
  * Exactly as `transfer`, except the origin must be root and the source account may be
107
107
  * specified.
108
- * # <weight>
108
+ * ## Complexity
109
109
  * - Same as transfer, but additional read and write because the source account is not
110
110
  * assumed to be in the overlay.
111
- * # </weight>
112
111
  **/
113
112
  forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
114
113
  Id: any;
@@ -177,7 +176,7 @@ declare module '@polkadot/api-base/types/submittable' {
177
176
  *
178
177
  * The dispatch origin for this call must be `Signed` by the transactor.
179
178
  *
180
- * # <weight>
179
+ * ## Complexity
181
180
  * - Dependent on arguments but not critical, given proper implementations for input config
182
181
  * types. See related functions below.
183
182
  * - It contains a limited number of reads and writes internally and no complex
@@ -191,9 +190,6 @@ declare module '@polkadot/api-base/types/submittable' {
191
190
  * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
192
191
  * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
193
192
  * that the transfer will not kill the origin account.
194
- * ---------------------------------
195
- * - Origin account is already in memory, so no DB operations for them.
196
- * # </weight>
197
193
  **/
198
194
  transfer: AugmentedSubmittable<(dest: MultiAddress | {
199
195
  Id: any;
@@ -221,9 +217,8 @@ declare module '@polkadot/api-base/types/submittable' {
221
217
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
222
218
  * of the funds the account has, causing the sender account to be killed (false), or
223
219
  * transfer everything except at least the existential deposit, which will guarantee to
224
- * keep the sender account alive (true). # <weight>
220
+ * keep the sender account alive (true). ## Complexity
225
221
  * - O(1). Just like transfer, but reading the user's transferable balance first.
226
- * #</weight>
227
222
  **/
228
223
  transferAll: AugmentedSubmittable<(dest: MultiAddress | {
229
224
  Id: any;
@@ -267,9 +262,8 @@ declare module '@polkadot/api-base/types/submittable' {
267
262
  *
268
263
  * May only be called from the curator.
269
264
  *
270
- * # <weight>
265
+ * ## Complexity
271
266
  * - O(1).
272
- * # </weight>
273
267
  **/
274
268
  acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
275
269
  /**
@@ -278,9 +272,8 @@ declare module '@polkadot/api-base/types/submittable' {
278
272
  *
279
273
  * May only be called from `T::SpendOrigin`.
280
274
  *
281
- * # <weight>
275
+ * ## Complexity
282
276
  * - O(1).
283
- * # </weight>
284
277
  **/
285
278
  approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
286
279
  /**
@@ -292,9 +285,8 @@ declare module '@polkadot/api-base/types/submittable' {
292
285
  * - `bounty_id`: Bounty ID to award.
293
286
  * - `beneficiary`: The beneficiary account whom will receive the payout.
294
287
  *
295
- * # <weight>
288
+ * ## Complexity
296
289
  * - O(1).
297
- * # </weight>
298
290
  **/
299
291
  awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
300
292
  Id: any;
@@ -314,9 +306,8 @@ declare module '@polkadot/api-base/types/submittable' {
314
306
  *
315
307
  * - `bounty_id`: Bounty ID to claim.
316
308
  *
317
- * # <weight>
309
+ * ## Complexity
318
310
  * - O(1).
319
- * # </weight>
320
311
  **/
321
312
  claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
322
313
  /**
@@ -327,9 +318,8 @@ declare module '@polkadot/api-base/types/submittable' {
327
318
  *
328
319
  * - `bounty_id`: Bounty ID to cancel.
329
320
  *
330
- * # <weight>
321
+ * ## Complexity
331
322
  * - O(1).
332
- * # </weight>
333
323
  **/
334
324
  closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
335
325
  /**
@@ -340,9 +330,8 @@ declare module '@polkadot/api-base/types/submittable' {
340
330
  * - `bounty_id`: Bounty ID to extend.
341
331
  * - `remark`: additional information.
342
332
  *
343
- * # <weight>
333
+ * ## Complexity
344
334
  * - O(1).
345
- * # </weight>
346
335
  **/
347
336
  extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
348
337
  /**
@@ -365,9 +354,8 @@ declare module '@polkadot/api-base/types/submittable' {
365
354
  *
366
355
  * May only be called from `T::SpendOrigin`.
367
356
  *
368
- * # <weight>
357
+ * ## Complexity
369
358
  * - O(1).
370
- * # </weight>
371
359
  **/
372
360
  proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
373
361
  Id: any;
@@ -396,9 +384,8 @@ declare module '@polkadot/api-base/types/submittable' {
396
384
  * anyone in the community to call out that a curator is not doing their due diligence, and
397
385
  * we should pick a new curator. In this case the curator should also be slashed.
398
386
  *
399
- * # <weight>
387
+ * ## Complexity
400
388
  * - O(1).
401
- * # </weight>
402
389
  **/
403
390
  unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
404
391
  /**
@@ -1070,20 +1057,12 @@ declare module '@polkadot/api-base/types/submittable' {
1070
1057
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
1071
1058
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
1072
1059
  *
1073
- * # <weight>
1074
- * ## Weight
1060
+ * ## Complexity
1075
1061
  * - `O(B + M + P1 + P2)` where:
1076
1062
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1077
1063
  * - `M` is members-count (code- and governance-bounded)
1078
1064
  * - `P1` is the complexity of `proposal` preimage.
1079
1065
  * - `P2` is proposal-count (code-bounded)
1080
- * - DB:
1081
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
1082
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
1083
- * `O(P2)`)
1084
- * - any mutations done while executing `proposal` (`P1`)
1085
- * - up to 3 events
1086
- * # </weight>
1087
1066
  **/
1088
1067
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
1089
1068
  refTime?: any;
@@ -1108,20 +1087,12 @@ declare module '@polkadot/api-base/types/submittable' {
1108
1087
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
1109
1088
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
1110
1089
  *
1111
- * # <weight>
1112
- * ## Weight
1090
+ * ## Complexity
1113
1091
  * - `O(B + M + P1 + P2)` where:
1114
1092
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1115
1093
  * - `M` is members-count (code- and governance-bounded)
1116
1094
  * - `P1` is the complexity of `proposal` preimage.
1117
1095
  * - `P2` is proposal-count (code-bounded)
1118
- * - DB:
1119
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
1120
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
1121
- * `O(P2)`)
1122
- * - any mutations done while executing `proposal` (`P1`)
1123
- * - up to 3 events
1124
- * # </weight>
1125
1096
  **/
1126
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>]>;
1127
1098
  /**
@@ -1133,12 +1104,8 @@ declare module '@polkadot/api-base/types/submittable' {
1133
1104
  * Parameters:
1134
1105
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
1135
1106
  *
1136
- * # <weight>
1137
- * Complexity: O(P) where P is the number of max proposals
1138
- * DB Weight:
1139
- * * Reads: Proposals
1140
- * * Writes: Voting, Proposals, ProposalOf
1141
- * # </weight>
1107
+ * ## Complexity
1108
+ * O(P) where P is the number of max proposals
1142
1109
  **/
1143
1110
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
1144
1111
  /**
@@ -1146,13 +1113,11 @@ declare module '@polkadot/api-base/types/submittable' {
1146
1113
  *
1147
1114
  * Origin must be a member of the collective.
1148
1115
  *
1149
- * # <weight>
1150
- * ## Weight
1151
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
1152
- * `proposal`
1153
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
1154
- * - 1 event
1155
- * # </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`
1156
1121
  **/
1157
1122
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
1158
1123
  /**
@@ -1163,26 +1128,13 @@ declare module '@polkadot/api-base/types/submittable' {
1163
1128
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
1164
1129
  * or put up for voting.
1165
1130
  *
1166
- * # <weight>
1167
- * ## Weight
1131
+ * ## Complexity
1168
1132
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
1169
1133
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1170
1134
  * - `M` is members-count (code- and governance-bounded)
1171
1135
  * - branching is influenced by `threshold` where:
1172
1136
  * - `P1` is proposal execution complexity (`threshold < 2`)
1173
1137
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
1174
- * - DB:
1175
- * - 1 storage read `is_member` (codec `O(M)`)
1176
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
1177
- * - DB accesses influenced by `threshold`:
1178
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
1179
- * - OR proposal insertion (`threshold <= 2`)
1180
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
1181
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
1182
- * - 1 storage write `ProposalOf` (codec `O(B)`)
1183
- * - 1 storage write `Voting` (codec `O(M)`)
1184
- * - 1 event
1185
- * # </weight>
1186
1138
  **/
1187
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>]>;
1188
1140
  /**
@@ -1193,7 +1145,7 @@ declare module '@polkadot/api-base/types/submittable' {
1193
1145
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
1194
1146
  * weight estimation.
1195
1147
  *
1196
- * Requires root origin.
1148
+ * The dispatch of this call must be `SetMembersOrigin`.
1197
1149
  *
1198
1150
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
1199
1151
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -1205,19 +1157,11 @@ declare module '@polkadot/api-base/types/submittable' {
1205
1157
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
1206
1158
  * with other logic managing the member set.
1207
1159
  *
1208
- * # <weight>
1209
- * ## Weight
1160
+ * ## Complexity:
1210
1161
  * - `O(MP + N)` where:
1211
1162
  * - `M` old-members-count (code- and governance-bounded)
1212
1163
  * - `N` new-members-count (code- and governance-bounded)
1213
1164
  * - `P` proposals-count (code-bounded)
1214
- * - DB:
1215
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
1216
- * members
1217
- * - 1 storage read (codec `O(P)`) for reading the proposals
1218
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
1219
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
1220
- * # </weight>
1221
1165
  **/
1222
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]>;
1223
1167
  /**
@@ -1228,14 +1172,8 @@ declare module '@polkadot/api-base/types/submittable' {
1228
1172
  * Transaction fees will be waived if the member is voting on any particular proposal
1229
1173
  * for the first time and the call is successful. Subsequent vote changes will charge a
1230
1174
  * fee.
1231
- * # <weight>
1232
- * ## Weight
1175
+ * ## Complexity
1233
1176
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
1234
- * - DB:
1235
- * - 1 storage read `Members` (codec `O(M)`)
1236
- * - 1 storage mutation `Voting` (codec `O(M)`)
1237
- * - 1 event
1238
- * # </weight>
1239
1177
  **/
1240
1178
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
1241
1179
  /**
@@ -2190,11 +2128,8 @@ declare module '@polkadot/api-base/types/submittable' {
2190
2128
  *
2191
2129
  * Emits `RegistrarAdded` if successful.
2192
2130
  *
2193
- * # <weight>
2131
+ * ## Complexity
2194
2132
  * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
2195
- * - One storage mutation (codec `O(R)`).
2196
- * - One event.
2197
- * # </weight>
2198
2133
  **/
2199
2134
  addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
2200
2135
  Id: any;
@@ -2251,12 +2186,10 @@ declare module '@polkadot/api-base/types/submittable' {
2251
2186
  *
2252
2187
  * Emits `JudgementUnrequested` if successful.
2253
2188
  *
2254
- * # <weight>
2189
+ * ## Complexity
2255
2190
  * - `O(R + X)`.
2256
- * - One balance-reserve operation.
2257
- * - One storage mutation `O(R + X)`.
2258
- * - One event
2259
- * # </weight>
2191
+ * - where `R` registrar-count (governance-bounded).
2192
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2260
2193
  **/
2261
2194
  cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2262
2195
  /**
@@ -2269,15 +2202,11 @@ declare module '@polkadot/api-base/types/submittable' {
2269
2202
  *
2270
2203
  * Emits `IdentityCleared` if successful.
2271
2204
  *
2272
- * # <weight>
2205
+ * ## Complexity
2273
2206
  * - `O(R + S + X)`
2274
2207
  * - where `R` registrar-count (governance-bounded).
2275
2208
  * - where `S` subs-count (hard- and deposit-bounded).
2276
2209
  * - where `X` additional-field-count (deposit-bounded and code-bounded).
2277
- * - One balance-unreserve operation.
2278
- * - `2` storage reads and `S + 2` storage deletions.
2279
- * - One event.
2280
- * # </weight>
2281
2210
  **/
2282
2211
  clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2283
2212
  /**
@@ -2294,12 +2223,11 @@ declare module '@polkadot/api-base/types/submittable' {
2294
2223
  *
2295
2224
  * Emits `IdentityKilled` if successful.
2296
2225
  *
2297
- * # <weight>
2298
- * - `O(R + S + X)`.
2299
- * - One balance-reserve operation.
2300
- * - `S + 2` storage mutations.
2301
- * - One event.
2302
- * # </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).
2303
2231
  **/
2304
2232
  killIdentity: AugmentedSubmittable<(target: MultiAddress | {
2305
2233
  Id: any;
@@ -2326,13 +2254,10 @@ declare module '@polkadot/api-base/types/submittable' {
2326
2254
  *
2327
2255
  * Emits `JudgementGiven` if successful.
2328
2256
  *
2329
- * # <weight>
2257
+ * ## Complexity
2330
2258
  * - `O(R + X)`.
2331
- * - One balance-transfer operation.
2332
- * - Up to one account-lookup operation.
2333
- * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
2334
- * - One event.
2335
- * # </weight>
2259
+ * - where `R` registrar-count (governance-bounded).
2260
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2336
2261
  **/
2337
2262
  provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
2338
2263
  Id: any;
@@ -2439,12 +2364,10 @@ declare module '@polkadot/api-base/types/submittable' {
2439
2364
  *
2440
2365
  * Emits `JudgementRequested` if successful.
2441
2366
  *
2442
- * # <weight>
2367
+ * ## Complexity
2443
2368
  * - `O(R + X)`.
2444
- * - One balance-reserve operation.
2445
- * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.
2446
- * - One event.
2447
- * # </weight>
2369
+ * - where `R` registrar-count (governance-bounded).
2370
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2448
2371
  **/
2449
2372
  requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
2450
2373
  /**
@@ -2456,11 +2379,9 @@ declare module '@polkadot/api-base/types/submittable' {
2456
2379
  * - `index`: the index of the registrar whose fee is to be set.
2457
2380
  * - `new`: the new account ID.
2458
2381
  *
2459
- * # <weight>
2382
+ * ## Complexity
2460
2383
  * - `O(R)`.
2461
- * - One storage mutation `O(R)`.
2462
- * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
2463
- * # </weight>
2384
+ * - where `R` registrar-count (governance-bounded).
2464
2385
  **/
2465
2386
  setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
2466
2387
  Id: any;
@@ -2482,11 +2403,9 @@ declare module '@polkadot/api-base/types/submittable' {
2482
2403
  * - `index`: the index of the registrar whose fee is to be set.
2483
2404
  * - `fee`: the new fee.
2484
2405
  *
2485
- * # <weight>
2406
+ * ## Complexity
2486
2407
  * - `O(R)`.
2487
- * - One storage mutation `O(R)`.
2488
- * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
2489
- * # </weight>
2408
+ * - where `R` registrar-count (governance-bounded).
2490
2409
  **/
2491
2410
  setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
2492
2411
  /**
@@ -2498,11 +2417,9 @@ declare module '@polkadot/api-base/types/submittable' {
2498
2417
  * - `index`: the index of the registrar whose fee is to be set.
2499
2418
  * - `fields`: the fields that the registrar concerns themselves with.
2500
2419
  *
2501
- * # <weight>
2420
+ * ## Complexity
2502
2421
  * - `O(R)`.
2503
- * - One storage mutation `O(R)`.
2504
- * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
2505
- * # </weight>
2422
+ * - where `R` registrar-count (governance-bounded).
2506
2423
  **/
2507
2424
  setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
2508
2425
  /**
@@ -2517,14 +2434,10 @@ declare module '@polkadot/api-base/types/submittable' {
2517
2434
  *
2518
2435
  * Emits `IdentitySet` if successful.
2519
2436
  *
2520
- * # <weight>
2437
+ * ## Complexity
2521
2438
  * - `O(X + X' + R)`
2522
2439
  * - where `X` additional-field-count (deposit-bounded and code-bounded)
2523
2440
  * - where `R` judgements-count (registrar-count-bounded)
2524
- * - One balance reserve operation.
2525
- * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
2526
- * - One event.
2527
- * # </weight>
2528
2441
  **/
2529
2442
  setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
2530
2443
  additional?: any;
@@ -2548,17 +2461,10 @@ declare module '@polkadot/api-base/types/submittable' {
2548
2461
  *
2549
2462
  * - `subs`: The identity's (new) sub-accounts.
2550
2463
  *
2551
- * # <weight>
2464
+ * ## Complexity
2552
2465
  * - `O(P + S)`
2553
2466
  * - where `P` old-subs-count (hard- and deposit-bounded).
2554
2467
  * - where `S` subs-count (hard- and deposit-bounded).
2555
- * - At most one balance operations.
2556
- * - DB:
2557
- * - `P + S` storage mutations (codec complexity `O(1)`)
2558
- * - One storage read (codec complexity `O(P)`).
2559
- * - One storage write (codec complexity `O(S)`).
2560
- * - One storage-exists (`IdentityOf::contains_key`).
2561
- * # </weight>
2562
2468
  **/
2563
2469
  setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
2564
2470
  None: any;
@@ -2580,15 +2486,11 @@ declare module '@polkadot/api-base/types/submittable' {
2580
2486
  };
2581
2487
  imOnline: {
2582
2488
  /**
2583
- * # <weight>
2584
- * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is
2585
- * 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`
2586
2492
  * - `O(K)`: decoding of length `K`
2587
2493
  * - `O(E)`: decoding/encoding of length `E`
2588
- * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
2589
- * `ReceivedHeartbeats`
2590
- * - DbWrites: `ReceivedHeartbeats`
2591
- * # </weight>
2592
2494
  **/
2593
2495
  heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
2594
2496
  blockNumber?: any;
@@ -2614,14 +2516,8 @@ declare module '@polkadot/api-base/types/submittable' {
2614
2516
  *
2615
2517
  * Emits `IndexAssigned` if successful.
2616
2518
  *
2617
- * # <weight>
2519
+ * ## Complexity
2618
2520
  * - `O(1)`.
2619
- * - One storage mutation (codec `O(1)`).
2620
- * - One reserve operation.
2621
- * - One event.
2622
- * -------------------
2623
- * - DB Weight: 1 Read/Write (Accounts)
2624
- * # </weight>
2625
2521
  **/
2626
2522
  claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2627
2523
  /**
@@ -2636,16 +2532,8 @@ declare module '@polkadot/api-base/types/submittable' {
2636
2532
  *
2637
2533
  * Emits `IndexAssigned` if successful.
2638
2534
  *
2639
- * # <weight>
2535
+ * ## Complexity
2640
2536
  * - `O(1)`.
2641
- * - One storage mutation (codec `O(1)`).
2642
- * - Up to one reserve operation.
2643
- * - One event.
2644
- * -------------------
2645
- * - DB Weight:
2646
- * - Reads: Indices Accounts, System Account (original owner)
2647
- * - Writes: Indices Accounts, System Account (original owner)
2648
- * # </weight>
2649
2537
  **/
2650
2538
  forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
2651
2539
  Id: any;
@@ -2669,14 +2557,8 @@ declare module '@polkadot/api-base/types/submittable' {
2669
2557
  *
2670
2558
  * Emits `IndexFreed` if successful.
2671
2559
  *
2672
- * # <weight>
2560
+ * ## Complexity
2673
2561
  * - `O(1)`.
2674
- * - One storage mutation (codec `O(1)`).
2675
- * - One reserve operation.
2676
- * - One event.
2677
- * -------------------
2678
- * - DB Weight: 1 Read/Write (Accounts)
2679
- * # </weight>
2680
2562
  **/
2681
2563
  free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2682
2564
  /**
@@ -2690,14 +2572,8 @@ declare module '@polkadot/api-base/types/submittable' {
2690
2572
  *
2691
2573
  * Emits `IndexFrozen` if successful.
2692
2574
  *
2693
- * # <weight>
2575
+ * ## Complexity
2694
2576
  * - `O(1)`.
2695
- * - One storage mutation (codec `O(1)`).
2696
- * - Up to one slash operation.
2697
- * - One event.
2698
- * -------------------
2699
- * - DB Weight: 1 Read/Write (Accounts)
2700
- * # </weight>
2701
2577
  **/
2702
2578
  freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2703
2579
  /**
@@ -2711,16 +2587,8 @@ declare module '@polkadot/api-base/types/submittable' {
2711
2587
  *
2712
2588
  * Emits `IndexAssigned` if successful.
2713
2589
  *
2714
- * # <weight>
2590
+ * ## Complexity
2715
2591
  * - `O(1)`.
2716
- * - One storage mutation (codec `O(1)`).
2717
- * - One transfer operation.
2718
- * - One event.
2719
- * -------------------
2720
- * - DB Weight:
2721
- * - Reads: Indices Accounts, System Account (recipient)
2722
- * - Writes: Indices Accounts, System Account (recipient)
2723
- * # </weight>
2724
2592
  **/
2725
2593
  transfer: AugmentedSubmittable<(updated: MultiAddress | {
2726
2594
  Id: any;
@@ -2771,7 +2639,7 @@ declare module '@polkadot/api-base/types/submittable' {
2771
2639
  *
2772
2640
  * NOTE: If this is the final approval, you will want to use `as_multi` instead.
2773
2641
  *
2774
- * # <weight>
2642
+ * ## Complexity
2775
2643
  * - `O(S)`.
2776
2644
  * - Up to one balance-reserve or unreserve operation.
2777
2645
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2782,11 +2650,6 @@ declare module '@polkadot/api-base/types/submittable' {
2782
2650
  * - One event.
2783
2651
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2784
2652
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2785
- * ----------------------------------
2786
- * - DB Weight:
2787
- * - Read: Multisig Storage, [Caller Account]
2788
- * - Write: Multisig Storage, [Caller Account]
2789
- * # </weight>
2790
2653
  **/
2791
2654
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2792
2655
  height?: any;
@@ -2822,7 +2685,7 @@ declare module '@polkadot/api-base/types/submittable' {
2822
2685
  * on success, result is `Ok` and the result from the interior call, if it was executed,
2823
2686
  * may be found in the deposited `MultisigExecuted` event.
2824
2687
  *
2825
- * # <weight>
2688
+ * ## Complexity
2826
2689
  * - `O(S + Z + Call)`.
2827
2690
  * - Up to one balance-reserve or unreserve operation.
2828
2691
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2835,12 +2698,6 @@ declare module '@polkadot/api-base/types/submittable' {
2835
2698
  * - The weight of the `call`.
2836
2699
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
2837
2700
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
2838
- * -------------------------------
2839
- * - DB Weight:
2840
- * - Reads: Multisig Storage, [Caller Account]
2841
- * - Writes: Multisig Storage, [Caller Account]
2842
- * - Plus Call Weight
2843
- * # </weight>
2844
2701
  **/
2845
2702
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
2846
2703
  height?: any;
@@ -2860,12 +2717,8 @@ declare module '@polkadot/api-base/types/submittable' {
2860
2717
  *
2861
2718
  * Result is equivalent to the dispatched result.
2862
2719
  *
2863
- * # <weight>
2720
+ * ## Complexity
2864
2721
  * O(Z + C) where Z is the length of the call and C its execution weight.
2865
- * -------------------------------
2866
- * - DB Weight: None
2867
- * - Plus Call Weight
2868
- * # </weight>
2869
2722
  **/
2870
2723
  asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2871
2724
  /**
@@ -2881,7 +2734,7 @@ declare module '@polkadot/api-base/types/submittable' {
2881
2734
  * transaction for this dispatch.
2882
2735
  * - `call_hash`: The hash of the call to be executed.
2883
2736
  *
2884
- * # <weight>
2737
+ * ## Complexity
2885
2738
  * - `O(S)`.
2886
2739
  * - Up to one balance-reserve or unreserve operation.
2887
2740
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -2890,11 +2743,6 @@ declare module '@polkadot/api-base/types/submittable' {
2890
2743
  * - One event.
2891
2744
  * - I/O: 1 read `O(S)`, one remove.
2892
2745
  * - Storage: removes one item.
2893
- * ----------------------------------
2894
- * - DB Weight:
2895
- * - Read: Multisig Storage, [Caller Account], Refund Account
2896
- * - Write: Multisig Storage, [Caller Account], Refund Account
2897
- * # </weight>
2898
2746
  **/
2899
2747
  cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
2900
2748
  height?: any;
@@ -2973,10 +2821,9 @@ declare module '@polkadot/api-base/types/submittable' {
2973
2821
  /**
2974
2822
  * Exactly as `transfer`, except the origin must be root and the source account may be
2975
2823
  * specified.
2976
- * # <weight>
2824
+ * ## Complexity
2977
2825
  * - Same as transfer, but additional read and write because the source account is not
2978
2826
  * assumed to be in the overlay.
2979
- * # </weight>
2980
2827
  **/
2981
2828
  forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
2982
2829
  Id: any;
@@ -3045,7 +2892,7 @@ declare module '@polkadot/api-base/types/submittable' {
3045
2892
  *
3046
2893
  * The dispatch origin for this call must be `Signed` by the transactor.
3047
2894
  *
3048
- * # <weight>
2895
+ * ## Complexity
3049
2896
  * - Dependent on arguments but not critical, given proper implementations for input config
3050
2897
  * types. See related functions below.
3051
2898
  * - It contains a limited number of reads and writes internally and no complex
@@ -3059,9 +2906,6 @@ declare module '@polkadot/api-base/types/submittable' {
3059
2906
  * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
3060
2907
  * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
3061
2908
  * that the transfer will not kill the origin account.
3062
- * ---------------------------------
3063
- * - Origin account is already in memory, so no DB operations for them.
3064
- * # </weight>
3065
2909
  **/
3066
2910
  transfer: AugmentedSubmittable<(dest: MultiAddress | {
3067
2911
  Id: any;
@@ -3089,9 +2933,8 @@ declare module '@polkadot/api-base/types/submittable' {
3089
2933
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
3090
2934
  * of the funds the account has, causing the sender account to be killed (false), or
3091
2935
  * transfer everything except at least the existential deposit, which will guarantee to
3092
- * keep the sender account alive (true). # <weight>
2936
+ * keep the sender account alive (true). ## Complexity
3093
2937
  * - O(1). Just like transfer, but reading the user's transferable balance first.
3094
- * #</weight>
3095
2938
  **/
3096
2939
  transferAll: AugmentedSubmittable<(dest: MultiAddress | {
3097
2940
  Id: any;
@@ -3559,9 +3402,8 @@ declare module '@polkadot/api-base/types/submittable' {
3559
3402
  *
3560
3403
  * The dispatch origin of this call must be root.
3561
3404
  *
3562
- * # <weight>
3563
- * The total number of voters and those that are defunct must be provided as witness data.
3564
- * # </weight>
3405
+ * ## Complexity
3406
+ * - Check is_defunct_voter() details.
3565
3407
  **/
3566
3408
  cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
3567
3409
  /**
@@ -3579,10 +3421,8 @@ declare module '@polkadot/api-base/types/submittable' {
3579
3421
  *
3580
3422
  * Note that this does not affect the designated block number of the next election.
3581
3423
  *
3582
- * # <weight>
3583
- * If we have a replacement, we use a small weight. Else, since this is a root call and
3584
- * will go into phragmen, we assume full block for now.
3585
- * # </weight>
3424
+ * ## Complexity
3425
+ * - Check details of remove_and_replace_member() and do_phragmen().
3586
3426
  **/
3587
3427
  removeMember: AugmentedSubmittable<(who: MultiAddress | {
3588
3428
  Id: any;
@@ -3618,10 +3458,12 @@ declare module '@polkadot/api-base/types/submittable' {
3618
3458
  * next round.
3619
3459
  *
3620
3460
  * The dispatch origin of this call must be signed, and have one of the above roles.
3621
- *
3622
- * # <weight>
3623
3461
  * The type of renouncing must be provided as witness data.
3624
- * # </weight>
3462
+ *
3463
+ * ## Complexity
3464
+ * - Renouncing::Candidate(count): O(count + log(count))
3465
+ * - Renouncing::Member: O(1)
3466
+ * - Renouncing::RunnerUp: O(1)
3625
3467
  **/
3626
3468
  renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
3627
3469
  Member: any;
@@ -3643,9 +3485,9 @@ declare module '@polkadot/api-base/types/submittable' {
3643
3485
  * Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
3644
3486
  * to get their deposit back. Losing the spot in an election will always lead to a slash.
3645
3487
  *
3646
- * # <weight>
3647
3488
  * The number of current candidates must be provided as witness data.
3648
- * # </weight>
3489
+ * ## Complexity
3490
+ * O(C + log(C)) where C is candidate_count.
3649
3491
  **/
3650
3492
  submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3651
3493
  /**
@@ -4393,10 +4235,6 @@ declare module '@polkadot/api-base/types/submittable' {
4393
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]>;
4394
4236
  /**
4395
4237
  * Anonymously schedule a task after a delay.
4396
- *
4397
- * # <weight>
4398
- * Same as [`schedule`].
4399
- * # </weight>
4400
4238
  **/
4401
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]>;
4402
4240
  /**
@@ -4405,10 +4243,6 @@ declare module '@polkadot/api-base/types/submittable' {
4405
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]>;
4406
4244
  /**
4407
4245
  * Schedule a named task after a delay.
4408
- *
4409
- * # <weight>
4410
- * Same as [`schedule_named`](Self::schedule_named).
4411
- * # </weight>
4412
4246
  **/
4413
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]>;
4414
4248
  /**
@@ -4427,13 +4261,9 @@ declare module '@polkadot/api-base/types/submittable' {
4427
4261
  * means being a controller account) or directly convertible into a validator ID (which
4428
4262
  * usually means being a stash account).
4429
4263
  *
4430
- * # <weight>
4431
- * - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
4432
- * of `T::Keys::key_ids()` which is fixed.
4433
- * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
4434
- * - DbWrites: `NextKeys`, `origin account`
4435
- * - DbWrites per key id: `KeyOwner`
4436
- * # </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.
4437
4267
  **/
4438
4268
  purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4439
4269
  /**
@@ -4443,14 +4273,9 @@ declare module '@polkadot/api-base/types/submittable' {
4443
4273
  *
4444
4274
  * The dispatch origin of this function must be signed.
4445
4275
  *
4446
- * # <weight>
4447
- * - Complexity: `O(1)`. Actual cost depends on the number of length of
4448
- * `T::Keys::key_ids()` which is fixed.
4449
- * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
4450
- * - DbWrites: `origin account`, `NextKeys`
4451
- * - DbReads per key id: `KeyOwner`
4452
- * - DbWrites per key id: `KeyOwner`
4453
- * # </weight>
4276
+ * ## Complexity
4277
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
4278
+ * fixed.
4454
4279
  **/
4455
4280
  setKeys: AugmentedSubmittable<(keys: KusamaRuntimeSessionKeys | {
4456
4281
  grandpa?: any;
@@ -4506,30 +4331,12 @@ declare module '@polkadot/api-base/types/submittable' {
4506
4331
  * Parameters:
4507
4332
  * - `value`: A one time payment the bid would like to receive when joining the society.
4508
4333
  *
4509
- * # <weight>
4510
- * Key: B (len of bids), C (len of candidates), M (len of members), X (balance reserve)
4511
- * - Storage Reads:
4512
- * - One storage read to check for suspended candidate. O(1)
4513
- * - One storage read to check for suspended member. O(1)
4514
- * - One storage read to retrieve all current bids. O(B)
4515
- * - One storage read to retrieve all current candidates. O(C)
4516
- * - One storage read to retrieve all members. O(M)
4517
- * - Storage Writes:
4518
- * - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
4519
- * w/ read)
4520
- * - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
4521
- * - Notable Computation:
4522
- * - O(B + C + log M) search to check user is not already a part of society.
4523
- * - O(log B) search to insert the new bid sorted.
4524
- * - External Pallet Operations:
4525
- * - One balance reserve operation. O(X)
4526
- * - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
4527
- * - Events:
4528
- * - One event for new bid.
4529
- * - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
4530
- *
4531
- * Total Complexity: O(M + B + C + logM + logB + X)
4532
- * # </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)
4533
4340
  **/
4534
4341
  bid: AugmentedSubmittable<(value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
4535
4342
  /**
@@ -4541,14 +4348,9 @@ declare module '@polkadot/api-base/types/submittable' {
4541
4348
  * - `approve`: A boolean which says if the candidate should be
4542
4349
  * approved (`true`) or rejected (`false`).
4543
4350
  *
4544
- * # <weight>
4545
- * - Key: M (len of members)
4546
- * - One storage read O(M) and O(log M) search to check user is a member.
4547
- * - One storage write to add vote to votes. O(1)
4548
- * - One event.
4549
- *
4550
- * Total Complexity: O(M + logM)
4551
- * # </weight>
4351
+ * ## Complexity
4352
+ * - O(M + logM)
4353
+ * - M (len of members)
4552
4354
  **/
4553
4355
  defenderVote: AugmentedSubmittable<(approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
4554
4356
  /**
@@ -4564,13 +4366,8 @@ declare module '@polkadot/api-base/types/submittable' {
4564
4366
  * - `max_members` - The initial max number of members for the society.
4565
4367
  * - `rules` - The rules of this society concerning membership.
4566
4368
  *
4567
- * # <weight>
4568
- * - Two storage mutates to set `Head` and `Founder`. O(1)
4569
- * - One storage write to add the first member to society. O(1)
4570
- * - One event.
4571
- *
4572
- * Total Complexity: O(1)
4573
- * # </weight>
4369
+ * ## Complexity
4370
+ * - O(1)
4574
4371
  **/
4575
4372
  found: AugmentedSubmittable<(founder: MultiAddress | {
4576
4373
  Id: any;
@@ -4601,29 +4398,11 @@ declare module '@polkadot/api-base/types/submittable' {
4601
4398
  * - `who` - The suspended candidate to be judged.
4602
4399
  * - `judgement` - `Approve`, `Reject`, or `Rebid`.
4603
4400
  *
4604
- * # <weight>
4605
- * Key: B (len of bids), M (len of members), X (balance action)
4606
- * - One storage read to check `who` is a suspended candidate.
4607
- * - One storage removal of the suspended candidate.
4608
- * - Approve Logic
4609
- * - One storage read to get the available pot to pay users with. O(1)
4610
- * - One storage write to update the available pot. O(1)
4611
- * - One storage read to get the current block number. O(1)
4612
- * - One storage read to get all members. O(M)
4613
- * - Up to one unreserve currency action.
4614
- * - Up to two new storage writes to payouts.
4615
- * - Up to one storage write with O(log M) binary search to add a member to society.
4616
- * - Reject Logic
4617
- * - Up to one repatriate reserved currency action. O(X)
4618
- * - Up to one storage write to ban the vouching member from vouching again.
4619
- * - Rebid Logic
4620
- * - Storage mutate with O(log B) binary search to place the user back into bids.
4621
- * - Up to one additional event if unvouch takes place.
4622
- * - One storage removal.
4623
- * - One event for the judgement.
4624
- *
4625
- * Total Complexity: O(M + logM + B + X)
4626
- * # </weight>
4401
+ * ## Complexity
4402
+ * - O(M + logM + B + X)
4403
+ * - B (len of bids)
4404
+ * - M (len of members)
4405
+ * - X (balance action)
4627
4406
  **/
4628
4407
  judgeSuspendedCandidate: AugmentedSubmittable<(who: MultiAddress | {
4629
4408
  Id: any;
@@ -4652,19 +4431,10 @@ declare module '@polkadot/api-base/types/submittable' {
4652
4431
  * - `forgive` - A boolean representing whether the suspension judgement origin forgives
4653
4432
  * (`true`) or rejects (`false`) a suspended member.
4654
4433
  *
4655
- * # <weight>
4656
- * Key: B (len of bids), M (len of members)
4657
- * - One storage read to check `who` is a suspended member. O(1)
4658
- * - Up to one storage write O(M) with O(log M) binary search to add a member back to
4659
- * society.
4660
- * - Up to 3 storage removals O(1) to clean up a removed member.
4661
- * - Up to one storage write O(B) with O(B) search to remove vouched bid from bids.
4662
- * - Up to one additional event if unvouch takes place.
4663
- * - One storage removal. O(1)
4664
- * - One event for the judgement.
4665
- *
4666
- * Total Complexity: O(M + logM + B)
4667
- * # </weight>
4434
+ * ## Complexity
4435
+ * - O(M + logM + B)
4436
+ * - B (len of bids)
4437
+ * - M (len of members)
4668
4438
  **/
4669
4439
  judgeSuspendedMember: AugmentedSubmittable<(who: MultiAddress | {
4670
4440
  Id: any;
@@ -4689,16 +4459,11 @@ declare module '@polkadot/api-base/types/submittable' {
4689
4459
  * The dispatch origin for this call must be _Signed_ and a member with
4690
4460
  * payouts remaining.
4691
4461
  *
4692
- * # <weight>
4693
- * Key: M (len of members), P (number of payouts for a particular member)
4694
- * - One storage read O(M) and O(log M) search to check signer is a member.
4695
- * - One storage read O(P) to get all payouts for a member.
4696
- * - One storage read O(1) to get the current block number.
4697
- * - One currency transfer call. O(X)
4698
- * - One storage write or removal to update the member's payouts. O(P)
4699
- *
4700
- * Total Complexity: O(M + logM + P + X)
4701
- * # </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)
4702
4467
  **/
4703
4468
  payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4704
4469
  /**
@@ -4710,12 +4475,8 @@ declare module '@polkadot/api-base/types/submittable' {
4710
4475
  * Parameters:
4711
4476
  * - `max` - The maximum number of members for the society.
4712
4477
  *
4713
- * # <weight>
4714
- * - One storage write to update the max. O(1)
4715
- * - One event.
4716
- *
4717
- * Total Complexity: O(1)
4718
- * # </weight>
4478
+ * ## Complexity
4479
+ * - O(1)
4719
4480
  **/
4720
4481
  setMaxMembers: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4721
4482
  /**
@@ -4730,14 +4491,10 @@ declare module '@polkadot/api-base/types/submittable' {
4730
4491
  * Parameters:
4731
4492
  * - `pos`: Position in the `Bids` vector of the bid who wants to unbid.
4732
4493
  *
4733
- * # <weight>
4734
- * Key: B (len of bids), X (balance unreserve)
4735
- * - One storage read and write to retrieve and update the bids. O(B)
4736
- * - Either one unreserve balance action O(X) or one vouching storage removal. O(1)
4737
- * - One event.
4738
- *
4739
- * Total Complexity: O(B + X)
4740
- * # </weight>
4494
+ * ## Complexity
4495
+ * - O(B + X)
4496
+ * - B (len of bids)
4497
+ * - X (balance unreserve)
4741
4498
  **/
4742
4499
  unbid: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4743
4500
  /**
@@ -4747,13 +4504,8 @@ declare module '@polkadot/api-base/types/submittable' {
4747
4504
  * the `Founder` and the `Head`. This implies that it may only be done when there is one
4748
4505
  * member.
4749
4506
  *
4750
- * # <weight>
4751
- * - Two storage reads O(1).
4752
- * - Four storage removals O(1).
4753
- * - One event.
4754
- *
4755
- * Total Complexity: O(1)
4756
- * # </weight>
4507
+ * ## Complexity
4508
+ * - O(1)
4757
4509
  **/
4758
4510
  unfound: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4759
4511
  /**
@@ -4765,15 +4517,9 @@ declare module '@polkadot/api-base/types/submittable' {
4765
4517
  * Parameters:
4766
4518
  * - `pos`: Position in the `Bids` vector of the bid who should be unvouched.
4767
4519
  *
4768
- * # <weight>
4769
- * Key: B (len of bids)
4770
- * - One storage read O(1) to check the signer is a vouching member.
4771
- * - One storage mutate to retrieve and update the bids. O(B)
4772
- * - One vouching storage removal. O(1)
4773
- * - One event.
4774
- *
4775
- * Total Complexity: O(B)
4776
- * # </weight>
4520
+ * ## Complexity
4521
+ * - O(B)
4522
+ * - B (len of bids)
4777
4523
  **/
4778
4524
  unvouch: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4779
4525
  /**
@@ -4786,16 +4532,10 @@ declare module '@polkadot/api-base/types/submittable' {
4786
4532
  * - `approve`: A boolean which says if the candidate should be approved (`true`) or
4787
4533
  * rejected (`false`).
4788
4534
  *
4789
- * # <weight>
4790
- * Key: C (len of candidates), M (len of members)
4791
- * - One storage read O(M) and O(log M) search to check user is a member.
4792
- * - One account lookup.
4793
- * - One storage read O(C) and O(C) search to check that user is a candidate.
4794
- * - One storage write to add vote to votes. O(1)
4795
- * - One event.
4796
- *
4797
- * Total Complexity: O(M + logM + C)
4798
- * # </weight>
4535
+ * ## Complexity
4536
+ * - O(M + logM + C)
4537
+ * - C (len of candidates)
4538
+ * - M (len of members)
4799
4539
  **/
4800
4540
  vote: AugmentedSubmittable<(candidate: MultiAddress | {
4801
4541
  Id: any;
@@ -4827,33 +4567,12 @@ declare module '@polkadot/api-base/types/submittable' {
4827
4567
  * - `tip`: Your cut of the total `value` payout when the candidate is inducted into
4828
4568
  * the society. Tips larger than `value` will be saturated upon payout.
4829
4569
  *
4830
- * # <weight>
4831
- * Key: B (len of bids), C (len of candidates), M (len of members)
4832
- * - Storage Reads:
4833
- * - One storage read to retrieve all members. O(M)
4834
- * - One storage read to check member is not already vouching. O(1)
4835
- * - One storage read to check for suspended candidate. O(1)
4836
- * - One storage read to check for suspended member. O(1)
4837
- * - One storage read to retrieve all current bids. O(B)
4838
- * - One storage read to retrieve all current candidates. O(C)
4839
- * - Storage Writes:
4840
- * - One storage write to insert vouching status to the member. O(1)
4841
- * - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
4842
- * w/ read)
4843
- * - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
4844
- * - Notable Computation:
4845
- * - O(log M) search to check sender is a member.
4846
- * - O(B + C + log M) search to check user is not already a part of society.
4847
- * - O(log B) search to insert the new bid sorted.
4848
- * - External Pallet Operations:
4849
- * - One balance reserve operation. O(X)
4850
- * - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
4851
- * - Events:
4852
- * - One event for vouch.
4853
- * - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
4854
- *
4855
- * Total Complexity: O(M + B + C + logM + logB + X)
4856
- * # </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)
4857
4576
  **/
4858
4577
  vouch: AugmentedSubmittable<(who: MultiAddress | {
4859
4578
  Id: any;
@@ -4881,15 +4600,13 @@ declare module '@polkadot/api-base/types/submittable' {
4881
4600
  * The dispatch origin for this call must be _Signed_ by the stash account.
4882
4601
  *
4883
4602
  * Emits `Bonded`.
4884
- * # <weight>
4603
+ * ## Complexity
4885
4604
  * - Independent of the arguments. Moderate complexity.
4886
4605
  * - O(1).
4887
4606
  * - Three extra DB entries.
4888
4607
  *
4889
4608
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
4890
4609
  * unless the `origin` falls below _existential deposit_ and gets removed as dust.
4891
- * ------------------
4892
- * # </weight>
4893
4610
  **/
4894
4611
  bond: AugmentedSubmittable<(controller: MultiAddress | {
4895
4612
  Id: any;
@@ -4924,10 +4641,9 @@ declare module '@polkadot/api-base/types/submittable' {
4924
4641
  *
4925
4642
  * Emits `Bonded`.
4926
4643
  *
4927
- * # <weight>
4644
+ * ## Complexity
4928
4645
  * - Independent of the arguments. Insignificant complexity.
4929
4646
  * - O(1).
4930
- * # </weight>
4931
4647
  **/
4932
4648
  bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
4933
4649
  /**
@@ -4945,11 +4661,10 @@ declare module '@polkadot/api-base/types/submittable' {
4945
4661
  *
4946
4662
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
4947
4663
  *
4948
- * # <weight>
4664
+ * ## Complexity
4949
4665
  * - Independent of the arguments. Insignificant complexity.
4950
4666
  * - Contains one read.
4951
4667
  * - Writes are limited to the `origin` account key.
4952
- * # </weight>
4953
4668
  **/
4954
4669
  chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4955
4670
  /**
@@ -4999,11 +4714,9 @@ declare module '@polkadot/api-base/types/submittable' {
4999
4714
  * If this is called just before a new era is triggered, the election process may not
5000
4715
  * have enough blocks to get a result.
5001
4716
  *
5002
- * # <weight>
4717
+ * ## Complexity
5003
4718
  * - No arguments.
5004
4719
  * - Weight: O(1)
5005
- * - Write ForceEra
5006
- * # </weight>
5007
4720
  **/
5008
4721
  forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5009
4722
  /**
@@ -5029,11 +4742,9 @@ declare module '@polkadot/api-base/types/submittable' {
5029
4742
  * Thus the election process may be ongoing when this is called. In this case the
5030
4743
  * election will continue until the next era is triggered.
5031
4744
  *
5032
- * # <weight>
4745
+ * ## Complexity
5033
4746
  * - No arguments.
5034
4747
  * - Weight: O(1)
5035
- * - Write: ForceEra
5036
- * # </weight>
5037
4748
  **/
5038
4749
  forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5039
4750
  /**
@@ -5048,9 +4759,8 @@ declare module '@polkadot/api-base/types/submittable' {
5048
4759
  *
5049
4760
  * The dispatch origin must be Root.
5050
4761
  *
5051
- * # <weight>
4762
+ * ## Complexity
5052
4763
  * Same as [`Self::set_validator_count`].
5053
- * # </weight>
5054
4764
  **/
5055
4765
  increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5056
4766
  /**
@@ -5084,11 +4794,10 @@ declare module '@polkadot/api-base/types/submittable' {
5084
4794
  *
5085
4795
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
5086
4796
  *
5087
- * # <weight>
4797
+ * ## Complexity
5088
4798
  * - The transaction's complexity is proportional to the size of `targets` (N)
5089
4799
  * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
5090
4800
  * - Both the reads and writes follow a similar pattern.
5091
- * # </weight>
5092
4801
  **/
5093
4802
  nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
5094
4803
  Id: any;
@@ -5111,18 +4820,8 @@ declare module '@polkadot/api-base/types/submittable' {
5111
4820
  * The origin of this call must be _Signed_. Any account can call this function, even if
5112
4821
  * it is not one of the stakers.
5113
4822
  *
5114
- * # <weight>
5115
- * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
5116
- * - Contains a limited number of reads and writes.
5117
- * -----------
5118
- * N is the Number of payouts for the validator (including the validator)
5119
- * Weight:
5120
- * - Reward Destination Staked: O(N)
5121
- * - Reward Destination Controller (Creating): O(N)
5122
- *
5123
- * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
5124
- * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
5125
- * # </weight>
4823
+ * ## Complexity
4824
+ * - At most O(MaxNominatorRewardedPerValidator).
5126
4825
  **/
5127
4826
  payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
5128
4827
  /**
@@ -5145,11 +4844,9 @@ declare module '@polkadot/api-base/types/submittable' {
5145
4844
  *
5146
4845
  * The dispatch origin must be signed by the controller.
5147
4846
  *
5148
- * # <weight>
4847
+ * ## Complexity
5149
4848
  * - Time complexity: O(L), where L is unlocking chunks
5150
4849
  * - Bounded by `MaxUnlockingChunks`.
5151
- * - Storage changes: Can't increase storage, only decrease it.
5152
- * # </weight>
5153
4850
  **/
5154
4851
  rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
5155
4852
  /**
@@ -5158,9 +4855,8 @@ declare module '@polkadot/api-base/types/submittable' {
5158
4855
  *
5159
4856
  * The dispatch origin must be Root.
5160
4857
  *
5161
- * # <weight>
4858
+ * ## Complexity
5162
4859
  * Same as [`Self::set_validator_count`].
5163
- * # </weight>
5164
4860
  **/
5165
4861
  scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
5166
4862
  /**
@@ -5170,16 +4866,11 @@ declare module '@polkadot/api-base/types/submittable' {
5170
4866
  *
5171
4867
  * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
5172
4868
  *
5173
- * # <weight>
4869
+ * ## Complexity
4870
+ * O(1)
5174
4871
  * - Independent of the arguments. Insignificant complexity.
5175
4872
  * - Contains a limited number of reads.
5176
4873
  * - Writes are limited to the `origin` account key.
5177
- * ----------
5178
- * Weight: O(1)
5179
- * DB Weight:
5180
- * - Read: Bonded, Ledger New Controller, Ledger Old Controller
5181
- * - Write: Bonded, Ledger New Controller, Ledger Old Controller
5182
- * # </weight>
5183
4874
  **/
5184
4875
  setController: AugmentedSubmittable<(controller: MultiAddress | {
5185
4876
  Id: any;
@@ -5212,16 +4903,12 @@ declare module '@polkadot/api-base/types/submittable' {
5212
4903
  *
5213
4904
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
5214
4905
  *
5215
- * # <weight>
4906
+ * ## Complexity
4907
+ * - O(1)
5216
4908
  * - Independent of the arguments. Insignificant complexity.
5217
4909
  * - Contains a limited number of reads.
5218
4910
  * - Writes are limited to the `origin` account key.
5219
4911
  * ---------
5220
- * - Weight: O(1)
5221
- * - DB Weight:
5222
- * - Read: Ledger
5223
- * - Write: Payee
5224
- * # </weight>
5225
4912
  **/
5226
4913
  setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
5227
4914
  Staked: any;
@@ -5295,10 +4982,8 @@ declare module '@polkadot/api-base/types/submittable' {
5295
4982
  *
5296
4983
  * The dispatch origin must be Root.
5297
4984
  *
5298
- * # <weight>
5299
- * Weight: O(1)
5300
- * Write: Validator Count
5301
- * # </weight>
4985
+ * ## Complexity
4986
+ * O(1)
5302
4987
  **/
5303
4988
  setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5304
4989
  /**
@@ -5346,10 +5031,9 @@ declare module '@polkadot/api-base/types/submittable' {
5346
5031
  *
5347
5032
  * See also [`Call::unbond`].
5348
5033
  *
5349
- * # <weight>
5350
- * 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
5351
5036
  * NOTE: Weight annotation is the kill scenario, we refund otherwise.
5352
- * # </weight>
5353
5037
  **/
5354
5038
  withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5355
5039
  /**
@@ -5372,9 +5056,8 @@ declare module '@polkadot/api-base/types/submittable' {
5372
5056
  /**
5373
5057
  * Make some on-chain remark.
5374
5058
  *
5375
- * # <weight>
5059
+ * ## Complexity
5376
5060
  * - `O(1)`
5377
- * # </weight>
5378
5061
  **/
5379
5062
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
5380
5063
  /**
@@ -5384,28 +5067,15 @@ declare module '@polkadot/api-base/types/submittable' {
5384
5067
  /**
5385
5068
  * Set the new runtime code.
5386
5069
  *
5387
- * # <weight>
5070
+ * ## Complexity
5388
5071
  * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
5389
- * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
5390
- * expensive).
5391
- * - 1 storage write (codec `O(C)`).
5392
- * - 1 digest item.
5393
- * - 1 event.
5394
- * The weight of this function is dependent on the runtime, but generally this is very
5395
- * expensive. We will treat this as a full block.
5396
- * # </weight>
5397
5072
  **/
5398
5073
  setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
5399
5074
  /**
5400
5075
  * Set the new runtime code without doing any checks of the given `code`.
5401
5076
  *
5402
- * # <weight>
5077
+ * ## Complexity
5403
5078
  * - `O(C)` where `C` length of `code`
5404
- * - 1 storage write (codec `O(C)`).
5405
- * - 1 digest item.
5406
- * - 1 event.
5407
- * The weight of this function is dependent on the runtime. We will treat this as a full
5408
- * block. # </weight>
5409
5079
  **/
5410
5080
  setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
5411
5081
  /**
@@ -5441,20 +5111,12 @@ declare module '@polkadot/api-base/types/submittable' {
5441
5111
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
5442
5112
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
5443
5113
  *
5444
- * # <weight>
5445
- * ## Weight
5114
+ * ## Complexity
5446
5115
  * - `O(B + M + P1 + P2)` where:
5447
5116
  * - `B` is `proposal` size in bytes (length-fee-bounded)
5448
5117
  * - `M` is members-count (code- and governance-bounded)
5449
5118
  * - `P1` is the complexity of `proposal` preimage.
5450
5119
  * - `P2` is proposal-count (code-bounded)
5451
- * - DB:
5452
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
5453
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
5454
- * `O(P2)`)
5455
- * - any mutations done while executing `proposal` (`P1`)
5456
- * - up to 3 events
5457
- * # </weight>
5458
5120
  **/
5459
5121
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
5460
5122
  refTime?: any;
@@ -5479,20 +5141,12 @@ declare module '@polkadot/api-base/types/submittable' {
5479
5141
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
5480
5142
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
5481
5143
  *
5482
- * # <weight>
5483
- * ## Weight
5144
+ * ## Complexity
5484
5145
  * - `O(B + M + P1 + P2)` where:
5485
5146
  * - `B` is `proposal` size in bytes (length-fee-bounded)
5486
5147
  * - `M` is members-count (code- and governance-bounded)
5487
5148
  * - `P1` is the complexity of `proposal` preimage.
5488
5149
  * - `P2` is proposal-count (code-bounded)
5489
- * - DB:
5490
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
5491
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
5492
- * `O(P2)`)
5493
- * - any mutations done while executing `proposal` (`P1`)
5494
- * - up to 3 events
5495
- * # </weight>
5496
5150
  **/
5497
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>]>;
5498
5152
  /**
@@ -5504,12 +5158,8 @@ declare module '@polkadot/api-base/types/submittable' {
5504
5158
  * Parameters:
5505
5159
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
5506
5160
  *
5507
- * # <weight>
5508
- * Complexity: O(P) where P is the number of max proposals
5509
- * DB Weight:
5510
- * * Reads: Proposals
5511
- * * Writes: Voting, Proposals, ProposalOf
5512
- * # </weight>
5161
+ * ## Complexity
5162
+ * O(P) where P is the number of max proposals
5513
5163
  **/
5514
5164
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5515
5165
  /**
@@ -5517,13 +5167,11 @@ declare module '@polkadot/api-base/types/submittable' {
5517
5167
  *
5518
5168
  * Origin must be a member of the collective.
5519
5169
  *
5520
- * # <weight>
5521
- * ## Weight
5522
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
5523
- * `proposal`
5524
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
5525
- * - 1 event
5526
- * # </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`
5527
5175
  **/
5528
5176
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
5529
5177
  /**
@@ -5534,26 +5182,13 @@ declare module '@polkadot/api-base/types/submittable' {
5534
5182
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
5535
5183
  * or put up for voting.
5536
5184
  *
5537
- * # <weight>
5538
- * ## Weight
5185
+ * ## Complexity
5539
5186
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
5540
5187
  * - `B` is `proposal` size in bytes (length-fee-bounded)
5541
5188
  * - `M` is members-count (code- and governance-bounded)
5542
5189
  * - branching is influenced by `threshold` where:
5543
5190
  * - `P1` is proposal execution complexity (`threshold < 2`)
5544
5191
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
5545
- * - DB:
5546
- * - 1 storage read `is_member` (codec `O(M)`)
5547
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
5548
- * - DB accesses influenced by `threshold`:
5549
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
5550
- * - OR proposal insertion (`threshold <= 2`)
5551
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
5552
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
5553
- * - 1 storage write `ProposalOf` (codec `O(B)`)
5554
- * - 1 storage write `Voting` (codec `O(M)`)
5555
- * - 1 event
5556
- * # </weight>
5557
5192
  **/
5558
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>]>;
5559
5194
  /**
@@ -5564,7 +5199,7 @@ declare module '@polkadot/api-base/types/submittable' {
5564
5199
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
5565
5200
  * weight estimation.
5566
5201
  *
5567
- * Requires root origin.
5202
+ * The dispatch of this call must be `SetMembersOrigin`.
5568
5203
  *
5569
5204
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
5570
5205
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -5576,19 +5211,11 @@ declare module '@polkadot/api-base/types/submittable' {
5576
5211
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
5577
5212
  * with other logic managing the member set.
5578
5213
  *
5579
- * # <weight>
5580
- * ## Weight
5214
+ * ## Complexity:
5581
5215
  * - `O(MP + N)` where:
5582
5216
  * - `M` old-members-count (code- and governance-bounded)
5583
5217
  * - `N` new-members-count (code- and governance-bounded)
5584
5218
  * - `P` proposals-count (code-bounded)
5585
- * - DB:
5586
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
5587
- * members
5588
- * - 1 storage read (codec `O(P)`) for reading the proposals
5589
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
5590
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
5591
- * # </weight>
5592
5219
  **/
5593
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]>;
5594
5221
  /**
@@ -5599,14 +5226,8 @@ declare module '@polkadot/api-base/types/submittable' {
5599
5226
  * Transaction fees will be waived if the member is voting on any particular proposal
5600
5227
  * for the first time and the call is successful. Subsequent vote changes will charge a
5601
5228
  * fee.
5602
- * # <weight>
5603
- * ## Weight
5229
+ * ## Complexity
5604
5230
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
5605
- * - DB:
5606
- * - 1 storage read `Members` (codec `O(M)`)
5607
- * - 1 storage mutation `Voting` (codec `O(M)`)
5608
- * - 1 event
5609
- * # </weight>
5610
5231
  **/
5611
5232
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
5612
5233
  /**
@@ -5739,12 +5360,11 @@ declare module '@polkadot/api-base/types/submittable' {
5739
5360
  *
5740
5361
  * The dispatch origin for this call must be `Inherent`.
5741
5362
  *
5742
- * # <weight>
5363
+ * ## Complexity
5743
5364
  * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
5744
5365
  * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
5745
5366
  * `on_finalize`)
5746
5367
  * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
5747
- * # </weight>
5748
5368
  **/
5749
5369
  set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
5750
5370
  /**
@@ -5763,13 +5383,10 @@ declare module '@polkadot/api-base/types/submittable' {
5763
5383
  * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
5764
5384
  * as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
5765
5385
  *
5766
- * # <weight>
5767
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
5768
- * `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost
5769
- * depends on the implementation of `T::Tippers`.
5770
- * - DbReads: `Tips`, `Tippers`, `tip finder`
5771
- * - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
5772
- * # </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`.
5773
5390
  **/
5774
5391
  closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5775
5392
  /**
@@ -5786,12 +5403,9 @@ declare module '@polkadot/api-base/types/submittable' {
5786
5403
  *
5787
5404
  * Emits `NewTip` if successful.
5788
5405
  *
5789
- * # <weight>
5790
- * - Complexity: `O(R)` where `R` length of `reason`.
5406
+ * ## Complexity
5407
+ * - `O(R)` where `R` length of `reason`.
5791
5408
  * - encoding and hashing of 'reason'
5792
- * - DbReads: `Reasons`, `Tips`
5793
- * - DbWrites: `Reasons`, `Tips`
5794
- * # </weight>
5795
5409
  **/
5796
5410
  reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
5797
5411
  Id: any;
@@ -5818,12 +5432,9 @@ declare module '@polkadot/api-base/types/submittable' {
5818
5432
  *
5819
5433
  * Emits `TipRetracted` if successful.
5820
5434
  *
5821
- * # <weight>
5822
- * - Complexity: `O(1)`
5435
+ * ## Complexity
5436
+ * - `O(1)`
5823
5437
  * - Depends on the length of `T::Hash` which is fixed.
5824
- * - DbReads: `Tips`, `origin account`
5825
- * - DbWrites: `Reasons`, `Tips`, `origin account`
5826
- * # </weight>
5827
5438
  **/
5828
5439
  retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5829
5440
  /**
@@ -5835,10 +5446,8 @@ declare module '@polkadot/api-base/types/submittable' {
5835
5446
  *
5836
5447
  * Emits `TipSlashed` if successful.
5837
5448
  *
5838
- * # <weight>
5839
- * `T` is charged as upper bound given by `ContainsLengthBound`.
5840
- * The actual cost depends on the implementation of `T::Tippers`.
5841
- * # </weight>
5449
+ * ## Complexity
5450
+ * - O(1).
5842
5451
  **/
5843
5452
  slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
5844
5453
  /**
@@ -5856,16 +5465,13 @@ declare module '@polkadot/api-base/types/submittable' {
5856
5465
  * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
5857
5466
  * has started.
5858
5467
  *
5859
- * # <weight>
5860
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
5861
- * `T`, insert tip and check closing, `T` is charged as upper bound given by
5862
- * `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`.
5863
5472
  *
5864
5473
  * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
5865
5474
  * is weighted as if almost full i.e of length `T-1`.
5866
- * - DbReads: `Tippers`, `Tips`
5867
- * - DbWrites: `Tips`
5868
- * # </weight>
5869
5475
  **/
5870
5476
  tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
5871
5477
  /**
@@ -5882,15 +5488,12 @@ declare module '@polkadot/api-base/types/submittable' {
5882
5488
  *
5883
5489
  * Emits `NewTip` if successful.
5884
5490
  *
5885
- * # <weight>
5886
- * - 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.
5887
5493
  * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
5888
5494
  * `ContainsLengthBound`. The actual cost depends on the implementation of
5889
5495
  * `T::Tippers`.
5890
5496
  * - `O(R)`: hashing and encoding of reason of length `R`
5891
- * - DbReads: `Tippers`, `Reasons`
5892
- * - DbWrites: `Reasons`, `Tips`
5893
- * # </weight>
5894
5497
  **/
5895
5498
  tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
5896
5499
  Id: any;
@@ -5915,11 +5518,8 @@ declare module '@polkadot/api-base/types/submittable' {
5915
5518
  *
5916
5519
  * May only be called from `T::ApproveOrigin`.
5917
5520
  *
5918
- * # <weight>
5919
- * - Complexity: O(1).
5920
- * - DbReads: `Proposals`, `Approvals`
5921
- * - DbWrite: `Approvals`
5922
- * # </weight>
5521
+ * ## Complexity
5522
+ * - O(1).
5923
5523
  **/
5924
5524
  approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5925
5525
  /**
@@ -5927,11 +5527,8 @@ declare module '@polkadot/api-base/types/submittable' {
5927
5527
  * is reserved and slashed if the proposal is rejected. It is returned once the
5928
5528
  * proposal is awarded.
5929
5529
  *
5930
- * # <weight>
5931
- * - Complexity: O(1)
5932
- * - DbReads: `ProposalCount`, `origin account`
5933
- * - DbWrites: `ProposalCount`, `Proposals`, `origin account`
5934
- * # </weight>
5530
+ * ## Complexity
5531
+ * - O(1)
5935
5532
  **/
5936
5533
  proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
5937
5534
  Id: any;
@@ -5949,11 +5546,8 @@ declare module '@polkadot/api-base/types/submittable' {
5949
5546
  *
5950
5547
  * May only be called from `T::RejectOrigin`.
5951
5548
  *
5952
- * # <weight>
5953
- * - Complexity: O(1)
5954
- * - DbReads: `Proposals`, `rejected proposer account`
5955
- * - DbWrites: `Proposals`, `rejected proposer account`
5956
- * # </weight>
5549
+ * ## Complexity
5550
+ * - O(1)
5957
5551
  **/
5958
5552
  rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5959
5553
  /**
@@ -5963,10 +5557,8 @@ declare module '@polkadot/api-base/types/submittable' {
5963
5557
  * May only be called from `T::RejectOrigin`.
5964
5558
  * - `proposal_id`: The index of a proposal
5965
5559
  *
5966
- * # <weight>
5967
- * - Complexity: O(A) where `A` is the number of approvals
5968
- * - Db reads and writes: `Approvals`
5969
- * # </weight>
5560
+ * ## Complexity
5561
+ * - O(A) where `A` is the number of approvals
5970
5562
  *
5971
5563
  * Errors:
5972
5564
  * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
@@ -6052,9 +5644,8 @@ declare module '@polkadot/api-base/types/submittable' {
6052
5644
  * If origin is root then the calls are dispatched without checking origin filter. (This
6053
5645
  * includes bypassing `frame_system::Config::BaseCallFilter`).
6054
5646
  *
6055
- * # <weight>
6056
- * - Complexity: O(C) where C is the number of calls to be batched.
6057
- * # </weight>
5647
+ * ## Complexity
5648
+ * - O(C) where C is the number of calls to be batched.
6058
5649
  *
6059
5650
  * This will return `Ok` in all circumstances. To determine the success of the batch, an
6060
5651
  * event is deposited. If a call failed and the batch was interrupted, then the
@@ -6075,9 +5666,8 @@ declare module '@polkadot/api-base/types/submittable' {
6075
5666
  * If origin is root then the calls are dispatched without checking origin filter. (This
6076
5667
  * includes bypassing `frame_system::Config::BaseCallFilter`).
6077
5668
  *
6078
- * # <weight>
6079
- * - Complexity: O(C) where C is the number of calls to be batched.
6080
- * # </weight>
5669
+ * ## Complexity
5670
+ * - O(C) where C is the number of calls to be batched.
6081
5671
  **/
6082
5672
  batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
6083
5673
  /**
@@ -6085,12 +5675,8 @@ declare module '@polkadot/api-base/types/submittable' {
6085
5675
  *
6086
5676
  * The dispatch origin for this call must be _Root_.
6087
5677
  *
6088
- * # <weight>
5678
+ * ## Complexity
6089
5679
  * - O(1).
6090
- * - Limited storage reads.
6091
- * - One DB write (event).
6092
- * - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
6093
- * # </weight>
6094
5680
  **/
6095
5681
  dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | {
6096
5682
  system: any;
@@ -6119,9 +5705,8 @@ declare module '@polkadot/api-base/types/submittable' {
6119
5705
  * If origin is root then the calls are dispatch without checking origin filter. (This
6120
5706
  * includes bypassing `frame_system::Config::BaseCallFilter`).
6121
5707
  *
6122
- * # <weight>
6123
- * - Complexity: O(C) where C is the number of calls to be batched.
6124
- * # </weight>
5708
+ * ## Complexity
5709
+ * - O(C) where C is the number of calls to be batched.
6125
5710
  **/
6126
5711
  forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
6127
5712
  /**
@@ -6155,12 +5740,8 @@ declare module '@polkadot/api-base/types/submittable' {
6155
5740
  *
6156
5741
  * NOTE: This will unlock all schedules through the current block.
6157
5742
  *
6158
- * # <weight>
5743
+ * ## Complexity
6159
5744
  * - `O(1)`.
6160
- * - DbWeight: 4 Reads, 4 Writes
6161
- * - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
6162
- * - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
6163
- * # </weight>
6164
5745
  **/
6165
5746
  forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
6166
5747
  Id: any;
@@ -6219,12 +5800,8 @@ declare module '@polkadot/api-base/types/submittable' {
6219
5800
  *
6220
5801
  * Emits either `VestingCompleted` or `VestingUpdated`.
6221
5802
  *
6222
- * # <weight>
5803
+ * ## Complexity
6223
5804
  * - `O(1)`.
6224
- * - DbWeight: 2 Reads, 2 Writes
6225
- * - Reads: Vesting Storage, Balances Locks, [Sender Account]
6226
- * - Writes: Vesting Storage, Balances Locks, [Sender Account]
6227
- * # </weight>
6228
5805
  **/
6229
5806
  vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
6230
5807
  /**
@@ -6239,12 +5816,8 @@ declare module '@polkadot/api-base/types/submittable' {
6239
5816
  *
6240
5817
  * NOTE: This will unlock all schedules through the current block.
6241
5818
  *
6242
- * # <weight>
5819
+ * ## Complexity
6243
5820
  * - `O(1)`.
6244
- * - DbWeight: 3 Reads, 3 Writes
6245
- * - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
6246
- * - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
6247
- * # </weight>
6248
5821
  **/
6249
5822
  vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
6250
5823
  Id: any;
@@ -6271,12 +5844,8 @@ declare module '@polkadot/api-base/types/submittable' {
6271
5844
  *
6272
5845
  * Emits either `VestingCompleted` or `VestingUpdated`.
6273
5846
  *
6274
- * # <weight>
5847
+ * ## Complexity
6275
5848
  * - `O(1)`.
6276
- * - DbWeight: 3 Reads, 3 Writes
6277
- * - Reads: Vesting Storage, Balances Locks, Target Account
6278
- * - Writes: Vesting Storage, Balances Locks, Target Account
6279
- * # </weight>
6280
5849
  **/
6281
5850
  vestOther: AugmentedSubmittable<(target: MultiAddress | {
6282
5851
  Id: any;