@polymeshassociation/polymesh-sdk 24.4.0-alpha.2 → 24.4.0-alpha.4
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/CHANGELOG.md +2 -7
- package/api/procedures/addInstruction.d.ts +0 -4
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +13 -34
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/createTransactionBatch.d.ts.map +1 -1
- package/api/procedures/createTransactionBatch.js +28 -0
- package/api/procedures/createTransactionBatch.js.map +1 -1
- package/generated/types.d.ts +12 -2
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +12 -1
- package/generated/types.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-24.4.0-alpha.4.tgz +0 -0
- package/package.json +4 -4
- package/polkadot/augment-api-consts.d.ts +45 -47
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +77 -0
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +56 -11
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +94 -16
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +19 -5
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +201 -234
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +43 -6
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +323 -229
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +341 -229
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/registry.d.ts +11 -5
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +45 -0
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +73 -0
- package/polkadot/schema.js.map +1 -1
- package/polkadot/settlement/definitions.d.ts +16 -0
- package/polkadot/settlement/definitions.d.ts.map +1 -1
- package/polkadot/settlement/definitions.js +24 -0
- package/polkadot/settlement/definitions.js.map +1 -1
- package/polkadot/types-lookup.d.ts +336 -239
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/utils/constants.d.ts +2 -2
- package/utils/constants.d.ts.map +1 -1
- package/utils/constants.js +2 -2
- package/utils/constants.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-24.4.0-alpha.2.tgz +0 -0
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
3
|
import type { BTreeSet, Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { PalletBridgeBridgeTx, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from "./types-lookup.ts";
|
|
6
|
+
import type { PalletBridgeBridgeTx, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from "./types-lookup.ts";
|
|
7
7
|
export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
8
8
|
export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
9
9
|
export declare type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -686,8 +686,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
686
686
|
* # Arguments
|
|
687
687
|
* * `origin` - a signer that has permissions to act as an agent of `ticker`.
|
|
688
688
|
* * `ticker` - the ticker of the token.
|
|
689
|
-
* * `
|
|
690
|
-
* of `IdentifierType` and `AssetIdentifier` value.
|
|
689
|
+
* * `asset_identifiers` - the asset identifiers to be updated in the form of a vector of pairs of `IdentifierType` and `AssetIdentifier` value.
|
|
691
690
|
*
|
|
692
691
|
* ## Errors
|
|
693
692
|
* - `InvalidAssetIdentifier` if `identifiers` contains any invalid identifier.
|
|
@@ -695,7 +694,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
695
694
|
* # Permissions
|
|
696
695
|
* * Asset
|
|
697
696
|
**/
|
|
698
|
-
updateIdentifiers: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array,
|
|
697
|
+
updateIdentifiers: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, assetIdentifiers: Vec<PolymeshPrimitivesAssetIdentifier> | (PolymeshPrimitivesAssetIdentifier | {
|
|
699
698
|
CUSIP: any;
|
|
700
699
|
} | {
|
|
701
700
|
CINS: any;
|
|
@@ -4806,14 +4805,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4806
4805
|
};
|
|
4807
4806
|
staking: {
|
|
4808
4807
|
/**
|
|
4809
|
-
*
|
|
4810
|
-
*
|
|
4811
|
-
* to ensure validators have completed KYB compliance and considers them for validation.
|
|
4808
|
+
* Scale up the ideal number of validators by a factor upto maximum of
|
|
4809
|
+
* `ElectionProviderBase::MaxWinners`.
|
|
4812
4810
|
*
|
|
4813
|
-
*
|
|
4814
|
-
*
|
|
4815
|
-
*
|
|
4816
|
-
*
|
|
4811
|
+
* The dispatch origin must be Root.
|
|
4812
|
+
*
|
|
4813
|
+
* ## Complexity
|
|
4814
|
+
* Same as [`Self::set_validator_count`].
|
|
4817
4815
|
**/
|
|
4818
4816
|
addPermissionedValidator: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, intendedCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
|
|
4819
4817
|
PolymeshPrimitivesIdentityId,
|
|
@@ -4828,20 +4826,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4828
4826
|
* The dispatch origin for this call must be _Signed_ by the stash account.
|
|
4829
4827
|
*
|
|
4830
4828
|
* Emits `Bonded`.
|
|
4831
|
-
*
|
|
4832
|
-
* # <weight>
|
|
4829
|
+
* ## Complexity
|
|
4833
4830
|
* - Independent of the arguments. Moderate complexity.
|
|
4834
4831
|
* - O(1).
|
|
4835
4832
|
* - Three extra DB entries.
|
|
4836
4833
|
*
|
|
4837
4834
|
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
|
|
4838
4835
|
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
|
|
4839
|
-
* ------------------
|
|
4840
|
-
* Weight: O(1)
|
|
4841
|
-
* DB Weight:
|
|
4842
|
-
* - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks
|
|
4843
|
-
* - Write: Bonded, Payee, [Origin Account], Locks, Ledger
|
|
4844
|
-
* # </weight>
|
|
4845
4836
|
**/
|
|
4846
4837
|
bond: AugmentedSubmittable<(controller: MultiAddress | {
|
|
4847
4838
|
Id: any;
|
|
@@ -4870,24 +4861,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4870
4861
|
* Add some extra amount that have appeared in the stash `free_balance` into the balance up
|
|
4871
4862
|
* for staking.
|
|
4872
4863
|
*
|
|
4873
|
-
*
|
|
4874
|
-
* Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount
|
|
4875
|
-
* that can be added.
|
|
4864
|
+
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
|
4876
4865
|
*
|
|
4877
|
-
*
|
|
4878
|
-
*
|
|
4866
|
+
* Use this if there are additional funds in your stash account that you wish to bond.
|
|
4867
|
+
* Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose
|
|
4868
|
+
* any limitation on the amount that can be added.
|
|
4879
4869
|
*
|
|
4880
4870
|
* Emits `Bonded`.
|
|
4881
4871
|
*
|
|
4882
|
-
*
|
|
4872
|
+
* ## Complexity
|
|
4883
4873
|
* - Independent of the arguments. Insignificant complexity.
|
|
4884
4874
|
* - O(1).
|
|
4885
|
-
* - One DB entry.
|
|
4886
|
-
* ------------
|
|
4887
|
-
* DB Weight:
|
|
4888
|
-
* - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks
|
|
4889
|
-
* - Write: [Origin Account], Locks, Ledger
|
|
4890
|
-
* # </weight>
|
|
4891
4875
|
**/
|
|
4892
4876
|
bondExtra: AugmentedSubmittable<(maxAdditional: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4893
4877
|
Compact<u128>
|
|
@@ -4895,17 +4879,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4895
4879
|
/**
|
|
4896
4880
|
* Cancel enactment of a deferred slash.
|
|
4897
4881
|
*
|
|
4898
|
-
* Can be called by the `T::
|
|
4882
|
+
* Can be called by the `T::AdminOrigin`.
|
|
4899
4883
|
*
|
|
4900
4884
|
* Parameters: era and indices of the slashes for that era to kill.
|
|
4901
|
-
*
|
|
4902
|
-
* # <weight>
|
|
4903
|
-
* Complexity: O(U + S)
|
|
4904
|
-
* with U unapplied slashes weighted with U=1000
|
|
4905
|
-
* and S is the number of slash indices to be canceled.
|
|
4906
|
-
* - Read: Unapplied Slashes
|
|
4907
|
-
* - Write: Unapplied Slashes
|
|
4908
|
-
* # </weight>
|
|
4909
4885
|
**/
|
|
4910
4886
|
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
4911
4887
|
u32,
|
|
@@ -4916,7 +4892,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4916
4892
|
*
|
|
4917
4893
|
* # Arguments
|
|
4918
4894
|
* * origin - AccountId of root.
|
|
4919
|
-
* * slashing_switch - Switch used to set the targets for
|
|
4895
|
+
* * slashing_switch - Switch used to set the targets for s
|
|
4920
4896
|
**/
|
|
4921
4897
|
changeSlashingAllowedFor: AugmentedSubmittable<(slashingSwitch: PalletStakingSlashingSwitch | 'Validator' | 'ValidatorAndNominator' | 'None' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4922
4898
|
PalletStakingSlashingSwitch
|
|
@@ -4927,18 +4903,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4927
4903
|
* Effects will be felt at the beginning of the next era.
|
|
4928
4904
|
*
|
|
4929
4905
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
4930
|
-
* And, it can be only called when [`EraElectionStatus`] is `Closed`.
|
|
4931
4906
|
*
|
|
4932
|
-
*
|
|
4907
|
+
* ## Complexity
|
|
4933
4908
|
* - Independent of the arguments. Insignificant complexity.
|
|
4934
4909
|
* - Contains one read.
|
|
4935
4910
|
* - Writes are limited to the `origin` account key.
|
|
4936
|
-
* --------
|
|
4937
|
-
* Weight: O(1)
|
|
4938
|
-
* DB Weight:
|
|
4939
|
-
* - Read: EraElectionStatus, Ledger
|
|
4940
|
-
* - Write: Validators, Nominators
|
|
4941
|
-
* # </weight>
|
|
4942
4911
|
**/
|
|
4943
4912
|
chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4944
4913
|
/**
|
|
@@ -4955,7 +4924,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4955
4924
|
* * `BadOrigin` The origin was not a GC member.
|
|
4956
4925
|
* * `CallNotAllowed` The call is not allowed at the given time due to restrictions of election period.
|
|
4957
4926
|
* * `NotExists` Permissioned validator doesn't exist.
|
|
4958
|
-
* * `NotStash` Not a stash account for the permissioned
|
|
4927
|
+
* * `NotStash` Not a stash account for the permissioned i
|
|
4959
4928
|
**/
|
|
4960
4929
|
chillFromGovernance: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, stashKeys: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
4961
4930
|
PolymeshPrimitivesIdentityId,
|
|
@@ -4967,11 +4936,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4967
4936
|
*
|
|
4968
4937
|
* The dispatch origin must be Root.
|
|
4969
4938
|
*
|
|
4970
|
-
* #
|
|
4939
|
+
* # Warning
|
|
4940
|
+
*
|
|
4941
|
+
* The election process starts multiple blocks before the end of the era.
|
|
4942
|
+
* If this is called just before a new era is triggered, the election process may not
|
|
4943
|
+
* have enough blocks to get a result.
|
|
4944
|
+
*
|
|
4945
|
+
* ## Complexity
|
|
4971
4946
|
* - No arguments.
|
|
4972
4947
|
* - Weight: O(1)
|
|
4973
|
-
* - Write ForceEra
|
|
4974
|
-
* # </weight>
|
|
4975
4948
|
**/
|
|
4976
4949
|
forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4977
4950
|
/**
|
|
@@ -4979,10 +4952,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4979
4952
|
*
|
|
4980
4953
|
* The dispatch origin must be Root.
|
|
4981
4954
|
*
|
|
4982
|
-
* #
|
|
4983
|
-
*
|
|
4984
|
-
*
|
|
4985
|
-
*
|
|
4955
|
+
* # Warning
|
|
4956
|
+
*
|
|
4957
|
+
* The election process starts multiple blocks before the end of the era.
|
|
4958
|
+
* If this is called just before a new era is triggered, the election process may not
|
|
4959
|
+
* have enough blocks to get a result.
|
|
4986
4960
|
**/
|
|
4987
4961
|
forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4988
4962
|
/**
|
|
@@ -4990,37 +4964,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4990
4964
|
*
|
|
4991
4965
|
* The dispatch origin must be Root.
|
|
4992
4966
|
*
|
|
4993
|
-
* #
|
|
4967
|
+
* # Warning
|
|
4968
|
+
*
|
|
4969
|
+
* The election process starts multiple blocks before the end of the era.
|
|
4970
|
+
* Thus the election process may be ongoing when this is called. In this case the
|
|
4971
|
+
* election will continue until the next era is triggered.
|
|
4972
|
+
*
|
|
4973
|
+
* ## Complexity
|
|
4994
4974
|
* - No arguments.
|
|
4995
4975
|
* - Weight: O(1)
|
|
4996
|
-
* - Write: ForceEra
|
|
4997
|
-
* # </weight>
|
|
4998
4976
|
**/
|
|
4999
4977
|
forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
5000
4978
|
/**
|
|
5001
4979
|
* Force a current staker to become completely unstaked, immediately.
|
|
5002
4980
|
*
|
|
5003
4981
|
* The dispatch origin must be Root.
|
|
5004
|
-
*
|
|
5005
|
-
* # <weight>
|
|
5006
|
-
* O(S) where S is the number of slashing spans to be removed
|
|
5007
|
-
* Reads: Bonded, Slashing Spans, Account, Locks
|
|
5008
|
-
* Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks
|
|
5009
|
-
* Writes Each: SpanSlash * S
|
|
5010
|
-
* # </weight>
|
|
5011
4982
|
**/
|
|
5012
4983
|
forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5013
4984
|
AccountId32,
|
|
5014
4985
|
u32
|
|
5015
4986
|
]>;
|
|
5016
4987
|
/**
|
|
5017
|
-
* Increments the ideal number of validators
|
|
4988
|
+
* Increments the ideal number of validators upto maximum of
|
|
4989
|
+
* `ElectionProviderBase::MaxWinners`.
|
|
5018
4990
|
*
|
|
5019
4991
|
* The dispatch origin must be Root.
|
|
5020
4992
|
*
|
|
5021
|
-
*
|
|
5022
|
-
* Same as [`set_validator_count`].
|
|
5023
|
-
* # </weight>
|
|
4993
|
+
* ## Complexity
|
|
4994
|
+
* Same as [`Self::set_validator_count`].
|
|
5024
4995
|
**/
|
|
5025
4996
|
increaseValidatorCount: AugmentedSubmittable<(additional: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5026
4997
|
Compact<u32>
|
|
@@ -5028,23 +4999,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5028
4999
|
/**
|
|
5029
5000
|
* Declare the desire to nominate `targets` for the origin controller.
|
|
5030
5001
|
*
|
|
5031
|
-
* Effects will be felt at the beginning of the next era.
|
|
5032
|
-
* [`EraElectionStatus`] is `Closed`.
|
|
5002
|
+
* Effects will be felt at the beginning of the next era.
|
|
5033
5003
|
*
|
|
5034
5004
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
5035
|
-
* And, it can be only called when [`EraElectionStatus`] is `Closed`.
|
|
5036
5005
|
*
|
|
5037
|
-
*
|
|
5006
|
+
* ## Complexity
|
|
5038
5007
|
* - The transaction's complexity is proportional to the size of `targets` (N)
|
|
5039
|
-
* which is capped at CompactAssignments::LIMIT (
|
|
5008
|
+
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
|
5040
5009
|
* - Both the reads and writes follow a similar pattern.
|
|
5041
|
-
* ---------
|
|
5042
|
-
* Weight: O(N)
|
|
5043
|
-
* where N is the number of targets
|
|
5044
|
-
* DB Weight:
|
|
5045
|
-
* - Reads: Era Election Status, Ledger, Current Era
|
|
5046
|
-
* - Writes: Validators, Nominators
|
|
5047
|
-
* # </weight>
|
|
5048
5010
|
**/
|
|
5049
5011
|
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | {
|
|
5050
5012
|
Id: any;
|
|
@@ -5069,50 +5031,30 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5069
5031
|
* The origin of this call must be _Signed_. Any account can call this function, even if
|
|
5070
5032
|
* it is not one of the stakers.
|
|
5071
5033
|
*
|
|
5072
|
-
*
|
|
5073
|
-
*
|
|
5074
|
-
* # <weight>
|
|
5075
|
-
* - Time complexity: at most O(MaxNominatorRewardedPerValidator).
|
|
5076
|
-
* - Contains a limited number of reads and writes.
|
|
5077
|
-
* -----------
|
|
5078
|
-
* N is the Number of payouts for the validator (including the validator)
|
|
5079
|
-
* Weight:
|
|
5080
|
-
* - Reward Destination Staked: O(N)
|
|
5081
|
-
* - Reward Destination Controller (Creating): O(N)
|
|
5082
|
-
* DB Weight:
|
|
5083
|
-
* - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward,
|
|
5084
|
-
* ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items)
|
|
5085
|
-
* - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items)
|
|
5086
|
-
* - Write Each: System Account, Locks, Ledger (3 items)
|
|
5087
|
-
* # </weight>
|
|
5034
|
+
* ## Complexity
|
|
5035
|
+
* - At most O(MaxNominatorRewardedPerValidator).
|
|
5088
5036
|
**/
|
|
5089
5037
|
payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5090
5038
|
AccountId32,
|
|
5091
5039
|
u32
|
|
5092
5040
|
]>;
|
|
5093
|
-
/**
|
|
5094
|
-
* System version of `payout_stakers()`. Only be called by the root origin.
|
|
5095
|
-
**/
|
|
5096
5041
|
payoutStakersBySystem: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5097
5042
|
AccountId32,
|
|
5098
5043
|
u32
|
|
5099
5044
|
]>;
|
|
5100
5045
|
/**
|
|
5101
|
-
* Remove all data
|
|
5102
|
-
*
|
|
5103
|
-
* and the target `stash` must have no funds left beyond the ED.
|
|
5046
|
+
* Remove all data structures concerning a staker/stash once it is at a state where it can
|
|
5047
|
+
* be considered `dust` in the staking system. The requirements are:
|
|
5104
5048
|
*
|
|
5105
|
-
*
|
|
5049
|
+
* 1. the `total_balance` of the stash is below existential deposit.
|
|
5050
|
+
* 2. or, the `ledger.total` of the stash is below existential deposit.
|
|
5106
5051
|
*
|
|
5107
|
-
*
|
|
5052
|
+
* The former can happen in cases like a slash; the latter when a fully unbonded account
|
|
5053
|
+
* is still receiving staking rewards in `RewardDestination::Staked`.
|
|
5108
5054
|
*
|
|
5109
|
-
*
|
|
5110
|
-
*
|
|
5111
|
-
*
|
|
5112
|
-
* - Reads: Stash Account, Bonded, Slashing Spans, Locks
|
|
5113
|
-
* - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks
|
|
5114
|
-
* - Writes Each: SpanSlash * S
|
|
5115
|
-
* # </weight>
|
|
5055
|
+
* It can be called by anyone, as long as `stash` meets the above requirements.
|
|
5056
|
+
*
|
|
5057
|
+
* Refunds the transaction fees upon successful execution.
|
|
5116
5058
|
**/
|
|
5117
5059
|
reapStash: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5118
5060
|
AccountId32,
|
|
@@ -5121,18 +5063,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5121
5063
|
/**
|
|
5122
5064
|
* Rebond a portion of the stash scheduled to be unlocked.
|
|
5123
5065
|
*
|
|
5124
|
-
* The dispatch origin must be signed by the controller
|
|
5125
|
-
* [`EraElectionStatus`] is `Closed`.
|
|
5066
|
+
* The dispatch origin must be signed by the controller.
|
|
5126
5067
|
*
|
|
5127
|
-
*
|
|
5068
|
+
* ## Complexity
|
|
5128
5069
|
* - Time complexity: O(L), where L is unlocking chunks
|
|
5129
|
-
* - Bounded by `
|
|
5130
|
-
* - Storage changes: Can't increase storage, only decrease it.
|
|
5131
|
-
* ---------------
|
|
5132
|
-
* - DB Weight:
|
|
5133
|
-
* - Reads: EraElectionStatus, Ledger, Locks, [Origin Account]
|
|
5134
|
-
* - Writes: [Origin Account], Locks, Ledger
|
|
5135
|
-
* # </weight>
|
|
5070
|
+
* - Bounded by `MaxUnlockingChunks`.
|
|
5136
5071
|
**/
|
|
5137
5072
|
rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5138
5073
|
Compact<u128>
|
|
@@ -5150,13 +5085,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5150
5085
|
PolymeshPrimitivesIdentityId
|
|
5151
5086
|
]>;
|
|
5152
5087
|
/**
|
|
5153
|
-
* Scale up the ideal number of validators by a factor
|
|
5088
|
+
* Scale up the ideal number of validators by a factor upto maximum of
|
|
5089
|
+
* `ElectionProviderBase::MaxWinners`.
|
|
5154
5090
|
*
|
|
5155
5091
|
* The dispatch origin must be Root.
|
|
5156
5092
|
*
|
|
5157
|
-
*
|
|
5158
|
-
* Same as [`set_validator_count`].
|
|
5159
|
-
* # </weight>
|
|
5093
|
+
* ## Complexity
|
|
5094
|
+
* Same as [`Self::set_validator_count`].
|
|
5160
5095
|
**/
|
|
5161
5096
|
scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5162
5097
|
Percent
|
|
@@ -5174,20 +5109,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5174
5109
|
/**
|
|
5175
5110
|
* (Re-)set the controller of a stash.
|
|
5176
5111
|
*
|
|
5177
|
-
* Effects will be felt
|
|
5112
|
+
* Effects will be felt instantly (as soon as this function is completed successfully).
|
|
5178
5113
|
*
|
|
5179
5114
|
* The dispatch origin for this call must be _Signed_ by the stash, not the controller.
|
|
5180
5115
|
*
|
|
5181
|
-
*
|
|
5116
|
+
* ## Complexity
|
|
5117
|
+
* O(1)
|
|
5182
5118
|
* - Independent of the arguments. Insignificant complexity.
|
|
5183
5119
|
* - Contains a limited number of reads.
|
|
5184
5120
|
* - Writes are limited to the `origin` account key.
|
|
5185
|
-
* ----------
|
|
5186
|
-
* Weight: O(1)
|
|
5187
|
-
* DB Weight:
|
|
5188
|
-
* - Read: Bonded, Ledger New Controller, Ledger Old Controller
|
|
5189
|
-
* - Write: Bonded, Ledger New Controller, Ledger Old Controller
|
|
5190
|
-
* # </weight>
|
|
5191
5121
|
**/
|
|
5192
5122
|
setController: AugmentedSubmittable<(controller: MultiAddress | {
|
|
5193
5123
|
Id: any;
|
|
@@ -5203,27 +5133,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5203
5133
|
MultiAddress
|
|
5204
5134
|
]>;
|
|
5205
5135
|
/**
|
|
5206
|
-
*
|
|
5207
|
-
* when `HistoryDepth` is reduced.
|
|
5208
|
-
*
|
|
5209
|
-
* Parameters:
|
|
5210
|
-
* - `new_history_depth`: The new history depth you would like to set.
|
|
5211
|
-
* - `era_items_deleted`: The number of items that will be deleted by this dispatch.
|
|
5212
|
-
* This should report all the storage items that will be deleted by clearing old
|
|
5213
|
-
* era history. Needed to report an accurate weight for the dispatch. Trusted by
|
|
5214
|
-
* `Root` to report an accurate number.
|
|
5136
|
+
* Rebond a portion of the stash scheduled to be unlocked.
|
|
5215
5137
|
*
|
|
5216
|
-
*
|
|
5138
|
+
* The dispatch origin must be signed by the controller.
|
|
5217
5139
|
*
|
|
5218
|
-
*
|
|
5219
|
-
* -
|
|
5220
|
-
* -
|
|
5221
|
-
* - DB Weight:
|
|
5222
|
-
* - Reads: Current Era, History Depth
|
|
5223
|
-
* - Writes: History Depth
|
|
5224
|
-
* - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs
|
|
5225
|
-
* - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex
|
|
5226
|
-
* # </weight>
|
|
5140
|
+
* ## Complexity
|
|
5141
|
+
* - Time complexity: O(L), where L is unlocking chunks
|
|
5142
|
+
* - Bounded by `MaxUnlockingChunks`.
|
|
5227
5143
|
**/
|
|
5228
5144
|
setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact<u32> | AnyNumber | Uint8Array, eraItemsDeleted: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5229
5145
|
Compact<u32>,
|
|
@@ -5233,21 +5149,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5233
5149
|
* Set the validators who cannot be slashed (if any).
|
|
5234
5150
|
*
|
|
5235
5151
|
* The dispatch origin must be Root.
|
|
5236
|
-
*
|
|
5237
|
-
* # <weight>
|
|
5238
|
-
* - O(V)
|
|
5239
|
-
* - Write: Invulnerables
|
|
5240
|
-
* # </weight>
|
|
5241
5152
|
**/
|
|
5242
5153
|
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
5243
5154
|
Vec<AccountId32>
|
|
5244
5155
|
]>;
|
|
5245
5156
|
/**
|
|
5246
|
-
* Changes
|
|
5157
|
+
* Changes commission rate which applies to all validators. Only Governance
|
|
5247
5158
|
* committee is allowed to change this value.
|
|
5248
5159
|
*
|
|
5249
5160
|
* # Arguments
|
|
5250
|
-
* * `
|
|
5161
|
+
* * `new_cap` the new commission cap.
|
|
5251
5162
|
**/
|
|
5252
5163
|
setMinBondThreshold: AugmentedSubmittable<(newValue: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5253
5164
|
u128
|
|
@@ -5255,20 +5166,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5255
5166
|
/**
|
|
5256
5167
|
* (Re-)set the payment target for a controller.
|
|
5257
5168
|
*
|
|
5258
|
-
* Effects will be felt
|
|
5169
|
+
* Effects will be felt instantly (as soon as this function is completed successfully).
|
|
5259
5170
|
*
|
|
5260
5171
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
5261
5172
|
*
|
|
5262
|
-
*
|
|
5173
|
+
* ## Complexity
|
|
5174
|
+
* - O(1)
|
|
5263
5175
|
* - Independent of the arguments. Insignificant complexity.
|
|
5264
5176
|
* - Contains a limited number of reads.
|
|
5265
5177
|
* - Writes are limited to the `origin` account key.
|
|
5266
5178
|
* ---------
|
|
5267
|
-
* - Weight: O(1)
|
|
5268
|
-
* - DB Weight:
|
|
5269
|
-
* - Read: Ledger
|
|
5270
|
-
* - Write: Payee
|
|
5271
|
-
* # </weight>
|
|
5272
5179
|
**/
|
|
5273
5180
|
setPayee: AugmentedSubmittable<(payee: PalletStakingRewardDestination | {
|
|
5274
5181
|
Staked: any;
|
|
@@ -5286,10 +5193,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5286
5193
|
*
|
|
5287
5194
|
* The dispatch origin must be Root.
|
|
5288
5195
|
*
|
|
5289
|
-
*
|
|
5290
|
-
*
|
|
5291
|
-
* Write: Validator Count
|
|
5292
|
-
* # </weight>
|
|
5196
|
+
* ## Complexity
|
|
5197
|
+
* O(1)
|
|
5293
5198
|
**/
|
|
5294
5199
|
setValidatorCount: AugmentedSubmittable<(updated: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5295
5200
|
Compact<u32>
|
|
@@ -5423,34 +5328,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5423
5328
|
* period ends. If this leaves an amount actively bonded less than
|
|
5424
5329
|
* T::Currency::minimum_balance(), then it is increased to the full amount.
|
|
5425
5330
|
*
|
|
5331
|
+
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
5332
|
+
*
|
|
5426
5333
|
* Once the unlock period is done, you can call `withdraw_unbonded` to actually move
|
|
5427
5334
|
* the funds out of management ready for transfer.
|
|
5428
5335
|
*
|
|
5429
|
-
* No more than a limited number of unlocking chunks (see `
|
|
5430
|
-
* can co-exists at the same time.
|
|
5431
|
-
*
|
|
5336
|
+
* No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)
|
|
5337
|
+
* can co-exists at the same time. If there are no unlocking chunks slots available
|
|
5338
|
+
* [`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible).
|
|
5432
5339
|
*
|
|
5433
|
-
*
|
|
5434
|
-
*
|
|
5340
|
+
* If a user encounters the `InsufficientBond` error when calling this extrinsic,
|
|
5341
|
+
* they should call `chill` first in order to free up their bonded funds.
|
|
5435
5342
|
*
|
|
5436
5343
|
* Emits `Unbonded`.
|
|
5437
5344
|
*
|
|
5438
5345
|
* See also [`Call::withdraw_unbonded`].
|
|
5439
|
-
*
|
|
5440
|
-
* # <weight>
|
|
5441
|
-
* - Independent of the arguments. Limited but potentially exploitable complexity.
|
|
5442
|
-
* - Contains a limited number of reads.
|
|
5443
|
-
* - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)
|
|
5444
|
-
* will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.
|
|
5445
|
-
* The only way to clean the aforementioned storage item is also user-controlled via
|
|
5446
|
-
* `withdraw_unbonded`.
|
|
5447
|
-
* - One DB entry.
|
|
5448
|
-
* ----------
|
|
5449
|
-
* Weight: O(1)
|
|
5450
|
-
* DB Weight:
|
|
5451
|
-
* - Read: EraElectionStatus, Ledger, CurrentEra, Locks, \[Origin Account\]
|
|
5452
|
-
* - Write: Locks, Ledger, \[Origin Account\]
|
|
5453
|
-
* </weight>
|
|
5454
5346
|
**/
|
|
5455
5347
|
unbond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5456
5348
|
Compact<u128>
|
|
@@ -5461,7 +5353,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5461
5353
|
* # Arguments
|
|
5462
5354
|
* * origin which must be the required origin for adding a potential validator.
|
|
5463
5355
|
* * identity to add as a validator.
|
|
5464
|
-
* * new_intended_count New value of intended
|
|
5356
|
+
* * new_intended_count New value of intended co
|
|
5465
5357
|
**/
|
|
5466
5358
|
updatePermissionedValidatorIntendedCount: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, newIntendedCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5467
5359
|
PolymeshPrimitivesIdentityId,
|
|
@@ -5473,18 +5365,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5473
5365
|
* Effects will be felt at the beginning of the next era.
|
|
5474
5366
|
*
|
|
5475
5367
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
5476
|
-
* And, it can be only called when [`EraElectionStatus`] is `Closed`.
|
|
5477
|
-
*
|
|
5478
|
-
* # <weight>
|
|
5479
|
-
* - Independent of the arguments. Insignificant complexity.
|
|
5480
|
-
* - Contains a limited number of reads.
|
|
5481
|
-
* - Writes are limited to the `origin` account key.
|
|
5482
|
-
* -----------
|
|
5483
|
-
* Weight: O(1)
|
|
5484
|
-
* DB Weight:
|
|
5485
|
-
* - Read: Era Election Status, Ledger
|
|
5486
|
-
* - Write: Nominators, Validators
|
|
5487
|
-
* # </weight>
|
|
5488
5368
|
**/
|
|
5489
5369
|
validate: AugmentedSubmittable<(prefs: PalletStakingValidatorPrefs | {
|
|
5490
5370
|
commission?: any;
|
|
@@ -5495,14 +5375,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5495
5375
|
/**
|
|
5496
5376
|
* Validate the nominators CDD expiry time.
|
|
5497
5377
|
*
|
|
5498
|
-
* If an account from a given set of address is nominating then
|
|
5499
|
-
*
|
|
5500
|
-
*
|
|
5501
|
-
*
|
|
5502
|
-
* #<weight>
|
|
5503
|
-
* - Depends on passed list of AccountId.
|
|
5504
|
-
* - Depends on the no. of claim issuers an accountId has for the CDD expiry.
|
|
5505
|
-
* #</weight>
|
|
5378
|
+
* If an account from a given set of address is nominating then check the CDD expiry time
|
|
5379
|
+
* of it and if it is expired then the account should be unbonded and removed from the
|
|
5380
|
+
* nominating process.
|
|
5506
5381
|
**/
|
|
5507
5382
|
validateCddExpiryNominators: AugmentedSubmittable<(targets: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
|
|
5508
5383
|
Vec<AccountId32>
|
|
@@ -5513,37 +5388,129 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5513
5388
|
* This essentially frees up that balance to be used by the stash account to do
|
|
5514
5389
|
* whatever it wants.
|
|
5515
5390
|
*
|
|
5516
|
-
* The dispatch origin for this call must be _Signed_ by the controller
|
|
5517
|
-
* And, it can be only called when [`EraElectionStatus`] is `Closed`.
|
|
5391
|
+
* The dispatch origin for this call must be _Signed_ by the controller.
|
|
5518
5392
|
*
|
|
5519
5393
|
* Emits `Withdrawn`.
|
|
5520
5394
|
*
|
|
5521
5395
|
* See also [`Call::unbond`].
|
|
5522
5396
|
*
|
|
5523
|
-
*
|
|
5524
|
-
*
|
|
5525
|
-
* It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is
|
|
5526
|
-
* indirectly user-controlled. See [`unbond`] for more detail.
|
|
5527
|
-
* - Contains a limited number of reads, yet the size of which could be large based on `ledger`.
|
|
5528
|
-
* - Writes are limited to the `origin` account key.
|
|
5529
|
-
* ---------------
|
|
5530
|
-
* Complexity O(S) where S is the number of slashing spans to remove
|
|
5531
|
-
* Update:
|
|
5532
|
-
* - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
|
|
5533
|
-
* - Writes: [Origin Account], Locks, Ledger
|
|
5534
|
-
* Kill:
|
|
5535
|
-
* - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin
|
|
5536
|
-
* Account], Locks
|
|
5537
|
-
* - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
|
|
5538
|
-
* [Origin Account], Locks
|
|
5539
|
-
* - Writes Each: SpanSlash * S
|
|
5397
|
+
* ## Complexity
|
|
5398
|
+
* O(S) where S is the number of slashing spans to remove
|
|
5540
5399
|
* NOTE: Weight annotation is the kill scenario, we refund otherwise.
|
|
5541
|
-
* # </weight>
|
|
5542
5400
|
**/
|
|
5543
5401
|
withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5544
5402
|
u32
|
|
5545
5403
|
]>;
|
|
5546
5404
|
};
|
|
5405
|
+
stateTrieMigration: {
|
|
5406
|
+
/**
|
|
5407
|
+
* Continue the migration for the given `limits`.
|
|
5408
|
+
*
|
|
5409
|
+
* The dispatch origin of this call can be any signed account.
|
|
5410
|
+
*
|
|
5411
|
+
* This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,
|
|
5412
|
+
* Upon successful execution, the transaction fee is returned.
|
|
5413
|
+
*
|
|
5414
|
+
* The (potentially over-estimated) of the byte length of all the data read must be
|
|
5415
|
+
* provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing
|
|
5416
|
+
* that executing the current `MigrationTask` with the given `limits` will not exceed
|
|
5417
|
+
* `real_size_upper` bytes of read data.
|
|
5418
|
+
*
|
|
5419
|
+
* The `witness_task` is merely a helper to prevent the caller from being slashed or
|
|
5420
|
+
* generally trigger a migration that they do not intend. This parameter is just a message
|
|
5421
|
+
* from caller, saying that they believed `witness_task` was the last state of the
|
|
5422
|
+
* migration, and they only wish for their transaction to do anything, if this assumption
|
|
5423
|
+
* holds. In case `witness_task` does not match, the transaction fails.
|
|
5424
|
+
*
|
|
5425
|
+
* Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the
|
|
5426
|
+
* recommended way of doing this is to pass a `limit` that only bounds `count`, as the
|
|
5427
|
+
* `size` limit can always be overwritten.
|
|
5428
|
+
**/
|
|
5429
|
+
continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | {
|
|
5430
|
+
size_?: any;
|
|
5431
|
+
item?: any;
|
|
5432
|
+
} | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | {
|
|
5433
|
+
progressTop?: any;
|
|
5434
|
+
progressChild?: any;
|
|
5435
|
+
size_?: any;
|
|
5436
|
+
topItems?: any;
|
|
5437
|
+
childItems?: any;
|
|
5438
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5439
|
+
PalletStateTrieMigrationMigrationLimits,
|
|
5440
|
+
u32,
|
|
5441
|
+
PalletStateTrieMigrationMigrationTask
|
|
5442
|
+
]>;
|
|
5443
|
+
/**
|
|
5444
|
+
* Control the automatic migration.
|
|
5445
|
+
*
|
|
5446
|
+
* The dispatch origin of this call must be [`Config::ControlOrigin`].
|
|
5447
|
+
**/
|
|
5448
|
+
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | {
|
|
5449
|
+
size_?: any;
|
|
5450
|
+
item?: any;
|
|
5451
|
+
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
5452
|
+
Option<PalletStateTrieMigrationMigrationLimits>
|
|
5453
|
+
]>;
|
|
5454
|
+
/**
|
|
5455
|
+
* Forcefully set the progress the running migration.
|
|
5456
|
+
*
|
|
5457
|
+
* This is only useful in one case: the next key to migrate is too big to be migrated with
|
|
5458
|
+
* a signed account, in a parachain context, and we simply want to skip it. A reasonable
|
|
5459
|
+
* example of this would be `:code:`, which is both very expensive to migrate, and commonly
|
|
5460
|
+
* used, so probably it is already migrated.
|
|
5461
|
+
*
|
|
5462
|
+
* In case you mess things up, you can also, in principle, use this to reset the migration
|
|
5463
|
+
* process.
|
|
5464
|
+
**/
|
|
5465
|
+
forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | {
|
|
5466
|
+
ToStart: any;
|
|
5467
|
+
} | {
|
|
5468
|
+
LastKey: any;
|
|
5469
|
+
} | {
|
|
5470
|
+
Complete: any;
|
|
5471
|
+
} | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | {
|
|
5472
|
+
ToStart: any;
|
|
5473
|
+
} | {
|
|
5474
|
+
LastKey: any;
|
|
5475
|
+
} | {
|
|
5476
|
+
Complete: any;
|
|
5477
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5478
|
+
PalletStateTrieMigrationProgress,
|
|
5479
|
+
PalletStateTrieMigrationProgress
|
|
5480
|
+
]>;
|
|
5481
|
+
/**
|
|
5482
|
+
* Migrate the list of child keys by iterating each of them one by one.
|
|
5483
|
+
*
|
|
5484
|
+
* All of the given child keys must be present under one `child_root`.
|
|
5485
|
+
*
|
|
5486
|
+
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
|
|
5487
|
+
* should only be used in case any keys are leftover due to a bug.
|
|
5488
|
+
**/
|
|
5489
|
+
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5490
|
+
Bytes,
|
|
5491
|
+
Vec<Bytes>,
|
|
5492
|
+
u32
|
|
5493
|
+
]>;
|
|
5494
|
+
/**
|
|
5495
|
+
* Migrate the list of top keys by iterating each of them one by one.
|
|
5496
|
+
*
|
|
5497
|
+
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
|
|
5498
|
+
* should only be used in case any keys are leftover due to a bug.
|
|
5499
|
+
**/
|
|
5500
|
+
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5501
|
+
Vec<Bytes>,
|
|
5502
|
+
u32
|
|
5503
|
+
]>;
|
|
5504
|
+
/**
|
|
5505
|
+
* Set the maximum limit of the signed migration.
|
|
5506
|
+
**/
|
|
5507
|
+
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | {
|
|
5508
|
+
size_?: any;
|
|
5509
|
+
item?: any;
|
|
5510
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
5511
|
+
PalletStateTrieMigrationMigrationLimits
|
|
5512
|
+
]>;
|
|
5513
|
+
};
|
|
5547
5514
|
statistics: {
|
|
5548
5515
|
/**
|
|
5549
5516
|
* Allow a trusted issuer to init/resync ticker/company stats.
|