nem-libray 2.0.0-RC4

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 (388) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/index.d.ts +4 -0
  4. package/dist/index.js +38 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/src/NEMLibrary.d.ts +25 -0
  7. package/dist/src/NEMLibrary.js +69 -0
  8. package/dist/src/NEMLibrary.js.map +1 -0
  9. package/dist/src/infrastrcture.d.ts +13 -0
  10. package/dist/src/infrastrcture.js +44 -0
  11. package/dist/src/infrastrcture.js.map +1 -0
  12. package/dist/src/infrastructure/AccountHttp.d.ts +204 -0
  13. package/dist/src/infrastructure/AccountHttp.js +415 -0
  14. package/dist/src/infrastructure/AccountHttp.js.map +1 -0
  15. package/dist/src/infrastructure/AccountListener.d.ts +20 -0
  16. package/dist/src/infrastructure/AccountListener.js +71 -0
  17. package/dist/src/infrastructure/AccountListener.js.map +1 -0
  18. package/dist/src/infrastructure/AllTransactionsPageable.d.ts +1 -0
  19. package/dist/src/infrastructure/AllTransactionsPageable.js +35 -0
  20. package/dist/src/infrastructure/AllTransactionsPageable.js.map +1 -0
  21. package/dist/src/infrastructure/AssetHttp.d.ts +36 -0
  22. package/dist/src/infrastructure/AssetHttp.js +85 -0
  23. package/dist/src/infrastructure/AssetHttp.js.map +1 -0
  24. package/dist/src/infrastructure/BlockHttp.d.ts +14 -0
  25. package/dist/src/infrastructure/BlockHttp.js +54 -0
  26. package/dist/src/infrastructure/BlockHttp.js.map +1 -0
  27. package/dist/src/infrastructure/BlockchainListener.d.ts +24 -0
  28. package/dist/src/infrastructure/BlockchainListener.js +93 -0
  29. package/dist/src/infrastructure/BlockchainListener.js.map +1 -0
  30. package/dist/src/infrastructure/ChainHttp.d.ts +23 -0
  31. package/dist/src/infrastructure/ChainHttp.js +68 -0
  32. package/dist/src/infrastructure/ChainHttp.js.map +1 -0
  33. package/dist/src/infrastructure/ConfirmedTransactionListener.d.ts +20 -0
  34. package/dist/src/infrastructure/ConfirmedTransactionListener.js +76 -0
  35. package/dist/src/infrastructure/ConfirmedTransactionListener.js.map +1 -0
  36. package/dist/src/infrastructure/HarvestInfoPageable.d.ts +1 -0
  37. package/dist/src/infrastructure/HarvestInfoPageable.js +52 -0
  38. package/dist/src/infrastructure/HarvestInfoPageable.js.map +1 -0
  39. package/dist/src/infrastructure/HttpEndpoint.d.ts +15 -0
  40. package/dist/src/infrastructure/HttpEndpoint.js +132 -0
  41. package/dist/src/infrastructure/HttpEndpoint.js.map +1 -0
  42. package/dist/src/infrastructure/IncomingTransactionsPageable.d.ts +1 -0
  43. package/dist/src/infrastructure/IncomingTransactionsPageable.js +29 -0
  44. package/dist/src/infrastructure/IncomingTransactionsPageable.js.map +1 -0
  45. package/dist/src/infrastructure/Listener.d.ts +14 -0
  46. package/dist/src/infrastructure/Listener.js +101 -0
  47. package/dist/src/infrastructure/Listener.js.map +1 -0
  48. package/dist/src/infrastructure/NamespaceHttp.d.ts +27 -0
  49. package/dist/src/infrastructure/NamespaceHttp.js +78 -0
  50. package/dist/src/infrastructure/NamespaceHttp.js.map +1 -0
  51. package/dist/src/infrastructure/NamespacesPageable.d.ts +1 -0
  52. package/dist/src/infrastructure/NamespacesPageable.js +28 -0
  53. package/dist/src/infrastructure/NamespacesPageable.js.map +1 -0
  54. package/dist/src/infrastructure/NodeHttp.d.ts +45 -0
  55. package/dist/src/infrastructure/NodeHttp.js +116 -0
  56. package/dist/src/infrastructure/NodeHttp.js.map +1 -0
  57. package/dist/src/infrastructure/OutgoingTransactionsPageable.d.ts +1 -0
  58. package/dist/src/infrastructure/OutgoingTransactionsPageable.js +59 -0
  59. package/dist/src/infrastructure/OutgoingTransactionsPageable.js.map +1 -0
  60. package/dist/src/infrastructure/Pageable.d.ts +10 -0
  61. package/dist/src/infrastructure/Pageable.js +55 -0
  62. package/dist/src/infrastructure/Pageable.js.map +1 -0
  63. package/dist/src/infrastructure/TransactionHttp.d.ts +20 -0
  64. package/dist/src/infrastructure/TransactionHttp.js +68 -0
  65. package/dist/src/infrastructure/TransactionHttp.js.map +1 -0
  66. package/dist/src/infrastructure/UnconfirmedTransactionListener.d.ts +20 -0
  67. package/dist/src/infrastructure/UnconfirmedTransactionListener.js +76 -0
  68. package/dist/src/infrastructure/UnconfirmedTransactionListener.js.map +1 -0
  69. package/dist/src/infrastructure/account/AccountHistoricalDataViewModelDTO.d.ts +1 -0
  70. package/dist/src/infrastructure/account/AccountHistoricalDataViewModelDTO.js +26 -0
  71. package/dist/src/infrastructure/account/AccountHistoricalDataViewModelDTO.js.map +1 -0
  72. package/dist/src/infrastructure/account/AccountImportanceViewModelDTO.d.ts +1 -0
  73. package/dist/src/infrastructure/account/AccountImportanceViewModelDTO.js +26 -0
  74. package/dist/src/infrastructure/account/AccountImportanceViewModelDTO.js.map +1 -0
  75. package/dist/src/infrastructure/account/AccountInfoDTO.d.ts +10 -0
  76. package/dist/src/infrastructure/account/AccountInfoDTO.js +26 -0
  77. package/dist/src/infrastructure/account/AccountInfoDTO.js.map +1 -0
  78. package/dist/src/infrastructure/account/AccountMetaDataDTO.d.ts +1 -0
  79. package/dist/src/infrastructure/account/AccountMetaDataDTO.js +26 -0
  80. package/dist/src/infrastructure/account/AccountMetaDataDTO.js.map +1 -0
  81. package/dist/src/infrastructure/account/AccountMetaDataPairDTO.d.ts +1 -0
  82. package/dist/src/infrastructure/account/AccountMetaDataPairDTO.js +26 -0
  83. package/dist/src/infrastructure/account/AccountMetaDataPairDTO.js.map +1 -0
  84. package/dist/src/infrastructure/account/AccountPrivateKeyTransactionsPageDTO.d.ts +1 -0
  85. package/dist/src/infrastructure/account/AccountPrivateKeyTransactionsPageDTO.js +26 -0
  86. package/dist/src/infrastructure/account/AccountPrivateKeyTransactionsPageDTO.js.map +1 -0
  87. package/dist/src/infrastructure/account/HarvestInfoDTO.d.ts +1 -0
  88. package/dist/src/infrastructure/account/HarvestInfoDTO.js +26 -0
  89. package/dist/src/infrastructure/account/HarvestInfoDTO.js.map +1 -0
  90. package/dist/src/infrastructure/account/KeyPairViewModelDTO.d.ts +1 -0
  91. package/dist/src/infrastructure/account/KeyPairViewModelDTO.js +26 -0
  92. package/dist/src/infrastructure/account/KeyPairViewModelDTO.js.map +1 -0
  93. package/dist/src/infrastructure/account/PrivateKeyDTO.d.ts +1 -0
  94. package/dist/src/infrastructure/account/PrivateKeyDTO.js +26 -0
  95. package/dist/src/infrastructure/account/PrivateKeyDTO.js.map +1 -0
  96. package/dist/src/infrastructure/asset/MosaicDTO.d.ts +1 -0
  97. package/dist/src/infrastructure/asset/MosaicDTO.js +26 -0
  98. package/dist/src/infrastructure/asset/MosaicDTO.js.map +1 -0
  99. package/dist/src/infrastructure/asset/MosaicDefinitionDTO.d.ts +1 -0
  100. package/dist/src/infrastructure/asset/MosaicDefinitionDTO.js +26 -0
  101. package/dist/src/infrastructure/asset/MosaicDefinitionDTO.js.map +1 -0
  102. package/dist/src/infrastructure/asset/MosaicDefinitionMetaDataPairDTO.d.ts +1 -0
  103. package/dist/src/infrastructure/asset/MosaicDefinitionMetaDataPairDTO.js +26 -0
  104. package/dist/src/infrastructure/asset/MosaicDefinitionMetaDataPairDTO.js.map +1 -0
  105. package/dist/src/infrastructure/asset/MosaicIdDTO.d.ts +1 -0
  106. package/dist/src/infrastructure/asset/MosaicIdDTO.js +26 -0
  107. package/dist/src/infrastructure/asset/MosaicIdDTO.js.map +1 -0
  108. package/dist/src/infrastructure/asset/MosaicLevyDTO.d.ts +1 -0
  109. package/dist/src/infrastructure/asset/MosaicLevyDTO.js +26 -0
  110. package/dist/src/infrastructure/asset/MosaicLevyDTO.js.map +1 -0
  111. package/dist/src/infrastructure/asset/MosaicPropertyDTO.d.ts +8 -0
  112. package/dist/src/infrastructure/asset/MosaicPropertyDTO.js +26 -0
  113. package/dist/src/infrastructure/asset/MosaicPropertyDTO.js.map +1 -0
  114. package/dist/src/infrastructure/blockchain/BlockChainScoreDTO.d.ts +1 -0
  115. package/dist/src/infrastructure/blockchain/BlockChainScoreDTO.js +26 -0
  116. package/dist/src/infrastructure/blockchain/BlockChainScoreDTO.js.map +1 -0
  117. package/dist/src/infrastructure/blockchain/BlockDTO.d.ts +6 -0
  118. package/dist/src/infrastructure/blockchain/BlockDTO.js +26 -0
  119. package/dist/src/infrastructure/blockchain/BlockDTO.js.map +1 -0
  120. package/dist/src/infrastructure/blockchain/BlockHeightDTO.d.ts +1 -0
  121. package/dist/src/infrastructure/blockchain/BlockHeightDTO.js +26 -0
  122. package/dist/src/infrastructure/blockchain/BlockHeightDTO.js.map +1 -0
  123. package/dist/src/infrastructure/blockchain/ExplorerBlockViewModelDTO.d.ts +1 -0
  124. package/dist/src/infrastructure/blockchain/ExplorerBlockViewModelDTO.js +26 -0
  125. package/dist/src/infrastructure/blockchain/ExplorerBlockViewModelDTO.js.map +1 -0
  126. package/dist/src/infrastructure/debug/AuditCollectionDTO.d.ts +22 -0
  127. package/dist/src/infrastructure/debug/AuditCollectionDTO.js +26 -0
  128. package/dist/src/infrastructure/debug/AuditCollectionDTO.js.map +1 -0
  129. package/dist/src/infrastructure/debug/NemAsyncTimerVisitorDTO.d.ts +1 -0
  130. package/dist/src/infrastructure/debug/NemAsyncTimerVisitorDTO.js +26 -0
  131. package/dist/src/infrastructure/debug/NemAsyncTimerVisitorDTO.js.map +1 -0
  132. package/dist/src/infrastructure/debug/NisNodeInfoDTO.d.ts +1 -0
  133. package/dist/src/infrastructure/debug/NisNodeInfoDTO.js +26 -0
  134. package/dist/src/infrastructure/debug/NisNodeInfoDTO.js.map +1 -0
  135. package/dist/src/infrastructure/debug/TimeSynchronizationResultDTO.d.ts +1 -0
  136. package/dist/src/infrastructure/debug/TimeSynchronizationResultDTO.js +26 -0
  137. package/dist/src/infrastructure/debug/TimeSynchronizationResultDTO.js.map +1 -0
  138. package/dist/src/infrastructure/namespace/NamespaceDTO.d.ts +1 -0
  139. package/dist/src/infrastructure/namespace/NamespaceDTO.js +26 -0
  140. package/dist/src/infrastructure/namespace/NamespaceDTO.js.map +1 -0
  141. package/dist/src/infrastructure/namespace/NamespaceMetaDataPairDTO.d.ts +1 -0
  142. package/dist/src/infrastructure/namespace/NamespaceMetaDataPairDTO.js +26 -0
  143. package/dist/src/infrastructure/namespace/NamespaceMetaDataPairDTO.js.map +1 -0
  144. package/dist/src/infrastructure/node/ApplicationMetaDataDTO.d.ts +1 -0
  145. package/dist/src/infrastructure/node/ApplicationMetaDataDTO.js +26 -0
  146. package/dist/src/infrastructure/node/ApplicationMetaDataDTO.js.map +1 -0
  147. package/dist/src/infrastructure/node/BootNodeRequestDTO.d.ts +1 -0
  148. package/dist/src/infrastructure/node/BootNodeRequestDTO.js +26 -0
  149. package/dist/src/infrastructure/node/BootNodeRequestDTO.js.map +1 -0
  150. package/dist/src/infrastructure/node/CommunicationTimeStampsDTO.d.ts +1 -0
  151. package/dist/src/infrastructure/node/CommunicationTimeStampsDTO.js +26 -0
  152. package/dist/src/infrastructure/node/CommunicationTimeStampsDTO.js.map +1 -0
  153. package/dist/src/infrastructure/node/ExtendedNodeExperiencePairDTO.d.ts +1 -0
  154. package/dist/src/infrastructure/node/ExtendedNodeExperiencePairDTO.js +26 -0
  155. package/dist/src/infrastructure/node/ExtendedNodeExperiencePairDTO.js.map +1 -0
  156. package/dist/src/infrastructure/node/NodeCollectionDTO.d.ts +1 -0
  157. package/dist/src/infrastructure/node/NodeCollectionDTO.js +26 -0
  158. package/dist/src/infrastructure/node/NodeCollectionDTO.js.map +1 -0
  159. package/dist/src/infrastructure/node/NodeDTO.d.ts +19 -0
  160. package/dist/src/infrastructure/node/NodeDTO.js +26 -0
  161. package/dist/src/infrastructure/node/NodeDTO.js.map +1 -0
  162. package/dist/src/infrastructure/transaction/CreateTransactionFromDTO.d.ts +1 -0
  163. package/dist/src/infrastructure/transaction/CreateTransactionFromDTO.js +162 -0
  164. package/dist/src/infrastructure/transaction/CreateTransactionFromDTO.js.map +1 -0
  165. package/dist/src/infrastructure/transaction/CreateUnconfirmedTransactionFromDTO.d.ts +1 -0
  166. package/dist/src/infrastructure/transaction/CreateUnconfirmedTransactionFromDTO.js +104 -0
  167. package/dist/src/infrastructure/transaction/CreateUnconfirmedTransactionFromDTO.js.map +1 -0
  168. package/dist/src/infrastructure/transaction/ErrorObjectDTO.d.ts +1 -0
  169. package/dist/src/infrastructure/transaction/ErrorObjectDTO.js +26 -0
  170. package/dist/src/infrastructure/transaction/ErrorObjectDTO.js.map +1 -0
  171. package/dist/src/infrastructure/transaction/HashData.d.ts +10 -0
  172. package/dist/src/infrastructure/transaction/HashData.js +26 -0
  173. package/dist/src/infrastructure/transaction/HashData.js.map +1 -0
  174. package/dist/src/infrastructure/transaction/ImportanceTransferTransactionDTO.d.ts +1 -0
  175. package/dist/src/infrastructure/transaction/ImportanceTransferTransactionDTO.js +26 -0
  176. package/dist/src/infrastructure/transaction/ImportanceTransferTransactionDTO.js.map +1 -0
  177. package/dist/src/infrastructure/transaction/Message.d.ts +1 -0
  178. package/dist/src/infrastructure/transaction/Message.js +26 -0
  179. package/dist/src/infrastructure/transaction/Message.js.map +1 -0
  180. package/dist/src/infrastructure/transaction/MosaicDefinitionCreationTransactionDTO.d.ts +1 -0
  181. package/dist/src/infrastructure/transaction/MosaicDefinitionCreationTransactionDTO.js +26 -0
  182. package/dist/src/infrastructure/transaction/MosaicDefinitionCreationTransactionDTO.js.map +1 -0
  183. package/dist/src/infrastructure/transaction/MosaicSupplyChangeTransactionDTO.d.ts +1 -0
  184. package/dist/src/infrastructure/transaction/MosaicSupplyChangeTransactionDTO.js +26 -0
  185. package/dist/src/infrastructure/transaction/MosaicSupplyChangeTransactionDTO.js.map +1 -0
  186. package/dist/src/infrastructure/transaction/MultisigAggregateModificationTransactionDTO.d.ts +1 -0
  187. package/dist/src/infrastructure/transaction/MultisigAggregateModificationTransactionDTO.js +26 -0
  188. package/dist/src/infrastructure/transaction/MultisigAggregateModificationTransactionDTO.js.map +1 -0
  189. package/dist/src/infrastructure/transaction/MultisigCosignatoryModificationDTO.d.ts +1 -0
  190. package/dist/src/infrastructure/transaction/MultisigCosignatoryModificationDTO.js +26 -0
  191. package/dist/src/infrastructure/transaction/MultisigCosignatoryModificationDTO.js.map +1 -0
  192. package/dist/src/infrastructure/transaction/MultisigSignatureTransactionDTO.d.ts +1 -0
  193. package/dist/src/infrastructure/transaction/MultisigSignatureTransactionDTO.js +26 -0
  194. package/dist/src/infrastructure/transaction/MultisigSignatureTransactionDTO.js.map +1 -0
  195. package/dist/src/infrastructure/transaction/MultisigTransactionDTO.d.ts +1 -0
  196. package/dist/src/infrastructure/transaction/MultisigTransactionDTO.js +26 -0
  197. package/dist/src/infrastructure/transaction/MultisigTransactionDTO.js.map +1 -0
  198. package/dist/src/infrastructure/transaction/NemAnnounceResultDTO.d.ts +1 -0
  199. package/dist/src/infrastructure/transaction/NemAnnounceResultDTO.js +26 -0
  200. package/dist/src/infrastructure/transaction/NemAnnounceResultDTO.js.map +1 -0
  201. package/dist/src/infrastructure/transaction/NemRequestResultDTO.d.ts +10 -0
  202. package/dist/src/infrastructure/transaction/NemRequestResultDTO.js +26 -0
  203. package/dist/src/infrastructure/transaction/NemRequestResultDTO.js.map +1 -0
  204. package/dist/src/infrastructure/transaction/ProvisionNamespaceTransactionDTO.d.ts +1 -0
  205. package/dist/src/infrastructure/transaction/ProvisionNamespaceTransactionDTO.js +26 -0
  206. package/dist/src/infrastructure/transaction/ProvisionNamespaceTransactionDTO.js.map +1 -0
  207. package/dist/src/infrastructure/transaction/RequestPrepareAnnonceDTO.d.ts +1 -0
  208. package/dist/src/infrastructure/transaction/RequestPrepareAnnonceDTO.js +26 -0
  209. package/dist/src/infrastructure/transaction/RequestPrepareAnnonceDTO.js.map +1 -0
  210. package/dist/src/infrastructure/transaction/TransactionDTO.d.ts +31 -0
  211. package/dist/src/infrastructure/transaction/TransactionDTO.js +26 -0
  212. package/dist/src/infrastructure/transaction/TransactionDTO.js.map +1 -0
  213. package/dist/src/infrastructure/transaction/TransactionMetaDataDTO.d.ts +1 -0
  214. package/dist/src/infrastructure/transaction/TransactionMetaDataDTO.js +26 -0
  215. package/dist/src/infrastructure/transaction/TransactionMetaDataDTO.js.map +1 -0
  216. package/dist/src/infrastructure/transaction/TransactionMetaDataPairDTO.d.ts +1 -0
  217. package/dist/src/infrastructure/transaction/TransactionMetaDataPairDTO.js +26 -0
  218. package/dist/src/infrastructure/transaction/TransactionMetaDataPairDTO.js.map +1 -0
  219. package/dist/src/infrastructure/transaction/TransferTransactionDTO.d.ts +1 -0
  220. package/dist/src/infrastructure/transaction/TransferTransactionDTO.js +26 -0
  221. package/dist/src/infrastructure/transaction/TransferTransactionDTO.js.map +1 -0
  222. package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataDTO.d.ts +1 -0
  223. package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataDTO.js +26 -0
  224. package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataDTO.js.map +1 -0
  225. package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataPairDTO.d.ts +1 -0
  226. package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataPairDTO.js +26 -0
  227. package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataPairDTO.js.map +1 -0
  228. package/dist/src/infrastructure/transaction/UnconfirmedTransactionsDTO.d.ts +1 -0
  229. package/dist/src/infrastructure/transaction/UnconfirmedTransactionsDTO.js +26 -0
  230. package/dist/src/infrastructure/transaction/UnconfirmedTransactionsDTO.js.map +1 -0
  231. package/dist/src/models/account/Account.d.ts +52 -0
  232. package/dist/src/models/account/Account.js +136 -0
  233. package/dist/src/models/account/Account.js.map +1 -0
  234. package/dist/src/models/account/AccountHarvestInfo.d.ts +25 -0
  235. package/dist/src/models/account/AccountHarvestInfo.js +55 -0
  236. package/dist/src/models/account/AccountHarvestInfo.js.map +1 -0
  237. package/dist/src/models/account/AccountHistoricalInfo.d.ts +25 -0
  238. package/dist/src/models/account/AccountHistoricalInfo.js +58 -0
  239. package/dist/src/models/account/AccountHistoricalInfo.js.map +1 -0
  240. package/dist/src/models/account/AccountImportanceInfo.d.ts +35 -0
  241. package/dist/src/models/account/AccountImportanceInfo.js +77 -0
  242. package/dist/src/models/account/AccountImportanceInfo.js.map +1 -0
  243. package/dist/src/models/account/AccountInfo.d.ts +79 -0
  244. package/dist/src/models/account/AccountInfo.js +129 -0
  245. package/dist/src/models/account/AccountInfo.js.map +1 -0
  246. package/dist/src/models/account/Address.d.ts +25 -0
  247. package/dist/src/models/account/Address.js +80 -0
  248. package/dist/src/models/account/Address.js.map +1 -0
  249. package/dist/src/models/account/Balance.d.ts +17 -0
  250. package/dist/src/models/account/Balance.js +42 -0
  251. package/dist/src/models/account/Balance.js.map +1 -0
  252. package/dist/src/models/account/NodeHarvestInfo.d.ts +10 -0
  253. package/dist/src/models/account/NodeHarvestInfo.js +38 -0
  254. package/dist/src/models/account/NodeHarvestInfo.js.map +1 -0
  255. package/dist/src/models/account/PublicAccount.d.ts +25 -0
  256. package/dist/src/models/account/PublicAccount.js +82 -0
  257. package/dist/src/models/account/PublicAccount.js.map +1 -0
  258. package/dist/src/models/asset/Asset.d.ts +20 -0
  259. package/dist/src/models/asset/Asset.js +59 -0
  260. package/dist/src/models/asset/Asset.js.map +1 -0
  261. package/dist/src/models/asset/AssetDefinition.d.ts +83 -0
  262. package/dist/src/models/asset/AssetDefinition.js +136 -0
  263. package/dist/src/models/asset/AssetDefinition.js.map +1 -0
  264. package/dist/src/models/asset/AssetId.d.ts +31 -0
  265. package/dist/src/models/asset/AssetId.js +77 -0
  266. package/dist/src/models/asset/AssetId.js.map +1 -0
  267. package/dist/src/models/asset/AssetLevy.d.ts +40 -0
  268. package/dist/src/models/asset/AssetLevy.js +76 -0
  269. package/dist/src/models/asset/AssetLevy.js.map +1 -0
  270. package/dist/src/models/asset/AssetTransferable.d.ts +65 -0
  271. package/dist/src/models/asset/AssetTransferable.js +88 -0
  272. package/dist/src/models/asset/AssetTransferable.js.map +1 -0
  273. package/dist/src/models/asset/XEM.d.ts +49 -0
  274. package/dist/src/models/asset/XEM.js +83 -0
  275. package/dist/src/models/asset/XEM.js.map +1 -0
  276. package/dist/src/models/blockchain/Block.d.ts +57 -0
  277. package/dist/src/models/blockchain/Block.js +81 -0
  278. package/dist/src/models/blockchain/Block.js.map +1 -0
  279. package/dist/src/models/namespace/Namespace.d.ts +23 -0
  280. package/dist/src/models/namespace/Namespace.js +64 -0
  281. package/dist/src/models/namespace/Namespace.js.map +1 -0
  282. package/dist/src/models/node/ExtendedNodeExperience.d.ts +34 -0
  283. package/dist/src/models/node/ExtendedNodeExperience.js +79 -0
  284. package/dist/src/models/node/ExtendedNodeExperience.js.map +1 -0
  285. package/dist/src/models/node/NetworkTypes.d.ts +17 -0
  286. package/dist/src/models/node/NetworkTypes.js +44 -0
  287. package/dist/src/models/node/NetworkTypes.js.map +1 -0
  288. package/dist/src/models/node/NisNodeInfo.d.ts +39 -0
  289. package/dist/src/models/node/NisNodeInfo.js +79 -0
  290. package/dist/src/models/node/NisNodeInfo.js.map +1 -0
  291. package/dist/src/models/node/Node.d.ts +76 -0
  292. package/dist/src/models/node/Node.js +131 -0
  293. package/dist/src/models/node/Node.js.map +1 -0
  294. package/dist/src/models/node/NodeCollection.d.ts +22 -0
  295. package/dist/src/models/node/NodeCollection.js +54 -0
  296. package/dist/src/models/node/NodeCollection.js.map +1 -0
  297. package/dist/src/models/transaction/AssetDefinitionCreationTransaction.d.ts +39 -0
  298. package/dist/src/models/transaction/AssetDefinitionCreationTransaction.js +94 -0
  299. package/dist/src/models/transaction/AssetDefinitionCreationTransaction.js.map +1 -0
  300. package/dist/src/models/transaction/AssetSupplyChangeTransaction.d.ts +48 -0
  301. package/dist/src/models/transaction/AssetSupplyChangeTransaction.js +94 -0
  302. package/dist/src/models/transaction/AssetSupplyChangeTransaction.js.map +1 -0
  303. package/dist/src/models/transaction/EncryptedMessage.d.ts +8 -0
  304. package/dist/src/models/transaction/EncryptedMessage.js +86 -0
  305. package/dist/src/models/transaction/EncryptedMessage.js.map +1 -0
  306. package/dist/src/models/transaction/HexMessage.d.ts +10 -0
  307. package/dist/src/models/transaction/HexMessage.js +37 -0
  308. package/dist/src/models/transaction/HexMessage.js.map +1 -0
  309. package/dist/src/models/transaction/ImportanceTransferTransaction.d.ts +45 -0
  310. package/dist/src/models/transaction/ImportanceTransferTransaction.js +92 -0
  311. package/dist/src/models/transaction/ImportanceTransferTransaction.js.map +1 -0
  312. package/dist/src/models/transaction/Message.d.ts +12 -0
  313. package/dist/src/models/transaction/Message.js +110 -0
  314. package/dist/src/models/transaction/Message.js.map +1 -0
  315. package/dist/src/models/transaction/MultisigAggregateModificationTransaction.d.ts +55 -0
  316. package/dist/src/models/transaction/MultisigAggregateModificationTransaction.js +112 -0
  317. package/dist/src/models/transaction/MultisigAggregateModificationTransaction.js.map +1 -0
  318. package/dist/src/models/transaction/MultisigSignatureTransaction.d.ts +35 -0
  319. package/dist/src/models/transaction/MultisigSignatureTransaction.js +92 -0
  320. package/dist/src/models/transaction/MultisigSignatureTransaction.js.map +1 -0
  321. package/dist/src/models/transaction/MultisigTransaction.d.ts +49 -0
  322. package/dist/src/models/transaction/MultisigTransaction.js +102 -0
  323. package/dist/src/models/transaction/MultisigTransaction.js.map +1 -0
  324. package/dist/src/models/transaction/NemAnnounceResult.d.ts +77 -0
  325. package/dist/src/models/transaction/NemAnnounceResult.js +66 -0
  326. package/dist/src/models/transaction/NemAnnounceResult.js.map +1 -0
  327. package/dist/src/models/transaction/PlainMessage.d.ts +19 -0
  328. package/dist/src/models/transaction/PlainMessage.js +77 -0
  329. package/dist/src/models/transaction/PlainMessage.js.map +1 -0
  330. package/dist/src/models/transaction/ProvisionNamespaceTransaction.d.ts +57 -0
  331. package/dist/src/models/transaction/ProvisionNamespaceTransaction.js +117 -0
  332. package/dist/src/models/transaction/ProvisionNamespaceTransaction.js.map +1 -0
  333. package/dist/src/models/transaction/SignedTransaction.d.ts +13 -0
  334. package/dist/src/models/transaction/SignedTransaction.js +26 -0
  335. package/dist/src/models/transaction/SignedTransaction.js.map +1 -0
  336. package/dist/src/models/transaction/TimeWindow.d.ts +24 -0
  337. package/dist/src/models/transaction/TimeWindow.js +84 -0
  338. package/dist/src/models/transaction/TimeWindow.js.map +1 -0
  339. package/dist/src/models/transaction/Transaction.d.ts +56 -0
  340. package/dist/src/models/transaction/Transaction.js +98 -0
  341. package/dist/src/models/transaction/Transaction.js.map +1 -0
  342. package/dist/src/models/transaction/TransactionInfo.d.ts +39 -0
  343. package/dist/src/models/transaction/TransactionInfo.js +60 -0
  344. package/dist/src/models/transaction/TransactionInfo.js.map +1 -0
  345. package/dist/src/models/transaction/TransactionTypes.d.ts +80 -0
  346. package/dist/src/models/transaction/TransactionTypes.js +159 -0
  347. package/dist/src/models/transaction/TransactionTypes.js.map +1 -0
  348. package/dist/src/models/transaction/TransferTransaction.d.ts +78 -0
  349. package/dist/src/models/transaction/TransferTransaction.js +176 -0
  350. package/dist/src/models/transaction/TransferTransaction.js.map +1 -0
  351. package/dist/src/models/wallet/BrainPassword.d.ts +11 -0
  352. package/dist/src/models/wallet/BrainPassword.js +42 -0
  353. package/dist/src/models/wallet/BrainPassword.js.map +1 -0
  354. package/dist/src/models/wallet/BrainWallet.d.ts +34 -0
  355. package/dist/src/models/wallet/BrainWallet.js +101 -0
  356. package/dist/src/models/wallet/BrainWallet.js.map +1 -0
  357. package/dist/src/models/wallet/EncryptedPrivateKey.d.ts +13 -0
  358. package/dist/src/models/wallet/EncryptedPrivateKey.js +56 -0
  359. package/dist/src/models/wallet/EncryptedPrivateKey.js.map +1 -0
  360. package/dist/src/models/wallet/Password.d.ts +14 -0
  361. package/dist/src/models/wallet/Password.js +41 -0
  362. package/dist/src/models/wallet/Password.js.map +1 -0
  363. package/dist/src/models/wallet/SimpleWallet.d.ts +47 -0
  364. package/dist/src/models/wallet/SimpleWallet.js +143 -0
  365. package/dist/src/models/wallet/SimpleWallet.js.map +1 -0
  366. package/dist/src/models/wallet/Wallet.d.ts +51 -0
  367. package/dist/src/models/wallet/Wallet.js +81 -0
  368. package/dist/src/models/wallet/Wallet.js.map +1 -0
  369. package/dist/src/models.d.ts +46 -0
  370. package/dist/src/models.js +74 -0
  371. package/dist/src/models.js.map +1 -0
  372. package/dist/src/services/AccountOwnedAssetService.d.ts +30 -0
  373. package/dist/src/services/AccountOwnedAssetService.js +63 -0
  374. package/dist/src/services/AccountOwnedAssetService.js.map +1 -0
  375. package/dist/src/services/AssetService.d.ts +23 -0
  376. package/dist/src/services/AssetService.js +87 -0
  377. package/dist/src/services/AssetService.js.map +1 -0
  378. package/dist/src/services/QRService.d.ts +66 -0
  379. package/dist/src/services/QRService.js +155 -0
  380. package/dist/src/services/QRService.js.map +1 -0
  381. package/dist/src/services.d.ts +3 -0
  382. package/dist/src/services.js +32 -0
  383. package/dist/src/services.js.map +1 -0
  384. package/dist/src/vendor/sockjs-0.3.4.d.ts +25 -0
  385. package/dist/src/vendor/sockjs-0.3.4.js +2516 -0
  386. package/dist/src/vendor/sockjs-0.3.4.min.js +27 -0
  387. package/package.json +87 -0
  388. package/z4bfo2p7.cjs +1 -0
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /*
3
+ * The MIT License (MIT)
4
+ *
5
+ * Copyright (c) 2017 NEM
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ //# sourceMappingURL=UnconfirmedTransactionMetaDataPairDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnconfirmedTransactionMetaDataPairDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/transaction/UnconfirmedTransactionMetaDataPairDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /*
3
+ * The MIT License (MIT)
4
+ *
5
+ * Copyright (c) 2017 NEM
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ //# sourceMappingURL=UnconfirmedTransactionsDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnconfirmedTransactionsDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/transaction/UnconfirmedTransactionsDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
@@ -0,0 +1,52 @@
1
+ import { NetworkTypes } from "../node/NetworkTypes";
2
+ import { EncryptedMessage } from "../transaction/EncryptedMessage";
3
+ import { PlainMessage } from "../transaction/PlainMessage";
4
+ import { SignedTransaction } from "../transaction/SignedTransaction";
5
+ import { Transaction } from "../transaction/Transaction";
6
+ import { PublicAccount } from "./PublicAccount";
7
+ /**
8
+ * Account model
9
+ */
10
+ export declare class Account extends PublicAccount {
11
+ readonly privateKey: string;
12
+ /**
13
+ * Sign a transaction
14
+ * @param transaction
15
+ * @returns {{data: any, signature: string}}
16
+ */
17
+ signTransaction(transaction: Transaction): SignedTransaction;
18
+ /**
19
+ * Sign string
20
+ * @param messagestring
21
+ * @returns signatureString
22
+ */
23
+ signMessage(message: string): any;
24
+ /**
25
+ * constructor with private key
26
+ * @param privateKey
27
+ * @returns {Account}
28
+ */
29
+ static createWithPrivateKey(privateKey: string): Account;
30
+ /**
31
+ * generate new account
32
+ * @param walletName
33
+ * @param passphrase
34
+ * @param networkType
35
+ * @returns {Account}
36
+ */
37
+ static generateAccount(walletName: string, passphrase: string, networkType: NetworkTypes): Account;
38
+ /**
39
+ * Create a new encrypted Message
40
+ * @param message
41
+ * @param recipientPublicAccount
42
+ * @returns {EncryptedMessage}
43
+ */
44
+ encryptMessage(message: string, recipientPublicAccount: PublicAccount): EncryptedMessage;
45
+ /**
46
+ * Decrypts an encrypted message
47
+ * @param encryptedMessage
48
+ * @param recipientPublicAccount
49
+ * @returns {PlainMessage}
50
+ */
51
+ decryptMessage(encryptedMessage: EncryptedMessage, recipientPublicAccount: PublicAccount): PlainMessage;
52
+ }
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ /*
3
+ * The MIT License (MIT)
4
+ *
5
+ * Copyright (c) 2017 NEM
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const nemSdk = require("nem-sdk");
27
+ const NEMLibrary_1 = require("../../NEMLibrary");
28
+ const NetworkTypes_1 = require("../node/NetworkTypes");
29
+ const EncryptedMessage_1 = require("../transaction/EncryptedMessage");
30
+ const Address_1 = require("./Address");
31
+ const PublicAccount_1 = require("./PublicAccount");
32
+ /**
33
+ * Account model
34
+ */
35
+ class Account extends PublicAccount_1.PublicAccount {
36
+ /**
37
+ * Constructor
38
+ * @internal
39
+ * @param address
40
+ * @param publicKey
41
+ * @param privateKey
42
+ */
43
+ constructor(address, publicKey, privateKey) {
44
+ super(address, publicKey);
45
+ this.privateKey = privateKey;
46
+ }
47
+ /**
48
+ * Sign a transaction
49
+ * @param transaction
50
+ * @returns {{data: any, signature: string}}
51
+ */
52
+ signTransaction(transaction) {
53
+ transaction.signer = PublicAccount_1.PublicAccount.createWithPublicKey(this.publicKey);
54
+ transaction.setNetworkType(this.address.network());
55
+ const dto = transaction.toDTO();
56
+ const keyPair = nemSdk.default.crypto.keyPair.create(nemSdk.default.utils.helpers.fixPrivateKey(this.privateKey));
57
+ const result = nemSdk.default.utils.serialization.serializeTransaction(dto);
58
+ const signature = keyPair.sign(result);
59
+ return {
60
+ data: nemSdk.default.utils.convert.ua2hex(result),
61
+ signature: signature.toString(),
62
+ };
63
+ }
64
+ /**
65
+ * Sign string
66
+ * @param messagestring
67
+ * @returns signatureString
68
+ */
69
+ signMessage(message) {
70
+ const keyPair = nemSdk.default.crypto.keyPair.create(nemSdk.default.utils.helpers.fixPrivateKey(this.privateKey));
71
+ return keyPair.sign(message);
72
+ }
73
+ /**
74
+ * constructor with private key
75
+ * @param privateKey
76
+ * @returns {Account}
77
+ */
78
+ static createWithPrivateKey(privateKey) {
79
+ if (privateKey == undefined) {
80
+ throw new Error("Private Key is undefined");
81
+ }
82
+ let network;
83
+ if (NEMLibrary_1.NEMLibrary.getNetworkType() == NetworkTypes_1.NetworkTypes.MAIN_NET) {
84
+ network = nemSdk.default.model.network.data.mainnet.id;
85
+ }
86
+ else if (NEMLibrary_1.NEMLibrary.getNetworkType() == NetworkTypes_1.NetworkTypes.TEST_NET) {
87
+ network = nemSdk.default.model.network.data.testnet.id;
88
+ }
89
+ else if (NEMLibrary_1.NEMLibrary.getNetworkType() == NetworkTypes_1.NetworkTypes.MIJIN_NET) {
90
+ network = nemSdk.default.model.network.data.mijin.id;
91
+ }
92
+ const keyPair = nemSdk.default.crypto.keyPair.create(nemSdk.default.utils.helpers.fixPrivateKey(privateKey));
93
+ const publicKey = keyPair.publicKey.toString();
94
+ const address = nemSdk.default.model.address.toAddress(publicKey, network);
95
+ return new Account(new Address_1.Address(address), publicKey, privateKey);
96
+ }
97
+ /**
98
+ * generate new account
99
+ * @param walletName
100
+ * @param passphrase
101
+ * @param networkType
102
+ * @returns {Account}
103
+ */
104
+ static generateAccount(walletName, passphrase, networkType) {
105
+ // Generate a random private key
106
+ // Note: we DON'T want to derivate the private key from the passphrase, since everytime the password is the same,
107
+ // the same key pair would be generated (brain wallet).
108
+ // Brain wallets are great, if the user can remember the password in his BRAIN and the
109
+ // password is still complex enough to be secure and unique.
110
+ // Hence, brain wallets are not the right choice for most users
111
+ const privateKey = nemSdk.default.crypto.js.lib.WordArray.random(32).toString();
112
+ const keyPair = nemSdk.default.crypto.keyPair.create(privateKey);
113
+ const address = PublicAccount_1.PublicAccount.createWithPublicKey(keyPair.publicKey.toString()).address;
114
+ return new Account(address, keyPair.publicKey.toString(), privateKey.toString());
115
+ }
116
+ /**
117
+ * Create a new encrypted Message
118
+ * @param message
119
+ * @param recipientPublicAccount
120
+ * @returns {EncryptedMessage}
121
+ */
122
+ encryptMessage(message, recipientPublicAccount) {
123
+ return EncryptedMessage_1.EncryptedMessage.create(message, recipientPublicAccount, this.privateKey);
124
+ }
125
+ /**
126
+ * Decrypts an encrypted message
127
+ * @param encryptedMessage
128
+ * @param recipientPublicAccount
129
+ * @returns {PlainMessage}
130
+ */
131
+ decryptMessage(encryptedMessage, recipientPublicAccount) {
132
+ return EncryptedMessage_1.EncryptedMessage.decrypt(encryptedMessage, this.privateKey, recipientPublicAccount);
133
+ }
134
+ }
135
+ exports.Account = Account;
136
+ //# sourceMappingURL=Account.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../../src/models/account/Account.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * A HarvestInfo object contains information about a block that an account harvested.
3
+ */
4
+ export declare class AccountHarvestInfo {
5
+ /**
6
+ * The number of seconds elapsed since the creation of the nemesis block.
7
+ */
8
+ readonly timeStamp: number;
9
+ /**
10
+ * The database id for the harvested block.
11
+ */
12
+ readonly id: number;
13
+ /**
14
+ * The block difficulty. The initial difficulty was set to 100000000000000. The block difficulty is always between one tenth and ten times the initial difficulty.
15
+ */
16
+ readonly difficulty: number;
17
+ /**
18
+ * The total fee collected by harvesting the block.
19
+ */
20
+ readonly totalFee: number;
21
+ /**
22
+ * The height of the harvested block.
23
+ */
24
+ readonly height: number;
25
+ }
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /*
3
+ * The MIT License (MIT)
4
+ *
5
+ * Copyright (c) 2017 NEM
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ /**
27
+ * A HarvestInfo object contains information about a block that an account harvested.
28
+ */
29
+ class AccountHarvestInfo {
30
+ /**
31
+ * @internal
32
+ * @param timeStamp
33
+ * @param id
34
+ * @param difficulty
35
+ * @param totalFee
36
+ * @param height
37
+ */
38
+ constructor(timeStamp, id, difficulty, totalFee, height) {
39
+ this.timeStamp = timeStamp;
40
+ this.id = id;
41
+ this.difficulty = difficulty;
42
+ this.totalFee = totalFee;
43
+ this.height = height;
44
+ }
45
+ /**
46
+ * @internal
47
+ * @param dto
48
+ * @returns {AccountHarvestInfo}
49
+ */
50
+ static createFromHarvestInfoDTO(dto) {
51
+ return new AccountHarvestInfo(dto.timeStamp, dto.id, dto.difficulty, dto.totalFee, dto.height);
52
+ }
53
+ }
54
+ exports.AccountHarvestInfo = AccountHarvestInfo;
55
+ //# sourceMappingURL=AccountHarvestInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountHarvestInfo.js","sourceRoot":"","sources":["../../../../src/models/account/AccountHarvestInfo.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAIH;;GAEG;AACH;IA2BE;;;;;;;OAOG;IACH,YACE,SAAiB,EACjB,EAAU,EACV,UAAkB,EAClB,QAAgB,EAChB,MAAc;QAGd,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,wBAAwB,CAAC,GAAmB;QACxD,OAAO,IAAI,kBAAkB,CAC3B,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,EAAE,EACN,GAAG,CAAC,UAAU,EACd,GAAG,CAAC,QAAQ,EACZ,GAAG,CAAC,MAAM,CACX,CAAC;IACJ,CAAC;CACF;AAhED,gDAgEC"}
@@ -0,0 +1,25 @@
1
+ import { Address } from "./Address";
2
+ import { Balance } from "./Balance";
3
+ /**
4
+ *
5
+ * Nodes can support a feature for retrieving historical data of accounts.
6
+ * If this is supported, it returns an array of AccountHistoricalInfo
7
+ */
8
+ export declare class AccountHistoricalInfo {
9
+ /**
10
+ * The balance of the account in micro NEM.
11
+ */
12
+ readonly balance: Balance;
13
+ /**
14
+ * The importance of the account.
15
+ */
16
+ readonly importance: number;
17
+ /**
18
+ * The public key of the account.
19
+ */
20
+ readonly address: Address;
21
+ /**
22
+ * The page rank part of the importance.
23
+ */
24
+ readonly pageRank: number;
25
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /*
3
+ * The MIT License (MIT)
4
+ *
5
+ * Copyright (c) 2017 NEM
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const Address_1 = require("./Address");
27
+ const Balance_1 = require("./Balance");
28
+ /**
29
+ *
30
+ * Nodes can support a feature for retrieving historical data of accounts.
31
+ * If this is supported, it returns an array of AccountHistoricalInfo
32
+ */
33
+ class AccountHistoricalInfo {
34
+ /**
35
+ * @internal
36
+ * @param balance
37
+ * @param vestedBalance
38
+ * @param importance
39
+ * @param address
40
+ * @param pageRank
41
+ */
42
+ constructor(balance, vestedBalance, importance, address, pageRank) {
43
+ this.balance = new Balance_1.Balance(balance, vestedBalance);
44
+ this.importance = importance;
45
+ this.address = new Address_1.Address(address);
46
+ this.pageRank = pageRank;
47
+ }
48
+ /**
49
+ * @internal
50
+ * @param dto
51
+ * @returns {AccountHistoricalInfo}
52
+ */
53
+ static createFromAccountHistoricalDataViewModelDTO(dto) {
54
+ return new AccountHistoricalInfo(dto.balance, dto.vestedBalance, dto.importance, dto.address, dto.pageRank);
55
+ }
56
+ }
57
+ exports.AccountHistoricalInfo = AccountHistoricalInfo;
58
+ //# sourceMappingURL=AccountHistoricalInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountHistoricalInfo.js","sourceRoot":"","sources":["../../../../src/models/account/AccountHistoricalInfo.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAGH,uCAAkC;AAClC,uCAAkC;AAElC;;;;GAIG;AACH;IAsBE;;;;;;;OAOG;IACH,YACE,OAAe,EACf,aAAqB,EACrB,UAAkB,EAClB,OAAe,EACf,QAAgB;QAEhB,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,2CAA2C,CAAC,GAAsC;QAC9F,OAAO,IAAI,qBAAqB,CAC9B,GAAG,CAAC,OAAO,EACX,GAAG,CAAC,aAAa,EACjB,GAAG,CAAC,UAAU,EACd,GAAG,CAAC,OAAO,EACX,GAAG,CAAC,QAAQ,CACb,CAAC;IACJ,CAAC;CACF;AAzDD,sDAyDC"}
@@ -0,0 +1,35 @@
1
+ import { Address } from "./Address";
2
+ /**
3
+ * Each account is assigned an importance in the NEM network. The ability of an account to generate new blocks is proportional to its importance. The importance is a number between 0 and 1.
4
+ */
5
+ export declare class AccountImportanceInfo {
6
+ /**
7
+ * The address of the account.
8
+ */
9
+ readonly address: Address;
10
+ /**
11
+ * Substructure that describes the importance of the account.
12
+ */
13
+ readonly importance: AccountImportanceData;
14
+ }
15
+ /**
16
+ * Substructure that describes the importance of the account.
17
+ */
18
+ export declare class AccountImportanceData {
19
+ /**
20
+ * Indicates if the fields "score", "ev" and "height" are available.isSet can have the values 0 or 1. In case isSet is 0 the fields are not available.
21
+ */
22
+ readonly isSet: number;
23
+ /**
24
+ * The importance of the account. The importance ranges between 0 and 1.
25
+ */
26
+ readonly score?: number;
27
+ /**
28
+ * The page rank portion of the importance. The page rank ranges between 0 and 1.
29
+ */
30
+ readonly ev?: number;
31
+ /**
32
+ * The height at which the importance calculation was performed.
33
+ */
34
+ readonly height?: number;
35
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /*
3
+ * The MIT License (MIT)
4
+ *
5
+ * Copyright (c) 2017 NEM
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ const Address_1 = require("./Address");
27
+ /**
28
+ * Each account is assigned an importance in the NEM network. The ability of an account to generate new blocks is proportional to its importance. The importance is a number between 0 and 1.
29
+ */
30
+ class AccountImportanceInfo {
31
+ /**
32
+ * @internal
33
+ * @param address
34
+ * @param importance
35
+ */
36
+ constructor(address, importance) {
37
+ this.address = address;
38
+ this.importance = importance;
39
+ }
40
+ /**
41
+ * @internal
42
+ * @param dto
43
+ * @returns {AccountImportanceInfo}
44
+ */
45
+ static createFromAccountImportanceViewModelDTO(dto) {
46
+ return new AccountImportanceInfo(new Address_1.Address(dto.address), AccountImportanceData.createFromAccountImportanceDataDTO(dto.importance));
47
+ }
48
+ }
49
+ exports.AccountImportanceInfo = AccountImportanceInfo;
50
+ /**
51
+ * Substructure that describes the importance of the account.
52
+ */
53
+ class AccountImportanceData {
54
+ /**
55
+ * @internal
56
+ * @param isSet
57
+ * @param score
58
+ * @param ev
59
+ * @param height
60
+ */
61
+ constructor(isSet, score, ev, height) {
62
+ this.isSet = isSet;
63
+ this.score = score;
64
+ this.ev = ev;
65
+ this.height = height;
66
+ }
67
+ /**
68
+ * @internal
69
+ * @param dto
70
+ * @returns {AccountImportanceData}
71
+ */
72
+ static createFromAccountImportanceDataDTO(dto) {
73
+ return new AccountImportanceData(dto.isSet, dto.score, dto.ev, dto.height);
74
+ }
75
+ }
76
+ exports.AccountImportanceData = AccountImportanceData;
77
+ //# sourceMappingURL=AccountImportanceInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountImportanceInfo.js","sourceRoot":"","sources":["../../../../src/models/account/AccountImportanceInfo.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAMH,uCAAkC;AAElC;;GAEG;AACH;IAYE;;;;OAIG;IACH,YACE,OAAgB,EAChB,UAAiC;QAEjC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,uCAAuC,CAAC,GAAkC;QACtF,OAAO,IAAI,qBAAqB,CAC9B,IAAI,iBAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EACxB,qBAAqB,CAAC,kCAAkC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC;IAC9E,CAAC;CAEF;AApCD,sDAoCC;AAED;;GAEG;AACH;IAsBE;;;;;;OAMG;IACH,YACE,KAAa,EACb,KAAc,EACd,EAAW,EACX,MAAe;QAEf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,kCAAkC,CAAC,GAA6B;QAC5E,OAAO,IAAI,qBAAqB,CAC9B,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,EAAE,EACN,GAAG,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;CACF;AArDD,sDAqDC"}
@@ -0,0 +1,79 @@
1
+ import { Balance } from "./Balance";
2
+ import { PublicAccount } from "./PublicAccount";
3
+ export declare enum RemoteStatus {
4
+ REMOTE = "REMOTE",
5
+ ACTIVATING = "ACTIVATING",
6
+ ACTIVE = "ACTIVE",
7
+ DEACTIVATING = "DEACTIVATING",
8
+ INACTIVE = "INACTIVE",
9
+ }
10
+ export declare enum Status {
11
+ UNKNOWN = "UNKNOWN",
12
+ LOCKED = "LOCKED",
13
+ UNLOCKED = "UNLOCKED",
14
+ }
15
+ /**
16
+ * The account structure describes basic information for an account.
17
+ */
18
+ export declare class AccountInfo {
19
+ /**
20
+ * The balance of the account in micro NEM.
21
+ */
22
+ readonly balance: Balance;
23
+ /**
24
+ * The importance of the account.
25
+ */
26
+ readonly importance: number;
27
+ /**
28
+ * The public key of the account.
29
+ */
30
+ readonly publicAccount?: PublicAccount;
31
+ /**
32
+ * The number blocks that the account already harvested.
33
+ */
34
+ readonly harvestedBlocks: number;
35
+ /**
36
+ * Total number of cosignatories
37
+ */
38
+ readonly cosignatoriesCount?: number;
39
+ /**
40
+ * Minimum number of cosignatories needed for a transaction to be processed
41
+ */
42
+ readonly minCosignatories?: number;
43
+ }
44
+ export declare class AccountInfoWithMetaData extends AccountInfo {
45
+ /**
46
+ * The harvesting status of a queried account
47
+ */
48
+ readonly status: Status;
49
+ /**
50
+ * The status of remote harvesting of a queried account
51
+ */
52
+ readonly remoteStatus: RemoteStatus;
53
+ /**
54
+ * JSON array of AccountInfo structures. The account is cosignatory for each of the accounts in the array.
55
+ */
56
+ readonly cosignatoryOf: AccountInfo[];
57
+ /**
58
+ * JSON array of AccountInfo structures. The array holds all accounts that are a cosignatory for this account.
59
+ */
60
+ readonly cosignatories: AccountInfo[];
61
+ }
62
+ export declare class AccountStatus {
63
+ /**
64
+ * The harvesting status of a queried account
65
+ */
66
+ readonly status: Status;
67
+ /**
68
+ * The status of remote harvesting of a queried account
69
+ */
70
+ readonly remoteStatus: RemoteStatus;
71
+ /**
72
+ * JSON array of AccountInfo structures. The account is cosignatory for each of the accounts in the array.
73
+ */
74
+ readonly cosignatoryOf: AccountInfo[];
75
+ /**
76
+ * JSON array of AccountInfo structures. The array holds all accounts that are a cosignatory for this account.
77
+ */
78
+ readonly cosignatories: AccountInfo[];
79
+ }