@polymeshassociation/polymesh-sdk 20.0.0 → 20.1.0-alpha.2

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 (139) hide show
  1. package/CHANGELOG.md +2 -19
  2. package/README.md +1 -1
  3. package/api/client/AccountManagement.d.ts +1 -1
  4. package/api/client/AccountManagement.d.ts.map +1 -1
  5. package/api/client/AccountManagement.js +1 -1
  6. package/api/client/AccountManagement.js.map +1 -1
  7. package/api/client/Claims.js +4 -4
  8. package/api/client/Claims.js.map +1 -1
  9. package/api/entities/{MultiSig → Account/MultiSig}/index.d.ts +4 -4
  10. package/api/entities/Account/MultiSig/index.d.ts.map +1 -0
  11. package/api/entities/{MultiSig → Account/MultiSig}/index.js +5 -5
  12. package/api/entities/Account/MultiSig/index.js.map +1 -0
  13. package/api/entities/{MultiSig → Account/MultiSig}/types.d.ts +1 -1
  14. package/api/entities/Account/MultiSig/types.d.ts.map +1 -0
  15. package/api/entities/Account/MultiSig/types.js.map +1 -0
  16. package/api/entities/Account/helpers.d.ts +18 -0
  17. package/api/entities/Account/helpers.d.ts.map +1 -0
  18. package/api/entities/Account/helpers.js +136 -0
  19. package/api/entities/Account/helpers.js.map +1 -0
  20. package/api/entities/{Account.d.ts → Account/index.d.ts} +14 -6
  21. package/api/entities/Account/index.d.ts.map +1 -0
  22. package/api/entities/{Account.js → Account/index.js} +61 -157
  23. package/api/entities/Account/index.js.map +1 -0
  24. package/api/entities/Account/types.d.ts +58 -0
  25. package/api/entities/Account/types.d.ts.map +1 -0
  26. package/api/entities/Account/types.js +44 -0
  27. package/api/entities/Account/types.js.map +1 -0
  28. package/api/entities/DividendDistribution/index.js +2 -2
  29. package/api/entities/DividendDistribution/index.js.map +1 -1
  30. package/api/entities/Identity/AssetPermissions.js +2 -2
  31. package/api/entities/Identity/AssetPermissions.js.map +1 -1
  32. package/api/entities/Identity/index.js +2 -2
  33. package/api/entities/Identity/index.js.map +1 -1
  34. package/api/entities/Instruction/index.d.ts +2 -1
  35. package/api/entities/Instruction/index.d.ts.map +1 -1
  36. package/api/entities/Instruction/index.js.map +1 -1
  37. package/api/entities/Offering/index.js +2 -2
  38. package/api/entities/Offering/index.js.map +1 -1
  39. package/api/entities/Portfolio/index.js +1 -1
  40. package/api/entities/Portfolio/index.js.map +1 -1
  41. package/api/entities/Venue/index.js +1 -1
  42. package/api/entities/Venue/index.js.map +1 -1
  43. package/api/entities/types.d.ts +1 -1
  44. package/api/entities/types.d.ts.map +1 -1
  45. package/api/entities/types.js +1 -1
  46. package/api/entities/types.js.map +1 -1
  47. package/api/procedures/utils.js +2 -2
  48. package/api/procedures/utils.js.map +1 -1
  49. package/base/Context.js +2 -2
  50. package/base/Context.js.map +1 -1
  51. package/generated/types.d.ts +9 -3
  52. package/generated/types.d.ts.map +1 -1
  53. package/generated/types.js +6 -0
  54. package/generated/types.js.map +1 -1
  55. package/internal.d.ts +1 -1
  56. package/internal.d.ts.map +1 -1
  57. package/internal.js +1 -1
  58. package/internal.js.map +1 -1
  59. package/middleware/queriesV2.d.ts +1 -0
  60. package/middleware/queriesV2.d.ts.map +1 -1
  61. package/middleware/queriesV2.js +30 -30
  62. package/middleware/queriesV2.js.map +1 -1
  63. package/middleware/typesV2.d.ts +1215 -13
  64. package/middleware/typesV2.d.ts.map +1 -1
  65. package/middleware/typesV2.js +53 -13
  66. package/middleware/typesV2.js.map +1 -1
  67. package/npm-package/polymeshassociation-polymesh-sdk-20.1.0-alpha.2.tgz +0 -0
  68. package/package.json +70 -57
  69. package/polkadot/augment-api-consts.d.ts +31 -10
  70. package/polkadot/augment-api-consts.d.ts.map +1 -1
  71. package/polkadot/augment-api-errors.d.ts +46 -17
  72. package/polkadot/augment-api-errors.d.ts.map +1 -1
  73. package/polkadot/augment-api-events.d.ts +77 -12
  74. package/polkadot/augment-api-events.d.ts.map +1 -1
  75. package/polkadot/augment-api-query.d.ts +16 -14
  76. package/polkadot/augment-api-query.d.ts.map +1 -1
  77. package/polkadot/augment-api-rpc.d.ts +32 -10
  78. package/polkadot/augment-api-rpc.d.ts.map +1 -1
  79. package/polkadot/augment-api-runtime.d.ts +239 -0
  80. package/polkadot/augment-api-runtime.d.ts.map +1 -0
  81. package/polkadot/augment-api-runtime.js +8 -0
  82. package/polkadot/augment-api-runtime.js.map +1 -0
  83. package/polkadot/augment-api-tx.d.ts +172 -58
  84. package/polkadot/augment-api-tx.d.ts.map +1 -1
  85. package/polkadot/augment-types.d.ts +89 -15
  86. package/polkadot/augment-types.d.ts.map +1 -1
  87. package/polkadot/definitions.d.ts +1 -0
  88. package/polkadot/definitions.d.ts.map +1 -1
  89. package/polkadot/definitions.js +3 -1
  90. package/polkadot/definitions.js.map +1 -1
  91. package/polkadot/lookup.d.ts +543 -413
  92. package/polkadot/lookup.d.ts.map +1 -1
  93. package/polkadot/lookup.js +600 -455
  94. package/polkadot/lookup.js.map +1 -1
  95. package/polkadot/nft/definitions.d.ts +16 -0
  96. package/polkadot/nft/definitions.d.ts.map +1 -0
  97. package/polkadot/nft/definitions.js +35 -0
  98. package/polkadot/nft/definitions.js.map +1 -0
  99. package/polkadot/nft/index.d.ts +2 -0
  100. package/polkadot/nft/index.d.ts.map +1 -0
  101. package/polkadot/nft/index.js +20 -0
  102. package/polkadot/nft/index.js.map +1 -0
  103. package/polkadot/nft/types.d.ts +2 -0
  104. package/polkadot/nft/types.d.ts.map +1 -0
  105. package/polkadot/nft/types.js +5 -0
  106. package/polkadot/nft/types.js.map +1 -0
  107. package/polkadot/registry.d.ts +19 -13
  108. package/polkadot/registry.d.ts.map +1 -1
  109. package/polkadot/schema.d.ts +11 -0
  110. package/polkadot/schema.d.ts.map +1 -1
  111. package/polkadot/schema.js +28 -0
  112. package/polkadot/schema.js.map +1 -1
  113. package/polkadot/types-lookup.d.ts +599 -470
  114. package/polkadot/types-lookup.d.ts.map +1 -1
  115. package/polkadot/types.d.ts +1 -0
  116. package/polkadot/types.d.ts.map +1 -1
  117. package/polkadot/types.js +1 -0
  118. package/polkadot/types.js.map +1 -1
  119. package/types/index.d.ts +3 -0
  120. package/types/index.d.ts.map +1 -1
  121. package/types/index.js.map +1 -1
  122. package/utils/constants.d.ts +2 -2
  123. package/utils/constants.js +2 -2
  124. package/utils/conversion.d.ts +1 -5
  125. package/utils/conversion.d.ts.map +1 -1
  126. package/utils/conversion.js +4 -11
  127. package/utils/conversion.js.map +1 -1
  128. package/utils/internal.d.ts +6 -2
  129. package/utils/internal.d.ts.map +1 -1
  130. package/utils/internal.js +28 -1
  131. package/utils/internal.js.map +1 -1
  132. package/api/entities/Account.d.ts.map +0 -1
  133. package/api/entities/Account.js.map +0 -1
  134. package/api/entities/MultiSig/index.d.ts.map +0 -1
  135. package/api/entities/MultiSig/index.js.map +0 -1
  136. package/api/entities/MultiSig/types.d.ts.map +0 -1
  137. package/api/entities/MultiSig/types.js.map +0 -1
  138. package/npm-package/polymeshassociation-polymesh-sdk-20.0.0.tgz +0 -0
  139. /package/api/entities/{MultiSig → Account/MultiSig}/types.js +0 -0
