@polymeshassociation/polymesh-sdk 23.0.0-alpha.1 → 23.0.0-alpha.10

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 (440) hide show
  1. package/CHANGELOG.md +6 -7
  2. package/api/client/Assets.d.ts +23 -8
  3. package/api/client/Assets.d.ts.map +1 -1
  4. package/api/client/Assets.js +44 -10
  5. package/api/client/Assets.js.map +1 -1
  6. package/api/client/Claims.d.ts +9 -1
  7. package/api/client/Claims.d.ts.map +1 -1
  8. package/api/client/Claims.js +19 -5
  9. package/api/client/Claims.js.map +1 -1
  10. package/api/client/Identities.d.ts +22 -2
  11. package/api/client/Identities.d.ts.map +1 -1
  12. package/api/client/Identities.js +11 -0
  13. package/api/client/Identities.js.map +1 -1
  14. package/api/client/Network.d.ts.map +1 -1
  15. package/api/client/Network.js +2 -1
  16. package/api/client/Network.js.map +1 -1
  17. package/api/entities/Account/helpers.d.ts +3 -2
  18. package/api/entities/Account/helpers.d.ts.map +1 -1
  19. package/api/entities/Account/helpers.js.map +1 -1
  20. package/api/entities/Account/index.d.ts.map +1 -1
  21. package/api/entities/Account/index.js +19 -15
  22. package/api/entities/Account/index.js.map +1 -1
  23. package/api/entities/Asset/Base/BaseAsset.d.ts +82 -0
  24. package/api/entities/Asset/Base/BaseAsset.d.ts.map +1 -0
  25. package/api/entities/Asset/Base/BaseAsset.js +174 -0
  26. package/api/entities/Asset/Base/BaseAsset.js.map +1 -0
  27. package/api/entities/Asset/{Compliance → Base/Compliance}/Requirements.d.ts +10 -10
  28. package/api/entities/Asset/Base/Compliance/Requirements.d.ts.map +1 -0
  29. package/api/entities/Asset/{Compliance → Base/Compliance}/Requirements.js +3 -3
  30. package/api/entities/Asset/Base/Compliance/Requirements.js.map +1 -0
  31. package/api/entities/Asset/{Compliance → Base/Compliance}/TrustedClaimIssuers.d.ts +7 -7
  32. package/api/entities/Asset/Base/Compliance/TrustedClaimIssuers.d.ts.map +1 -0
  33. package/api/entities/Asset/{Compliance → Base/Compliance}/TrustedClaimIssuers.js +4 -4
  34. package/api/entities/Asset/Base/Compliance/TrustedClaimIssuers.js.map +1 -0
  35. package/api/entities/Asset/{Compliance → Base/Compliance}/index.d.ts +3 -3
  36. package/api/entities/Asset/Base/Compliance/index.d.ts.map +1 -0
  37. package/api/entities/Asset/{Compliance → Base/Compliance}/index.js +1 -1
  38. package/api/entities/Asset/Base/Compliance/index.js.map +1 -0
  39. package/api/entities/Asset/{Documents.d.ts → Base/Documents/index.d.ts} +7 -8
  40. package/api/entities/Asset/Base/Documents/index.d.ts.map +1 -0
  41. package/api/entities/Asset/{Documents.js → Base/Documents/index.js} +4 -4
  42. package/api/entities/Asset/Base/Documents/index.js.map +1 -0
  43. package/api/entities/Asset/{Metadata.d.ts → Base/Metadata/index.d.ts} +11 -5
  44. package/api/entities/Asset/Base/Metadata/index.d.ts.map +1 -0
  45. package/api/entities/Asset/{Metadata.js → Base/Metadata/index.js} +17 -5
  46. package/api/entities/Asset/Base/Metadata/index.js.map +1 -0
  47. package/api/entities/Asset/{Permissions.d.ts → Base/Permissions/index.d.ts} +5 -5
  48. package/api/entities/Asset/Base/Permissions/index.d.ts.map +1 -0
  49. package/api/entities/Asset/{Permissions.js → Base/Permissions/index.js} +5 -5
  50. package/api/entities/Asset/Base/Permissions/index.js.map +1 -0
  51. package/api/entities/Asset/Base/index.d.ts +2 -0
  52. package/api/entities/Asset/Base/index.d.ts.map +1 -0
  53. package/api/entities/Asset/Base/index.js +18 -0
  54. package/api/entities/Asset/Base/index.js.map +1 -0
  55. package/api/entities/Asset/{AssetHolders.d.ts → Fungible/AssetHolders/index.d.ts} +4 -4
  56. package/api/entities/Asset/Fungible/AssetHolders/index.d.ts.map +1 -0
  57. package/api/entities/Asset/{AssetHolders.js → Fungible/AssetHolders/index.js} +4 -4
  58. package/api/entities/Asset/Fungible/AssetHolders/index.js.map +1 -0
  59. package/api/entities/Asset/{Checkpoints → Fungible/Checkpoints}/Schedules.d.ts +4 -4
  60. package/api/entities/Asset/Fungible/Checkpoints/Schedules.d.ts.map +1 -0
  61. package/api/entities/Asset/{Checkpoints → Fungible/Checkpoints}/Schedules.js +4 -4
  62. package/api/entities/Asset/Fungible/Checkpoints/Schedules.js.map +1 -0
  63. package/api/entities/Asset/{Checkpoints → Fungible/Checkpoints}/index.d.ts +4 -4
  64. package/api/entities/Asset/Fungible/Checkpoints/index.d.ts.map +1 -0
  65. package/api/entities/Asset/{Checkpoints → Fungible/Checkpoints}/index.js +5 -5
  66. package/api/entities/Asset/Fungible/Checkpoints/index.js.map +1 -0
  67. package/api/entities/Asset/{Checkpoints → Fungible/Checkpoints}/types.d.ts +1 -1
  68. package/api/entities/Asset/Fungible/Checkpoints/types.d.ts.map +1 -0
  69. package/api/entities/Asset/Fungible/Checkpoints/types.js.map +1 -0
  70. package/api/entities/Asset/{CorporateActions → Fungible/CorporateActions}/Distributions.d.ts +4 -4
  71. package/api/entities/Asset/Fungible/CorporateActions/Distributions.d.ts.map +1 -0
  72. package/api/entities/Asset/{CorporateActions → Fungible/CorporateActions}/Distributions.js +4 -4
  73. package/api/entities/Asset/Fungible/CorporateActions/Distributions.js.map +1 -0
  74. package/api/entities/Asset/{CorporateActions → Fungible/CorporateActions}/index.d.ts +4 -4
  75. package/api/entities/Asset/Fungible/CorporateActions/index.d.ts.map +1 -0
  76. package/api/entities/Asset/{CorporateActions → Fungible/CorporateActions}/index.js +3 -3
  77. package/api/entities/Asset/Fungible/CorporateActions/index.js.map +1 -0
  78. package/api/entities/Asset/{CorporateActions → Fungible/CorporateActions}/types.d.ts +1 -1
  79. package/api/entities/Asset/Fungible/CorporateActions/types.d.ts.map +1 -0
  80. package/api/entities/Asset/Fungible/CorporateActions/types.js.map +1 -0
  81. package/api/entities/Asset/{Issuance.d.ts → Fungible/Issuance/index.d.ts} +6 -6
  82. package/api/entities/Asset/Fungible/Issuance/index.d.ts.map +1 -0
  83. package/api/entities/Asset/{Issuance.js → Fungible/Issuance/index.js} +3 -3
  84. package/api/entities/Asset/Fungible/Issuance/index.js.map +1 -0
  85. package/api/entities/Asset/{Offerings.d.ts → Fungible/Offerings/index.d.ts} +5 -5
  86. package/api/entities/Asset/Fungible/Offerings/index.d.ts.map +1 -0
  87. package/api/entities/Asset/{Offerings.js → Fungible/Offerings/index.js} +5 -5
  88. package/api/entities/Asset/Fungible/Offerings/index.js.map +1 -0
  89. package/api/entities/Asset/{Settlements.d.ts → Fungible/Settlements/index.d.ts} +4 -4
  90. package/api/entities/Asset/Fungible/Settlements/index.d.ts.map +1 -0
  91. package/api/entities/Asset/{Settlements.js → Fungible/Settlements/index.js} +5 -5
  92. package/api/entities/Asset/Fungible/Settlements/index.js.map +1 -0
  93. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/ClaimCount.d.ts +2 -2
  94. package/api/entities/Asset/Fungible/TransferRestrictions/ClaimCount.d.ts.map +1 -0
  95. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/ClaimCount.js +2 -2
  96. package/api/entities/Asset/Fungible/TransferRestrictions/ClaimCount.js.map +1 -0
  97. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/ClaimPercentage.d.ts +2 -2
  98. package/api/entities/Asset/Fungible/TransferRestrictions/ClaimPercentage.d.ts.map +1 -0
  99. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/ClaimPercentage.js +2 -2
  100. package/api/entities/Asset/Fungible/TransferRestrictions/ClaimPercentage.js.map +1 -0
  101. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/Count.d.ts +5 -5
  102. package/api/entities/Asset/Fungible/TransferRestrictions/Count.d.ts.map +1 -0
  103. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/Count.js +2 -2
  104. package/api/entities/Asset/Fungible/TransferRestrictions/Count.js.map +1 -0
  105. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/Percentage.d.ts +2 -2
  106. package/api/entities/Asset/Fungible/TransferRestrictions/Percentage.d.ts.map +1 -0
  107. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/Percentage.js +2 -2
  108. package/api/entities/Asset/Fungible/TransferRestrictions/Percentage.js.map +1 -0
  109. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/TransferRestrictionBase.d.ts +4 -4
  110. package/api/entities/Asset/Fungible/TransferRestrictions/TransferRestrictionBase.d.ts.map +1 -0
  111. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/TransferRestrictionBase.js +4 -4
  112. package/api/entities/Asset/Fungible/TransferRestrictions/TransferRestrictionBase.js.map +1 -0
  113. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/index.d.ts +3 -3
  114. package/api/entities/Asset/Fungible/TransferRestrictions/index.d.ts.map +1 -0
  115. package/api/entities/Asset/{TransferRestrictions → Fungible/TransferRestrictions}/index.js +1 -1
  116. package/api/entities/Asset/Fungible/TransferRestrictions/index.js.map +1 -0
  117. package/api/entities/Asset/Fungible/index.d.ts +88 -0
  118. package/api/entities/Asset/Fungible/index.d.ts.map +1 -0
  119. package/api/entities/Asset/Fungible/index.js +159 -0
  120. package/api/entities/Asset/Fungible/index.js.map +1 -0
  121. package/api/entities/Asset/NonFungible/Nft.d.ts +39 -0
  122. package/api/entities/Asset/NonFungible/Nft.d.ts.map +1 -0
  123. package/api/entities/Asset/NonFungible/Nft.js +87 -0
  124. package/api/entities/Asset/NonFungible/Nft.js.map +1 -0
  125. package/api/entities/Asset/NonFungible/NftCollection.d.ts +55 -0
  126. package/api/entities/Asset/NonFungible/NftCollection.d.ts.map +1 -0
  127. package/api/entities/Asset/NonFungible/NftCollection.js +140 -0
  128. package/api/entities/Asset/NonFungible/NftCollection.js.map +1 -0
  129. package/api/entities/Asset/NonFungible/index.d.ts +3 -0
  130. package/api/entities/Asset/NonFungible/index.d.ts.map +1 -0
  131. package/api/entities/Asset/NonFungible/index.js +19 -0
  132. package/api/entities/Asset/NonFungible/index.js.map +1 -0
  133. package/api/entities/Asset/index.d.ts +4 -158
  134. package/api/entities/Asset/index.d.ts.map +1 -1
  135. package/api/entities/Asset/index.js +17 -270
  136. package/api/entities/Asset/index.js.map +1 -1
  137. package/api/entities/Asset/types.d.ts +27 -5
  138. package/api/entities/Asset/types.d.ts.map +1 -1
  139. package/api/entities/Asset/types.js +2 -2
  140. package/api/entities/Asset/types.js.map +1 -1
  141. package/api/entities/Checkpoint.d.ts +2 -2
  142. package/api/entities/Checkpoint.d.ts.map +1 -1
  143. package/api/entities/Checkpoint.js +1 -1
  144. package/api/entities/Checkpoint.js.map +1 -1
  145. package/api/entities/CheckpointSchedule/index.d.ts +2 -2
  146. package/api/entities/CheckpointSchedule/index.d.ts.map +1 -1
  147. package/api/entities/CheckpointSchedule/index.js +1 -1
  148. package/api/entities/CheckpointSchedule/index.js.map +1 -1
  149. package/api/entities/CorporateActionBase/index.d.ts +2 -2
  150. package/api/entities/CorporateActionBase/index.d.ts.map +1 -1
  151. package/api/entities/CorporateActionBase/index.js +1 -1
  152. package/api/entities/CorporateActionBase/index.js.map +1 -1
  153. package/api/entities/DefaultTrustedClaimIssuer.d.ts +2 -2
  154. package/api/entities/DefaultTrustedClaimIssuer.d.ts.map +1 -1
  155. package/api/entities/DefaultTrustedClaimIssuer.js +1 -1
  156. package/api/entities/DefaultTrustedClaimIssuer.js.map +1 -1
  157. package/api/entities/Identity/AssetPermissions.d.ts +6 -6
  158. package/api/entities/Identity/AssetPermissions.d.ts.map +1 -1
  159. package/api/entities/Identity/AssetPermissions.js +2 -2
  160. package/api/entities/Identity/AssetPermissions.js.map +1 -1
  161. package/api/entities/Identity/ChildIdentity.d.ts +36 -0
  162. package/api/entities/Identity/ChildIdentity.d.ts.map +1 -0
  163. package/api/entities/Identity/ChildIdentity.js +66 -0
  164. package/api/entities/Identity/ChildIdentity.js.map +1 -0
  165. package/api/entities/Identity/index.d.ts +22 -4
  166. package/api/entities/Identity/index.d.ts.map +1 -1
  167. package/api/entities/Identity/index.js +30 -2
  168. package/api/entities/Identity/index.js.map +1 -1
  169. package/api/entities/Instruction/index.d.ts.map +1 -1
  170. package/api/entities/Instruction/index.js +1 -1
  171. package/api/entities/Instruction/index.js.map +1 -1
  172. package/api/entities/Instruction/types.d.ts +2 -2
  173. package/api/entities/Instruction/types.d.ts.map +1 -1
  174. package/api/entities/MetadataEntry/index.d.ts +2 -2
  175. package/api/entities/MetadataEntry/index.d.ts.map +1 -1
  176. package/api/entities/MetadataEntry/index.js +1 -1
  177. package/api/entities/MetadataEntry/index.js.map +1 -1
  178. package/api/entities/Offering/index.d.ts +2 -2
  179. package/api/entities/Offering/index.d.ts.map +1 -1
  180. package/api/entities/Offering/index.js +1 -1
  181. package/api/entities/Offering/index.js.map +1 -1
  182. package/api/entities/PermissionGroup.d.ts +2 -2
  183. package/api/entities/PermissionGroup.d.ts.map +1 -1
  184. package/api/entities/PermissionGroup.js +1 -1
  185. package/api/entities/PermissionGroup.js.map +1 -1
  186. package/api/entities/Portfolio/index.d.ts +2 -2
  187. package/api/entities/Portfolio/index.d.ts.map +1 -1
  188. package/api/entities/Portfolio/index.js +4 -4
  189. package/api/entities/Portfolio/index.js.map +1 -1
  190. package/api/entities/Portfolio/types.d.ts +2 -2
  191. package/api/entities/Portfolio/types.d.ts.map +1 -1
  192. package/api/entities/TickerReservation/index.d.ts +2 -2
  193. package/api/entities/TickerReservation/index.d.ts.map +1 -1
  194. package/api/entities/types.d.ts +3 -2
  195. package/api/entities/types.d.ts.map +1 -1
  196. package/api/entities/types.js.map +1 -1
  197. package/api/procedures/addAssetRequirement.d.ts +4 -4
  198. package/api/procedures/addAssetRequirement.d.ts.map +1 -1
  199. package/api/procedures/addAssetRequirement.js +3 -3
  200. package/api/procedures/addAssetRequirement.js.map +1 -1
  201. package/api/procedures/addAssetStat.d.ts.map +1 -1
  202. package/api/procedures/addAssetStat.js +1 -1
  203. package/api/procedures/addAssetStat.js.map +1 -1
  204. package/api/procedures/addTransferRestriction.d.ts.map +1 -1
  205. package/api/procedures/addTransferRestriction.js +1 -1
  206. package/api/procedures/addTransferRestriction.js.map +1 -1
  207. package/api/procedures/closeOffering.d.ts.map +1 -1
  208. package/api/procedures/closeOffering.js +1 -1
  209. package/api/procedures/closeOffering.js.map +1 -1
  210. package/api/procedures/configureDividendDistribution.d.ts.map +1 -1
  211. package/api/procedures/configureDividendDistribution.js +1 -1
  212. package/api/procedures/configureDividendDistribution.js.map +1 -1
  213. package/api/procedures/controllerTransfer.d.ts.map +1 -1
  214. package/api/procedures/controllerTransfer.js +2 -2
  215. package/api/procedures/controllerTransfer.js.map +1 -1
  216. package/api/procedures/createAsset.d.ts +5 -5
  217. package/api/procedures/createAsset.d.ts.map +1 -1
  218. package/api/procedures/createAsset.js +4 -20
  219. package/api/procedures/createAsset.js.map +1 -1
  220. package/api/procedures/createCheckpoint.d.ts.map +1 -1
  221. package/api/procedures/createCheckpoint.js +1 -1
  222. package/api/procedures/createCheckpoint.js.map +1 -1
  223. package/api/procedures/createCheckpointSchedule.d.ts.map +1 -1
  224. package/api/procedures/createCheckpointSchedule.js +1 -1
  225. package/api/procedures/createCheckpointSchedule.js.map +1 -1
  226. package/api/procedures/createChildIdentity.d.ts +31 -0
  227. package/api/procedures/createChildIdentity.d.ts.map +1 -0
  228. package/api/procedures/createChildIdentity.js +114 -0
  229. package/api/procedures/createChildIdentity.js.map +1 -0
  230. package/api/procedures/createGroup.d.ts +2 -2
  231. package/api/procedures/createGroup.d.ts.map +1 -1
  232. package/api/procedures/createGroup.js +1 -1
  233. package/api/procedures/createGroup.js.map +1 -1
  234. package/api/procedures/createNftCollection.d.ts +41 -0
  235. package/api/procedures/createNftCollection.d.ts.map +1 -0
  236. package/api/procedures/createNftCollection.js +248 -0
  237. package/api/procedures/createNftCollection.js.map +1 -0
  238. package/api/procedures/createTransactionBatch.d.ts.map +1 -1
  239. package/api/procedures/createTransactionBatch.js +1 -1
  240. package/api/procedures/createTransactionBatch.js.map +1 -1
  241. package/api/procedures/inviteExternalAgent.d.ts +2 -2
  242. package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
  243. package/api/procedures/inviteExternalAgent.js +1 -1
  244. package/api/procedures/inviteExternalAgent.js.map +1 -1
  245. package/api/procedures/issueNft.d.ts +35 -0
  246. package/api/procedures/issueNft.d.ts.map +1 -0
  247. package/api/procedures/issueNft.js +98 -0
  248. package/api/procedures/issueNft.js.map +1 -0
  249. package/api/procedures/issueTokens.d.ts +6 -6
  250. package/api/procedures/issueTokens.d.ts.map +1 -1
  251. package/api/procedures/issueTokens.js +1 -1
  252. package/api/procedures/issueTokens.js.map +1 -1
  253. package/api/procedures/launchOffering.d.ts.map +1 -1
  254. package/api/procedures/launchOffering.js +1 -1
  255. package/api/procedures/launchOffering.js.map +1 -1
  256. package/api/procedures/linkCaDocs.d.ts.map +1 -1
  257. package/api/procedures/linkCaDocs.js +1 -1
  258. package/api/procedures/linkCaDocs.js.map +1 -1
  259. package/api/procedures/modifyAsset.d.ts +4 -4
  260. package/api/procedures/modifyAsset.d.ts.map +1 -1
  261. package/api/procedures/modifyAsset.js +2 -2
  262. package/api/procedures/modifyAsset.js.map +1 -1
  263. package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts +4 -4
  264. package/api/procedures/modifyAssetTrustedClaimIssuers.d.ts.map +1 -1
  265. package/api/procedures/modifyAssetTrustedClaimIssuers.js +2 -2
  266. package/api/procedures/modifyAssetTrustedClaimIssuers.js.map +1 -1
  267. package/api/procedures/modifyCaCheckpoint.d.ts.map +1 -1
  268. package/api/procedures/modifyCaCheckpoint.js +1 -1
  269. package/api/procedures/modifyCaCheckpoint.js.map +1 -1
  270. package/api/procedures/modifyCaDefaultConfig.d.ts.map +1 -1
  271. package/api/procedures/modifyCaDefaultConfig.js +2 -2
  272. package/api/procedures/modifyCaDefaultConfig.js.map +1 -1
  273. package/api/procedures/modifyComplianceRequirement.d.ts.map +1 -1
  274. package/api/procedures/modifyComplianceRequirement.js +2 -2
  275. package/api/procedures/modifyComplianceRequirement.js.map +1 -1
  276. package/api/procedures/modifyCorporateActionsAgent.d.ts.map +1 -1
  277. package/api/procedures/modifyCorporateActionsAgent.js +2 -2
  278. package/api/procedures/modifyCorporateActionsAgent.js.map +1 -1
  279. package/api/procedures/modifyOfferingTimes.d.ts.map +1 -1
  280. package/api/procedures/modifyOfferingTimes.js +1 -1
  281. package/api/procedures/modifyOfferingTimes.js.map +1 -1
  282. package/api/procedures/reclaimDividendDistributionFunds.d.ts.map +1 -1
  283. package/api/procedures/reclaimDividendDistributionFunds.js +1 -1
  284. package/api/procedures/reclaimDividendDistributionFunds.js.map +1 -1
  285. package/api/procedures/redeemTokens.d.ts.map +1 -1
  286. package/api/procedures/redeemTokens.js +2 -2
  287. package/api/procedures/redeemTokens.js.map +1 -1
  288. package/api/procedures/registerCustomClaimType.d.ts +22 -0
  289. package/api/procedures/registerCustomClaimType.d.ts.map +1 -0
  290. package/api/procedures/registerCustomClaimType.js +69 -0
  291. package/api/procedures/registerCustomClaimType.js.map +1 -0
  292. package/api/procedures/registerMetadata.d.ts.map +1 -1
  293. package/api/procedures/registerMetadata.js +1 -1
  294. package/api/procedures/registerMetadata.js.map +1 -1
  295. package/api/procedures/removeAssetRequirement.d.ts +4 -4
  296. package/api/procedures/removeAssetRequirement.d.ts.map +1 -1
  297. package/api/procedures/removeAssetRequirement.js +2 -2
  298. package/api/procedures/removeAssetRequirement.js.map +1 -1
  299. package/api/procedures/removeAssetStat.d.ts.map +1 -1
  300. package/api/procedures/removeAssetStat.js +1 -1
  301. package/api/procedures/removeAssetStat.js.map +1 -1
  302. package/api/procedures/removeCheckpointSchedule.d.ts.map +1 -1
  303. package/api/procedures/removeCheckpointSchedule.js +1 -1
  304. package/api/procedures/removeCheckpointSchedule.js.map +1 -1
  305. package/api/procedures/removeCorporateAction.js +1 -1
  306. package/api/procedures/removeCorporateAction.js.map +1 -1
  307. package/api/procedures/removeExternalAgent.d.ts +2 -2
  308. package/api/procedures/removeExternalAgent.d.ts.map +1 -1
  309. package/api/procedures/removeExternalAgent.js +1 -1
  310. package/api/procedures/removeExternalAgent.js.map +1 -1
  311. package/api/procedures/setAssetDocuments.d.ts +5 -5
  312. package/api/procedures/setAssetDocuments.d.ts.map +1 -1
  313. package/api/procedures/setAssetDocuments.js +2 -2
  314. package/api/procedures/setAssetDocuments.js.map +1 -1
  315. package/api/procedures/setAssetRequirements.d.ts +4 -4
  316. package/api/procedures/setAssetRequirements.d.ts.map +1 -1
  317. package/api/procedures/setAssetRequirements.js +4 -4
  318. package/api/procedures/setAssetRequirements.js.map +1 -1
  319. package/api/procedures/setMetadata.d.ts.map +1 -1
  320. package/api/procedures/setMetadata.js +1 -1
  321. package/api/procedures/setMetadata.js.map +1 -1
  322. package/api/procedures/setPermissionGroup.d.ts +2 -2
  323. package/api/procedures/setPermissionGroup.d.ts.map +1 -1
  324. package/api/procedures/setTransferRestrictions.d.ts +1 -1
  325. package/api/procedures/setTransferRestrictions.d.ts.map +1 -1
  326. package/api/procedures/setTransferRestrictions.js +2 -2
  327. package/api/procedures/setTransferRestrictions.js.map +1 -1
  328. package/api/procedures/setVenueFiltering.d.ts.map +1 -1
  329. package/api/procedures/setVenueFiltering.js +1 -1
  330. package/api/procedures/setVenueFiltering.js.map +1 -1
  331. package/api/procedures/toggleFreezeOffering.d.ts.map +1 -1
  332. package/api/procedures/toggleFreezeOffering.js +1 -1
  333. package/api/procedures/toggleFreezeOffering.js.map +1 -1
  334. package/api/procedures/toggleFreezeTransfers.d.ts +4 -4
  335. package/api/procedures/toggleFreezeTransfers.d.ts.map +1 -1
  336. package/api/procedures/toggleFreezeTransfers.js +4 -4
  337. package/api/procedures/toggleFreezeTransfers.js.map +1 -1
  338. package/api/procedures/togglePauseRequirements.d.ts +4 -4
  339. package/api/procedures/togglePauseRequirements.d.ts.map +1 -1
  340. package/api/procedures/togglePauseRequirements.js +2 -2
  341. package/api/procedures/togglePauseRequirements.js.map +1 -1
  342. package/api/procedures/transferAssetOwnership.d.ts.map +1 -1
  343. package/api/procedures/transferAssetOwnership.js +1 -1
  344. package/api/procedures/transferAssetOwnership.js.map +1 -1
  345. package/api/procedures/types.d.ts +78 -7
  346. package/api/procedures/types.d.ts.map +1 -1
  347. package/api/procedures/types.js.map +1 -1
  348. package/api/procedures/unlinkChildIdentity.d.ts +26 -0
  349. package/api/procedures/unlinkChildIdentity.d.ts.map +1 -0
  350. package/api/procedures/unlinkChildIdentity.js +88 -0
  351. package/api/procedures/unlinkChildIdentity.js.map +1 -0
  352. package/api/procedures/utils.d.ts +10 -4
  353. package/api/procedures/utils.d.ts.map +1 -1
  354. package/api/procedures/utils.js +19 -2
  355. package/api/procedures/utils.js.map +1 -1
  356. package/api/procedures/waivePermissions.d.ts +2 -2
  357. package/api/procedures/waivePermissions.d.ts.map +1 -1
  358. package/api/procedures/waivePermissions.js.map +1 -1
  359. package/base/Context.d.ts +10 -2
  360. package/base/Context.d.ts.map +1 -1
  361. package/base/Context.js +23 -0
  362. package/base/Context.js.map +1 -1
  363. package/base/PolymeshTransactionBatch.js +2 -2
  364. package/base/PolymeshTransactionBatch.js.map +1 -1
  365. package/base/Procedure.js.map +1 -1
  366. package/internal.d.ts +6 -2
  367. package/internal.d.ts.map +1 -1
  368. package/internal.js +16 -5
  369. package/internal.js.map +1 -1
  370. package/middleware/queries.d.ts.map +1 -1
  371. package/middleware/queries.js +1 -0
  372. package/middleware/queries.js.map +1 -1
  373. package/npm-package/polymeshassociation-polymesh-sdk-23.0.0-alpha.10.tgz +0 -0
  374. package/package.json +1 -1
  375. package/types/index.d.ts +12 -6
  376. package/types/index.d.ts.map +1 -1
  377. package/types/index.js +7 -1
  378. package/types/index.js.map +1 -1
  379. package/types/internal.d.ts +6 -1
  380. package/types/internal.d.ts.map +1 -1
  381. package/types/internal.js.map +1 -1
  382. package/utils/conversion.d.ts +41 -5
  383. package/utils/conversion.d.ts.map +1 -1
  384. package/utils/conversion.js +94 -18
  385. package/utils/conversion.js.map +1 -1
  386. package/utils/internal.d.ts +47 -6
  387. package/utils/internal.d.ts.map +1 -1
  388. package/utils/internal.js +92 -24
  389. package/utils/internal.js.map +1 -1
  390. package/utils/typeguards.d.ts +10 -6
  391. package/utils/typeguards.d.ts.map +1 -1
  392. package/utils/typeguards.js +15 -8
  393. package/utils/typeguards.js.map +1 -1
  394. package/api/entities/Asset/AssetHolders.d.ts.map +0 -1
  395. package/api/entities/Asset/AssetHolders.js.map +0 -1
  396. package/api/entities/Asset/Checkpoints/Schedules.d.ts.map +0 -1
  397. package/api/entities/Asset/Checkpoints/Schedules.js.map +0 -1
  398. package/api/entities/Asset/Checkpoints/index.d.ts.map +0 -1
  399. package/api/entities/Asset/Checkpoints/index.js.map +0 -1
  400. package/api/entities/Asset/Checkpoints/types.d.ts.map +0 -1
  401. package/api/entities/Asset/Checkpoints/types.js.map +0 -1
  402. package/api/entities/Asset/Compliance/Requirements.d.ts.map +0 -1
  403. package/api/entities/Asset/Compliance/Requirements.js.map +0 -1
  404. package/api/entities/Asset/Compliance/TrustedClaimIssuers.d.ts.map +0 -1
  405. package/api/entities/Asset/Compliance/TrustedClaimIssuers.js.map +0 -1
  406. package/api/entities/Asset/Compliance/index.d.ts.map +0 -1
  407. package/api/entities/Asset/Compliance/index.js.map +0 -1
  408. package/api/entities/Asset/CorporateActions/Distributions.d.ts.map +0 -1
  409. package/api/entities/Asset/CorporateActions/Distributions.js.map +0 -1
  410. package/api/entities/Asset/CorporateActions/index.d.ts.map +0 -1
  411. package/api/entities/Asset/CorporateActions/index.js.map +0 -1
  412. package/api/entities/Asset/CorporateActions/types.d.ts.map +0 -1
  413. package/api/entities/Asset/CorporateActions/types.js.map +0 -1
  414. package/api/entities/Asset/Documents.d.ts.map +0 -1
  415. package/api/entities/Asset/Documents.js.map +0 -1
  416. package/api/entities/Asset/Issuance.d.ts.map +0 -1
  417. package/api/entities/Asset/Issuance.js.map +0 -1
  418. package/api/entities/Asset/Metadata.d.ts.map +0 -1
  419. package/api/entities/Asset/Metadata.js.map +0 -1
  420. package/api/entities/Asset/Offerings.d.ts.map +0 -1
  421. package/api/entities/Asset/Offerings.js.map +0 -1
  422. package/api/entities/Asset/Permissions.d.ts.map +0 -1
  423. package/api/entities/Asset/Permissions.js.map +0 -1
  424. package/api/entities/Asset/Settlements.d.ts.map +0 -1
  425. package/api/entities/Asset/Settlements.js.map +0 -1
  426. package/api/entities/Asset/TransferRestrictions/ClaimCount.d.ts.map +0 -1
  427. package/api/entities/Asset/TransferRestrictions/ClaimCount.js.map +0 -1
  428. package/api/entities/Asset/TransferRestrictions/ClaimPercentage.d.ts.map +0 -1
  429. package/api/entities/Asset/TransferRestrictions/ClaimPercentage.js.map +0 -1
  430. package/api/entities/Asset/TransferRestrictions/Count.d.ts.map +0 -1
  431. package/api/entities/Asset/TransferRestrictions/Count.js.map +0 -1
  432. package/api/entities/Asset/TransferRestrictions/Percentage.d.ts.map +0 -1
  433. package/api/entities/Asset/TransferRestrictions/Percentage.js.map +0 -1
  434. package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.d.ts.map +0 -1
  435. package/api/entities/Asset/TransferRestrictions/TransferRestrictionBase.js.map +0 -1
  436. package/api/entities/Asset/TransferRestrictions/index.d.ts.map +0 -1
  437. package/api/entities/Asset/TransferRestrictions/index.js.map +0 -1
  438. package/npm-package/polymeshassociation-polymesh-sdk-23.0.0-alpha.1.tgz +0 -0
  439. /package/api/entities/Asset/{Checkpoints → Fungible/Checkpoints}/types.js +0 -0
  440. /package/api/entities/Asset/{CorporateActions → Fungible/CorporateActions}/types.js +0 -0
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Nft = void 0;
16
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
+ const internal_1 = require("../../../../internal");
18
+ const conversion_1 = require("../../../../utils/conversion");
19
+ /**
20
+ * Class used to manage Nft functionality
21
+ */
22
+ class Nft extends internal_1.Entity {
23
+ /**
24
+ * @hidden
25
+ */
26
+ constructor(identifiers, context) {
27
+ super(identifiers, context);
28
+ const { ticker, id } = identifiers;
29
+ this.ticker = ticker;
30
+ this.id = id;
31
+ this.collection = new internal_1.NftCollection({ ticker }, context);
32
+ }
33
+ /**
34
+ * @hidden
35
+ * Check if a value is of type {@link UniqueIdentifiers}
36
+ */
37
+ static isUniqueIdentifiers(identifier) {
38
+ const { ticker, id } = identifier;
39
+ return typeof ticker === 'string' && id instanceof bignumber_js_1.default;
40
+ }
41
+ /**
42
+ * Get metadata associated with this token
43
+ */
44
+ getMetadata() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ const { id, context, collection, context: { polymeshApi: { query }, }, } = this;
47
+ const collectionId = yield collection.getCollectionId();
48
+ const rawCollectionId = (0, conversion_1.bigNumberToU64)(collectionId, context);
49
+ const rawId = (0, conversion_1.bigNumberToU64)(id, context);
50
+ const entries = yield query.nft.metadataValue.entries([rawCollectionId, rawId]);
51
+ return entries.map(([storageKey, rawValue]) => {
52
+ const rawMetadataKey = storageKey.args[1];
53
+ const key = (0, conversion_1.meshMetadataKeyToMetadataKey)(rawMetadataKey, collection.ticker);
54
+ const value = (0, conversion_1.bytesToString)(rawValue);
55
+ return { key, value };
56
+ });
57
+ });
58
+ }
59
+ /**
60
+ * Determine if the NFT exists on chain
61
+ *
62
+ * @note This method returns true, even if the token has been redeemed/burned
63
+ */
64
+ exists() {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const { context, context: { polymeshApi: { query }, }, collection, id, } = this;
67
+ const collectionId = yield collection.getCollectionId();
68
+ const rawCollectionId = (0, conversion_1.bigNumberToU64)(collectionId, context);
69
+ // note: "nextId" is actually the last used id
70
+ const rawNextId = yield query.nft.nextNFTId(rawCollectionId);
71
+ const nextId = (0, conversion_1.u64ToBigNumber)(rawNextId);
72
+ return id.lte(nextId);
73
+ });
74
+ }
75
+ /**
76
+ * @hidden
77
+ */
78
+ toHuman() {
79
+ const { ticker, id } = this;
80
+ return JSON.stringify({
81
+ ticker,
82
+ id,
83
+ });
84
+ }
85
+ }
86
+ exports.Nft = Nft;
87
+ //# sourceMappingURL=Nft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nft.js","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/NonFungible/Nft.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AAErC,mDAA4D;AAE5D,6DAK4B;AAO5B;;GAEG;AACH,MAAa,GAAI,SAAQ,iBAAoC;IAmB3D;;OAEG;IACH,YAAY,WAAiC,EAAE,OAAgB;QAC7D,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAE5B,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,CAAC;QAEnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QAEb,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAa,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAxBD;;;OAGG;IACI,MAAM,CAAU,mBAAmB,CACxC,UAAmB;QAEnB,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,UAAkC,CAAC;QAE1D,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,EA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SAAS,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;YAC7D,MAAM,MAAM,GAAG,IAAA,2BAAc,EAAC,SAAS,CAAC,CAAC;YAEzC,OAAO,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;KAAA;IAED;;OAEG;IACI,OAAO;QACZ,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC;QAE5B,OAAO,IAAI,CAAC,SAAS,CAAC;YACpB,MAAM;YACN,EAAE;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAjGD,kBAiGC"}
@@ -0,0 +1,55 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { BaseAsset } from "../Base";
3
+ import { Nft } from "./Nft";
4
+ import { Context } from "../../../../internal";
5
+ import { AssetDetails, EventIdentifier, IssueNftParams, MetadataKeyId, ProcedureMethod, SubCallback, UniqueIdentifiers, UnsubCallback } from "../../../../types";
6
+ /**
7
+ * Class used to manage Nft functionality
8
+ */
9
+ export declare class NftCollection extends BaseAsset {
10
+ /**
11
+ * Issues a new NFT for the collection
12
+ */
13
+ issue: ProcedureMethod<IssueNftParams, Nft>;
14
+ /**
15
+ * Caches value for `getCollectionId`
16
+ *
17
+ * @hidden
18
+ */
19
+ private id?;
20
+ /**
21
+ * @hidden
22
+ */
23
+ constructor(identifiers: UniqueIdentifiers, context: Context);
24
+ /**
25
+ * Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created
26
+ *
27
+ * @note uses the middlewareV2
28
+ * @note there is a possibility that the data is not ready by the time it is requested. In that case, `null` is returned
29
+ */
30
+ createdAt(): Promise<EventIdentifier | null>;
31
+ /**
32
+ * Retrieve the NftCollection's data
33
+ *
34
+ * @note can be subscribed to
35
+ */
36
+ details(): Promise<AssetDetails>;
37
+ details(callback: SubCallback<AssetDetails>): Promise<UnsubCallback>;
38
+ /**
39
+ * Get metadata keys that each NFT in the collection must have
40
+ */
41
+ collectionMetadataKeys(): Promise<MetadataKeyId[]>;
42
+ /**
43
+ * Retrieve the amount of unique investors that hold this Nft
44
+ */
45
+ investorCount(): Promise<BigNumber>;
46
+ /**
47
+ * Determine whether this NftCollection exists on chain
48
+ */
49
+ exists(): Promise<boolean>;
50
+ /**
51
+ * Returns the collection id
52
+ */
53
+ getCollectionId(): Promise<BigNumber>;
54
+ }
55
+ //# sourceMappingURL=NftCollection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NftCollection.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/NonFungible/NftCollection.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,gBAAkC;AACtD,OAAO,EAAE,GAAG,EAAE,cAA6C;AAE3D,OAAO,EAAE,OAAO,EAA0B,6BAAmB;AAG7D,OAAO,EACL,YAAY,EACZ,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,aAAa,EACd,0BAAgB;AAuBjB;;GAEG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;OAEG;IACI,KAAK,EAAE,eAAe,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;IAEnD;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,CAAY;IAEvB;;OAEG;gBACS,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO;IAkB5D;;;;;OAKG;IACU,SAAS,IAAI,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAkBzD;;;;OAIG;IACa,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;IAChC,OAAO,CAAC,QAAQ,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC;IA0CpF;;OAEG;IACU,sBAAsB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;IAgB/D;;OAEG;IACU,aAAa,IAAI,OAAO,CAAC,SAAS,CAAC;IAkBhD;;OAEG;IACmB,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;IAUhD;;OAEG;IACU,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC;CAoBnD"}
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.NftCollection = void 0;
16
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
+ const Base_1 = require("../Base");
18
+ const issueNft_1 = require("../../../procedures/issueNft");
19
+ const internal_1 = require("../../../../internal");
20
+ const queries_1 = require("../../../../middleware/queries");
21
+ const conversion_1 = require("../../../../utils/conversion");
22
+ const internal_2 = require("../../../../utils/internal");
23
+ const sumNftIssuance = (numberOfNfts) => {
24
+ let numberIssued = new bignumber_js_1.default(0);
25
+ numberOfNfts.forEach(([, holderEntry]) => {
26
+ const holderAmount = (0, conversion_1.u64ToBigNumber)(holderEntry);
27
+ numberIssued = numberIssued.plus(holderAmount);
28
+ });
29
+ return numberIssued;
30
+ };
31
+ /**
32
+ * Class used to manage Nft functionality
33
+ */
34
+ class NftCollection extends Base_1.BaseAsset {
35
+ /**
36
+ * @hidden
37
+ */
38
+ constructor(identifiers, context) {
39
+ super(identifiers, context);
40
+ const { ticker } = identifiers;
41
+ this.transferOwnership = (0, internal_2.createProcedureMethod)({ getProcedureAndArgs: args => [internal_1.transferAssetOwnership, Object.assign({ ticker }, args)] }, context);
42
+ this.issue = (0, internal_2.createProcedureMethod)({
43
+ getProcedureAndArgs: args => [issueNft_1.issueNft, Object.assign({ ticker }, args)],
44
+ }, context);
45
+ }
46
+ /**
47
+ * Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created
48
+ *
49
+ * @note uses the middlewareV2
50
+ * @note there is a possibility that the data is not ready by the time it is requested. In that case, `null` is returned
51
+ */
52
+ createdAt() {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const { ticker, context } = this;
55
+ const { data: { assets: { nodes: [asset], }, }, } = yield context.queryMiddleware((0, queries_1.assetQuery)({
56
+ ticker,
57
+ }));
58
+ return (0, internal_2.optionize)(conversion_1.middlewareEventDetailsToEventIdentifier)(asset === null || asset === void 0 ? void 0 : asset.createdBlock, asset === null || asset === void 0 ? void 0 : asset.eventIdx);
59
+ });
60
+ }
61
+ // eslint-disable-next-line require-jsdoc
62
+ details(callback) {
63
+ const _super = Object.create(null, {
64
+ details: { get: () => super.details }
65
+ });
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const { context: { polymeshApi: { query }, }, ticker, context, } = this;
68
+ const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
69
+ const rawNumberNftsPromise = query.nft.numberOfNFTs.entries(rawTicker);
70
+ if (callback) {
71
+ const rawNumberNfts = yield rawNumberNftsPromise;
72
+ const numberIssued = sumNftIssuance(rawNumberNfts);
73
+ // currently `asset.tokens` does not track Nft `totalSupply', we wrap the callback to provide it
74
+ const wrappedCallback = (commonDetails) => __awaiter(this, void 0, void 0, function* () {
75
+ const nftDetails = Object.assign(Object.assign({}, commonDetails), { totalSupply: numberIssued });
76
+ // eslint-disable-next-line @typescript-eslint/no-floating-promises
77
+ callback(nftDetails);
78
+ });
79
+ return _super.details.call(this, wrappedCallback);
80
+ }
81
+ const [rawNumberNfts, commonDetails] = yield Promise.all([
82
+ rawNumberNftsPromise,
83
+ _super.details.call(this),
84
+ ]);
85
+ const numberIssued = sumNftIssuance(rawNumberNfts);
86
+ return Object.assign(Object.assign({}, commonDetails), { totalSupply: numberIssued });
87
+ });
88
+ }
89
+ /**
90
+ * Get metadata keys that each NFT in the collection must have
91
+ */
92
+ collectionMetadataKeys() {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ const { context, ticker, context: { polymeshApi: { query }, }, } = this;
95
+ const id = yield this.getCollectionId();
96
+ const rawId = (0, conversion_1.bigNumberToU64)(id, context);
97
+ const rawKeys = yield query.nft.collectionKeys(rawId);
98
+ return [...rawKeys].map(value => (0, conversion_1.meshMetadataKeyToMetadataKey)(value, ticker));
99
+ });
100
+ }
101
+ /**
102
+ * Retrieve the amount of unique investors that hold this Nft
103
+ */
104
+ investorCount() {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const { context: { polymeshApi: { query }, }, context, ticker, } = this;
107
+ const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
108
+ const holderEntries = yield query.nft.numberOfNFTs.entries(rawTicker);
109
+ const assetBalances = holderEntries.filter(([, balance]) => !balance.isZero());
110
+ return new bignumber_js_1.default(assetBalances.length);
111
+ });
112
+ }
113
+ /**
114
+ * Determine whether this NftCollection exists on chain
115
+ */
116
+ exists() {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ const { ticker, context } = this;
119
+ const rawTokenId = yield context.polymeshApi.query.nft.collectionTicker((0, conversion_1.stringToTicker)(ticker, context));
120
+ return !rawTokenId.isZero();
121
+ });
122
+ }
123
+ /**
124
+ * Returns the collection id
125
+ */
126
+ getCollectionId() {
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ const { ticker, context, context: { polymeshApi: { query }, }, } = this;
129
+ if (this.id) {
130
+ return this.id;
131
+ }
132
+ const rawTicker = (0, conversion_1.stringToTicker)(ticker, context);
133
+ const rawId = yield query.nft.collectionTicker(rawTicker);
134
+ this.id = (0, conversion_1.u64ToBigNumber)(rawId);
135
+ return this.id;
136
+ });
137
+ }
138
+ }
139
+ exports.NftCollection = NftCollection;
140
+ //# sourceMappingURL=NftCollection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NftCollection.js","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/NonFungible/NftCollection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,gEAAqC;AAErC,kCAAsD;AAEtD,2DAAqD;AACrD,mDAA6D;AAC7D,4DAAkD;AAalD,6DAM4B;AAC5B,yDAAoE;AAEpE,MAAM,cAAc,GAAG,CACrB,YAA2F,EAChF,EAAE;IACb,IAAI,YAAY,GAAG,IAAI,sBAAS,CAAC,CAAC,CAAC,CAAC;IACpC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,EAAE,EAAE;QACvC,MAAM,YAAY,GAAG,IAAA,2BAAc,EAAC,WAAW,CAAC,CAAC;QACjD,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF;;GAEG;AACH,MAAa,aAAc,SAAQ,gBAAS;IAa1C;;OAEG;IACH,YAAY,WAA8B,EAAE,OAAgB;QAC1D,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAE5B,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,iBAAiB,GAAG,IAAA,gCAAqB,EAC5C,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,iCAAsB,kBAAI,MAAM,IAAK,IAAI,EAAG,EAAE,EAC9E,OAAO,CACR,CAAC;QAEF,IAAI,CAAC,KAAK,GAAG,IAAA,gCAAqB,EAChC;YACE,mBAAmB,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,mBAAQ,kBAAI,MAAM,IAAK,IAAI,EAAG;SAC7D,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;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;;OAEG;IACmB,MAAM;;YAC1B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;YAEjC,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,gBAAgB,CACrE,IAAA,2BAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAChC,CAAC;YAEF,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAC9B,CAAC;KAAA;IAED;;OAEG;IACU,eAAe;;YAC1B,MAAM,EACJ,MAAM,EACN,OAAO,EACP,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,KAAK,EAAE,GACvB,GACF,GAAG,IAAI,CAAC;YAET,IAAI,IAAI,CAAC,EAAE,EAAE;gBACX,OAAO,IAAI,CAAC,EAAE,CAAC;aAChB;YAED,MAAM,SAAS,GAAG,IAAA,2BAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAClD,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;YAE1D,IAAI,CAAC,EAAE,GAAG,IAAA,2BAAc,EAAC,KAAK,CAAC,CAAC;YAEhC,OAAO,IAAI,CAAC,EAAE,CAAC;QACjB,CAAC;KAAA;CACF;AAtLD,sCAsLC"}
@@ -0,0 +1,3 @@
1
+ export * from './NftCollection';
2
+ export * from './Nft';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/NonFungible/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,OAAO,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./NftCollection"), exports);
18
+ __exportStar(require("./Nft"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/entities/Asset/NonFungible/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,wCAAsB"}
@@ -1,159 +1,5 @@
1
- import BigNumber from 'bignumber.js';
2
- import { Metadata } from "./Metadata";
3
- import { AuthorizationRequest, Context, Entity } from "../../../internal";
4
- import { ControllerTransferParams, EventIdentifier, HistoricAgentOperation, HistoricAssetTransaction, ModifyAssetParams, NoArgsProcedureMethod, ProcedureMethod, RedeemTokensParams, ResultSet, SecurityIdentifier, SetVenueFilteringParams, SubCallback, TransferAssetOwnershipParams, UnsubCallback } from "../../../types";
5
- import { AssetHolders } from './AssetHolders';
6
- import { Checkpoints } from './Checkpoints';
7
- import { Compliance } from './Compliance';
8
- import { CorporateActions } from './CorporateActions';
9
- import { Documents } from './Documents';
10
- import { Issuance } from './Issuance';
11
- import { Offerings } from './Offerings';
12
- import { Permissions } from './Permissions';
13
- import { Settlements } from './Settlements';
14
- import { TransferRestrictions } from './TransferRestrictions';
15
- import { AssetDetails } from './types';
16
- /**
17
- * Properties that uniquely identify an Asset
18
- */
19
- export interface UniqueIdentifiers {
20
- /**
21
- * ticker of the Asset
22
- */
23
- ticker: string;
24
- }
25
- /**
26
- * Class used to manage all Asset functionality
27
- */
28
- export declare class Asset extends Entity<UniqueIdentifiers, string> {
29
- /**
30
- * @hidden
31
- * Check if a value is of type {@link UniqueIdentifiers}
32
- */
33
- static isUniqueIdentifiers(identifier: unknown): identifier is UniqueIdentifiers;
34
- /**
35
- * Identity ID of the Asset (used for Claims)
36
- */
37
- did: string;
38
- /**
39
- * ticker of the Asset
40
- */
41
- ticker: string;
42
- documents: Documents;
43
- settlements: Settlements;
44
- assetHolders: AssetHolders;
45
- issuance: Issuance;
46
- compliance: Compliance;
47
- transferRestrictions: TransferRestrictions;
48
- offerings: Offerings;
49
- checkpoints: Checkpoints;
50
- corporateActions: CorporateActions;
51
- permissions: Permissions;
52
- metadata: Metadata;
53
- /**
54
- * @hidden
55
- */
56
- constructor(identifiers: UniqueIdentifiers, context: Context);
57
- /**
58
- * Transfer ownership of the Asset to another Identity. This generates an authorization request that must be accepted
59
- * by the recipient
60
- *
61
- * @note this will create {@link api/entities/AuthorizationRequest!AuthorizationRequest | Authorization Request} which has to be accepted by the `target` Identity.
62
- * An {@link api/entities/Account!Account} or {@link api/entities/Identity!Identity} can fetch its pending Authorization Requests by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getReceived | authorizations.getReceived}.
63
- * Also, an Account or Identity can directly fetch the details of an Authorization Request by calling {@link api/entities/common/namespaces/Authorizations!Authorizations.getOne | authorizations.getOne}
64
- */
65
- transferOwnership: ProcedureMethod<TransferAssetOwnershipParams, AuthorizationRequest>;
66
- /**
67
- * Modify some properties of the Asset
68
- *
69
- * @throws if the passed values result in no changes being made to the Asset
70
- */
71
- modify: ProcedureMethod<ModifyAssetParams, Asset>;
72
- /**
73
- * Retrieve the Asset's data
74
- *
75
- * @note can be subscribed to
76
- */
77
- details(): Promise<AssetDetails>;
78
- details(callback: SubCallback<AssetDetails>): Promise<UnsubCallback>;
79
- /**
80
- * Retrieve the Asset's funding round
81
- *
82
- * @note can be subscribed to
83
- */
84
- currentFundingRound(): Promise<string | null>;
85
- currentFundingRound(callback: SubCallback<string | null>): Promise<UnsubCallback>;
86
- /**
87
- * Retrieve the Asset's identifiers list
88
- *
89
- * @note can be subscribed to
90
- */
91
- getIdentifiers(): Promise<SecurityIdentifier[]>;
92
- getIdentifiers(callback?: SubCallback<SecurityIdentifier[]>): Promise<UnsubCallback>;
93
- /**
94
- * Retrieve the identifier data (block number, date and event index) of the event that was emitted when the token was created
95
- *
96
- * @note uses the middlewareV2
97
- * @note there is a possibility that the data is not ready by the time it is requested. In that case, `null` is returned
98
- */
99
- createdAt(): Promise<EventIdentifier | null>;
100
- /**
101
- * Freeze transfers of the Asset
102
- */
103
- freeze: NoArgsProcedureMethod<Asset>;
104
- /**
105
- * Unfreeze transfers of the Asset
106
- */
107
- unfreeze: NoArgsProcedureMethod<Asset>;
108
- /**
109
- * Check whether transfers are frozen for the Asset
110
- *
111
- * @note can be subscribed to
112
- */
113
- isFrozen(): Promise<boolean>;
114
- isFrozen(callback: SubCallback<boolean>): Promise<UnsubCallback>;
115
- /**
116
- * Redeem (burn) an amount of this Asset's tokens
117
- *
118
- * @note tokens are removed from the caller's Default Portfolio
119
- */
120
- redeem: ProcedureMethod<RedeemTokensParams, void>;
121
- /**
122
- * Retrieve the amount of unique investors that hold this Asset
123
- */
124
- investorCount(): Promise<BigNumber>;
125
- /**
126
- * Force a transfer from a given Portfolio to the caller’s default Portfolio
127
- */
128
- controllerTransfer: ProcedureMethod<ControllerTransferParams, void>;
129
- /**
130
- * Retrieve this Asset's Operation History
131
- *
132
- * @note Operations are grouped by the agent Identity who performed them
133
- *
134
- * @note uses the middlewareV2
135
- */
136
- getOperationHistory(): Promise<HistoricAgentOperation[]>;
137
- /**
138
- * Retrieve this Asset's transaction History
139
- *
140
- * @note uses the middlewareV2
141
- */
142
- getTransactionHistory(opts: {
143
- size?: BigNumber;
144
- start?: BigNumber;
145
- }): Promise<ResultSet<HistoricAssetTransaction>>;
146
- /**
147
- * Determine whether this Asset exists on chain
148
- */
149
- exists(): Promise<boolean>;
150
- /**
151
- * Return the Asset's ticker
152
- */
153
- toHuman(): string;
154
- /**
155
- * Enable/disable venue filtering for this Asset and/or set allowed/disallowed venues
156
- */
157
- setVenueFiltering: ProcedureMethod<SetVenueFilteringParams, void>;
158
- }
1
+ export * from './Fungible';
2
+ export * from './NonFungible';
3
+ export * from './Base';
4
+ export * from './types';
159
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/Asset/index.ts"],"names":[],"mappings":"AAOA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,mBAAsC;AACzD,OAAO,EACL,oBAAoB,EACpB,OAAO,EAEP,MAAM,EAQP,0BAAmB;AAOpB,OAAO,EACL,wBAAwB,EAExB,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,4BAA4B,EAC5B,aAAa,EACd,uBAAgB;AAiBjB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;A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