@polymeshassociation/polymesh-types 7.0.0 → 7.1.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.
@@ -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 { 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';
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, PolymeshRuntimeTestnetRuntimeOriginCaller, PolymeshRuntimeTestnetRuntimeSessionKeys, 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>;
@@ -1837,6 +1837,8 @@ declare module '@polkadot/api-base/types/submittable' {
1837
1837
  ]>;
1838
1838
  /**
1839
1839
  * Deprecated version if [`Self::call`] for use in an in-storage `Call`.
1840
+ *
1841
+ * @deprecated 1D weight is used in this extrinsic, please migrate to `call`
1840
1842
  **/
1841
1843
  callOldWeight: AugmentedSubmittable<(dest: MultiAddress | {
1842
1844
  Id: any;
@@ -1875,6 +1877,8 @@ declare module '@polkadot/api-base/types/submittable' {
1875
1877
  ]>;
1876
1878
  /**
1877
1879
  * Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`.
1880
+ *
1881
+ * @deprecated 1D weight is used in this extrinsic, please migrate to `instantiate`
1878
1882
  **/
1879
1883
  instantiateOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1880
1884
  Compact<u128>,
@@ -1924,6 +1928,8 @@ declare module '@polkadot/api-base/types/submittable' {
1924
1928
  ]>;
1925
1929
  /**
1926
1930
  * Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`.
1931
+ *
1932
+ * @deprecated 1D weight is used in this extrinsic, please migrate to `instantiate_with_code`
1927
1933
  **/
1928
1934
  instantiateWithCodeOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1929
1935
  Compact<u128>,
@@ -2428,10 +2434,7 @@ declare module '@polkadot/api-base/types/submittable' {
2428
2434
  * This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
2429
2435
  * calling [`Call::set_emergency_election_result`].
2430
2436
  **/
2431
- governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | Uint8Array | u32 | AnyNumber, maybeMaxTargets: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
2432
- Option<u32>,
2433
- Option<u32>
2434
- ]>;
2437
+ governanceFallback: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2435
2438
  /**
2436
2439
  * Set a solution in the queue, to be handed out to the client of this pallet in the next
2437
2440
  * call to `ElectionProvider::elect`.
@@ -4621,13 +4624,13 @@ declare module '@polkadot/api-base/types/submittable' {
4621
4624
  * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
4622
4625
  * fixed.
4623
4626
  **/
4624
- setKeys: AugmentedSubmittable<(keys: PolymeshRuntimeDevelopRuntimeSessionKeys | {
4627
+ setKeys: AugmentedSubmittable<(keys: PolymeshRuntimeTestnetRuntimeSessionKeys | {
4625
4628
  grandpa?: any;
4626
4629
  babe?: any;
4627
4630
  imOnline?: any;
4628
4631
  authorityDiscovery?: any;
4629
4632
  } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4630
- PolymeshRuntimeDevelopRuntimeSessionKeys,
4633
+ PolymeshRuntimeTestnetRuntimeSessionKeys,
4631
4634
  Bytes
4632
4635
  ]>;
4633
4636
  };
@@ -5190,6 +5193,7 @@ declare module '@polkadot/api-base/types/submittable' {
5190
5193
  * Can be called by the `T::AdminOrigin`.
5191
5194
  *
5192
5195
  * Parameters: era and indices of the slashes for that era to kill.
5196
+ * They **must** be sorted in ascending order, *and* unique.
5193
5197
  **/
5194
5198
  cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
5195
5199
  u32,
@@ -5681,6 +5685,8 @@ declare module '@polkadot/api-base/types/submittable' {
5681
5685
  * period ends. If this leaves an amount actively bonded less than
5682
5686
  * [`asset::existential_deposit`], then it is increased to the full amount.
5683
5687
  *
5688
+ * The stash may be chilled if the ledger total amount falls to 0 after unbonding.
5689
+ *
5684
5690
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
5685
5691
  *
5686
5692
  * Once the unlock period is done, you can call `withdraw_unbonded` to actually move
@@ -6077,81 +6083,6 @@ declare module '@polkadot/api-base/types/submittable' {
6077
6083
  u64
6078
6084
  ]>;
6079
6085
  };
6080
- sudo: {
6081
- /**
6082
- * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo
6083
- * key.
6084
- *
6085
- * The dispatch origin for this call must be _Signed_.
6086
- *
6087
- * ## Complexity
6088
- * - O(1).
6089
- **/
6090
- setKey: AugmentedSubmittable<(updated: MultiAddress | {
6091
- Id: any;
6092
- } | {
6093
- Index: any;
6094
- } | {
6095
- Raw: any;
6096
- } | {
6097
- Address32: any;
6098
- } | {
6099
- Address20: any;
6100
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6101
- MultiAddress
6102
- ]>;
6103
- /**
6104
- * Authenticates the sudo key and dispatches a function call with `Root` origin.
6105
- *
6106
- * The dispatch origin for this call must be _Signed_.
6107
- *
6108
- * ## Complexity
6109
- * - O(1).
6110
- **/
6111
- sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6112
- Call
6113
- ]>;
6114
- /**
6115
- * Authenticates the sudo key and dispatches a function call with `Signed` origin from
6116
- * a given account.
6117
- *
6118
- * The dispatch origin for this call must be _Signed_.
6119
- *
6120
- * ## Complexity
6121
- * - O(1).
6122
- **/
6123
- sudoAs: AugmentedSubmittable<(who: MultiAddress | {
6124
- Id: any;
6125
- } | {
6126
- Index: any;
6127
- } | {
6128
- Raw: any;
6129
- } | {
6130
- Address32: any;
6131
- } | {
6132
- Address20: any;
6133
- } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6134
- MultiAddress,
6135
- Call
6136
- ]>;
6137
- /**
6138
- * Authenticates the sudo key and dispatches a function call with `Root` origin.
6139
- * This function does not check the weight of the call, and instead allows the
6140
- * Sudo user to specify the weight of the call.
6141
- *
6142
- * The dispatch origin for this call must be _Signed_.
6143
- *
6144
- * ## Complexity
6145
- * - O(1).
6146
- **/
6147
- sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
6148
- refTime?: any;
6149
- proofSize?: any;
6150
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6151
- Call,
6152
- SpWeightsWeightV2Weight
6153
- ]>;
6154
- };
6155
6086
  system: {
6156
6087
  /**
6157
6088
  * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
@@ -6717,7 +6648,7 @@ declare module '@polkadot/api-base/types/submittable' {
6717
6648
  * ## Complexity
6718
6649
  * - O(1).
6719
6650
  **/
6720
- dispatchAs: AugmentedSubmittable<(asOrigin: PolymeshRuntimeDevelopRuntimeOriginCaller | {
6651
+ dispatchAs: AugmentedSubmittable<(asOrigin: PolymeshRuntimeTestnetRuntimeOriginCaller | {
6721
6652
  system: any;
6722
6653
  } | {
6723
6654
  PolymeshCommittee: any;
@@ -6726,7 +6657,7 @@ declare module '@polkadot/api-base/types/submittable' {
6726
6657
  } | {
6727
6658
  UpgradeCommittee: any;
6728
6659
  } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
6729
- PolymeshRuntimeDevelopRuntimeOriginCaller,
6660
+ PolymeshRuntimeTestnetRuntimeOriginCaller,
6730
6661
  Call
6731
6662
  ]>;
6732
6663
  /**
@@ -6768,6 +6699,8 @@ declare module '@polkadot/api-base/types/submittable' {
6768
6699
  Sr25519: any;
6769
6700
  } | {
6770
6701
  Ecdsa: any;
6702
+ } | {
6703
+ Eth: any;
6771
6704
  } | string | Uint8Array, call: PalletUtilityUniqueCall | {
6772
6705
  nonce?: any;
6773
6706
  call?: any;