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.
- package/LICENSE +21 -0
- package/README.md +30 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/src/NEMLibrary.d.ts +25 -0
- package/dist/src/NEMLibrary.js +69 -0
- package/dist/src/NEMLibrary.js.map +1 -0
- package/dist/src/infrastrcture.d.ts +13 -0
- package/dist/src/infrastrcture.js +44 -0
- package/dist/src/infrastrcture.js.map +1 -0
- package/dist/src/infrastructure/AccountHttp.d.ts +204 -0
- package/dist/src/infrastructure/AccountHttp.js +415 -0
- package/dist/src/infrastructure/AccountHttp.js.map +1 -0
- package/dist/src/infrastructure/AccountListener.d.ts +20 -0
- package/dist/src/infrastructure/AccountListener.js +71 -0
- package/dist/src/infrastructure/AccountListener.js.map +1 -0
- package/dist/src/infrastructure/AllTransactionsPageable.d.ts +1 -0
- package/dist/src/infrastructure/AllTransactionsPageable.js +35 -0
- package/dist/src/infrastructure/AllTransactionsPageable.js.map +1 -0
- package/dist/src/infrastructure/AssetHttp.d.ts +36 -0
- package/dist/src/infrastructure/AssetHttp.js +85 -0
- package/dist/src/infrastructure/AssetHttp.js.map +1 -0
- package/dist/src/infrastructure/BlockHttp.d.ts +14 -0
- package/dist/src/infrastructure/BlockHttp.js +54 -0
- package/dist/src/infrastructure/BlockHttp.js.map +1 -0
- package/dist/src/infrastructure/BlockchainListener.d.ts +24 -0
- package/dist/src/infrastructure/BlockchainListener.js +93 -0
- package/dist/src/infrastructure/BlockchainListener.js.map +1 -0
- package/dist/src/infrastructure/ChainHttp.d.ts +23 -0
- package/dist/src/infrastructure/ChainHttp.js +68 -0
- package/dist/src/infrastructure/ChainHttp.js.map +1 -0
- package/dist/src/infrastructure/ConfirmedTransactionListener.d.ts +20 -0
- package/dist/src/infrastructure/ConfirmedTransactionListener.js +76 -0
- package/dist/src/infrastructure/ConfirmedTransactionListener.js.map +1 -0
- package/dist/src/infrastructure/HarvestInfoPageable.d.ts +1 -0
- package/dist/src/infrastructure/HarvestInfoPageable.js +52 -0
- package/dist/src/infrastructure/HarvestInfoPageable.js.map +1 -0
- package/dist/src/infrastructure/HttpEndpoint.d.ts +15 -0
- package/dist/src/infrastructure/HttpEndpoint.js +132 -0
- package/dist/src/infrastructure/HttpEndpoint.js.map +1 -0
- package/dist/src/infrastructure/IncomingTransactionsPageable.d.ts +1 -0
- package/dist/src/infrastructure/IncomingTransactionsPageable.js +29 -0
- package/dist/src/infrastructure/IncomingTransactionsPageable.js.map +1 -0
- package/dist/src/infrastructure/Listener.d.ts +14 -0
- package/dist/src/infrastructure/Listener.js +101 -0
- package/dist/src/infrastructure/Listener.js.map +1 -0
- package/dist/src/infrastructure/NamespaceHttp.d.ts +27 -0
- package/dist/src/infrastructure/NamespaceHttp.js +78 -0
- package/dist/src/infrastructure/NamespaceHttp.js.map +1 -0
- package/dist/src/infrastructure/NamespacesPageable.d.ts +1 -0
- package/dist/src/infrastructure/NamespacesPageable.js +28 -0
- package/dist/src/infrastructure/NamespacesPageable.js.map +1 -0
- package/dist/src/infrastructure/NodeHttp.d.ts +45 -0
- package/dist/src/infrastructure/NodeHttp.js +116 -0
- package/dist/src/infrastructure/NodeHttp.js.map +1 -0
- package/dist/src/infrastructure/OutgoingTransactionsPageable.d.ts +1 -0
- package/dist/src/infrastructure/OutgoingTransactionsPageable.js +59 -0
- package/dist/src/infrastructure/OutgoingTransactionsPageable.js.map +1 -0
- package/dist/src/infrastructure/Pageable.d.ts +10 -0
- package/dist/src/infrastructure/Pageable.js +55 -0
- package/dist/src/infrastructure/Pageable.js.map +1 -0
- package/dist/src/infrastructure/TransactionHttp.d.ts +20 -0
- package/dist/src/infrastructure/TransactionHttp.js +68 -0
- package/dist/src/infrastructure/TransactionHttp.js.map +1 -0
- package/dist/src/infrastructure/UnconfirmedTransactionListener.d.ts +20 -0
- package/dist/src/infrastructure/UnconfirmedTransactionListener.js +76 -0
- package/dist/src/infrastructure/UnconfirmedTransactionListener.js.map +1 -0
- package/dist/src/infrastructure/account/AccountHistoricalDataViewModelDTO.d.ts +1 -0
- package/dist/src/infrastructure/account/AccountHistoricalDataViewModelDTO.js +26 -0
- package/dist/src/infrastructure/account/AccountHistoricalDataViewModelDTO.js.map +1 -0
- package/dist/src/infrastructure/account/AccountImportanceViewModelDTO.d.ts +1 -0
- package/dist/src/infrastructure/account/AccountImportanceViewModelDTO.js +26 -0
- package/dist/src/infrastructure/account/AccountImportanceViewModelDTO.js.map +1 -0
- package/dist/src/infrastructure/account/AccountInfoDTO.d.ts +10 -0
- package/dist/src/infrastructure/account/AccountInfoDTO.js +26 -0
- package/dist/src/infrastructure/account/AccountInfoDTO.js.map +1 -0
- package/dist/src/infrastructure/account/AccountMetaDataDTO.d.ts +1 -0
- package/dist/src/infrastructure/account/AccountMetaDataDTO.js +26 -0
- package/dist/src/infrastructure/account/AccountMetaDataDTO.js.map +1 -0
- package/dist/src/infrastructure/account/AccountMetaDataPairDTO.d.ts +1 -0
- package/dist/src/infrastructure/account/AccountMetaDataPairDTO.js +26 -0
- package/dist/src/infrastructure/account/AccountMetaDataPairDTO.js.map +1 -0
- package/dist/src/infrastructure/account/AccountPrivateKeyTransactionsPageDTO.d.ts +1 -0
- package/dist/src/infrastructure/account/AccountPrivateKeyTransactionsPageDTO.js +26 -0
- package/dist/src/infrastructure/account/AccountPrivateKeyTransactionsPageDTO.js.map +1 -0
- package/dist/src/infrastructure/account/HarvestInfoDTO.d.ts +1 -0
- package/dist/src/infrastructure/account/HarvestInfoDTO.js +26 -0
- package/dist/src/infrastructure/account/HarvestInfoDTO.js.map +1 -0
- package/dist/src/infrastructure/account/KeyPairViewModelDTO.d.ts +1 -0
- package/dist/src/infrastructure/account/KeyPairViewModelDTO.js +26 -0
- package/dist/src/infrastructure/account/KeyPairViewModelDTO.js.map +1 -0
- package/dist/src/infrastructure/account/PrivateKeyDTO.d.ts +1 -0
- package/dist/src/infrastructure/account/PrivateKeyDTO.js +26 -0
- package/dist/src/infrastructure/account/PrivateKeyDTO.js.map +1 -0
- package/dist/src/infrastructure/asset/MosaicDTO.d.ts +1 -0
- package/dist/src/infrastructure/asset/MosaicDTO.js +26 -0
- package/dist/src/infrastructure/asset/MosaicDTO.js.map +1 -0
- package/dist/src/infrastructure/asset/MosaicDefinitionDTO.d.ts +1 -0
- package/dist/src/infrastructure/asset/MosaicDefinitionDTO.js +26 -0
- package/dist/src/infrastructure/asset/MosaicDefinitionDTO.js.map +1 -0
- package/dist/src/infrastructure/asset/MosaicDefinitionMetaDataPairDTO.d.ts +1 -0
- package/dist/src/infrastructure/asset/MosaicDefinitionMetaDataPairDTO.js +26 -0
- package/dist/src/infrastructure/asset/MosaicDefinitionMetaDataPairDTO.js.map +1 -0
- package/dist/src/infrastructure/asset/MosaicIdDTO.d.ts +1 -0
- package/dist/src/infrastructure/asset/MosaicIdDTO.js +26 -0
- package/dist/src/infrastructure/asset/MosaicIdDTO.js.map +1 -0
- package/dist/src/infrastructure/asset/MosaicLevyDTO.d.ts +1 -0
- package/dist/src/infrastructure/asset/MosaicLevyDTO.js +26 -0
- package/dist/src/infrastructure/asset/MosaicLevyDTO.js.map +1 -0
- package/dist/src/infrastructure/asset/MosaicPropertyDTO.d.ts +8 -0
- package/dist/src/infrastructure/asset/MosaicPropertyDTO.js +26 -0
- package/dist/src/infrastructure/asset/MosaicPropertyDTO.js.map +1 -0
- package/dist/src/infrastructure/blockchain/BlockChainScoreDTO.d.ts +1 -0
- package/dist/src/infrastructure/blockchain/BlockChainScoreDTO.js +26 -0
- package/dist/src/infrastructure/blockchain/BlockChainScoreDTO.js.map +1 -0
- package/dist/src/infrastructure/blockchain/BlockDTO.d.ts +6 -0
- package/dist/src/infrastructure/blockchain/BlockDTO.js +26 -0
- package/dist/src/infrastructure/blockchain/BlockDTO.js.map +1 -0
- package/dist/src/infrastructure/blockchain/BlockHeightDTO.d.ts +1 -0
- package/dist/src/infrastructure/blockchain/BlockHeightDTO.js +26 -0
- package/dist/src/infrastructure/blockchain/BlockHeightDTO.js.map +1 -0
- package/dist/src/infrastructure/blockchain/ExplorerBlockViewModelDTO.d.ts +1 -0
- package/dist/src/infrastructure/blockchain/ExplorerBlockViewModelDTO.js +26 -0
- package/dist/src/infrastructure/blockchain/ExplorerBlockViewModelDTO.js.map +1 -0
- package/dist/src/infrastructure/debug/AuditCollectionDTO.d.ts +22 -0
- package/dist/src/infrastructure/debug/AuditCollectionDTO.js +26 -0
- package/dist/src/infrastructure/debug/AuditCollectionDTO.js.map +1 -0
- package/dist/src/infrastructure/debug/NemAsyncTimerVisitorDTO.d.ts +1 -0
- package/dist/src/infrastructure/debug/NemAsyncTimerVisitorDTO.js +26 -0
- package/dist/src/infrastructure/debug/NemAsyncTimerVisitorDTO.js.map +1 -0
- package/dist/src/infrastructure/debug/NisNodeInfoDTO.d.ts +1 -0
- package/dist/src/infrastructure/debug/NisNodeInfoDTO.js +26 -0
- package/dist/src/infrastructure/debug/NisNodeInfoDTO.js.map +1 -0
- package/dist/src/infrastructure/debug/TimeSynchronizationResultDTO.d.ts +1 -0
- package/dist/src/infrastructure/debug/TimeSynchronizationResultDTO.js +26 -0
- package/dist/src/infrastructure/debug/TimeSynchronizationResultDTO.js.map +1 -0
- package/dist/src/infrastructure/namespace/NamespaceDTO.d.ts +1 -0
- package/dist/src/infrastructure/namespace/NamespaceDTO.js +26 -0
- package/dist/src/infrastructure/namespace/NamespaceDTO.js.map +1 -0
- package/dist/src/infrastructure/namespace/NamespaceMetaDataPairDTO.d.ts +1 -0
- package/dist/src/infrastructure/namespace/NamespaceMetaDataPairDTO.js +26 -0
- package/dist/src/infrastructure/namespace/NamespaceMetaDataPairDTO.js.map +1 -0
- package/dist/src/infrastructure/node/ApplicationMetaDataDTO.d.ts +1 -0
- package/dist/src/infrastructure/node/ApplicationMetaDataDTO.js +26 -0
- package/dist/src/infrastructure/node/ApplicationMetaDataDTO.js.map +1 -0
- package/dist/src/infrastructure/node/BootNodeRequestDTO.d.ts +1 -0
- package/dist/src/infrastructure/node/BootNodeRequestDTO.js +26 -0
- package/dist/src/infrastructure/node/BootNodeRequestDTO.js.map +1 -0
- package/dist/src/infrastructure/node/CommunicationTimeStampsDTO.d.ts +1 -0
- package/dist/src/infrastructure/node/CommunicationTimeStampsDTO.js +26 -0
- package/dist/src/infrastructure/node/CommunicationTimeStampsDTO.js.map +1 -0
- package/dist/src/infrastructure/node/ExtendedNodeExperiencePairDTO.d.ts +1 -0
- package/dist/src/infrastructure/node/ExtendedNodeExperiencePairDTO.js +26 -0
- package/dist/src/infrastructure/node/ExtendedNodeExperiencePairDTO.js.map +1 -0
- package/dist/src/infrastructure/node/NodeCollectionDTO.d.ts +1 -0
- package/dist/src/infrastructure/node/NodeCollectionDTO.js +26 -0
- package/dist/src/infrastructure/node/NodeCollectionDTO.js.map +1 -0
- package/dist/src/infrastructure/node/NodeDTO.d.ts +19 -0
- package/dist/src/infrastructure/node/NodeDTO.js +26 -0
- package/dist/src/infrastructure/node/NodeDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/CreateTransactionFromDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/CreateTransactionFromDTO.js +162 -0
- package/dist/src/infrastructure/transaction/CreateTransactionFromDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/CreateUnconfirmedTransactionFromDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/CreateUnconfirmedTransactionFromDTO.js +104 -0
- package/dist/src/infrastructure/transaction/CreateUnconfirmedTransactionFromDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/ErrorObjectDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/ErrorObjectDTO.js +26 -0
- package/dist/src/infrastructure/transaction/ErrorObjectDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/HashData.d.ts +10 -0
- package/dist/src/infrastructure/transaction/HashData.js +26 -0
- package/dist/src/infrastructure/transaction/HashData.js.map +1 -0
- package/dist/src/infrastructure/transaction/ImportanceTransferTransactionDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/ImportanceTransferTransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/ImportanceTransferTransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/Message.d.ts +1 -0
- package/dist/src/infrastructure/transaction/Message.js +26 -0
- package/dist/src/infrastructure/transaction/Message.js.map +1 -0
- package/dist/src/infrastructure/transaction/MosaicDefinitionCreationTransactionDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/MosaicDefinitionCreationTransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/MosaicDefinitionCreationTransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/MosaicSupplyChangeTransactionDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/MosaicSupplyChangeTransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/MosaicSupplyChangeTransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/MultisigAggregateModificationTransactionDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/MultisigAggregateModificationTransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/MultisigAggregateModificationTransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/MultisigCosignatoryModificationDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/MultisigCosignatoryModificationDTO.js +26 -0
- package/dist/src/infrastructure/transaction/MultisigCosignatoryModificationDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/MultisigSignatureTransactionDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/MultisigSignatureTransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/MultisigSignatureTransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/MultisigTransactionDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/MultisigTransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/MultisigTransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/NemAnnounceResultDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/NemAnnounceResultDTO.js +26 -0
- package/dist/src/infrastructure/transaction/NemAnnounceResultDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/NemRequestResultDTO.d.ts +10 -0
- package/dist/src/infrastructure/transaction/NemRequestResultDTO.js +26 -0
- package/dist/src/infrastructure/transaction/NemRequestResultDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/ProvisionNamespaceTransactionDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/ProvisionNamespaceTransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/ProvisionNamespaceTransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/RequestPrepareAnnonceDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/RequestPrepareAnnonceDTO.js +26 -0
- package/dist/src/infrastructure/transaction/RequestPrepareAnnonceDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/TransactionDTO.d.ts +31 -0
- package/dist/src/infrastructure/transaction/TransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/TransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/TransactionMetaDataDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/TransactionMetaDataDTO.js +26 -0
- package/dist/src/infrastructure/transaction/TransactionMetaDataDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/TransactionMetaDataPairDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/TransactionMetaDataPairDTO.js +26 -0
- package/dist/src/infrastructure/transaction/TransactionMetaDataPairDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/TransferTransactionDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/TransferTransactionDTO.js +26 -0
- package/dist/src/infrastructure/transaction/TransferTransactionDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataDTO.js +26 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataPairDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataPairDTO.js +26 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionMetaDataPairDTO.js.map +1 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionsDTO.d.ts +1 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionsDTO.js +26 -0
- package/dist/src/infrastructure/transaction/UnconfirmedTransactionsDTO.js.map +1 -0
- package/dist/src/models/account/Account.d.ts +52 -0
- package/dist/src/models/account/Account.js +136 -0
- package/dist/src/models/account/Account.js.map +1 -0
- package/dist/src/models/account/AccountHarvestInfo.d.ts +25 -0
- package/dist/src/models/account/AccountHarvestInfo.js +55 -0
- package/dist/src/models/account/AccountHarvestInfo.js.map +1 -0
- package/dist/src/models/account/AccountHistoricalInfo.d.ts +25 -0
- package/dist/src/models/account/AccountHistoricalInfo.js +58 -0
- package/dist/src/models/account/AccountHistoricalInfo.js.map +1 -0
- package/dist/src/models/account/AccountImportanceInfo.d.ts +35 -0
- package/dist/src/models/account/AccountImportanceInfo.js +77 -0
- package/dist/src/models/account/AccountImportanceInfo.js.map +1 -0
- package/dist/src/models/account/AccountInfo.d.ts +79 -0
- package/dist/src/models/account/AccountInfo.js +129 -0
- package/dist/src/models/account/AccountInfo.js.map +1 -0
- package/dist/src/models/account/Address.d.ts +25 -0
- package/dist/src/models/account/Address.js +80 -0
- package/dist/src/models/account/Address.js.map +1 -0
- package/dist/src/models/account/Balance.d.ts +17 -0
- package/dist/src/models/account/Balance.js +42 -0
- package/dist/src/models/account/Balance.js.map +1 -0
- package/dist/src/models/account/NodeHarvestInfo.d.ts +10 -0
- package/dist/src/models/account/NodeHarvestInfo.js +38 -0
- package/dist/src/models/account/NodeHarvestInfo.js.map +1 -0
- package/dist/src/models/account/PublicAccount.d.ts +25 -0
- package/dist/src/models/account/PublicAccount.js +82 -0
- package/dist/src/models/account/PublicAccount.js.map +1 -0
- package/dist/src/models/asset/Asset.d.ts +20 -0
- package/dist/src/models/asset/Asset.js +59 -0
- package/dist/src/models/asset/Asset.js.map +1 -0
- package/dist/src/models/asset/AssetDefinition.d.ts +83 -0
- package/dist/src/models/asset/AssetDefinition.js +136 -0
- package/dist/src/models/asset/AssetDefinition.js.map +1 -0
- package/dist/src/models/asset/AssetId.d.ts +31 -0
- package/dist/src/models/asset/AssetId.js +77 -0
- package/dist/src/models/asset/AssetId.js.map +1 -0
- package/dist/src/models/asset/AssetLevy.d.ts +40 -0
- package/dist/src/models/asset/AssetLevy.js +76 -0
- package/dist/src/models/asset/AssetLevy.js.map +1 -0
- package/dist/src/models/asset/AssetTransferable.d.ts +65 -0
- package/dist/src/models/asset/AssetTransferable.js +88 -0
- package/dist/src/models/asset/AssetTransferable.js.map +1 -0
- package/dist/src/models/asset/XEM.d.ts +49 -0
- package/dist/src/models/asset/XEM.js +83 -0
- package/dist/src/models/asset/XEM.js.map +1 -0
- package/dist/src/models/blockchain/Block.d.ts +57 -0
- package/dist/src/models/blockchain/Block.js +81 -0
- package/dist/src/models/blockchain/Block.js.map +1 -0
- package/dist/src/models/namespace/Namespace.d.ts +23 -0
- package/dist/src/models/namespace/Namespace.js +64 -0
- package/dist/src/models/namespace/Namespace.js.map +1 -0
- package/dist/src/models/node/ExtendedNodeExperience.d.ts +34 -0
- package/dist/src/models/node/ExtendedNodeExperience.js +79 -0
- package/dist/src/models/node/ExtendedNodeExperience.js.map +1 -0
- package/dist/src/models/node/NetworkTypes.d.ts +17 -0
- package/dist/src/models/node/NetworkTypes.js +44 -0
- package/dist/src/models/node/NetworkTypes.js.map +1 -0
- package/dist/src/models/node/NisNodeInfo.d.ts +39 -0
- package/dist/src/models/node/NisNodeInfo.js +79 -0
- package/dist/src/models/node/NisNodeInfo.js.map +1 -0
- package/dist/src/models/node/Node.d.ts +76 -0
- package/dist/src/models/node/Node.js +131 -0
- package/dist/src/models/node/Node.js.map +1 -0
- package/dist/src/models/node/NodeCollection.d.ts +22 -0
- package/dist/src/models/node/NodeCollection.js +54 -0
- package/dist/src/models/node/NodeCollection.js.map +1 -0
- package/dist/src/models/transaction/AssetDefinitionCreationTransaction.d.ts +39 -0
- package/dist/src/models/transaction/AssetDefinitionCreationTransaction.js +94 -0
- package/dist/src/models/transaction/AssetDefinitionCreationTransaction.js.map +1 -0
- package/dist/src/models/transaction/AssetSupplyChangeTransaction.d.ts +48 -0
- package/dist/src/models/transaction/AssetSupplyChangeTransaction.js +94 -0
- package/dist/src/models/transaction/AssetSupplyChangeTransaction.js.map +1 -0
- package/dist/src/models/transaction/EncryptedMessage.d.ts +8 -0
- package/dist/src/models/transaction/EncryptedMessage.js +86 -0
- package/dist/src/models/transaction/EncryptedMessage.js.map +1 -0
- package/dist/src/models/transaction/HexMessage.d.ts +10 -0
- package/dist/src/models/transaction/HexMessage.js +37 -0
- package/dist/src/models/transaction/HexMessage.js.map +1 -0
- package/dist/src/models/transaction/ImportanceTransferTransaction.d.ts +45 -0
- package/dist/src/models/transaction/ImportanceTransferTransaction.js +92 -0
- package/dist/src/models/transaction/ImportanceTransferTransaction.js.map +1 -0
- package/dist/src/models/transaction/Message.d.ts +12 -0
- package/dist/src/models/transaction/Message.js +110 -0
- package/dist/src/models/transaction/Message.js.map +1 -0
- package/dist/src/models/transaction/MultisigAggregateModificationTransaction.d.ts +55 -0
- package/dist/src/models/transaction/MultisigAggregateModificationTransaction.js +112 -0
- package/dist/src/models/transaction/MultisigAggregateModificationTransaction.js.map +1 -0
- package/dist/src/models/transaction/MultisigSignatureTransaction.d.ts +35 -0
- package/dist/src/models/transaction/MultisigSignatureTransaction.js +92 -0
- package/dist/src/models/transaction/MultisigSignatureTransaction.js.map +1 -0
- package/dist/src/models/transaction/MultisigTransaction.d.ts +49 -0
- package/dist/src/models/transaction/MultisigTransaction.js +102 -0
- package/dist/src/models/transaction/MultisigTransaction.js.map +1 -0
- package/dist/src/models/transaction/NemAnnounceResult.d.ts +77 -0
- package/dist/src/models/transaction/NemAnnounceResult.js +66 -0
- package/dist/src/models/transaction/NemAnnounceResult.js.map +1 -0
- package/dist/src/models/transaction/PlainMessage.d.ts +19 -0
- package/dist/src/models/transaction/PlainMessage.js +77 -0
- package/dist/src/models/transaction/PlainMessage.js.map +1 -0
- package/dist/src/models/transaction/ProvisionNamespaceTransaction.d.ts +57 -0
- package/dist/src/models/transaction/ProvisionNamespaceTransaction.js +117 -0
- package/dist/src/models/transaction/ProvisionNamespaceTransaction.js.map +1 -0
- package/dist/src/models/transaction/SignedTransaction.d.ts +13 -0
- package/dist/src/models/transaction/SignedTransaction.js +26 -0
- package/dist/src/models/transaction/SignedTransaction.js.map +1 -0
- package/dist/src/models/transaction/TimeWindow.d.ts +24 -0
- package/dist/src/models/transaction/TimeWindow.js +84 -0
- package/dist/src/models/transaction/TimeWindow.js.map +1 -0
- package/dist/src/models/transaction/Transaction.d.ts +56 -0
- package/dist/src/models/transaction/Transaction.js +98 -0
- package/dist/src/models/transaction/Transaction.js.map +1 -0
- package/dist/src/models/transaction/TransactionInfo.d.ts +39 -0
- package/dist/src/models/transaction/TransactionInfo.js +60 -0
- package/dist/src/models/transaction/TransactionInfo.js.map +1 -0
- package/dist/src/models/transaction/TransactionTypes.d.ts +80 -0
- package/dist/src/models/transaction/TransactionTypes.js +159 -0
- package/dist/src/models/transaction/TransactionTypes.js.map +1 -0
- package/dist/src/models/transaction/TransferTransaction.d.ts +78 -0
- package/dist/src/models/transaction/TransferTransaction.js +176 -0
- package/dist/src/models/transaction/TransferTransaction.js.map +1 -0
- package/dist/src/models/wallet/BrainPassword.d.ts +11 -0
- package/dist/src/models/wallet/BrainPassword.js +42 -0
- package/dist/src/models/wallet/BrainPassword.js.map +1 -0
- package/dist/src/models/wallet/BrainWallet.d.ts +34 -0
- package/dist/src/models/wallet/BrainWallet.js +101 -0
- package/dist/src/models/wallet/BrainWallet.js.map +1 -0
- package/dist/src/models/wallet/EncryptedPrivateKey.d.ts +13 -0
- package/dist/src/models/wallet/EncryptedPrivateKey.js +56 -0
- package/dist/src/models/wallet/EncryptedPrivateKey.js.map +1 -0
- package/dist/src/models/wallet/Password.d.ts +14 -0
- package/dist/src/models/wallet/Password.js +41 -0
- package/dist/src/models/wallet/Password.js.map +1 -0
- package/dist/src/models/wallet/SimpleWallet.d.ts +47 -0
- package/dist/src/models/wallet/SimpleWallet.js +143 -0
- package/dist/src/models/wallet/SimpleWallet.js.map +1 -0
- package/dist/src/models/wallet/Wallet.d.ts +51 -0
- package/dist/src/models/wallet/Wallet.js +81 -0
- package/dist/src/models/wallet/Wallet.js.map +1 -0
- package/dist/src/models.d.ts +46 -0
- package/dist/src/models.js +74 -0
- package/dist/src/models.js.map +1 -0
- package/dist/src/services/AccountOwnedAssetService.d.ts +30 -0
- package/dist/src/services/AccountOwnedAssetService.js +63 -0
- package/dist/src/services/AccountOwnedAssetService.js.map +1 -0
- package/dist/src/services/AssetService.d.ts +23 -0
- package/dist/src/services/AssetService.js +87 -0
- package/dist/src/services/AssetService.js.map +1 -0
- package/dist/src/services/QRService.d.ts +66 -0
- package/dist/src/services/QRService.js +155 -0
- package/dist/src/services/QRService.js.map +1 -0
- package/dist/src/services.d.ts +3 -0
- package/dist/src/services.js +32 -0
- package/dist/src/services.js.map +1 -0
- package/dist/src/vendor/sockjs-0.3.4.d.ts +25 -0
- package/dist/src/vendor/sockjs-0.3.4.js +2516 -0
- package/dist/src/vendor/sockjs-0.3.4.min.js +27 -0
- package/package.json +87 -0
- 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=ApplicationMetaDataDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ApplicationMetaDataDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/node/ApplicationMetaDataDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -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=BootNodeRequestDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BootNodeRequestDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/node/BootNodeRequestDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -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=CommunicationTimeStampsDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CommunicationTimeStampsDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/node/CommunicationTimeStampsDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -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=ExtendedNodeExperiencePairDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExtendedNodeExperiencePairDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/node/ExtendedNodeExperiencePairDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -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=NodeCollectionDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NodeCollectionDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/node/NodeCollectionDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Nodes are the entities that perform communication in the network like sending and receiving data.
|
3
|
+
* A node has an identity which is tied to an account through which the node can identify itself to the network.
|
4
|
+
* The communication is done through the endpoint of the node. Additionally a node provides meta data information.
|
5
|
+
*/
|
6
|
+
export interface NodeDTO {
|
7
|
+
/**
|
8
|
+
* Denotes the beginning of the meta data substructure.
|
9
|
+
*/
|
10
|
+
readonly metaData: NodeMetaDataDTO;
|
11
|
+
/**
|
12
|
+
* Denotes the beginning of the endpoint substructure.
|
13
|
+
*/
|
14
|
+
readonly endpoint: NodeEndpointDTO;
|
15
|
+
/**
|
16
|
+
* Denotes the beginning of the identity substructure.
|
17
|
+
*/
|
18
|
+
readonly identity: NodeIdentityDTO;
|
19
|
+
}
|
@@ -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=NodeDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NodeDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/node/NodeDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,162 @@
|
|
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("../../models/account/Address");
|
27
|
+
const PublicAccount_1 = require("../../models/account/PublicAccount");
|
28
|
+
const Asset_1 = require("../../models/asset/Asset");
|
29
|
+
const AssetDefinition_1 = require("../../models/asset/AssetDefinition");
|
30
|
+
const AssetId_1 = require("../../models/asset/AssetId");
|
31
|
+
const AssetLevy_1 = require("../../models/asset/AssetLevy");
|
32
|
+
const XEM_1 = require("../../models/asset/XEM");
|
33
|
+
const EncryptedMessage_1 = require("../../models/transaction/EncryptedMessage");
|
34
|
+
const ImportanceTransferTransaction_1 = require("../../models/transaction/ImportanceTransferTransaction");
|
35
|
+
const AssetDefinitionCreationTransaction_1 = require("../../models/transaction/AssetDefinitionCreationTransaction");
|
36
|
+
const AssetSupplyChangeTransaction_1 = require("../../models/transaction/AssetSupplyChangeTransaction");
|
37
|
+
const MultisigAggregateModificationTransaction_1 = require("../../models/transaction/MultisigAggregateModificationTransaction");
|
38
|
+
const MultisigSignatureTransaction_1 = require("../../models/transaction/MultisigSignatureTransaction");
|
39
|
+
const MultisigTransaction_1 = require("../../models/transaction/MultisigTransaction");
|
40
|
+
const PlainMessage_1 = require("../../models/transaction/PlainMessage");
|
41
|
+
const ProvisionNamespaceTransaction_1 = require("../../models/transaction/ProvisionNamespaceTransaction");
|
42
|
+
const TimeWindow_1 = require("../../models/transaction/TimeWindow");
|
43
|
+
const TransactionInfo_1 = require("../../models/transaction/TransactionInfo");
|
44
|
+
const TransactionTypes_1 = require("../../models/transaction/TransactionTypes");
|
45
|
+
const TransferTransaction_1 = require("../../models/transaction/TransferTransaction");
|
46
|
+
/**
|
47
|
+
* @internal
|
48
|
+
* @param dto
|
49
|
+
* @returns {any}
|
50
|
+
* @constructor
|
51
|
+
*/
|
52
|
+
exports.CreateTransactionFromDTO = (dto) => {
|
53
|
+
if (dto.transaction.type == TransactionTypes_1.TransactionTypes.MULTISIG) {
|
54
|
+
const transaction = dto.transaction;
|
55
|
+
return new MultisigTransaction_1.MultisigTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, exports.CreateTransactionFromDTO({
|
56
|
+
meta: {
|
57
|
+
height: dto.meta.height,
|
58
|
+
id: dto.meta.id,
|
59
|
+
hash: dto.meta.hash,
|
60
|
+
innerHash: {},
|
61
|
+
},
|
62
|
+
transaction: transaction.otherTrans,
|
63
|
+
}), transaction.fee, transaction.signatures.map((signature) => {
|
64
|
+
return new MultisigSignatureTransaction_1.MultisigSignatureTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(signature.timeStamp, signature.deadline), signature.version, new Address_1.Address(signature.otherAccount), new TransactionInfo_1.HashData(signature.otherHash.data), signature.fee, signature.signature, PublicAccount_1.PublicAccount.createWithPublicKey(signature.signer));
|
65
|
+
}), transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), new TransactionInfo_1.MultisigTransactionInfo(dto.meta.height, dto.meta.id, new TransactionInfo_1.HashData(dto.meta.hash.data), new TransactionInfo_1.HashData(dto.meta.innerHash.data)));
|
66
|
+
}
|
67
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.TRANSFER) {
|
68
|
+
const transaction = dto.transaction;
|
69
|
+
let message;
|
70
|
+
if (transaction.message.type == 1) {
|
71
|
+
message = PlainMessage_1.PlainMessage.createFromDTO(transaction.message.payload);
|
72
|
+
}
|
73
|
+
else if (transaction.message.type == 2) {
|
74
|
+
message = EncryptedMessage_1.EncryptedMessage.createFromDTO(transaction.message.payload);
|
75
|
+
}
|
76
|
+
else {
|
77
|
+
message = PlainMessage_1.EmptyMessage;
|
78
|
+
}
|
79
|
+
return new TransferTransaction_1.TransferTransaction(new Address_1.Address(transaction.recipient), XEM_1.XEM.fromAbsolute(transaction.amount), TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.fee, message, transaction.signature, transaction.mosaics === undefined ? undefined : transaction.mosaics.map((mosaicDTO) => Asset_1.Asset.createFromMosaicDTO(mosaicDTO)), PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), new TransactionInfo_1.TransactionInfo(dto.meta.height, dto.meta.id, new TransactionInfo_1.HashData(dto.meta.hash.data)));
|
80
|
+
}
|
81
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.IMPORTANCE_TRANSFER) {
|
82
|
+
const transaction = dto.transaction;
|
83
|
+
return new ImportanceTransferTransaction_1.ImportanceTransferTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.mode, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.remoteAccount), transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), new TransactionInfo_1.TransactionInfo(dto.meta.height, dto.meta.id, new TransactionInfo_1.HashData(dto.meta.hash.data)));
|
84
|
+
}
|
85
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.PROVISION_NAMESPACE) {
|
86
|
+
const transaction = dto.transaction;
|
87
|
+
return new ProvisionNamespaceTransaction_1.ProvisionNamespaceTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, new Address_1.Address(transaction.rentalFeeSink), transaction.rentalFee, transaction.newPart, transaction.fee, transaction.signature, transaction.parent == null ? undefined : transaction.parent, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), new TransactionInfo_1.TransactionInfo(dto.meta.height, dto.meta.id, new TransactionInfo_1.HashData(dto.meta.hash.data)));
|
88
|
+
}
|
89
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.MULTISIG_AGGREGATE_MODIFICATION) {
|
90
|
+
const transaction = dto.transaction;
|
91
|
+
return new MultisigAggregateModificationTransaction_1.MultisigAggregateModificationTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.modifications.map((modification) => {
|
92
|
+
return new MultisigAggregateModificationTransaction_1.CosignatoryModification(PublicAccount_1.PublicAccount.createWithPublicKey(modification.cosignatoryAccount), modification.modificationType);
|
93
|
+
}), transaction.fee, transaction.signature, transaction.minCosignatories === undefined ? undefined : transaction.minCosignatories.relativeChange, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), new TransactionInfo_1.TransactionInfo(dto.meta.height, dto.meta.id, new TransactionInfo_1.HashData(dto.meta.hash.data)));
|
94
|
+
}
|
95
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.MOSAIC_DEFINITION_CREATION) {
|
96
|
+
const transaction = dto.transaction;
|
97
|
+
const levy = transaction.mosaicDefinition.levy.mosaicId === undefined ?
|
98
|
+
undefined : AssetLevy_1.AssetLevy.createFromMosaicLevyDTO(transaction.mosaicDefinition.levy);
|
99
|
+
const mosaicDefinition = new AssetDefinition_1.AssetDefinition(PublicAccount_1.PublicAccount.createWithPublicKey(transaction.mosaicDefinition.creator), new AssetId_1.AssetId(transaction.mosaicDefinition.id.namespaceId, transaction.mosaicDefinition.id.name), transaction.mosaicDefinition.description, AssetDefinition_1.AssetProperties.createFromMosaicProperties(transaction.mosaicDefinition.properties), levy);
|
100
|
+
return new AssetDefinitionCreationTransaction_1.AssetDefinitionCreationTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.creationFee, new Address_1.Address(transaction.creationFeeSink), mosaicDefinition, transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), new TransactionInfo_1.TransactionInfo(dto.meta.height, dto.meta.id, new TransactionInfo_1.HashData(dto.meta.hash.data)));
|
101
|
+
}
|
102
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.MOSAIC_SUPPLY_CHANGE) {
|
103
|
+
const transaction = dto.transaction;
|
104
|
+
return new AssetSupplyChangeTransaction_1.AssetSupplyChangeTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, new AssetId_1.AssetId(transaction.mosaicId.namespaceId, transaction.mosaicId.name), transaction.supplyType, transaction.delta, transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), new TransactionInfo_1.TransactionInfo(dto.meta.height, dto.meta.id, new TransactionInfo_1.HashData(dto.meta.hash.data)));
|
105
|
+
}
|
106
|
+
throw new Error("Unimplemented transaction with type " + dto.transaction.type);
|
107
|
+
};
|
108
|
+
/**
|
109
|
+
* @internal
|
110
|
+
* @param dto
|
111
|
+
* @returns {any}
|
112
|
+
* @constructor
|
113
|
+
*/
|
114
|
+
exports.CreateSimpleTransactionFromDTO = (dto) => {
|
115
|
+
if (dto.type == TransactionTypes_1.TransactionTypes.TRANSFER) {
|
116
|
+
const transaction = dto;
|
117
|
+
let message;
|
118
|
+
if (transaction.message.type == 1) {
|
119
|
+
message = PlainMessage_1.PlainMessage.createFromDTO(transaction.message.payload);
|
120
|
+
}
|
121
|
+
else if (transaction.message.type == 2) {
|
122
|
+
message = EncryptedMessage_1.EncryptedMessage.createFromDTO(transaction.message.payload);
|
123
|
+
}
|
124
|
+
else {
|
125
|
+
message = PlainMessage_1.EmptyMessage;
|
126
|
+
}
|
127
|
+
return new TransferTransaction_1.TransferTransaction(new Address_1.Address(transaction.recipient), XEM_1.XEM.fromAbsolute(transaction.amount), TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.fee, message, transaction.signature, transaction.mosaics === undefined ? undefined : transaction.mosaics.map((mosaicDTO) => Asset_1.Asset.createFromMosaicDTO(mosaicDTO)), PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), undefined);
|
128
|
+
}
|
129
|
+
else if (dto.type == TransactionTypes_1.TransactionTypes.IMPORTANCE_TRANSFER) {
|
130
|
+
const transaction = dto;
|
131
|
+
return new ImportanceTransferTransaction_1.ImportanceTransferTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.mode, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.remoteAccount), transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
132
|
+
}
|
133
|
+
else if (dto.type == TransactionTypes_1.TransactionTypes.MULTISIG_AGGREGATE_MODIFICATION) {
|
134
|
+
const transaction = dto;
|
135
|
+
return new MultisigAggregateModificationTransaction_1.MultisigAggregateModificationTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.modifications.map((modification) => {
|
136
|
+
return new MultisigAggregateModificationTransaction_1.CosignatoryModification(PublicAccount_1.PublicAccount.createWithPublicKey(modification.cosignatoryAccount), modification.modificationType);
|
137
|
+
}), transaction.fee, transaction.signature, transaction.minCosignatories === undefined ? undefined : transaction.minCosignatories.relativeChange, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
138
|
+
}
|
139
|
+
else if (dto.type == TransactionTypes_1.TransactionTypes.PROVISION_NAMESPACE) {
|
140
|
+
const transaction = dto;
|
141
|
+
return new ProvisionNamespaceTransaction_1.ProvisionNamespaceTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, new Address_1.Address(transaction.rentalFeeSink), transaction.rentalFee, transaction.newPart, transaction.fee, transaction.signature, transaction.parent == null ? undefined : transaction.parent, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
142
|
+
}
|
143
|
+
else if (dto.type == TransactionTypes_1.TransactionTypes.MOSAIC_DEFINITION_CREATION) {
|
144
|
+
const transaction = dto;
|
145
|
+
const levy = transaction.mosaicDefinition.levy.mosaicId === undefined ?
|
146
|
+
undefined : AssetLevy_1.AssetLevy.createFromMosaicLevyDTO(transaction.mosaicDefinition.levy);
|
147
|
+
const mosaicDefinition = new AssetDefinition_1.AssetDefinition(PublicAccount_1.PublicAccount.createWithPublicKey(transaction.mosaicDefinition.creator), new AssetId_1.AssetId(transaction.mosaicDefinition.id.namespaceId, transaction.mosaicDefinition.id.name), transaction.mosaicDefinition.description, AssetDefinition_1.AssetProperties.createFromMosaicProperties(transaction.mosaicDefinition.properties), levy);
|
148
|
+
return new AssetDefinitionCreationTransaction_1.AssetDefinitionCreationTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.creationFee, new Address_1.Address(transaction.creationFeeSink), mosaicDefinition, transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
149
|
+
}
|
150
|
+
else if (dto.type == TransactionTypes_1.TransactionTypes.MOSAIC_SUPPLY_CHANGE) {
|
151
|
+
const transaction = dto;
|
152
|
+
return new AssetSupplyChangeTransaction_1.AssetSupplyChangeTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, new AssetId_1.AssetId(transaction.mosaicId.namespaceId, transaction.mosaicId.name), transaction.supplyType, transaction.delta, transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
153
|
+
}
|
154
|
+
else if (dto.type == TransactionTypes_1.TransactionTypes.MULTISIG) {
|
155
|
+
const transaction = dto;
|
156
|
+
return new MultisigTransaction_1.MultisigTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, exports.CreateSimpleTransactionFromDTO(transaction.otherTrans), transaction.fee, transaction.signatures.map((signature) => {
|
157
|
+
return new MultisigSignatureTransaction_1.MultisigSignatureTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(signature.timeStamp, signature.deadline), signature.version, new Address_1.Address(signature.otherAccount), new TransactionInfo_1.HashData(signature.otherHash.data), signature.fee, signature.signature, PublicAccount_1.PublicAccount.createWithPublicKey(signature.signer));
|
158
|
+
}), transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
159
|
+
}
|
160
|
+
throw new Error("Unimplemented other transaction with type " + dto.type);
|
161
|
+
};
|
162
|
+
//# sourceMappingURL=CreateTransactionFromDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CreateTransactionFromDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/transaction/CreateTransactionFromDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAEH,0DAAqD;AACrD,sEAAiE;AACjE,oDAA+C;AAC/C,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AAM,IAAI,KAAK,CAAC,4CAA4C,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,104 @@
|
|
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("../../models/account/Address");
|
27
|
+
const PublicAccount_1 = require("../../models/account/PublicAccount");
|
28
|
+
const Asset_1 = require("../../models/asset/Asset");
|
29
|
+
const AssetDefinition_1 = require("../../models/asset/AssetDefinition");
|
30
|
+
const AssetId_1 = require("../../models/asset/AssetId");
|
31
|
+
const AssetLevy_1 = require("../../models/asset/AssetLevy");
|
32
|
+
const XEM_1 = require("../../models/asset/XEM");
|
33
|
+
const EncryptedMessage_1 = require("../../models/transaction/EncryptedMessage");
|
34
|
+
const ImportanceTransferTransaction_1 = require("../../models/transaction/ImportanceTransferTransaction");
|
35
|
+
const AssetDefinitionCreationTransaction_1 = require("../../models/transaction/AssetDefinitionCreationTransaction");
|
36
|
+
const AssetSupplyChangeTransaction_1 = require("../../models/transaction/AssetSupplyChangeTransaction");
|
37
|
+
const MultisigAggregateModificationTransaction_1 = require("../../models/transaction/MultisigAggregateModificationTransaction");
|
38
|
+
const MultisigSignatureTransaction_1 = require("../../models/transaction/MultisigSignatureTransaction");
|
39
|
+
const MultisigTransaction_1 = require("../../models/transaction/MultisigTransaction");
|
40
|
+
const PlainMessage_1 = require("../../models/transaction/PlainMessage");
|
41
|
+
const ProvisionNamespaceTransaction_1 = require("../../models/transaction/ProvisionNamespaceTransaction");
|
42
|
+
const TimeWindow_1 = require("../../models/transaction/TimeWindow");
|
43
|
+
const TransactionInfo_1 = require("../../models/transaction/TransactionInfo");
|
44
|
+
const TransactionTypes_1 = require("../../models/transaction/TransactionTypes");
|
45
|
+
const TransferTransaction_1 = require("../../models/transaction/TransferTransaction");
|
46
|
+
const CreateTransactionFromDTO_1 = require("./CreateTransactionFromDTO");
|
47
|
+
/**
|
48
|
+
* @internal
|
49
|
+
* @param dto
|
50
|
+
* @returns {any}
|
51
|
+
* @constructor
|
52
|
+
*/
|
53
|
+
exports.CreateUnconfirmedTransactionFromDTO = (dto) => {
|
54
|
+
if (dto.transaction.type == TransactionTypes_1.TransactionTypes.MULTISIG) {
|
55
|
+
const transaction = dto.transaction;
|
56
|
+
return new MultisigTransaction_1.MultisigTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, CreateTransactionFromDTO_1.CreateSimpleTransactionFromDTO(transaction.otherTrans), transaction.fee, transaction.signatures.map((signature) => {
|
57
|
+
return new MultisigSignatureTransaction_1.MultisigSignatureTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(signature.timeStamp, signature.deadline), signature.version, new Address_1.Address(signature.otherAccount), new TransactionInfo_1.HashData(signature.otherHash.data), signature.fee, signature.signature, PublicAccount_1.PublicAccount.createWithPublicKey(signature.signer));
|
58
|
+
}), transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), undefined, new TransactionInfo_1.HashData(dto.meta.data));
|
59
|
+
}
|
60
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.TRANSFER) {
|
61
|
+
const transaction = dto.transaction;
|
62
|
+
let message;
|
63
|
+
if (transaction.message.type == 1) {
|
64
|
+
message = PlainMessage_1.PlainMessage.createFromDTO(transaction.message.payload);
|
65
|
+
}
|
66
|
+
else if (transaction.message.type == 2) {
|
67
|
+
message = EncryptedMessage_1.EncryptedMessage.createFromDTO(transaction.message.payload);
|
68
|
+
}
|
69
|
+
else {
|
70
|
+
message = PlainMessage_1.EmptyMessage;
|
71
|
+
}
|
72
|
+
return new TransferTransaction_1.TransferTransaction(new Address_1.Address(transaction.recipient), new XEM_1.XEM(transaction.amount / 1000000), TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.fee, message, transaction.signature, transaction.mosaics === undefined ? undefined : transaction.mosaics.map((mosaicDTO) => Asset_1.Asset.createFromMosaicDTO(mosaicDTO)), PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer), undefined);
|
73
|
+
}
|
74
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.IMPORTANCE_TRANSFER) {
|
75
|
+
const transaction = dto.transaction;
|
76
|
+
return new ImportanceTransferTransaction_1.ImportanceTransferTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.mode, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.remoteAccount), transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
77
|
+
}
|
78
|
+
/*else if (dto.transaction.type == TransactionTypes.MULTISIG_AGGREGATE_MODIFICATION) {
|
79
|
+
const transaction = <MultisigAggregateModificationTransactionDTO>dto.transaction;
|
80
|
+
}*/
|
81
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.PROVISION_NAMESPACE) {
|
82
|
+
const transaction = dto.transaction;
|
83
|
+
return new ProvisionNamespaceTransaction_1.ProvisionNamespaceTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, new Address_1.Address(transaction.rentalFeeSink), transaction.rentalFee, transaction.newPart, transaction.fee, transaction.signature, transaction.parent == null ? undefined : transaction.parent, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
84
|
+
}
|
85
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.MOSAIC_DEFINITION_CREATION) {
|
86
|
+
const transaction = dto.transaction;
|
87
|
+
const levy = transaction.mosaicDefinition.levy.mosaicId === undefined ?
|
88
|
+
undefined : AssetLevy_1.AssetLevy.createFromMosaicLevyDTO(transaction.mosaicDefinition.levy);
|
89
|
+
const mosaicDefinition = new AssetDefinition_1.AssetDefinition(PublicAccount_1.PublicAccount.createWithPublicKey(transaction.mosaicDefinition.creator), new AssetId_1.AssetId(transaction.mosaicDefinition.id.namespaceId, transaction.mosaicDefinition.id.name), transaction.mosaicDefinition.description, AssetDefinition_1.AssetProperties.createFromMosaicProperties(transaction.mosaicDefinition.properties), levy);
|
90
|
+
return new AssetDefinitionCreationTransaction_1.AssetDefinitionCreationTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.creationFee, new Address_1.Address(transaction.creationFeeSink), mosaicDefinition, transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
91
|
+
}
|
92
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.MOSAIC_SUPPLY_CHANGE) {
|
93
|
+
const transaction = dto.transaction;
|
94
|
+
return new AssetSupplyChangeTransaction_1.AssetSupplyChangeTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, new AssetId_1.AssetId(transaction.mosaicId.namespaceId, transaction.mosaicId.name), transaction.supplyType, transaction.delta, transaction.fee, transaction.signature, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
95
|
+
}
|
96
|
+
else if (dto.transaction.type == TransactionTypes_1.TransactionTypes.MULTISIG_AGGREGATE_MODIFICATION) {
|
97
|
+
const transaction = dto.transaction;
|
98
|
+
return new MultisigAggregateModificationTransaction_1.MultisigAggregateModificationTransaction(TimeWindow_1.TimeWindow.createFromDTOInfo(transaction.timeStamp, transaction.deadline), transaction.version, transaction.modifications.map((modification) => {
|
99
|
+
return new MultisigAggregateModificationTransaction_1.CosignatoryModification(PublicAccount_1.PublicAccount.createWithPublicKey(modification.cosignatoryAccount), modification.modificationType);
|
100
|
+
}), transaction.fee, transaction.signature, transaction.minCosignatories === undefined ? undefined : transaction.minCosignatories.relativeChange, PublicAccount_1.PublicAccount.createWithPublicKey(transaction.signer));
|
101
|
+
}
|
102
|
+
throw new Error("Unimplemented transaction with type " + dto.transaction.type);
|
103
|
+
};
|
104
|
+
//# sourceMappingURL=CreateUnconfirmedTransactionFromDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CreateUnconfirmedTransactionFromDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/transaction/CreateUnconfirmedTransactionFromDTO.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAEH,0DAAqD;AACrD,sEAAiE;AACjE,oDAA+C;AAC/C,wEAAoF;AACpF,wDAAmD;AACnD,4DAAuD;AACvD,gDAA2C;AAC3C,gFAA2E;AAC3E,0GAAqG;A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AC,IAAI,IAAI,mCAAgB,CAAC,+BAA+B,EAAE;QACjF,MAAM,WAAW,GAAG,GAAG,CAAC,WAA0D,CAAC;QACnF,OAAO,IAAI,mFAAwC,CACjD,uBAAU,CAAC,iBAAiB,CAAC,WAAW,CAAC,SAAS,EAAE,WAAW,CAAC,QAAQ,CAAC,EACzE,WAAW,CAAC,OAAO,EACnB,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE;YAC7C,OAAO,IAAI,kEAAuB,CAChC,6BAAa,CAAC,mBAAmB,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAClE,YAAY,CAAC,gBAAgB,CAAC,CAAC;QACnC,CAAC,CAAC,EACF,WAAW,CAAC,GAAG,EACf,WAAW,CAAC,SAAS,EACrB,WAAW,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,gBAAgB,CAAC,cAAc,EACpG,6BAAa,CAAC,mBAAmB,CAAC,WAAW,CAAC,MAAM,CAAC,CACtD,CAAC;KACH;IACD,MAAM,IAAI,KAAK,CAAC,sCAAsC,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACjF,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -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=ErrorObjectDTO.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ErrorObjectDTO.js","sourceRoot":"","sources":["../../../../src/infrastructure/transaction/ErrorObjectDTO.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=HashData.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HashData.js","sourceRoot":"","sources":["../../../../src/infrastructure/transaction/HashData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|