@polymeshassociation/polymesh-types 6.1.0 → 6.3.0

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/generated/types.d.ts +44 -9
  3. package/generated/types.d.ts.map +1 -1
  4. package/generated/types.js +38 -1
  5. package/generated/types.js.map +1 -1
  6. package/package.json +1 -1
  7. package/polkadot/augment-api-consts.d.ts +128 -91
  8. package/polkadot/augment-api-consts.d.ts.map +1 -1
  9. package/polkadot/augment-api-errors.d.ts +191 -48
  10. package/polkadot/augment-api-errors.d.ts.map +1 -1
  11. package/polkadot/augment-api-events.d.ts +469 -128
  12. package/polkadot/augment-api-events.d.ts.map +1 -1
  13. package/polkadot/augment-api-query.d.ts +267 -70
  14. package/polkadot/augment-api-query.d.ts.map +1 -1
  15. package/polkadot/augment-api-runtime.d.ts +33 -5
  16. package/polkadot/augment-api-runtime.d.ts.map +1 -1
  17. package/polkadot/augment-api-tx.d.ts +477 -150
  18. package/polkadot/augment-api-tx.d.ts.map +1 -1
  19. package/polkadot/lookup.d.ts +971 -665
  20. package/polkadot/lookup.d.ts.map +1 -1
  21. package/polkadot/lookup.js +1068 -701
  22. package/polkadot/lookup.js.map +1 -1
  23. package/polkadot/polymesh/definitions.d.ts +56 -2
  24. package/polkadot/polymesh/definitions.d.ts.map +1 -1
  25. package/polkadot/polymesh/definitions.js +20 -0
  26. package/polkadot/polymesh/definitions.js.map +1 -1
  27. package/polkadot/registry.d.ts +33 -19
  28. package/polkadot/registry.d.ts.map +1 -1
  29. package/polkadot/schema.d.ts +56 -2
  30. package/polkadot/schema.d.ts.map +1 -1
  31. package/polkadot/schema.js +20 -0
  32. package/polkadot/schema.js.map +1 -1
  33. package/polkadot/types-lookup.d.ts +1010 -726
  34. package/polkadot/types-lookup.d.ts.map +1 -1
  35. package/runtime/settlementApi/v2.d.ts.map +1 -1
  36. package/runtime/settlementApi/v2.js +20 -0
  37. package/runtime/settlementApi/v2.js.map +1 -1
  38. package/types/8.0.x.json +658 -0
  39. package/types/index.d.ts.map +1 -1
  40. package/types/index.js +2 -0
  41. package/types/index.js.map +1 -1
@@ -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 { PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoFundingMethod, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
6
+ import type { PalletBalancesAdjustmentDirection, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStoFundingMethod, PalletStoPriceTier, PalletUtilityUniqueCall, PalletValidatorsSlashingSwitch, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesIdentityCreateChildIdentityWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
7
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
8
8
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
9
9
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -989,25 +989,51 @@ declare module '@polkadot/api-base/types/submittable' {
989
989
  };
990
990
  balances: {
991
991
  /**
992
- * Burns the given amount of tokens from the caller's free, unlocked balance.
992
+ * Burn the specified liquid free balance from the origin account.
993
+ *
994
+ * If the origin's account ends up below the existential deposit as a result
995
+ * of the burn and `keep_alive` is false, the account will be reaped.
996
+ *
997
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
998
+ * this `burn` operation will reduce total issuance by the amount _burned_.
993
999
  **/
994
- burnAccountBalance: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
995
- u128
1000
+ burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1001
+ Compact<u128>,
1002
+ bool
996
1003
  ]>;
997
1004
  /**
998
- * Move some POLYX from balance of self to balance of BRR.
1005
+ * Adjust the total issuance in a saturating way.
1006
+ *
1007
+ * Can only be called by root and always needs a positive `delta`.
1008
+ *
1009
+ * # Example
999
1010
  **/
1000
- depositBlockRewardReserveBalance: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1011
+ forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1012
+ PalletBalancesAdjustmentDirection,
1001
1013
  Compact<u128>
1002
1014
  ]>;
1003
1015
  /**
1004
- * Exactly as `transfer`, except the origin must be root and the source account may be
1005
- * specified.
1016
+ * Set the regular balance of a given account.
1006
1017
  *
1007
- * # <weight>
1008
- * - Same as transfer, but additional read and write because the source account is
1009
- * not assumed to be in the overlay.
1010
- * # </weight>
1018
+ * The dispatch origin for this call is `root`.
1019
+ **/
1020
+ forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
1021
+ Id: any;
1022
+ } | {
1023
+ Index: any;
1024
+ } | {
1025
+ Raw: any;
1026
+ } | {
1027
+ Address32: any;
1028
+ } | {
1029
+ Address20: any;
1030
+ } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1031
+ MultiAddress,
1032
+ Compact<u128>
1033
+ ]>;
1034
+ /**
1035
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
1036
+ * may be specified.
1011
1037
  **/
1012
1038
  forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
1013
1039
  Id: any;
@@ -1035,14 +1061,42 @@ declare module '@polkadot/api-base/types/submittable' {
1035
1061
  Compact<u128>
1036
1062
  ]>;
