@polymeshassociation/polymesh-sdk 21.0.0 → 22.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/CHANGELOG.md +39 -25
  2. package/README.md +1 -1
  3. package/api/client/Claims.d.ts +3 -17
  4. package/api/client/Claims.d.ts.map +1 -1
  5. package/api/client/Claims.js +0 -20
  6. package/api/client/Claims.js.map +1 -1
  7. package/api/client/Polymesh.d.ts +1 -1
  8. package/api/client/Polymesh.d.ts.map +1 -1
  9. package/api/client/Polymesh.js +9 -16
  10. package/api/client/Polymesh.js.map +1 -1
  11. package/api/entities/Account/index.d.ts +13 -1
  12. package/api/entities/Account/index.d.ts.map +1 -1
  13. package/api/entities/Account/index.js +14 -0
  14. package/api/entities/Account/index.js.map +1 -1
  15. package/api/entities/Account/types.d.ts +35 -1
  16. package/api/entities/Account/types.d.ts.map +1 -1
  17. package/api/entities/Account/types.js.map +1 -1
  18. package/api/entities/Asset/Checkpoints/Schedules.d.ts +3 -10
  19. package/api/entities/Asset/Checkpoints/Schedules.d.ts.map +1 -1
  20. package/api/entities/Asset/Checkpoints/Schedules.js +45 -30
  21. package/api/entities/Asset/Checkpoints/Schedules.js.map +1 -1
  22. package/api/entities/Asset/Documents.d.ts.map +1 -1
  23. package/api/entities/Asset/Documents.js +4 -2
  24. package/api/entities/Asset/Documents.js.map +1 -1
  25. package/api/entities/Asset/Offerings.js +1 -1
  26. package/api/entities/Asset/Offerings.js.map +1 -1
  27. package/api/entities/Asset/Settlements.d.ts.map +1 -1
  28. package/api/entities/Asset/Settlements.js +14 -2
  29. package/api/entities/Asset/Settlements.js.map +1 -1
  30. package/api/entities/Asset/index.d.ts +0 -4
  31. package/api/entities/Asset/index.d.ts.map +1 -1
  32. package/api/entities/Asset/index.js +18 -30
  33. package/api/entities/Asset/index.js.map +1 -1
  34. package/api/entities/Asset/types.d.ts +0 -4
  35. package/api/entities/Asset/types.d.ts.map +1 -1
  36. package/api/entities/Asset/types.js.map +1 -1
  37. package/api/entities/CheckpointSchedule/index.d.ts.map +1 -1
  38. package/api/entities/CheckpointSchedule/index.js +42 -17
  39. package/api/entities/CheckpointSchedule/index.js.map +1 -1
  40. package/api/entities/CorporateActionBase/index.d.ts.map +1 -1
  41. package/api/entities/CorporateActionBase/index.js +36 -11
  42. package/api/entities/CorporateActionBase/index.js.map +1 -1
  43. package/api/entities/Identity/index.d.ts +0 -11
  44. package/api/entities/Identity/index.d.ts.map +1 -1
  45. package/api/entities/Identity/index.js +76 -49
  46. package/api/entities/Identity/index.js.map +1 -1
  47. package/api/entities/Instruction/index.d.ts +7 -1
  48. package/api/entities/Instruction/index.d.ts.map +1 -1
  49. package/api/entities/Instruction/index.js +144 -46
  50. package/api/entities/Instruction/index.js.map +1 -1
  51. package/api/entities/Instruction/types.d.ts +2 -2
  52. package/api/entities/Instruction/types.d.ts.map +1 -1
  53. package/api/entities/Instruction/types.js +1 -1
  54. package/api/entities/Instruction/types.js.map +1 -1
  55. package/api/entities/NumberedPortfolio.d.ts.map +1 -1
  56. package/api/entities/NumberedPortfolio.js +9 -7
  57. package/api/entities/NumberedPortfolio.js.map +1 -1
  58. package/api/entities/Offering/index.d.ts.map +1 -1
  59. package/api/entities/Offering/index.js +9 -2
  60. package/api/entities/Offering/index.js.map +1 -1
  61. package/api/entities/TickerReservation/index.d.ts.map +1 -1
  62. package/api/entities/TickerReservation/index.js +48 -23
  63. package/api/entities/TickerReservation/index.js.map +1 -1
  64. package/api/entities/common/namespaces/Authorizations.d.ts +18 -1
  65. package/api/entities/common/namespaces/Authorizations.d.ts.map +1 -1
  66. package/api/entities/common/namespaces/Authorizations.js +52 -0
  67. package/api/entities/common/namespaces/Authorizations.js.map +1 -1
  68. package/api/procedures/addInstruction.d.ts.map +1 -1
  69. package/api/procedures/addInstruction.js +29 -10
  70. package/api/procedures/addInstruction.js.map +1 -1
  71. package/api/procedures/createAsset.d.ts +2 -1
  72. package/api/procedures/createAsset.d.ts.map +1 -1
  73. package/api/procedures/createAsset.js +61 -33
  74. package/api/procedures/createAsset.js.map +1 -1
  75. package/api/procedures/createCheckpointSchedule.d.ts +4 -0
  76. package/api/procedures/createCheckpointSchedule.d.ts.map +1 -1
  77. package/api/procedures/createCheckpointSchedule.js +61 -9
  78. package/api/procedures/createCheckpointSchedule.js.map +1 -1
  79. package/api/procedures/createTransactionBatch.d.ts.map +1 -1
  80. package/api/procedures/createTransactionBatch.js +2 -1
  81. package/api/procedures/createTransactionBatch.js.map +1 -1
  82. package/api/procedures/executeManualInstruction.d.ts.map +1 -1
  83. package/api/procedures/executeManualInstruction.js +27 -10
  84. package/api/procedures/executeManualInstruction.js.map +1 -1
  85. package/api/procedures/issueTokens.d.ts.map +1 -1
  86. package/api/procedures/issueTokens.js +13 -3
  87. package/api/procedures/issueTokens.js.map +1 -1
  88. package/api/procedures/linkCaDocs.d.ts.map +1 -1
  89. package/api/procedures/linkCaDocs.js +5 -3
  90. package/api/procedures/linkCaDocs.js.map +1 -1
  91. package/api/procedures/modifyClaims.d.ts.map +1 -1
  92. package/api/procedures/modifyClaims.js +21 -37
  93. package/api/procedures/modifyClaims.js.map +1 -1
  94. package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
  95. package/api/procedures/modifyInstructionAffirmation.js +12 -3
  96. package/api/procedures/modifyInstructionAffirmation.js.map +1 -1
  97. package/api/procedures/modifySignerPermissions.d.ts +1 -1
  98. package/api/procedures/modifySignerPermissions.d.ts.map +1 -1
  99. package/api/procedures/modifySignerPermissions.js +4 -2
  100. package/api/procedures/modifySignerPermissions.js.map +1 -1
  101. package/api/procedures/moveFunds.d.ts.map +1 -1
  102. package/api/procedures/moveFunds.js +1 -1
  103. package/api/procedures/moveFunds.js.map +1 -1
  104. package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -1
  105. package/api/procedures/removeCheckpointSchedule.js +11 -3
  106. package/api/procedures/removeCheckpointSchedule.js.map +1 -1
  107. package/api/procedures/rescheduleInstruction.d.ts.map +1 -1
  108. package/api/procedures/rescheduleInstruction.js +2 -1
  109. package/api/procedures/rescheduleInstruction.js.map +1 -1
  110. package/api/procedures/setAssetDocuments.d.ts.map +1 -1
  111. package/api/procedures/setAssetDocuments.js +4 -2
  112. package/api/procedures/setAssetDocuments.js.map +1 -1
  113. package/api/procedures/utils.d.ts.map +1 -1
  114. package/api/procedures/utils.js +19 -15
  115. package/api/procedures/utils.js.map +1 -1
  116. package/base/Context.d.ts +21 -5
  117. package/base/Context.d.ts.map +1 -1
  118. package/base/Context.js +43 -3
  119. package/base/Context.js.map +1 -1
  120. package/base/PolymeshTransactionBatch.d.ts.map +1 -1
  121. package/base/PolymeshTransactionBatch.js +6 -1
  122. package/base/PolymeshTransactionBatch.js.map +1 -1
  123. package/generated/types.d.ts +30 -6
  124. package/generated/types.d.ts.map +1 -1
  125. package/generated/types.js +24 -0
  126. package/generated/types.js.map +1 -1
  127. package/internal.d.ts +0 -1
  128. package/internal.d.ts.map +1 -1
  129. package/internal.js +3 -5
  130. package/internal.js.map +1 -1
  131. package/middleware/enumsV2.d.ts +1 -1
  132. package/middleware/enumsV2.d.ts.map +1 -1
  133. package/middleware/enumsV2.js +5 -1
  134. package/middleware/enumsV2.js.map +1 -1
  135. package/middleware/queries.d.ts +1 -1
  136. package/middleware/queries.d.ts.map +1 -1
  137. package/middleware/queriesV2.d.ts +19 -2
  138. package/middleware/queriesV2.d.ts.map +1 -1
  139. package/middleware/queriesV2.js +151 -2
  140. package/middleware/queriesV2.js.map +1 -1
  141. package/middleware/typesV2.d.ts +802 -1
  142. package/middleware/typesV2.d.ts.map +1 -1
  143. package/middleware/typesV2.js +159 -1
  144. package/middleware/typesV2.js.map +1 -1
  145. package/npm-package/polymeshassociation-polymesh-sdk-22.0.0-alpha.1.tgz +0 -0
  146. package/package.json +3 -4
  147. package/polkadot/asset/definitions.d.ts +0 -9
  148. package/polkadot/asset/definitions.d.ts.map +1 -1
  149. package/polkadot/asset/definitions.js +1 -47
  150. package/polkadot/asset/definitions.js.map +1 -1
  151. package/polkadot/augment-api-consts.d.ts +26 -9
  152. package/polkadot/augment-api-consts.d.ts.map +1 -1
  153. package/polkadot/augment-api-consts.js +3 -0
  154. package/polkadot/augment-api-consts.js.map +1 -1
  155. package/polkadot/augment-api-errors.d.ts +110 -133
  156. package/polkadot/augment-api-errors.d.ts.map +1 -1
  157. package/polkadot/augment-api-errors.js +3 -0
  158. package/polkadot/augment-api-errors.js.map +1 -1
  159. package/polkadot/augment-api-events.d.ts +135 -167
  160. package/polkadot/augment-api-events.d.ts.map +1 -1
  161. package/polkadot/augment-api-events.js +3 -0
  162. package/polkadot/augment-api-events.js.map +1 -1
  163. package/polkadot/augment-api-query.d.ts +123 -93
  164. package/polkadot/augment-api-query.d.ts.map +1 -1
  165. package/polkadot/augment-api-query.js +3 -0
  166. package/polkadot/augment-api-query.js.map +1 -1
  167. package/polkadot/augment-api-rpc.d.ts +29 -24
  168. package/polkadot/augment-api-rpc.d.ts.map +1 -1
  169. package/polkadot/augment-api-rpc.js +1 -0
  170. package/polkadot/augment-api-rpc.js.map +1 -1
  171. package/polkadot/augment-api-runtime.d.ts +0 -7
  172. package/polkadot/augment-api-runtime.d.ts.map +1 -1
  173. package/polkadot/augment-api-tx.d.ts +484 -737
  174. package/polkadot/augment-api-tx.d.ts.map +1 -1
  175. package/polkadot/augment-api-tx.js +3 -0
  176. package/polkadot/augment-api-tx.js.map +1 -1
  177. package/polkadot/augment-api.d.ts +1 -0
  178. package/polkadot/augment-api.d.ts.map +1 -1
  179. package/polkadot/augment-api.js +1 -0
  180. package/polkadot/augment-api.js.map +1 -1
  181. package/polkadot/augment-types.d.ts +8 -12
  182. package/polkadot/augment-types.d.ts.map +1 -1
  183. package/polkadot/augment-types.js +3 -0
  184. package/polkadot/augment-types.js.map +1 -1
  185. package/polkadot/definitions.d.ts +1 -1
  186. package/polkadot/definitions.d.ts.map +1 -1
  187. package/polkadot/definitions.js +17 -17
  188. package/polkadot/definitions.js.map +1 -1
  189. package/polkadot/identity/definitions.d.ts +9 -0
  190. package/polkadot/identity/definitions.d.ts.map +1 -1
  191. package/polkadot/identity/definitions.js +21 -0
  192. package/polkadot/identity/definitions.js.map +1 -1
  193. package/polkadot/lookup.d.ts +534 -682
  194. package/polkadot/lookup.d.ts.map +1 -1
  195. package/polkadot/lookup.js +664 -820
  196. package/polkadot/lookup.js.map +1 -1
  197. package/polkadot/polymesh/definitions.d.ts +36 -43
  198. package/polkadot/polymesh/definitions.d.ts.map +1 -1
  199. package/polkadot/polymesh/definitions.js +38 -45
  200. package/polkadot/polymesh/definitions.js.map +1 -1
  201. package/polkadot/polymesh/types.d.ts +50 -67
  202. package/polkadot/polymesh/types.d.ts.map +1 -1
  203. package/polkadot/registry.d.ts +27 -44
  204. package/polkadot/registry.d.ts.map +1 -1
  205. package/polkadot/registry.js +3 -0
  206. package/polkadot/registry.js.map +1 -1
  207. package/polkadot/schema.d.ts +223 -61
  208. package/polkadot/schema.d.ts.map +1 -1
  209. package/polkadot/schema.js +335 -120
  210. package/polkadot/schema.js.map +1 -1
  211. package/polkadot/settlement/definitions.d.ts +16 -0
  212. package/polkadot/settlement/definitions.d.ts.map +1 -0
  213. package/polkadot/settlement/definitions.js +25 -0
  214. package/polkadot/settlement/definitions.js.map +1 -0
  215. package/polkadot/settlement/index.d.ts +2 -0
  216. package/polkadot/settlement/index.d.ts.map +1 -0
  217. package/polkadot/settlement/index.js +20 -0
  218. package/polkadot/settlement/index.js.map +1 -0
  219. package/polkadot/settlement/types.d.ts +2 -0
  220. package/polkadot/settlement/types.d.ts.map +1 -0
  221. package/polkadot/settlement/types.js +5 -0
  222. package/polkadot/settlement/types.js.map +1 -0
  223. package/polkadot/types-lookup.d.ts +741 -918
  224. package/polkadot/types-lookup.d.ts.map +1 -1
  225. package/polkadot/types-lookup.js +4 -0
  226. package/polkadot/types-lookup.js.map +1 -1
  227. package/polkadot/types.d.ts +1 -1
  228. package/polkadot/types.d.ts.map +1 -1
  229. package/polkadot/types.js +1 -1
  230. package/polkadot/types.js.map +1 -1
  231. package/types/index.d.ts +26 -39
  232. package/types/index.d.ts.map +1 -1
  233. package/types/index.js +0 -4
  234. package/types/index.js.map +1 -1
  235. package/types/internal.d.ts +3 -7
  236. package/types/internal.d.ts.map +1 -1
  237. package/types/internal.js +1 -0
  238. package/types/internal.js.map +1 -1
  239. package/utils/constants.d.ts +3 -3
  240. package/utils/constants.d.ts.map +1 -1
  241. package/utils/constants.js +3 -3
  242. package/utils/constants.js.map +1 -1
  243. package/utils/conversion.d.ts +85 -48
  244. package/utils/conversion.d.ts.map +1 -1
  245. package/utils/conversion.js +397 -192
  246. package/utils/conversion.js.map +1 -1
  247. package/utils/internal.d.ts +9 -12
  248. package/utils/internal.d.ts.map +1 -1
  249. package/utils/internal.js +71 -109
  250. package/utils/internal.js.map +1 -1
  251. package/utils/typeguards.d.ts +1 -13
  252. package/utils/typeguards.d.ts.map +1 -1
  253. package/utils/typeguards.js +2 -28
  254. package/utils/typeguards.js.map +1 -1
  255. package/api/procedures/addInvestorUniquenessClaim.d.ts +0 -16
  256. package/api/procedures/addInvestorUniquenessClaim.d.ts.map +0 -1
  257. package/api/procedures/addInvestorUniquenessClaim.js +0 -82
  258. package/api/procedures/addInvestorUniquenessClaim.js.map +0 -1
  259. package/npm-package/polymeshassociation-polymesh-sdk-21.0.0.tgz +0 -0
