@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/polkadot/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 } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
8
|
+
import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, 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
|
/**
|
|
@@ -910,20 +897,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
910
897
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
911
898
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
912
899
|
*
|
|
913
|
-
*
|
|
914
|
-
* ## Weight
|
|
900
|
+
* ## Complexity
|
|
915
901
|
* - `O(B + M + P1 + P2)` where:
|
|
916
902
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
917
903
|
* - `M` is members-count (code- and governance-bounded)
|
|
918
904
|
* - `P1` is the complexity of `proposal` preimage.
|
|
919
905
|
* - `P2` is proposal-count (code-bounded)
|
|
920
|
-
* - DB:
|
|
921
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
922
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
923
|
-
* `O(P2)`)
|
|
924
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
925
|
-
* - up to 3 events
|
|
926
|
-
* # </weight>
|
|
927
906
|
**/
|
|
928
907
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
929
908
|
refTime?: any;
|
|
@@ -948,20 +927,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
948
927
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
949
928
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
950
929
|
*
|
|
951
|
-
*
|
|
952
|
-
* ## Weight
|
|
930
|
+
* ## Complexity
|
|
953
931
|
* - `O(B + M + P1 + P2)` where:
|
|
954
932
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
955
933
|
* - `M` is members-count (code- and governance-bounded)
|
|
956
934
|
* - `P1` is the complexity of `proposal` preimage.
|
|
957
935
|
* - `P2` is proposal-count (code-bounded)
|
|
958
|
-
* - DB:
|
|
959
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
960
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
961
|
-
* `O(P2)`)
|
|
962
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
963
|
-
* - up to 3 events
|
|
964
|
-
* # </weight>
|
|
965
936
|
**/
|
|
966
937
|
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>]>;
|
|
967
938
|
/**
|
|
@@ -973,12 +944,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
973
944
|
* Parameters:
|
|
974
945
|
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
975
946
|
*
|
|
976
|
-
*
|
|
977
|
-
*
|
|
978
|
-
* DB Weight:
|
|
979
|
-
* * Reads: Proposals
|
|
980
|
-
* * Writes: Voting, Proposals, ProposalOf
|
|
981
|
-
* # </weight>
|
|
947
|
+
* ## Complexity
|
|
948
|
+
* O(P) where P is the number of max proposals
|
|
982
949
|
**/
|
|
983
950
|
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
984
951
|
/**
|
|
@@ -986,13 +953,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
986
953
|
*
|
|
987
954
|
* Origin must be a member of the collective.
|
|
988
955
|
*
|
|
989
|
-
*
|
|
990
|
-
*
|
|
991
|
-
* - `
|
|
992
|
-
* `
|
|
993
|
-
* -
|
|
994
|
-
* - 1 event
|
|
995
|
-
* # </weight>
|
|
956
|
+
* ## Complexity:
|
|
957
|
+
* - `O(B + M + P)` where:
|
|
958
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
959
|
+
* - `M` members-count (code-bounded)
|
|
960
|
+
* - `P` complexity of dispatching `proposal`
|
|
996
961
|
**/
|
|
997
962
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
998
963
|
/**
|
|
@@ -1003,26 +968,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1003
968
|
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
1004
969
|
* or put up for voting.
|
|
1005
970
|
*
|
|
1006
|
-
*
|
|
1007
|
-
* ## Weight
|
|
971
|
+
* ## Complexity
|
|
1008
972
|
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
1009
973
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
1010
974
|
* - `M` is members-count (code- and governance-bounded)
|
|
1011
975
|
* - branching is influenced by `threshold` where:
|
|
1012
976
|
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
1013
977
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
1014
|
-
* - DB:
|
|
1015
|
-
* - 1 storage read `is_member` (codec `O(M)`)
|
|
1016
|
-
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
1017
|
-
* - DB accesses influenced by `threshold`:
|
|
1018
|
-
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
1019
|
-
* - OR proposal insertion (`threshold <= 2`)
|
|
1020
|
-
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
1021
|
-
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
1022
|
-
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
1023
|
-
* - 1 storage write `Voting` (codec `O(M)`)
|
|
1024
|
-
* - 1 event
|
|
1025
|
-
* # </weight>
|
|
1026
978
|
**/
|
|
1027
979
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
1028
980
|
/**
|
|
@@ -1033,7 +985,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1033
985
|
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
1034
986
|
* weight estimation.
|
|
1035
987
|
*
|
|
1036
|
-
*
|
|
988
|
+
* The dispatch of this call must be `SetMembersOrigin`.
|
|
1037
989
|
*
|
|
1038
990
|
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
1039
991
|
* the weight estimations rely on it to estimate dispatchable weight.
|
|
@@ -1045,19 +997,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1045
997
|
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
1046
998
|
* with other logic managing the member set.
|
|
1047
999
|
*
|
|
1048
|
-
*
|
|
1049
|
-
* ## Weight
|
|
1000
|
+
* ## Complexity:
|
|
1050
1001
|
* - `O(MP + N)` where:
|
|
1051
1002
|
* - `M` old-members-count (code- and governance-bounded)
|
|
1052
1003
|
* - `N` new-members-count (code- and governance-bounded)
|
|
1053
1004
|
* - `P` proposals-count (code-bounded)
|
|
1054
|
-
* - DB:
|
|
1055
|
-
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
1056
|
-
* members
|
|
1057
|
-
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
1058
|
-
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
1059
|
-
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
1060
|
-
* # </weight>
|
|
1061
1005
|
**/
|
|
1062
1006
|
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]>;
|
|
1063
1007
|
/**
|
|
@@ -1068,14 +1012,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1068
1012
|
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
1069
1013
|
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
1070
1014
|
* fee.
|
|
1071
|
-
*
|
|
1072
|
-
* ## Weight
|
|
1015
|
+
* ## Complexity
|
|
1073
1016
|
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
1074
|
-
* - DB:
|
|
1075
|
-
* - 1 storage read `Members` (codec `O(M)`)
|
|
1076
|
-
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
1077
|
-
* - 1 event
|
|
1078
|
-
* # </weight>
|
|
1079
1017
|
**/
|
|
1080
1018
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
1081
1019
|
/**
|
|
@@ -1798,11 +1736,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1798
1736
|
*
|
|
1799
1737
|
* Emits `RegistrarAdded` if successful.
|
|
1800
1738
|
*
|
|
1801
|
-
*
|
|
1739
|
+
* ## Complexity
|
|
1802
1740
|
* - `O(R)` where `R` registrar-count (governance-bounded and code-bounded).
|
|
1803
|
-
* - One storage mutation (codec `O(R)`).
|
|
1804
|
-
* - One event.
|
|
1805
|
-
* # </weight>
|
|
1806
1741
|
**/
|
|
1807
1742
|
addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
|
|
1808
1743
|
Id: any;
|
|
@@ -1859,12 +1794,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1859
1794
|
*
|
|
1860
1795
|
* Emits `JudgementUnrequested` if successful.
|
|
1861
1796
|
*
|
|
1862
|
-
*
|
|
1797
|
+
* ## Complexity
|
|
1863
1798
|
* - `O(R + X)`.
|
|
1864
|
-
* -
|
|
1865
|
-
* -
|
|
1866
|
-
* - One event
|
|
1867
|
-
* # </weight>
|
|
1799
|
+
* - where `R` registrar-count (governance-bounded).
|
|
1800
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
1868
1801
|
**/
|
|
1869
1802
|
cancelRequest: AugmentedSubmittable<(regIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
1870
1803
|
/**
|
|
@@ -1877,15 +1810,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1877
1810
|
*
|
|
1878
1811
|
* Emits `IdentityCleared` if successful.
|
|
1879
1812
|
*
|
|
1880
|
-
*
|
|
1813
|
+
* ## Complexity
|
|
1881
1814
|
* - `O(R + S + X)`
|
|
1882
1815
|
* - where `R` registrar-count (governance-bounded).
|
|
1883
1816
|
* - where `S` subs-count (hard- and deposit-bounded).
|
|
1884
1817
|
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
1885
|
-
* - One balance-unreserve operation.
|
|
1886
|
-
* - `2` storage reads and `S + 2` storage deletions.
|
|
1887
|
-
* - One event.
|
|
1888
|
-
* # </weight>
|
|
1889
1818
|
**/
|
|
1890
1819
|
clearIdentity: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
1891
1820
|
/**
|
|
@@ -1902,12 +1831,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1902
1831
|
*
|
|
1903
1832
|
* Emits `IdentityKilled` if successful.
|
|
1904
1833
|
*
|
|
1905
|
-
*
|
|
1906
|
-
* - `O(R + S + X)
|
|
1907
|
-
* -
|
|
1908
|
-
* - `S
|
|
1909
|
-
* -
|
|
1910
|
-
* # </weight>
|
|
1834
|
+
* ## Complexity
|
|
1835
|
+
* - `O(R + S + X)`
|
|
1836
|
+
* - where `R` registrar-count (governance-bounded).
|
|
1837
|
+
* - where `S` subs-count (hard- and deposit-bounded).
|
|
1838
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
1911
1839
|
**/
|
|
1912
1840
|
killIdentity: AugmentedSubmittable<(target: MultiAddress | {
|
|
1913
1841
|
Id: any;
|
|
@@ -1934,13 +1862,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1934
1862
|
*
|
|
1935
1863
|
* Emits `JudgementGiven` if successful.
|
|
1936
1864
|
*
|
|
1937
|
-
*
|
|
1865
|
+
* ## Complexity
|
|
1938
1866
|
* - `O(R + X)`.
|
|
1939
|
-
* -
|
|
1940
|
-
* -
|
|
1941
|
-
* - Storage: 1 read `O(R)`, 1 mutate `O(R + X)`.
|
|
1942
|
-
* - One event.
|
|
1943
|
-
* # </weight>
|
|
1867
|
+
* - where `R` registrar-count (governance-bounded).
|
|
1868
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
1944
1869
|
**/
|
|
1945
1870
|
provideJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, target: MultiAddress | {
|
|
1946
1871
|
Id: any;
|
|
@@ -2047,12 +1972,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2047
1972
|
*
|
|
2048
1973
|
* Emits `JudgementRequested` if successful.
|
|
2049
1974
|
*
|
|
2050
|
-
*
|
|
1975
|
+
* ## Complexity
|
|
2051
1976
|
* - `O(R + X)`.
|
|
2052
|
-
* -
|
|
2053
|
-
* -
|
|
2054
|
-
* - One event.
|
|
2055
|
-
* # </weight>
|
|
1977
|
+
* - where `R` registrar-count (governance-bounded).
|
|
1978
|
+
* - where `X` additional-field-count (deposit-bounded and code-bounded).
|
|
2056
1979
|
**/
|
|
2057
1980
|
requestJudgement: AugmentedSubmittable<(regIndex: Compact<u32> | AnyNumber | Uint8Array, maxFee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
2058
1981
|
/**
|
|
@@ -2064,11 +1987,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2064
1987
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
2065
1988
|
* - `new`: the new account ID.
|
|
2066
1989
|
*
|
|
2067
|
-
*
|
|
1990
|
+
* ## Complexity
|
|
2068
1991
|
* - `O(R)`.
|
|
2069
|
-
* -
|
|
2070
|
-
* - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
|
|
2071
|
-
* # </weight>
|
|
1992
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2072
1993
|
**/
|
|
2073
1994
|
setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
|
|
2074
1995
|
Id: any;
|
|
@@ -2090,11 +2011,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2090
2011
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
2091
2012
|
* - `fee`: the new fee.
|
|
2092
2013
|
*
|
|
2093
|
-
*
|
|
2014
|
+
* ## Complexity
|
|
2094
2015
|
* - `O(R)`.
|
|
2095
|
-
* -
|
|
2096
|
-
* - Benchmark: 7.315 + R * 0.329 µs (min squares analysis)
|
|
2097
|
-
* # </weight>
|
|
2016
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2098
2017
|
**/
|
|
2099
2018
|
setFee: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>]>;
|
|
2100
2019
|
/**
|
|
@@ -2106,11 +2025,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2106
2025
|
* - `index`: the index of the registrar whose fee is to be set.
|
|
2107
2026
|
* - `fields`: the fields that the registrar concerns themselves with.
|
|
2108
2027
|
*
|
|
2109
|
-
*
|
|
2028
|
+
* ## Complexity
|
|
2110
2029
|
* - `O(R)`.
|
|
2111
|
-
* -
|
|
2112
|
-
* - Benchmark: 7.464 + R * 0.325 µs (min squares analysis)
|
|
2113
|
-
* # </weight>
|
|
2030
|
+
* - where `R` registrar-count (governance-bounded).
|
|
2114
2031
|
**/
|
|
2115
2032
|
setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
|
|
2116
2033
|
/**
|
|
@@ -2125,14 +2042,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2125
2042
|
*
|
|
2126
2043
|
* Emits `IdentitySet` if successful.
|
|
2127
2044
|
*
|
|
2128
|
-
*
|
|
2045
|
+
* ## Complexity
|
|
2129
2046
|
* - `O(X + X' + R)`
|
|
2130
2047
|
* - where `X` additional-field-count (deposit-bounded and code-bounded)
|
|
2131
2048
|
* - where `R` judgements-count (registrar-count-bounded)
|
|
2132
|
-
* - One balance reserve operation.
|
|
2133
|
-
* - One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`).
|
|
2134
|
-
* - One event.
|
|
2135
|
-
* # </weight>
|
|
2136
2049
|
**/
|
|
2137
2050
|
setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
|
|
2138
2051
|
additional?: any;
|
|
@@ -2156,17 +2069,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2156
2069
|
*
|
|
2157
2070
|
* - `subs`: The identity's (new) sub-accounts.
|
|
2158
2071
|
*
|
|
2159
|
-
*
|
|
2072
|
+
* ## Complexity
|
|
2160
2073
|
* - `O(P + S)`
|
|
2161
2074
|
* - where `P` old-subs-count (hard- and deposit-bounded).
|
|
2162
2075
|
* - where `S` subs-count (hard- and deposit-bounded).
|
|
2163
|
-
* - At most one balance operations.
|
|
2164
|
-
* - DB:
|
|
2165
|
-
* - `P + S` storage mutations (codec complexity `O(1)`)
|
|
2166
|
-
* - One storage read (codec complexity `O(P)`).
|
|
2167
|
-
* - One storage write (codec complexity `O(S)`).
|
|
2168
|
-
* - One storage-exists (`IdentityOf::contains_key`).
|
|
2169
|
-
* # </weight>
|
|
2170
2076
|
**/
|
|
2171
2077
|
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | {
|
|
2172
2078
|
None: any;
|
|
@@ -2188,15 +2094,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2188
2094
|
};
|
|
2189
2095
|
imOnline: {
|
|
2190
2096
|
/**
|
|
2191
|
-
*
|
|
2192
|
-
* -
|
|
2193
|
-
*
|
|
2097
|
+
* ## Complexity:
|
|
2098
|
+
* - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
|
|
2099
|
+
* `heartbeat.network_state.external_address`
|
|
2194
2100
|
* - `O(K)`: decoding of length `K`
|
|
2195
2101
|
* - `O(E)`: decoding/encoding of length `E`
|
|
2196
|
-
* - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,
|
|
2197
|
-
* `ReceivedHeartbeats`
|
|
2198
|
-
* - DbWrites: `ReceivedHeartbeats`
|
|
2199
|
-
* # </weight>
|
|
2200
2102
|
**/
|
|
2201
2103
|
heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
|
|
2202
2104
|
blockNumber?: any;
|
|
@@ -2222,14 +2124,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2222
2124
|
*
|
|
2223
2125
|
* Emits `IndexAssigned` if successful.
|
|
2224
2126
|
*
|
|
2225
|
-
*
|
|
2127
|
+
* ## Complexity
|
|
2226
2128
|
* - `O(1)`.
|
|
2227
|
-
* - One storage mutation (codec `O(1)`).
|
|
2228
|
-
* - One reserve operation.
|
|
2229
|
-
* - One event.
|
|
2230
|
-
* -------------------
|
|
2231
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
2232
|
-
* # </weight>
|
|
2233
2129
|
**/
|
|
2234
2130
|
claim: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2235
2131
|
/**
|
|
@@ -2244,16 +2140,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2244
2140
|
*
|
|
2245
2141
|
* Emits `IndexAssigned` if successful.
|
|
2246
2142
|
*
|
|
2247
|
-
*
|
|
2143
|
+
* ## Complexity
|
|
2248
2144
|
* - `O(1)`.
|
|
2249
|
-
* - One storage mutation (codec `O(1)`).
|
|
2250
|
-
* - Up to one reserve operation.
|
|
2251
|
-
* - One event.
|
|
2252
|
-
* -------------------
|
|
2253
|
-
* - DB Weight:
|
|
2254
|
-
* - Reads: Indices Accounts, System Account (original owner)
|
|
2255
|
-
* - Writes: Indices Accounts, System Account (original owner)
|
|
2256
|
-
* # </weight>
|
|
2257
2145
|
**/
|
|
2258
2146
|
forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
|
|
2259
2147
|
Id: any;
|
|
@@ -2277,14 +2165,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2277
2165
|
*
|
|
2278
2166
|
* Emits `IndexFreed` if successful.
|
|
2279
2167
|
*
|
|
2280
|
-
*
|
|
2168
|
+
* ## Complexity
|
|
2281
2169
|
* - `O(1)`.
|
|
2282
|
-
* - One storage mutation (codec `O(1)`).
|
|
2283
|
-
* - One reserve operation.
|
|
2284
|
-
* - One event.
|
|
2285
|
-
* -------------------
|
|
2286
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
2287
|
-
* # </weight>
|
|
2288
2170
|
**/
|
|
2289
2171
|
free: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2290
2172
|
/**
|
|
@@ -2298,14 +2180,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2298
2180
|
*
|
|
2299
2181
|
* Emits `IndexFrozen` if successful.
|
|
2300
2182
|
*
|
|
2301
|
-
*
|
|
2183
|
+
* ## Complexity
|
|
2302
2184
|
* - `O(1)`.
|
|
2303
|
-
* - One storage mutation (codec `O(1)`).
|
|
2304
|
-
* - Up to one slash operation.
|
|
2305
|
-
* - One event.
|
|
2306
|
-
* -------------------
|
|
2307
|
-
* - DB Weight: 1 Read/Write (Accounts)
|
|
2308
|
-
* # </weight>
|
|
2309
2185
|
**/
|
|
2310
2186
|
freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
2311
2187
|
/**
|
|
@@ -2319,16 +2195,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2319
2195
|
*
|
|
2320
2196
|
* Emits `IndexAssigned` if successful.
|
|
2321
2197
|
*
|
|
2322
|
-
*
|
|
2198
|
+
* ## Complexity
|
|
2323
2199
|
* - `O(1)`.
|
|
2324
|
-
* - One storage mutation (codec `O(1)`).
|
|
2325
|
-
* - One transfer operation.
|
|
2326
|
-
* - One event.
|
|
2327
|
-
* -------------------
|
|
2328
|
-
* - DB Weight:
|
|
2329
|
-
* - Reads: Indices Accounts, System Account (recipient)
|
|
2330
|
-
* - Writes: Indices Accounts, System Account (recipient)
|
|
2331
|
-
* # </weight>
|
|
2332
2200
|
**/
|
|
2333
2201
|
transfer: AugmentedSubmittable<(updated: MultiAddress | {
|
|
2334
2202
|
Id: any;
|
|
@@ -2379,7 +2247,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2379
2247
|
*
|
|
2380
2248
|
* NOTE: If this is the final approval, you will want to use `as_multi` instead.
|
|
2381
2249
|
*
|
|
2382
|
-
*
|
|
2250
|
+
* ## Complexity
|
|
2383
2251
|
* - `O(S)`.
|
|
2384
2252
|
* - Up to one balance-reserve or unreserve operation.
|
|
2385
2253
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -2390,11 +2258,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2390
2258
|
* - One event.
|
|
2391
2259
|
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
2392
2260
|
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
2393
|
-
* ----------------------------------
|
|
2394
|
-
* - DB Weight:
|
|
2395
|
-
* - Read: Multisig Storage, [Caller Account]
|
|
2396
|
-
* - Write: Multisig Storage, [Caller Account]
|
|
2397
|
-
* # </weight>
|
|
2398
2261
|
**/
|
|
2399
2262
|
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
2400
2263
|
height?: any;
|
|
@@ -2430,7 +2293,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2430
2293
|
* on success, result is `Ok` and the result from the interior call, if it was executed,
|
|
2431
2294
|
* may be found in the deposited `MultisigExecuted` event.
|
|
2432
2295
|
*
|
|
2433
|
-
*
|
|
2296
|
+
* ## Complexity
|
|
2434
2297
|
* - `O(S + Z + Call)`.
|
|
2435
2298
|
* - Up to one balance-reserve or unreserve operation.
|
|
2436
2299
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -2443,12 +2306,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2443
2306
|
* - The weight of the `call`.
|
|
2444
2307
|
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
|
2445
2308
|
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
|
2446
|
-
* -------------------------------
|
|
2447
|
-
* - DB Weight:
|
|
2448
|
-
* - Reads: Multisig Storage, [Caller Account]
|
|
2449
|
-
* - Writes: Multisig Storage, [Caller Account]
|
|
2450
|
-
* - Plus Call Weight
|
|
2451
|
-
* # </weight>
|
|
2452
2309
|
**/
|
|
2453
2310
|
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
|
|
2454
2311
|
height?: any;
|
|
@@ -2468,12 +2325,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2468
2325
|
*
|
|
2469
2326
|
* Result is equivalent to the dispatched result.
|
|
2470
2327
|
*
|
|
2471
|
-
*
|
|
2328
|
+
* ## Complexity
|
|
2472
2329
|
* O(Z + C) where Z is the length of the call and C its execution weight.
|
|
2473
|
-
* -------------------------------
|
|
2474
|
-
* - DB Weight: None
|
|
2475
|
-
* - Plus Call Weight
|
|
2476
|
-
* # </weight>
|
|
2477
2330
|
**/
|
|
2478
2331
|
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
|
2479
2332
|
/**
|
|
@@ -2489,7 +2342,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2489
2342
|
* transaction for this dispatch.
|
|
2490
2343
|
* - `call_hash`: The hash of the call to be executed.
|
|
2491
2344
|
*
|
|
2492
|
-
*
|
|
2345
|
+
* ## Complexity
|
|
2493
2346
|
* - `O(S)`.
|
|
2494
2347
|
* - Up to one balance-reserve or unreserve operation.
|
|
2495
2348
|
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
|
|
@@ -2498,11 +2351,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2498
2351
|
* - One event.
|
|
2499
2352
|
* - I/O: 1 read `O(S)`, one remove.
|
|
2500
2353
|
* - Storage: removes one item.
|
|
2501
|
-
* ----------------------------------
|
|
2502
|
-
* - DB Weight:
|
|
2503
|
-
* - Read: Multisig Storage, [Caller Account], Refund Account
|
|
2504
|
-
* - Write: Multisig Storage, [Caller Account], Refund Account
|
|
2505
|
-
* # </weight>
|
|
2506
2354
|
**/
|
|
2507
2355
|
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
|
|
2508
2356
|
height?: any;
|
|
@@ -2521,12 +2369,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2521
2369
|
* accumulated rewards, see [`BondExtra`].
|
|
2522
2370
|
*
|
|
2523
2371
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
2372
|
+
* See `bond_extra_other` to bond pending rewards of `other` members.
|
|
2524
2373
|
**/
|
|
2525
2374
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
2526
2375
|
FreeBalance: any;
|
|
2527
2376
|
} | {
|
|
2528
2377
|
Rewards: any;
|
|
2529
2378
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
2379
|
+
/**
|
|
2380
|
+
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
|
2381
|
+
* pools.
|
|
2382
|
+
*
|
|
2383
|
+
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
|
2384
|
+
* other`.
|
|
2385
|
+
*
|
|
2386
|
+
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
|
2387
|
+
* `other` members assuming set_claim_permission for the given member is
|
|
2388
|
+
* `PermissionlessAll` or `PermissionlessCompound`.
|
|
2389
|
+
**/
|
|
2390
|
+
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
|
|
2391
|
+
Id: any;
|
|
2392
|
+
} | {
|
|
2393
|
+
Index: any;
|
|
2394
|
+
} | {
|
|
2395
|
+
Raw: any;
|
|
2396
|
+
} | {
|
|
2397
|
+
Address32: any;
|
|
2398
|
+
} | {
|
|
2399
|
+
Address20: any;
|
|
2400
|
+
} | string | Uint8Array, extra: PalletNominationPoolsBondExtra | {
|
|
2401
|
+
FreeBalance: any;
|
|
2402
|
+
} | {
|
|
2403
|
+
Rewards: any;
|
|
2404
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
|
2530
2405
|
/**
|
|
2531
2406
|
* Chill on behalf of the pool.
|
|
2532
2407
|
*
|
|
@@ -2544,8 +2419,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2544
2419
|
*
|
|
2545
2420
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
2546
2421
|
* members in the pools stake. Rewards do not "expire".
|
|
2422
|
+
*
|
|
2423
|
+
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
|
2547
2424
|
**/
|
|
2548
2425
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2426
|
+
/**
|
|
2427
|
+
* `origin` can claim payouts on some pool member `other`'s behalf.
|
|
2428
|
+
*
|
|
2429
|
+
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
|
2430
|
+
* for this call to be successful.
|
|
2431
|
+
**/
|
|
2432
|
+
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2549
2433
|
/**
|
|
2550
2434
|
* Create a new delegation pool.
|
|
2551
2435
|
*
|
|
@@ -2558,7 +2442,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2558
2442
|
* creating multiple pools in the same extrinsic.
|
|
2559
2443
|
* * `root` - The account to set as [`PoolRoles::root`].
|
|
2560
2444
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
2561
|
-
* * `
|
|
2445
|
+
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
|
2562
2446
|
*
|
|
2563
2447
|
* # Note
|
|
2564
2448
|
*
|
|
@@ -2585,7 +2469,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2585
2469
|
Address32: any;
|
|
2586
2470
|
} | {
|
|
2587
2471
|
Address20: any;
|
|
2588
|
-
} | string | Uint8Array,
|
|
2472
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
2589
2473
|
Id: any;
|
|
2590
2474
|
} | {
|
|
2591
2475
|
Index: any;
|
|
@@ -2624,7 +2508,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2624
2508
|
Address32: any;
|
|
2625
2509
|
} | {
|
|
2626
2510
|
Address20: any;
|
|
2627
|
-
} | string | Uint8Array,
|
|
2511
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
2628
2512
|
Id: any;
|
|
2629
2513
|
} | {
|
|
2630
2514
|
Index: any;
|
|
@@ -2667,6 +2551,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2667
2551
|
* they attempt to unbond.
|
|
2668
2552
|
**/
|
|
2669
2553
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
2554
|
+
/**
|
|
2555
|
+
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
|
2556
|
+
* bonding and withdrawing.
|
|
2557
|
+
*
|
|
2558
|
+
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
|
2559
|
+
* claim their pending rewards. If a pool member wishes so, they can set this to
|
|
2560
|
+
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
|
2561
|
+
* pool.
|
|
2562
|
+
*
|
|
2563
|
+
* # Arguments
|
|
2564
|
+
*
|
|
2565
|
+
* * `origin` - Member of a pool.
|
|
2566
|
+
* * `actor` - Account to claim reward. // improve this
|
|
2567
|
+
**/
|
|
2568
|
+
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
2670
2569
|
/**
|
|
2671
2570
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
2672
2571
|
* Root.
|
|
@@ -2713,7 +2612,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2713
2612
|
/**
|
|
2714
2613
|
* Set a new metadata for the pool.
|
|
2715
2614
|
*
|
|
2716
|
-
* The dispatch origin of this call must be signed by the
|
|
2615
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
2717
2616
|
* of the pool.
|
|
2718
2617
|
**/
|
|
2719
2618
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
@@ -2725,7 +2624,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2725
2624
|
*
|
|
2726
2625
|
* The dispatch origin of this call must be either:
|
|
2727
2626
|
*
|
|
2728
|
-
* 1. signed by the
|
|
2627
|
+
* 1. signed by the bouncer, or the root role of the pool,
|
|
2729
2628
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
2730
2629
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
2731
2630
|
**/
|
|
@@ -2740,8 +2639,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2740
2639
|
*
|
|
2741
2640
|
* # Conditions for a permissionless dispatch.
|
|
2742
2641
|
*
|
|
2743
|
-
* * The pool is blocked and the caller is either the root or
|
|
2744
|
-
*
|
|
2642
|
+
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
|
2643
|
+
* as a kick.
|
|
2745
2644
|
* * The pool is destroying and the member is not the depositor.
|
|
2746
2645
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
2747
2646
|
* pool.
|
|
@@ -2795,7 +2694,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2795
2694
|
Set: any;
|
|
2796
2695
|
} | {
|
|
2797
2696
|
Remove: any;
|
|
2798
|
-
} | string | Uint8Array,
|
|
2697
|
+
} | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | {
|
|
2799
2698
|
Noop: any;
|
|
2800
2699
|
} | {
|
|
2801
2700
|
Set: any;
|
|
@@ -2813,7 +2712,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2813
2712
|
*
|
|
2814
2713
|
* * The pool is in destroy mode and the target is not the depositor.
|
|
2815
2714
|
* * The target is the depositor and they are the only member in the sub pools.
|
|
2816
|
-
* * The pool is blocked and the caller is either the root or
|
|
2715
|
+
* * The pool is blocked and the caller is either the root or bouncer.
|
|
2817
2716
|
*
|
|
2818
2717
|
* # Conditions for permissioned dispatch
|
|
2819
2718
|
*
|
|
@@ -2944,9 +2843,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2944
2843
|
*
|
|
2945
2844
|
* The dispatch origin of this call must be root.
|
|
2946
2845
|
*
|
|
2947
|
-
*
|
|
2948
|
-
*
|
|
2949
|
-
* # </weight>
|
|
2846
|
+
* ## Complexity
|
|
2847
|
+
* - Check is_defunct_voter() details.
|
|
2950
2848
|
**/
|
|
2951
2849
|
cleanDefunctVoters: AugmentedSubmittable<(numVoters: u32 | AnyNumber | Uint8Array, numDefunct: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
2952
2850
|
/**
|
|
@@ -2964,10 +2862,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2964
2862
|
*
|
|
2965
2863
|
* Note that this does not affect the designated block number of the next election.
|
|
2966
2864
|
*
|
|
2967
|
-
*
|
|
2968
|
-
*
|
|
2969
|
-
* will go into phragmen, we assume full block for now.
|
|
2970
|
-
* # </weight>
|
|
2865
|
+
* ## Complexity
|
|
2866
|
+
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
2971
2867
|
**/
|
|
2972
2868
|
removeMember: AugmentedSubmittable<(who: MultiAddress | {
|
|
2973
2869
|
Id: any;
|
|
@@ -3003,10 +2899,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3003
2899
|
* next round.
|
|
3004
2900
|
*
|
|
3005
2901
|
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
3006
|
-
*
|
|
3007
|
-
* # <weight>
|
|
3008
2902
|
* The type of renouncing must be provided as witness data.
|
|
3009
|
-
*
|
|
2903
|
+
*
|
|
2904
|
+
* ## Complexity
|
|
2905
|
+
* - Renouncing::Candidate(count): O(count + log(count))
|
|
2906
|
+
* - Renouncing::Member: O(1)
|
|
2907
|
+
* - Renouncing::RunnerUp: O(1)
|
|
3010
2908
|
**/
|
|
3011
2909
|
renounceCandidacy: AugmentedSubmittable<(renouncing: PalletElectionsPhragmenRenouncing | {
|
|
3012
2910
|
Member: any;
|
|
@@ -3028,9 +2926,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3028
2926
|
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
3029
2927
|
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
3030
2928
|
*
|
|
3031
|
-
* # <weight>
|
|
3032
2929
|
* The number of current candidates must be provided as witness data.
|
|
3033
|
-
*
|
|
2930
|
+
* ## Complexity
|
|
2931
|
+
* O(C + log(C)) where C is candidate_count.
|
|
3034
2932
|
**/
|
|
3035
2933
|
submitCandidacy: AugmentedSubmittable<(candidateCount: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
3036
2934
|
/**
|
|
@@ -3442,10 +3340,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3442
3340
|
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]>;
|
|
3443
3341
|
/**
|
|
3444
3342
|
* Anonymously schedule a task after a delay.
|
|
3445
|
-
*
|
|
3446
|
-
* # <weight>
|
|
3447
|
-
* Same as [`schedule`].
|
|
3448
|
-
* # </weight>
|
|
3449
3343
|
**/
|
|
3450
3344
|
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]>;
|
|
3451
3345
|
/**
|
|
@@ -3454,10 +3348,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3454
3348
|
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]>;
|
|
3455
3349
|
/**
|
|
3456
3350
|
* Schedule a named task after a delay.
|
|
3457
|
-
*
|
|
3458
|
-
* # <weight>
|
|
3459
|
-
* Same as [`schedule_named`](Self::schedule_named).
|
|
3460
|
-
* # </weight>
|
|
3461
3351
|
**/
|
|
3462
3352
|
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]>;
|
|
3463
3353
|
/**
|
|
@@ -3476,13 +3366,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3476
3366
|
* means being a controller account) or directly convertible into a validator ID (which
|
|
3477
3367
|
* usually means being a stash account).
|
|
3478
3368
|
*
|
|
3479
|
-
*
|
|
3480
|
-
* -
|
|
3481
|
-
*
|
|
3482
|
-
* - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
|
|
3483
|
-
* - DbWrites: `NextKeys`, `origin account`
|
|
3484
|
-
* - DbWrites per key id: `KeyOwner`
|
|
3485
|
-
* # </weight>
|
|
3369
|
+
* ## Complexity
|
|
3370
|
+
* - `O(1)` in number of key types. Actual cost depends on the number of length of
|
|
3371
|
+
* `T::Keys::key_ids()` which is fixed.
|
|
3486
3372
|
**/
|
|
3487
3373
|
purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3488
3374
|
/**
|
|
@@ -3492,14 +3378,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3492
3378
|
*
|
|
3493
3379
|
* The dispatch origin of this function must be signed.
|
|
3494
3380
|
*
|
|
3495
|
-
*
|
|
3496
|
-
* -
|
|
3497
|
-
*
|
|
3498
|
-
* - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
|
|
3499
|
-
* - DbWrites: `origin account`, `NextKeys`
|
|
3500
|
-
* - DbReads per key id: `KeyOwner`
|
|
3501
|
-
* - DbWrites per key id: `KeyOwner`
|
|
3502
|
-
* # </weight>
|
|
3381
|
+
* ## Complexity
|
|
3382
|
+
* - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
|
|
3383
|
+
* fixed.
|
|
3503
3384
|
**/
|
|
3504
3385
|
setKeys: AugmentedSubmittable<(keys: PolkadotRuntimeSessionKeys | {
|
|
3505
3386
|
grandpa?: any;
|
|
@@ -3553,15 +3434,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3553
3434
|
* The dispatch origin for this call must be _Signed_ by the stash account.
|
|
3554
3435
|
*
|
|
3555
3436
|
* Emits `Bonded`.
|
|
3556
|
-
*
|
|
3437
|
+
* ## Complexity
|
|
3557
3438
|
* - Independent of the arguments. Moderate complexity.
|
|
3558
3439
|
* - O(1).
|
|
3559
3440
|
* - Three extra DB entries.
|
|
3560
3441
|
*
|
|
3561
3442
|
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
|
|
3562
3443
|
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
|
|
3563
|
-
* ------------------
|
|
3564
|
-
* # </weight>
|
|
3565
3444
|
**/
|
|
3566
3445
|
bond: AugmentedSubmittable<(controller: MultiAddress | {
|
|
3567
3446
|
Id: any;
|
|
@@ -3596,10 +3475,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3596
3475
|
*
|
|
3597
3476
|
* Emits `Bonded`.
|
|
3598
3477
|
*
|
|
3599
|
-
*
|
|
3478
|
+
* ## Complexity
|
|
3600
3479
|
* - Independent of the arguments. Insignificant complexity.
|
|
3601
3480
|
* - O(1).
|
|
3602
|
-
* # </weight>
|
|
3603
3481
|
**/
|
|
3604
3482
|
bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
3605
3483
|
/**
|
|
@@ -3617,11 +3495,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3617
3495
|
*
|
|
3618
3496
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
3619
3497
|
*
|
|
3620
|
-
*
|
|
3498
|
+
* ## Complexity
|
|
3621
3499
|
* - Independent of the arguments. Insignificant complexity.
|
|
3622
3500
|
* - Contains one read.
|
|
3623
3501
|
* - Writes are limited to the `origin` account key.
|
|
3624
|
-
* # </weight>
|
|
3625
3502
|
**/
|
|
3626
3503
|
chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3627
3504
|
/**
|
|
@@ -3671,11 +3548,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3671
3548
|
* If this is called just before a new era is triggered, the election process may not
|
|
3672
3549
|
* have enough blocks to get a result.
|
|
3673
3550
|
*
|
|
3674
|
-
*
|
|
3551
|
+
* ## Complexity
|
|
3675
3552
|
* - No arguments.
|
|
3676
3553
|
* - Weight: O(1)
|
|
3677
|
-
* - Write ForceEra
|
|
3678
|
-
* # </weight>
|
|
3679
3554
|
**/
|
|
3680
3555
|
forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3681
3556
|
/**
|
|
@@ -3701,11 +3576,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3701
3576
|
* Thus the election process may be ongoing when this is called. In this case the
|
|
3702
3577
|
* election will continue until the next era is triggered.
|
|
3703
3578
|
*
|
|
3704
|
-
*
|
|
3579
|
+
* ## Complexity
|
|
3705
3580
|
* - No arguments.
|
|
3706
3581
|
* - Weight: O(1)
|
|
3707
|
-
* - Write: ForceEra
|
|
3708
|
-
* # </weight>
|
|
3709
3582
|
**/
|
|
3710
3583
|
forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3711
3584
|
/**
|
|
@@ -3720,9 +3593,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3720
3593
|
*
|
|
3721
3594
|
* The dispatch origin must be Root.
|
|
3722
3595
|
*
|
|
3723
|
-
*
|
|
3596
|
+
* ## Complexity
|
|
3724
3597
|
* Same as [`Self::set_validator_count`].
|
|
3725
|
-
* # </weight>
|
|
3726
3598
|
**/
|
|
3727
3599
|
increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
3728
3600
|
/**
|
|
@@ -3756,11 +3628,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3756
3628
|
*
|
|
3757
3629
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
3758
3630
|
*
|
|
3759
|
-
*
|
|
3631
|
+
* ## Complexity
|
|
3760
3632
|
* - The transaction's complexity is proportional to the size of `targets` (N)
|
|
3761
3633
|
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
|
3762
3634
|
* - Both the reads and writes follow a similar pattern.
|
|
3763
|
-
* # </weight>
|
|
3764
3635
|
**/
|
|
3765
3636
|
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
|
|
3766
3637
|
Id: any;
|
|
@@ -3783,18 +3654,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3783
3654
|
* The origin of this call must be _Signed_. Any account can call this function, even if
|
|
3784
3655
|
* it is not one of the stakers.
|
|
3785
3656
|
*
|
|
3786
|
-
*
|
|
3787
|
-
* -
|
|
3788
|
-
* - Contains a limited number of reads and writes.
|
|
3789
|
-
* -----------
|
|
3790
|
-
* N is the Number of payouts for the validator (including the validator)
|
|
3791
|
-
* Weight:
|
|
3792
|
-
* - Reward Destination Staked: O(N)
|
|
3793
|
-
* - Reward Destination Controller (Creating): O(N)
|
|
3794
|
-
*
|
|
3795
|
-
* NOTE: weights are assuming that payouts are made to alive stash account (Staked).
|
|
3796
|
-
* Paying even a dead controller is cheaper weight-wise. We don't do any refunds here.
|
|
3797
|
-
* # </weight>
|
|
3657
|
+
* ## Complexity
|
|
3658
|
+
* - At most O(MaxNominatorRewardedPerValidator).
|
|
3798
3659
|
**/
|
|
3799
3660
|
payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
3800
3661
|
/**
|
|
@@ -3817,11 +3678,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3817
3678
|
*
|
|
3818
3679
|
* The dispatch origin must be signed by the controller.
|
|
3819
3680
|
*
|
|
3820
|
-
*
|
|
3681
|
+
* ## Complexity
|
|
3821
3682
|
* - Time complexity: O(L), where L is unlocking chunks
|
|
3822
3683
|
* - Bounded by `MaxUnlockingChunks`.
|
|
3823
|
-
* - Storage changes: Can't increase storage, only decrease it.
|
|
3824
|
-
* # </weight>
|
|
3825
3684
|
**/
|
|
3826
3685
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
|
|
3827
3686
|
/**
|
|
@@ -3830,9 +3689,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3830
3689
|
*
|
|
3831
3690
|
* The dispatch origin must be Root.
|
|
3832
3691
|
*
|
|
3833
|
-
*
|
|
3692
|
+
* ## Complexity
|
|
3834
3693
|
* Same as [`Self::set_validator_count`].
|
|
3835
|
-
* # </weight>
|
|
3836
3694
|
**/
|
|
3837
3695
|
scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
|
|
3838
3696
|
/**
|
|
@@ -3842,16 +3700,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3842
3700
|
*
|
|
3843
3701
|
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
|
3844
3702
|
*
|
|
3845
|
-
*
|
|
3703
|
+
* ## Complexity
|
|
3704
|
+
* O(1)
|
|
3846
3705
|
* - Independent of the arguments. Insignificant complexity.
|
|
3847
3706
|
* - Contains a limited number of reads.
|
|
3848
3707
|
* - Writes are limited to the `origin` account key.
|
|
3849
|
-
* ----------
|
|
3850
|
-
* Weight: O(1)
|
|
3851
|
-
* DB Weight:
|
|
3852
|
-
* - Read: Bonded, Ledger New Controller, Ledger Old Controller
|
|
3853
|
-
* - Write: Bonded, Ledger New Controller, Ledger Old Controller
|
|
3854
|
-
* # </weight>
|
|
3855
3708
|
**/
|
|
3856
3709
|
setController: AugmentedSubmittable<(controller: MultiAddress | {
|
|
3857
3710
|
Id: any;
|
|
@@ -3884,16 +3737,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3884
3737
|
*
|
|
3885
3738
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
3886
3739
|
*
|
|
3887
|
-
*
|
|
3740
|
+
* ## Complexity
|
|
3741
|
+
* - O(1)
|
|
3888
3742
|
* - Independent of the arguments. Insignificant complexity.
|
|
3889
3743
|
* - Contains a limited number of reads.
|
|
3890
3744
|
* - Writes are limited to the `origin` account key.
|
|
3891
3745
|
* ---------
|
|
3892
|
-
* - Weight: O(1)
|
|
3893
|
-
* - DB Weight:
|
|
3894
|
-
* - Read: Ledger
|
|
3895
|
-
* - Write: Payee
|
|
3896
|
-
* # </weight>
|
|
3897
3746
|
**/
|
|
3898
3747
|
setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
|
|
3899
3748
|
Staked: any;
|
|
@@ -3967,10 +3816,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3967
3816
|
*
|
|
3968
3817
|
* The dispatch origin must be Root.
|
|
3969
3818
|
*
|
|
3970
|
-
*
|
|
3971
|
-
*
|
|
3972
|
-
* Write: Validator Count
|
|
3973
|
-
* # </weight>
|
|
3819
|
+
* ## Complexity
|
|
3820
|
+
* O(1)
|
|
3974
3821
|
**/
|
|
3975
3822
|
setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
3976
3823
|
/**
|
|
@@ -4018,10 +3865,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4018
3865
|
*
|
|
4019
3866
|
* See also [`Call::unbond`].
|
|
4020
3867
|
*
|
|
4021
|
-
*
|
|
4022
|
-
*
|
|
3868
|
+
* ## Complexity
|
|
3869
|
+
* O(S) where S is the number of slashing spans to remove
|
|
4023
3870
|
* NOTE: Weight annotation is the kill scenario, we refund otherwise.
|
|
4024
|
-
* # </weight>
|
|
4025
3871
|
**/
|
|
4026
3872
|
withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
4027
3873
|
/**
|
|
@@ -4044,9 +3890,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4044
3890
|
/**
|
|
4045
3891
|
* Make some on-chain remark.
|
|
4046
3892
|
*
|
|
4047
|
-
*
|
|
3893
|
+
* ## Complexity
|
|
4048
3894
|
* - `O(1)`
|
|
4049
|
-
* # </weight>
|
|
4050
3895
|
**/
|
|
4051
3896
|
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
4052
3897
|
/**
|
|
@@ -4056,28 +3901,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4056
3901
|
/**
|
|
4057
3902
|
* Set the new runtime code.
|
|
4058
3903
|
*
|
|
4059
|
-
*
|
|
3904
|
+
* ## Complexity
|
|
4060
3905
|
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
|
|
4061
|
-
* - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is
|
|
4062
|
-
* expensive).
|
|
4063
|
-
* - 1 storage write (codec `O(C)`).
|
|
4064
|
-
* - 1 digest item.
|
|
4065
|
-
* - 1 event.
|
|
4066
|
-
* The weight of this function is dependent on the runtime, but generally this is very
|
|
4067
|
-
* expensive. We will treat this as a full block.
|
|
4068
|
-
* # </weight>
|
|
4069
3906
|
**/
|
|
4070
3907
|
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
4071
3908
|
/**
|
|
4072
3909
|
* Set the new runtime code without doing any checks of the given `code`.
|
|
4073
3910
|
*
|
|
4074
|
-
*
|
|
3911
|
+
* ## Complexity
|
|
4075
3912
|
* - `O(C)` where `C` length of `code`
|
|
4076
|
-
* - 1 storage write (codec `O(C)`).
|
|
4077
|
-
* - 1 digest item.
|
|
4078
|
-
* - 1 event.
|
|
4079
|
-
* The weight of this function is dependent on the runtime. We will treat this as a full
|
|
4080
|
-
* block. # </weight>
|
|
4081
3913
|
**/
|
|
4082
3914
|
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
4083
3915
|
/**
|
|
@@ -4113,20 +3945,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4113
3945
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
4114
3946
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
4115
3947
|
*
|
|
4116
|
-
*
|
|
4117
|
-
* ## Weight
|
|
3948
|
+
* ## Complexity
|
|
4118
3949
|
* - `O(B + M + P1 + P2)` where:
|
|
4119
3950
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
4120
3951
|
* - `M` is members-count (code- and governance-bounded)
|
|
4121
3952
|
* - `P1` is the complexity of `proposal` preimage.
|
|
4122
3953
|
* - `P2` is proposal-count (code-bounded)
|
|
4123
|
-
* - DB:
|
|
4124
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
4125
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
4126
|
-
* `O(P2)`)
|
|
4127
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
4128
|
-
* - up to 3 events
|
|
4129
|
-
* # </weight>
|
|
4130
3954
|
**/
|
|
4131
3955
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | {
|
|
4132
3956
|
refTime?: any;
|
|
@@ -4151,20 +3975,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4151
3975
|
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
4152
3976
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
4153
3977
|
*
|
|
4154
|
-
*
|
|
4155
|
-
* ## Weight
|
|
3978
|
+
* ## Complexity
|
|
4156
3979
|
* - `O(B + M + P1 + P2)` where:
|
|
4157
3980
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
4158
3981
|
* - `M` is members-count (code- and governance-bounded)
|
|
4159
3982
|
* - `P1` is the complexity of `proposal` preimage.
|
|
4160
3983
|
* - `P2` is proposal-count (code-bounded)
|
|
4161
|
-
* - DB:
|
|
4162
|
-
* - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
|
|
4163
|
-
* - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
|
|
4164
|
-
* `O(P2)`)
|
|
4165
|
-
* - any mutations done while executing `proposal` (`P1`)
|
|
4166
|
-
* - up to 3 events
|
|
4167
|
-
* # </weight>
|
|
4168
3984
|
**/
|
|
4169
3985
|
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>]>;
|
|
4170
3986
|
/**
|
|
@@ -4176,12 +3992,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4176
3992
|
* Parameters:
|
|
4177
3993
|
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
4178
3994
|
*
|
|
4179
|
-
*
|
|
4180
|
-
*
|
|
4181
|
-
* DB Weight:
|
|
4182
|
-
* * Reads: Proposals
|
|
4183
|
-
* * Writes: Voting, Proposals, ProposalOf
|
|
4184
|
-
* # </weight>
|
|
3995
|
+
* ## Complexity
|
|
3996
|
+
* O(P) where P is the number of max proposals
|
|
4185
3997
|
**/
|
|
4186
3998
|
disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
4187
3999
|
/**
|
|
@@ -4189,13 +4001,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4189
4001
|
*
|
|
4190
4002
|
* Origin must be a member of the collective.
|
|
4191
4003
|
*
|
|
4192
|
-
*
|
|
4193
|
-
*
|
|
4194
|
-
* - `
|
|
4195
|
-
* `
|
|
4196
|
-
* -
|
|
4197
|
-
* - 1 event
|
|
4198
|
-
* # </weight>
|
|
4004
|
+
* ## Complexity:
|
|
4005
|
+
* - `O(B + M + P)` where:
|
|
4006
|
+
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
4007
|
+
* - `M` members-count (code-bounded)
|
|
4008
|
+
* - `P` complexity of dispatching `proposal`
|
|
4199
4009
|
**/
|
|
4200
4010
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
4201
4011
|
/**
|
|
@@ -4206,26 +4016,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4206
4016
|
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
4207
4017
|
* or put up for voting.
|
|
4208
4018
|
*
|
|
4209
|
-
*
|
|
4210
|
-
* ## Weight
|
|
4019
|
+
* ## Complexity
|
|
4211
4020
|
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
4212
4021
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
4213
4022
|
* - `M` is members-count (code- and governance-bounded)
|
|
4214
4023
|
* - branching is influenced by `threshold` where:
|
|
4215
4024
|
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
4216
4025
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
4217
|
-
* - DB:
|
|
4218
|
-
* - 1 storage read `is_member` (codec `O(M)`)
|
|
4219
|
-
* - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
|
|
4220
|
-
* - DB accesses influenced by `threshold`:
|
|
4221
|
-
* - EITHER storage accesses done by `proposal` (`threshold < 2`)
|
|
4222
|
-
* - OR proposal insertion (`threshold <= 2`)
|
|
4223
|
-
* - 1 storage mutation `Proposals` (codec `O(P2)`)
|
|
4224
|
-
* - 1 storage mutation `ProposalCount` (codec `O(1)`)
|
|
4225
|
-
* - 1 storage write `ProposalOf` (codec `O(B)`)
|
|
4226
|
-
* - 1 storage write `Voting` (codec `O(M)`)
|
|
4227
|
-
* - 1 event
|
|
4228
|
-
* # </weight>
|
|
4229
4026
|
**/
|
|
4230
4027
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
4231
4028
|
/**
|
|
@@ -4236,7 +4033,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4236
4033
|
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
4237
4034
|
* weight estimation.
|
|
4238
4035
|
*
|
|
4239
|
-
*
|
|
4036
|
+
* The dispatch of this call must be `SetMembersOrigin`.
|
|
4240
4037
|
*
|
|
4241
4038
|
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
4242
4039
|
* the weight estimations rely on it to estimate dispatchable weight.
|
|
@@ -4248,19 +4045,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4248
4045
|
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
4249
4046
|
* with other logic managing the member set.
|
|
4250
4047
|
*
|
|
4251
|
-
*
|
|
4252
|
-
* ## Weight
|
|
4048
|
+
* ## Complexity:
|
|
4253
4049
|
* - `O(MP + N)` where:
|
|
4254
4050
|
* - `M` old-members-count (code- and governance-bounded)
|
|
4255
4051
|
* - `N` new-members-count (code- and governance-bounded)
|
|
4256
4052
|
* - `P` proposals-count (code-bounded)
|
|
4257
|
-
* - DB:
|
|
4258
|
-
* - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
|
|
4259
|
-
* members
|
|
4260
|
-
* - 1 storage read (codec `O(P)`) for reading the proposals
|
|
4261
|
-
* - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
|
|
4262
|
-
* - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
|
|
4263
|
-
* # </weight>
|
|
4264
4053
|
**/
|
|
4265
4054
|
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]>;
|
|
4266
4055
|
/**
|
|
@@ -4271,14 +4060,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4271
4060
|
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
4272
4061
|
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
4273
4062
|
* fee.
|
|
4274
|
-
*
|
|
4275
|
-
* ## Weight
|
|
4063
|
+
* ## Complexity
|
|
4276
4064
|
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
4277
|
-
* - DB:
|
|
4278
|
-
* - 1 storage read `Members` (codec `O(M)`)
|
|
4279
|
-
* - 1 storage mutation `Voting` (codec `O(M)`)
|
|
4280
|
-
* - 1 event
|
|
4281
|
-
* # </weight>
|
|
4282
4065
|
**/
|
|
4283
4066
|
vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
|
|
4284
4067
|
/**
|
|
@@ -4411,12 +4194,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4411
4194
|
*
|
|
4412
4195
|
* The dispatch origin for this call must be `Inherent`.
|
|
4413
4196
|
*
|
|
4414
|
-
*
|
|
4197
|
+
* ## Complexity
|
|
4415
4198
|
* - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
|
|
4416
4199
|
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
|
|
4417
4200
|
* `on_finalize`)
|
|
4418
4201
|
* - 1 event handler `on_timestamp_set`. Must be `O(1)`.
|
|
4419
|
-
* # </weight>
|
|
4420
4202
|
**/
|
|
4421
4203
|
set: AugmentedSubmittable<(now: Compact<u64> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u64>]>;
|
|
4422
4204
|
/**
|
|
@@ -4435,13 +4217,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4435
4217
|
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4436
4218
|
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4437
4219
|
*
|
|
4438
|
-
*
|
|
4439
|
-
* -
|
|
4440
|
-
*
|
|
4441
|
-
*
|
|
4442
|
-
* - DbReads: `Tips`, `Tippers`, `tip finder`
|
|
4443
|
-
* - DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`
|
|
4444
|
-
* # </weight>
|
|
4220
|
+
* ## Complexity
|
|
4221
|
+
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
4222
|
+
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
4223
|
+
* the implementation of `T::Tippers`.
|
|
4445
4224
|
**/
|
|
4446
4225
|
closeTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
4447
4226
|
/**
|
|
@@ -4458,12 +4237,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4458
4237
|
*
|
|
4459
4238
|
* Emits `NewTip` if successful.
|
|
4460
4239
|
*
|
|
4461
|
-
*
|
|
4462
|
-
* -
|
|
4240
|
+
* ## Complexity
|
|
4241
|
+
* - `O(R)` where `R` length of `reason`.
|
|
4463
4242
|
* - encoding and hashing of 'reason'
|
|
4464
|
-
* - DbReads: `Reasons`, `Tips`
|
|
4465
|
-
* - DbWrites: `Reasons`, `Tips`
|
|
4466
|
-
* # </weight>
|
|
4467
4243
|
**/
|
|
4468
4244
|
reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
|
|
4469
4245
|
Id: any;
|
|
@@ -4490,12 +4266,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4490
4266
|
*
|
|
4491
4267
|
* Emits `TipRetracted` if successful.
|
|
4492
4268
|
*
|
|
4493
|
-
*
|
|
4494
|
-
* -
|
|
4269
|
+
* ## Complexity
|
|
4270
|
+
* - `O(1)`
|
|
4495
4271
|
* - Depends on the length of `T::Hash` which is fixed.
|
|
4496
|
-
* - DbReads: `Tips`, `origin account`
|
|
4497
|
-
* - DbWrites: `Reasons`, `Tips`, `origin account`
|
|
4498
|
-
* # </weight>
|
|
4499
4272
|
**/
|
|
4500
4273
|
retractTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
4501
4274
|
/**
|
|
@@ -4507,10 +4280,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4507
4280
|
*
|
|
4508
4281
|
* Emits `TipSlashed` if successful.
|
|
4509
4282
|
*
|
|
4510
|
-
*
|
|
4511
|
-
*
|
|
4512
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
4513
|
-
* # </weight>
|
|
4283
|
+
* ## Complexity
|
|
4284
|
+
* - O(1).
|
|
4514
4285
|
**/
|
|
4515
4286
|
slashTip: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
4516
4287
|
/**
|
|
@@ -4528,16 +4299,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4528
4299
|
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
4529
4300
|
* has started.
|
|
4530
4301
|
*
|
|
4531
|
-
*
|
|
4532
|
-
* -
|
|
4533
|
-
*
|
|
4534
|
-
*
|
|
4302
|
+
* ## Complexity
|
|
4303
|
+
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
4304
|
+
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
4305
|
+
* The actual cost depends on the implementation of `T::Tippers`.
|
|
4535
4306
|
*
|
|
4536
4307
|
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
4537
4308
|
* is weighted as if almost full i.e of length `T-1`.
|
|
4538
|
-
* - DbReads: `Tippers`, `Tips`
|
|
4539
|
-
* - DbWrites: `Tips`
|
|
4540
|
-
* # </weight>
|
|
4541
4309
|
**/
|
|
4542
4310
|
tip: AugmentedSubmittable<(hash: H256 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
|
|
4543
4311
|
/**
|
|
@@ -4554,15 +4322,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4554
4322
|
*
|
|
4555
4323
|
* Emits `NewTip` if successful.
|
|
4556
4324
|
*
|
|
4557
|
-
*
|
|
4558
|
-
* -
|
|
4325
|
+
* ## Complexity
|
|
4326
|
+
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
4559
4327
|
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
4560
4328
|
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
4561
4329
|
* `T::Tippers`.
|
|
4562
4330
|
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
4563
|
-
* - DbReads: `Tippers`, `Reasons`
|
|
4564
|
-
* - DbWrites: `Reasons`, `Tips`
|
|
4565
|
-
* # </weight>
|
|
4566
4331
|
**/
|
|
4567
4332
|
tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
|
|
4568
4333
|
Id: any;
|
|
@@ -4587,11 +4352,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4587
4352
|
*
|
|
4588
4353
|
* May only be called from `T::ApproveOrigin`.
|
|
4589
4354
|
*
|
|
4590
|
-
*
|
|
4591
|
-
* -
|
|
4592
|
-
* - DbReads: `Proposals`, `Approvals`
|
|
4593
|
-
* - DbWrite: `Approvals`
|
|
4594
|
-
* # </weight>
|
|
4355
|
+
* ## Complexity
|
|
4356
|
+
* - O(1).
|
|
4595
4357
|
**/
|
|
4596
4358
|
approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
4597
4359
|
/**
|
|
@@ -4599,11 +4361,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4599
4361
|
* is reserved and slashed if the proposal is rejected. It is returned once the
|
|
4600
4362
|
* proposal is awarded.
|
|
4601
4363
|
*
|
|
4602
|
-
*
|
|
4603
|
-
* -
|
|
4604
|
-
* - DbReads: `ProposalCount`, `origin account`
|
|
4605
|
-
* - DbWrites: `ProposalCount`, `Proposals`, `origin account`
|
|
4606
|
-
* # </weight>
|
|
4364
|
+
* ## Complexity
|
|
4365
|
+
* - O(1)
|
|
4607
4366
|
**/
|
|
4608
4367
|
proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
4609
4368
|
Id: any;
|
|
@@ -4621,11 +4380,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4621
4380
|
*
|
|
4622
4381
|
* May only be called from `T::RejectOrigin`.
|
|
4623
4382
|
*
|
|
4624
|
-
*
|
|
4625
|
-
* -
|
|
4626
|
-
* - DbReads: `Proposals`, `rejected proposer account`
|
|
4627
|
-
* - DbWrites: `Proposals`, `rejected proposer account`
|
|
4628
|
-
* # </weight>
|
|
4383
|
+
* ## Complexity
|
|
4384
|
+
* - O(1)
|
|
4629
4385
|
**/
|
|
4630
4386
|
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
4631
4387
|
/**
|
|
@@ -4635,10 +4391,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4635
4391
|
* May only be called from `T::RejectOrigin`.
|
|
4636
4392
|
* - `proposal_id`: The index of a proposal
|
|
4637
4393
|
*
|
|
4638
|
-
*
|
|
4639
|
-
* -
|
|
4640
|
-
* - Db reads and writes: `Approvals`
|
|
4641
|
-
* # </weight>
|
|
4394
|
+
* ## Complexity
|
|
4395
|
+
* - O(A) where `A` is the number of approvals
|
|
4642
4396
|
*
|
|
4643
4397
|
* Errors:
|
|
4644
4398
|
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
|
@@ -4724,9 +4478,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4724
4478
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
4725
4479
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
4726
4480
|
*
|
|
4727
|
-
*
|
|
4728
|
-
* -
|
|
4729
|
-
* # </weight>
|
|
4481
|
+
* ## Complexity
|
|
4482
|
+
* - O(C) where C is the number of calls to be batched.
|
|
4730
4483
|
*
|
|
4731
4484
|
* This will return `Ok` in all circumstances. To determine the success of the batch, an
|
|
4732
4485
|
* event is deposited. If a call failed and the batch was interrupted, then the
|
|
@@ -4747,9 +4500,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4747
4500
|
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
4748
4501
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
4749
4502
|
*
|
|
4750
|
-
*
|
|
4751
|
-
* -
|
|
4752
|
-
* # </weight>
|
|
4503
|
+
* ## Complexity
|
|
4504
|
+
* - O(C) where C is the number of calls to be batched.
|
|
4753
4505
|
**/
|
|
4754
4506
|
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
4755
4507
|
/**
|
|
@@ -4757,12 +4509,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4757
4509
|
*
|
|
4758
4510
|
* The dispatch origin for this call must be _Root_.
|
|
4759
4511
|
*
|
|
4760
|
-
*
|
|
4512
|
+
* ## Complexity
|
|
4761
4513
|
* - O(1).
|
|
4762
|
-
* - Limited storage reads.
|
|
4763
|
-
* - One DB write (event).
|
|
4764
|
-
* - Weight of derivative `call` execution + T::WeightInfo::dispatch_as().
|
|
4765
|
-
* # </weight>
|
|
4766
4514
|
**/
|
|
4767
4515
|
dispatchAs: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | {
|
|
4768
4516
|
system: any;
|
|
@@ -4789,9 +4537,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4789
4537
|
* If origin is root then the calls are dispatch without checking origin filter. (This
|
|
4790
4538
|
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
4791
4539
|
*
|
|
4792
|
-
*
|
|
4793
|
-
* -
|
|
4794
|
-
* # </weight>
|
|
4540
|
+
* ## Complexity
|
|
4541
|
+
* - O(C) where C is the number of calls to be batched.
|
|
4795
4542
|
**/
|
|
4796
4543
|
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
4797
4544
|
/**
|
|
@@ -4825,12 +4572,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4825
4572
|
*
|
|
4826
4573
|
* NOTE: This will unlock all schedules through the current block.
|
|
4827
4574
|
*
|
|
4828
|
-
*
|
|
4575
|
+
* ## Complexity
|
|
4829
4576
|
* - `O(1)`.
|
|
4830
|
-
* - DbWeight: 4 Reads, 4 Writes
|
|
4831
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account, Source Account
|
|
4832
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account, Source Account
|
|
4833
|
-
* # </weight>
|
|
4834
4577
|
**/
|
|
4835
4578
|
forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
4836
4579
|
Id: any;
|
|
@@ -4889,12 +4632,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4889
4632
|
*
|
|
4890
4633
|
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
4891
4634
|
*
|
|
4892
|
-
*
|
|
4635
|
+
* ## Complexity
|
|
4893
4636
|
* - `O(1)`.
|
|
4894
|
-
* - DbWeight: 2 Reads, 2 Writes
|
|
4895
|
-
* - Reads: Vesting Storage, Balances Locks, [Sender Account]
|
|
4896
|
-
* - Writes: Vesting Storage, Balances Locks, [Sender Account]
|
|
4897
|
-
* # </weight>
|
|
4898
4637
|
**/
|
|
4899
4638
|
vest: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4900
4639
|
/**
|
|
@@ -4909,12 +4648,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4909
4648
|
*
|
|
4910
4649
|
* NOTE: This will unlock all schedules through the current block.
|
|
4911
4650
|
*
|
|
4912
|
-
*
|
|
4651
|
+
* ## Complexity
|
|
4913
4652
|
* - `O(1)`.
|
|
4914
|
-
* - DbWeight: 3 Reads, 3 Writes
|
|
4915
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account]
|
|
4916
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account]
|
|
4917
|
-
* # </weight>
|
|
4918
4653
|
**/
|
|
4919
4654
|
vestedTransfer: AugmentedSubmittable<(target: MultiAddress | {
|
|
4920
4655
|
Id: any;
|
|
@@ -4941,12 +4676,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4941
4676
|
*
|
|
4942
4677
|
* Emits either `VestingCompleted` or `VestingUpdated`.
|
|
4943
4678
|
*
|
|
4944
|
-
*
|
|
4679
|
+
* ## Complexity
|
|
4945
4680
|
* - `O(1)`.
|
|
4946
|
-
* - DbWeight: 3 Reads, 3 Writes
|
|
4947
|
-
* - Reads: Vesting Storage, Balances Locks, Target Account
|
|
4948
|
-
* - Writes: Vesting Storage, Balances Locks, Target Account
|
|
4949
|
-
* # </weight>
|
|
4950
4681
|
**/
|
|
4951
4682
|
vestOther: AugmentedSubmittable<(target: MultiAddress | {
|
|
4952
4683
|
Id: any;
|