@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/substrate/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
8
8
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
9
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
10
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -185,20 +185,12 @@ declare module '@polkadot/api-base/types/submittable' {
185
185
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
186
186
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
187
187
  *
188
- * # <weight>
189
- * ## Weight
188
+ * ## Complexity
190
189
  * - `O(B + M + P1 + P2)` where:
191
190
  * - `B` is `proposal` size in bytes (length-fee-bounded)
192
191
  * - `M` is members-count (code- and governance-bounded)
193
192
  * - `P1` is the complexity of `proposal` preimage.
194
193
  * - `P2` is proposal-count (code-bounded)
195
- * - DB:
196
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
197
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
198
- * `O(P2)`)
199
- * - any mutations done while executing `proposal` (`P1`)
200
- * - up to 3 events
201
- * # </weight>
202
194
  **/
203
195
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
204
196
  refTime?: any;
@@ -223,20 +215,12 @@ declare module '@polkadot/api-base/types/submittable' {
223
215
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
224
216
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
225
217
  *
226
- * # <weight>
227
- * ## Weight
218
+ * ## Complexity
228
219
  * - `O(B + M + P1 + P2)` where:
229
220
  * - `B` is `proposal` size in bytes (length-fee-bounded)
230
221
  * - `M` is members-count (code- and governance-bounded)
231
222
  * - `P1` is the complexity of `proposal` preimage.
232
223
  * - `P2` is proposal-count (code-bounded)
233
- * - DB:
234
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
235
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
236
- * `O(P2)`)
237
- * - any mutations done while executing `proposal` (`P1`)
238
- * - up to 3 events
239
- * # </weight>
240
224
  **/
241
225
  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>]>;
242
226
  /**
@@ -248,12 +232,8 @@ declare module '@polkadot/api-base/types/submittable' {
248
232
  * Parameters:
249
233
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
250
234
  *
251
- * # <weight>
252
- * Complexity: O(P) where P is the number of max proposals
253
- * DB Weight:
254
- * * Reads: Proposals
255
- * * Writes: Voting, Proposals, ProposalOf
256
- * # </weight>
235
+ * ## Complexity
236
+ * O(P) where P is the number of max proposals
257
237
  **/
258
238
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
259
239
  /**
@@ -261,13 +241,11 @@ declare module '@polkadot/api-base/types/submittable' {
261
241
  *
262
242
  * Origin must be a member of the collective.
263
243
  *
264
- * # <weight>
265
- * ## Weight
266
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
267
- * `proposal`
268
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
269
- * - 1 event
270
- * # </weight>
244
+ * ## Complexity:
245
+ * - `O(B + M + P)` where:
246
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
247
+ * - `M` members-count (code-bounded)
248
+ * - `P` complexity of dispatching `proposal`
271
249
  **/
272
250
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
273
251
  /**
@@ -278,26 +256,13 @@ declare module '@polkadot/api-base/types/submittable' {
278
256
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
279
257
  * or put up for voting.
280
258
  *
281
- * # <weight>
282
- * ## Weight
259
+ * ## Complexity
283
260
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
284
261
  * - `B` is `proposal` size in bytes (length-fee-bounded)
285
262
  * - `M` is members-count (code- and governance-bounded)
286
263
  * - branching is influenced by `threshold` where:
287
264
  * - `P1` is proposal execution complexity (`threshold < 2`)
288
265
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
289
- * - DB:
290
- * - 1 storage read `is_member` (codec `O(M)`)
291
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
292
- * - DB accesses influenced by `threshold`:
293
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
294
- * - OR proposal insertion (`threshold <= 2`)
295
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
296
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
297
- * - 1 storage write `ProposalOf` (codec `O(B)`)
298
- * - 1 storage write `Voting` (codec `O(M)`)
299
- * - 1 event
300
- * # </weight>
301
266
  **/
302
267
  propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
303
268
  /**
@@ -308,7 +273,7 @@ declare module '@polkadot/api-base/types/submittable' {
308
273
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
309
274
  * weight estimation.
310
275
  *
311
- * Requires root origin.
276
+ * The dispatch of this call must be `SetMembersOrigin`.
312
277
  *
313
278
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
314
279
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -320,19 +285,11 @@ declare module '@polkadot/api-base/types/submittable' {
320
285
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
321
286
  * with other logic managing the member set.
322
287
  *
323
- * # <weight>
324
- * ## Weight
288
+ * ## Complexity:
325
289
  * - `O(MP + N)` where:
326
290
  * - `M` old-members-count (code- and governance-bounded)
327
291
  * - `N` new-members-count (code- and governance-bounded)
328
292
  * - `P` proposals-count (code-bounded)
329
- * - DB:
330
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
331
- * members
332
- * - 1 storage read (codec `O(P)`) for reading the proposals
333
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
334
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
335
- * # </weight>
336
293
  **/
337
294
  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]>;
338
295
  /**
@@ -343,14 +300,8 @@ declare module '@polkadot/api-base/types/submittable' {
343
300
  * Transaction fees will be waived if the member is voting on any particular proposal
344
301
  * for the first time and the call is successful. Subsequent vote changes will charge a
345
302
  * fee.
346
- * # <weight>
347
- * ## Weight
303
+ * ## Complexity
348
304
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
349
- * - DB:
350
- * - 1 storage read `Members` (codec `O(M)`)
351
- * - 1 storage mutation `Voting` (codec `O(M)`)
352
- * - 1 event
353
- * # </weight>
354
305
  **/
355
306
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
356
307
  /**
@@ -1068,22 +1019,6 @@ declare module '@polkadot/api-base/types/submittable' {
1068
1019
  **/
1069
1020
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1070
1021
  };