@@ -1,14 +1,29 @@
1
- import type { ApiTypes } from '@polkadot/api-base/types';
1
+ import '@polkadot/api-base/types/events';
2
+ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
2
3
  import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
3
4
  import type { ITuple } from '@polkadot/types-codec/types';
4
5
  import type { AccountId32, H256, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
5
- import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletBridgeBridgeTx, PalletBridgeHandledTxStatus, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, PalletCorporateActionsDistribution, PalletCorporateActionsTargetIdentities, PalletImOnlineSr25519AppSr25519Public, PalletPipsProposalData, PalletPipsProposalState, PalletPipsProposer, PalletPipsSnapshottedPip, PalletSettlementInstructionMemo, PalletSettlementLeg, PalletSettlementLegV2, PalletSettlementSettlementType, PalletSettlementVenueType, PalletStakingElectionCompute, PalletStakingExposure, PalletStakingSlashingSwitch, PalletStoFundraiser, PolymeshCommonUtilitiesBalancesMemo, PolymeshCommonUtilitiesCheckpointStoredSchedule, PolymeshCommonUtilitiesMaybeBlock, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesCddIdInvestorUid, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesEthereumEthereumAddress, PolymeshPrimitivesEventOnly, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesPortfolioMemo, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from "./types-lookup.ts";
6
+ import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletBridgeBridgeTx, PalletBridgeHandledTxStatus, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, PalletCorporateActionsDistribution, PalletCorporateActionsTargetIdentities, PalletImOnlineSr25519AppSr25519Public, PalletPipsProposalData, PalletPipsProposalState, PalletPipsProposer, PalletPipsSnapshottedPip, PalletStakingElectionCompute, PalletStakingExposure, PalletStakingSlashingSwitch, PalletStoFundraiser, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshCommonUtilitiesMaybeBlock, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesEventOnly, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesPortfolioFundDescription, PolymeshPrimitivesPortfolioPortfolioUpdateReason, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptMetadata, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError } from "./types-lookup.ts";
7
+ export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
6
8
  declare module '@polkadot/api-base/types/events' {
7
9
  interface AugmentedEvents<ApiType extends ApiTypes> {
8
10
  asset: {
11
+ /**
12
+ * Emitted when Tokens were issued, redeemed or transferred.
13
+ * Contains the [`IdentityId`] of the receiver/issuer/redeemer, the [`Ticker`] for the token, the balance that was issued/transferred/redeemed,
14
+ * the [`PortfolioId`] of the source, the [`PortfolioId`] of the destination and the [`PortfolioUpdateReason`].
15
+ **/
16
+ AssetBalanceUpdated: AugmentedEvent<ApiType, [
17
+ PolymeshPrimitivesIdentityId,
18
+ PolymeshPrimitivesTicker,
19
+ u128,
20
+ Option<PolymeshPrimitivesIdentityIdPortfolioId>,
21
+ Option<PolymeshPrimitivesIdentityIdPortfolioId>,
22
+ PolymeshPrimitivesPortfolioPortfolioUpdateReason
23
+ ]>;
9
24
  /**
10
25
  * Event for creation of the asset.
11
- * caller DID/ owner DID, ticker, divisibility, asset type, beneficiary DID, disable investor uniqueness, asset name, identifiers, funding round
26
+ * caller DID/ owner DID, ticker, divisibility, asset type, beneficiary DID, asset name, identifiers, funding round
12
27
  **/
13
28
  AssetCreated: AugmentedEvent<ApiType, [
14
29
  PolymeshPrimitivesIdentityId,
@@ -16,7 +31,6 @@ declare module '@polkadot/api-base/types/events' {
16
31
  bool,
17
32
  PolymeshPrimitivesAssetAssetType,
18
33
  PolymeshPrimitivesIdentityId,
19
- bool,
20
34
  Bytes,
21
35
  Vec<PolymeshPrimitivesAssetIdentifier>,
22
36
  Option<Bytes>
@@ -64,14 +78,6 @@ declare module '@polkadot/api-base/types/events' {
64
78
  PolymeshPrimitivesIdentityId,
65
79
  PolymeshPrimitivesTicker
66
80
  ]>;
67
- /**
68
- * A Polymath Classic token was claimed and transferred to a non-systematic DID.
69
- **/
70
- ClassicTickerClaimed: AugmentedEvent<ApiType, [
71
- PolymeshPrimitivesIdentityId,
72
- PolymeshPrimitivesTicker,
73
- PolymeshPrimitivesEthereumEthereumAddress
74
- ]>;
75
81
  /**
76
82
  * Event for when a forced transfer takes place.
77
83
  * caller DID/ controller DID, ticker, Portfolio of token holder, value.
@@ -154,18 +160,6 @@ declare module '@polkadot/api-base/types/events' {
154
160
  * ticker, return value (true if issuable)
155
161
  **/
156
162
  IsIssuable: AugmentedEvent<ApiType, [PolymeshPrimitivesTicker, bool]>;
157
- /**
158
- * Emit when tokens get issued.
159
- * caller DID, ticker, beneficiary DID, value, funding round, total issued in this funding round
160
- **/
161
- Issued: AugmentedEvent<ApiType, [
162
- PolymeshPrimitivesIdentityId,
163
- PolymeshPrimitivesTicker,
164
- PolymeshPrimitivesIdentityId,
165
- u128,
166
- Bytes,
167
- u128
168
- ]>;
169
163
  /**
170
164
  * An event emitted when a local metadata key has been removed.
171
165
  * Parameters: caller ticker, Local type name
@@ -184,16 +178,6 @@ declare module '@polkadot/api-base/types/events' {
184
178
  PolymeshPrimitivesTicker,
185
179
  PolymeshPrimitivesAssetMetadataAssetMetadataKey
186
180
  ]>;
187
- /**
188
- * Emit when tokens get redeemed.
189
- * caller DID, ticker, from DID, value
190
- **/
191
- Redeemed: AugmentedEvent<ApiType, [
192
- PolymeshPrimitivesIdentityId,
193
- PolymeshPrimitivesTicker,
194
- PolymeshPrimitivesIdentityId,
195
- u128
196
- ]>;
197
181
  /**
198
182
  * Register asset metadata global type.
199
183
  * (Global type name, Global type key, type specs)
@@ -251,17 +235,6 @@ declare module '@polkadot/api-base/types/events' {
251
235
  PolymeshPrimitivesTicker,
252
236
  PolymeshPrimitivesIdentityId
253
237
  ]>;
254
- /**
255
- * Event for transfer of tokens.
256
- * caller DID, ticker, from portfolio, to portfolio, value
257
- **/
258
- Transfer: AugmentedEvent<ApiType, [
259
- PolymeshPrimitivesIdentityId,
260
- PolymeshPrimitivesTicker,
261
- PolymeshPrimitivesIdentityIdPortfolioId,
262
- PolymeshPrimitivesIdentityIdPortfolioId,
263
- u128
264
- ]>;
265
238
  /**
266
239
  * An additional event to Transfer; emitted when `transfer_with_data` is called.
267
240
  * caller DID , ticker, from DID, to DID, value, data
@@ -317,7 +290,7 @@ declare module '@polkadot/api-base/types/events' {
317
290
  Option<PolymeshPrimitivesIdentityId>,
318
291
  AccountId32,
319
292
  u128,
320
- Option<PolymeshCommonUtilitiesBalancesMemo>
293
+ Option<PolymeshPrimitivesMemo>
321
294
  ]>;
322
295
  /**
323
296
  * Some balance was unreserved (moved from reserved to free). \[who, value]
@@ -519,7 +492,7 @@ declare module '@polkadot/api-base/types/events' {
519
492
  * (caller DID, ticker, checkpoint ID, total supply, checkpoint timestamp)
520
493
  **/
521
494
  CheckpointCreated: AugmentedEvent<ApiType, [
522
- Option<PolymeshPrimitivesEventOnly>,
495
+ Option<PolymeshPrimitivesIdentityId>,
523
496
  PolymeshPrimitivesTicker,
524
497
  u64,
525
498
  u128,
@@ -537,22 +510,24 @@ declare module '@polkadot/api-base/types/events' {
537
510
  /**
538
511
  * A checkpoint schedule was created.
539
512
  *
540
- * (caller DID, ticker, schedule)
513
+ * (caller DID, ticker, schedule id, schedule)
541
514
  **/
542
515
  ScheduleCreated: AugmentedEvent<ApiType, [
543
- PolymeshPrimitivesEventOnly,
516
+ PolymeshPrimitivesIdentityId,
544
517
  PolymeshPrimitivesTicker,
545
- PolymeshCommonUtilitiesCheckpointStoredSchedule
518
+ u64,
519
+ PolymeshCommonUtilitiesCheckpointScheduleCheckpoints
546
520
  ]>;
547
521
  /**
548
522
  * A checkpoint schedule was removed.
549
523
  *
550
- * (caller DID, ticker, schedule)
524
+ * (caller DID, ticker, schedule id, schedule)
551
525
  **/
552
526
  ScheduleRemoved: AugmentedEvent<ApiType, [
553
527
  PolymeshPrimitivesIdentityId,
554
528
  PolymeshPrimitivesTicker,
555
- PolymeshCommonUtilitiesCheckpointStoredSchedule
529
+ u64,
530
+ PolymeshCommonUtilitiesCheckpointScheduleCheckpoints
556
531
  ]>;
557
532
  };
558
533
  committeeMembership: {
@@ -780,15 +755,6 @@ declare module '@polkadot/api-base/types/events' {
780
755
  }>;
781
756
  };
782
757
  corporateAction: {
783
- /**
784
- * A new DID was made the CAA.
785
- * (New CAA DID, Ticker, New CAA DID).
786
- **/
787
- CAATransferred: AugmentedEvent<ApiType, [
788
- PolymeshPrimitivesIdentityId,
789
- PolymeshPrimitivesTicker,
790
- PolymeshPrimitivesIdentityId
791
- ]>;
792
758
  /**
793
759
  * A CA was initiated.
794
760
  * (Agent DID, CA id, the CA, the CA details)
@@ -975,9 +941,9 @@ declare module '@polkadot/api-base/types/events' {
975
941
  * New authority set has been applied.
976
942
  **/
977
943
  NewAuthorities: AugmentedEvent<ApiType, [
978
- authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>
944
+ authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>
979
945
  ], {
980
- authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>;
946
+ authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>;
981
947
  }>;
982
948
  /**
983
949
  * Current authority set has been paused.
@@ -1064,6 +1030,26 @@ declare module '@polkadot/api-base/types/events' {
1064
1030
  * (new_requirement)
1065
1031
  **/
1066
1032
  CddRequirementForPrimaryKeyUpdated: AugmentedEvent<ApiType, [bool]>;
1033
+ /**
1034
+ * Child identity created.
1035
+ *
1036
+ * (Parent DID, Child DID, primary key)
1037
+ **/
1038
+ ChildDidCreated: AugmentedEvent<ApiType, [
1039
+ PolymeshPrimitivesIdentityId,
1040
+ PolymeshPrimitivesIdentityId,
1041
+ AccountId32
1042
+ ]>;
1043
+ /**
1044
+ * Child identity unlinked from parent identity.
1045
+ *
1046
+ * (Caller DID, Parent DID, Child DID)
1047
+ **/
1048
+ ChildDidUnlinked: AugmentedEvent<ApiType, [
1049
+ PolymeshPrimitivesIdentityId,
1050
+ PolymeshPrimitivesIdentityId,
1051
+ PolymeshPrimitivesIdentityId
1052
+ ]>;
1067
1053
  /**
1068
1054
  * Claim added to identity.
1069
1055
  *
@@ -1307,10 +1293,6 @@ declare module '@polkadot/api-base/types/events' {
1307
1293
  SchedulingFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError]>;
1308
1294
  };
1309
1295
  nft: {
1310
- /**
1311
- * Emitted when a new nft is issued.
1312
- **/
1313
- IssuedNFT: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, u64, u64]>;
1314
1296
  /**
1315
1297
  * Emitted when a new nft collection is created.
1316
1298
  **/
@@ -1320,12 +1302,16 @@ declare module '@polkadot/api-base/types/events' {
1320
1302
  u64
1321
1303
  ]>;
1322
1304
  /**
1323
- * Emitted when an NFT is redeemed.
1305
+ * Emitted when NFTs were issued, redeemed or transferred.
1306
+ * Contains the [`IdentityId`] of the receiver/issuer/redeemer, the [`NFTs`], the [`PortfolioId`] of the source, the [`PortfolioId`]
1307
+ * of the destination and the [`PortfolioUpdateReason`].
1324
1308
  **/
1325
- RedeemedNFT: AugmentedEvent<ApiType, [
1309
+ NFTPortfolioUpdated: AugmentedEvent<ApiType, [
1326
1310
  PolymeshPrimitivesIdentityId,
1327
- PolymeshPrimitivesTicker,
1328
- u64
1311
+ PolymeshPrimitivesNftNfTs,
1312
+ Option<PolymeshPrimitivesIdentityIdPortfolioId>,
1313
+ Option<PolymeshPrimitivesIdentityIdPortfolioId>,
1314
+ PolymeshPrimitivesPortfolioPortfolioUpdateReason
1329
1315
  ]>;
1330
1316
  };
1331
1317
  offences: {
@@ -1553,56 +1539,21 @@ declare module '@polkadot/api-base/types/events' {
1553
1539
  polymeshContracts: {};
1554
1540
  portfolio: {
1555
1541
  /**
1556
- * A token amount has been moved from one portfolio to another.
1557
- *
1558
- * # Parameters
1559
- * * origin DID
1560
- * * source portfolio
1561
- * * destination portfolio
1562
- * * asset ticker
1563
- * * asset balance that was moved
1564
- **/
1565
- FungibleTokensMovedBetweenPortfolios: AugmentedEvent<ApiType, [
1566
- PolymeshPrimitivesIdentityId,
1567
- PolymeshPrimitivesIdentityIdPortfolioId,
1568
- PolymeshPrimitivesIdentityIdPortfolioId,
1569
- PolymeshPrimitivesTicker,
1570
- u128,
1571
- Option<PolymeshPrimitivesPortfolioMemo>
1572
- ]>;
1573
- /**
1574
- * A token amount has been moved from one portfolio to another.
1542
+ * Funds have moved between portfolios
1575
1543
  *
1576
1544
  * # Parameters
1577
- * * origin DID
1578
- * * source portfolio
1579
- * * destination portfolio
1580
- * * asset ticker
1581
- * * asset balance that was moved
1545
+ * * Origin DID.
1546
+ * * Source portfolio.
1547
+ * * Destination portfolio.
1548
+ * * The type of fund that was moved.
1549
+ * * Optional memo for the move.
1582
1550
  **/
1583
- MovedBetweenPortfolios: AugmentedEvent<ApiType, [
1551
+ FundsMovedBetweenPortfolios: AugmentedEvent<ApiType, [
1584
1552
  PolymeshPrimitivesIdentityId,
1585
1553
  PolymeshPrimitivesIdentityIdPortfolioId,
1586
1554
  PolymeshPrimitivesIdentityIdPortfolioId,
1587
- PolymeshPrimitivesTicker,
1588
- u128,
1589
- Option<PolymeshCommonUtilitiesBalancesMemo>
1590
- ]>;
1591
- /**
1592
- * NFTs have been moved from one portfolio to another.
1593
- *
1594
- * # Parameters
1595
- * * origin DID
1596
- * * source portfolio
1597
- * * destination portfolio
1598
- * * NFTs
1599
- **/
1600
- NFTsMovedBetweenPortfolios: AugmentedEvent<ApiType, [
1601
- PolymeshPrimitivesIdentityId,
1602
- PolymeshPrimitivesIdentityIdPortfolioId,
1603
- PolymeshPrimitivesIdentityIdPortfolioId,
1604
- PolymeshPrimitivesNftNfTs,
1605
- Option<PolymeshPrimitivesPortfolioMemo>
1555
+ PolymeshPrimitivesPortfolioFundDescription,
1556
+ Option<PolymeshPrimitivesMemo>
1606
1557
  ]>;
1607
1558
  /**
1608
1559
  * The portfolio has been successfully created.
@@ -1840,11 +1791,11 @@ declare module '@polkadot/api-base/types/events' {
1840
1791
  PolymeshPrimitivesIdentityId,
1841
1792
  u64,
1842
1793
  u64,
1843
- PalletSettlementSettlementType,
1794
+ PolymeshPrimitivesSettlementSettlementType,
1844
1795
  Option<u64>,
1845
1796
  Option<u64>,
1846
- Vec<PalletSettlementLeg>,
1847
- Option<PalletSettlementInstructionMemo>
1797
+ Vec<PolymeshPrimitivesSettlementLeg>,
1798
+ Option<PolymeshPrimitivesMemo>
1848
1799
  ]>;
1849
1800
  /**
1850
1801
  * Instruction executed successfully(did, instruction_id)
@@ -1863,20 +1814,6 @@ declare module '@polkadot/api-base/types/events' {
1863
1814
  * (caller DID, instruction_id)
1864
1815
  **/
1865
1816
  InstructionRescheduled: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, u64]>;
1866
- /**
1867
- * A new instruction has been created
1868
- * (did, venue_id, instruction_id, settlement_type, trade_date, value_date, legs, memo)
1869
- **/
1870
- InstructionV2Created: AugmentedEvent<ApiType, [
1871
- PolymeshPrimitivesIdentityId,
1872
- u64,
1873
- u64,
1874
- PalletSettlementSettlementType,
1875
- Option<u64>,
1876
- Option<u64>,
1877
- Vec<PalletSettlementLegV2>,
1878
- Option<PalletSettlementInstructionMemo>
1879
- ]>;
1880
1817
  /**
1881
1818
  * Execution of a leg failed (did, instruction_id, leg_id)
1882
1819
  **/
@@ -1890,26 +1827,7 @@ declare module '@polkadot/api-base/types/events' {
1890
1827
  u64,
1891
1828
  u64,
1892
1829
  AccountId32,
1893
- Bytes
1894
- ]>;
1895
- /**
1896
- * A receipt has been unclaimed (did, instruction_id, leg_id, receipt_uid, signer)
1897
- **/
1898
- ReceiptUnclaimed: AugmentedEvent<ApiType, [
1899
- PolymeshPrimitivesIdentityId,
1900
- u64,
1901
- u64,
1902
- u64,
1903
- AccountId32
1904
- ]>;
1905
- /**
1906
- * A receipt has been invalidated (did, signer, receipt_uid, validity)
1907
- **/
1908
- ReceiptValidityChanged: AugmentedEvent<ApiType, [
1909
- PolymeshPrimitivesIdentityId,
1910
- AccountId32,
1911
- u64,
1912
- bool
1830
+ Option<PolymeshPrimitivesSettlementReceiptMetadata>
1913
1831
  ]>;
1914
1832
  /**
1915
1833
  * Scheduling of instruction fails.
@@ -1926,7 +1844,7 @@ declare module '@polkadot/api-base/types/events' {
1926
1844
  PolymeshPrimitivesIdentityId,
1927
1845
  u64,
1928
1846
  Bytes,
1929
- PalletSettlementVenueType
1847
+ PolymeshPrimitivesSettlementVenueType
1930
1848
  ]>;
1931
1849
  /**
1932
1850
  * An existing venue's details has been updated (did, venue_id, details)
@@ -1971,7 +1889,7 @@ declare module '@polkadot/api-base/types/events' {
1971
1889
  VenueTypeUpdated: AugmentedEvent<ApiType, [
1972
1890
  PolymeshPrimitivesIdentityId,
1973
1891
  u64,
1974
- PalletSettlementVenueType
1892
+ PolymeshPrimitivesSettlementVenueType
1975
1893
  ]>;
1976
1894
  /**
1977
1895
  * Venue not part of the token's allow list (did, Ticker, venue_id)
@@ -2132,7 +2050,7 @@ declare module '@polkadot/api-base/types/events' {
2132
2050
  Vec<PolymeshPrimitivesStatisticsStatType>
2133
2051
  ]>;
2134
2052
  /**
2135
- * Add `ScopeId`s exempt for transfer conditions matching exempt key.
2053
+ * Add `IdentityId`s exempt for transfer conditions matching exempt key.
2136
2054
  *
2137
2055
  * (Caller DID, Exempt key, Entities)
2138
2056
  **/
@@ -2142,7 +2060,7 @@ declare module '@polkadot/api-base/types/events' {
2142
2060
  Vec<PolymeshPrimitivesIdentityId>
2143
2061
  ]>;
2144
2062
  /**
2145
- * Remove `ScopeId`s exempt for transfer conditions matching exempt key.
2063
+ * Remove `IdentityId`s exempt for transfer conditions matching exempt key.
2146
2064
  *
2147
2065
  * (Caller DID, Exempt key, Entities)
2148
2066
  **/
@@ -2207,7 +2125,7 @@ declare module '@polkadot/api-base/types/events' {
2207
2125
  /**
2208
2126
  * The \[sudoer\] just switched identity; the old key is supplied.
2209
2127
  **/
2210
- KeyChanged: AugmentedEvent<ApiType, [AccountId32]>;
2128
+ KeyChanged: AugmentedEvent<ApiType, [Option<AccountId32>]>;
2211
2129
  /**
2212
2130
  * A sudo just took place. \[result\]
2213
2131
  **/
@@ -2405,14 +2323,6 @@ declare module '@polkadot/api-base/types/events' {
2405
2323
  * (Caller DID, Caller account)
2406
2324
  **/
2407
2325
  DidStatus: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, AccountId32]>;
2408
- /**
2409
- * A new mocked `InvestorUid` has been created for the given Identity.
2410
- * (Target DID, New InvestorUid)
2411
- **/
2412
- MockInvestorUIDCreated: AugmentedEvent<ApiType, [
2413
- PolymeshPrimitivesIdentityId,
2414
- PolymeshPrimitivesCddIdInvestorUid
2415
- ]>;
2416
2326
  };
2417
2327
  transactionPayment: {
2418
2328
  /**
@@ -2590,26 +2500,84 @@ declare module '@polkadot/api-base/types/events' {
2590
2500
  ]>;
2591
2501
  };
2592
2502
  utility: {
2503
+ /**
2504
+ * Batch of dispatches completed fully with no error.
2505
+ **/
2506
+ BatchCompleted: AugmentedEvent<ApiType, []>;
2593
2507
  /**
2594
2508
  * Batch of dispatches completed fully with no error.
2595
2509
  * Includes a vector of event counts for each dispatch.
2510
+ * POLYMESH: event deprecated.
2596
2511
  **/
2597
- BatchCompleted: AugmentedEvent<ApiType, [Vec<u32>]>;
2512
+ BatchCompletedOld: AugmentedEvent<ApiType, [Vec<u32>]>;
2513
+ /**
2514
+ * Batch of dispatches completed but has errors.
2515
+ **/
2516
+ BatchCompletedWithErrors: AugmentedEvent<ApiType, []>;
2517
+ /**
2518
+ * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
2519
+ * well as the error.
2520
+ **/
2521
+ BatchInterrupted: AugmentedEvent<ApiType, [
2522
+ index: u32,
2523
+ error: SpRuntimeDispatchError
2524
+ ], {
2525
+ index: u32;
2526
+ error: SpRuntimeDispatchError;
2527
+ }>;
2598
2528
  /**
2599
2529
  * Batch of dispatches did not complete fully.
2600
2530
  * Includes a vector of event counts for each dispatch and
2601
2531
  * the index of the first failing dispatch as well as the error.
2532
+ * POLYMESH: event deprecated.
2602
2533
  **/
2603
- BatchInterrupted: AugmentedEvent<ApiType, [Vec<u32>, ITuple<[u32, SpRuntimeDispatchError]>]>;
2534
+ BatchInterruptedOld: AugmentedEvent<ApiType, [
2535
+ Vec<u32>,
2536
+ ITuple<[u32, SpRuntimeDispatchError]>
2537
+ ]>;
2604
2538
  /**
2605
2539
  * Batch of dispatches did not complete fully.
2606
2540
  * Includes a vector of event counts for each call and
2607
2541
  * a vector of any failed dispatches with their indices and associated error.
2542
+ * POLYMESH: event deprecated.
2608
2543
  **/
2609
2544
  BatchOptimisticFailed: AugmentedEvent<ApiType, [
2610
2545
  Vec<u32>,
2611
2546
  Vec<ITuple<[u32, SpRuntimeDispatchError]>>
2612
2547
  ]>;
2548
+ /**
2549
+ * A call was dispatched.
2550
+ **/
2551
+ DispatchedAs: AugmentedEvent<ApiType, [
2552
+ result: Result<Null, SpRuntimeDispatchError>
2553
+ ], {
2554
+ result: Result<Null, SpRuntimeDispatchError>;
2555
+ }>;
2556
+ /**
2557
+ * A single item within a Batch of dispatches has completed with no error.
2558
+ **/
2559
+ ItemCompleted: AugmentedEvent<ApiType, []>;
2560
+ /**
2561
+ * A single item within a Batch of dispatches has completed with error.
2562
+ **/
2563
+ ItemFailed: AugmentedEvent<ApiType, [
2564
+ error: SpRuntimeDispatchError
2565
+ ], {
2566
+ error: SpRuntimeDispatchError;
2567
+ }>;
2568
+ /**
2569
+ * Relayed transaction.
2570
+ * POLYMESH: event.
2571
+ **/
2572
+ RelayedTx: AugmentedEvent<ApiType, [
2573
+ callerDid: PolymeshPrimitivesIdentityId,
2574
+ target: AccountId32,
2575
+ result: Result<Null, SpRuntimeDispatchError>
2576
+ ], {
2577
+ callerDid: PolymeshPrimitivesIdentityId;
2578
+ target: AccountId32;
2579
+ result: Result<Null, SpRuntimeDispatchError>;
2580
+ }>;
2613
2581
  };
2614
2582
  }
2615
2583
  }