@polkadot/api-augment 9.14.1 → 10.0.1
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/base.js +0 -4
- package/bundle.js +2 -5
- package/cjs/base.js +1 -1
- package/cjs/bundle.js +4 -11
- package/cjs/detectOther.js +5 -12
- package/cjs/detectPackage.js +6 -11
- package/cjs/index.js +3 -15
- package/cjs/kusama/consts.js +2 -1
- package/cjs/kusama/errors.js +2 -1
- package/cjs/kusama/events.js +2 -1
- package/cjs/kusama/index.js +1 -1
- package/cjs/kusama/query.js +2 -1
- package/cjs/kusama/registry.js +1 -1
- package/cjs/kusama/runtime.js +2 -1
- package/cjs/kusama/tx.js +2 -1
- package/cjs/packageInfo.js +2 -16
- package/cjs/polkadot/consts.js +2 -1
- package/cjs/polkadot/errors.js +2 -1
- package/cjs/polkadot/events.js +2 -1
- package/cjs/polkadot/index.js +1 -1
- package/cjs/polkadot/query.js +2 -1
- package/cjs/polkadot/registry.js +1 -1
- package/cjs/polkadot/runtime.js +2 -1
- package/cjs/polkadot/tx.js +2 -1
- package/cjs/substrate/consts.js +2 -1
- package/cjs/substrate/errors.js +2 -1
- package/cjs/substrate/events.js +2 -1
- package/cjs/substrate/index.js +1 -1
- package/cjs/substrate/query.js +2 -1
- package/cjs/substrate/registry.js +1 -1
- package/cjs/substrate/runtime.js +2 -1
- package/cjs/substrate/tx.js +2 -1
- package/detectOther.js +0 -3
- package/detectPackage.js +2 -7
- package/index.js +2 -5
- package/kusama/consts.js +1 -7
- package/kusama/errors.d.ts +4 -0
- package/kusama/errors.js +1 -7
- package/kusama/events.d.ts +2 -2
- package/kusama/events.js +1 -7
- package/kusama/index.js +8 -11
- package/kusama/query.d.ts +20 -1
- package/kusama/query.js +1 -7
- package/kusama/registry.js +0 -3
- package/kusama/runtime.js +1 -7
- package/kusama/tx.d.ts +258 -638
- package/kusama/tx.js +1 -7
- package/package.json +12 -9
- package/packageInfo.js +1 -11
- package/polkadot/consts.js +1 -7
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/errors.js +1 -7
- package/polkadot/events.d.ts +2 -2
- package/polkadot/events.js +1 -7
- package/polkadot/index.js +8 -11
- package/polkadot/query.d.ts +20 -1
- package/polkadot/query.js +1 -7
- package/polkadot/registry.js +0 -3
- package/polkadot/runtime.js +1 -7
- package/polkadot/tx.d.ts +209 -478
- package/polkadot/tx.js +1 -7
- package/substrate/consts.d.ts +4 -0
- package/substrate/consts.js +1 -7
- package/substrate/errors.d.ts +43 -4
- package/substrate/errors.js +1 -7
- package/substrate/events.d.ts +43 -11
- package/substrate/events.js +1 -7
- package/substrate/index.js +8 -11
- package/substrate/query.d.ts +50 -16
- package/substrate/query.js +1 -7
- package/substrate/registry.js +0 -3
- package/substrate/runtime.js +1 -7
- package/substrate/tx.d.ts +364 -731
- package/substrate/tx.js +1 -7
package/kusama/tx.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
9
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
10
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
11
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -105,10 +105,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
105
105
|
/**
|
|
106
106
|
* Exactly as `transfer`, except the origin must be root and the source account may be
|
|
107
107
|
* specified.
|
|
108
|
-
*
|
|
108
|
+
* ## Complexity
|
|
109
109
|
* - Same as transfer, but additional read and write because the source account is not
|
|
110
110
|
* assumed to be in the overlay.
|
|
111
|
-
* # </weight>
|
|
112
111
|
**/
|
|
113
112
|
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
114
113
|
Id: any;
|
|
@@ -177,7 +176,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
177
176
|
*
|
|
178
177
|
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
179
178
|
*
|
|
180
|
-
*
|
|
179
|
+
* ## Complexity
|
|
181
180
|
* - Dependent on arguments but not critical, given proper implementations for input config
|
|
182
181
|
* types. See related functions below.
|
|
183
182
|
* - It contains a limited number of reads and writes internally and no complex
|
|
@@ -191,9 +190,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
191
190
|
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
|
192
191
|
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
|
193
192
|
* that the transfer will not kill the origin account.
|
|
194
|
-
* ---------------------------------
|
|
195
|
-
* - Origin account is already in memory, so no DB operations for them.
|
|
196
|
-
* # </weight>
|
|
197
193
|
**/
|
|
198
194
|
transfer: AugmentedSubmittable<(dest: MultiAddress | {
|
|
199
195
|
Id: any;
|
|
@@ -221,9 +217,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
221
217
|
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
222
218
|
* of the funds the account has, causing the sender account to be killed (false), or
|
|
223
219
|
* transfer everything except at least the existential deposit, which will guarantee to
|
|
224
|
-
* keep the sender account alive (true).
|
|
220
|
+
* keep the sender account alive (true). ## Complexity
|
|
225
221
|
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
|
226
|
-
* #</weight>
|
|
227
222
|
**/
|
|
228
223
|
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
|
|
229
224
|
Id: any;
|
|
@@ -267,9 +262,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
267
262
|
*
|
|
268
263
|
* May only be called from the curator.
|
|
269
264
|
*
|
|
270
|
-
*
|
|
265
|
+
* ## Complexity
|
|
271
266
|
* - O(1).
|
|
272
|
-
* # </weight>
|
|
273
267
|
**/
|
|
274
268
|
acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
275
269
|
/**
|
|
@@ -278,9 +272,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
278
272
|
*
|
|
279
273
|
* May only be called from `T::SpendOrigin`.
|
|
280
274
|
*
|
|
281
|
-
*
|
|
275
|
+
* ## Complexity
|
|
282
276
|
* - O(1).
|
|
283
|
-
* # </weight>
|
|
284
277
|
**/
|
|
285
278
|
approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
286
279
|
/**
|
|
@@ -292,9 +285,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
292
285
|
* - `bounty_id`: Bounty ID to award.
|
|
293
286
|
* - `beneficiary`: The beneficiary account whom will receive the payout.
|
|
294
287
|
*
|
|
295
|
-
*
|
|
288
|
+
* ## Complexity
|
|
296
289
|
* - O(1).
|
|
297
|
-
* # </weight>
|
|
298
290
|
**/
|
|
299
291
|
awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
300
292
|
Id: any;
|
|
@@ -314,9 +306,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
314
306
|
*
|
|
315
307
|
* - `bounty_id`: Bounty ID to claim.
|
|
316
308
|
*
|
|
317
|
-
*
|
|
309
|
+
* ## Complexity
|
|
318
310
|
* - O(1).
|
|
319
|
-
* # </weight>
|
|
320
311
|
**/
|
|
321
312
|
claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
322
313
|
/**
|
|
@@ -327,9 +318,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
327
318
|
*
|
|
328
319
|
* - `bounty_id`: Bounty ID to cancel.
|
|
329
320
|
*
|
|
330
|
-
*
|
|
321
|
+
* ## Complexity
|
|
331
322
|
* - O(1).
|
|
332
|
-
* # </weight>
|
|
333
323
|
**/
|
|
334
324
|
closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
335
325
|
/**
|
|
@@ -340,9 +330,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
340
330
|
* - `bounty_id`: Bounty ID to extend.
|
|
341
331
|
* - `remark`: additional information.
|
|
342
332
|
*
|
|
343
|
-
*
|
|
333
|
+
* ## Complexity
|
|
344
334
|
* - O(1).
|
|
345
|
-
* # </weight>
|
|
346
335
|
**/
|
|
347
336
|
extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
|
|
348
337
|
/**
|
|
@@ -365,9 +354,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
365
354
|
*
|
|
366
355
|
* May only be called from `T::SpendOrigin`.
|
|
367
356
|
*
|
|
368
|
-
*
|
|
357
|
+
* ## Complexity
|
|
369
358
|
* - O(1).
|
|
370
|
-
* # </weight>
|
|
371
359
|
**/
|
|
372
360
|
proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
|
|
373
361
|
Id: any;
|
|
@@ -396,9 +384,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
396
384
|
* anyone in the community to call out that a curator is not doing their due diligence, and
|
|
397
385
|
* we should pick a new curator. In this case the curator should also be slashed.
|
|
398
386
|
*
|
|
399
|
-
*
|
|
387
|
+
* ## Complexity
|
|
400
388
|
* - O(1).
|
|
401
|
-
* # </weight>
|
|
402
389
|
**/
|
|
403
390
|
unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
404
391
|
/**
|
|
@@ -1070,20 +1057,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1070
1057
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
1071
1058
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
1072
1059
|
*
|
|
1073
|
-
*
|
|
1074
|
-
* ## Weight
|
|
1060
|
+
* ## Complexity
|
|
1075
1061
|
* - `O(B + M + P1 + P2)` where:
|
|
1076
1062
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1077
1063
|
* - `M` is members-count (code- and governance-bounded)
|
|
1078
1064
|
* - `P1` is the complexity of `proposal` preimage.
|
|
1079
1065
|
* - `P2` is proposal-count (code-bounded)
|
|
1080
|
-
* - DB:
|
|
1081
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
1082
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
1083
|
-
* `O(P2)`)
|
|
1084
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
1085
|
-
* - up to 3 events
|
|
1086
|
-
* # </weight>
|
|
1087
1066
|
**/
|
|
1088
1067
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
1089
1068
|
refTime?: any;
|
|
@@ -1108,20 +1087,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1108
1087
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
1109
1088
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
1110
1089
|
*
|
|
1111
|
-
*
|
|
1112
|
-
* ## Weight
|
|
1090
|
+
* ## Complexity
|
|
1113
1091
|
* - `O(B + M + P1 + P2)` where:
|
|
1114
1092
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1115
1093
|
* - `M` is members-count (code- and governance-bounded)
|
|
1116
1094
|
* - `P1` is the complexity of `proposal` preimage.
|
|
1117
1095
|
* - `P2` is proposal-count (code-bounded)
|
|
1118
|
-
* - DB:
|
|
1119
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
1120
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
1121
|
-
* `O(P2)`)
|
|
1122
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
1123
|
-
* - up to 3 events
|
|
1124
|
-
* # </weight>
|
|
1125
1096
|
**/
|
|
1126
1097
|
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
1127
1098
|
/**
|
|
@@ -1133,12 +1104,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1133
1104
|
* Parameters:
|
|
1134
1105
|
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
1135
1106
|
*
|
|
1136
|
-
*
|
|
1137
|
-
*
|
|
1138
|
-
* DB Weight:
|
|
1139
|
-
* * Reads: Proposals
|
|
1140
|
-
* * Writes: Voting, Proposals, ProposalOf
|
|
1141
|
-
* # </weight>
|
|
1107
|
+
* ## Complexity
|
|
1108
|
+
* O(P) where P is the number of max proposals
|
|
1142
1109
|
**/
|
|
1143
1110
|
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
1144
1111
|
/**
|
|
@@ -1146,13 +1113,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1146
1113
|
*
|
|
1147
1114
|
* Origin must be a member of the collective.
|
|
1148
1115
|
*
|
|
1149
|
-
*
|
|
1150
|
-
*
|
|
1151
|
-
* - `
|
|
1152
|
-
* `
|
|
1153
|
-
* -
|
|
1154
|
-
* - 1 event
|
|
1155
|
-
* # </weight>
|
|
1116
|
+
* ## Complexity:
|
|
1117
|
+
* - `O(B + M + P)` where:
|
|
1118
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1119
|
+
* - `M` members-count (code-bounded)
|
|
1120
|
+
* - `P` complexity of dispatching `proposal`
|
|
1156
1121
|
**/
|
|
1157
1122
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
1158
1123
|
/**
|
|
@@ -1163,26 +1128,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1163
1128
|
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
1164
1129
|
* or put up for voting.
|
|
1165
1130
|
*
|
|
1166
|
-
*
|
|
1167
|
-
* ## Weight
|
|
1131
|
+
* ## Complexity
|
|
1168
1132
|
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
1169
1133
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1170
1134
|
* - `M` is members-count (code- and governance-bounded)
|
|
1171
1135
|
* - branching is influenced by `threshold` where:
|
|
1172
1136
|
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
1173
1137
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
1174
|
-
* - DB:
|
|
1175
|
-
* - 1 storage read `is_member` (codec `O(M)`)
|
|
1176
|
-
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
1177
|
-
* - DB accesses influenced by `threshold`:
|
|
1178
|
-
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
1179
|
-
* - OR proposal insertion (`threshold <= 2`)
|
|
1180
|
-
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
1181
|
-
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
1182
|
-
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
1183
|
-
* - 1 storage write `Voting` (codec `O(M)`)
|
|
1184
|
-
* - 1 event
|
|
1185
|
-
* # </weight>
|
|
1186
1138
|
**/
|
|
1187
1139
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
1188
1140
|
/**
|
|
@@ -1193,7 +1145,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1193
1145
|
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
1194
1146
|
* weight estimation.
|
|
1195
1147
|
*
|
|
1196
|
-
*
|
|
1148
|
+
* The dispatch of this call must be `SetMembersOrigin`.
|
|
1197
1149
|
*
|
|
1198
1150
|
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
1199
1151
|
* the weight estimations rely on it to estimate dispatchable weight.
|
|
@@ -1205,19 +1157,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1205
1157
|
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
1206
1158
|
* with other logic managing the member set.
|
|
1207
1159
|
*
|
|
1208
|
-
*
|
|
1209
|
-
* ## Weight
|
|
1160
|
+
* ## Complexity:
|
|
1210
1161
|
* - `O(MP + N)` where:
|
|
1211
1162
|
* - `M` old-members-count (code- and governance-bounded)
|
|
1212
1163
|
* - `N` new-members-count (code- and governance-bounded)
|
|
1213
1164
|
* - `P` proposals-count (code-bounded)
|
|
1214
|
-
* - DB:
|
|
1215
|
-
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
1216
|
-
* members
|
|
1217
|
-
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
1218
|
-
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
1219
|
-
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
1220
|
-
* # </weight>
|
|
1221
1165
|
**/
|
|
1222
1166
|
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
1223
1167
|
/**
|
|
@@ -1228,14 +1172,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1228
1172
|
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
1229
1173
|
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
1230
1174
|
* fee.
|
|
1231
|
-
*
|
|
1232
|
-
* ## Weight
|
|
1175
|
+
* ## Complexity
|
|
1233
1176
|
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
1234
|
-
* - DB:
|
|
1235
|
-
* - 1 storage read `Members` (codec `O(M)`)
|
|
1236
|
-
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
1237
|
-
* - 1 event
|
|
1238
|
-
* # </weight>
|
|
1239
1177
|
**/
|
|
1240
1178
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
1241
1179
|
/**
|
|
@@ -2190,11 +2128,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2190
2128
|
*
|
|
2191
2129
|
* Emits `RegistrarAdded` if successful.
|
|
2192
2130
|
*
|
|
2193
|
-
*
|
|
2131
|
+
* ## Complexity
|
|
2194
2132
|
* - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
|
|
2195
|
-
* - One storage mutation (codec `O(R)`).
|
|
2196
|
-
* - One event.
|
|
2197
|
-
* # </weight>
|
|
2198
2133
|
**/
|
|
2199
2134
|
addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
|
|
2200
2135
|
Id: any;
|
|
@@ -2251,12 +2186,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2251
2186
|
*
|
|
2252
2187
|
* Emits `JudgementUnrequested` if successful.
|
|
2253
2188
|
*
|
|
2254
|
-
*
|
|
2189
|
+
* ## Complexity
|
|
2255
2190
|
* - `O(R + X)`.
|
|
2256
|
-
* -
|
|
2257
|
-
* -
|
|
2258
|
-
* - One event
|
|
2259
|
-
* # </weight>
|
|
2191
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2192
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2260
2193
|
**/
|
|
2261
2194
|
cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2262
2195
|
/**
|
|
@@ -2269,15 +2202,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2269
2202
|
*
|
|
2270
2203
|
* Emits `IdentityCleared` if successful.
|
|
2271
2204
|
*
|
|
2272
|
-
*
|
|
2205
|
+
* ## Complexity
|
|
2273
2206
|
* - `O(R + S + X)`
|
|
2274
2207
|
* - where `R` registrar-count (governance-bounded).
|
|
2275
2208
|
* - where `S` subs-count (hard- and deposit-bounded).
|
|
2276
2209
|
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2277
|
-
* - One balance-unreserve operation.
|
|
2278
|
-
* - `2` storage reads and `S + 2` storage deletions.
|
|
2279
|
-
* - One event.
|
|
2280
|
-
* # </weight>
|
|
2281
2210
|
**/
|
|
2282
2211
|
clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2283
2212
|
/**
|
|
@@ -2294,12 +2223,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2294
2223
|
*
|
|
2295
2224
|
* Emits `IdentityKilled` if successful.
|
|
2296
2225
|
*
|
|
2297
|
-
*
|
|
2298
|
-
* - `O(R + S + X)
|
|
2299
|
-
* -
|
|
2300
|
-
* - `S
|
|
2301
|
-
* -
|
|
2302
|
-
* # </weight>
|
|
2226
|
+
* ## Complexity
|
|
2227
|
+
* - `O(R + S + X)`
|
|
2228
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2229
|
+
* - where `S` subs-count (hard- and deposit-bounded).
|
|
2230
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2303
2231
|
**/
|
|
2304
2232
|
killIdentity: AugmentedSubmittable<(target: MultiAddress | {
|
|
2305
2233
|
Id: any;
|
|
@@ -2326,13 +2254,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2326
2254
|
*
|
|
2327
2255
|
* Emits `JudgementGiven` if successful.
|
|
2328
2256
|
*
|
|
2329
|
-
*
|
|
2257
|
+
* ## Complexity
|
|
2330
2258
|
* - `O(R + X)`.
|
|
2331
|
-
* -
|
|
2332
|
-
* -
|
|
2333
|
-
* - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
|
|
2334
|
-
* - One event.
|
|
2335
|
-
* # </weight>
|
|
2259
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2260
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2336
2261
|
**/
|
|
2337
2262
|
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
|
|
2338
2263
|
Id: any;
|
|
@@ -2439,12 +2364,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2439
2364
|
*
|
|
2440
2365
|
* Emits `JudgementRequested` if successful.
|
|
2441
2366
|
*
|
|
2442
|
-
*
|
|
2367
|
+
* ## Complexity
|
|
2443
2368
|
* - `O(R + X)`.
|
|
2444
|
-
* -
|
|
2445
|
-
* -
|
|
2446
|
-
* - One event.
|
|
2447
|
-
* # </weight>
|
|
2369
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2370
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2448
2371
|
**/
|
|
2449
2372
|
requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
2450
2373
|
/**
|
|
@@ -2456,11 +2379,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2456
2379
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
2457
2380
|
* - `new`: the new account ID.
|
|
2458
2381
|
*
|
|
2459
|
-
*
|
|
2382
|
+
* ## Complexity
|
|
2460
2383
|
* - `O(R)`.
|
|
2461
|
-
* -
|
|
2462
|
-
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
|
2463
|
-
* # </weight>
|
|
2384
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2464
2385
|
**/
|
|
2465
2386
|
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
|
|
2466
2387
|
Id: any;
|
|
@@ -2482,11 +2403,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2482
2403
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
2483
2404
|
* - `fee`: the new fee.
|
|
2484
2405
|
*
|
|
2485
|
-
*
|
|
2406
|
+
* ## Complexity
|
|
2486
2407
|
* - `O(R)`.
|
|
2487
|
-
* -
|
|
2488
|
-
* - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
|
|
2489
|
-
* # </weight>
|
|
2408
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2490
2409
|
**/
|
|
2491
2410
|
setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
2492
2411
|
/**
|
|
@@ -2498,11 +2417,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2498
2417
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
2499
2418
|
* - `fields`: the fields that the registrar concerns themselves with.
|
|
2500
2419
|
*
|
|
2501
|
-
*
|
|
2420
|
+
* ## Complexity
|
|
2502
2421
|
* - `O(R)`.
|
|
2503
|
-
* -
|
|
2504
|
-
* - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
|
|
2505
|
-
* # </weight>
|
|
2422
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2506
2423
|
**/
|
|
2507
2424
|
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
|
|
2508
2425
|
/**
|
|
@@ -2517,14 +2434,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2517
2434
|
*
|
|
2518
2435
|
* Emits `IdentitySet` if successful.
|
|
2519
2436
|
*
|
|
2520
|
-
*
|
|
2437
|
+
* ## Complexity
|
|
2521
2438
|
* - `O(X + X' + R)`
|
|
2522
2439
|
* - where `X` additional-field-count (deposit-bounded and code-bounded)
|
|
2523
2440
|
* - where `R` judgements-count (registrar-count-bounded)
|
|
2524
|
-
* - One balance reserve operation.
|
|
2525
|
-
* - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
|
|
2526
|
-
* - One event.
|
|
2527
|
-
* # </weight>
|
|
2528
2441
|
**/
|
|
2529
2442
|
setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
|
|
2530
2443
|
additional?: any;
|
|
@@ -2548,17 +2461,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2548
2461
|
*
|
|
2549
2462
|
* - `subs`: The identity's (new) sub-accounts.
|
|
2550
2463
|
*
|
|
2551
|
-
*
|
|
2464
|
+
* ## Complexity
|
|
2552
2465
|
* - `O(P + S)`
|
|
2553
2466
|
* - where `P` old-subs-count (hard- and deposit-bounded).
|
|
2554
2467
|
* - where `S` subs-count (hard- and deposit-bounded).
|
|
2555
|
-
* - At most one balance operations.
|
|
2556
|
-
* - DB:
|
|
2557
|
-
* - `P + S` storage mutations (codec complexity `O(1)`)
|
|
2558
|
-
* - One storage read (codec complexity `O(P)`).
|
|
2559
|
-
* - One storage write (codec complexity `O(S)`).
|
|
2560
|
-
* - One storage-exists (`IdentityOf::contains_key`).
|
|
2561
|
-
* # </weight>
|
|
2562
2468
|
**/
|
|
2563
2469
|
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
|
|
2564
2470
|
None: any;
|
|
@@ -2580,15 +2486,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2580
2486
|
};
|
|
2581
2487
|
imOnline: {
|
|
2582
2488
|
/**
|
|
2583
|
-
*
|
|
2584
|
-
* -
|
|
2585
|
-
*
|
|
2489
|
+
* ## Complexity:
|
|
2490
|
+
* - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
|
|
2491
|
+
* `heartbeat.network_state.external_address`
|
|
2586
2492
|
* - `O(K)`: decoding of length `K`
|
|
2587
2493
|
* - `O(E)`: decoding/encoding of length `E`
|
|
2588
|
-
* - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
|
|
2589
|
-
* `ReceivedHeartbeats`
|
|
2590
|
-
* - DbWrites: `ReceivedHeartbeats`
|
|
2591
|
-
* # </weight>
|
|
2592
2494
|
**/
|
|
2593
2495
|
heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
|
|
2594
2496
|
blockNumber?: any;
|
|
@@ -2614,14 +2516,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2614
2516
|
*
|
|
2615
2517
|
* Emits `IndexAssigned` if successful.
|
|
2616
2518
|
*
|
|
2617
|
-
*
|
|
2519
|
+
* ## Complexity
|
|
2618
2520
|
* - `O(1)`.
|
|
2619
|
-
* - One storage mutation (codec `O(1)`).
|
|
2620
|
-
* - One reserve operation.
|
|
2621
|
-
* - One event.
|
|
2622
|
-
* -------------------
|
|
2623
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
2624
|
-
* # </weight>
|
|
2625
2521
|
**/
|
|
2626
2522
|
claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2627
2523
|
/**
|
|
@@ -2636,16 +2532,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2636
2532
|
*
|
|
2637
2533
|
* Emits `IndexAssigned` if successful.
|
|
2638
2534
|
*
|
|
2639
|
-
*
|
|
2535
|
+
* ## Complexity
|
|
2640
2536
|
* - `O(1)`.
|
|
2641
|
-
* - One storage mutation (codec `O(1)`).
|
|
2642
|
-
* - Up to one reserve operation.
|
|
2643
|
-
* - One event.
|
|
2644
|
-
* -------------------
|
|
2645
|
-
* - DB Weight:
|
|
2646
|
-
* - Reads: Indices Accounts, System Account (original owner)
|
|
2647
|
-
* - Writes: Indices Accounts, System Account (original owner)
|
|
2648
|
-
* # </weight>
|
|
2649
2537
|
**/
|
|
2650
2538
|
forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
|
|
2651
2539
|
Id: any;
|
|
@@ -2669,14 +2557,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2669
2557
|
*
|
|
2670
2558
|
* Emits `IndexFreed` if successful.
|
|
2671
2559
|
*
|
|
2672
|
-
*
|
|
2560
|
+
* ## Complexity
|
|
2673
2561
|
* - `O(1)`.
|
|
2674
|
-
* - One storage mutation (codec `O(1)`).
|
|
2675
|
-
* - One reserve operation.
|
|
2676
|
-
* - One event.
|
|
2677
|
-
* -------------------
|
|
2678
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
2679
|
-
* # </weight>
|
|
2680
2562
|
**/
|
|
2681
2563
|
free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2682
2564
|
/**
|
|
@@ -2690,14 +2572,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2690
2572
|
*
|
|
2691
2573
|
* Emits `IndexFrozen` if successful.
|
|
2692
2574
|
*
|
|
2693
|
-
*
|
|
2575
|
+
* ## Complexity
|
|
2694
2576
|
* - `O(1)`.
|
|
2695
|
-
* - One storage mutation (codec `O(1)`).
|
|
2696
|
-
* - Up to one slash operation.
|
|
2697
|
-
* - One event.
|
|
2698
|
-
* -------------------
|
|
2699
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
2700
|
-
* # </weight>
|
|
2701
2577
|
**/
|
|
2702
2578
|
freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2703
2579
|
/**
|
|
@@ -2711,16 +2587,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2711
2587
|
*
|
|
2712
2588
|
* Emits `IndexAssigned` if successful.
|
|
2713
2589
|
*
|
|
2714
|
-
*
|
|
2590
|
+
* ## Complexity
|
|
2715
2591
|
* - `O(1)`.
|
|
2716
|
-
* - One storage mutation (codec `O(1)`).
|
|
2717
|
-
* - One transfer operation.
|
|
2718
|
-
* - One event.
|
|
2719
|
-
* -------------------
|
|
2720
|
-
* - DB Weight:
|
|
2721
|
-
* - Reads: Indices Accounts, System Account (recipient)
|
|
2722
|
-
* - Writes: Indices Accounts, System Account (recipient)
|
|
2723
|
-
* # </weight>
|
|
2724
2592
|
**/
|
|
2725
2593
|
transfer: AugmentedSubmittable<(updated: MultiAddress | {
|
|
2726
2594
|
Id: any;
|
|
@@ -2771,7 +2639,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2771
2639
|
*
|
|
2772
2640
|
* NOTE: If this is the final approval, you will want to use `as_multi` instead.
|
|
2773
2641
|
*
|
|
2774
|
-
*
|
|
2642
|
+
* ## Complexity
|
|
2775
2643
|
* - `O(S)`.
|
|
2776
2644
|
* - Up to one balance-reserve or unreserve operation.
|
|
2777
2645
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -2782,11 +2650,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2782
2650
|
* - One event.
|
|
2783
2651
|
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
2784
2652
|
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
2785
|
-
* ----------------------------------
|
|
2786
|
-
* - DB Weight:
|
|
2787
|
-
* - Read: Multisig Storage, [Caller Account]
|
|
2788
|
-
* - Write: Multisig Storage, [Caller Account]
|
|
2789
|
-
* # </weight>
|
|
2790
2653
|
**/
|
|
2791
2654
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
2792
2655
|
height?: any;
|
|
@@ -2822,7 +2685,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2822
2685
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
2823
2686
|
* may be found in the deposited `MultisigExecuted` event.
|
|
2824
2687
|
*
|
|
2825
|
-
*
|
|
2688
|
+
* ## Complexity
|
|
2826
2689
|
* - `O(S + Z + Call)`.
|
|
2827
2690
|
* - Up to one balance-reserve or unreserve operation.
|
|
2828
2691
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -2835,12 +2698,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2835
2698
|
* - The weight of the `call`.
|
|
2836
2699
|
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
2837
2700
|
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
2838
|
-
* -------------------------------
|
|
2839
|
-
* - DB Weight:
|
|
2840
|
-
* - Reads: Multisig Storage, [Caller Account]
|
|
2841
|
-
* - Writes: Multisig Storage, [Caller Account]
|
|
2842
|
-
* - Plus Call Weight
|
|
2843
|
-
* # </weight>
|
|
2844
2701
|
**/
|
|
2845
2702
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
2846
2703
|
height?: any;
|
|
@@ -2860,12 +2717,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2860
2717
|
*
|
|
2861
2718
|
* Result is equivalent to the dispatched result.
|
|
2862
2719
|
*
|
|
2863
|
-
*
|
|
2720
|
+
* ## Complexity
|
|
2864
2721
|
* O(Z + C) where Z is the length of the call and C its execution weight.
|
|
2865
|
-
* -------------------------------
|
|
2866
|
-
* - DB Weight: None
|
|
2867
|
-
* - Plus Call Weight
|
|
2868
|
-
* # </weight>
|
|
2869
2722
|
**/
|
|
2870
2723
|
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
|
2871
2724
|
/**
|
|
@@ -2881,7 +2734,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2881
2734
|
* transaction for this dispatch.
|
|
2882
2735
|
* - `call_hash`: The hash of the call to be executed.
|
|
2883
2736
|
*
|
|
2884
|
-
*
|
|
2737
|
+
* ## Complexity
|
|
2885
2738
|
* - `O(S)`.
|
|
2886
2739
|
* - Up to one balance-reserve or unreserve operation.
|
|
2887
2740
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -2890,11 +2743,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2890
2743
|
* - One event.
|
|
2891
2744
|
* - I/O: 1 read `O(S)`, one remove.
|
|
2892
2745
|
* - Storage: removes one item.
|
|
2893
|
-
* ----------------------------------
|
|
2894
|
-
* - DB Weight:
|
|
2895
|
-
* - Read: Multisig Storage, [Caller Account], Refund Account
|
|
2896
|
-
* - Write: Multisig Storage, [Caller Account], Refund Account
|
|
2897
|
-
* # </weight>
|
|
2898
2746
|
**/
|
|
2899
2747
|
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
|
|
2900
2748
|
height?: any;
|
|
@@ -2973,10 +2821,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2973
2821
|
/**
|
|
2974
2822
|
* Exactly as `transfer`, except the origin must be root and the source account may be
|
|
2975
2823
|
* specified.
|
|
2976
|
-
*
|
|
2824
|
+
* ## Complexity
|
|
2977
2825
|
* - Same as transfer, but additional read and write because the source account is not
|
|
2978
2826
|
* assumed to be in the overlay.
|
|
2979
|
-
* # </weight>
|
|
2980
2827
|
**/
|
|
2981
2828
|
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
2982
2829
|
Id: any;
|
|
@@ -3045,7 +2892,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3045
2892
|
*
|
|
3046
2893
|
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
3047
2894
|
*
|
|
3048
|
-
*
|
|
2895
|
+
* ## Complexity
|
|
3049
2896
|
* - Dependent on arguments but not critical, given proper implementations for input config
|
|
3050
2897
|
* types. See related functions below.
|
|
3051
2898
|
* - It contains a limited number of reads and writes internally and no complex
|
|
@@ -3059,9 +2906,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3059
2906
|
* - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
|
|
3060
2907
|
* - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
|
|
3061
2908
|
* that the transfer will not kill the origin account.
|
|
3062
|
-
* ---------------------------------
|
|
3063
|
-
* - Origin account is already in memory, so no DB operations for them.
|
|
3064
|
-
* # </weight>
|
|
3065
2909
|
**/
|
|
3066
2910
|
transfer: AugmentedSubmittable<(dest: MultiAddress | {
|
|
3067
2911
|
Id: any;
|
|
@@ -3089,9 +2933,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3089
2933
|
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
3090
2934
|
* of the funds the account has, causing the sender account to be killed (false), or
|
|
3091
2935
|
* transfer everything except at least the existential deposit, which will guarantee to
|
|
3092
|
-
* keep the sender account alive (true).
|
|
2936
|
+
* keep the sender account alive (true). ## Complexity
|
|
3093
2937
|
* - O(1). Just like transfer, but reading the user's transferable balance first.
|
|
3094
|
-
* #</weight>
|
|
3095
2938
|
**/
|
|
3096
2939
|
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
|
|
3097
2940
|
Id: any;
|
|
@@ -3136,12 +2979,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3136
2979
|
* accumulated rewards, see [`BondExtra`].
|
|
3137
2980
|
*
|
|
3138
2981
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
2982
|
+
* See `bond_extra_other` to bond pending rewards of `other` members.
|
|
3139
2983
|
**/
|
|
3140
2984
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
3141
2985
|
FreeBalance: any;
|
|
3142
2986
|
} | {
|
|
3143
2987
|
Rewards: any;
|
|
3144
2988
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
2989
|
+
/**
|
|
2990
|
+
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
|
2991
|
+
* pools.
|
|
2992
|
+
*
|
|
2993
|
+
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
|
2994
|
+
* other`.
|
|
2995
|
+
*
|
|
2996
|
+
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
|
2997
|
+
* `other` members assuming set_claim_permission for the given member is
|
|
2998
|
+
* `PermissionlessAll` or `PermissionlessCompound`.
|
|
2999
|
+
**/
|
|
3000
|
+
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
|
|
3001
|
+
Id: any;
|
|
3002
|
+
} | {
|
|
3003
|
+
Index: any;
|
|
3004
|
+
} | {
|
|
3005
|
+
Raw: any;
|
|
3006
|
+
} | {
|
|
3007
|
+
Address32: any;
|
|
3008
|
+
} | {
|
|
3009
|
+
Address20: any;
|
|
3010
|
+
} | string | Uint8Array, extra: PalletNominationPoolsBondExtra | {
|
|
3011
|
+
FreeBalance: any;
|
|
3012
|
+
} | {
|
|
3013
|
+
Rewards: any;
|
|
3014
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
|
3145
3015
|
/**
|
|
3146
3016
|
* Chill on behalf of the pool.
|
|
3147
3017
|
*
|
|
@@ -3159,8 +3029,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3159
3029
|
*
|
|
3160
3030
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
3161
3031
|
* members in the pools stake. Rewards do not "expire".
|
|
3032
|
+
*
|
|
3033
|
+
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
|
3162
3034
|
**/
|
|
3163
3035
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3036
|
+
/**
|
|
3037
|
+
* `origin` can claim payouts on some pool member `other`'s behalf.
|
|
3038
|
+
*
|
|
3039
|
+
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
|
3040
|
+
* for this call to be successful.
|
|
3041
|
+
**/
|
|
3042
|
+
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3164
3043
|
/**
|
|
3165
3044
|
* Create a new delegation pool.
|
|
3166
3045
|
*
|
|
@@ -3173,7 +3052,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3173
3052
|
* creating multiple pools in the same extrinsic.
|
|
3174
3053
|
* * `root` - The account to set as [`PoolRoles::root`].
|
|
3175
3054
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
3176
|
-
* * `
|
|
3055
|
+
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
|
3177
3056
|
*
|
|
3178
3057
|
* # Note
|
|
3179
3058
|
*
|
|
@@ -3200,7 +3079,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3200
3079
|
Address32: any;
|
|
3201
3080
|
} | {
|
|
3202
3081
|
Address20: any;
|
|
3203
|
-
} | string | Uint8Array,
|
|
3082
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
3204
3083
|
Id: any;
|
|
3205
3084
|
} | {
|
|
3206
3085
|
Index: any;
|
|
@@ -3239,7 +3118,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3239
3118
|
Address32: any;
|
|
3240
3119
|
} | {
|
|
3241
3120
|
Address20: any;
|
|
3242
|
-
} | string | Uint8Array,
|
|
3121
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
3243
3122
|
Id: any;
|
|
3244
3123
|
} | {
|
|
3245
3124
|
Index: any;
|
|
@@ -3282,6 +3161,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3282
3161
|
* they attempt to unbond.
|
|
3283
3162
|
**/
|
|
3284
3163
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3164
|
+
/**
|
|
3165
|
+
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
|
3166
|
+
* bonding and withdrawing.
|
|
3167
|
+
*
|
|
3168
|
+
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
|
3169
|
+
* claim their pending rewards. If a pool member wishes so, they can set this to
|
|
3170
|
+
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
|
3171
|
+
* pool.
|
|
3172
|
+
*
|
|
3173
|
+
* # Arguments
|
|
3174
|
+
*
|
|
3175
|
+
* * `origin` - Member of a pool.
|
|
3176
|
+
* * `actor` - Account to claim reward. // improve this
|
|
3177
|
+
**/
|
|
3178
|
+
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
3285
3179
|
/**
|
|
3286
3180
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
3287
3181
|
* Root.
|
|
@@ -3328,7 +3222,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3328
3222
|
/**
|
|
3329
3223
|
* Set a new metadata for the pool.
|
|
3330
3224
|
*
|
|
3331
|
-
* The dispatch origin of this call must be signed by the
|
|
3225
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
3332
3226
|
* of the pool.
|
|
3333
3227
|
**/
|
|
3334
3228
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
@@ -3340,7 +3234,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3340
3234
|
*
|
|
3341
3235
|
* The dispatch origin of this call must be either:
|
|
3342
3236
|
*
|
|
3343
|
-
* 1. signed by the
|
|
3237
|
+
* 1. signed by the bouncer, or the root role of the pool,
|
|
3344
3238
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
3345
3239
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
3346
3240
|
**/
|
|
@@ -3355,8 +3249,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3355
3249
|
*
|
|
3356
3250
|
* # Conditions for a permissionless dispatch.
|
|
3357
3251
|
*
|
|
3358
|
-
* * The pool is blocked and the caller is either the root or
|
|
3359
|
-
*
|
|
3252
|
+
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
|
3253
|
+
* as a kick.
|
|
3360
3254
|
* * The pool is destroying and the member is not the depositor.
|
|
3361
3255
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
3362
3256
|
* pool.
|
|
@@ -3410,7 +3304,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3410
3304
|
Set: any;
|
|
3411
3305
|
} | {
|
|
3412
3306
|
Remove: any;
|
|
3413
|
-
} | string | Uint8Array,
|
|
3307
|
+
} | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | {
|
|
3414
3308
|
Noop: any;
|
|
3415
3309
|
} | {
|
|
3416
3310
|
Set: any;
|
|
@@ -3428,7 +3322,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3428
3322
|
*
|
|
3429
3323
|
* * The pool is in destroy mode and the target is not the depositor.
|
|
3430
3324
|
* * The target is the depositor and they are the only member in the sub pools.
|
|
3431
|
-
* * The pool is blocked and the caller is either the root or
|
|
3325
|
+
* * The pool is blocked and the caller is either the root or bouncer.
|
|
3432
3326
|
*
|
|
3433
3327
|
* # Conditions for permissioned dispatch
|
|
3434
3328
|
*
|
|
@@ -3559,9 +3453,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3559
3453
|
*
|
|
3560
3454
|
* The dispatch origin of this call must be root.
|
|
3561
3455
|
*
|
|
3562
|
-
*
|
|
3563
|
-
*
|
|
3564
|
-
* # </weight>
|
|
3456
|
+
* ## Complexity
|
|
3457
|
+
* - Check is_defunct_voter() details.
|
|
3565
3458
|
**/
|
|
3566
3459
|
cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3567
3460
|
/**
|
|
@@ -3579,10 +3472,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3579
3472
|
*
|
|
3580
3473
|
* Note that this does not affect the designated block number of the next election.
|
|
3581
3474
|
*
|
|
3582
|
-
*
|
|
3583
|
-
*
|
|
3584
|
-
* will go into phragmen, we assume full block for now.
|
|
3585
|
-
* # </weight>
|
|
3475
|
+
* ## Complexity
|
|
3476
|
+
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
3586
3477
|
**/
|
|
3587
3478
|
removeMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
3588
3479
|
Id: any;
|
|
@@ -3618,10 +3509,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3618
3509
|
* next round.
|
|
3619
3510
|
*
|
|
3620
3511
|
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
3621
|
-
*
|
|
3622
|
-
* # <weight>
|
|
3623
3512
|
* The type of renouncing must be provided as witness data.
|
|
3624
|
-
*
|
|
3513
|
+
*
|
|
3514
|
+
* ## Complexity
|
|
3515
|
+
* - Renouncing::Candidate(count): O(count + log(count))
|
|
3516
|
+
* - Renouncing::Member: O(1)
|
|
3517
|
+
* - Renouncing::RunnerUp: O(1)
|
|
3625
3518
|
**/
|
|
3626
3519
|
renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
|
|
3627
3520
|
Member: any;
|
|
@@ -3643,9 +3536,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3643
3536
|
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
3644
3537
|
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
3645
3538
|
*
|
|
3646
|
-
* # <weight>
|
|
3647
3539
|
* The number of current candidates must be provided as witness data.
|
|
3648
|
-
*
|
|
3540
|
+
* ## Complexity
|
|
3541
|
+
* O(C + log(C)) where C is candidate_count.
|
|
3649
3542
|
**/
|
|
3650
3543
|
submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
3651
3544
|
/**
|
|
@@ -4393,10 +4286,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4393
4286
|
schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
4394
4287
|
/**
|
|
4395
4288
|
* Anonymously schedule a task after a delay.
|
|
4396
|
-
*
|
|
4397
|
-
* # <weight>
|
|
4398
|
-
* Same as [`schedule`].
|
|
4399
|
-
* # </weight>
|
|
4400
4289
|
**/
|
|
4401
4290
|
scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
4402
4291
|
/**
|
|
@@ -4405,10 +4294,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4405
4294
|
scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
4406
4295
|
/**
|
|
4407
4296
|
* Schedule a named task after a delay.
|
|
4408
|
-
*
|
|
4409
|
-
* # <weight>
|
|
4410
|
-
* Same as [`schedule_named`](Self::schedule_named).
|
|
4411
|
-
* # </weight>
|
|
4412
4297
|
**/
|
|
4413
4298
|
scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
|
|
4414
4299
|
/**
|
|
@@ -4427,13 +4312,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4427
4312
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
4428
4313
|
* usually means being a stash account).
|
|
4429
4314
|
*
|
|
4430
|
-
*
|
|
4431
|
-
* -
|
|
4432
|
-
*
|
|
4433
|
-
* - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
|
|
4434
|
-
* - DbWrites: `NextKeys`, `origin account`
|
|
4435
|
-
* - DbWrites per key id: `KeyOwner`
|
|
4436
|
-
* # </weight>
|
|
4315
|
+
* ## Complexity
|
|
4316
|
+
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
4317
|
+
* `T::Keys::key_ids()` which is fixed.
|
|
4437
4318
|
**/
|
|
4438
4319
|
purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4439
4320
|
/**
|
|
@@ -4443,14 +4324,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4443
4324
|
*
|
|
4444
4325
|
* The dispatch origin of this function must be signed.
|
|
4445
4326
|
*
|
|
4446
|
-
*
|
|
4447
|
-
* -
|
|
4448
|
-
*
|
|
4449
|
-
* - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
|
|
4450
|
-
* - DbWrites: `origin account`, `NextKeys`
|
|
4451
|
-
* - DbReads per key id: `KeyOwner`
|
|
4452
|
-
* - DbWrites per key id: `KeyOwner`
|
|
4453
|
-
* # </weight>
|
|
4327
|
+
* ## Complexity
|
|
4328
|
+
* - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
|
|
4329
|
+
* fixed.
|
|
4454
4330
|
**/
|
|
4455
4331
|
setKeys: AugmentedSubmittable<(keys: KusamaRuntimeSessionKeys | {
|
|
4456
4332
|
grandpa?: any;
|
|
@@ -4506,30 +4382,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4506
4382
|
* Parameters:
|
|
4507
4383
|
* - `value`: A one time payment the bid would like to receive when joining the society.
|
|
4508
4384
|
*
|
|
4509
|
-
*
|
|
4510
|
-
*
|
|
4511
|
-
* -
|
|
4512
|
-
* -
|
|
4513
|
-
* -
|
|
4514
|
-
* -
|
|
4515
|
-
* - One storage read to retrieve all current candidates. O(C)
|
|
4516
|
-
* - One storage read to retrieve all members. O(M)
|
|
4517
|
-
* - Storage Writes:
|
|
4518
|
-
* - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
|
|
4519
|
-
* w/ read)
|
|
4520
|
-
* - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
|
|
4521
|
-
* - Notable Computation:
|
|
4522
|
-
* - O(B + C + log M) search to check user is not already a part of society.
|
|
4523
|
-
* - O(log B) search to insert the new bid sorted.
|
|
4524
|
-
* - External Pallet Operations:
|
|
4525
|
-
* - One balance reserve operation. O(X)
|
|
4526
|
-
* - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
|
|
4527
|
-
* - Events:
|
|
4528
|
-
* - One event for new bid.
|
|
4529
|
-
* - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
|
|
4530
|
-
*
|
|
4531
|
-
* Total Complexity: O(M + B + C + logM + logB + X)
|
|
4532
|
-
* # </weight>
|
|
4385
|
+
* ## Complexity
|
|
4386
|
+
* - O(M + B + C + logM + logB + X)
|
|
4387
|
+
* - B (len of bids)
|
|
4388
|
+
* - C (len of candidates)
|
|
4389
|
+
* - M (len of members)
|
|
4390
|
+
* - X (balance reserve)
|
|
4533
4391
|
**/
|
|
4534
4392
|
bid: AugmentedSubmittable<(value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128]>;
|
|
4535
4393
|
/**
|
|
@@ -4541,14 +4399,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4541
4399
|
* - `approve`: A boolean which says if the candidate should be
|
|
4542
4400
|
* approved (`true`) or rejected (`false`).
|
|
4543
4401
|
*
|
|
4544
|
-
*
|
|
4545
|
-
* -
|
|
4546
|
-
* -
|
|
4547
|
-
* - One storage write to add vote to votes. O(1)
|
|
4548
|
-
* - One event.
|
|
4549
|
-
*
|
|
4550
|
-
* Total Complexity: O(M + logM)
|
|
4551
|
-
* # </weight>
|
|
4402
|
+
* ## Complexity
|
|
4403
|
+
* - O(M + logM)
|
|
4404
|
+
* - M (len of members)
|
|
4552
4405
|
**/
|
|
4553
4406
|
defenderVote: AugmentedSubmittable<(approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
4554
4407
|
/**
|
|
@@ -4564,13 +4417,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4564
4417
|
* - `max_members` - The initial max number of members for the society.
|
|
4565
4418
|
* - `rules` - The rules of this society concerning membership.
|
|
4566
4419
|
*
|
|
4567
|
-
*
|
|
4568
|
-
* -
|
|
4569
|
-
* - One storage write to add the first member to society. O(1)
|
|
4570
|
-
* - One event.
|
|
4571
|
-
*
|
|
4572
|
-
* Total Complexity: O(1)
|
|
4573
|
-
* # </weight>
|
|
4420
|
+
* ## Complexity
|
|
4421
|
+
* - O(1)
|
|
4574
4422
|
**/
|
|
4575
4423
|
found: AugmentedSubmittable<(founder: MultiAddress | {
|
|
4576
4424
|
Id: any;
|
|
@@ -4601,29 +4449,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4601
4449
|
* - `who` - The suspended candidate to be judged.
|
|
4602
4450
|
* - `judgement` - `Approve`, `Reject`, or `Rebid`.
|
|
4603
4451
|
*
|
|
4604
|
-
*
|
|
4605
|
-
*
|
|
4606
|
-
* -
|
|
4607
|
-
* -
|
|
4608
|
-
* -
|
|
4609
|
-
* - One storage read to get the available pot to pay users with. O(1)
|
|
4610
|
-
* - One storage write to update the available pot. O(1)
|
|
4611
|
-
* - One storage read to get the current block number. O(1)
|
|
4612
|
-
* - One storage read to get all members. O(M)
|
|
4613
|
-
* - Up to one unreserve currency action.
|
|
4614
|
-
* - Up to two new storage writes to payouts.
|
|
4615
|
-
* - Up to one storage write with O(log M) binary search to add a member to society.
|
|
4616
|
-
* - Reject Logic
|
|
4617
|
-
* - Up to one repatriate reserved currency action. O(X)
|
|
4618
|
-
* - Up to one storage write to ban the vouching member from vouching again.
|
|
4619
|
-
* - Rebid Logic
|
|
4620
|
-
* - Storage mutate with O(log B) binary search to place the user back into bids.
|
|
4621
|
-
* - Up to one additional event if unvouch takes place.
|
|
4622
|
-
* - One storage removal.
|
|
4623
|
-
* - One event for the judgement.
|
|
4624
|
-
*
|
|
4625
|
-
* Total Complexity: O(M + logM + B + X)
|
|
4626
|
-
* # </weight>
|
|
4452
|
+
* ## Complexity
|
|
4453
|
+
* - O(M + logM + B + X)
|
|
4454
|
+
* - B (len of bids)
|
|
4455
|
+
* - M (len of members)
|
|
4456
|
+
* - X (balance action)
|
|
4627
4457
|
**/
|
|
4628
4458
|
judgeSuspendedCandidate: AugmentedSubmittable<(who: MultiAddress | {
|
|
4629
4459
|
Id: any;
|
|
@@ -4652,19 +4482,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4652
4482
|
* - `forgive` - A boolean representing whether the suspension judgement origin forgives
|
|
4653
4483
|
* (`true`) or rejects (`false`) a suspended member.
|
|
4654
4484
|
*
|
|
4655
|
-
*
|
|
4656
|
-
*
|
|
4657
|
-
* -
|
|
4658
|
-
* -
|
|
4659
|
-
* society.
|
|
4660
|
-
* - Up to 3 storage removals O(1) to clean up a removed member.
|
|
4661
|
-
* - Up to one storage write O(B) with O(B) search to remove vouched bid from bids.
|
|
4662
|
-
* - Up to one additional event if unvouch takes place.
|
|
4663
|
-
* - One storage removal. O(1)
|
|
4664
|
-
* - One event for the judgement.
|
|
4665
|
-
*
|
|
4666
|
-
* Total Complexity: O(M + logM + B)
|
|
4667
|
-
* # </weight>
|
|
4485
|
+
* ## Complexity
|
|
4486
|
+
* - O(M + logM + B)
|
|
4487
|
+
* - B (len of bids)
|
|
4488
|
+
* - M (len of members)
|
|
4668
4489
|
**/
|
|
4669
4490
|
judgeSuspendedMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
4670
4491
|
Id: any;
|
|
@@ -4689,16 +4510,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4689
4510
|
* The dispatch origin for this call must be _Signed_ and a member with
|
|
4690
4511
|
* payouts remaining.
|
|
4691
4512
|
*
|
|
4692
|
-
*
|
|
4693
|
-
*
|
|
4694
|
-
* -
|
|
4695
|
-
* -
|
|
4696
|
-
* -
|
|
4697
|
-
* - One currency transfer call. O(X)
|
|
4698
|
-
* - One storage write or removal to update the member's payouts. O(P)
|
|
4699
|
-
*
|
|
4700
|
-
* Total Complexity: O(M + logM + P + X)
|
|
4701
|
-
* # </weight>
|
|
4513
|
+
* ## Complexity
|
|
4514
|
+
* - O(M + logM + P + X)
|
|
4515
|
+
* - M (len of members)
|
|
4516
|
+
* - P (number of payouts for a particular member)
|
|
4517
|
+
* - X (currency transfer call)
|
|
4702
4518
|
**/
|
|
4703
4519
|
payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4704
4520
|
/**
|
|
@@ -4710,12 +4526,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4710
4526
|
* Parameters:
|
|
4711
4527
|
* - `max` - The maximum number of members for the society.
|
|
4712
4528
|
*
|
|
4713
|
-
*
|
|
4714
|
-
* -
|
|
4715
|
-
* - One event.
|
|
4716
|
-
*
|
|
4717
|
-
* Total Complexity: O(1)
|
|
4718
|
-
* # </weight>
|
|
4529
|
+
* ## Complexity
|
|
4530
|
+
* - O(1)
|
|
4719
4531
|
**/
|
|
4720
4532
|
setMaxMembers: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
4721
4533
|
/**
|
|
@@ -4730,14 +4542,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4730
4542
|
* Parameters:
|
|
4731
4543
|
* - `pos`: Position in the `Bids` vector of the bid who wants to unbid.
|
|
4732
4544
|
*
|
|
4733
|
-
*
|
|
4734
|
-
*
|
|
4735
|
-
* -
|
|
4736
|
-
* -
|
|
4737
|
-
* - One event.
|
|
4738
|
-
*
|
|
4739
|
-
* Total Complexity: O(B + X)
|
|
4740
|
-
* # </weight>
|
|
4545
|
+
* ## Complexity
|
|
4546
|
+
* - O(B + X)
|
|
4547
|
+
* - B (len of bids)
|
|
4548
|
+
* - X (balance unreserve)
|
|
4741
4549
|
**/
|
|
4742
4550
|
unbid: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
4743
4551
|
/**
|
|
@@ -4747,13 +4555,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4747
4555
|
* the `Founder` and the `Head`. This implies that it may only be done when there is one
|
|
4748
4556
|
* member.
|
|
4749
4557
|
*
|
|
4750
|
-
*
|
|
4751
|
-
* -
|
|
4752
|
-
* - Four storage removals O(1).
|
|
4753
|
-
* - One event.
|
|
4754
|
-
*
|
|
4755
|
-
* Total Complexity: O(1)
|
|
4756
|
-
* # </weight>
|
|
4558
|
+
* ## Complexity
|
|
4559
|
+
* - O(1)
|
|
4757
4560
|
**/
|
|
4758
4561
|
unfound: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4759
4562
|
/**
|
|
@@ -4765,15 +4568,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4765
4568
|
* Parameters:
|
|
4766
4569
|
* - `pos`: Position in the `Bids` vector of the bid who should be unvouched.
|
|
4767
4570
|
*
|
|
4768
|
-
*
|
|
4769
|
-
*
|
|
4770
|
-
* -
|
|
4771
|
-
* - One storage mutate to retrieve and update the bids. O(B)
|
|
4772
|
-
* - One vouching storage removal. O(1)
|
|
4773
|
-
* - One event.
|
|
4774
|
-
*
|
|
4775
|
-
* Total Complexity: O(B)
|
|
4776
|
-
* # </weight>
|
|
4571
|
+
* ## Complexity
|
|
4572
|
+
* - O(B)
|
|
4573
|
+
* - B (len of bids)
|
|
4777
4574
|
**/
|
|
4778
4575
|
unvouch: AugmentedSubmittable<(pos: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
4779
4576
|
/**
|
|
@@ -4786,16 +4583,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4786
4583
|
* - `approve`: A boolean which says if the candidate should be approved (`true`) or
|
|
4787
4584
|
* rejected (`false`).
|
|
4788
4585
|
*
|
|
4789
|
-
*
|
|
4790
|
-
*
|
|
4791
|
-
* -
|
|
4792
|
-
* -
|
|
4793
|
-
* - One storage read O(C) and O(C) search to check that user is a candidate.
|
|
4794
|
-
* - One storage write to add vote to votes. O(1)
|
|
4795
|
-
* - One event.
|
|
4796
|
-
*
|
|
4797
|
-
* Total Complexity: O(M + logM + C)
|
|
4798
|
-
* # </weight>
|
|
4586
|
+
* ## Complexity
|
|
4587
|
+
* - O(M + logM + C)
|
|
4588
|
+
* - C (len of candidates)
|
|
4589
|
+
* - M (len of members)
|
|
4799
4590
|
**/
|
|
4800
4591
|
vote: AugmentedSubmittable<(candidate: MultiAddress | {
|
|
4801
4592
|
Id: any;
|
|
@@ -4827,33 +4618,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4827
4618
|
* - `tip`: Your cut of the total `value` payout when the candidate is inducted into
|
|
4828
4619
|
* the society. Tips larger than `value` will be saturated upon payout.
|
|
4829
4620
|
*
|
|
4830
|
-
*
|
|
4831
|
-
*
|
|
4832
|
-
* -
|
|
4833
|
-
* -
|
|
4834
|
-
* -
|
|
4835
|
-
* -
|
|
4836
|
-
* - One storage read to check for suspended member. O(1)
|
|
4837
|
-
* - One storage read to retrieve all current bids. O(B)
|
|
4838
|
-
* - One storage read to retrieve all current candidates. O(C)
|
|
4839
|
-
* - Storage Writes:
|
|
4840
|
-
* - One storage write to insert vouching status to the member. O(1)
|
|
4841
|
-
* - One storage mutate to add a new bid to the vector O(B) (TODO: possible optimization
|
|
4842
|
-
* w/ read)
|
|
4843
|
-
* - Up to one storage removal if bid.len() > MAX_BID_COUNT. O(1)
|
|
4844
|
-
* - Notable Computation:
|
|
4845
|
-
* - O(log M) search to check sender is a member.
|
|
4846
|
-
* - O(B + C + log M) search to check user is not already a part of society.
|
|
4847
|
-
* - O(log B) search to insert the new bid sorted.
|
|
4848
|
-
* - External Pallet Operations:
|
|
4849
|
-
* - One balance reserve operation. O(X)
|
|
4850
|
-
* - Up to one balance unreserve operation if bids.len() > MAX_BID_COUNT.
|
|
4851
|
-
* - Events:
|
|
4852
|
-
* - One event for vouch.
|
|
4853
|
-
* - Up to one event for AutoUnbid if bid.len() > MAX_BID_COUNT.
|
|
4854
|
-
*
|
|
4855
|
-
* Total Complexity: O(M + B + C + logM + logB + X)
|
|
4856
|
-
* # </weight>
|
|
4621
|
+
* ## Complexity
|
|
4622
|
+
* - O(M + B + C + logM + logB + X)
|
|
4623
|
+
* - B (len of bids)
|
|
4624
|
+
* - C (len of candidates)
|
|
4625
|
+
* - M (len of members)
|
|
4626
|
+
* - X (balance reserve)
|
|
4857
4627
|
**/
|
|
4858
4628
|
vouch: AugmentedSubmittable<(who: MultiAddress | {
|
|
4859
4629
|
Id: any;
|
|
@@ -4881,15 +4651,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4881
4651
|
* The dispatch origin for this call must be _Signed_ by the stash account.
|
|
4882
4652
|
*
|
|
4883
4653
|
* Emits `Bonded`.
|
|
4884
|
-
*
|
|
4654
|
+
* ## Complexity
|
|
4885
4655
|
* - Independent of the arguments. Moderate complexity.
|
|
4886
4656
|
* - O(1).
|
|
4887
4657
|
* - Three extra DB entries.
|
|
4888
4658
|
*
|
|
4889
4659
|
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
|
|
4890
4660
|
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
|
|
4891
|
-
* ------------------
|
|
4892
|
-
* # </weight>
|
|
4893
4661
|
**/
|
|
4894
4662
|
bond: AugmentedSubmittable<(controller: MultiAddress | {
|
|
4895
4663
|
Id: any;
|
|
@@ -4924,10 +4692,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4924
4692
|
*
|
|
4925
4693
|
* Emits `Bonded`.
|
|
4926
4694
|
*
|
|
4927
|
-
*
|
|
4695
|
+
* ## Complexity
|
|
4928
4696
|
* - Independent of the arguments. Insignificant complexity.
|
|
4929
4697
|
* - O(1).
|
|
4930
|
-
* # </weight>
|
|
4931
4698
|
**/
|
|
4932
4699
|
bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
4933
4700
|
/**
|
|
@@ -4945,11 +4712,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4945
4712
|
*
|
|
4946
4713
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
4947
4714
|
*
|
|
4948
|
-
*
|
|
4715
|
+
* ## Complexity
|
|
4949
4716
|
* - Independent of the arguments. Insignificant complexity.
|
|
4950
4717
|
* - Contains one read.
|
|
4951
4718
|
* - Writes are limited to the `origin` account key.
|
|
4952
|
-
* # </weight>
|
|
4953
4719
|
**/
|
|
4954
4720
|
chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4955
4721
|
/**
|
|
@@ -4999,11 +4765,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4999
4765
|
* If this is called just before a new era is triggered, the election process may not
|
|
5000
4766
|
* have enough blocks to get a result.
|
|
5001
4767
|
*
|
|
5002
|
-
*
|
|
4768
|
+
* ## Complexity
|
|
5003
4769
|
* - No arguments.
|
|
5004
4770
|
* - Weight: O(1)
|
|
5005
|
-
* - Write ForceEra
|
|
5006
|
-
* # </weight>
|
|
5007
4771
|
**/
|
|
5008
4772
|
forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
5009
4773
|
/**
|
|
@@ -5029,11 +4793,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5029
4793
|
* Thus the election process may be ongoing when this is called. In this case the
|
|
5030
4794
|
* election will continue until the next era is triggered.
|
|
5031
4795
|
*
|
|
5032
|
-
*
|
|
4796
|
+
* ## Complexity
|
|
5033
4797
|
* - No arguments.
|
|
5034
4798
|
* - Weight: O(1)
|
|
5035
|
-
* - Write: ForceEra
|
|
5036
|
-
* # </weight>
|
|
5037
4799
|
**/
|
|
5038
4800
|
forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
5039
4801
|
/**
|
|
@@ -5048,9 +4810,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5048
4810
|
*
|
|
5049
4811
|
* The dispatch origin must be Root.
|
|
5050
4812
|
*
|
|
5051
|
-
*
|
|
4813
|
+
* ## Complexity
|
|
5052
4814
|
* Same as [`Self::set_validator_count`].
|
|
5053
|
-
* # </weight>
|
|
5054
4815
|
**/
|
|
5055
4816
|
increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
5056
4817
|
/**
|
|
@@ -5084,11 +4845,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5084
4845
|
*
|
|
5085
4846
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
5086
4847
|
*
|
|
5087
|
-
*
|
|
4848
|
+
* ## Complexity
|
|
5088
4849
|
* - The transaction's complexity is proportional to the size of `targets` (N)
|
|
5089
4850
|
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
|
5090
4851
|
* - Both the reads and writes follow a similar pattern.
|
|
5091
|
-
* # </weight>
|
|
5092
4852
|
**/
|
|
5093
4853
|
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
|
|
5094
4854
|
Id: any;
|
|
@@ -5111,18 +4871,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5111
4871
|
* The origin of this call must be _Signed_. Any account can call this function, even if
|
|
5112
4872
|
* it is not one of the stakers.
|
|
5113
4873
|
*
|
|
5114
|
-
*
|
|
5115
|
-
* -
|
|
5116
|
-
* - Contains a limited number of reads and writes.
|
|
5117
|
-
* -----------
|
|
5118
|
-
* N is the Number of payouts for the validator (including the validator)
|
|
5119
|
-
* Weight:
|
|
5120
|
-
* - Reward Destination Staked: O(N)
|
|
5121
|
-
* - Reward Destination Controller (Creating): O(N)
|
|
5122
|
-
*
|
|
5123
|
-
* NOTE: weights are assuming that payouts are made to alive stash account (Staked).
|
|
5124
|
-
* Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
|
|
5125
|
-
* # </weight>
|
|
4874
|
+
* ## Complexity
|
|
4875
|
+
* - At most O(MaxNominatorRewardedPerValidator).
|
|
5126
4876
|
**/
|
|
5127
4877
|
payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
5128
4878
|
/**
|
|
@@ -5145,11 +4895,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5145
4895
|
*
|
|
5146
4896
|
* The dispatch origin must be signed by the controller.
|
|
5147
4897
|
*
|
|
5148
|
-
*
|
|
4898
|
+
* ## Complexity
|
|
5149
4899
|
* - Time complexity: O(L), where L is unlocking chunks
|
|
5150
4900
|
* - Bounded by `MaxUnlockingChunks`.
|
|
5151
|
-
* - Storage changes: Can't increase storage, only decrease it.
|
|
5152
|
-
* # </weight>
|
|
5153
4901
|
**/
|
|
5154
4902
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
5155
4903
|
/**
|
|
@@ -5158,9 +4906,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5158
4906
|
*
|
|
5159
4907
|
* The dispatch origin must be Root.
|
|
5160
4908
|
*
|
|
5161
|
-
*
|
|
4909
|
+
* ## Complexity
|
|
5162
4910
|
* Same as [`Self::set_validator_count`].
|
|
5163
|
-
* # </weight>
|
|
5164
4911
|
**/
|
|
5165
4912
|
scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
|
|
5166
4913
|
/**
|
|
@@ -5170,16 +4917,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5170
4917
|
*
|
|
5171
4918
|
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
|
5172
4919
|
*
|
|
5173
|
-
*
|
|
4920
|
+
* ## Complexity
|
|
4921
|
+
* O(1)
|
|
5174
4922
|
* - Independent of the arguments. Insignificant complexity.
|
|
5175
4923
|
* - Contains a limited number of reads.
|
|
5176
4924
|
* - Writes are limited to the `origin` account key.
|
|
5177
|
-
* ----------
|
|
5178
|
-
* Weight: O(1)
|
|
5179
|
-
* DB Weight:
|
|
5180
|
-
* - Read: Bonded, Ledger New Controller, Ledger Old Controller
|
|
5181
|
-
* - Write: Bonded, Ledger New Controller, Ledger Old Controller
|
|
5182
|
-
* # </weight>
|
|
5183
4925
|
**/
|
|
5184
4926
|
setController: AugmentedSubmittable<(controller: MultiAddress | {
|
|
5185
4927
|
Id: any;
|
|
@@ -5212,16 +4954,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5212
4954
|
*
|
|
5213
4955
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
5214
4956
|
*
|
|
5215
|
-
*
|
|
4957
|
+
* ## Complexity
|
|
4958
|
+
* - O(1)
|
|
5216
4959
|
* - Independent of the arguments. Insignificant complexity.
|
|
5217
4960
|
* - Contains a limited number of reads.
|
|
5218
4961
|
* - Writes are limited to the `origin` account key.
|
|
5219
4962
|
* ---------
|
|
5220
|
-
* - Weight: O(1)
|
|
5221
|
-
* - DB Weight:
|
|
5222
|
-
* - Read: Ledger
|
|
5223
|
-
* - Write: Payee
|
|
5224
|
-
* # </weight>
|
|
5225
4963
|
**/
|
|
5226
4964
|
setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
|
|
5227
4965
|
Staked: any;
|
|
@@ -5295,10 +5033,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5295
5033
|
*
|
|
5296
5034
|
* The dispatch origin must be Root.
|
|
5297
5035
|
*
|
|
5298
|
-
*
|
|
5299
|
-
*
|
|
5300
|
-
* Write: Validator Count
|
|
5301
|
-
* # </weight>
|
|
5036
|
+
* ## Complexity
|
|
5037
|
+
* O(1)
|
|
5302
5038
|
**/
|
|
5303
5039
|
setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
5304
5040
|
/**
|
|
@@ -5346,10 +5082,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5346
5082
|
*
|
|
5347
5083
|
* See also [`Call::unbond`].
|
|
5348
5084
|
*
|
|
5349
|
-
*
|
|
5350
|
-
*
|
|
5085
|
+
* ## Complexity
|
|
5086
|
+
* O(S) where S is the number of slashing spans to remove
|
|
5351
5087
|
* NOTE: Weight annotation is the kill scenario, we refund otherwise.
|
|
5352
|
-
* # </weight>
|
|
5353
5088
|
**/
|
|
5354
5089
|
withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
5355
5090
|
/**
|
|
@@ -5372,9 +5107,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5372
5107
|
/**
|
|
5373
5108
|
* Make some on-chain remark.
|
|
5374
5109
|
*
|
|
5375
|
-
*
|
|
5110
|
+
* ## Complexity
|
|
5376
5111
|
* - `O(1)`
|
|
5377
|
-
* # </weight>
|
|
5378
5112
|
**/
|
|
5379
5113
|
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
5380
5114
|
/**
|
|
@@ -5384,28 +5118,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5384
5118
|
/**
|
|
5385
5119
|
* Set the new runtime code.
|
|
5386
5120
|
*
|
|
5387
|
-
*
|
|
5121
|
+
* ## Complexity
|
|
5388
5122
|
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
|
|
5389
|
-
* - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
|
|
5390
|
-
* expensive).
|
|
5391
|
-
* - 1 storage write (codec `O(C)`).
|
|
5392
|
-
* - 1 digest item.
|
|
5393
|
-
* - 1 event.
|
|
5394
|
-
* The weight of this function is dependent on the runtime, but generally this is very
|
|
5395
|
-
* expensive. We will treat this as a full block.
|
|
5396
|
-
* # </weight>
|
|
5397
5123
|
**/
|
|
5398
5124
|
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
5399
5125
|
/**
|
|
5400
5126
|
* Set the new runtime code without doing any checks of the given `code`.
|
|
5401
5127
|
*
|
|
5402
|
-
*
|
|
5128
|
+
* ## Complexity
|
|
5403
5129
|
* - `O(C)` where `C` length of `code`
|
|
5404
|
-
* - 1 storage write (codec `O(C)`).
|
|
5405
|
-
* - 1 digest item.
|
|
5406
|
-
* - 1 event.
|
|
5407
|
-
* The weight of this function is dependent on the runtime. We will treat this as a full
|
|
5408
|
-
* block. # </weight>
|
|
5409
5130
|
**/
|
|
5410
5131
|
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
5411
5132
|
/**
|
|
@@ -5441,20 +5162,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5441
5162
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
5442
5163
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
5443
5164
|
*
|
|
5444
|
-
*
|
|
5445
|
-
* ## Weight
|
|
5165
|
+
* ## Complexity
|
|
5446
5166
|
* - `O(B + M + P1 + P2)` where:
|
|
5447
5167
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5448
5168
|
* - `M` is members-count (code- and governance-bounded)
|
|
5449
5169
|
* - `P1` is the complexity of `proposal` preimage.
|
|
5450
5170
|
* - `P2` is proposal-count (code-bounded)
|
|
5451
|
-
* - DB:
|
|
5452
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
5453
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
5454
|
-
* `O(P2)`)
|
|
5455
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
5456
|
-
* - up to 3 events
|
|
5457
|
-
* # </weight>
|
|
5458
5171
|
**/
|
|
5459
5172
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
5460
5173
|
refTime?: any;
|
|
@@ -5479,20 +5192,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5479
5192
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
5480
5193
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
5481
5194
|
*
|
|
5482
|
-
*
|
|
5483
|
-
* ## Weight
|
|
5195
|
+
* ## Complexity
|
|
5484
5196
|
* - `O(B + M + P1 + P2)` where:
|
|
5485
5197
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5486
5198
|
* - `M` is members-count (code- and governance-bounded)
|
|
5487
5199
|
* - `P1` is the complexity of `proposal` preimage.
|
|
5488
5200
|
* - `P2` is proposal-count (code-bounded)
|
|
5489
|
-
* - DB:
|
|
5490
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
5491
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
5492
|
-
* `O(P2)`)
|
|
5493
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
5494
|
-
* - up to 3 events
|
|
5495
|
-
* # </weight>
|
|
5496
5201
|
**/
|
|
5497
5202
|
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
5498
5203
|
/**
|
|
@@ -5504,12 +5209,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5504
5209
|
* Parameters:
|
|
5505
5210
|
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
5506
5211
|
*
|
|
5507
|
-
*
|
|
5508
|
-
*
|
|
5509
|
-
* DB Weight:
|
|
5510
|
-
* * Reads: Proposals
|
|
5511
|
-
* * Writes: Voting, Proposals, ProposalOf
|
|
5512
|
-
* # </weight>
|
|
5212
|
+
* ## Complexity
|
|
5213
|
+
* O(P) where P is the number of max proposals
|
|
5513
5214
|
**/
|
|
5514
5215
|
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5515
5216
|
/**
|
|
@@ -5517,13 +5218,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5517
5218
|
*
|
|
5518
5219
|
* Origin must be a member of the collective.
|
|
5519
5220
|
*
|
|
5520
|
-
*
|
|
5521
|
-
*
|
|
5522
|
-
* - `
|
|
5523
|
-
* `
|
|
5524
|
-
* -
|
|
5525
|
-
* - 1 event
|
|
5526
|
-
* # </weight>
|
|
5221
|
+
* ## Complexity:
|
|
5222
|
+
* - `O(B + M + P)` where:
|
|
5223
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5224
|
+
* - `M` members-count (code-bounded)
|
|
5225
|
+
* - `P` complexity of dispatching `proposal`
|
|
5527
5226
|
**/
|
|
5528
5227
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
5529
5228
|
/**
|
|
@@ -5534,26 +5233,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5534
5233
|
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
5535
5234
|
* or put up for voting.
|
|
5536
5235
|
*
|
|
5537
|
-
*
|
|
5538
|
-
* ## Weight
|
|
5236
|
+
* ## Complexity
|
|
5539
5237
|
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
5540
5238
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
5541
5239
|
* - `M` is members-count (code- and governance-bounded)
|
|
5542
5240
|
* - branching is influenced by `threshold` where:
|
|
5543
5241
|
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
5544
5242
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
5545
|
-
* - DB:
|
|
5546
|
-
* - 1 storage read `is_member` (codec `O(M)`)
|
|
5547
|
-
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
5548
|
-
* - DB accesses influenced by `threshold`:
|
|
5549
|
-
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
5550
|
-
* - OR proposal insertion (`threshold <= 2`)
|
|
5551
|
-
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
5552
|
-
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
5553
|
-
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
5554
|
-
* - 1 storage write `Voting` (codec `O(M)`)
|
|
5555
|
-
* - 1 event
|
|
5556
|
-
* # </weight>
|
|
5557
5243
|
**/
|
|
5558
5244
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
5559
5245
|
/**
|
|
@@ -5564,7 +5250,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5564
5250
|
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
5565
5251
|
* weight estimation.
|
|
5566
5252
|
*
|
|
5567
|
-
*
|
|
5253
|
+
* The dispatch of this call must be `SetMembersOrigin`.
|
|
5568
5254
|
*
|
|
5569
5255
|
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
5570
5256
|
* the weight estimations rely on it to estimate dispatchable weight.
|
|
@@ -5576,19 +5262,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5576
5262
|
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
5577
5263
|
* with other logic managing the member set.
|
|
5578
5264
|
*
|
|
5579
|
-
*
|
|
5580
|
-
* ## Weight
|
|
5265
|
+
* ## Complexity:
|
|
5581
5266
|
* - `O(MP + N)` where:
|
|
5582
5267
|
* - `M` old-members-count (code- and governance-bounded)
|
|
5583
5268
|
* - `N` new-members-count (code- and governance-bounded)
|
|
5584
5269
|
* - `P` proposals-count (code-bounded)
|
|
5585
|
-
* - DB:
|
|
5586
|
-
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
5587
|
-
* members
|
|
5588
|
-
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
5589
|
-
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
5590
|
-
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
5591
|
-
* # </weight>
|
|
5592
5270
|
**/
|
|
5593
5271
|
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
|
5594
5272
|
/**
|
|
@@ -5599,14 +5277,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5599
5277
|
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
5600
5278
|
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
5601
5279
|
* fee.
|
|
5602
|
-
*
|
|
5603
|
-
* ## Weight
|
|
5280
|
+
* ## Complexity
|
|
5604
5281
|
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
5605
|
-
* - DB:
|
|
5606
|
-
* - 1 storage read `Members` (codec `O(M)`)
|
|
5607
|
-
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
5608
|
-
* - 1 event
|
|
5609
|
-
* # </weight>
|
|
5610
5282
|
**/
|
|
5611
5283
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
5612
5284
|
/**
|
|
@@ -5739,12 +5411,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5739
5411
|
*
|
|
5740
5412
|
* The dispatch origin for this call must be `Inherent`.
|
|
5741
5413
|
*
|
|
5742
|
-
*
|
|
5414
|
+
* ## Complexity
|
|
5743
5415
|
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
|
|
5744
5416
|
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
|
|
5745
5417
|
* `on_finalize`)
|
|
5746
5418
|
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
5747
|
-
* # </weight>
|
|
5748
5419
|
**/
|
|
5749
5420
|
set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
|
|
5750
5421
|
/**
|
|
@@ -5763,13 +5434,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5763
5434
|
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
5764
5435
|
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
5765
5436
|
*
|
|
5766
|
-
*
|
|
5767
|
-
* -
|
|
5768
|
-
*
|
|
5769
|
-
*
|
|
5770
|
-
* - DbReads: `Tips`, `Tippers`, `tip finder`
|
|
5771
|
-
* - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
|
|
5772
|
-
* # </weight>
|
|
5437
|
+
* ## Complexity
|
|
5438
|
+
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
5439
|
+
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
5440
|
+
* the implementation of `T::Tippers`.
|
|
5773
5441
|
**/
|
|
5774
5442
|
closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5775
5443
|
/**
|
|
@@ -5786,12 +5454,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5786
5454
|
*
|
|
5787
5455
|
* Emits `NewTip` if successful.
|
|
5788
5456
|
*
|
|
5789
|
-
*
|
|
5790
|
-
* -
|
|
5457
|
+
* ## Complexity
|
|
5458
|
+
* - `O(R)` where `R` length of `reason`.
|
|
5791
5459
|
* - encoding and hashing of 'reason'
|
|
5792
|
-
* - DbReads: `Reasons`, `Tips`
|
|
5793
|
-
* - DbWrites: `Reasons`, `Tips`
|
|
5794
|
-
* # </weight>
|
|
5795
5460
|
**/
|
|
5796
5461
|
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
|
|
5797
5462
|
Id: any;
|
|
@@ -5818,12 +5483,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5818
5483
|
*
|
|
5819
5484
|
* Emits `TipRetracted` if successful.
|
|
5820
5485
|
*
|
|
5821
|
-
*
|
|
5822
|
-
* -
|
|
5486
|
+
* ## Complexity
|
|
5487
|
+
* - `O(1)`
|
|
5823
5488
|
* - Depends on the length of `T::Hash` which is fixed.
|
|
5824
|
-
* - DbReads: `Tips`, `origin account`
|
|
5825
|
-
* - DbWrites: `Reasons`, `Tips`, `origin account`
|
|
5826
|
-
* # </weight>
|
|
5827
5489
|
**/
|
|
5828
5490
|
retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5829
5491
|
/**
|
|
@@ -5835,10 +5497,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5835
5497
|
*
|
|
5836
5498
|
* Emits `TipSlashed` if successful.
|
|
5837
5499
|
*
|
|
5838
|
-
*
|
|
5839
|
-
*
|
|
5840
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
5841
|
-
* # </weight>
|
|
5500
|
+
* ## Complexity
|
|
5501
|
+
* - O(1).
|
|
5842
5502
|
**/
|
|
5843
5503
|
slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
5844
5504
|
/**
|
|
@@ -5856,16 +5516,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5856
5516
|
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
5857
5517
|
* has started.
|
|
5858
5518
|
*
|
|
5859
|
-
*
|
|
5860
|
-
* -
|
|
5861
|
-
*
|
|
5862
|
-
*
|
|
5519
|
+
* ## Complexity
|
|
5520
|
+
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
5521
|
+
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
5522
|
+
* The actual cost depends on the implementation of `T::Tippers`.
|
|
5863
5523
|
*
|
|
5864
5524
|
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
5865
5525
|
* is weighted as if almost full i.e of length `T-1`.
|
|
5866
|
-
* - DbReads: `Tippers`, `Tips`
|
|
5867
|
-
* - DbWrites: `Tips`
|
|
5868
|
-
* # </weight>
|
|
5869
5526
|
**/
|
|
5870
5527
|
tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
|
|
5871
5528
|
/**
|
|
@@ -5882,15 +5539,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5882
5539
|
*
|
|
5883
5540
|
* Emits `NewTip` if successful.
|
|
5884
5541
|
*
|
|
5885
|
-
*
|
|
5886
|
-
* -
|
|
5542
|
+
* ## Complexity
|
|
5543
|
+
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
5887
5544
|
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
5888
5545
|
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
5889
5546
|
* `T::Tippers`.
|
|
5890
5547
|
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
5891
|
-
* - DbReads: `Tippers`, `Reasons`
|
|
5892
|
-
* - DbWrites: `Reasons`, `Tips`
|
|
5893
|
-
* # </weight>
|
|
5894
5548
|
**/
|
|
5895
5549
|
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
|
|
5896
5550
|
Id: any;
|
|
@@ -5915,11 +5569,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5915
5569
|
*
|
|
5916
5570
|
* May only be called from `T::ApproveOrigin`.
|
|
5917
5571
|
*
|
|
5918
|
-
*
|
|
5919
|
-
* -
|
|
5920
|
-
* - DbReads: `Proposals`, `Approvals`
|
|
5921
|
-
* - DbWrite: `Approvals`
|
|
5922
|
-
* # </weight>
|
|
5572
|
+
* ## Complexity
|
|
5573
|
+
* - O(1).
|
|
5923
5574
|
**/
|
|
5924
5575
|
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
5925
5576
|
/**
|
|
@@ -5927,11 +5578,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5927
5578
|
* is reserved and slashed if the proposal is rejected. It is returned once the
|
|
5928
5579
|
* proposal is awarded.
|
|
5929
5580
|
*
|
|
5930
|
-
*
|
|
5931
|
-
* -
|
|
5932
|
-
* - DbReads: `ProposalCount`, `origin account`
|
|
5933
|
-
* - DbWrites: `ProposalCount`, `Proposals`, `origin account`
|
|
5934
|
-
* # </weight>
|
|
5581
|
+
* ## Complexity
|
|
5582
|
+
* - O(1)
|
|
5935
5583
|
**/
|
|
5936
5584
|
proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
5937
5585
|
Id: any;
|
|
@@ -5949,11 +5597,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5949
5597
|
*
|
|
5950
5598
|
* May only be called from `T::RejectOrigin`.
|
|
5951
5599
|
*
|
|
5952
|
-
*
|
|
5953
|
-
* -
|
|
5954
|
-
* - DbReads: `Proposals`, `rejected proposer account`
|
|
5955
|
-
* - DbWrites: `Proposals`, `rejected proposer account`
|
|
5956
|
-
* # </weight>
|
|
5600
|
+
* ## Complexity
|
|
5601
|
+
* - O(1)
|
|
5957
5602
|
**/
|
|
5958
5603
|
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
5959
5604
|
/**
|
|
@@ -5963,10 +5608,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5963
5608
|
* May only be called from `T::RejectOrigin`.
|
|
5964
5609
|
* - `proposal_id`: The index of a proposal
|
|
5965
5610
|
*
|
|
5966
|
-
*
|
|
5967
|
-
* -
|
|
5968
|
-
* - Db reads and writes: `Approvals`
|
|
5969
|
-
* # </weight>
|
|
5611
|
+
* ## Complexity
|
|
5612
|
+
* - O(A) where `A` is the number of approvals
|
|
5970
5613
|
*
|
|
5971
5614
|
* Errors:
|
|
5972
5615
|
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
|
@@ -6052,9 +5695,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6052
5695
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
6053
5696
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
6054
5697
|
*
|
|
6055
|
-
*
|
|
6056
|
-
* -
|
|
6057
|
-
* # </weight>
|
|
5698
|
+
* ## Complexity
|
|
5699
|
+
* - O(C) where C is the number of calls to be batched.
|
|
6058
5700
|
*
|
|
6059
5701
|
* This will return `Ok` in all circumstances. To determine the success of the batch, an
|
|
6060
5702
|
* event is deposited. If a call failed and the batch was interrupted, then the
|
|
@@ -6075,9 +5717,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6075
5717
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
6076
5718
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
6077
5719
|
*
|
|
6078
|
-
*
|
|
6079
|
-
* -
|
|
6080
|
-
* # </weight>
|
|
5720
|
+
* ## Complexity
|
|
5721
|
+
* - O(C) where C is the number of calls to be batched.
|
|
6081
5722
|
**/
|
|
6082
5723
|
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
6083
5724
|
/**
|
|
@@ -6085,12 +5726,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6085
5726
|
*
|
|
6086
5727
|
* The dispatch origin for this call must be _Root_.
|
|
6087
5728
|
*
|
|
6088
|
-
*
|
|
5729
|
+
* ## Complexity
|
|
6089
5730
|
* - O(1).
|
|
6090
|
-
* - Limited storage reads.
|
|
6091
|
-
* - One DB write (event).
|
|
6092
|
-
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
|
6093
|
-
* # </weight>
|
|
6094
5731
|
**/
|
|
6095
5732
|
dispatchAs: AugmentedSubmittable<(asOrigin: KusamaRuntimeOriginCaller | {
|
|
6096
5733
|
system: any;
|
|
@@ -6119,9 +5756,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6119
5756
|
* If origin is root then the calls are dispatch without checking origin filter. (This
|
|
6120
5757
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
6121
5758
|
*
|
|
6122
|
-
*
|
|
6123
|
-
* -
|
|
6124
|
-
* # </weight>
|
|
5759
|
+
* ## Complexity
|
|
5760
|
+
* - O(C) where C is the number of calls to be batched.
|
|
6125
5761
|
**/
|
|
6126
5762
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
6127
5763
|
/**
|
|
@@ -6155,12 +5791,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6155
5791
|
*
|
|
6156
5792
|
* NOTE: This will unlock all schedules through the current block.
|
|
6157
5793
|
*
|
|
6158
|
-
*
|
|
5794
|
+
* ## Complexity
|
|
6159
5795
|
* - `O(1)`.
|
|
6160
|
-
* - DbWeight: 4 Reads, 4 Writes
|
|
6161
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
|
|
6162
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
|
|
6163
|
-
* # </weight>
|
|
6164
5796
|
**/
|
|
6165
5797
|
forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
6166
5798
|
Id: any;
|
|
@@ -6219,12 +5851,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6219
5851
|
*
|
|
6220
5852
|
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
6221
5853
|
*
|
|
6222
|
-
*
|
|
5854
|
+
* ## Complexity
|
|
6223
5855
|
* - `O(1)`.
|
|
6224
|
-
* - DbWeight: 2 Reads, 2 Writes
|
|
6225
|
-
* - Reads: Vesting Storage, Balances Locks, [Sender Account]
|
|
6226
|
-
* - Writes: Vesting Storage, Balances Locks, [Sender Account]
|
|
6227
|
-
* # </weight>
|
|
6228
5856
|
**/
|
|
6229
5857
|
vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
6230
5858
|
/**
|
|
@@ -6239,12 +5867,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6239
5867
|
*
|
|
6240
5868
|
* NOTE: This will unlock all schedules through the current block.
|
|
6241
5869
|
*
|
|
6242
|
-
*
|
|
5870
|
+
* ## Complexity
|
|
6243
5871
|
* - `O(1)`.
|
|
6244
|
-
* - DbWeight: 3 Reads, 3 Writes
|
|
6245
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
|
|
6246
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
|
|
6247
|
-
* # </weight>
|
|
6248
5872
|
**/
|
|
6249
5873
|
vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
|
|
6250
5874
|
Id: any;
|
|
@@ -6271,12 +5895,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
6271
5895
|
*
|
|
6272
5896
|
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
6273
5897
|
*
|
|
6274
|
-
*
|
|
5898
|
+
* ## Complexity
|
|
6275
5899
|
* - `O(1)`.
|
|
6276
|
-
* - DbWeight: 3 Reads, 3 Writes
|
|
6277
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account
|
|
6278
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account
|
|
6279
|
-
* # </weight>
|
|
6280
5900
|
**/
|
|
6281
5901
|
vestOther: AugmentedSubmittable<(target: MultiAddress | {
|
|
6282
5902
|
Id: any;
|