1071
- authorship: {
1072
- /**
1073
- * Provide a set of uncles.
1074
- **/
1075
- setUncles: AugmentedSubmittable<(newUncles: Vec<SpRuntimeHeader> | (SpRuntimeHeader | {
1076
- parentHash?: any;
1077
- number?: any;
1078
- stateRoot?: any;
1079
- extrinsicsRoot?: any;
1080
- digest?: any;
1081
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<SpRuntimeHeader>]>;
1082
- /**
1083
- * Generic tx
1084
- **/
1085
- [key: string]: SubmittableExtrinsicFunction<ApiType>;
1086
- };
1087
1022
  babe: {
1088
1023
  /**
1089
1024
  * Plan an epoch config change. The epoch config change is recorded and will be enacted on
@@ -1139,10 +1074,9 @@ declare module '@polkadot/api-base/types/submittable' {
1139
1074
  /**
1140
1075
  * Exactly as `transfer`, except the origin must be root and the source account may be
1141
1076
  * specified.
1142
- * # <weight>
1077
+ * ## Complexity
1143
1078
  * - Same as transfer, but additional read and write because the source account is not
1144
1079
  * assumed to be in the overlay.
1145
- * # </weight>
1146
1080
  **/
1147
1081
  forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
1148
1082
  Id: any;
@@ -1211,7 +1145,7 @@ declare module '@polkadot/api-base/types/submittable' {
1211
1145
  *
1212
1146
  * The dispatch origin for this call must be `Signed` by the transactor.
1213
1147
  *
1214
- * # <weight>
1148
+ * ## Complexity
1215
1149
  * - Dependent on arguments but not critical, given proper implementations for input config
1216
1150
  * types. See related functions below.
1217
1151
  * - It contains a limited number of reads and writes internally and no complex
@@ -1225,9 +1159,6 @@ declare module '@polkadot/api-base/types/submittable' {
1225
1159
  * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
1226
1160
  * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
1227
1161
  * that the transfer will not kill the origin account.
1228
- * ---------------------------------
1229
- * - Origin account is already in memory, so no DB operations for them.
1230
- * # </weight>
1231
1162
  **/
1232
1163
  transfer: AugmentedSubmittable<(dest: MultiAddress | {
1233
1164
  Id: any;
@@ -1255,9 +1186,8 @@ declare module '@polkadot/api-base/types/submittable' {
1255
1186
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
1256
1187
  * of the funds the account has, causing the sender account to be killed (false), or
1257
1188
  * transfer everything except at least the existential deposit, which will guarantee to
1258
- * keep the sender account alive (true). # <weight>
1189
+ * keep the sender account alive (true). ## Complexity
1259
1190
  * - O(1). Just like transfer, but reading the user's transferable balance first.
1260
- * #</weight>
1261
1191
  **/
1262
1192
  transferAll: AugmentedSubmittable<(dest: MultiAddress | {
1263
1193
  Id: any;
@@ -1301,9 +1231,8 @@ declare module '@polkadot/api-base/types/submittable' {
1301
1231
  *
1302
1232
  * May only be called from the curator.
1303
1233
  *
1304
- * # <weight>
1234
+ * ## Complexity
1305
1235
  * - O(1).
1306
- * # </weight>
1307
1236
  **/
1308
1237
  acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1309
1238
  /**
@@ -1312,9 +1241,8 @@ declare module '@polkadot/api-base/types/submittable' {
1312
1241
  *
1313
1242
  * May only be called from `T::SpendOrigin`.
1314
1243
  *
1315
- * # <weight>
1244
+ * ## Complexity
1316
1245
  * - O(1).
1317
- * # </weight>
1318
1246
  **/
1319
1247
  approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1320
1248
  /**
@@ -1326,9 +1254,8 @@ declare module '@polkadot/api-base/types/submittable' {
1326
1254
  * - `bounty_id`: Bounty ID to award.
1327
1255
  * - `beneficiary`: The beneficiary account whom will receive the payout.
1328
1256
  *
1329
- * # <weight>
1257
+ * ## Complexity
1330
1258
  * - O(1).
1331
- * # </weight>
1332
1259
  **/
1333
1260
  awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
1334
1261
  Id: any;
@@ -1348,9 +1275,8 @@ declare module '@polkadot/api-base/types/submittable' {
1348
1275
  *
1349
1276
  * - `bounty_id`: Bounty ID to claim.
1350
1277
  *
1351
- * # <weight>
1278
+ * ## Complexity
1352
1279
  * - O(1).
1353
- * # </weight>
1354
1280
  **/
1355
1281
  claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1356
1282
  /**
@@ -1361,9 +1287,8 @@ declare module '@polkadot/api-base/types/submittable' {
1361
1287
  *
1362
1288
  * - `bounty_id`: Bounty ID to cancel.
1363
1289
  *
1364
- * # <weight>
1290
+ * ## Complexity
1365
1291
  * - O(1).
1366
- * # </weight>
1367
1292
  **/
1368
1293
  closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1369
1294
  /**
@@ -1374,9 +1299,8 @@ declare module '@polkadot/api-base/types/submittable' {
1374
1299
  * - `bounty_id`: Bounty ID to extend.
1375
1300
  * - `remark`: additional information.
1376
1301
  *
1377
- * # <weight>
1302
+ * ## Complexity
1378
1303
  * - O(1).
1379
- * # </weight>
1380
1304
  **/
1381
1305
  extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
1382
1306
  /**
@@ -1399,9 +1323,8 @@ declare module '@polkadot/api-base/types/submittable' {
1399
1323
  *
1400
1324
  * May only be called from `T::SpendOrigin`.
1401
1325
  *
1402
- * # <weight>
1326
+ * ## Complexity
1403
1327
  * - O(1).
1404
- * # </weight>
1405
1328
  **/
1406
1329
  proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
1407
1330
  Id: any;
@@ -1430,9 +1353,8 @@ declare module '@polkadot/api-base/types/submittable' {
1430
1353
  * anyone in the community to call out that a curator is not doing their due diligence, and
1431
1354
  * we should pick a new curator. In this case the curator should also be slashed.
1432
1355
  *
1433
- * # <weight>
1356
+ * ## Complexity
1434
1357
  * - O(1).
1435
- * # </weight>
1436
1358
  **/
1437
1359
  unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1438
1360
  /**
@@ -1965,20 +1887,12 @@ declare module '@polkadot/api-base/types/submittable' {
1965
1887
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
1966
1888
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
1967
1889
  *
1968
- * # <weight>
1969
- * ## Weight
1890
+ * ## Complexity
1970
1891
  * - `O(B + M + P1 + P2)` where:
1971
1892
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1972
1893
  * - `M` is members-count (code- and governance-bounded)
1973
1894
  * - `P1` is the complexity of `proposal` preimage.
1974
1895
  * - `P2` is proposal-count (code-bounded)
1975
- * - DB:
1976
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
1977
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
1978
- * `O(P2)`)
1979
- * - any mutations done while executing `proposal` (`P1`)
1980
- * - up to 3 events
1981
- * # </weight>
1982
1896
  **/
1983
1897
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
1984
1898
  refTime?: any;
@@ -2003,20 +1917,12 @@ declare module '@polkadot/api-base/types/submittable' {
2003
1917
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
2004
1918
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
2005
1919
  *
2006
- * # <weight>
2007
- * ## Weight
1920
+ * ## Complexity
2008
1921
  * - `O(B + M + P1 + P2)` where:
2009
1922
  * - `B` is `proposal` size in bytes (length-fee-bounded)
2010
1923
  * - `M` is members-count (code- and governance-bounded)
2011
1924
  * - `P1` is the complexity of `proposal` preimage.
2012
1925
  * - `P2` is proposal-count (code-bounded)
2013
- * - DB:
2014
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
2015
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
2016
- * `O(P2)`)
2017
- * - any mutations done while executing `proposal` (`P1`)
2018
- * - up to 3 events
2019
- * # </weight>
2020
1926
  **/
2021
1927
  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>]>;
2022
1928
  /**
@@ -2028,12 +1934,8 @@ declare module '@polkadot/api-base/types/submittable' {
2028
1934
  * Parameters:
2029
1935
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
2030
1936
  *
2031
- * # <weight>
2032
- * Complexity: O(P) where P is the number of max proposals
2033
- * DB Weight:
2034
- * * Reads: Proposals
2035
- * * Writes: Voting, Proposals, ProposalOf
2036
- * # </weight>
1937
+ * ## Complexity
1938
+ * O(P) where P is the number of max proposals
2037
1939
  **/
2038
1940
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
2039
1941
  /**
@@ -2041,13 +1943,11 @@ declare module '@polkadot/api-base/types/submittable' {
2041
1943
  *
2042
1944
  * Origin must be a member of the collective.
2043
1945
  *
2044
- * # <weight>
2045
- * ## Weight
2046
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
2047
- * `proposal`
2048
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
2049
- * - 1 event
2050
- * # </weight>
1946
+ * ## Complexity:
1947
+ * - `O(B + M + P)` where:
1948
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
1949
+ * - `M` members-count (code-bounded)
1950
+ * - `P` complexity of dispatching `proposal`
2051
1951
  **/
2052
1952
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
2053
1953
  /**
@@ -2058,26 +1958,13 @@ declare module '@polkadot/api-base/types/submittable' {
2058
1958
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
2059
1959
  * or put up for voting.
2060
1960
  *
2061
- * # <weight>
2062
- * ## Weight
1961
+ * ## Complexity
2063
1962
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
2064
1963
  * - `B` is `proposal` size in bytes (length-fee-bounded)
2065
1964
  * - `M` is members-count (code- and governance-bounded)
2066
1965
  * - branching is influenced by `threshold` where:
2067
1966
  * - `P1` is proposal execution complexity (`threshold < 2`)
2068
1967
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
2069
- * - DB:
2070
- * - 1 storage read `is_member` (codec `O(M)`)
2071
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
2072
- * - DB accesses influenced by `threshold`:
2073
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
2074
- * - OR proposal insertion (`threshold <= 2`)
2075
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
2076
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
2077
- * - 1 storage write `ProposalOf` (codec `O(B)`)
2078
- * - 1 storage write `Voting` (codec `O(M)`)
2079
- * - 1 event
2080
- * # </weight>
2081
1968
  **/
2082
1969
  propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
2083
1970
  /**
@@ -2088,7 +1975,7 @@ declare module '@polkadot/api-base/types/submittable' {
2088
1975
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
2089
1976
  * weight estimation.
2090
1977
  *
2091
- * Requires root origin.
1978
+ * The dispatch of this call must be `SetMembersOrigin`.
2092
1979
  *
2093
1980
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
2094
1981
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -2100,19 +1987,11 @@ declare module '@polkadot/api-base/types/submittable' {
2100
1987
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
2101
1988
  * with other logic managing the member set.
2102
1989
  *
2103
- * # <weight>
2104
- * ## Weight
1990
+ * ## Complexity:
2105
1991
  * - `O(MP + N)` where:
2106
1992
  * - `M` old-members-count (code- and governance-bounded)
2107
1993
  * - `N` new-members-count (code- and governance-bounded)
2108
1994
  * - `P` proposals-count (code-bounded)
2109
- * - DB:
2110
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
2111
- * members
2112
- * - 1 storage read (codec `O(P)`) for reading the proposals
2113
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
2114
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
2115
- * # </weight>
2116
1995
  **/
2117
1996
  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]>;
2118
1997
  /**
@@ -2123,14 +2002,8 @@ declare module '@polkadot/api-base/types/submittable' {
2123
2002
  * Transaction fees will be waived if the member is voting on any particular proposal
2124
2003
  * for the first time and the call is successful. Subsequent vote changes will charge a
2125
2004
  * fee.
2126
- * # <weight>
2127
- * ## Weight
2005
+ * ## Complexity
2128
2006
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
2129
- * - DB:
2130
- * - 1 storage read `Members` (codec `O(M)`)
2131
- * - 1 storage mutation `Voting` (codec `O(M)`)
2132
- * - 1 event
2133
- * # </weight>
2134
2007
  **/
2135
2008
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
2136
2009
  /**
@@ -2388,6 +2261,30 @@ declare module '@polkadot/api-base/types/submittable' {
2388
2261
  * - `proposal`: The index of the proposal to second.
2389
2262
  **/
2390
2263
  second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
2264
+ /**
2265
+ * Set or clear a metadata of a proposal or a referendum.
2266
+ *
2267
+ * Parameters:
2268
+ * - `origin`: Must correspond to the `MetadataOwner`.
2269
+ * - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
2270
+ * threshold.
2271
+ * - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
2272
+ * threshold.
2273
+ * - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
2274
+ * threshold.
2275
+ * - `Signed` by a creator for a public proposal.
2276
+ * - `Signed` to clear a metadata for a finished referendum.
2277
+ * - `Root` to set a metadata for an ongoing referendum.
2278
+ * - `owner`: an identifier of a metadata owner.
2279
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
2280
+ **/
2281
+ setMetadata: AugmentedSubmittable<(owner: PalletDemocracyMetadataOwner | {
2282
+ External: any;
2283
+ } | {
2284
+ Proposal: any;
2285
+ } | {
2286
+ Referendum: any;
2287
+ } | string | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [PalletDemocracyMetadataOwner, Option<H256>]>;
2391
2288
  /**
2392
2289
  * Undelegate the voting power of the sending account.
2393
2290
  *
@@ -2542,9 +2439,8 @@ declare module '@polkadot/api-base/types/submittable' {
2542
2439
  *
2543
2440
  * The dispatch origin of this call must be root.
2544
2441
  *
2545
- * # <weight>
2546
- * The total number of voters and those that are defunct must be provided as witness data.
2547
- * # </weight>
2442
+ * ## Complexity
2443
+ * - Check is_defunct_voter() details.
2548
2444
  **/
2549
2445
  cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
2550
2446
  /**
@@ -2562,10 +2458,8 @@ declare module '@polkadot/api-base/types/submittable' {
2562
2458
  *
2563
2459
  * Note that this does not affect the designated block number of the next election.
2564
2460
  *
2565
- * # <weight>
2566
- * If we have a replacement, we use a small weight. Else, since this is a root call and
2567
- * will go into phragmen, we assume full block for now.
2568
- * # </weight>
2461
+ * ## Complexity
2462
+ * - Check details of remove_and_replace_member() and do_phragmen().
2569
2463
  **/
2570
2464
  removeMember: AugmentedSubmittable<(who: MultiAddress | {
2571
2465
  Id: any;
@@ -2601,10 +2495,12 @@ declare module '@polkadot/api-base/types/submittable' {
2601
2495
  * next round.
2602
2496
  *
2603
2497
  * The dispatch origin of this call must be signed, and have one of the above roles.
2604
- *
2605
- * # <weight>
2606
2498
  * The type of renouncing must be provided as witness data.
2607
- * # </weight>
2499
+ *
2500
+ * ## Complexity
2501
+ * - Renouncing::Candidate(count): O(count + log(count))
2502
+ * - Renouncing::Member: O(1)
2503
+ * - Renouncing::RunnerUp: O(1)
2608
2504
  **/
2609
2505
  renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
2610
2506
  Member: any;
@@ -2626,9 +2522,9 @@ declare module '@polkadot/api-base/types/submittable' {
2626
2522
  * Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
2627
2523
  * to get their deposit back. Losing the spot in an election will always lead to a slash.
2628
2524
  *
2629
- * # <weight>
2630
2525
  * The number of current candidates must be provided as witness data.
2631
- * # </weight>
2526
+ * ## Complexity
2527
+ * O(C + log(C)) where C is candidate_count.
2632
2528
  **/
2633
2529
  submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
2634
2530
  /**
@@ -2651,10 +2547,6 @@ declare module '@polkadot/api-base/types/submittable' {
2651
2547
  *
2652
2548
  * It is the responsibility of the caller to **NOT** place all of their balance into the
2653
2549
  * lock and keep some for further operations.
2654
- *
2655
- * # <weight>
2656
- * We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less.
2657
- * # </weight>
2658
2550
  **/
2659
2551
  vote: AugmentedSubmittable<(votes: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Compact<u128>]>;
2660
2552
  /**
@@ -2769,11 +2661,8 @@ declare module '@polkadot/api-base/types/submittable' {
2769
2661
  *
2770
2662
  * Emits `RegistrarAdded` if successful.
2771
2663
  *
2772
- * # <weight>
2664
+ * ## Complexity
2773
2665
  * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
2774
- * - One storage mutation (codec `O(R)`).
2775
- * - One event.
2776
- * # </weight>
2777
2666
  **/
2778
2667
  addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
2779
2668
  Id: any;
@@ -2830,12 +2719,10 @@ declare module '@polkadot/api-base/types/submittable' {
2830
2719
  *
2831
2720
  * Emits `JudgementUnrequested` if successful.
2832
2721
  *
2833
- * # <weight>
2722
+ * ## Complexity
2834
2723
  * - `O(R + X)`.
2835
- * - One balance-reserve operation.
2836
- * - One storage mutation `O(R + X)`.
2837
- * - One event
2838
- * # </weight>
2724
+ * - where `R` registrar-count (governance-bounded).
2725
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2839
2726
  **/
2840
2727
  cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2841
2728
  /**
@@ -2848,15 +2735,11 @@ declare module '@polkadot/api-base/types/submittable' {
2848
2735
  *
2849
2736
  * Emits `IdentityCleared` if successful.
2850
2737
  *
2851
- * # <weight>
2738
+ * ## Complexity
2852
2739
  * - `O(R + S + X)`
2853
2740
  * - where `R` registrar-count (governance-bounded).
2854
2741
  * - where `S` subs-count (hard- and deposit-bounded).
2855
2742
  * - where `X` additional-field-count (deposit-bounded and code-bounded).
2856
- * - One balance-unreserve operation.
2857
- * - `2` storage reads and `S + 2` storage deletions.
2858
- * - One event.
2859
- * # </weight>
2860
2743
  **/
2861
2744
  clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2862
2745
  /**
@@ -2873,12 +2756,11 @@ declare module '@polkadot/api-base/types/submittable' {
2873
2756
  *
2874
2757
  * Emits `IdentityKilled` if successful.
2875
2758
  *
2876
- * # <weight>
2877
- * - `O(R + S + X)`.
2878
- * - One balance-reserve operation.
2879
- * - `S + 2` storage mutations.
2880
- * - One event.
2881
- * # </weight>
2759
+ * ## Complexity
2760
+ * - `O(R + S + X)`
2761
+ * - where `R` registrar-count (governance-bounded).
2762
+ * - where `S` subs-count (hard- and deposit-bounded).
2763
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2882
2764
  **/
2883
2765
  killIdentity: AugmentedSubmittable<(target: MultiAddress | {
2884
2766
  Id: any;
@@ -2905,13 +2787,10 @@ declare module '@polkadot/api-base/types/submittable' {
2905
2787
  *
2906
2788
  * Emits `JudgementGiven` if successful.
2907
2789
  *
2908
- * # <weight>
2790
+ * ## Complexity
2909
2791
  * - `O(R + X)`.
2910
- * - One balance-transfer operation.
2911
- * - Up to one account-lookup operation.
2912
- * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
2913
- * - One event.
2914
- * # </weight>
2792
+ * - where `R` registrar-count (governance-bounded).
2793
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2915
2794
  **/
2916
2795
  provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
2917
2796
  Id: any;
@@ -3018,12 +2897,10 @@ declare module '@polkadot/api-base/types/submittable' {
3018
2897
  *
3019
2898
  * Emits `JudgementRequested` if successful.
3020
2899
  *
3021
- * # <weight>
2900
+ * ## Complexity
3022
2901
  * - `O(R + X)`.
3023
- * - One balance-reserve operation.
3024
- * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.
3025
- * - One event.
3026
- * # </weight>
2902
+ * - where `R` registrar-count (governance-bounded).
2903
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
3027
2904
  **/
3028
2905
  requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
3029
2906
  /**
@@ -3035,11 +2912,9 @@ declare module '@polkadot/api-base/types/submittable' {
3035
2912
  * - `index`: the index of the registrar whose fee is to be set.
3036
2913
  * - `new`: the new account ID.
3037
2914
  *
3038
- * # <weight>
2915
+ * ## Complexity
3039
2916
  * - `O(R)`.
3040
- * - One storage mutation `O(R)`.
3041
- * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
3042
- * # </weight>
2917
+ * - where `R` registrar-count (governance-bounded).
3043
2918
  **/
3044
2919
  setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
3045
2920
  Id: any;
@@ -3061,11 +2936,9 @@ declare module '@polkadot/api-base/types/submittable' {
3061
2936
  * - `index`: the index of the registrar whose fee is to be set.
3062
2937
  * - `fee`: the new fee.
3063
2938
  *
3064
- * # <weight>
2939
+ * ## Complexity
3065
2940
  * - `O(R)`.
3066
- * - One storage mutation `O(R)`.
3067
- * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
3068
- * # </weight>
2941
+ * - where `R` registrar-count (governance-bounded).
3069
2942
  **/
3070
2943
  setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
3071
2944
  /**
@@ -3077,11 +2950,9 @@ declare module '@polkadot/api-base/types/submittable' {
3077
2950
  * - `index`: the index of the registrar whose fee is to be set.
3078
2951
  * - `fields`: the fields that the registrar concerns themselves with.
3079
2952
  *
3080
- * # <weight>
2953
+ * ## Complexity
3081
2954
  * - `O(R)`.
3082
- * - One storage mutation `O(R)`.
3083
- * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
3084
- * # </weight>
2955
+ * - where `R` registrar-count (governance-bounded).
3085
2956
  **/
3086
2957
  setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
3087
2958
  /**
@@ -3096,14 +2967,10 @@ declare module '@polkadot/api-base/types/submittable' {
3096
2967
  *
3097
2968
  * Emits `IdentitySet` if successful.
3098
2969
  *
3099
- * # <weight>
2970
+ * ## Complexity
3100
2971
  * - `O(X + X' + R)`
3101
2972
  * - where `X` additional-field-count (deposit-bounded and code-bounded)
3102
2973
  * - where `R` judgements-count (registrar-count-bounded)
3103
- * - One balance reserve operation.
3104
- * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
3105
- * - One event.
3106
- * # </weight>
3107
2974
  **/
3108
2975
  setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
3109
2976
  additional?: any;
@@ -3127,17 +2994,10 @@ declare module '@polkadot/api-base/types/submittable' {
3127
2994
  *
3128
2995
  * - `subs`: The identity's (new) sub-accounts.
3129
2996
  *
3130
- * # <weight>
2997
+ * ## Complexity
3131
2998
  * - `O(P + S)`
3132
2999
  * - where `P` old-subs-count (hard- and deposit-bounded).
3133
3000
  * - where `S` subs-count (hard- and deposit-bounded).
3134
- * - At most one balance operations.
3135
- * - DB:
3136
- * - `P + S` storage mutations (codec complexity `O(1)`)
3137
- * - One storage read (codec complexity `O(P)`).
3138
- * - One storage write (codec complexity `O(S)`).
3139
- * - One storage-exists (`IdentityOf::contains_key`).
3140
- * # </weight>
3141
3001
  **/
3142
3002
  setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
3143
3003
  None: any;
@@ -3159,15 +3019,11 @@ declare module '@polkadot/api-base/types/submittable' {
3159
3019
  };
3160
3020
  imOnline: {
3161
3021
  /**
3162
- * # <weight>
3163
- * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is
3164
- * length of `heartbeat.network_state.external_address`
3022
+ * ## Complexity:
3023
+ * - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
3024
+ * `heartbeat.network_state.external_address`
3165
3025
  * - `O(K)`: decoding of length `K`
3166
3026
  * - `O(E)`: decoding/encoding of length `E`
3167
- * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
3168
- * `ReceivedHeartbeats`
3169
- * - DbWrites: `ReceivedHeartbeats`
3170
- * # </weight>
3171
3027
  **/
3172
3028
  heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
3173
3029
  blockNumber?: any;
@@ -3193,14 +3049,8 @@ declare module '@polkadot/api-base/types/submittable' {
3193
3049
  *
3194
3050
  * Emits `IndexAssigned` if successful.
3195
3051
  *
3196
- * # <weight>
3052
+ * ## Complexity
3197
3053
  * - `O(1)`.
3198
- * - One storage mutation (codec `O(1)`).
3199
- * - One reserve operation.
3200
- * - One event.
3201
- * -------------------
3202
- * - DB Weight: 1 Read/Write (Accounts)
3203
- * # </weight>
3204
3054
  **/
3205
3055
  claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3206
3056
  /**
@@ -3215,16 +3065,8 @@ declare module '@polkadot/api-base/types/submittable' {
3215
3065
  *
3216
3066
  * Emits `IndexAssigned` if successful.
3217
3067
  *
3218
- * # <weight>
3068
+ * ## Complexity
3219
3069
  * - `O(1)`.
3220
- * - One storage mutation (codec `O(1)`).
3221
- * - Up to one reserve operation.
3222
- * - One event.
3223
- * -------------------
3224
- * - DB Weight:
3225
- * - Reads: Indices Accounts, System Account (original owner)
3226
- * - Writes: Indices Accounts, System Account (original owner)
3227
- * # </weight>
3228
3070
  **/
3229
3071
  forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
3230
3072
  Id: any;
@@ -3248,14 +3090,8 @@ declare module '@polkadot/api-base/types/submittable' {
3248
3090
  *
3249
3091
  * Emits `IndexFreed` if successful.
3250
3092
  *
3251
- * # <weight>
3093
+ * ## Complexity
3252
3094
  * - `O(1)`.
3253
- * - One storage mutation (codec `O(1)`).
3254
- * - One reserve operation.
3255
- * - One event.
3256
- * -------------------
3257
- * - DB Weight: 1 Read/Write (Accounts)
3258
- * # </weight>
3259
3095
  **/
3260
3096
  free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3261
3097
  /**
@@ -3269,14 +3105,8 @@ declare module '@polkadot/api-base/types/submittable' {
3269
3105
  *
3270
3106
  * Emits `IndexFrozen` if successful.
3271
3107
  *
3272
- * # <weight>
3108
+ * ## Complexity
3273
3109
  * - `O(1)`.
3274
- * - One storage mutation (codec `O(1)`).
3275
- * - Up to one slash operation.
3276
- * - One event.
3277
- * -------------------
3278
- * - DB Weight: 1 Read/Write (Accounts)
3279
- * # </weight>
3280
3110
  **/
3281
3111
  freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3282
3112
  /**
@@ -3290,16 +3120,8 @@ declare module '@polkadot/api-base/types/submittable' {
3290
3120
  *
3291
3121
  * Emits `IndexAssigned` if successful.
3292
3122
  *
3293
- * # <weight>
3123
+ * ## Complexity
3294
3124
  * - `O(1)`.
3295
- * - One storage mutation (codec `O(1)`).
3296
- * - One transfer operation.
3297
- * - One event.
3298
- * -------------------
3299
- * - DB Weight:
3300
- * - Reads: Indices Accounts, System Account (recipient)
3301
- * - Writes: Indices Accounts, System Account (recipient)
3302
- * # </weight>
3303
3125
  **/
3304
3126
  transfer: AugmentedSubmittable<(updated: MultiAddress | {
3305
3127
  Id: any;
@@ -3425,7 +3247,7 @@ declare module '@polkadot/api-base/types/submittable' {
3425
3247
  *
3426
3248
  * NOTE: If this is the final approval, you will want to use `as_multi` instead.
3427
3249
  *
3428
- * # <weight>
3250
+ * ## Complexity
3429
3251
  * - `O(S)`.
3430
3252
  * - Up to one balance-reserve or unreserve operation.
3431
3253
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -3436,11 +3258,6 @@ declare module '@polkadot/api-base/types/submittable' {
3436
3258
  * - One event.
3437
3259
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
3438
3260
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
3439
- * ----------------------------------
3440
- * - DB Weight:
3441
- * - Read: Multisig Storage, [Caller Account]
3442
- * - Write: Multisig Storage, [Caller Account]
3443
- * # </weight>
3444
3261
  **/
3445
3262
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3446
3263
  height?: any;
@@ -3476,7 +3293,7 @@ declare module '@polkadot/api-base/types/submittable' {
3476
3293
  * on success, result is `Ok` and the result from the interior call, if it was executed,
3477
3294
  * may be found in the deposited `MultisigExecuted` event.
3478
3295
  *
3479
- * # <weight>
3296
+ * ## Complexity
3480
3297
  * - `O(S + Z + Call)`.
3481
3298
  * - Up to one balance-reserve or unreserve operation.
3482
3299
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -3489,12 +3306,6 @@ declare module '@polkadot/api-base/types/submittable' {
3489
3306
  * - The weight of the `call`.
3490
3307
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
3491
3308
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
3492
- * -------------------------------
3493
- * - DB Weight:
3494
- * - Reads: Multisig Storage, [Caller Account]
3495
- * - Writes: Multisig Storage, [Caller Account]
3496
- * - Plus Call Weight
3497
- * # </weight>
3498
3309
  **/
3499
3310
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3500
3311
  height?: any;
@@ -3514,12 +3325,8 @@ declare module '@polkadot/api-base/types/submittable' {
3514
3325
  *
3515
3326
  * Result is equivalent to the dispatched result.
3516
3327
  *
3517
- * # <weight>
3328
+ * ## Complexity
3518
3329
  * O(Z + C) where Z is the length of the call and C its execution weight.
3519
- * -------------------------------
3520
- * - DB Weight: None
3521
- * - Plus Call Weight
3522
- * # </weight>
3523
3330
  **/
3524
3331
  asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
3525
3332
  /**
@@ -3535,7 +3342,7 @@ declare module '@polkadot/api-base/types/submittable' {
3535
3342
  * transaction for this dispatch.
3536
3343
  * - `call_hash`: The hash of the call to be executed.
3537
3344
  *
3538
- * # <weight>
3345
+ * ## Complexity
3539
3346
  * - `O(S)`.
3540
3347
  * - Up to one balance-reserve or unreserve operation.
3541
3348
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -3544,11 +3351,6 @@ declare module '@polkadot/api-base/types/submittable' {
3544
3351
  * - One event.
3545
3352
  * - I/O: 1 read `O(S)`, one remove.
3546
3353
  * - Storage: removes one item.
3547
- * ----------------------------------
3548
- * - DB Weight:
3549
- * - Read: Multisig Storage, [Caller Account], Refund Account
3550
- * - Write: Multisig Storage, [Caller Account], Refund Account
3551
- * # </weight>
3552
3354
  **/
3553
3355
  cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
3554
3356
  height?: any;
@@ -4087,6 +3889,35 @@ declare module '@polkadot/api-base/types/submittable' {
4087
3889
  } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | {
4088
3890
  ownerOfItem?: any;
4089
3891
  } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
3892
+ /**
3893
+ * Mint an item by providing the pre-signed approval.
3894
+ *
3895
+ * Origin must be Signed.
3896
+ *
3897
+ * - `mint_data`: The pre-signed approval that consists of the information about the item,
3898
+ * its metadata, attributes, who can mint it (`None` for anyone) and until what block
3899
+ * number.
3900
+ * - `signature`: The signature of the `data` object.
3901
+ * - `signer`: The `data` object's signer. Should be an owner of the collection.
3902
+ *
3903
+ * Emits `Issued` on success.
3904
+ * Emits `AttributeSet` if the attributes were provided.
3905
+ * Emits `ItemMetadataSet` if the metadata was not empty.
3906
+ **/
3907
+ mintPreSigned: AugmentedSubmittable<(mintData: PalletNftsPreSignedMint | {
3908
+ collection?: any;
3909
+ item?: any;
3910
+ attributes?: any;
3911
+ metadata?: any;
3912
+ onlyAccount?: any;
3913
+ deadline?: any;
3914
+ } | string | Uint8Array, signature: SpRuntimeMultiSignature | {
3915
+ Ed25519: any;
3916
+ } | {
3917
+ Sr25519: any;
3918
+ } | {
3919
+ Ecdsa: any;
3920
+ } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNftsPreSignedMint, SpRuntimeMultiSignature, AccountId32]>;
4090
3921
  /**
4091
3922
  * Allows to pay the tips.
4092
3923
  *
@@ -4913,8 +4744,6 @@ declare module '@polkadot/api-base/types/submittable' {
4913
4744
  * Dispatch the given `call` from an account that the sender is authorised for through
4914
4745
  * `add_proxy`.
4915
4746
  *
4916
- * Removes any corresponding announcement(s).
4917
- *
4918
4747
  * The dispatch origin for this call must be _Signed_.
4919
4748
  *
4920
4749
  * Parameters:
@@ -5228,6 +5057,16 @@ declare module '@polkadot/api-base/types/submittable' {
5228
5057
  * Emits `SubmissionDepositRefunded`.
5229
5058
  **/
5230
5059
  refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5060
+ /**
5061
+ * Set or clear metadata of a referendum.
5062
+ *
5063
+ * Parameters:
5064
+ * - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
5065
+ * metadata of a finished referendum.
5066
+ * - `index`: The index of a referendum to set or clear metadata for.
5067
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
5068
+ **/
5069
+ setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
5231
5070
  /**
5232
5071
  * Propose a referendum on a privileged action.
5233
5072
  *
@@ -5550,6 +5389,16 @@ declare module '@polkadot/api-base/types/submittable' {
5550
5389
  * Emits `SubmissionDepositRefunded`.
5551
5390
  **/
5552
5391
  refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5392
+ /**
5393
+ * Set or clear metadata of a referendum.
5394
+ *
5395
+ * Parameters:
5396
+ * - `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a
5397
+ * metadata of a finished referendum.
5398
+ * - `index`: The index of a referendum to set or clear metadata for.
5399
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
5400
+ **/
5401
+ setMetadata: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<H256>]>;
5553
5402
  /**
5554
5403
  * Propose a referendum on a privileged action.
5555
5404
  *
@@ -5622,10 +5471,6 @@ declare module '@polkadot/api-base/types/submittable' {
5622
5471
  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]>;
5623
5472
  /**
5624
5473
  * Anonymously schedule a task after a delay.
5625
- *
5626
- * # <weight>
5627
- * Same as [`schedule`].
5628
- * # </weight>
5629
5474
  **/
5630
5475
  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]>;
5631
5476
  /**
@@ -5634,10 +5479,6 @@ declare module '@polkadot/api-base/types/submittable' {
5634
5479
  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]>;
5635
5480
  /**
5636
5481
  * Schedule a named task after a delay.
5637
- *
5638
- * # <weight>
5639
- * Same as [`schedule_named`](Self::schedule_named).
5640
- * # </weight>
5641
5482
  **/
5642
5483
  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]>;
5643
5484
  /**
@@ -5656,13 +5497,9 @@ declare module '@polkadot/api-base/types/submittable' {
5656
5497
  * means being a controller account) or directly convertible into a validator ID (which
5657
5498
  * usually means being a stash account).
5658
5499
  *
5659
- * # <weight>
5660
- * - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
5661
- * of `T::Keys::key_ids()` which is fixed.
5662
- * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
5663
- * - DbWrites: `NextKeys`, `origin account`
5664
- * - DbWrites per key id: `KeyOwner`
5665
- * # </weight>
5500
+ * ## Complexity
5501
+ * - `O(1)` in number of key types. Actual cost depends on the number of length of
5502
+ * `T::Keys::key_ids()` which is fixed.
5666
5503
  **/
5667
5504
  purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5668
5505
  /**
@@ -5672,14 +5509,9 @@ declare module '@polkadot/api-base/types/submittable' {
5672
5509
  *
5673
5510
  * The dispatch origin of this function must be signed.
5674
5511
  *
5675
- * # <weight>
5676
- * - Complexity: `O(1)`. Actual cost depends on the number of length of
5677
- * `T::Keys::key_ids()` which is fixed.
5678
- * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
5679
- * - DbWrites: `origin account`, `NextKeys`
5680
- * - DbReads per key id: `KeyOwner`
5681
- * - DbWrites per key id: `KeyOwner`
5682
- * # </weight>
5512
+ * ## Complexity
5513
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
5514
+ * fixed.
5683
5515
  **/
5684
5516
  setKeys: AugmentedSubmittable<(keys: KitchensinkRuntimeSessionKeys | {
5685
5517
  grandpa?: any;
@@ -5704,30 +5536,12 @@ declare module '@polkadot/api-base/types/submittable' {
5704
5536
  * Parameters:
5705
5537
  * - `value`: A one time payment the bid would like to receive when joining the society.
5706
5538
  *
5707
- * # <weight>
5708
- * Key: B (len of bids), C (len of candidates), M (len of members), X (balance reserve)
5709
- * - Storage Reads:
5710
- * - One storage read to check for suspended candidate. O(1)
5711
- * - One storage read to check for suspended member. O(1)
5712
- * - One storage read to retrieve all current bids. O(B)
5713
- * - One storage read to retrieve all current candidates. O(C)
5714
- * - One storage read to retrieve all members. O(M)
5715
- * - Storage Writes:
5716
- * - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
5717
- * w/ read)
5718
- * - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
5719
- * - Notable Computation:
5720
- * - O(B + C + log M) search to check user is not already a part of society.
5721
- * - O(log B) search to insert the new bid sorted.
5722
- * - External Pallet Operations:
5723
- * - One balance reserve operation. O(X)
5724
- * - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
5725
- * - Events:
5726
- * - One event for new bid.
5727
- * - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
5728
- *
5729
- * Total Complexity: O(M + B + C + logM + logB + X)
5730
- * # </weight>
5539
+ * ## Complexity
5540
+ * - O(M + B + C + logM + logB + X)
5541
+ * - B (len of bids)
5542
+ * - C (len of candidates)
5543
+ * - M (len of members)
5544
+ * - X (balance reserve)
5731
5545
  **/
5732
5546
  bid: AugmentedSubmittable<(value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
5733
5547
  /**
@@ -5739,14 +5553,9 @@ declare module '@polkadot/api-base/types/submittable' {
5739
5553
  * - `approve`: A boolean which says if the candidate should be
5740
5554
  * approved (`true`) or rejected (`false`).
5741
5555
  *
5742
- * # <weight>
5743
- * - Key: M (len of members)
5744
- * - One storage read O(M) and O(log M) search to check user is a member.
5745
- * - One storage write to add vote to votes. O(1)
5746
- * - One event.
5747
- *
5748
- * Total Complexity: O(M + logM)
5749
- * # </weight>
5556
+ * ## Complexity
5557
+ * - O(M + logM)
5558
+ * - M (len of members)
5750
5559
  **/
5751
5560
  defenderVote: AugmentedSubmittable<(approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
5752
5561
  /**
@@ -5762,13 +5571,8 @@ declare module '@polkadot/api-base/types/submittable' {
5762
5571
  * - `max_members` - The initial max number of members for the society.
5763
5572
  * - `rules` - The rules of this society concerning membership.
5764
5573
  *
5765
- * # <weight>
5766
- * - Two storage mutates to set `Head` and `Founder`. O(1)
5767
- * - One storage write to add the first member to society. O(1)
5768
- * - One event.
5769
- *
5770
- * Total Complexity: O(1)
5771
- * # </weight>
5574
+ * ## Complexity
5575
+ * - O(1)
5772
5576
  **/
5773
5577
  found: AugmentedSubmittable<(founder: MultiAddress | {
5774
5578
  Id: any;
@@ -5799,29 +5603,11 @@ declare module '@polkadot/api-base/types/submittable' {
5799
5603
  * - `who` - The suspended candidate to be judged.
5800
5604
  * - `judgement` - `Approve`, `Reject`, or `Rebid`.
5801
5605
  *
5802
- * # <weight>
5803
- * Key: B (len of bids), M (len of members), X (balance action)
5804
- * - One storage read to check `who` is a suspended candidate.
5805
- * - One storage removal of the suspended candidate.
5806
- * - Approve Logic
5807
- * - One storage read to get the available pot to pay users with. O(1)
5808
- * - One storage write to update the available pot. O(1)
5809
- * - One storage read to get the current block number. O(1)
5810
- * - One storage read to get all members. O(M)
5811
- * - Up to one unreserve currency action.
5812
- * - Up to two new storage writes to payouts.
5813
- * - Up to one storage write with O(log M) binary search to add a member to society.
5814
- * - Reject Logic
5815
- * - Up to one repatriate reserved currency action. O(X)
5816
- * - Up to one storage write to ban the vouching member from vouching again.
5817
- * - Rebid Logic
5818
- * - Storage mutate with O(log B) binary search to place the user back into bids.
5819
- * - Up to one additional event if unvouch takes place.
5820
- * - One storage removal.
5821
- * - One event for the judgement.
5822
- *
5823
- * Total Complexity: O(M + logM + B + X)
5824
- * # </weight>
5606
+ * ## Complexity
5607
+ * - O(M + logM + B + X)
5608
+ * - B (len of bids)
5609
+ * - M (len of members)
5610
+ * - X (balance action)
5825
5611
  **/
5826
5612
  judgeSuspendedCandidate: AugmentedSubmittable<(who: MultiAddress | {
5827
5613
  Id: any;
@@ -5850,19 +5636,10 @@ declare module '@polkadot/api-base/types/submittable' {
5850
5636
  * - `forgive` - A boolean representing whether the suspension judgement origin forgives
5851
5637
  * (`true`) or rejects (`false`) a suspended member.
5852
5638
  *
5853
- * # <weight>
5854
- * Key: B (len of bids), M (len of members)
5855
- * - One storage read to check `who` is a suspended member. O(1)
5856
- * - Up to one storage write O(M) with O(log M) binary search to add a member back to
5857
- * society.
5858
- * - Up to 3 storage removals O(1) to clean up a removed member.
5859
- * - Up to one storage write O(B) with O(B) search to remove vouched bid from bids.
5860
- * - Up to one additional event if unvouch takes place.
5861
- * - One storage removal. O(1)
5862
- * - One event for the judgement.
5863
- *
5864
- * Total Complexity: O(M + logM + B)
5865
- * # </weight>
5639
+ * ## Complexity
5640
+ * - O(M + logM + B)
5641
+ * - B (len of bids)
5642
+ * - M (len of members)
5866
5643
  **/
5867
5644
  judgeSuspendedMember: AugmentedSubmittable<(who: MultiAddress | {
5868
5645
  Id: any;
@@ -5887,16 +5664,11 @@ declare module '@polkadot/api-base/types/submittable' {
5887
5664
  * The dispatch origin for this call must be _Signed_ and a member with
5888
5665
  * payouts remaining.
5889
5666
  *
5890
- * # <weight>
5891
- * Key: M (len of members), P (number of payouts for a particular member)
5892
- * - One storage read O(M) and O(log M) search to check signer is a member.
5893
- * - One storage read O(P) to get all payouts for a member.
5894
- * - One storage read O(1) to get the current block number.
5895
- * - One currency transfer call. O(X)
5896
- * - One storage write or removal to update the member's payouts. O(P)
5897
- *
5898
- * Total Complexity: O(M + logM + P + X)
5899
- * # </weight>
5667
+ * ## Complexity
5668
+ * - O(M + logM + P + X)
5669
+ * - M (len of members)
5670
+ * - P (number of payouts for a particular member)
5671
+ * - X (currency transfer call)
5900
5672
  **/
5901
5673
  payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5902
5674
  /**
@@ -5908,12 +5680,8 @@ declare module '@polkadot/api-base/types/submittable' {
5908
5680
  * Parameters:
5909
5681
  * - `max` - The maximum number of members for the society.
5910
5682
  *
5911
- * # <weight>
5912
- * - One storage write to update the max. O(1)
5913
- * - One event.
5914
- *
5915
- * Total Complexity: O(1)
5916
- * # </weight>
5683
+ * ## Complexity
5684
+ * - O(1)
5917
5685
  **/
5918
5686
  setMaxMembers: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5919
5687
  /**
@@ -5928,14 +5696,10 @@ declare module '@polkadot/api-base/types/submittable' {
5928
5696
  * Parameters:
5929
5697
  * - `pos`: Position in the `Bids` vector of the bid who wants to unbid.
5930
5698
  *
5931
- * # <weight>
5932
- * Key: B (len of bids), X (balance unreserve)
5933
- * - One storage read and write to retrieve and update the bids. O(B)
5934
- * - Either one unreserve balance action O(X) or one vouching storage removal. O(1)
5935
- * - One event.
5936
- *
5937
- * Total Complexity: O(B + X)
5938
- * # </weight>
5699
+ * ## Complexity
5700
+ * - O(B + X)
5701
+ * - B (len of bids)
5702
+ * - X (balance unreserve)
5939
5703
  **/
5940
5704
  unbid: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5941
5705
  /**
@@ -5945,13 +5709,8 @@ declare module '@polkadot/api-base/types/submittable' {
5945
5709
  * the `Founder` and the `Head`. This implies that it may only be done when there is one
5946
5710
  * member.
5947
5711
  *
5948
- * # <weight>
5949
- * - Two storage reads O(1).
5950
- * - Four storage removals O(1).
5951
- * - One event.
5952
- *
5953
- * Total Complexity: O(1)
5954
- * # </weight>
5712
+ * ## Complexity
5713
+ * - O(1)
5955
5714
  **/
5956
5715
  unfound: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5957
5716
  /**
@@ -5963,15 +5722,9 @@ declare module '@polkadot/api-base/types/submittable' {
5963
5722
  * Parameters:
5964
5723
  * - `pos`: Position in the `Bids` vector of the bid who should be unvouched.
5965
5724
  *
5966
- * # <weight>
5967
- * Key: B (len of bids)
5968
- * - One storage read O(1) to check the signer is a vouching member.
5969
- * - One storage mutate to retrieve and update the bids. O(B)
5970
- * - One vouching storage removal. O(1)
5971
- * - One event.
5972
- *
5973
- * Total Complexity: O(B)
5974
- * # </weight>
5725
+ * ## Complexity
5726
+ * - O(B)
5727
+ * - B (len of bids)
5975
5728
  **/
5976
5729
  unvouch: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5977
5730
  /**
@@ -5984,16 +5737,10 @@ declare module '@polkadot/api-base/types/submittable' {
5984
5737
  * - `approve`: A boolean which says if the candidate should be approved (`true`) or
5985
5738
  * rejected (`false`).
5986
5739
  *
5987
- * # <weight>
5988
- * Key: C (len of candidates), M (len of members)
5989
- * - One storage read O(M) and O(log M) search to check user is a member.
5990
- * - One account lookup.
5991
- * - One storage read O(C) and O(C) search to check that user is a candidate.
5992
- * - One storage write to add vote to votes. O(1)
5993
- * - One event.
5994
- *
5995
- * Total Complexity: O(M + logM + C)
5996
- * # </weight>
5740
+ * ## Complexity
5741
+ * - O(M + logM + C)
5742
+ * - C (len of candidates)
5743
+ * - M (len of members)
5997
5744
  **/
5998
5745
  vote: AugmentedSubmittable<(candidate: MultiAddress | {
5999
5746
  Id: any;
@@ -6025,33 +5772,12 @@ declare module '@polkadot/api-base/types/submittable' {
6025
5772
  * - `tip`: Your cut of the total `value` payout when the candidate is inducted into
6026
5773
  * the society. Tips larger than `value` will be saturated upon payout.
6027
5774
  *
6028
- * # <weight>
6029
- * Key: B (len of bids), C (len of candidates), M (len of members)
6030
- * - Storage Reads:
6031
- * - One storage read to retrieve all members. O(M)
6032
- * - One storage read to check member is not already vouching. O(1)
6033
- * - One storage read to check for suspended candidate. O(1)
6034
- * - One storage read to check for suspended member. O(1)
6035
- * - One storage read to retrieve all current bids. O(B)
6036
- * - One storage read to retrieve all current candidates. O(C)
6037
- * - Storage Writes:
6038
- * - One storage write to insert vouching status to the member. O(1)
6039
- * - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
6040
- * w/ read)
6041
- * - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
6042
- * - Notable Computation:
6043
- * - O(log M) search to check sender is a member.
6044
- * - O(B + C + log M) search to check user is not already a part of society.
6045
- * - O(log B) search to insert the new bid sorted.
6046
- * - External Pallet Operations:
6047
- * - One balance reserve operation. O(X)
6048
- * - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
6049
- * - Events:
6050
- * - One event for vouch.
6051
- * - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
6052
- *
6053
- * Total Complexity: O(M + B + C + logM + logB + X)
6054
- * # </weight>
5775
+ * ## Complexity
5776
+ * - O(M + B + C + logM + logB + X)
5777
+ * - B (len of bids)
5778
+ * - C (len of candidates)
5779
+ * - M (len of members)
5780
+ * - X (balance reserve)
6055
5781
  **/
6056
5782
  vouch: AugmentedSubmittable<(who: MultiAddress | {
6057
5783
  Id: any;
@@ -6079,15 +5805,13 @@ declare module '@polkadot/api-base/types/submittable' {
6079
5805
  * The dispatch origin for this call must be _Signed_ by the stash account.
6080
5806
  *
6081
5807
  * Emits `Bonded`.
6082
- * # <weight>
5808
+ * ## Complexity
6083
5809
  * - Independent of the arguments. Moderate complexity.
6084
5810
  * - O(1).
6085
5811
  * - Three extra DB entries.
6086
5812
  *
6087
5813
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
6088
5814
  * unless the `origin` falls below _existential deposit_ and gets removed as dust.
6089
- * ------------------
6090
- * # </weight>
6091
5815
  **/
6092
5816
  bond: AugmentedSubmittable<(controller: MultiAddress | {
6093
5817
  Id: any;
@@ -6122,10 +5846,9 @@ declare module '@polkadot/api-base/types/submittable' {
6122
5846
  *
6123
5847
  * Emits `Bonded`.
6124
5848
  *
6125
- * # <weight>
5849
+ * ## Complexity
6126
5850
  * - Independent of the arguments. Insignificant complexity.
6127
5851
  * - O(1).
6128
- * # </weight>
6129
5852
  **/
6130
5853
  bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
6131
5854
  /**
@@ -6143,11 +5866,10 @@ declare module '@polkadot/api-base/types/submittable' {
6143
5866
  *
6144
5867
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
6145
5868
  *
6146
- * # <weight>
5869
+ * ## Complexity
6147
5870
  * - Independent of the arguments. Insignificant complexity.
6148
5871
  * - Contains one read.
6149
5872
  * - Writes are limited to the `origin` account key.
6150
- * # </weight>
6151
5873
  **/
6152
5874
  chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
6153
5875
  /**
@@ -6197,11 +5919,9 @@ declare module '@polkadot/api-base/types/submittable' {
6197
5919
  * If this is called just before a new era is triggered, the election process may not
6198
5920
  * have enough blocks to get a result.
6199
5921
  *
6200
- * # <weight>
5922
+ * ## Complexity
6201
5923
  * - No arguments.
6202
5924
  * - Weight: O(1)
6203
- * - Write ForceEra
6204
- * # </weight>
6205
5925
  **/
6206
5926
  forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
6207
5927
  /**
@@ -6227,11 +5947,9 @@ declare module '@polkadot/api-base/types/submittable' {
6227
5947
  * Thus the election process may be ongoing when this is called. In this case the
6228
5948
  * election will continue until the next era is triggered.
6229
5949
  *
6230
- * # <weight>
5950
+ * ## Complexity
6231
5951
  * - No arguments.
6232
5952
  * - Weight: O(1)
6233
- * - Write: ForceEra
6234
- * # </weight>
6235
5953
  **/
6236
5954
  forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
6237
5955
  /**
@@ -6246,9 +5964,8 @@ declare module '@polkadot/api-base/types/submittable' {
6246
5964
  *
6247
5965
  * The dispatch origin must be Root.
6248
5966
  *
6249
- * # <weight>
5967
+ * ## Complexity
6250
5968
  * Same as [`Self::set_validator_count`].
6251
- * # </weight>
6252
5969
  **/
6253
5970
  increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
6254
5971
  /**
@@ -6282,11 +5999,10 @@ declare module '@polkadot/api-base/types/submittable' {
6282
5999
  *
6283
6000
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
6284
6001
  *
6285
- * # <weight>
6002
+ * ## Complexity
6286
6003
  * - The transaction's complexity is proportional to the size of `targets` (N)
6287
6004
  * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
6288
6005
  * - Both the reads and writes follow a similar pattern.
6289
- * # </weight>
6290
6006
  **/
6291
6007
  nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
6292
6008
  Id: any;
@@ -6309,18 +6025,8 @@ declare module '@polkadot/api-base/types/submittable' {
6309
6025
  * The origin of this call must be _Signed_. Any account can call this function, even if
6310
6026
  * it is not one of the stakers.
6311
6027
  *
6312
- * # <weight>
6313
- * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
6314
- * - Contains a limited number of reads and writes.
6315
- * -----------
6316
- * N is the Number of payouts for the validator (including the validator)
6317
- * Weight:
6318
- * - Reward Destination Staked: O(N)
6319
- * - Reward Destination Controller (Creating): O(N)
6320
- *
6321
- * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
6322
- * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
6323
- * # </weight>
6028
+ * ## Complexity
6029
+ * - At most O(MaxNominatorRewardedPerValidator).
6324
6030
  **/
6325
6031
  payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
6326
6032
  /**
@@ -6343,11 +6049,9 @@ declare module '@polkadot/api-base/types/submittable' {
6343
6049
  *
6344
6050
  * The dispatch origin must be signed by the controller.
6345
6051
  *
6346
- * # <weight>
6052
+ * ## Complexity
6347
6053
  * - Time complexity: O(L), where L is unlocking chunks
6348
6054
  * - Bounded by `MaxUnlockingChunks`.
6349
- * - Storage changes: Can't increase storage, only decrease it.
6350
- * # </weight>
6351
6055
  **/
6352
6056
  rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
6353
6057
  /**
@@ -6356,9 +6060,8 @@ declare module '@polkadot/api-base/types/submittable' {
6356
6060
  *
6357
6061
  * The dispatch origin must be Root.
6358
6062
  *
6359
- * # <weight>
6063
+ * ## Complexity
6360
6064
  * Same as [`Self::set_validator_count`].
6361
- * # </weight>
6362
6065
  **/
6363
6066
  scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
6364
6067
  /**
@@ -6368,16 +6071,11 @@ declare module '@polkadot/api-base/types/submittable' {
6368
6071
  *
6369
6072
  * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
6370
6073
  *
6371
- * # <weight>
6074
+ * ## Complexity
6075
+ * O(1)
6372
6076
  * - Independent of the arguments. Insignificant complexity.
6373
6077
  * - Contains a limited number of reads.
6374
6078
  * - Writes are limited to the `origin` account key.
6375
- * ----------
6376
- * Weight: O(1)
6377
- * DB Weight:
6378
- * - Read: Bonded, Ledger New Controller, Ledger Old Controller
6379
- * - Write: Bonded, Ledger New Controller, Ledger Old Controller
6380
- * # </weight>
6381
6079
  **/
6382
6080
  setController: AugmentedSubmittable<(controller: MultiAddress | {
6383
6081
  Id: any;
@@ -6410,16 +6108,12 @@ declare module '@polkadot/api-base/types/submittable' {
6410
6108
  *
6411
6109
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
6412
6110
  *
6413
- * # <weight>
6111
+ * ## Complexity
6112
+ * - O(1)
6414
6113
  * - Independent of the arguments. Insignificant complexity.
6415
6114
  * - Contains a limited number of reads.
6416
6115
  * - Writes are limited to the `origin` account key.
6417
6116
  * ---------
6418
- * - Weight: O(1)
6419
- * - DB Weight:
6420
- * - Read: Ledger
6421
- * - Write: Payee
6422
- * # </weight>
6423
6117
  **/
6424
6118
  setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
6425
6119
  Staked: any;
@@ -6493,10 +6187,8 @@ declare module '@polkadot/api-base/types/submittable' {
6493
6187
  *
6494
6188
  * The dispatch origin must be Root.
6495
6189
  *
6496
- * # <weight>
6497
- * Weight: O(1)
6498
- * Write: Validator Count
6499
- * # </weight>
6190
+ * ## Complexity
6191
+ * O(1)
6500
6192
  **/
6501
6193
  setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
6502
6194
  /**
@@ -6544,10 +6236,9 @@ declare module '@polkadot/api-base/types/submittable' {
6544
6236
  *
6545
6237
  * See also [`Call::unbond`].
6546
6238
  *
6547
- * # <weight>
6548
- * Complexity O(S) where S is the number of slashing spans to remove
6239
+ * ## Complexity
6240
+ * O(S) where S is the number of slashing spans to remove
6549
6241
  * NOTE: Weight annotation is the kill scenario, we refund otherwise.
6550
- * # </weight>
6551
6242
  **/
6552
6243
  withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
6553
6244
  /**
@@ -6657,11 +6348,8 @@ declare module '@polkadot/api-base/types/submittable' {
6657
6348
  *
6658
6349
  * The dispatch origin for this call must be _Signed_.
6659
6350
  *
6660
- * # <weight>
6351
+ * ## Complexity
6661
6352
  * - O(1).
6662
- * - Limited storage reads.
6663
- * - One DB change.
6664
- * # </weight>
6665
6353
  **/
6666
6354
  setKey: AugmentedSubmittable<(updated: MultiAddress | {
6667
6355
  Id: any;
@@ -6679,12 +6367,8 @@ declare module '@polkadot/api-base/types/submittable' {
6679
6367
  *
6680
6368
  * The dispatch origin for this call must be _Signed_.
6681
6369
  *
6682
- * # <weight>
6370
+ * ## Complexity
6683
6371
  * - O(1).
6684
- * - Limited storage reads.
6685
- * - One DB write (event).
6686
- * - Weight of derivative `call` execution + 10,000.
6687
- * # </weight>
6688
6372
  **/
6689
6373
  sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
6690
6374
  /**
@@ -6693,12 +6377,8 @@ declare module '@polkadot/api-base/types/submittable' {
6693
6377
  *
6694
6378
  * The dispatch origin for this call must be _Signed_.
6695
6379
  *
6696
- * # <weight>
6380
+ * ## Complexity
6697
6381
  * - O(1).
6698
- * - Limited storage reads.
6699
- * - One DB write (event).
6700
- * - Weight of derivative `call` execution + 10,000.
6701
- * # </weight>
6702
6382
  **/
6703
6383
  sudoAs: AugmentedSubmittable<(who: MultiAddress | {
6704
6384
  Id: any;
@@ -6718,10 +6398,8 @@ declare module '@polkadot/api-base/types/submittable' {
6718
6398
  *
6719
6399
  * The dispatch origin for this call must be _Signed_.
6720
6400
  *
6721
- * # <weight>
6401
+ * ## Complexity
6722
6402
  * - O(1).
6723
- * - The weight of this call is defined by the caller.
6724
- * # </weight>
6725
6403
  **/
6726
6404
  sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
6727
6405
  refTime?: any;
@@ -6747,9 +6425,8 @@ declare module '@polkadot/api-base/types/submittable' {
6747
6425
  /**
6748
6426
  * Make some on-chain remark.
6749
6427
  *
6750
- * # <weight>
6428
+ * ## Complexity
6751
6429
  * - `O(1)`
6752
- * # </weight>
6753
6430
  **/
6754
6431
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
6755
6432
  /**
@@ -6759,28 +6436,15 @@ declare module '@polkadot/api-base/types/submittable' {
6759
6436
  /**
6760
6437
  * Set the new runtime code.
6761
6438
  *
6762
- * # <weight>
6439
+ * ## Complexity
6763
6440
  * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
6764
- * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
6765
- * expensive).
6766
- * - 1 storage write (codec `O(C)`).
6767
- * - 1 digest item.
6768
- * - 1 event.
6769
- * The weight of this function is dependent on the runtime, but generally this is very
6770
- * expensive. We will treat this as a full block.
6771
- * # </weight>
6772
6441
  **/
6773
6442
  setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
6774
6443
  /**
6775
6444
  * Set the new runtime code without doing any checks of the given `code`.
6776
6445
  *
6777
- * # <weight>
6446
+ * ## Complexity
6778
6447
  * - `O(C)` where `C` length of `code`
6779
- * - 1 storage write (codec `O(C)`).
6780
- * - 1 digest item.
6781
- * - 1 event.
6782
- * The weight of this function is dependent on the runtime. We will treat this as a full
6783
- * block. # </weight>
6784
6448
  **/
6785
6449
  setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
6786
6450
  /**
@@ -6816,20 +6480,12 @@ declare module '@polkadot/api-base/types/submittable' {
6816
6480
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
6817
6481
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
6818
6482
  *
6819
- * # <weight>
6820
- * ## Weight
6483
+ * ## Complexity
6821
6484
  * - `O(B + M + P1 + P2)` where:
6822
6485
  * - `B` is `proposal` size in bytes (length-fee-bounded)
6823
6486
  * - `M` is members-count (code- and governance-bounded)
6824
6487
  * - `P1` is the complexity of `proposal` preimage.
6825
6488
  * - `P2` is proposal-count (code-bounded)
6826
- * - DB:
6827
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
6828
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
6829
- * `O(P2)`)
6830
- * - any mutations done while executing `proposal` (`P1`)
6831
- * - up to 3 events
6832
- * # </weight>
6833
6489
  **/
6834
6490
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
6835
6491
  refTime?: any;
@@ -6854,20 +6510,12 @@ declare module '@polkadot/api-base/types/submittable' {
6854
6510
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
6855
6511
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
6856
6512
  *
6857
- * # <weight>
6858
- * ## Weight
6513
+ * ## Complexity
6859
6514
  * - `O(B + M + P1 + P2)` where:
6860
6515
  * - `B` is `proposal` size in bytes (length-fee-bounded)
6861
6516
  * - `M` is members-count (code- and governance-bounded)
6862
6517
  * - `P1` is the complexity of `proposal` preimage.
6863
6518
  * - `P2` is proposal-count (code-bounded)
6864
- * - DB:
6865
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
6866
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
6867
- * `O(P2)`)
6868
- * - any mutations done while executing `proposal` (`P1`)
6869
- * - up to 3 events
6870
- * # </weight>
6871
6519
  **/
6872
6520
  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>]>;
6873
6521
  /**
@@ -6879,12 +6527,8 @@ declare module '@polkadot/api-base/types/submittable' {
6879
6527
  * Parameters:
6880
6528
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
6881
6529
  *
6882
- * # <weight>
6883
- * Complexity: O(P) where P is the number of max proposals
6884
- * DB Weight:
6885
- * * Reads: Proposals
6886
- * * Writes: Voting, Proposals, ProposalOf
6887
- * # </weight>
6530
+ * ## Complexity
6531
+ * O(P) where P is the number of max proposals
6888
6532
  **/
6889
6533
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
6890
6534
  /**
@@ -6892,13 +6536,11 @@ declare module '@polkadot/api-base/types/submittable' {
6892
6536
  *
6893
6537
  * Origin must be a member of the collective.
6894
6538
  *
6895
- * # <weight>
6896
- * ## Weight
6897
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
6898
- * `proposal`
6899
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
6900
- * - 1 event
6901
- * # </weight>
6539
+ * ## Complexity:
6540
+ * - `O(B + M + P)` where:
6541
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
6542
+ * - `M` members-count (code-bounded)
6543
+ * - `P` complexity of dispatching `proposal`
6902
6544
  **/
6903
6545
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
6904
6546
  /**
@@ -6909,26 +6551,13 @@ declare module '@polkadot/api-base/types/submittable' {
6909
6551
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
6910
6552
  * or put up for voting.
6911
6553
  *
6912
- * # <weight>
6913
- * ## Weight
6554
+ * ## Complexity
6914
6555
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
6915
6556
  * - `B` is `proposal` size in bytes (length-fee-bounded)
6916
6557
  * - `M` is members-count (code- and governance-bounded)
6917
6558
  * - branching is influenced by `threshold` where:
6918
6559
  * - `P1` is proposal execution complexity (`threshold < 2`)
6919
6560
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
6920
- * - DB:
6921
- * - 1 storage read `is_member` (codec `O(M)`)
6922
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
6923
- * - DB accesses influenced by `threshold`:
6924
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
6925
- * - OR proposal insertion (`threshold <= 2`)
6926
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
6927
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
6928
- * - 1 storage write `ProposalOf` (codec `O(B)`)
6929
- * - 1 storage write `Voting` (codec `O(M)`)
6930
- * - 1 event
6931
- * # </weight>
6932
6561
  **/
6933
6562
  propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
6934
6563
  /**
@@ -6939,7 +6568,7 @@ declare module '@polkadot/api-base/types/submittable' {
6939
6568
  * - `old_count`: The upper bound for the previous number of members in storage. Used for
6940
6569
  * weight estimation.
6941
6570
  *
6942
- * Requires root origin.
6571
+ * The dispatch of this call must be `SetMembersOrigin`.
6943
6572
  *
6944
6573
  * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
6945
6574
  * the weight estimations rely on it to estimate dispatchable weight.
@@ -6951,19 +6580,11 @@ declare module '@polkadot/api-base/types/submittable' {
6951
6580
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
6952
6581
  * with other logic managing the member set.
6953
6582
  *
6954
- * # <weight>
6955
- * ## Weight
6583
+ * ## Complexity:
6956
6584
  * - `O(MP + N)` where:
6957
6585
  * - `M` old-members-count (code- and governance-bounded)
6958
6586
  * - `N` new-members-count (code- and governance-bounded)
6959
6587
  * - `P` proposals-count (code-bounded)
6960
- * - DB:
6961
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
6962
- * members
6963
- * - 1 storage read (codec `O(P)`) for reading the proposals
6964
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
6965
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
6966
- * # </weight>
6967
6588
  **/
6968
6589
  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]>;
6969
6590
  /**
@@ -6974,14 +6595,8 @@ declare module '@polkadot/api-base/types/submittable' {
6974
6595
  * Transaction fees will be waived if the member is voting on any particular proposal
6975
6596
  * for the first time and the call is successful. Subsequent vote changes will charge a
6976
6597
  * fee.
6977
- * # <weight>
6978
- * ## Weight
6598
+ * ## Complexity
6979
6599
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
6980
- * - DB:
6981
- * - 1 storage read `Members` (codec `O(M)`)
6982
- * - 1 storage mutation `Voting` (codec `O(M)`)
6983
- * - 1 event
6984
- * # </weight>
6985
6600
  **/
6986
6601
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
6987
6602
  /**
@@ -7114,12 +6729,11 @@ declare module '@polkadot/api-base/types/submittable' {
7114
6729
  *
7115
6730
  * The dispatch origin for this call must be `Inherent`.
7116
6731
  *
7117
- * # <weight>
6732
+ * ## Complexity
7118
6733
  * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
7119
6734
  * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
7120
6735
  * `on_finalize`)
7121
6736
  * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
7122
- * # </weight>
7123
6737
  **/
7124
6738
  set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
7125
6739
  /**
@@ -7138,13 +6752,10 @@ declare module '@polkadot/api-base/types/submittable' {
7138
6752
  * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
7139
6753
  * as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
7140
6754
  *
7141
- * # <weight>
7142
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
7143
- * `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost
7144
- * depends on the implementation of `T::Tippers`.
7145
- * - DbReads: `Tips`, `Tippers`, `tip finder`
7146
- * - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
7147
- * # </weight>
6755
+ * ## Complexity
6756
+ * - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
6757
+ * is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
6758
+ * the implementation of `T::Tippers`.
7148
6759
  **/
7149
6760
  closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
7150
6761
  /**
@@ -7161,12 +6772,9 @@ declare module '@polkadot/api-base/types/submittable' {
7161
6772
  *
7162
6773
  * Emits `NewTip` if successful.
7163
6774
  *
7164
- * # <weight>
7165
- * - Complexity: `O(R)` where `R` length of `reason`.
6775
+ * ## Complexity
6776
+ * - `O(R)` where `R` length of `reason`.
7166
6777
  * - encoding and hashing of 'reason'
7167
- * - DbReads: `Reasons`, `Tips`
7168
- * - DbWrites: `Reasons`, `Tips`
7169
- * # </weight>
7170
6778
  **/
7171
6779
  reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
7172
6780
  Id: any;
@@ -7193,12 +6801,9 @@ declare module '@polkadot/api-base/types/submittable' {
7193
6801
  *
7194
6802
  * Emits `TipRetracted` if successful.
7195
6803
  *
7196
- * # <weight>
7197
- * - Complexity: `O(1)`
6804
+ * ## Complexity
6805
+ * - `O(1)`
7198
6806
  * - Depends on the length of `T::Hash` which is fixed.
7199
- * - DbReads: `Tips`, `origin account`
7200
- * - DbWrites: `Reasons`, `Tips`, `origin account`
7201
- * # </weight>
7202
6807
  **/
7203
6808
  retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
7204
6809
  /**
@@ -7210,10 +6815,8 @@ declare module '@polkadot/api-base/types/submittable' {
7210
6815
  *
7211
6816
  * Emits `TipSlashed` if successful.
7212
6817
  *
7213
- * # <weight>
7214
- * `T` is charged as upper bound given by `ContainsLengthBound`.
7215
- * The actual cost depends on the implementation of `T::Tippers`.
7216
- * # </weight>
6818
+ * ## Complexity
6819
+ * - O(1).
7217
6820
  **/
7218
6821
  slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
7219
6822
  /**
@@ -7231,16 +6834,13 @@ declare module '@polkadot/api-base/types/submittable' {
7231
6834
  * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
7232
6835
  * has started.
7233
6836
  *
7234
- * # <weight>
7235
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
7236
- * `T`, insert tip and check closing, `T` is charged as upper bound given by
7237
- * `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`.
6837
+ * ## Complexity
6838
+ * - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
6839
+ * tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
6840
+ * The actual cost depends on the implementation of `T::Tippers`.
7238
6841
  *
7239
6842
  * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
7240
6843
  * is weighted as if almost full i.e of length `T-1`.
7241
- * - DbReads: `Tippers`, `Tips`
7242
- * - DbWrites: `Tips`
7243
- * # </weight>
7244
6844
  **/
7245
6845
  tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
7246
6846
  /**
@@ -7257,15 +6857,12 @@ declare module '@polkadot/api-base/types/submittable' {
7257
6857
  *
7258
6858
  * Emits `NewTip` if successful.
7259
6859
  *
7260
- * # <weight>
7261
- * - Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
6860
+ * ## Complexity
6861
+ * - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
7262
6862
  * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
7263
6863
  * `ContainsLengthBound`. The actual cost depends on the implementation of
7264
6864
  * `T::Tippers`.
7265
6865
  * - `O(R)`: hashing and encoding of reason of length `R`
7266
- * - DbReads: `Tippers`, `Reasons`
7267
- * - DbWrites: `Reasons`, `Tips`
7268
- * # </weight>
7269
6866
  **/
7270
6867
  tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
7271
6868
  Id: any;
@@ -7287,12 +6884,10 @@ declare module '@polkadot/api-base/types/submittable' {
7287
6884
  /**
7288
6885
  * Check storage proof for block number `block_number() - StoragePeriod`.
7289
6886
  * If such block does not exist the proof is expected to be `None`.
7290
- * # <weight>
6887
+ * ## Complexity
7291
6888
  * - Linear w.r.t the number of indexed transactions in the proved block for random
7292
6889
  * probing.
7293
6890
  * There's a DB read for each transaction.
7294
- * Here we assume a maximum of 100 probed transactions.
7295
- * # </weight>
7296
6891
  **/
7297
6892
  checkProof: AugmentedSubmittable<(proof: SpTransactionStorageProofTransactionStorageProof | {
7298
6893
  chunk?: any;
@@ -7303,18 +6898,16 @@ declare module '@polkadot/api-base/types/submittable' {
7303
6898
  * previous `store` or `renew` call and transaction index within that block.
7304
6899
  * Transaction index is emitted in the `Stored` or `Renewed` event.
7305
6900
  * Applies same fees as `store`.
7306
- * # <weight>
7307
- * - Constant.
7308
- * # </weight>
6901
+ * ## Complexity
6902
+ * - O(1).
7309
6903
  **/
7310
6904
  renew: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
7311
6905
  /**
7312
6906
  * Index and store data off chain. Minimum data size is 1 bytes, maximum is
7313
6907
  * `MaxTransactionSize`. Data will be removed after `STORAGE_PERIOD` blocks, unless `renew`
7314
- * is called. # <weight>
7315
- * - n*log(n) of data size, as all data is pushed to an in-memory trie.
7316
- * Additionally contains a DB write.
7317
- * # </weight>
6908
+ * is called.
6909
+ * ## Complexity
6910
+ * - O(n*log(n)) of data size, as all data is pushed to an in-memory trie.
7318
6911
  **/
7319
6912
  store: AugmentedSubmittable<(data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
7320
6913
  /**
@@ -7329,11 +6922,8 @@ declare module '@polkadot/api-base/types/submittable' {
7329
6922
  *
7330
6923
  * May only be called from `T::ApproveOrigin`.
7331
6924
  *
7332
- * # <weight>
7333
- * - Complexity: O(1).
7334
- * - DbReads: `Proposals`, `Approvals`
7335
- * - DbWrite: `Approvals`
7336
- * # </weight>
6925
+ * ## Complexity
6926
+ * - O(1).
7337
6927
  **/
7338
6928
  approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
7339
6929
  /**
@@ -7341,11 +6931,8 @@ declare module '@polkadot/api-base/types/submittable' {
7341
6931
  * is reserved and slashed if the proposal is rejected. It is returned once the
7342
6932
  * proposal is awarded.
7343
6933
  *
7344
- * # <weight>
7345
- * - Complexity: O(1)
7346
- * - DbReads: `ProposalCount`, `origin account`
7347
- * - DbWrites: `ProposalCount`, `Proposals`, `origin account`
7348
- * # </weight>
6934
+ * ## Complexity
6935
+ * - O(1)
7349
6936
  **/
7350
6937
  proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
7351
6938
  Id: any;
@@ -7363,11 +6950,8 @@ declare module '@polkadot/api-base/types/submittable' {
7363
6950
  *
7364
6951
  * May only be called from `T::RejectOrigin`.
7365
6952
  *
7366
- * # <weight>
7367
- * - Complexity: O(1)
7368
- * - DbReads: `Proposals`, `rejected proposer account`
7369
- * - DbWrites: `Proposals`, `rejected proposer account`
7370
- * # </weight>
6953
+ * ## Complexity
6954
+ * - O(1)
7371
6955
  **/
7372
6956
  rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
7373
6957
  /**
@@ -7377,10 +6961,8 @@ declare module '@polkadot/api-base/types/submittable' {
7377
6961
  * May only be called from `T::RejectOrigin`.
7378
6962
  * - `proposal_id`: The index of a proposal
7379
6963
  *
7380
- * # <weight>
7381
- * - Complexity: O(A) where `A` is the number of approvals
7382
- * - Db reads and writes: `Approvals`
7383
- * # </weight>
6964
+ * ## Complexity
6965
+ * - O(A) where `A` is the number of approvals
7384
6966
  *
7385
6967
  * Errors:
7386
6968
  * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
@@ -8035,9 +7617,8 @@ declare module '@polkadot/api-base/types/submittable' {
8035
7617
  * If origin is root then the calls are dispatched without checking origin filter. (This
8036
7618
  * includes bypassing `frame_system::Config::BaseCallFilter`).
8037
7619
  *
8038
- * # <weight>
8039
- * - Complexity: O(C) where C is the number of calls to be batched.
8040
- * # </weight>
7620
+ * ## Complexity
7621
+ * - O(C) where C is the number of calls to be batched.
8041
7622
  *
8042
7623
  * This will return `Ok` in all circumstances. To determine the success of the batch, an
8043
7624
  * event is deposited. If a call failed and the batch was interrupted, then the
@@ -8058,9 +7639,8 @@ declare module '@polkadot/api-base/types/submittable' {
8058
7639
  * If origin is root then the calls are dispatched without checking origin filter. (This
8059
7640
  * includes bypassing `frame_system::Config::BaseCallFilter`).
8060
7641
  *
8061
- * # <weight>
8062
- * - Complexity: O(C) where C is the number of calls to be batched.
8063
- * # </weight>
7642
+ * ## Complexity
7643
+ * - O(C) where C is the number of calls to be batched.
8064
7644
  **/
8065
7645
  batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
8066
7646
  /**
@@ -8068,12 +7648,8 @@ declare module '@polkadot/api-base/types/submittable' {
8068
7648
  *
8069
7649
  * The dispatch origin for this call must be _Root_.
8070
7650
  *
8071
- * # <weight>
7651
+ * ## Complexity
8072
7652
  * - O(1).
8073
- * - Limited storage reads.
8074
- * - One DB write (event).
8075
- * - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
8076
- * # </weight>
8077
7653
  **/
8078
7654
  dispatchAs: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | {
8079
7655
  system: any;
@@ -8098,9 +7674,8 @@ declare module '@polkadot/api-base/types/submittable' {
8098
7674
  * If origin is root then the calls are dispatch without checking origin filter. (This
8099
7675
  * includes bypassing `frame_system::Config::BaseCallFilter`).
8100
7676
  *
8101
- * # <weight>
8102
- * - Complexity: O(C) where C is the number of calls to be batched.
8103
- * # </weight>
7677
+ * ## Complexity
7678
+ * - O(C) where C is the number of calls to be batched.
8104
7679
  **/
8105
7680
  forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
8106
7681
  /**
@@ -8134,12 +7709,8 @@ declare module '@polkadot/api-base/types/submittable' {
8134
7709
  *
8135
7710
  * NOTE: This will unlock all schedules through the current block.
8136
7711
  *
8137
- * # <weight>
7712
+ * ## Complexity
8138
7713
  * - `O(1)`.
8139
- * - DbWeight: 4 Reads, 4 Writes
8140
- * - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
8141
- * - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
8142
- * # </weight>
8143
7714
  **/
8144
7715
  forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
8145
7716
  Id: any;
@@ -8198,12 +7769,8 @@ declare module '@polkadot/api-base/types/submittable' {
8198
7769
  *
8199
7770
  * Emits either `VestingCompleted` or `VestingUpdated`.
8200
7771
  *
8201
- * # <weight>
7772
+ * ## Complexity
8202
7773
  * - `O(1)`.
8203
- * - DbWeight: 2 Reads, 2 Writes
8204
- * - Reads: Vesting Storage, Balances Locks, [Sender Account]
8205
- * - Writes: Vesting Storage, Balances Locks, [Sender Account]
8206
- * # </weight>
8207
7774
  **/
8208
7775
  vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
8209
7776
  /**
@@ -8218,12 +7785,8 @@ declare module '@polkadot/api-base/types/submittable' {
8218
7785
  *
8219
7786
  * NOTE: This will unlock all schedules through the current block.
8220
7787
  *
8221
- * # <weight>
7788
+ * ## Complexity
8222
7789
  * - `O(1)`.
8223
- * - DbWeight: 3 Reads, 3 Writes
8224
- * - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
8225
- * - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
8226
- * # </weight>
8227
7790
  **/
8228
7791
  vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
8229
7792
  Id: any;
@@ -8250,12 +7813,8 @@ declare module '@polkadot/api-base/types/submittable' {
8250
7813
  *
8251
7814
  * Emits either `VestingCompleted` or `VestingUpdated`.
8252
7815
  *
8253
- * # <weight>
7816
+ * ## Complexity
8254
7817
  * - `O(1)`.
8255
- * - DbWeight: 3 Reads, 3 Writes
8256
- * - Reads: Vesting Storage, Balances Locks, Target Account
8257
- * - Writes: Vesting Storage, Balances Locks, Target Account
8258
- * # </weight>
8259
7818
  **/
8260
7819
  vestOther: AugmentedSubmittable<(target: MultiAddress | {
8261
7820
  Id: any;