@@ -2,7 +2,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
2
2
  import type { BTreeSet, Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
3
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
4
4
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
5
- import type { ConfidentialIdentityV2ClaimProofsScopeClaimProof, FrameSupportScheduleMaybeHashed, PalletAssetCheckpointScheduleSpec, PalletAssetClassicTickerImport, PalletAssetTickerRegistrationConfig, PalletBridgeBridgeTx, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletPortfolioMovePortfolioItem, PalletRewardsItnRewardStatus, PalletSettlementInstructionMemo, PalletSettlementLeg, PalletSettlementLegV2, PalletSettlementReceiptDetails, PalletSettlementSettlementType, PalletSettlementVenueType, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesBalancesMemo, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuthV1, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsChainExtensionExtrinsicId, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCddIdInvestorUid, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesEthereumEcdsaSignature, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpRuntimeHeader, SpRuntimeMultiSignature, SpSessionMembershipProof } from "./types-lookup.ts";
5
+ import type { ConfidentialIdentityV2ClaimProofsScopeClaimProof, PalletAssetCheckpointScheduleSpec, PalletAssetClassicTickerImport, PalletAssetTickerRegistrationConfig, PalletBridgeBridgeTx, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletPortfolioMovePortfolioItem, PalletRewardsItnRewardStatus, PalletSettlementInstructionMemo, PalletSettlementLeg, PalletSettlementLegV2, PalletSettlementReceiptDetails, PalletSettlementSettlementType, PalletSettlementVenueType, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesBalancesMemo, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuthV1, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshContractsChainExtensionExtrinsicId, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCddIdInvestorUid, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesEthereumEcdsaSignature, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpRuntimeHeader, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from "./types-lookup.ts";
6
6
  declare module '@polkadot/api-base/types/submittable' {
7
7
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
8
8
  asset: {
@@ -115,7 +115,7 @@ declare module '@polkadot/api-base/types/submittable' {
115
115
  * - `AssetAlreadyCreated` if asset was already created.
116
116
  * - `TickerTooLong` if `ticker`'s length is greater than `config.max_ticker_length` chain
117
117
  * parameter.
118
- * - `TickerNotAscii` if `ticker` is not yet registered, and contains non-ascii printable characters (from code 32 to 126) or any character after first occurrence of `\0`.
118
+ * - `TickerNotAlphanumeric` if `ticker` is not yet registered, and contains non-alphanumeric characters or any character after first occurrence of `\0`.
119
119
  *
120
120
  * ## Permissions
121
121
  * * Portfolio
@@ -1704,6 +1704,29 @@ declare module '@polkadot/api-base/types/submittable' {
1704
1704
  Address32: any;
1705
1705
  } | {
1706
1706
  Address20: any;
1707
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
1708
+ refTime?: any;
1709
+ proofSize?: any;
1710
+ } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1711
+ MultiAddress,
1712
+ Compact<u128>,
1713
+ SpWeightsWeightV2Weight,
1714
+ Option<Compact<u128>>,
1715
+ Bytes
1716
+ ]>;
1717
+ /**
1718
+ * Deprecated version if [`Self::call`] for use in an in-storage `Call`.
1719
+ **/
1720
+ callOldWeight: AugmentedSubmittable<(dest: MultiAddress | {
1721
+ Id: any;
1722
+ } | {
1723
+ Index: any;
1724
+ } | {
1725
+ Raw: any;
1726
+ } | {
1727
+ Address32: any;
1728
+ } | {
1729
+ Address20: any;
1707
1730
  } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1708
1731
  MultiAddress,
1709
1732
  Compact<u128>,
@@ -1718,7 +1741,21 @@ declare module '@polkadot/api-base/types/submittable' {
1718
1741
  * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
1719
1742
  * must be supplied.
1720
1743
  **/
1721
- instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1744
+ instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
1745
+ refTime?: any;
1746
+ proofSize?: any;
1747
+ } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1748
+ Compact<u128>,
1749
+ SpWeightsWeightV2Weight,
1750
+ Option<Compact<u128>>,
1751
+ H256,
1752
+ Bytes,
1753
+ Bytes
1754
+ ]>;
1755
+ /**
1756
+ * Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`.
1757
+ **/
1758
+ instantiateOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1722
1759
  Compact<u128>,
1723
1760
  Compact<u64>,
1724
1761
  Option<Compact<u128>>,
@@ -1754,7 +1791,21 @@ declare module '@polkadot/api-base/types/submittable' {
1754
1791
  * - The `value` is transferred to the new account.
1755
1792
  * - The `deploy` function is executed in the context of the newly-created account.
1756
1793
  **/
1757
- instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1794
+ instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
1795
+ refTime?: any;
1796
+ proofSize?: any;
1797
+ } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1798
+ Compact<u128>,
1799
+ SpWeightsWeightV2Weight,
1800
+ Option<Compact<u128>>,
1801
+ Bytes,
1802
+ Bytes,
1803
+ Bytes
1804
+ ]>;
1805
+ /**
1806
+ * Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`.
1807
+ **/
1808
+ instantiateWithCodeOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1758
1809
  Compact<u128>,
1759
1810
  Compact<u64>,
1760
1811
  Option<Compact<u128>>,
@@ -1771,6 +1822,32 @@ declare module '@polkadot/api-base/types/submittable' {
1771
1822
  removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1772
1823
  H256
1773
1824
  ]>;
1825
+ /**
1826
+ * Privileged function that changes the code of an existing contract.
1827
+ *
1828
+ * This takes care of updating refcounts and all other necessary operations. Returns
1829
+ * an error if either the `code_hash` or `dest` do not exist.
1830
+ *
1831
+ * # Note
1832
+ *
1833
+ * This does **not** change the address of the contract in question. This means
1834
+ * that the contract address is no longer derived from its code hash after calling
1835
+ * this dispatchable.
1836
+ **/
1837
+ setCode: AugmentedSubmittable<(dest: MultiAddress | {
1838
+ Id: any;
1839
+ } | {
1840
+ Index: any;
1841
+ } | {
1842
+ Raw: any;
1843
+ } | {
1844
+ Address32: any;
1845
+ } | {
1846
+ Address20: any;
1847
+ } | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1848
+ MultiAddress,
1849
+ H256
1850
+ ]>;
1774
1851
  /**
1775
1852
  * Upload new `code` without instantiating a contract from it.
1776
1853
  *
@@ -1782,6 +1859,10 @@ declare module '@polkadot/api-base/types/submittable' {
1782
1859
  * the in storage version to the current
1783
1860
  * [`InstructionWeights::version`](InstructionWeights).
1784
1861
  *
1862
+ * - `determinism`: If this is set to any other value but [`Determinism::Deterministic`]
1863
+ * then the only way to use this code is to delegate call into it from an offchain
1864
+ * execution. Set to [`Determinism::Deterministic`] if in doubt.
1865
+ *
1785
1866
  * # Note
1786
1867
  *
1787
1868
  * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
@@ -1789,9 +1870,10 @@ declare module '@polkadot/api-base/types/submittable' {
1789
1870
  * only be instantiated by permissioned entities. The same is true when uploading
1790
1871
  * through [`Self::instantiate_with_code`].
1791
1872
  **/
1792
- uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1873
+ uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, determinism: PalletContractsWasmDeterminism | 'Deterministic' | 'AllowIndeterminism' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1793
1874
  Bytes,
1794
- Option<Compact<u128>>
1875
+ Option<Compact<u128>>,
1876
+ PalletContractsWasmDeterminism
1795
1877
  ]>;
1796
1878
  };
1797
1879
  corporateAction: {
@@ -2353,12 +2435,17 @@ declare module '@polkadot/api-base/types/submittable' {
2353
2435
  };
2354
2436
  grandpa: {
2355
2437
  /**
2356
- * Note that the current authority set of the GRANDPA finality gadget has
2357
- * stalled. This will trigger a forced authority set change at the beginning
2358
- * of the next session, to be enacted `delay` blocks after that. The delay
2359
- * should be high enough to safely assume that the block signalling the
2360
- * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
2361
- * will start the new authority set using the given finalized block as base.
2438
+ * Note that the current authority set of the GRANDPA finality gadget has stalled.
2439
+ *
2440
+ * This will trigger a forced authority set change at the beginning of the next session, to
2441
+ * be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
2442
+ * that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
2443
+ * The block production rate (which may be slowed down because of finality lagging) should
2444
+ * be taken into account when choosing the `delay`. The GRANDPA voters based on the new
2445
+ * authority will start voting on top of `best_finalized_block_number` for new finalized
2446
+ * blocks. `best_finalized_block_number` should be the highest of the latest finalized
2447
+ * block of all validators of the new authority set.
2448
+ *
2362
2449
  * Only callable by root.
2363
2450
  **/
2364
2451
  noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
@@ -2953,8 +3040,18 @@ declare module '@polkadot/api-base/types/submittable' {
2953
3040
  * - Writes: Indices Accounts, System Account (original owner)
2954
3041
  * # </weight>
2955
3042
  **/
2956
- forceTransfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2957
- AccountId32,
3043
+ forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
3044
+ Id: any;
3045
+ } | {
3046
+ Index: any;
3047
+ } | {
3048
+ Raw: any;
3049
+ } | {
3050
+ Address32: any;
3051
+ } | {
3052
+ Address20: any;
3053
+ } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3054
+ MultiAddress,
2958
3055
  u32,
2959
3056
  bool
2960
3057
  ]>;
@@ -3026,8 +3123,18 @@ declare module '@polkadot/api-base/types/submittable' {
3026
3123
  * - Writes: Indices Accounts, System Account (recipient)
3027
3124
  * # </weight>
3028
3125
  **/
3029
- transfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3030
- AccountId32,
3126
+ transfer: AugmentedSubmittable<(updated: MultiAddress | {
3127
+ Id: any;
3128
+ } | {
3129
+ Index: any;
3130
+ } | {
3131
+ Raw: any;
3132
+ } | {
3133
+ Address32: any;
3134
+ } | {
3135
+ Address20: any;
3136
+ } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3137
+ MultiAddress,
3031
3138
  u32
3032
3139
  ]>;
3033
3140
  };
@@ -3198,11 +3305,14 @@ declare module '@polkadot/api-base/types/submittable' {
3198
3305
  /**
3199
3306
  * Root callable extrinsic, used as an internal call for executing scheduled multisig proposal.
3200
3307
  **/
3201
- executeScheduledProposal: AugmentedSubmittable<(multisig: AccountId32 | string | Uint8Array, proposalId: u64 | AnyNumber | Uint8Array, multisigDid: PolymeshPrimitivesIdentityId | string | Uint8Array, proposalWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3308
+ executeScheduledProposal: AugmentedSubmittable<(multisig: AccountId32 | string | Uint8Array, proposalId: u64 | AnyNumber | Uint8Array, multisigDid: PolymeshPrimitivesIdentityId | string | Uint8Array, proposalWeight: SpWeightsWeightV2Weight | {
3309
+ refTime?: any;
3310
+ proofSize?: any;
3311
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3202
3312
  AccountId32,
3203
3313
  u64,
3204
3314
  PolymeshPrimitivesIdentityId,
3205
- u64
3315
+ SpWeightsWeightV2Weight
3206
3316
  ]>;
3207
3317
  /**
3208
3318
  * Adds a multisig as the primary key of the current did if the current DID is the creator
@@ -3687,13 +3797,16 @@ declare module '@polkadot/api-base/types/submittable' {
3687
3797
  * - CDD/Permissions are checked, unlike in `pallet_contracts`.
3688
3798
  * - Errors that arise when adding a new secondary key can also occur here.
3689
3799
  **/
3690
- instantiateWithCodePerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
3800
+ instantiateWithCodePerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
3801
+ refTime?: any;
3802
+ proofSize?: any;
3803
+ } | string | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
3691
3804
  asset?: any;
3692
3805
  extrinsic?: any;
3693
3806
  portfolio?: any;
3694
3807
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3695
3808
  u128,
3696
- u64,
3809
+ SpWeightsWeightV2Weight,
3697
3810
  Option<u128>,
3698
3811
  Bytes,
3699
3812
  Bytes,
@@ -3729,13 +3842,16 @@ declare module '@polkadot/api-base/types/submittable' {
3729
3842
  * - CDD/Permissions are checked, unlike in `pallet_contracts`.
3730
3843
  * - Errors that arise when adding a new secondary key can also occur here.
3731
3844
  **/
3732
- instantiateWithHashPerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
3845
+ instantiateWithHashPerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
3846
+ refTime?: any;
3847
+ proofSize?: any;
3848
+ } | string | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
3733
3849
  asset?: any;
3734
3850
  extrinsic?: any;
3735
3851
  portfolio?: any;
3736
3852
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3737
3853
  u128,
3738
- u64,
3854
+ SpWeightsWeightV2Weight,
3739
3855
  Option<u128>,
3740
3856
  H256,
3741
3857
  Bytes,
@@ -3894,6 +4010,11 @@ declare module '@polkadot/api-base/types/submittable' {
3894
4010
  ]>;
3895
4011
  /**
3896
4012
  * Clear an unrequested preimage from the runtime storage.
4013
+ *
4014
+ * If `len` is provided, then it will be a much cheaper operation.
4015
+ *
4016
+ * - `hash`: The hash of the preimage to be removed from the store.
4017
+ * - `len`: The length of the preimage of `hash`.
3897
4018
  **/
3898
4019
  unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3899
4020
  H256
@@ -4077,21 +4198,17 @@ declare module '@polkadot/api-base/types/submittable' {
4077
4198
  /**
4078
4199
  * Cancel a named scheduled task.
4079
4200
  **/
4080
- cancelNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4081
- Bytes
4201
+ cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4202
+ U8aFixed
4082
4203
  ]>;
4083
4204
  /**
4084
4205
  * Anonymously schedule a task.
4085
4206
  **/
4086
- schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4087
- Value: any;
4088
- } | {
4089
- Hash: any;
4090
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4207
+ schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4091
4208
  u32,
4092
4209
  Option<ITuple<[u32, u32]>>,
4093
4210
  u8,
4094
- FrameSupportScheduleMaybeHashed
4211
+ Call
4095
4212
  ]>;
4096
4213
  /**
4097
4214
  * Anonymously schedule a task after a delay.
@@ -4100,29 +4217,21 @@ declare module '@polkadot/api-base/types/submittable' {
4100
4217
  * Same as [`schedule`].
4101
4218
  * # </weight>
4102
4219
  **/
4103
- scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4104
- Value: any;
4105
- } | {
4106
- Hash: any;
4107
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4220
+ scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4108
4221
  u32,
4109
4222
  Option<ITuple<[u32, u32]>>,
4110
4223
  u8,
4111
- FrameSupportScheduleMaybeHashed
4224
+ Call
4112
4225
  ]>;
4113
4226
  /**
4114
4227
  * Schedule a named task.
4115
4228
  **/
4116
- scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4117
- Value: any;
4118
- } | {
4119
- Hash: any;
4120
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4121
- Bytes,
4229
+ scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4230
+ U8aFixed,
4122
4231
  u32,
4123
4232
  Option<ITuple<[u32, u32]>>,
4124
4233
  u8,
4125
- FrameSupportScheduleMaybeHashed
4234
+ Call
4126
4235
  ]>;
4127
4236
  /**
4128
4237
  * Schedule a named task after a delay.
@@ -4131,16 +4240,12 @@ declare module '@polkadot/api-base/types/submittable' {
4131
4240
  * Same as [`schedule_named`](Self::schedule_named).
4132
4241
  * # </weight>
4133
4242
  **/
4134
- scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4135
- Value: any;
4136
- } | {
4137
- Hash: any;
4138
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4139
- Bytes,
4243
+ scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4244
+ U8aFixed,
4140
4245
  u32,
4141
4246
  Option<ITuple<[u32, u32]>>,
4142
4247
  u8,
4143
- FrameSupportScheduleMaybeHashed
4248
+ Call
4144
4249
  ]>;
