@polkadot/api-augment 9.14.1 → 9.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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, PalletDemocracyMetadataOwner, 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, 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
  /**
@@ -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
  /**
@@ -1123,10 +1074,9 @@ declare module '@polkadot/api-base/types/submittable' {
1123
1074
  /**
1124
1075
  * Exactly as `transfer`, except the origin must be root and the source account may be
1125
1076
  * specified.
1126
- * # <weight>
1077
+ * ## Complexity
1127
1078
  * - Same as transfer, but additional read and write because the source account is not
1128
1079
  * assumed to be in the overlay.
1129
- * # </weight>
1130
1080
  **/
1131
1081
  forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
1132
1082
  Id: any;
@@ -1195,7 +1145,7 @@ declare module '@polkadot/api-base/types/submittable' {
1195
1145
  *
1196
1146
  * The dispatch origin for this call must be `Signed` by the transactor.
1197
1147
  *
1198
- * # <weight>
1148
+ * ## Complexity
1199
1149
  * - Dependent on arguments but not critical, given proper implementations for input config
1200
1150
  * types. See related functions below.
1201
1151
  * - It contains a limited number of reads and writes internally and no complex
@@ -1209,9 +1159,6 @@ declare module '@polkadot/api-base/types/submittable' {
1209
1159
  * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
1210
1160
  * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
1211
1161
  * that the transfer will not kill the origin account.
1212
- * ---------------------------------
1213
- * - Origin account is already in memory, so no DB operations for them.
1214
- * # </weight>
1215
1162
  **/
1216
1163
  transfer: AugmentedSubmittable<(dest: MultiAddress | {
1217
1164
  Id: any;
@@ -1239,9 +1186,8 @@ declare module '@polkadot/api-base/types/submittable' {
1239
1186
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
1240
1187
  * of the funds the account has, causing the sender account to be killed (false), or
1241
1188
  * transfer everything except at least the existential deposit, which will guarantee to
1242
- * keep the sender account alive (true). # <weight>
1189
+ * keep the sender account alive (true). ## Complexity
1243
1190
  * - O(1). Just like transfer, but reading the user's transferable balance first.
1244
- * #</weight>
1245
1191
  **/
1246
1192
  transferAll: AugmentedSubmittable<(dest: MultiAddress | {
1247
1193
  Id: any;
@@ -1285,9 +1231,8 @@ declare module '@polkadot/api-base/types/submittable' {
1285
1231
  *
1286
1232
  * May only be called from the curator.
1287
1233
  *
1288
- * # <weight>
1234
+ * ## Complexity
1289
1235
  * - O(1).
1290
- * # </weight>
1291
1236
  **/
1292
1237
  acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1293
1238
  /**
@@ -1296,9 +1241,8 @@ declare module '@polkadot/api-base/types/submittable' {
1296
1241
  *
1297
1242
  * May only be called from `T::SpendOrigin`.
1298
1243
  *
1299
- * # <weight>
1244
+ * ## Complexity
1300
1245
  * - O(1).
1301
- * # </weight>
1302
1246
  **/
1303
1247
  approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1304
1248
  /**
@@ -1310,9 +1254,8 @@ declare module '@polkadot/api-base/types/submittable' {
1310
1254
  * - `bounty_id`: Bounty ID to award.
1311
1255
  * - `beneficiary`: The beneficiary account whom will receive the payout.
1312
1256
  *
1313
- * # <weight>
1257
+ * ## Complexity
1314
1258
  * - O(1).
1315
- * # </weight>
1316
1259
  **/
1317
1260
  awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
1318
1261
  Id: any;
@@ -1332,9 +1275,8 @@ declare module '@polkadot/api-base/types/submittable' {
1332
1275
  *
1333
1276
  * - `bounty_id`: Bounty ID to claim.
1334
1277
  *
1335
- * # <weight>
1278
+ * ## Complexity
1336
1279
  * - O(1).
1337
- * # </weight>
1338
1280
  **/
1339
1281
  claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1340
1282
  /**
@@ -1345,9 +1287,8 @@ declare module '@polkadot/api-base/types/submittable' {
1345
1287
  *
1346
1288
  * - `bounty_id`: Bounty ID to cancel.
1347
1289
  *
1348
- * # <weight>
1290
+ * ## Complexity
1349
1291
  * - O(1).
1350
- * # </weight>
1351
1292
  **/
1352
1293
  closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1353
1294
  /**
@@ -1358,9 +1299,8 @@ declare module '@polkadot/api-base/types/submittable' {
1358
1299
  * - `bounty_id`: Bounty ID to extend.
1359
1300
  * - `remark`: additional information.
1360
1301
  *
1361
- * # <weight>
1302
+ * ## Complexity
1362
1303
  * - O(1).
1363
- * # </weight>
1364
1304
  **/
1365
1305
  extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
1366
1306
  /**
@@ -1383,9 +1323,8 @@ declare module '@polkadot/api-base/types/submittable' {
1383
1323
  *
1384
1324
  * May only be called from `T::SpendOrigin`.
1385
1325
  *
1386
- * # <weight>
1326
+ * ## Complexity
1387
1327
  * - O(1).
1388
- * # </weight>
1389
1328
  **/
1390
1329
  proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
1391
1330
  Id: any;
@@ -1414,9 +1353,8 @@ declare module '@polkadot/api-base/types/submittable' {
1414
1353
  * anyone in the community to call out that a curator is not doing their due diligence, and
1415
1354
  * we should pick a new curator. In this case the curator should also be slashed.
1416
1355
  *
1417
- * # <weight>
1356
+ * ## Complexity
1418
1357
  * - O(1).
1419
- * # </weight>
1420
1358
  **/
1421
1359
  unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1422
1360
  /**
@@ -1949,20 +1887,12 @@ declare module '@polkadot/api-base/types/submittable' {
1949
1887
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
1950
1888
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
1951
1889
  *
1952
- * # <weight>
1953
- * ## Weight
1890
+ * ## Complexity
1954
1891
  * - `O(B + M + P1 + P2)` where:
1955
1892
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1956
1893
  * - `M` is members-count (code- and governance-bounded)
1957
1894
  * - `P1` is the complexity of `proposal` preimage.
1958
1895
  * - `P2` is proposal-count (code-bounded)
1959
- * - DB:
1960
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
1961
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
1962
- * `O(P2)`)
1963
- * - any mutations done while executing `proposal` (`P1`)
1964
- * - up to 3 events
1965
- * # </weight>
1966
1896
  **/
1967
1897
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
1968
1898
  refTime?: any;
@@ -1987,20 +1917,12 @@ declare module '@polkadot/api-base/types/submittable' {
1987
1917
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
1988
1918
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
1989
1919
  *
1990
- * # <weight>
1991
- * ## Weight
1920
+ * ## Complexity
1992
1921
  * - `O(B + M + P1 + P2)` where:
1993
1922
  * - `B` is `proposal` size in bytes (length-fee-bounded)
1994
1923
  * - `M` is members-count (code- and governance-bounded)
1995
1924
  * - `P1` is the complexity of `proposal` preimage.
1996
1925
  * - `P2` is proposal-count (code-bounded)
1997
- * - DB:
1998
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
1999
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
2000
- * `O(P2)`)
2001
- * - any mutations done while executing `proposal` (`P1`)
2002
- * - up to 3 events
2003
- * # </weight>
2004
1926
  **/
2005
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>]>;
2006
1928
  /**
@@ -2012,12 +1934,8 @@ declare module '@polkadot/api-base/types/submittable' {
2012
1934
  * Parameters:
2013
1935
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
2014
1936
  *
2015
- * # <weight>
2016
- * Complexity: O(P) where P is the number of max proposals
2017
- * DB Weight:
2018
- * * Reads: Proposals
2019
- * * Writes: Voting, Proposals, ProposalOf
2020
- * # </weight>
1937
+ * ## Complexity
1938
+ * O(P) where P is the number of max proposals
2021
1939
  **/
2022
1940
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
2023
1941
  /**
@@ -2025,13 +1943,11 @@ declare module '@polkadot/api-base/types/submittable' {
2025
1943
  *
2026
1944
  * Origin must be a member of the collective.
2027
1945
  *
2028
- * # <weight>
2029
- * ## Weight
2030
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
2031
- * `proposal`
2032
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
2033
- * - 1 event
2034
- * # </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`
2035
1951
  **/
2036
1952
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
2037
1953
  /**
@@ -2042,26 +1958,13 @@ declare module '@polkadot/api-base/types/submittable' {
2042
1958
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
2043
1959
  * or put up for voting.
2044
1960
  *
2045
- * # <weight>
2046
- * ## Weight
1961
+ * ## Complexity
2047
1962
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
2048
1963
  * - `B` is `proposal` size in bytes (length-fee-bounded)
2049
1964
  * - `M` is members-count (code- and governance-bounded)
2050
1965
  * - branching is influenced by `threshold` where:
2051
1966
  * - `P1` is proposal execution complexity (`threshold < 2`)
2052
1967
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
2053
- * - DB:
2054
- * - 1 storage read `is_member` (codec `O(M)`)
2055
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
2056
- * - DB accesses influenced by `threshold`:
2057
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
2058
- * - OR proposal insertion (`threshold <= 2`)
2059
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
2060
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
2061
- * - 1 storage write `ProposalOf` (codec `O(B)`)
2062
- * - 1 storage write `Voting` (codec `O(M)`)
2063
- * - 1 event
2064
- * # </weight>
2065
1968
  **/
2066
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>]>;
2067
1970
  /**
@@ -2084,19 +1987,11 @@ declare module '@polkadot/api-base/types/submittable' {
2084
1987
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
2085
1988
  * with other logic managing the member set.
2086
1989
  *
2087
- * # <weight>
2088
- * ## Weight
1990
+ * ## Complexity:
2089
1991
  * - `O(MP + N)` where:
2090
1992
  * - `M` old-members-count (code- and governance-bounded)
2091
1993
  * - `N` new-members-count (code- and governance-bounded)
2092
1994
  * - `P` proposals-count (code-bounded)
2093
- * - DB:
2094
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
2095
- * members
2096
- * - 1 storage read (codec `O(P)`) for reading the proposals
2097
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
2098
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
2099
- * # </weight>
2100
1995
  **/
2101
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]>;
2102
1997
  /**
@@ -2107,14 +2002,8 @@ declare module '@polkadot/api-base/types/submittable' {
2107
2002
  * Transaction fees will be waived if the member is voting on any particular proposal
2108
2003
  * for the first time and the call is successful. Subsequent vote changes will charge a
2109
2004
  * fee.
2110
- * # <weight>
2111
- * ## Weight
2005
+ * ## Complexity
2112
2006
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
2113
- * - DB:
2114
- * - 1 storage read `Members` (codec `O(M)`)
2115
- * - 1 storage mutation `Voting` (codec `O(M)`)
2116
- * - 1 event
2117
- * # </weight>
2118
2007
  **/
2119
2008
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
2120
2009
  /**
@@ -2550,9 +2439,8 @@ declare module '@polkadot/api-base/types/submittable' {
2550
2439
  *
2551
2440
  * The dispatch origin of this call must be root.
2552
2441
  *
2553
- * # <weight>
2554
- * The total number of voters and those that are defunct must be provided as witness data.
2555
- * # </weight>
2442
+ * ## Complexity
2443
+ * - Check is_defunct_voter() details.
2556
2444
  **/
2557
2445
  cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
2558
2446
  /**
@@ -2570,10 +2458,8 @@ declare module '@polkadot/api-base/types/submittable' {
2570
2458
  *
2571
2459
  * Note that this does not affect the designated block number of the next election.
2572
2460
  *
2573
- * # <weight>
2574
- * If we have a replacement, we use a small weight. Else, since this is a root call and
2575
- * will go into phragmen, we assume full block for now.
2576
- * # </weight>
2461
+ * ## Complexity
2462
+ * - Check details of remove_and_replace_member() and do_phragmen().
2577
2463
  **/
2578
2464
  removeMember: AugmentedSubmittable<(who: MultiAddress | {
2579
2465
  Id: any;
@@ -2609,10 +2495,12 @@ declare module '@polkadot/api-base/types/submittable' {
2609
2495
  * next round.
2610
2496
  *
2611
2497
  * The dispatch origin of this call must be signed, and have one of the above roles.
2612
- *
2613
- * # <weight>
2614
2498
  * The type of renouncing must be provided as witness data.
2615
- * # </weight>
2499
+ *
2500
+ * ## Complexity
2501
+ * - Renouncing::Candidate(count): O(count + log(count))
2502
+ * - Renouncing::Member: O(1)
2503
+ * - Renouncing::RunnerUp: O(1)
2616
2504
  **/
2617
2505
  renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
2618
2506
  Member: any;
@@ -2634,9 +2522,9 @@ declare module '@polkadot/api-base/types/submittable' {
2634
2522
  * Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
2635
2523
  * to get their deposit back. Losing the spot in an election will always lead to a slash.
2636
2524
  *
2637
- * # <weight>
2638
2525
  * The number of current candidates must be provided as witness data.
2639
- * # </weight>
2526
+ * ## Complexity
2527
+ * O(C + log(C)) where C is candidate_count.
2640
2528
  **/
2641
2529
  submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
2642
2530
  /**
@@ -2773,11 +2661,8 @@ declare module '@polkadot/api-base/types/submittable' {
2773
2661
  *
2774
2662
  * Emits `RegistrarAdded` if successful.
2775
2663
  *
2776
- * # <weight>
2664
+ * ## Complexity
2777
2665
  * - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
2778
- * - One storage mutation (codec `O(R)`).
2779
- * - One event.
2780
- * # </weight>
2781
2666
  **/
2782
2667
  addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
2783
2668
  Id: any;
@@ -2834,12 +2719,10 @@ declare module '@polkadot/api-base/types/submittable' {
2834
2719
  *
2835
2720
  * Emits `JudgementUnrequested` if successful.
2836
2721
  *
2837
- * # <weight>
2722
+ * ## Complexity
2838
2723
  * - `O(R + X)`.
2839
- * - One balance-reserve operation.
2840
- * - One storage mutation `O(R + X)`.
2841
- * - One event
2842
- * # </weight>
2724
+ * - where `R` registrar-count (governance-bounded).
2725
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2843
2726
  **/
2844
2727
  cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2845
2728
  /**
@@ -2852,15 +2735,11 @@ declare module '@polkadot/api-base/types/submittable' {
2852
2735
  *
2853
2736
  * Emits `IdentityCleared` if successful.
2854
2737
  *
2855
- * # <weight>
2738
+ * ## Complexity
2856
2739
  * - `O(R + S + X)`
2857
2740
  * - where `R` registrar-count (governance-bounded).
2858
2741
  * - where `S` subs-count (hard- and deposit-bounded).
2859
2742
  * - where `X` additional-field-count (deposit-bounded and code-bounded).
2860
- * - One balance-unreserve operation.
2861
- * - `2` storage reads and `S + 2` storage deletions.
2862
- * - One event.
2863
- * # </weight>
2864
2743
  **/
2865
2744
  clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2866
2745
  /**
@@ -2877,12 +2756,11 @@ declare module '@polkadot/api-base/types/submittable' {
2877
2756
  *
2878
2757
  * Emits `IdentityKilled` if successful.
2879
2758
  *
2880
- * # <weight>
2881
- * - `O(R + S + X)`.
2882
- * - One balance-reserve operation.
2883
- * - `S + 2` storage mutations.
2884
- * - One event.
2885
- * # </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).
2886
2764
  **/
2887
2765
  killIdentity: AugmentedSubmittable<(target: MultiAddress | {
2888
2766
  Id: any;
@@ -2909,13 +2787,10 @@ declare module '@polkadot/api-base/types/submittable' {
2909
2787
  *
2910
2788
  * Emits `JudgementGiven` if successful.
2911
2789
  *
2912
- * # <weight>
2790
+ * ## Complexity
2913
2791
  * - `O(R + X)`.
2914
- * - One balance-transfer operation.
2915
- * - Up to one account-lookup operation.
2916
- * - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
2917
- * - One event.
2918
- * # </weight>
2792
+ * - where `R` registrar-count (governance-bounded).
2793
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
2919
2794
  **/
2920
2795
  provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
2921
2796
  Id: any;
@@ -3022,12 +2897,10 @@ declare module '@polkadot/api-base/types/submittable' {
3022
2897
  *
3023
2898
  * Emits `JudgementRequested` if successful.
3024
2899
  *
3025
- * # <weight>
2900
+ * ## Complexity
3026
2901
  * - `O(R + X)`.
3027
- * - One balance-reserve operation.
3028
- * - Storage: 1 read `O(R)`, 1 mutate `O(X + R)`.
3029
- * - One event.
3030
- * # </weight>
2902
+ * - where `R` registrar-count (governance-bounded).
2903
+ * - where `X` additional-field-count (deposit-bounded and code-bounded).
3031
2904
  **/
3032
2905
  requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
3033
2906
  /**
@@ -3039,11 +2912,9 @@ declare module '@polkadot/api-base/types/submittable' {
3039
2912
  * - `index`: the index of the registrar whose fee is to be set.
3040
2913
  * - `new`: the new account ID.
3041
2914
  *
3042
- * # <weight>
2915
+ * ## Complexity
3043
2916
  * - `O(R)`.
3044
- * - One storage mutation `O(R)`.
3045
- * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
3046
- * # </weight>
2917
+ * - where `R` registrar-count (governance-bounded).
3047
2918
  **/
3048
2919
  setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
3049
2920
  Id: any;
@@ -3065,11 +2936,9 @@ declare module '@polkadot/api-base/types/submittable' {
3065
2936
  * - `index`: the index of the registrar whose fee is to be set.
3066
2937
  * - `fee`: the new fee.
3067
2938
  *
3068
- * # <weight>
2939
+ * ## Complexity
3069
2940
  * - `O(R)`.
3070
- * - One storage mutation `O(R)`.
3071
- * - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
3072
- * # </weight>
2941
+ * - where `R` registrar-count (governance-bounded).
3073
2942
  **/
3074
2943
  setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
3075
2944
  /**
@@ -3081,11 +2950,9 @@ declare module '@polkadot/api-base/types/submittable' {
3081
2950
  * - `index`: the index of the registrar whose fee is to be set.
3082
2951
  * - `fields`: the fields that the registrar concerns themselves with.
3083
2952
  *
3084
- * # <weight>
2953
+ * ## Complexity
3085
2954
  * - `O(R)`.
3086
- * - One storage mutation `O(R)`.
3087
- * - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
3088
- * # </weight>
2955
+ * - where `R` registrar-count (governance-bounded).
3089
2956
  **/
3090
2957
  setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
3091
2958
  /**
@@ -3100,14 +2967,10 @@ declare module '@polkadot/api-base/types/submittable' {
3100
2967
  *
3101
2968
  * Emits `IdentitySet` if successful.
3102
2969
  *
3103
- * # <weight>
2970
+ * ## Complexity
3104
2971
  * - `O(X + X' + R)`
3105
2972
  * - where `X` additional-field-count (deposit-bounded and code-bounded)
3106
2973
  * - where `R` judgements-count (registrar-count-bounded)
3107
- * - One balance reserve operation.
3108
- * - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
3109
- * - One event.
3110
- * # </weight>
3111
2974
  **/
3112
2975
  setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
3113
2976
  additional?: any;
@@ -3131,17 +2994,10 @@ declare module '@polkadot/api-base/types/submittable' {
3131
2994
  *
3132
2995
  * - `subs`: The identity's (new) sub-accounts.
3133
2996
  *
3134
- * # <weight>
2997
+ * ## Complexity
3135
2998
  * - `O(P + S)`
3136
2999
  * - where `P` old-subs-count (hard- and deposit-bounded).
3137
3000
  * - where `S` subs-count (hard- and deposit-bounded).
3138
- * - At most one balance operations.
3139
- * - DB:
3140
- * - `P + S` storage mutations (codec complexity `O(1)`)
3141
- * - One storage read (codec complexity `O(P)`).
3142
- * - One storage write (codec complexity `O(S)`).
3143
- * - One storage-exists (`IdentityOf::contains_key`).
3144
- * # </weight>
3145
3001
  **/
3146
3002
  setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
3147
3003
  None: any;
@@ -3163,15 +3019,11 @@ declare module '@polkadot/api-base/types/submittable' {
3163
3019
  };
3164
3020
  imOnline: {
3165
3021
  /**
3166
- * # <weight>
3167
- * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is
3168
- * 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`
3169
3025
  * - `O(K)`: decoding of length `K`
3170
3026
  * - `O(E)`: decoding/encoding of length `E`
3171
- * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
3172
- * `ReceivedHeartbeats`
3173
- * - DbWrites: `ReceivedHeartbeats`
3174
- * # </weight>
3175
3027
  **/
3176
3028
  heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
3177
3029
  blockNumber?: any;
@@ -3197,14 +3049,8 @@ declare module '@polkadot/api-base/types/submittable' {
3197
3049
  *
3198
3050
  * Emits `IndexAssigned` if successful.
3199
3051
  *
3200
- * # <weight>
3052
+ * ## Complexity
3201
3053
  * - `O(1)`.
3202
- * - One storage mutation (codec `O(1)`).
3203
- * - One reserve operation.
3204
- * - One event.
3205
- * -------------------
3206
- * - DB Weight: 1 Read/Write (Accounts)
3207
- * # </weight>
3208
3054
  **/
3209
3055
  claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3210
3056
  /**
@@ -3219,16 +3065,8 @@ declare module '@polkadot/api-base/types/submittable' {
3219
3065
  *
3220
3066
  * Emits `IndexAssigned` if successful.
3221
3067
  *
3222
- * # <weight>
3068
+ * ## Complexity
3223
3069
  * - `O(1)`.
3224
- * - One storage mutation (codec `O(1)`).
3225
- * - Up to one reserve operation.
3226
- * - One event.
3227
- * -------------------
3228
- * - DB Weight:
3229
- * - Reads: Indices Accounts, System Account (original owner)
3230
- * - Writes: Indices Accounts, System Account (original owner)
3231
- * # </weight>
3232
3070
  **/
3233
3071
  forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
3234
3072
  Id: any;
@@ -3252,14 +3090,8 @@ declare module '@polkadot/api-base/types/submittable' {
3252
3090
  *
3253
3091
  * Emits `IndexFreed` if successful.
3254
3092
  *
3255
- * # <weight>
3093
+ * ## Complexity
3256
3094
  * - `O(1)`.
3257
- * - One storage mutation (codec `O(1)`).
3258
- * - One reserve operation.
3259
- * - One event.
3260
- * -------------------
3261
- * - DB Weight: 1 Read/Write (Accounts)
3262
- * # </weight>
3263
3095
  **/
3264
3096
  free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3265
3097
  /**
@@ -3273,14 +3105,8 @@ declare module '@polkadot/api-base/types/submittable' {
3273
3105
  *
3274
3106
  * Emits `IndexFrozen` if successful.
3275
3107
  *
3276
- * # <weight>
3108
+ * ## Complexity
3277
3109
  * - `O(1)`.
3278
- * - One storage mutation (codec `O(1)`).
3279
- * - Up to one slash operation.
3280
- * - One event.
3281
- * -------------------
3282
- * - DB Weight: 1 Read/Write (Accounts)
3283
- * # </weight>
3284
3110
  **/
3285
3111
  freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3286
3112
  /**
@@ -3294,16 +3120,8 @@ declare module '@polkadot/api-base/types/submittable' {
3294
3120
  *
3295
3121
  * Emits `IndexAssigned` if successful.
3296
3122
  *
3297
- * # <weight>
3123
+ * ## Complexity
3298
3124
  * - `O(1)`.
3299
- * - One storage mutation (codec `O(1)`).
3300
- * - One transfer operation.
3301
- * - One event.
3302
- * -------------------
3303
- * - DB Weight:
3304
- * - Reads: Indices Accounts, System Account (recipient)
3305
- * - Writes: Indices Accounts, System Account (recipient)
3306
- * # </weight>
3307
3125
  **/
3308
3126
  transfer: AugmentedSubmittable<(updated: MultiAddress | {
3309
3127
  Id: any;
@@ -3429,7 +3247,7 @@ declare module '@polkadot/api-base/types/submittable' {
3429
3247
  *
3430
3248
  * NOTE: If this is the final approval, you will want to use `as_multi` instead.
3431
3249
  *
3432
- * # <weight>
3250
+ * ## Complexity
3433
3251
  * - `O(S)`.
3434
3252
  * - Up to one balance-reserve or unreserve operation.
3435
3253
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -3440,11 +3258,6 @@ declare module '@polkadot/api-base/types/submittable' {
3440
3258
  * - One event.
3441
3259
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
3442
3260
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
3443
- * ----------------------------------
3444
- * - DB Weight:
3445
- * - Read: Multisig Storage, [Caller Account]
3446
- * - Write: Multisig Storage, [Caller Account]
3447
- * # </weight>
3448
3261
  **/
3449
3262
  approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3450
3263
  height?: any;
@@ -3480,7 +3293,7 @@ declare module '@polkadot/api-base/types/submittable' {
3480
3293
  * on success, result is `Ok` and the result from the interior call, if it was executed,
3481
3294
  * may be found in the deposited `MultisigExecuted` event.
3482
3295
  *
3483
- * # <weight>
3296
+ * ## Complexity
3484
3297
  * - `O(S + Z + Call)`.
3485
3298
  * - Up to one balance-reserve or unreserve operation.
3486
3299
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -3493,12 +3306,6 @@ declare module '@polkadot/api-base/types/submittable' {
3493
3306
  * - The weight of the `call`.
3494
3307
  * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
3495
3308
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
3496
- * -------------------------------
3497
- * - DB Weight:
3498
- * - Reads: Multisig Storage, [Caller Account]
3499
- * - Writes: Multisig Storage, [Caller Account]
3500
- * - Plus Call Weight
3501
- * # </weight>
3502
3309
  **/
3503
3310
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3504
3311
  height?: any;
@@ -3518,12 +3325,8 @@ declare module '@polkadot/api-base/types/submittable' {
3518
3325
  *
3519
3326
  * Result is equivalent to the dispatched result.
3520
3327
  *
3521
- * # <weight>
3328
+ * ## Complexity
3522
3329
  * O(Z + C) where Z is the length of the call and C its execution weight.
3523
- * -------------------------------
3524
- * - DB Weight: None
3525
- * - Plus Call Weight
3526
- * # </weight>
3527
3330
  **/
3528
3331
  asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
3529
3332
  /**
@@ -3539,7 +3342,7 @@ declare module '@polkadot/api-base/types/submittable' {
3539
3342
  * transaction for this dispatch.
3540
3343
  * - `call_hash`: The hash of the call to be executed.
3541
3344
  *
3542
- * # <weight>
3345
+ * ## Complexity
3543
3346
  * - `O(S)`.
3544
3347
  * - Up to one balance-reserve or unreserve operation.
3545
3348
  * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
@@ -3548,11 +3351,6 @@ declare module '@polkadot/api-base/types/submittable' {
3548
3351
  * - One event.
3549
3352
  * - I/O: 1 read `O(S)`, one remove.
3550
3353
  * - Storage: removes one item.
3551
- * ----------------------------------
3552
- * - DB Weight:
3553
- * - Read: Multisig Storage, [Caller Account], Refund Account
3554
- * - Write: Multisig Storage, [Caller Account], Refund Account
3555
- * # </weight>
3556
3354
  **/
3557
3355
  cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
3558
3356
  height?: any;
@@ -4091,6 +3889,35 @@ declare module '@polkadot/api-base/types/submittable' {
4091
3889
  } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | {
4092
3890
  ownerOfItem?: any;
4093
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]>;
4094
3921
  /**
4095
3922
  * Allows to pay the tips.
4096
3923
  *
@@ -5644,10 +5471,6 @@ declare module '@polkadot/api-base/types/submittable' {
5644
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]>;
5645
5472
  /**
5646
5473
  * Anonymously schedule a task after a delay.
5647
- *
5648
- * # <weight>
5649
- * Same as [`schedule`].
5650
- * # </weight>
5651
5474
  **/
5652
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]>;
5653
5476
  /**
@@ -5656,10 +5479,6 @@ declare module '@polkadot/api-base/types/submittable' {
5656
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]>;
5657
5480
  /**
5658
5481
  * Schedule a named task after a delay.
5659
- *
5660
- * # <weight>
5661
- * Same as [`schedule_named`](Self::schedule_named).
5662
- * # </weight>
5663
5482
  **/
5664
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]>;
5665
5484
  /**
@@ -5678,13 +5497,9 @@ declare module '@polkadot/api-base/types/submittable' {
5678
5497
  * means being a controller account) or directly convertible into a validator ID (which
5679
5498
  * usually means being a stash account).
5680
5499
  *
5681
- * # <weight>
5682
- * - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
5683
- * of `T::Keys::key_ids()` which is fixed.
5684
- * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
5685
- * - DbWrites: `NextKeys`, `origin account`
5686
- * - DbWrites per key id: `KeyOwner`
5687
- * # </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.
5688
5503
  **/
5689
5504
  purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5690
5505
  /**
@@ -5694,14 +5509,9 @@ declare module '@polkadot/api-base/types/submittable' {
5694
5509
  *
5695
5510
  * The dispatch origin of this function must be signed.
5696
5511
  *
5697
- * # <weight>
5698
- * - Complexity: `O(1)`. Actual cost depends on the number of length of
5699
- * `T::Keys::key_ids()` which is fixed.
5700
- * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
5701
- * - DbWrites: `origin account`, `NextKeys`
5702
- * - DbReads per key id: `KeyOwner`
5703
- * - DbWrites per key id: `KeyOwner`
5704
- * # </weight>
5512
+ * ## Complexity
5513
+ * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
5514
+ * fixed.
5705
5515
  **/
5706
5516
  setKeys: AugmentedSubmittable<(keys: KitchensinkRuntimeSessionKeys | {
5707
5517
  grandpa?: any;
@@ -5726,30 +5536,12 @@ declare module '@polkadot/api-base/types/submittable' {
5726
5536
  * Parameters:
5727
5537
  * - `value`: A one time payment the bid would like to receive when joining the society.
5728
5538
  *
5729
- * # <weight>
5730
- * Key: B (len of bids), C (len of candidates), M (len of members), X (balance reserve)
5731
- * - Storage Reads:
5732
- * - One storage read to check for suspended candidate. O(1)
5733
- * - One storage read to check for suspended member. O(1)
5734
- * - One storage read to retrieve all current bids. O(B)
5735
- * - One storage read to retrieve all current candidates. O(C)
5736
- * - One storage read to retrieve all members. O(M)
5737
- * - Storage Writes:
5738
- * - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
5739
- * w/ read)
5740
- * - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
5741
- * - Notable Computation:
5742
- * - O(B + C + log M) search to check user is not already a part of society.
5743
- * - O(log B) search to insert the new bid sorted.
5744
- * - External Pallet Operations:
5745
- * - One balance reserve operation. O(X)
5746
- * - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
5747
- * - Events:
5748
- * - One event for new bid.
5749
- * - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
5750
- *
5751
- * Total Complexity: O(M + B + C + logM + logB + X)
5752
- * # </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)
5753
5545
  **/
5754
5546
  bid: AugmentedSubmittable<(value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
5755
5547
  /**
@@ -5761,14 +5553,9 @@ declare module '@polkadot/api-base/types/submittable' {
5761
5553
  * - `approve`: A boolean which says if the candidate should be
5762
5554
  * approved (`true`) or rejected (`false`).
5763
5555
  *
5764
- * # <weight>
5765
- * - Key: M (len of members)
5766
- * - One storage read O(M) and O(log M) search to check user is a member.
5767
- * - One storage write to add vote to votes. O(1)
5768
- * - One event.
5769
- *
5770
- * Total Complexity: O(M + logM)
5771
- * # </weight>
5556
+ * ## Complexity
5557
+ * - O(M + logM)
5558
+ * - M (len of members)
5772
5559
  **/
5773
5560
  defenderVote: AugmentedSubmittable<(approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
5774
5561
  /**
@@ -5784,13 +5571,8 @@ declare module '@polkadot/api-base/types/submittable' {
5784
5571
  * - `max_members` - The initial max number of members for the society.
5785
5572
  * - `rules` - The rules of this society concerning membership.
5786
5573
  *
5787
- * # <weight>
5788
- * - Two storage mutates to set `Head` and `Founder`. O(1)
5789
- * - One storage write to add the first member to society. O(1)
5790
- * - One event.
5791
- *
5792
- * Total Complexity: O(1)
5793
- * # </weight>
5574
+ * ## Complexity
5575
+ * - O(1)
5794
5576
  **/
5795
5577
  found: AugmentedSubmittable<(founder: MultiAddress | {
5796
5578
  Id: any;
@@ -5821,29 +5603,11 @@ declare module '@polkadot/api-base/types/submittable' {
5821
5603
  * - `who` - The suspended candidate to be judged.
5822
5604
  * - `judgement` - `Approve`, `Reject`, or `Rebid`.
5823
5605
  *
5824
- * # <weight>
5825
- * Key: B (len of bids), M (len of members), X (balance action)
5826
- * - One storage read to check `who` is a suspended candidate.
5827
- * - One storage removal of the suspended candidate.
5828
- * - Approve Logic
5829
- * - One storage read to get the available pot to pay users with. O(1)
5830
- * - One storage write to update the available pot. O(1)
5831
- * - One storage read to get the current block number. O(1)
5832
- * - One storage read to get all members. O(M)
5833
- * - Up to one unreserve currency action.
5834
- * - Up to two new storage writes to payouts.
5835
- * - Up to one storage write with O(log M) binary search to add a member to society.
5836
- * - Reject Logic
5837
- * - Up to one repatriate reserved currency action. O(X)
5838
- * - Up to one storage write to ban the vouching member from vouching again.
5839
- * - Rebid Logic
5840
- * - Storage mutate with O(log B) binary search to place the user back into bids.
5841
- * - Up to one additional event if unvouch takes place.
5842
- * - One storage removal.
5843
- * - One event for the judgement.
5844
- *
5845
- * Total Complexity: O(M + logM + B + X)
5846
- * # </weight>
5606
+ * ## Complexity
5607
+ * - O(M + logM + B + X)
5608
+ * - B (len of bids)
5609
+ * - M (len of members)
5610
+ * - X (balance action)
5847
5611
  **/
5848
5612
  judgeSuspendedCandidate: AugmentedSubmittable<(who: MultiAddress | {
5849
5613
  Id: any;
@@ -5872,19 +5636,10 @@ declare module '@polkadot/api-base/types/submittable' {
5872
5636
  * - `forgive` - A boolean representing whether the suspension judgement origin forgives
5873
5637
  * (`true`) or rejects (`false`) a suspended member.
5874
5638
  *
5875
- * # <weight>
5876
- * Key: B (len of bids), M (len of members)
5877
- * - One storage read to check `who` is a suspended member. O(1)
5878
- * - Up to one storage write O(M) with O(log M) binary search to add a member back to
5879
- * society.
5880
- * - Up to 3 storage removals O(1) to clean up a removed member.
5881
- * - Up to one storage write O(B) with O(B) search to remove vouched bid from bids.
5882
- * - Up to one additional event if unvouch takes place.
5883
- * - One storage removal. O(1)
5884
- * - One event for the judgement.
5885
- *
5886
- * Total Complexity: O(M + logM + B)
5887
- * # </weight>
5639
+ * ## Complexity
5640
+ * - O(M + logM + B)
5641
+ * - B (len of bids)
5642
+ * - M (len of members)
5888
5643
  **/
5889
5644
  judgeSuspendedMember: AugmentedSubmittable<(who: MultiAddress | {
5890
5645
  Id: any;
@@ -5909,16 +5664,11 @@ declare module '@polkadot/api-base/types/submittable' {
5909
5664
  * The dispatch origin for this call must be _Signed_ and a member with
5910
5665
  * payouts remaining.
5911
5666
  *
5912
- * # <weight>
5913
- * Key: M (len of members), P (number of payouts for a particular member)
5914
- * - One storage read O(M) and O(log M) search to check signer is a member.
5915
- * - One storage read O(P) to get all payouts for a member.
5916
- * - One storage read O(1) to get the current block number.
5917
- * - One currency transfer call. O(X)
5918
- * - One storage write or removal to update the member's payouts. O(P)
5919
- *
5920
- * Total Complexity: O(M + logM + P + X)
5921
- * # </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)
5922
5672
  **/
5923
5673
  payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5924
5674
  /**
@@ -5930,12 +5680,8 @@ declare module '@polkadot/api-base/types/submittable' {
5930
5680
  * Parameters:
5931
5681
  * - `max` - The maximum number of members for the society.
5932
5682
  *
5933
- * # <weight>
5934
- * - One storage write to update the max. O(1)
5935
- * - One event.
5936
- *
5937
- * Total Complexity: O(1)
5938
- * # </weight>
5683
+ * ## Complexity
5684
+ * - O(1)
5939
5685
  **/
5940
5686
  setMaxMembers: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5941
5687
  /**
@@ -5950,14 +5696,10 @@ declare module '@polkadot/api-base/types/submittable' {
5950
5696
  * Parameters:
5951
5697
  * - `pos`: Position in the `Bids` vector of the bid who wants to unbid.
5952
5698
  *
5953
- * # <weight>
5954
- * Key: B (len of bids), X (balance unreserve)
5955
- * - One storage read and write to retrieve and update the bids. O(B)
5956
- * - Either one unreserve balance action O(X) or one vouching storage removal. O(1)
5957
- * - One event.
5958
- *
5959
- * Total Complexity: O(B + X)
5960
- * # </weight>
5699
+ * ## Complexity
5700
+ * - O(B + X)
5701
+ * - B (len of bids)
5702
+ * - X (balance unreserve)
5961
5703
  **/
5962
5704
  unbid: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5963
5705
  /**
@@ -5967,13 +5709,8 @@ declare module '@polkadot/api-base/types/submittable' {
5967
5709
  * the `Founder` and the `Head`. This implies that it may only be done when there is one
5968
5710
  * member.
5969
5711
  *
5970
- * # <weight>
5971
- * - Two storage reads O(1).
5972
- * - Four storage removals O(1).
5973
- * - One event.
5974
- *
5975
- * Total Complexity: O(1)
5976
- * # </weight>
5712
+ * ## Complexity
5713
+ * - O(1)
5977
5714
  **/
5978
5715
  unfound: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5979
5716
  /**
@@ -5985,15 +5722,9 @@ declare module '@polkadot/api-base/types/submittable' {
5985
5722
  * Parameters:
5986
5723
  * - `pos`: Position in the `Bids` vector of the bid who should be unvouched.
5987
5724
  *
5988
- * # <weight>
5989
- * Key: B (len of bids)
5990
- * - One storage read O(1) to check the signer is a vouching member.
5991
- * - One storage mutate to retrieve and update the bids. O(B)
5992
- * - One vouching storage removal. O(1)
5993
- * - One event.
5994
- *
5995
- * Total Complexity: O(B)
5996
- * # </weight>
5725
+ * ## Complexity
5726
+ * - O(B)
5727
+ * - B (len of bids)
5997
5728
  **/
5998
5729
  unvouch: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5999
5730
  /**
@@ -6006,16 +5737,10 @@ declare module '@polkadot/api-base/types/submittable' {
6006
5737
  * - `approve`: A boolean which says if the candidate should be approved (`true`) or
6007
5738
  * rejected (`false`).
6008
5739
  *
6009
- * # <weight>
6010
- * Key: C (len of candidates), M (len of members)
6011
- * - One storage read O(M) and O(log M) search to check user is a member.
6012
- * - One account lookup.
6013
- * - One storage read O(C) and O(C) search to check that user is a candidate.
6014
- * - One storage write to add vote to votes. O(1)
6015
- * - One event.
6016
- *
6017
- * Total Complexity: O(M + logM + C)
6018
- * # </weight>
5740
+ * ## Complexity
5741
+ * - O(M + logM + C)
5742
+ * - C (len of candidates)
5743
+ * - M (len of members)
6019
5744
  **/
6020
5745
  vote: AugmentedSubmittable<(candidate: MultiAddress | {
6021
5746
  Id: any;
@@ -6047,33 +5772,12 @@ declare module '@polkadot/api-base/types/submittable' {
6047
5772
  * - `tip`: Your cut of the total `value` payout when the candidate is inducted into
6048
5773
  * the society. Tips larger than `value` will be saturated upon payout.
6049
5774
  *
6050
- * # <weight>
6051
- * Key: B (len of bids), C (len of candidates), M (len of members)
6052
- * - Storage Reads:
6053
- * - One storage read to retrieve all members. O(M)
6054
- * - One storage read to check member is not already vouching. O(1)
6055
- * - One storage read to check for suspended candidate. O(1)
6056
- * - One storage read to check for suspended member. O(1)
6057
- * - One storage read to retrieve all current bids. O(B)
6058
- * - One storage read to retrieve all current candidates. O(C)
6059
- * - Storage Writes:
6060
- * - One storage write to insert vouching status to the member. O(1)
6061
- * - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
6062
- * w/ read)
6063
- * - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
6064
- * - Notable Computation:
6065
- * - O(log M) search to check sender is a member.
6066
- * - O(B + C + log M) search to check user is not already a part of society.
6067
- * - O(log B) search to insert the new bid sorted.
6068
- * - External Pallet Operations:
6069
- * - One balance reserve operation. O(X)
6070
- * - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
6071
- * - Events:
6072
- * - One event for vouch.
6073
- * - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
6074
- *
6075
- * Total Complexity: O(M + B + C + logM + logB + X)
6076
- * # </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)
6077
5781
  **/
6078
5782
  vouch: AugmentedSubmittable<(who: MultiAddress | {
6079
5783
  Id: any;
@@ -6101,15 +5805,13 @@ declare module '@polkadot/api-base/types/submittable' {
6101
5805
  * The dispatch origin for this call must be _Signed_ by the stash account.
6102
5806
  *
6103
5807
  * Emits `Bonded`.
6104
- * # <weight>
5808
+ * ## Complexity
6105
5809
  * - Independent of the arguments. Moderate complexity.
6106
5810
  * - O(1).
6107
5811
  * - Three extra DB entries.
6108
5812
  *
6109
5813
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
6110
5814
  * unless the `origin` falls below _existential deposit_ and gets removed as dust.
6111
- * ------------------
6112
- * # </weight>
6113
5815
  **/
6114
5816
  bond: AugmentedSubmittable<(controller: MultiAddress | {
6115
5817
  Id: any;
@@ -6144,10 +5846,9 @@ declare module '@polkadot/api-base/types/submittable' {
6144
5846
  *
6145
5847
  * Emits `Bonded`.
6146
5848
  *
6147
- * # <weight>
5849
+ * ## Complexity
6148
5850
  * - Independent of the arguments. Insignificant complexity.
6149
5851
  * - O(1).
6150
- * # </weight>
6151
5852
  **/
6152
5853
  bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
6153
5854
  /**
@@ -6165,11 +5866,10 @@ declare module '@polkadot/api-base/types/submittable' {
6165
5866
  *
6166
5867
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
6167
5868
  *
6168
- * # <weight>
5869
+ * ## Complexity
6169
5870
  * - Independent of the arguments. Insignificant complexity.
6170
5871
  * - Contains one read.
6171
5872
  * - Writes are limited to the `origin` account key.
6172
- * # </weight>
6173
5873
  **/
6174
5874
  chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
6175
5875
  /**
@@ -6219,11 +5919,9 @@ declare module '@polkadot/api-base/types/submittable' {
6219
5919
  * If this is called just before a new era is triggered, the election process may not
6220
5920
  * have enough blocks to get a result.
6221
5921
  *
6222
- * # <weight>
5922
+ * ## Complexity
6223
5923
  * - No arguments.
6224
5924
  * - Weight: O(1)
6225
- * - Write ForceEra
6226
- * # </weight>
6227
5925
  **/
6228
5926
  forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
6229
5927
  /**
@@ -6249,11 +5947,9 @@ declare module '@polkadot/api-base/types/submittable' {
6249
5947
  * Thus the election process may be ongoing when this is called. In this case the
6250
5948
  * election will continue until the next era is triggered.
6251
5949
  *
6252
- * # <weight>
5950
+ * ## Complexity
6253
5951
  * - No arguments.
6254
5952
  * - Weight: O(1)
6255
- * - Write: ForceEra
6256
- * # </weight>
6257
5953
  **/
6258
5954
  forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
6259
5955
  /**
@@ -6268,9 +5964,8 @@ declare module '@polkadot/api-base/types/submittable' {
6268
5964
  *
6269
5965
  * The dispatch origin must be Root.
6270
5966
  *
6271
- * # <weight>
5967
+ * ## Complexity
6272
5968
  * Same as [`Self::set_validator_count`].
6273
- * # </weight>
6274
5969
  **/
6275
5970
  increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
6276
5971
  /**
@@ -6304,11 +5999,10 @@ declare module '@polkadot/api-base/types/submittable' {
6304
5999
  *
6305
6000
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
6306
6001
  *
6307
- * # <weight>
6002
+ * ## Complexity
6308
6003
  * - The transaction's complexity is proportional to the size of `targets` (N)
6309
6004
  * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
6310
6005
  * - Both the reads and writes follow a similar pattern.
6311
- * # </weight>
6312
6006
  **/
6313
6007
  nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
6314
6008
  Id: any;
@@ -6331,18 +6025,8 @@ declare module '@polkadot/api-base/types/submittable' {
6331
6025
  * The origin of this call must be _Signed_. Any account can call this function, even if
6332
6026
  * it is not one of the stakers.
6333
6027
  *
6334
- * # <weight>
6335
- * - Time complexity: at most O(MaxNominatorRewardedPerValidator).
6336
- * - Contains a limited number of reads and writes.
6337
- * -----------
6338
- * N is the Number of payouts for the validator (including the validator)
6339
- * Weight:
6340
- * - Reward Destination Staked: O(N)
6341
- * - Reward Destination Controller (Creating): O(N)
6342
- *
6343
- * NOTE: weights are assuming that payouts are made to alive stash account (Staked).
6344
- * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
6345
- * # </weight>
6028
+ * ## Complexity
6029
+ * - At most O(MaxNominatorRewardedPerValidator).
6346
6030
  **/
6347
6031
  payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
6348
6032
  /**
@@ -6365,11 +6049,9 @@ declare module '@polkadot/api-base/types/submittable' {
6365
6049
  *
6366
6050
  * The dispatch origin must be signed by the controller.
6367
6051
  *
6368
- * # <weight>
6052
+ * ## Complexity
6369
6053
  * - Time complexity: O(L), where L is unlocking chunks
6370
6054
  * - Bounded by `MaxUnlockingChunks`.
6371
- * - Storage changes: Can't increase storage, only decrease it.
6372
- * # </weight>
6373
6055
  **/
6374
6056
  rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
6375
6057
  /**
@@ -6378,9 +6060,8 @@ declare module '@polkadot/api-base/types/submittable' {
6378
6060
  *
6379
6061
  * The dispatch origin must be Root.
6380
6062
  *
6381
- * # <weight>
6063
+ * ## Complexity
6382
6064
  * Same as [`Self::set_validator_count`].
6383
- * # </weight>
6384
6065
  **/
6385
6066
  scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
6386
6067
  /**
@@ -6390,16 +6071,11 @@ declare module '@polkadot/api-base/types/submittable' {
6390
6071
  *
6391
6072
  * The dispatch origin for this call must be _Signed_ by the stash, not the controller.
6392
6073
  *
6393
- * # <weight>
6074
+ * ## Complexity
6075
+ * O(1)
6394
6076
  * - Independent of the arguments. Insignificant complexity.
6395
6077
  * - Contains a limited number of reads.
6396
6078
  * - Writes are limited to the `origin` account key.
6397
- * ----------
6398
- * Weight: O(1)
6399
- * DB Weight:
6400
- * - Read: Bonded, Ledger New Controller, Ledger Old Controller
6401
- * - Write: Bonded, Ledger New Controller, Ledger Old Controller
6402
- * # </weight>
6403
6079
  **/
6404
6080
  setController: AugmentedSubmittable<(controller: MultiAddress | {
6405
6081
  Id: any;
@@ -6432,16 +6108,12 @@ declare module '@polkadot/api-base/types/submittable' {
6432
6108
  *
6433
6109
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
6434
6110
  *
6435
- * # <weight>
6111
+ * ## Complexity
6112
+ * - O(1)
6436
6113
  * - Independent of the arguments. Insignificant complexity.
6437
6114
  * - Contains a limited number of reads.
6438
6115
  * - Writes are limited to the `origin` account key.
6439
6116
  * ---------
6440
- * - Weight: O(1)
6441
- * - DB Weight:
6442
- * - Read: Ledger
6443
- * - Write: Payee
6444
- * # </weight>
6445
6117
  **/
6446
6118
  setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
6447
6119
  Staked: any;
@@ -6515,10 +6187,8 @@ declare module '@polkadot/api-base/types/submittable' {
6515
6187
  *
6516
6188
  * The dispatch origin must be Root.
6517
6189
  *
6518
- * # <weight>
6519
- * Weight: O(1)
6520
- * Write: Validator Count
6521
- * # </weight>
6190
+ * ## Complexity
6191
+ * O(1)
6522
6192
  **/
6523
6193
  setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
6524
6194
  /**
@@ -6566,10 +6236,9 @@ declare module '@polkadot/api-base/types/submittable' {
6566
6236
  *
6567
6237
  * See also [`Call::unbond`].
6568
6238
  *
6569
- * # <weight>
6570
- * 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
6571
6241
  * NOTE: Weight annotation is the kill scenario, we refund otherwise.
6572
- * # </weight>
6573
6242
  **/
6574
6243
  withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
6575
6244
  /**
@@ -6679,11 +6348,8 @@ declare module '@polkadot/api-base/types/submittable' {
6679
6348
  *
6680
6349
  * The dispatch origin for this call must be _Signed_.
6681
6350
  *
6682
- * # <weight>
6351
+ * ## Complexity
6683
6352
  * - O(1).
6684
- * - Limited storage reads.
6685
- * - One DB change.
6686
- * # </weight>
6687
6353
  **/
6688
6354
  setKey: AugmentedSubmittable<(updated: MultiAddress | {
6689
6355
  Id: any;
@@ -6701,12 +6367,8 @@ declare module '@polkadot/api-base/types/submittable' {
6701
6367
  *
6702
6368
  * The dispatch origin for this call must be _Signed_.
6703
6369
  *
6704
- * # <weight>
6370
+ * ## Complexity
6705
6371
  * - O(1).
6706
- * - Limited storage reads.
6707
- * - One DB write (event).
6708
- * - Weight of derivative `call` execution + 10,000.
6709
- * # </weight>
6710
6372
  **/
6711
6373
  sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
6712
6374
  /**
@@ -6715,12 +6377,8 @@ declare module '@polkadot/api-base/types/submittable' {
6715
6377
  *
6716
6378
  * The dispatch origin for this call must be _Signed_.
6717
6379
  *
6718
- * # <weight>
6380
+ * ## Complexity
6719
6381
  * - O(1).
6720
- * - Limited storage reads.
6721
- * - One DB write (event).
6722
- * - Weight of derivative `call` execution + 10,000.
6723
- * # </weight>
6724
6382
  **/
6725
6383
  sudoAs: AugmentedSubmittable<(who: MultiAddress | {
6726
6384
  Id: any;
@@ -6740,10 +6398,8 @@ declare module '@polkadot/api-base/types/submittable' {
6740
6398
  *
6741
6399
  * The dispatch origin for this call must be _Signed_.
6742
6400
  *
6743
- * # <weight>
6401
+ * ## Complexity
6744
6402
  * - O(1).
6745
- * - The weight of this call is defined by the caller.
6746
- * # </weight>
6747
6403
  **/
6748
6404
  sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
6749
6405
  refTime?: any;
@@ -6769,9 +6425,8 @@ declare module '@polkadot/api-base/types/submittable' {
6769
6425
  /**
6770
6426
  * Make some on-chain remark.
6771
6427
  *
6772
- * # <weight>
6428
+ * ## Complexity
6773
6429
  * - `O(1)`
6774
- * # </weight>
6775
6430
  **/
6776
6431
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
6777
6432
  /**
@@ -6781,28 +6436,15 @@ declare module '@polkadot/api-base/types/submittable' {
6781
6436
  /**
6782
6437
  * Set the new runtime code.
6783
6438
  *
6784
- * # <weight>
6439
+ * ## Complexity
6785
6440
  * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
6786
- * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
6787
- * expensive).
6788
- * - 1 storage write (codec `O(C)`).
6789
- * - 1 digest item.
6790
- * - 1 event.
6791
- * The weight of this function is dependent on the runtime, but generally this is very
6792
- * expensive. We will treat this as a full block.
6793
- * # </weight>
6794
6441
  **/
6795
6442
  setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
6796
6443
  /**
6797
6444
  * Set the new runtime code without doing any checks of the given `code`.
6798
6445
  *
6799
- * # <weight>
6446
+ * ## Complexity
6800
6447
  * - `O(C)` where `C` length of `code`
6801
- * - 1 storage write (codec `O(C)`).
6802
- * - 1 digest item.
6803
- * - 1 event.
6804
- * The weight of this function is dependent on the runtime. We will treat this as a full
6805
- * block. # </weight>
6806
6448
  **/
6807
6449
  setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
6808
6450
  /**
@@ -6838,20 +6480,12 @@ declare module '@polkadot/api-base/types/submittable' {
6838
6480
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
6839
6481
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
6840
6482
  *
6841
- * # <weight>
6842
- * ## Weight
6483
+ * ## Complexity
6843
6484
  * - `O(B + M + P1 + P2)` where:
6844
6485
  * - `B` is `proposal` size in bytes (length-fee-bounded)
6845
6486
  * - `M` is members-count (code- and governance-bounded)
6846
6487
  * - `P1` is the complexity of `proposal` preimage.
6847
6488
  * - `P2` is proposal-count (code-bounded)
6848
- * - DB:
6849
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
6850
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
6851
- * `O(P2)`)
6852
- * - any mutations done while executing `proposal` (`P1`)
6853
- * - up to 3 events
6854
- * # </weight>
6855
6489
  **/
6856
6490
  close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
6857
6491
  refTime?: any;
@@ -6876,20 +6510,12 @@ declare module '@polkadot/api-base/types/submittable' {
6876
6510
  * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
6877
6511
  * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
6878
6512
  *
6879
- * # <weight>
6880
- * ## Weight
6513
+ * ## Complexity
6881
6514
  * - `O(B + M + P1 + P2)` where:
6882
6515
  * - `B` is `proposal` size in bytes (length-fee-bounded)
6883
6516
  * - `M` is members-count (code- and governance-bounded)
6884
6517
  * - `P1` is the complexity of `proposal` preimage.
6885
6518
  * - `P2` is proposal-count (code-bounded)
6886
- * - DB:
6887
- * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
6888
- * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
6889
- * `O(P2)`)
6890
- * - any mutations done while executing `proposal` (`P1`)
6891
- * - up to 3 events
6892
- * # </weight>
6893
6519
  **/
6894
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>]>;
6895
6521
  /**
@@ -6901,12 +6527,8 @@ declare module '@polkadot/api-base/types/submittable' {
6901
6527
  * Parameters:
6902
6528
  * * `proposal_hash`: The hash of the proposal that should be disapproved.
6903
6529
  *
6904
- * # <weight>
6905
- * Complexity: O(P) where P is the number of max proposals
6906
- * DB Weight:
6907
- * * Reads: Proposals
6908
- * * Writes: Voting, Proposals, ProposalOf
6909
- * # </weight>
6530
+ * ## Complexity
6531
+ * O(P) where P is the number of max proposals
6910
6532
  **/
6911
6533
  disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
6912
6534
  /**
@@ -6914,13 +6536,11 @@ declare module '@polkadot/api-base/types/submittable' {
6914
6536
  *
6915
6537
  * Origin must be a member of the collective.
6916
6538
  *
6917
- * # <weight>
6918
- * ## Weight
6919
- * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
6920
- * `proposal`
6921
- * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
6922
- * - 1 event
6923
- * # </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`
6924
6544
  **/
6925
6545
  execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
6926
6546
  /**
@@ -6931,26 +6551,13 @@ declare module '@polkadot/api-base/types/submittable' {
6931
6551
  * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
6932
6552
  * or put up for voting.
6933
6553
  *
6934
- * # <weight>
6935
- * ## Weight
6554
+ * ## Complexity
6936
6555
  * - `O(B + M + P1)` or `O(B + M + P2)` where:
6937
6556
  * - `B` is `proposal` size in bytes (length-fee-bounded)
6938
6557
  * - `M` is members-count (code- and governance-bounded)
6939
6558
  * - branching is influenced by `threshold` where:
6940
6559
  * - `P1` is proposal execution complexity (`threshold < 2`)
6941
6560
  * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
6942
- * - DB:
6943
- * - 1 storage read `is_member` (codec `O(M)`)
6944
- * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
6945
- * - DB accesses influenced by `threshold`:
6946
- * - EITHER storage accesses done by `proposal` (`threshold < 2`)
6947
- * - OR proposal insertion (`threshold <= 2`)
6948
- * - 1 storage mutation `Proposals` (codec `O(P2)`)
6949
- * - 1 storage mutation `ProposalCount` (codec `O(1)`)
6950
- * - 1 storage write `ProposalOf` (codec `O(B)`)
6951
- * - 1 storage write `Voting` (codec `O(M)`)
6952
- * - 1 event
6953
- * # </weight>
6954
6561
  **/
6955
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>]>;
6956
6563
  /**
@@ -6973,19 +6580,11 @@ declare module '@polkadot/api-base/types/submittable' {
6973
6580
  * Any call to `set_members` must be careful that the member set doesn't get out of sync
6974
6581
  * with other logic managing the member set.
6975
6582
  *
6976
- * # <weight>
6977
- * ## Weight
6583
+ * ## Complexity:
6978
6584
  * - `O(MP + N)` where:
6979
6585
  * - `M` old-members-count (code- and governance-bounded)
6980
6586
  * - `N` new-members-count (code- and governance-bounded)
6981
6587
  * - `P` proposals-count (code-bounded)
6982
- * - DB:
6983
- * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
6984
- * members
6985
- * - 1 storage read (codec `O(P)`) for reading the proposals
6986
- * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
6987
- * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
6988
- * # </weight>
6989
6588
  **/
6990
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]>;
6991
6590
  /**
@@ -6996,14 +6595,8 @@ declare module '@polkadot/api-base/types/submittable' {
6996
6595
  * Transaction fees will be waived if the member is voting on any particular proposal
6997
6596
  * for the first time and the call is successful. Subsequent vote changes will charge a
6998
6597
  * fee.
6999
- * # <weight>
7000
- * ## Weight
6598
+ * ## Complexity
7001
6599
  * - `O(M)` where `M` is members-count (code- and governance-bounded)
7002
- * - DB:
7003
- * - 1 storage read `Members` (codec `O(M)`)
7004
- * - 1 storage mutation `Voting` (codec `O(M)`)
7005
- * - 1 event
7006
- * # </weight>
7007
6600
  **/
7008
6601
  vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
7009
6602
  /**
@@ -7136,12 +6729,11 @@ declare module '@polkadot/api-base/types/submittable' {
7136
6729
  *
7137
6730
  * The dispatch origin for this call must be `Inherent`.
7138
6731
  *
7139
- * # <weight>
6732
+ * ## Complexity
7140
6733
  * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
7141
6734
  * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
7142
6735
  * `on_finalize`)
7143
6736
  * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
7144
- * # </weight>
7145
6737
  **/
7146
6738
  set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
7147
6739
  /**
@@ -7160,13 +6752,10 @@ declare module '@polkadot/api-base/types/submittable' {
7160
6752
  * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
7161
6753
  * as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
7162
6754
  *
7163
- * # <weight>
7164
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
7165
- * `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost
7166
- * depends on the implementation of `T::Tippers`.
7167
- * - DbReads: `Tips`, `Tippers`, `tip finder`
7168
- * - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
7169
- * # </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`.
7170
6759
  **/
7171
6760
  closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
7172
6761
  /**
@@ -7183,12 +6772,9 @@ declare module '@polkadot/api-base/types/submittable' {
7183
6772
  *
7184
6773
  * Emits `NewTip` if successful.
7185
6774
  *
7186
- * # <weight>
7187
- * - Complexity: `O(R)` where `R` length of `reason`.
6775
+ * ## Complexity
6776
+ * - `O(R)` where `R` length of `reason`.
7188
6777
  * - encoding and hashing of 'reason'
7189
- * - DbReads: `Reasons`, `Tips`
7190
- * - DbWrites: `Reasons`, `Tips`
7191
- * # </weight>
7192
6778
  **/
7193
6779
  reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
7194
6780
  Id: any;
@@ -7215,12 +6801,9 @@ declare module '@polkadot/api-base/types/submittable' {
7215
6801
  *
7216
6802
  * Emits `TipRetracted` if successful.
7217
6803
  *
7218
- * # <weight>
7219
- * - Complexity: `O(1)`
6804
+ * ## Complexity
6805
+ * - `O(1)`
7220
6806
  * - Depends on the length of `T::Hash` which is fixed.
7221
- * - DbReads: `Tips`, `origin account`
7222
- * - DbWrites: `Reasons`, `Tips`, `origin account`
7223
- * # </weight>
7224
6807
  **/
7225
6808
  retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
7226
6809
  /**
@@ -7232,10 +6815,8 @@ declare module '@polkadot/api-base/types/submittable' {
7232
6815
  *
7233
6816
  * Emits `TipSlashed` if successful.
7234
6817
  *
7235
- * # <weight>
7236
- * `T` is charged as upper bound given by `ContainsLengthBound`.
7237
- * The actual cost depends on the implementation of `T::Tippers`.
7238
- * # </weight>
6818
+ * ## Complexity
6819
+ * - O(1).
7239
6820
  **/
7240
6821
  slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
7241
6822
  /**
@@ -7253,16 +6834,13 @@ declare module '@polkadot/api-base/types/submittable' {
7253
6834
  * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
7254
6835
  * has started.
7255
6836
  *
7256
- * # <weight>
7257
- * - Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length
7258
- * `T`, insert tip and check closing, `T` is charged as upper bound given by
7259
- * `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`.
7260
6841
  *
7261
6842
  * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
7262
6843
  * is weighted as if almost full i.e of length `T-1`.
7263
- * - DbReads: `Tippers`, `Tips`
7264
- * - DbWrites: `Tips`
7265
- * # </weight>
7266
6844
  **/
7267
6845
  tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
7268
6846
  /**
@@ -7279,15 +6857,12 @@ declare module '@polkadot/api-base/types/submittable' {
7279
6857
  *
7280
6858
  * Emits `NewTip` if successful.
7281
6859
  *
7282
- * # <weight>
7283
- * - 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.
7284
6862
  * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
7285
6863
  * `ContainsLengthBound`. The actual cost depends on the implementation of
7286
6864
  * `T::Tippers`.
7287
6865
  * - `O(R)`: hashing and encoding of reason of length `R`
7288
- * - DbReads: `Tippers`, `Reasons`
7289
- * - DbWrites: `Reasons`, `Tips`
7290
- * # </weight>
7291
6866
  **/
7292
6867
  tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
7293
6868
  Id: any;
@@ -7309,12 +6884,10 @@ declare module '@polkadot/api-base/types/submittable' {
7309
6884
  /**
7310
6885
  * Check storage proof for block number `block_number() - StoragePeriod`.
7311
6886
  * If such block does not exist the proof is expected to be `None`.
7312
- * # <weight>
6887
+ * ## Complexity
7313
6888
  * - Linear w.r.t the number of indexed transactions in the proved block for random
7314
6889
  * probing.
7315
6890
  * There's a DB read for each transaction.
7316
- * Here we assume a maximum of 100 probed transactions.
7317
- * # </weight>
7318
6891
  **/
7319
6892
  checkProof: AugmentedSubmittable<(proof: SpTransactionStorageProofTransactionStorageProof | {
7320
6893
  chunk?: any;
@@ -7325,18 +6898,16 @@ declare module '@polkadot/api-base/types/submittable' {
7325
6898
  * previous `store` or `renew` call and transaction index within that block.
7326
6899
  * Transaction index is emitted in the `Stored` or `Renewed` event.
7327
6900
  * Applies same fees as `store`.
7328
- * # <weight>
7329
- * - Constant.
7330
- * # </weight>
6901
+ * ## Complexity
6902
+ * - O(1).
7331
6903
  **/
7332
6904
  renew: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
7333
6905
  /**
7334
6906
  * Index and store data off chain. Minimum data size is 1 bytes, maximum is
7335
6907
  * `MaxTransactionSize`. Data will be removed after `STORAGE_PERIOD` blocks, unless `renew`
7336
- * is called. # <weight>
7337
- * - n*log(n) of data size, as all data is pushed to an in-memory trie.
7338
- * Additionally contains a DB write.
7339
- * # </weight>
6908
+ * is called.
6909
+ * ## Complexity
6910
+ * - O(n*log(n)) of data size, as all data is pushed to an in-memory trie.
7340
6911
  **/
7341
6912
  store: AugmentedSubmittable<(data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
7342
6913
  /**
@@ -7351,11 +6922,8 @@ declare module '@polkadot/api-base/types/submittable' {
7351
6922
  *
7352
6923
  * May only be called from `T::ApproveOrigin`.
7353
6924
  *
7354
- * # <weight>
7355
- * - Complexity: O(1).
7356
- * - DbReads: `Proposals`, `Approvals`
7357
- * - DbWrite: `Approvals`
7358
- * # </weight>
6925
+ * ## Complexity
6926
+ * - O(1).
7359
6927
  **/
7360
6928
  approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
7361
6929
  /**
@@ -7363,11 +6931,8 @@ declare module '@polkadot/api-base/types/submittable' {
7363
6931
  * is reserved and slashed if the proposal is rejected. It is returned once the
7364
6932
  * proposal is awarded.
7365
6933
  *
7366
- * # <weight>
7367
- * - Complexity: O(1)
7368
- * - DbReads: `ProposalCount`, `origin account`
7369
- * - DbWrites: `ProposalCount`, `Proposals`, `origin account`
7370
- * # </weight>
6934
+ * ## Complexity
6935
+ * - O(1)
7371
6936
  **/
7372
6937
  proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
7373
6938
  Id: any;
@@ -7385,11 +6950,8 @@ declare module '@polkadot/api-base/types/submittable' {
7385
6950
  *
7386
6951
  * May only be called from `T::RejectOrigin`.
7387
6952
  *
7388
- * # <weight>
7389
- * - Complexity: O(1)
7390
- * - DbReads: `Proposals`, `rejected proposer account`
7391
- * - DbWrites: `Proposals`, `rejected proposer account`
7392
- * # </weight>
6953
+ * ## Complexity
6954
+ * - O(1)
7393
6955
  **/
7394
6956
  rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
7395
6957
  /**
@@ -7399,10 +6961,8 @@ declare module '@polkadot/api-base/types/submittable' {
7399
6961
  * May only be called from `T::RejectOrigin`.
7400
6962
  * - `proposal_id`: The index of a proposal
7401
6963
  *
7402
- * # <weight>
7403
- * - Complexity: O(A) where `A` is the number of approvals
7404
- * - Db reads and writes: `Approvals`
7405
- * # </weight>
6964
+ * ## Complexity
6965
+ * - O(A) where `A` is the number of approvals
7406
6966
  *
7407
6967
  * Errors:
7408
6968
  * - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
@@ -8057,9 +7617,8 @@ declare module '@polkadot/api-base/types/submittable' {
8057
7617
  * If origin is root then the calls are dispatched without checking origin filter. (This
8058
7618
  * includes bypassing `frame_system::Config::BaseCallFilter`).
8059
7619
  *
8060
- * # <weight>
8061
- * - Complexity: O(C) where C is the number of calls to be batched.
8062
- * # </weight>
7620
+ * ## Complexity
7621
+ * - O(C) where C is the number of calls to be batched.
8063
7622
  *
8064
7623
  * This will return `Ok` in all circumstances. To determine the success of the batch, an
8065
7624
  * event is deposited. If a call failed and the batch was interrupted, then the
@@ -8080,9 +7639,8 @@ declare module '@polkadot/api-base/types/submittable' {
8080
7639
  * If origin is root then the calls are dispatched without checking origin filter. (This
8081
7640
  * includes bypassing `frame_system::Config::BaseCallFilter`).
8082
7641
  *
8083
- * # <weight>
8084
- * - Complexity: O(C) where C is the number of calls to be batched.
8085
- * # </weight>
7642
+ * ## Complexity
7643
+ * - O(C) where C is the number of calls to be batched.
8086
7644
  **/
8087
7645
  batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
8088
7646
  /**
@@ -8090,12 +7648,8 @@ declare module '@polkadot/api-base/types/submittable' {
8090
7648
  *
8091
7649
  * The dispatch origin for this call must be _Root_.
8092
7650
  *
8093
- * # <weight>
7651
+ * ## Complexity
8094
7652
  * - O(1).
8095
- * - Limited storage reads.
8096
- * - One DB write (event).
8097
- * - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
8098
- * # </weight>
8099
7653
  **/
8100
7654
  dispatchAs: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | {
8101
7655
  system: any;
@@ -8120,9 +7674,8 @@ declare module '@polkadot/api-base/types/submittable' {
8120
7674
  * If origin is root then the calls are dispatch without checking origin filter. (This
8121
7675
  * includes bypassing `frame_system::Config::BaseCallFilter`).
8122
7676
  *
8123
- * # <weight>
8124
- * - Complexity: O(C) where C is the number of calls to be batched.
8125
- * # </weight>
7677
+ * ## Complexity
7678
+ * - O(C) where C is the number of calls to be batched.
8126
7679
  **/
8127
7680
  forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
8128
7681
  /**
@@ -8156,12 +7709,8 @@ declare module '@polkadot/api-base/types/submittable' {
8156
7709
  *
8157
7710
  * NOTE: This will unlock all schedules through the current block.
8158
7711
  *
8159
- * # <weight>
7712
+ * ## Complexity
8160
7713
  * - `O(1)`.
8161
- * - DbWeight: 4 Reads, 4 Writes
8162
- * - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
8163
- * - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
8164
- * # </weight>
8165
7714
  **/
8166
7715
  forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
8167
7716
  Id: any;
@@ -8220,12 +7769,8 @@ declare module '@polkadot/api-base/types/submittable' {
8220
7769
  *
8221
7770
  * Emits either `VestingCompleted` or `VestingUpdated`.
8222
7771
  *
8223
- * # <weight>
7772
+ * ## Complexity
8224
7773
  * - `O(1)`.
8225
- * - DbWeight: 2 Reads, 2 Writes
8226
- * - Reads: Vesting Storage, Balances Locks, [Sender Account]
8227
- * - Writes: Vesting Storage, Balances Locks, [Sender Account]
8228
- * # </weight>
8229
7774
  **/
8230
7775
  vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
8231
7776
  /**
@@ -8240,12 +7785,8 @@ declare module '@polkadot/api-base/types/submittable' {
8240
7785
  *
8241
7786
  * NOTE: This will unlock all schedules through the current block.
8242
7787
  *
8243
- * # <weight>
7788
+ * ## Complexity
8244
7789
  * - `O(1)`.
8245
- * - DbWeight: 3 Reads, 3 Writes
8246
- * - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
8247
- * - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
8248
- * # </weight>
8249
7790
  **/
8250
7791
  vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
8251
7792
  Id: any;
@@ -8272,12 +7813,8 @@ declare module '@polkadot/api-base/types/submittable' {
8272
7813
  *
8273
7814
  * Emits either `VestingCompleted` or `VestingUpdated`.
8274
7815
  *
8275
- * # <weight>
7816
+ * ## Complexity
8276
7817
  * - `O(1)`.
8277
- * - DbWeight: 3 Reads, 3 Writes
8278
- * - Reads: Vesting Storage, Balances Locks, Target Account
8279
- * - Writes: Vesting Storage, Balances Locks, Target Account
8280
- * # </weight>
8281
7818
  **/
8282
7819
  vestOther: AugmentedSubmittable<(target: MultiAddress | {
8283
7820
  Id: any;