1037
1063
  /**
1038
- * Set the balances of a given account.
1064
+ * Unreserve some balance from a user by force.
1065
+ *
1066
+ * Can only be called by ROOT.
1067
+ **/
1068
+ forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
1069
+ Id: any;
1070
+ } | {
1071
+ Index: any;
1072
+ } | {
1073
+ Raw: any;
1074
+ } | {
1075
+ Address32: any;
1076
+ } | {
1077
+ Address20: any;
1078
+ } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1079
+ MultiAddress,
1080
+ u128
1081
+ ]>;
1082
+ /**
1083
+ * Transfer the entire transferable balance from the caller account.
1039
1084
  *
1040
- * This will alter `FreeBalance` and `ReservedBalance` in storage. it will
1041
- * also decrease the total issuance of the system (`TotalIssuance`).
1085
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
1086
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
1087
+ * transferred by this function. To ensure that this function results in a killed account,
1088
+ * you might need to prepare the account by removing any reference counters, storage
1089
+ * deposits, etc...
1042
1090
  *
1043
- * The dispatch origin for this call is `root`.
1091
+ * The dispatch origin of this call must be Signed.
1092
+ *
1093
+ * - `dest`: The recipient of the transfer.
1094
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
1095
+ * of the funds the account has, causing the sender account to be killed (false), or
1096
+ * transfer everything except at least the existential deposit, which will guarantee to
1097
+ * keep the sender account alive (true).
1044
1098
  **/