4145
4250
  };
4146
4251
  session: {
@@ -4545,6 +4650,14 @@ declare module '@polkadot/api-base/types/submittable' {
4545
4650
  u64,
4546
4651
  u32
4547
4652
  ]>;
4653
+ /**
4654
+ * Root callable extrinsic, used as an internal call to execute a scheduled settlement instruction.
4655
+ **/
4656
+ executeScheduledInstructionV2: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, fungibleTransfers: u32 | AnyNumber | Uint8Array, nftsTransfers: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4657
+ u64,
4658
+ u32,
4659
+ u32
4660
+ ]>;
4548
4661
  /**
4549
4662
  * Placeholder for removed `claim_receipt`
4550
4663
  **/
@@ -5739,18 +5852,15 @@ declare module '@polkadot/api-base/types/submittable' {
5739
5852
  * - The weight of this call is defined by the caller.
5740
5853
  * # </weight>
5741
5854
  **/
5742
- sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5855
+ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
5856
+ refTime?: any;
5857
+ proofSize?: any;
5858
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5743
5859
  Call,
5744
- u64
5860
+ SpWeightsWeightV2Weight
5745
5861
  ]>;
5746
5862
  };
5747
5863
  system: {
5748
- /**
5749
- * A dispatch that will fill the block weight up to the given ratio.
5750
- **/
5751
- fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
5752
- Perbill
5753
- ]>;
5754
5864
  /**
5755
5865
  * Kill all storage items with a key that starts with the given prefix.
5756
5866
  *
@@ -5767,6 +5877,10 @@ declare module '@polkadot/api-base/types/submittable' {
5767
5877
  killStorage: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [
5768
5878
  Vec<Bytes>
5769
5879
  ]>;
5880
+ /**
5881
+ * Placeholder for removed `fill_block`.
5882
+ **/
5883
+ placeholderFillBlock: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5770
5884
  /**
5771
5885
  * Make some on-chain remark.
5772
5886
  *