1045
- setBalance: AugmentedSubmittable<(who: MultiAddress | {
1099
+ transferAll: AugmentedSubmittable<(dest: MultiAddress | {
1046
1100
  Id: any;
1047
1101
  } | {
1048
1102
  Index: any;
@@ -1052,36 +1106,42 @@ declare module '@polkadot/api-base/types/submittable' {
1052
1106
  Address32: any;
1053
1107
  } | {
1054
1108
  Address20: any;
1055
- } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1109
+ } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1056
1110
  MultiAddress,
1057
- Compact<u128>,
1058
- Compact<u128>
1111
+ bool
1059
1112
  ]>;
1060
1113
  /**
1061
1114
  * Transfer some liquid free balance to another account.
1062
1115
  *
1063
- * `transfer` will set the `FreeBalance` of the sender and receiver.
1064
- * It will decrease the total issuance of the system by the `TransferFee`.
1116
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
1117
+ * If the sender's account is below the existential deposit as a result
1118
+ * of the transfer, the account will be reaped.
1065
1119
  *
1066
1120
  * The dispatch origin for this call must be `Signed` by the transactor.
1121
+ **/
1122
+ transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
1123
+ Id: any;
1124
+ } | {
1125
+ Index: any;
1126
+ } | {
1127
+ Raw: any;
1128
+ } | {
1129
+ Address32: any;
1130
+ } | {
1131
+ Address20: any;
1132
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1133
+ MultiAddress,
1134
+ Compact<u128>
1135
+ ]>;
1136
+ /**
1137
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
1138
+ * kill the origin account.
1067
1139
  *
1068
- * # <weight>
1069
- * - Dependent on arguments but not critical, given proper implementations for
1070
- * input config types. See related functions below.
1071
- * - It contains a limited number of reads and writes internally and no complex computation.
1072
- *
1073
- * Related functions:
1140
+ * 99% of the time you want [`transfer_allow_death`] instead.
1074
1141
  *
1075
- * - `ensure_can_withdraw` is always called internally but has a bounded complexity.
1076
- * - Transferring balances to accounts that did not exist before will cause
1077
- * `T::OnNewAccount::on_new_account` to be called.
1078
- * ---------------------------------
1079
- * - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
1080
- * - DB Weight: 1 Read and 1 Write to destination account.
1081
- * - Origin account is already in memory, so no DB operations for them.
1082
- * # </weight>
1142
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
1083
1143
  **/
1084
- transfer: AugmentedSubmittable<(dest: MultiAddress | {
1144
+ transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
1085
1145
  Id: any;
1086
1146
  } | {
1087
1147
  Index: any;
@@ -1096,14 +1156,28 @@ declare module '@polkadot/api-base/types/submittable' {
1096
1156
  Compact<u128>
1097
1157
  ]>;
1098
1158
  /**
1099
- * Transfer the native currency with the help of identifier string
1100
- * this functionality can help to differentiate the transfers.
1159
+ * Transfer some liquid free balance to another account.
1160
+ *
1161
+ * `transfer` will set the `FreeBalance` of the sender and receiver.
1162
+ * If the sender's account is below the existential deposit as a result
1163
+ * of the transfer, the account will be reaped.
1164
+ *
1165
+ * The dispatch origin for this call must be `Signed` by the transactor.
1166
+ *
1167
+ * ## Complexity
1168
+ * - Dependent on arguments but not critical, given proper implementations for input config
1169
+ * types. See related functions below.
1170
+ * - It contains a limited number of reads and writes internally and no complex
1171
+ * computation.
1172
+ *
1173
+ * Related functions:
1101
1174
  *
1102
- * # <weight>
1103
- * - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
1104
- * - DB Weight: 1 Read and 1 Write to destination account.
1105
- * - Origin account is already in memory, so no DB operations for them.
1106
- * # </weight>
1175
+ * - `ensure_can_withdraw` is always called internally but has a bounded complexity.
1176
+ * - Transferring balances to accounts that did not exist before will cause
1177
+ * `T::OnNewAccount::on_new_account` to be called.
1178
+ * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
1179
+ * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
1180
+ * that the transfer will not kill the origin account.
1107
1181
  **/
1108
1182
  transferWithMemo: AugmentedSubmittable<(dest: MultiAddress | {
1109
1183
  Id: any;
@@ -1120,6 +1194,19 @@ declare module '@polkadot/api-base/types/submittable' {
1120
1194
  Compact<u128>,
1121
1195
  Option<PolymeshPrimitivesMemo>
1122
1196
  ]>;
1197
+ /**
1198
+ * Upgrade a specified account.
1199
+ *
1200
+ * - `origin`: Must be `Signed`.
1201
+ * - `who`: The account to be upgraded.
1202
+ *
1203
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
1204
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
1205
+ * possibility of churn).
1206
+ **/
1207
+ upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
1208
+ Vec<AccountId32>
1209
+ ]>;
1123
1210
  };
1124
1211
  base: {};
1125
1212
  capitalDistribution: {
@@ -1817,8 +1904,7 @@ declare module '@polkadot/api-base/types/submittable' {
1817
1904
  *
1818
1905
  * Instantiation is executed as follows:
1819
1906
  *
1820
- * - The supplied `code` is instrumented, deployed, and a `code_hash` is created for that
1821
- * code.
1907
+ * - The supplied `code` is deployed, and a `code_hash` is created for that code.
1822
1908
  * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
1823
1909
  * - The destination address is computed based on the sender, code_hash and the salt.
1824
1910
  * - The smart-contract account is created at the computed address.
@@ -1847,6 +1933,18 @@ declare module '@polkadot/api-base/types/submittable' {
1847
1933
  Bytes,
1848
1934
  Bytes
1849
1935
  ]>;
1936
+ /**
1937
+ * When a migration is in progress, this dispatchable can be used to run migration steps.
1938
+ * Calls that contribute to advancing the migration have their fees waived, as it's helpful
1939
+ * for the chain. Note that while the migration is in progress, the pallet will also
1940
+ * leverage the `on_idle` hooks to run migration steps.
1941
+ **/
1942
+ migrate: AugmentedSubmittable<(weightLimit: SpWeightsWeightV2Weight | {
1943
+ refTime?: any;
1944
+ proofSize?: any;
1945
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1946
+ SpWeightsWeightV2Weight
1947
+ ]>;
1850
1948
  /**
1851
1949
  * Remove the code stored under `code_hash` and refund the deposit to its owner.
1852
1950
  *
@@ -1887,15 +1985,15 @@ declare module '@polkadot/api-base/types/submittable' {
1887
1985
  *
1888
1986
  * If the code does not already exist a deposit is reserved from the caller
1889
1987
  * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
1890
- * depends on the instrumented size of the the supplied `code`.
1988
+ * depends on the size of the supplied `code`.
1891
1989
  *
1892
1990
  * If the code already exists in storage it will still return `Ok` and upgrades
1893
1991
  * the in storage version to the current
1894
1992
  * [`InstructionWeights::version`](InstructionWeights).
1895
1993
  *
1896
- * - `determinism`: If this is set to any other value but [`Determinism::Deterministic`]
1897
- * then the only way to use this code is to delegate call into it from an offchain
1898
- * execution. Set to [`Determinism::Deterministic`] if in doubt.
1994
+ * - `determinism`: If this is set to any other value but [`Determinism::Enforced`] then
1995
+ * the only way to use this code is to delegate call into it from an offchain execution.
1996
+ * Set to [`Determinism::Enforced`] if in doubt.
1899
1997
  *
1900
1998
  * # Note
1901
1999
  *
@@ -1903,8 +2001,12 @@ declare module '@polkadot/api-base/types/submittable' {
1903
2001
  * To avoid this situation a constructor could employ access control so that it can
1904
2002
  * only be instantiated by permissioned entities. The same is true when uploading
1905
2003
  * through [`Self::instantiate_with_code`].
2004
+ *
2005
+ * Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded
2006
+ * code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and
2007
+ * result in higher gas costs.
1906
2008
  **/
1907
- uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Deterministic' | 'AllowIndeterminism' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2009
+ uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1908
2010
  Bytes,
1909
2011
  Option<Compact<u128>>,
1910
2012
  PalletContractsWasmDeterminism
@@ -3040,14 +3142,11 @@ declare module '@polkadot/api-base/types/submittable' {
3040
3142
  imOnline: {
3041
3143
  /**
3042
3144
  * ## Complexity:
3043
- * - `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is length of
3044
- * `heartbeat.network_state.external_address`
3145
+ * - `O(K)` where K is length of `Keys` (heartbeat.validators_len)
3045
3146
  * - `O(K)`: decoding of length `K`
3046
- * - `O(E)`: decoding/encoding of length `E`
3047
3147
  **/
3048
3148
  heartbeat: AugmentedSubmittable<(heartbeat: PalletImOnlineHeartbeat | {
3049
3149
  blockNumber?: any;
3050
- networkState?: any;
3051
3150
  sessionIndex?: any;
3052
3151
  authorityIndex?: any;
3053
3152
  validatorsLen?: any;
@@ -3138,6 +3237,21 @@ declare module '@polkadot/api-base/types/submittable' {
3138
3237
  freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3139
3238
  u32
3140
3239
  ]>;
3240
+ /**
3241
+ * Poke the deposit reserved for an index.
3242
+ *
3243
+ * The dispatch origin for this call must be _Signed_ and the signing account must have a
3244
+ * non-frozen account `index`.
3245
+ *
3246
+ * The transaction fees is waived if the deposit is changed after poking/reconsideration.
3247
+ *
3248
+ * - `index`: the index whose deposit is to be poked/reconsidered.
3249
+ *
3250
+ * Emits `DepositPoked` if successful.
3251
+ **/
3252
+ pokeDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3253
+ u32
3254
+ ]>;
3141
3255
  /**
3142
3256
  * Assign an index already owned by the sender to another account. The balance reservation
3143
3257
  * is effectively transferred to the new account.
@@ -4208,6 +4322,14 @@ declare module '@polkadot/api-base/types/submittable' {
4208
4322
  ]>;
4209
4323
  };
4210
4324
  preimage: {
4325
+ /**
4326
+ * Ensure that the bulk of pre-images is upgraded.
4327
+ *
4328
+ * The caller pays no fee if at least 90% of pre-images were successfully updated.
4329
+ **/
4330
+ ensureUpdated: AugmentedSubmittable<(hashes: Vec<H256> | (H256 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
4331
+ Vec<H256>
4332
+ ]>;
4211
4333
  /**
4212
4334
  * Register a preimage on-chain.
4213
4335
  *
@@ -4383,6 +4505,18 @@ declare module '@polkadot/api-base/types/submittable' {
4383
4505
  cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4384
4506
  U8aFixed
4385
4507
  ]>;
4508
+ /**
4509
+ * Removes the retry configuration of a task.
4510
+ **/
4511
+ cancelRetry: AugmentedSubmittable<(task: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => SubmittableExtrinsic<ApiType>, [
4512
+ ITuple<[u32, u32]>
4513
+ ]>;
4514
+ /**
4515
+ * Cancel the retry configuration of a named task.
4516
+ **/
4517
+ cancelRetryNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4518
+ U8aFixed
4519
+ ]>;
4386
4520
  /**
4387
4521
  * Anonymously schedule a task.
4388
4522
  **/
@@ -4421,6 +4555,44 @@ declare module '@polkadot/api-base/types/submittable' {
4421
4555
  u8,
4422
4556
  Call
4423
4557
  ]>;
4558
+ /**
4559
+ * Set a retry configuration for a task so that, in case its scheduled run fails, it will
4560
+ * be retried after `period` blocks, for a total amount of `retries` retries or until it
4561
+ * succeeds.
4562
+ *
4563
+ * Tasks which need to be scheduled for a retry are still subject to weight metering and
4564
+ * agenda space, same as a regular task. If a periodic task fails, it will be scheduled
4565
+ * normally while the task is retrying.
4566
+ *
4567
+ * Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
4568
+ * clones of the original task. Their retry configuration will be derived from the
4569
+ * original task's configuration, but will have a lower value for `remaining` than the
4570
+ * original `total_retries`.
4571
+ **/
4572
+ setRetry: AugmentedSubmittable<(task: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], retries: u8 | AnyNumber | Uint8Array, period: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4573
+ ITuple<[u32, u32]>,
4574
+ u8,
4575
+ u32
4576
+ ]>;
4577
+ /**
4578
+ * Set a retry configuration for a named task so that, in case its scheduled run fails, it
4579
+ * will be retried after `period` blocks, for a total amount of `retries` retries or until
4580
+ * it succeeds.
4581
+ *
4582
+ * Tasks which need to be scheduled for a retry are still subject to weight metering and
4583
+ * agenda space, same as a regular task. If a periodic task fails, it will be scheduled
4584
+ * normally while the task is retrying.
4585
+ *
4586
+ * Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic
4587
+ * clones of the original task. Their retry configuration will be derived from the
4588
+ * original task's configuration, but will have a lower value for `remaining` than the
4589
+ * original `total_retries`.
4590
+ **/
4591
+ setRetryNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, retries: u8 | AnyNumber | Uint8Array, period: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4592
+ U8aFixed,
4593
+ u8,
4594
+ u32
4595
+ ]>;
4424
4596
  };
4425
4597
  session: {
4426
4598
  /**
@@ -4961,15 +5133,6 @@ declare module '@polkadot/api-base/types/submittable' {
4961
5133
  ]>;
4962
5134
  };
4963
5135
  staking: {
4964
- /**
4965
- * Adds a permissioned identity and sets its preferences.
4966
- *
4967
- * The dispatch origin must be Root.
4968
- **/
4969
- addPermissionedValidator: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, intendedCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
4970
- PolymeshPrimitivesIdentityId,
4971
- Option<u32>
4972
- ]>;
4973
5136
  /**
4974
5137
  * Take the origin account as a stash and lock up `value` of its balance. `controller` will
4975
5138
  * be the account that controls it.
@@ -4985,19 +5148,10 @@ declare module '@polkadot/api-base/types/submittable' {
4985
5148
  * - Three extra DB entries.
4986
5149
  *
4987
5150
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
4988
- * unless the `origin` falls below _existential deposit_ and gets removed as dust.
5151
+ * unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
5152
+ * as dust.
4989
5153
  **/
4990
- bond: AugmentedSubmittable<(controller: MultiAddress | {
4991
- Id: any;
4992
- } | {
4993
- Index: any;
4994
- } | {
4995
- Raw: any;
4996
- } | {
4997
- Address32: any;
4998
- } | {
4999
- Address20: any;
5000
- } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | {
5154
+ bond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | {
5001
5155
  Staked: any;
5002
5156
  } | {
5003
5157
  Stash: any;
@@ -5008,7 +5162,6 @@ declare module '@polkadot/api-base/types/submittable' {
5008
5162
  } | {
5009
5163
  None: any;
5010
5164
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5011
- MultiAddress,
5012
5165
  Compact<u128>,
5013
5166
  PalletStakingRewardDestination
5014
5167
  ]>;
@@ -5042,12 +5195,6 @@ declare module '@polkadot/api-base/types/submittable' {
5042
5195
  u32,
5043
5196
  Vec<u32>
5044
5197
  ]>;
5045
- /**
5046
- * Switch slashing status on the basis of given `slashing_switch`. Can only be called by root.
5047
- **/
5048
- changeSlashingAllowedFor: AugmentedSubmittable<(slashingSwitch: PalletStakingSlashingSwitch | 'Validator' | 'ValidatorAndNominator' | 'None' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5049
- PalletStakingSlashingSwitch
5050
- ]>;
5051
5198
  /**
5052
5199
  * Declare no desire to either validate or nominate.
5053
5200
  *
@@ -5061,13 +5208,6 @@ declare module '@polkadot/api-base/types/submittable' {
5061
5208
  * - Writes are limited to the `origin` account key.
5062
5209
  **/
5063
5210
  chill: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5064
- /**
5065
- * Governance council forcefully chills a validator. Effects will be felt at the beginning of the next era.
5066
- **/
5067
- chillFromGovernance: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, stashKeys: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
5068
- PolymeshPrimitivesIdentityId,
5069
- Vec<AccountId32>
5070
- ]>;
5071
5211
  /**
5072
5212
  * Declare a `controller` to stop participating as either a validator or nominator.
5073
5213
  *
@@ -5096,9 +5236,21 @@ declare module '@polkadot/api-base/types/submittable' {
5096
5236
  * This can be helpful if bond requirements are updated, and we need to remove old users
5097
5237
  * who do not satisfy these requirements.
5098
5238
  **/
5099
- chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5239
+ chillOther: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5100
5240
  AccountId32
5101
5241
  ]>;
5242
+ /**
5243
+ * Updates a batch of controller accounts to their corresponding stash account if they are
5244
+ * not the same. Ignores any controller accounts that do not exist, and does not operate if
5245
+ * the stash and controller are already the same.
5246
+ *
5247
+ * Effects will be felt instantly (as soon as this function is completed successfully).
5248
+ *
5249
+ * The dispatch origin must be `T::AdminOrigin`.
5250
+ **/
5251
+ deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
5252
+ Vec<AccountId32>
5253
+ ]>;
5102
5254
  /**
5103
5255
  * Force a validator to have at least the minimum commission. This will not affect a
5104
5256
  * validator who already has a commission greater than or equal to the minimum. Any account
@@ -5156,13 +5308,18 @@ declare module '@polkadot/api-base/types/submittable' {
5156
5308
  * Force a current staker to become completely unstaked, immediately.
5157
5309
  *
5158
5310
  * The dispatch origin must be Root.
5311
+ *
5312
+ * ## Parameters
5313
+ *
5314
+ * - `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more
5315
+ * details.
5159
5316
  **/
5160
5317
  forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5161
5318
  AccountId32,
5162
5319
  u32
5163
5320
  ]>;
5164
5321
  /**
5165
- * Increments the ideal number of validators upto maximum of
5322
+ * Increments the ideal number of validators up to maximum of
5166
5323
  * `ElectionProviderBase::MaxWinners`.
5167
5324
  *
5168
5325
  * The dispatch origin must be Root.
@@ -5199,6 +5356,46 @@ declare module '@polkadot/api-base/types/submittable' {
5199
5356
  } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
5200
5357
  Vec<MultiAddress>
5201
5358
  ]>;
5359
+ /**
5360
+ * This function allows governance to manually slash a validator and is a
5361
+ * **fallback mechanism**.
5362
+ *
5363
+ * The dispatch origin must be `T::AdminOrigin`.
5364
+ *
5365
+ * ## Parameters
5366
+ * - `validator_stash` - The stash account of the validator to slash.
5367
+ * - `era` - The era in which the validator was in the active set.
5368
+ * - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
5369
+ *
5370
+ * ## Behavior
5371
+ *
5372
+ * The slash will be applied using the standard slashing mechanics, respecting the
5373
+ * configured `SlashDeferDuration`.
5374
+ *
5375
+ * This means:
5376
+ * - If the validator was already slashed by a higher percentage for the same era, this
5377
+ * slash will have no additional effect.
5378
+ * - If the validator was previously slashed by a lower percentage, only the difference
5379
+ * will be applied.
5380
+ * - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
5381
+ **/
5382
+ manualSlash: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, slashFraction: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5383
+ AccountId32,
5384
+ u32,
5385
+ Perbill
5386
+ ]>;
5387
+ /**
5388
+ * Removes the legacy Staking locks if they exist.
5389
+ *
5390
+ * This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
5391
+ * hold on it if needed. If all stake cannot be held, the best effort is made to hold as
5392
+ * much as possible. The remaining stake is forced withdrawn from the ledger.
5393
+ *
5394
+ * The fee is waived if the migration is successful.
5395
+ **/
5396
+ migrateCurrency: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5397
+ AccountId32
5398
+ ]>;
5202
5399
  /**
5203
5400
  * Declare the desire to nominate `targets` for the origin controller.
5204
5401
  *
@@ -5225,24 +5422,46 @@ declare module '@polkadot/api-base/types/submittable' {
5225
5422
  Vec<MultiAddress>
5226
5423
  ]>;
5227
5424
  /**
5228
- * Pay out all the stakers behind a single validator for a single era.
5425
+ * Pay out next page of the stakers behind a validator for the given era.
5229
5426
  *
5230
- * - `validator_stash` is the stash account of the validator. Their nominators, up to
5231
- * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards.
5427
+ * - `validator_stash` is the stash account of the validator.
5232
5428
  * - `era` may be any era between `[current_era - history_depth; current_era]`.
5233
5429
  *
5234
5430
  * The origin of this call must be _Signed_. Any account can call this function, even if
5235
5431
  * it is not one of the stakers.
5236
5432
  *
5237
- * ## Complexity
5238
- * - At most O(MaxNominatorRewardedPerValidator).
5433
+ * The reward payout could be paged in case there are too many nominators backing the
5434
+ * `validator_stash`. This call will payout unpaid pages in an ascending order. To claim a
5435
+ * specific page, use `payout_stakers_by_page`.`
5436
+ *
5437
+ * If all pages are claimed, it returns an error `InvalidPage`.
5239
5438
  **/
5240
5439
  payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5241
5440
  AccountId32,
5242
5441
  u32
5243
5442
  ]>;
5244
- payoutStakersBySystem: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5443
+ /**
5444
+ * Pay out a page of the stakers behind a validator for the given era and page.
5445
+ *
5446
+ * - `validator_stash` is the stash account of the validator.
5447
+ * - `era` may be any era between `[current_era - history_depth; current_era]`.
5448
+ * - `page` is the page index of nominators to pay out with value between 0 and
5449
+ * `num_nominators / T::MaxExposurePageSize`.
5450
+ *
5451
+ * The origin of this call must be _Signed_. Any account can call this function, even if
5452
+ * it is not one of the stakers.
5453
+ *
5454
+ * If a validator has more than [`Config::MaxExposurePageSize`] nominators backing
5455
+ * them, then the list of nominators is paged, with each page being capped at
5456
+ * [`Config::MaxExposurePageSize`.] If a validator has more than one page of nominators,
5457
+ * the call needs to be made for each page separately in order for all the nominators
5458
+ * backing a validator to receive the reward. The nominators are not sorted across pages
5459
+ * and so it should not be assumed the highest staker would be on the topmost page and vice
5460
+ * versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost.
5461
+ **/
5462
+ payoutStakersByPage: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5245
5463
  AccountId32,
5464
+ u32,
5246
5465
  u32
5247
5466
  ]>;
5248
5467
  /**
@@ -5251,6 +5470,7 @@ declare module '@polkadot/api-base/types/submittable' {
5251
5470
  *
5252
5471
  * 1. the `total_balance` of the stash is below existential deposit.
5253
5472
  * 2. or, the `ledger.total` of the stash is below existential deposit.
5473
+ * 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
5254
5474
  *
5255
5475
  * The former can happen in cases like a slash; the latter when a fully unbonded account
5256
5476
  * is still receiving staking rewards in `RewardDestination::Staked`.
@@ -5258,6 +5478,11 @@ declare module '@polkadot/api-base/types/submittable' {
5258
5478
  * It can be called by anyone, as long as `stash` meets the above requirements.
5259
5479
  *
5260
5480
  * Refunds the transaction fees upon successful execution.
5481
+ *
5482
+ * ## Parameters
5483
+ *
5484
+ * - `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more
5485
+ * details.
5261
5486
  **/
5262
5487
  reapStash: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5263
5488
  AccountId32,
@@ -5276,19 +5501,29 @@ declare module '@polkadot/api-base/types/submittable' {
5276
5501
  Compact<u128>
5277
5502
  ]>;
5278
5503
  /**
5279
- * Remove an identity from the pool of (wannabe) validator identities. Effects are known in the next session.
5504
+ * Restores the state of a ledger which is in an inconsistent state.
5280
5505
  *
5281
- * The dispatch origin must be Root.
5506
+ * The requirements to restore a ledger are the following:
5507
+ * * The stash is bonded; or
5508
+ * * The stash is not bonded but it has a staking lock left behind; or
5509
+ * * If the stash has an associated ledger and its state is inconsistent; or
5510
+ * * If the ledger is not corrupted *but* its staking lock is out of sync.
5282
5511
  *
5283
- * # Arguments
5284
- * * origin Required origin for removing a potential validator.
5285
- * * identity Validator's IdentityId.
5512
+ * The `maybe_*` input parameters will overwrite the corresponding data and metadata of the
5513
+ * ledger associated with the stash. If the input parameters are not set, the ledger will
5514
+ * be reset values from on-chain state.
5286
5515
  **/
5287
- removePermissionedValidator: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5288
- PolymeshPrimitivesIdentityId
5516
+ restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PalletStakingUnlockChunk>> | null | Uint8Array | Vec<PalletStakingUnlockChunk> | (PalletStakingUnlockChunk | {
5517
+ value?: any;
5518
+ era?: any;
5519
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
5520
+ AccountId32,
5521
+ Option<AccountId32>,
5522
+ Option<u128>,
5523
+ Option<Vec<PalletStakingUnlockChunk>>
5289
5524
  ]>;
5290
5525
  /**
5291
- * Scale up the ideal number of validators by a factor upto maximum of
5526
+ * Scale up the ideal number of validators by a factor up to maximum of
5292
5527
  * `ElectionProviderBase::MaxWinners`.
5293
5528
  *
5294
5529
  * The dispatch origin must be Root.
@@ -5300,17 +5535,10 @@ declare module '@polkadot/api-base/types/submittable' {
5300
5535
  Percent
5301
5536
  ]>;
5302
5537
  /**
5303
- * Changes commission rate which applies to all validators. Only Governance
5304
- * committee is allowed to change this value.
5305
- *
5306
- * # Arguments
5307
- * * `new_cap` the new commission cap.
5308
- **/
5309
- setCommissionCap: AugmentedSubmittable<(newCap: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5310
- Perbill
5311
- ]>;
5312
- /**
5313
- * (Re-)set the controller of a stash.
5538
+ * (Re-)sets the controller of a stash to the stash itself. This function previously
5539
+ * accepted a `controller` argument to set the controller to an account other than the
5540
+ * stash itself. This functionality has now been removed, now only setting the controller
5541
+ * to the stash, if it is not already.
5314
5542
  *
5315
5543
  * Effects will be felt instantly (as soon as this function is completed successfully).
5316
5544
  *
@@ -5322,19 +5550,7 @@ declare module '@polkadot/api-base/types/submittable' {
5322
5550
  * - Contains a limited number of reads.
5323
5551
  * - Writes are limited to the `origin` account key.
5324
5552
  **/
5325
- setController: AugmentedSubmittable<(controller: MultiAddress | {
5326
- Id: any;
5327
- } | {
5328
- Index: any;
5329
- } | {
5330
- Raw: any;
5331
- } | {
5332
- Address32: any;
5333
- } | {
5334
- Address20: any;
5335
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5336
- MultiAddress
5337
- ]>;
5553
+ setController: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5338
5554
  /**
5339
5555
  * Set the validators who cannot be slashed (if any).
5340
5556
  *
@@ -5434,13 +5650,20 @@ declare module '@polkadot/api-base/types/submittable' {
5434
5650
  Set: any;
5435
5651
  } | {
5436
5652
  Remove: any;
5653
+ } | string | Uint8Array, maxStakedRewards: PalletStakingPalletConfigOpPercent | {
5654
+ Noop: any;
5655
+ } | {
5656
+ Set: any;
5657
+ } | {
5658
+ Remove: any;
5437
5659
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5438
5660
  PalletStakingPalletConfigOpU128,
5439
5661
  PalletStakingPalletConfigOpU128,
5440
5662
  PalletStakingPalletConfigOpU32,
5441
5663
  PalletStakingPalletConfigOpU32,
5442
5664
  PalletStakingPalletConfigOpPercent,
5443
- PalletStakingPalletConfigOpPerbill
5665
+ PalletStakingPalletConfigOpPerbill,
5666
+ PalletStakingPalletConfigOpPercent
5444
5667
  ]>;
5445
5668
  /**
5446
5669
  * Sets the ideal number of validators.
@@ -5456,7 +5679,7 @@ declare module '@polkadot/api-base/types/submittable' {
5456
5679
  /**
5457
5680
  * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
5458
5681
  * period ends. If this leaves an amount actively bonded less than
5459
- * T::Currency::minimum_balance(), then it is increased to the full amount.
5682
+ * [`asset::existential_deposit`], then it is increased to the full amount.
5460
5683
  *
5461
5684
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
5462
5685
  *
@@ -5478,11 +5701,15 @@ declare module '@polkadot/api-base/types/submittable' {
5478
5701
  Compact<u128>
5479
5702
  ]>;
5480
5703
  /**
5481
- * Sets the intended count to `new_intended_count` for the given `identity`.
5704
+ * Migrates an account's `RewardDestination::Controller` to
5705
+ * `RewardDestination::Account(controller)`.
5706
+ *
5707
+ * Effects will be felt instantly (as soon as this function is completed successfully).
5708
+ *
5709
+ * This will waive the transaction fee if the `payee` is successfully migrated.
5482
5710
  **/
5483
- updatePermissionedValidatorIntendedCount: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, newIntendedCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5484
- PolymeshPrimitivesIdentityId,
5485
- u32
5711
+ updatePayee: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5712
+ AccountId32
5486
5713
  ]>;
5487
5714
  /**
5488
5715
  * Declare the desire to validate for the origin controller.
@@ -5500,8 +5727,8 @@ declare module '@polkadot/api-base/types/submittable' {
5500
5727
  /**
5501
5728
  * Remove any unlocked chunks from the `unlocking` queue from our management.
5502
5729
  *
5503
- * This essentially frees up that balance to be used by the stash account to do
5504
- * whatever it wants.
5730
+ * This essentially frees up that balance to be used by the stash account to do whatever
5731
+ * it wants.
5505
5732
  *
5506
5733
  * The dispatch origin for this call must be _Signed_ by the controller.
5507
5734
  *
@@ -5509,6 +5736,15 @@ declare module '@polkadot/api-base/types/submittable' {
5509
5736
  *
5510
5737
  * See also [`Call::unbond`].
5511
5738
  *
5739
+ * ## Parameters
5740
+ *
5741
+ * - `num_slashing_spans` indicates the number of metadata slashing spans to clear when
5742
+ * this call results in a complete removal of all the data related to the stash account.
5743
+ * In this case, the `num_slashing_spans` must be larger or equal to the number of
5744
+ * slashing spans associated with the stash account in the [`SlashingSpans`] storage type,
5745
+ * otherwise the call will fail. The call weight is directly proportional to
5746
+ * `num_slashing_spans`.
5747
+ *
5512
5748
  * ## Complexity
5513
5749
  * O(S) where S is the number of slashing spans to remove
5514
5750
  * NOTE: Weight annotation is the kill scenario, we refund otherwise.
@@ -5917,6 +6153,42 @@ declare module '@polkadot/api-base/types/submittable' {
5917
6153
  ]>;
5918
6154
  };
5919
6155
  system: {
6156
+ /**
6157
+ * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
6158
+ *
6159
+ * If the authorization required a version check, this call will ensure the spec name
6160
+ * remains unchanged and that the spec version has increased.
6161
+ *
6162
+ * Depending on the runtime's `OnSetCode` configuration, this function may directly apply
6163
+ * the new `code` in the same block or attempt to schedule the upgrade.
6164
+ *
6165
+ * All origins are allowed.
6166
+ **/
6167
+ applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6168
+ Bytes
6169
+ ]>;
6170
+ /**
6171
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
6172
+ * later.
6173
+ *
6174
+ * This call requires Root origin.
6175
+ **/
6176
+ authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6177
+ H256
6178
+ ]>;
6179
+ /**
6180
+ * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
6181
+ * later.
6182
+ *
6183
+ * WARNING: This authorizes an upgrade that will take place without any safety checks, for
6184
+ * example that the spec name remains the same and that the version number increases. Not
6185
+ * recommended for normal use. Use `authorize_upgrade` instead.
6186
+ *
6187
+ * This call requires Root origin.
6188
+ **/
6189
+ authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6190
+ H256
6191
+ ]>;
5920
6192
  /**
5921
6193
  * Kill all storage items with a key that starts with the given prefix.
5922
6194
  *
@@ -5936,8 +6208,7 @@ declare module '@polkadot/api-base/types/submittable' {
5936
6208
  /**
5937
6209
  * Make some on-chain remark.
5938
6210
  *
5939
- * ## Complexity
5940
- * - `O(1)`
6211
+ * Can be executed by every `origin`.
5941
6212
  **/
5942
6213
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5943
6214
  Bytes
@@ -5950,9 +6221,6 @@ declare module '@polkadot/api-base/types/submittable' {
5950
6221
  ]>;
5951
6222
  /**
5952
6223
  * Set the new runtime code.
5953
- *
5954
- * ## Complexity
5955
- * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
5956
6224
  **/
5957
6225
  setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5958
6226
  Bytes
@@ -5960,8 +6228,8 @@ declare module '@polkadot/api-base/types/submittable' {
5960
6228
  /**
5961
6229
  * Set the new runtime code without doing any checks of the given `code`.
5962
6230
  *
5963
- * ## Complexity
5964
- * - `O(C)` where `C` length of `code`
6231
+ * Note that runtime upgrades will not run if this is called with a not-increasing spec
6232
+ * version!
5965
6233
  **/
5966
6234
  setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5967
6235
  Bytes
@@ -6163,13 +6431,17 @@ declare module '@polkadot/api-base/types/submittable' {
6163
6431
  * phase, if this call hasn't been invoked by that time.
6164
6432
  *
6165
6433
  * The timestamp should be greater than the previous one by the amount specified by
6166
- * `MinimumPeriod`.
6434
+ * [`Config::MinimumPeriod`].
6435
+ *
6436
+ * The dispatch origin for this call must be _None_.
6167
6437
  *
6168
- * The dispatch origin for this call must be `Inherent`.
6438
+ * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
6439
+ * that changing the complexity of this call could result exhausting the resources in a
6440
+ * block to execute any other calls.
6169
6441
  *
6170
6442
  * ## Complexity
6171
6443
  * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
6172
- * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in
6444
+ * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
6173
6445
  * `on_finalize`)
6174
6446
  * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
6175
6447
  **/
@@ -6447,8 +6719,6 @@ declare module '@polkadot/api-base/types/submittable' {
6447
6719
  **/
6448
6720
  dispatchAs: AugmentedSubmittable<(asOrigin: PolymeshRuntimeDevelopRuntimeOriginCaller | {
6449
6721
  system: any;
6450
- } | {
6451
- Void: any;
6452
6722
  } | {
6453
6723
  PolymeshCommittee: any;
6454
6724
  } | {
@@ -6522,6 +6792,63 @@ declare module '@polkadot/api-base/types/submittable' {
6522
6792
  SpWeightsWeightV2Weight
6523
6793
  ]>;
6524
6794
  };
6795
+ validators: {
6796
+ /**
6797
+ * Adds a permissioned identity and sets its preferences.
6798
+ *
6799
+ * The dispatch origin must be Root.
6800
+ **/
6801
+ addPermissionedValidator: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, intendedCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
6802
+ PolymeshPrimitivesIdentityId,
6803
+ Option<u32>
6804
+ ]>;
6805
+ /**
6806
+ * Switch slashing status on the basis of given `slashing_switch`. Can only be called by root.
6807
+ **/
6808
+ changeSlashingAllowedFor: AugmentedSubmittable<(slashingSwitch: PalletValidatorsSlashingSwitch | 'Validator' | 'ValidatorAndNominator' | 'None' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6809
+ PalletValidatorsSlashingSwitch
6810
+ ]>;
6811
+ /**
6812
+ * Governance council forcefully chills a validator. Effects will be felt at the beginning of the next era.
6813
+ **/
6814
+ chillFromGovernance: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, stashKeys: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
6815
+ PolymeshPrimitivesIdentityId,
6816
+ Vec<AccountId32>
6817
+ ]>;
6818
+ payoutStakersBySystem: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6819
+ AccountId32,
6820
+ u32
6821
+ ]>;
6822
+ /**
6823
+ * Remove an identity from the pool of (wannabe) validator identities. Effects are known in the next session.
6824
+ *
6825
+ * The dispatch origin must be Root.
6826
+ *
6827
+ * # Arguments
6828
+ * * origin Required origin for removing a potential validator.
6829
+ * * identity Validator's IdentityId.
6830
+ **/
6831
+ removePermissionedValidator: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6832
+ PolymeshPrimitivesIdentityId
6833
+ ]>;
6834
+ /**
6835
+ * Changes commission rate which applies to all validators. Only Governance
6836
+ * committee is allowed to change this value.
6837
+ *
6838
+ * # Arguments
6839
+ * * `new_cap` the new commission cap.
6840
+ **/
6841
+ setCommissionCap: AugmentedSubmittable<(newCap: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6842
+ Perbill
6843
+ ]>;
6844
+ /**
6845
+ * Sets the intended count to `new_intended_count` for the given `identity`.
6846
+ **/
6847
+ updatePermissionedValidatorIntendedCount: AugmentedSubmittable<(identity: PolymeshPrimitivesIdentityId | string | Uint8Array, newIntendedCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6848
+ PolymeshPrimitivesIdentityId,
6849
+ u32
6850
+ ]>;
6851
+ };
6525
6852
  }
6526
6853
  }
6527
6854
  //# sourceMappingURL=augment-api-tx.d.ts.map