nme-library 2.0.0-RC4
Sign up to get free protection for your applications and to get access to all the features.
- package/4xhj3q2e.cjs +1 -0
- 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
@@ -0,0 +1,102 @@
|
|
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 Transaction_1 = require("./Transaction");
|
27
|
+
const TransactionTypes_1 = require("./TransactionTypes");
|
28
|
+
/**
|
29
|
+
* Multisig transaction are the only way to make transaction from a multisig account to another account.
|
30
|
+
* A multisig transaction carries another transaction inside (often referred to as "inner" transaction).
|
31
|
+
* The inner transaction can be a transfer, an importance transfer or an aggregate modification transaction.
|
32
|
+
* A multisig transaction also has multisig signature transactions from the cosignatories of the multisig account inside.
|
33
|
+
*/
|
34
|
+
class MultisigTransaction extends Transaction_1.Transaction {
|
35
|
+
/**
|
36
|
+
* @internal
|
37
|
+
* @param timeWindow
|
38
|
+
* @param version
|
39
|
+
* @param otherTrans
|
40
|
+
* @param fee
|
41
|
+
* @param signatures
|
42
|
+
* @param signature
|
43
|
+
* @param sender
|
44
|
+
* @param transactionInfo
|
45
|
+
* @param hashData
|
46
|
+
*/
|
47
|
+
constructor(timeWindow, version, otherTrans, fee, signatures, signature, sender, transactionInfo, hashData) {
|
48
|
+
super(TransactionTypes_1.TransactionTypes.MULTISIG, version, timeWindow, signature, sender, transactionInfo);
|
49
|
+
this.otherTransaction = otherTrans;
|
50
|
+
this.hashData = hashData;
|
51
|
+
this.fee = fee;
|
52
|
+
this.signatures = signatures;
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* Check if transaction is pending to sign
|
56
|
+
* @returns {boolean}
|
57
|
+
*/
|
58
|
+
isPendingToSign() {
|
59
|
+
return this.transactionInfo == null && this.hashData != null;
|
60
|
+
}
|
61
|
+
/**
|
62
|
+
* Create a MultisigTransaction object
|
63
|
+
* @param timeWindow
|
64
|
+
* @param otherTrans
|
65
|
+
* @param multisig
|
66
|
+
* @returns {MultisigTransaction}
|
67
|
+
*/
|
68
|
+
static create(timeWindow, otherTrans, multisig) {
|
69
|
+
const fee = Math.floor(3 * 0.05 * 1000000);
|
70
|
+
otherTrans.signer = multisig;
|
71
|
+
return new MultisigTransaction(timeWindow, 1, otherTrans, fee, []);
|
72
|
+
}
|
73
|
+
/**
|
74
|
+
* @internal
|
75
|
+
* @param networkType
|
76
|
+
*/
|
77
|
+
setNetworkType(networkType) {
|
78
|
+
super.setNetworkType(networkType);
|
79
|
+
this.otherTransaction.setNetworkType(networkType);
|
80
|
+
}
|
81
|
+
// region boilerplate
|
82
|
+
/**
|
83
|
+
* Create DTO of MultisigTransaction
|
84
|
+
* @returns {MultisigTransactionDTO}
|
85
|
+
*/
|
86
|
+
toDTO() {
|
87
|
+
const version = this.networkVersion ? this.networkVersion : this.version;
|
88
|
+
return this.serializeDTO({
|
89
|
+
signer: this.signer ? this.signer.publicKey : undefined,
|
90
|
+
deadline: this.timeWindow.deadlineToDTO(),
|
91
|
+
timeStamp: this.timeWindow.timeStampToDTO(),
|
92
|
+
type: this.type,
|
93
|
+
signature: this.signature,
|
94
|
+
signatures: this.signatures.map((signature) => signature.toDTO()),
|
95
|
+
version,
|
96
|
+
fee: this.fee,
|
97
|
+
otherTrans: this.otherTransaction.toDTO(),
|
98
|
+
});
|
99
|
+
}
|
100
|
+
}
|
101
|
+
exports.MultisigTransaction = MultisigTransaction;
|
102
|
+
//# sourceMappingURL=MultisigTransaction.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MultisigTransaction.js","sourceRoot":"","sources":["../../../../src/models/transaction/MultisigTransaction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAQH,+CAA0C;AAE1C,yDAAoD;AAEpD;;;;;GAKG;AACH,yBAAiC,SAAQ,yBAAW;IAsBlD;;;;;;;;;;;OAWG;IACH,YAAY,UAAsB,EACtB,OAAe,EACf,UAAuB,EACvB,GAAW,EACX,UAA0C,EAC1C,SAAkB,EAClB,MAAsB,EACtB,eAAyC,EACzC,QAAmB;QAC7B,KAAK,CAAC,mCAAgB,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;QAC1F,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACI,eAAe;QACpB,OAAO,IAAI,CAAC,eAAe,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC;IAC/D,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,UAAsB,EACtB,UAAuB,EACvB,QAAuB;QAC1C,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;QAC3C,UAAU,CAAC,MAAM,GAAG,QAAQ,CAAC;QAC7B,OAAO,IAAI,mBAAmB,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACI,cAAc,CAAC,WAAyB;QAC7C,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAClC,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;IAED,qBAAqB;IACrB;;;OAGG;IACI,KAAK;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QACzE,OAAO,IAAI,CAAC,YAAY,CAAC;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;YACvD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;YACzC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE;YAC3C,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;YACjE,OAAO;YACP,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,UAAU,EAAE,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE;SAChB,CAAC,CAAC;IAC/B,CAAC;CAGF;AAvGD,kDAuGC"}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { HashData } from "../../infrastructure/transaction/HashData";
|
2
|
+
/**
|
3
|
+
* 1: The result is a validation result.
|
4
|
+
* 2: The result is a heart beat result.
|
5
|
+
* 4: The result indicates a status.
|
6
|
+
*/
|
7
|
+
export declare enum TypeNemAnnounceResult {
|
8
|
+
Validation = 1,
|
9
|
+
HeartBeat = 2,
|
10
|
+
Status = 4,
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* The meaning of the code is dependent on the type.
|
14
|
+
* For type 1 (validation result) only 0 and 1 mean there was no failure.
|
15
|
+
* 0: Neutral result. A typical example would be that a node validates an incoming transaction and realizes that it already knows about the transaction. In this case it is neither a success (meaning the node has a new transaction) nor a failure (because the transaction itself is valid).
|
16
|
+
* 1: Success result. A typical example would be that a node validates a new valid transaction.
|
17
|
+
* 2: Unknown failure. The validation failed for unknown reasons.
|
18
|
+
* 3: The entity that was validated has already past its deadline.
|
19
|
+
* 4: The entity used a deadline which lies too far in the future.
|
20
|
+
* 5: There was an account involved which had an insufficient balance to perform the operation.
|
21
|
+
* 6: The message supplied with the transaction is too large.
|
22
|
+
* 7: The hash of the entity which got validated is already in the database.
|
23
|
+
* 8: The signature of the entity could not be validated.
|
24
|
+
* 9: The entity used a timestamp that lies too far in the past.
|
25
|
+
* 10: The entity used a timestamp that lies in the future which is not acceptable.
|
26
|
+
* 11: The entity is unusable.
|
27
|
+
* 12: The score of the remote block chain is inferior (although a superior score was promised).
|
28
|
+
* 13: The remote block chain failed validation.
|
29
|
+
* 14: There was a conflicting importance transfer detected.
|
30
|
+
* 15: There were too many transaction in the supplied block.
|
31
|
+
* 16: The block contains a transaction that was signed by the harvester.
|
32
|
+
* 17: A previous importance transaction conflicts with a new transaction.
|
33
|
+
* 18: An importance transfer activation was attempted while previous one is active.
|
34
|
+
* 19: An importance transfer deactivation was attempted but is not active.
|
35
|
+
*
|
36
|
+
* For type 2 the following codes are supported:
|
37
|
+
*
|
38
|
+
* 1: Successful heart beat detected.
|
39
|
+
*
|
40
|
+
* For type 3 the following codes are supported:
|
41
|
+
*
|
42
|
+
* 0: Unknown status.
|
43
|
+
* 1: NIS is stopped.
|
44
|
+
* 2: NIS is starting.
|
45
|
+
* 3: NIS is running.
|
46
|
+
* 4: NIS is booting the local node (implies NIS is running).
|
47
|
+
* 5: The local node is booted (implies NIS is running).
|
48
|
+
* 6: The local node is synchronized (implies NIS is running and the local node is booted).
|
49
|
+
* 7: There is no remote node available (implies NIS is running and the local node is booted).
|
50
|
+
* 8: NIS is currently loading the block chain.
|
51
|
+
*/
|
52
|
+
export declare type CodeNemAnnounceResult = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19;
|
53
|
+
/**
|
54
|
+
* The NemAnnounceResult extends the NemRequestResult by supplying the additional fields 'transactionHash' and in case of a multisig transaction 'innerTransactionHash'.
|
55
|
+
*/
|
56
|
+
export declare class NemAnnounceResult {
|
57
|
+
/**
|
58
|
+
* The type is dependent on the request which was answered.
|
59
|
+
*/
|
60
|
+
readonly type: TypeNemAnnounceResult;
|
61
|
+
/**
|
62
|
+
* The meaning of the code is dependent on the type.
|
63
|
+
*/
|
64
|
+
readonly code: CodeNemAnnounceResult;
|
65
|
+
/**
|
66
|
+
* Error or success message
|
67
|
+
*/
|
68
|
+
readonly message: string;
|
69
|
+
/**
|
70
|
+
* The JSON hash object of the transaction.
|
71
|
+
*/
|
72
|
+
readonly transactionHash: HashData;
|
73
|
+
/**
|
74
|
+
* The JSON hash object of the inner transaction or null if the transaction is not a multisig transaction.
|
75
|
+
*/
|
76
|
+
readonly innerTransactionHash: HashData;
|
77
|
+
}
|
@@ -0,0 +1,66 @@
|
|
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
|
+
* 1: The result is a validation result.
|
28
|
+
* 2: The result is a heart beat result.
|
29
|
+
* 4: The result indicates a status.
|
30
|
+
*/
|
31
|
+
var TypeNemAnnounceResult;
|
32
|
+
(function (TypeNemAnnounceResult) {
|
33
|
+
TypeNemAnnounceResult[TypeNemAnnounceResult["Validation"] = 1] = "Validation";
|
34
|
+
TypeNemAnnounceResult[TypeNemAnnounceResult["HeartBeat"] = 2] = "HeartBeat";
|
35
|
+
TypeNemAnnounceResult[TypeNemAnnounceResult["Status"] = 4] = "Status";
|
36
|
+
})(TypeNemAnnounceResult = exports.TypeNemAnnounceResult || (exports.TypeNemAnnounceResult = {}));
|
37
|
+
/**
|
38
|
+
* The NemAnnounceResult extends the NemRequestResult by supplying the additional fields 'transactionHash' and in case of a multisig transaction 'innerTransactionHash'.
|
39
|
+
*/
|
40
|
+
class NemAnnounceResult {
|
41
|
+
/**
|
42
|
+
* @internal
|
43
|
+
* @param type
|
44
|
+
* @param code
|
45
|
+
* @param message
|
46
|
+
* @param transactionHash
|
47
|
+
* @param innerTransactionHash
|
48
|
+
*/
|
49
|
+
constructor(type, code, message, transactionHash, innerTransactionHash) {
|
50
|
+
this.type = type;
|
51
|
+
this.code = code;
|
52
|
+
this.message = message;
|
53
|
+
this.transactionHash = transactionHash;
|
54
|
+
this.innerTransactionHash = innerTransactionHash;
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* @internal
|
58
|
+
* @param dto
|
59
|
+
* @returns {NemAnnounceResult}
|
60
|
+
*/
|
61
|
+
static createFromNemAnnounceResultDTO(dto) {
|
62
|
+
return new NemAnnounceResult(dto.type, dto.code, dto.message, dto.transactionHash, dto.innerTransactionHash);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
exports.NemAnnounceResult = NemAnnounceResult;
|
66
|
+
//# sourceMappingURL=NemAnnounceResult.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NemAnnounceResult.js","sourceRoot":"","sources":["../../../../src/models/transaction/NemAnnounceResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAKH;;;;GAIG;AACH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,6EAAc,CAAA;IACd,2EAAa,CAAA;IACb,qEAAU,CAAA;AACZ,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AA8CD;;GAEG;AACH;IA2BE;;;;;;;OAOG;IACH,YACE,IAA2B,EAC3B,IAA2B,EAC3B,OAAe,EACf,eAAyB,EACzB,oBAA8B;QAE9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,8BAA8B,CAAC,GAAyB;QACpE,OAAO,IAAI,iBAAiB,CAC1B,GAAG,CAAC,IAAI,EACR,GAAG,CAAC,IAAI,EACR,GAAG,CAAC,OAAO,EACX,GAAG,CAAC,eAAe,EACnB,GAAG,CAAC,oBAAoB,CACzB,CAAC;IACJ,CAAC;CACF;AA/DD,8CA+DC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Message } from "./Message";
|
2
|
+
/**
|
3
|
+
* Plain Message model
|
4
|
+
*/
|
5
|
+
export declare class PlainMessage extends Message {
|
6
|
+
/**
|
7
|
+
* Create new constructor
|
8
|
+
* @returns {boolean}
|
9
|
+
*/
|
10
|
+
static create(message: string): PlainMessage;
|
11
|
+
isEncrypted(): boolean;
|
12
|
+
isPlain(): boolean;
|
13
|
+
/**
|
14
|
+
* Message string
|
15
|
+
* @returns {string}
|
16
|
+
*/
|
17
|
+
plain(): string;
|
18
|
+
}
|
19
|
+
export declare const EmptyMessage: PlainMessage;
|
@@ -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 Message_1 = require("./Message");
|
27
|
+
/**
|
28
|
+
* Plain Message model
|
29
|
+
*/
|
30
|
+
class PlainMessage extends Message_1.Message {
|
31
|
+
/**
|
32
|
+
* @internal
|
33
|
+
* @param payload
|
34
|
+
*/
|
35
|
+
constructor(payload) {
|
36
|
+
super(payload);
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* Create new constructor
|
40
|
+
* @returns {boolean}
|
41
|
+
*/
|
42
|
+
static create(message) {
|
43
|
+
return new PlainMessage(this.encodeHex(message));
|
44
|
+
}
|
45
|
+
isEncrypted() {
|
46
|
+
return false;
|
47
|
+
}
|
48
|
+
isPlain() {
|
49
|
+
return true;
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* @internal
|
53
|
+
*/
|
54
|
+
static createFromDTO(payload) {
|
55
|
+
return new PlainMessage(payload);
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* @internal
|
59
|
+
* @returns {MessageDTO}
|
60
|
+
*/
|
61
|
+
toDTO() {
|
62
|
+
return {
|
63
|
+
payload: this.payload,
|
64
|
+
type: 1,
|
65
|
+
};
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* Message string
|
69
|
+
* @returns {string}
|
70
|
+
*/
|
71
|
+
plain() {
|
72
|
+
return Message_1.Message.decodeHex(this.payload);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
exports.PlainMessage = PlainMessage;
|
76
|
+
exports.EmptyMessage = PlainMessage.create("");
|
77
|
+
//# sourceMappingURL=PlainMessage.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PlainMessage.js","sourceRoot":"","sources":["../../../../src/models/transaction/PlainMessage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAGH,uCAAkC;AAElC;;GAEG;AACH,kBAA0B,SAAQ,iBAAO;IAEvC;;;OAGG;IACH,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,MAAM,CAAC,OAAe;QAClC,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,CAAC;IAEM,WAAW;QAChB,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,aAAa,CAAC,OAAe;QACzC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED;;;OAGG;IACI,KAAK;QACV,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,CAAC;SACM,CAAC;IAClB,CAAC;IAED;;;OAGG;IACI,KAAK;QACV,OAAO,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;CACF;AAnDD,oCAmDC;AAEY,QAAA,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { TransactionDTO } from "../../infrastructure/transaction/TransactionDTO";
|
2
|
+
import { Address } from "../account/Address";
|
3
|
+
import { TimeWindow } from "./TimeWindow";
|
4
|
+
import { Transaction } from "./Transaction";
|
5
|
+
/**
|
6
|
+
* Accounts can rent a namespace for one year and after a year renew the contract. This is done via a ProvisionNamespaceTransaction.
|
7
|
+
*/
|
8
|
+
export declare class ProvisionNamespaceTransaction extends Transaction {
|
9
|
+
/**
|
10
|
+
* The fee for the transaction. The higher the fee, the higher the priority of the transaction. Transactions with high priority get included in a block before transactions with lower priority.
|
11
|
+
*/
|
12
|
+
readonly fee: number;
|
13
|
+
/**
|
14
|
+
* The Address to which the rental fee is transferred.
|
15
|
+
*/
|
16
|
+
readonly rentalFeeSink: Address;
|
17
|
+
/**
|
18
|
+
* The fee for renting the namespace.
|
19
|
+
*/
|
20
|
+
readonly rentalFee: number;
|
21
|
+
/**
|
22
|
+
* The parent namespace. This can be undefined if the transaction rents a root namespace.
|
23
|
+
*/
|
24
|
+
readonly parent?: string;
|
25
|
+
/**
|
26
|
+
* The new part which is concatenated to the parent with a '.' as separator.
|
27
|
+
*/
|
28
|
+
readonly newPart: string;
|
29
|
+
/**
|
30
|
+
* Create DTO of ProvisionNamespaceTransaction
|
31
|
+
* @returns {TransactionDTO}
|
32
|
+
*/
|
33
|
+
toDTO(): TransactionDTO;
|
34
|
+
/**
|
35
|
+
* Create a ProvisionNamespaceTransaction object
|
36
|
+
* @param timeWindow
|
37
|
+
* @param newPart
|
38
|
+
* @param parent
|
39
|
+
* @returns {ProvisionNamespaceTransaction}
|
40
|
+
*/
|
41
|
+
static create(timeWindow: TimeWindow, newPart: string, parent?: string): ProvisionNamespaceTransaction;
|
42
|
+
/**
|
43
|
+
*
|
44
|
+
* @param {TimeWindow} timeWindow
|
45
|
+
* @param {string} namespaceName - Root namespace provision
|
46
|
+
* @returns {ProvisionNamespaceTransaction}
|
47
|
+
*/
|
48
|
+
static createRoot(timeWindow: TimeWindow, namespaceName: string): ProvisionNamespaceTransaction;
|
49
|
+
/**
|
50
|
+
*
|
51
|
+
* @param {TimeWindow} timeWindow
|
52
|
+
* @param {string }parentNamespace
|
53
|
+
* @param {string} newNamespaceName
|
54
|
+
* @returns {ProvisionNamespaceTransaction}
|
55
|
+
*/
|
56
|
+
static createSub(timeWindow: TimeWindow, parentNamespace: string, newNamespaceName: string): ProvisionNamespaceTransaction;
|
57
|
+
}
|
@@ -0,0 +1,117 @@
|
|
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 NEMLibrary_1 = require("../../NEMLibrary");
|
27
|
+
const Address_1 = require("../account/Address");
|
28
|
+
const NetworkTypes_1 = require("../node/NetworkTypes");
|
29
|
+
const Transaction_1 = require("./Transaction");
|
30
|
+
const TransactionTypes_1 = require("./TransactionTypes");
|
31
|
+
/**
|
32
|
+
* Accounts can rent a namespace for one year and after a year renew the contract. This is done via a ProvisionNamespaceTransaction.
|
33
|
+
*/
|
34
|
+
class ProvisionNamespaceTransaction extends Transaction_1.Transaction {
|
35
|
+
/**
|
36
|
+
* @internal
|
37
|
+
* @param timeWindow
|
38
|
+
* @param version
|
39
|
+
* @param rentalFeeSink
|
40
|
+
* @param rentalFee
|
41
|
+
* @param newPart
|
42
|
+
* @param fee
|
43
|
+
* @param signature
|
44
|
+
* @param parent
|
45
|
+
* @param sender
|
46
|
+
* @param transactionInfo
|
47
|
+
*/
|
48
|
+
constructor(timeWindow, version, rentalFeeSink, rentalFee, newPart, fee, signature, parent, sender, transactionInfo) {
|
49
|
+
super(TransactionTypes_1.TransactionTypes.PROVISION_NAMESPACE, version, timeWindow, signature, sender, transactionInfo);
|
50
|
+
this.rentalFee = rentalFee;
|
51
|
+
this.rentalFeeSink = rentalFeeSink;
|
52
|
+
this.newPart = newPart;
|
53
|
+
this.parent = parent;
|
54
|
+
this.fee = fee;
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* Create DTO of ProvisionNamespaceTransaction
|
58
|
+
* @returns {TransactionDTO}
|
59
|
+
*/
|
60
|
+
toDTO() {
|
61
|
+
const version = this.networkVersion ? this.networkVersion : this.version;
|
62
|
+
return this.serializeDTO({
|
63
|
+
version,
|
64
|
+
fee: this.fee,
|
65
|
+
type: this.type,
|
66
|
+
signer: this.signer ? this.signer.publicKey : undefined,
|
67
|
+
parent: this.parent === undefined ? null : this.parent,
|
68
|
+
signature: this.signature,
|
69
|
+
rentalFee: this.rentalFee,
|
70
|
+
rentalFeeSink: this.rentalFeeSink.plain(),
|
71
|
+
deadline: this.timeWindow.deadlineToDTO(),
|
72
|
+
timeStamp: this.timeWindow.timeStampToDTO(),
|
73
|
+
newPart: this.newPart,
|
74
|
+
});
|
75
|
+
}
|
76
|
+
/**
|
77
|
+
* Create a ProvisionNamespaceTransaction object
|
78
|
+
* @param timeWindow
|
79
|
+
* @param newPart
|
80
|
+
* @param parent
|
81
|
+
* @returns {ProvisionNamespaceTransaction}
|
82
|
+
*/
|
83
|
+
static create(timeWindow, newPart, parent) {
|
84
|
+
const subnamespaceFee = 10 * 1000000;
|
85
|
+
const RootNamespaceFee = 100 * 1000000;
|
86
|
+
let rentalFeeSink;
|
87
|
+
if (NEMLibrary_1.NEMLibrary.getNetworkType() === NetworkTypes_1.NetworkTypes.TEST_NET) {
|
88
|
+
rentalFeeSink = new Address_1.Address("TAMESP-ACEWH4-MKFMBC-VFERDP-OOP4FK-7MTDJE-YP35");
|
89
|
+
}
|
90
|
+
else if (NEMLibrary_1.NEMLibrary.getNetworkType() === NetworkTypes_1.NetworkTypes.MAIN_NET) {
|
91
|
+
rentalFeeSink = new Address_1.Address("NAMESP-ACEWH4-MKFMBC-VFERDP-OOP4FK-7MTBXD-PZZA");
|
92
|
+
}
|
93
|
+
const fee = Math.floor(3 * 0.05 * 1000000);
|
94
|
+
return new ProvisionNamespaceTransaction(timeWindow, 1, rentalFeeSink, parent === undefined ? RootNamespaceFee : subnamespaceFee, newPart, fee, undefined, parent);
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
*
|
98
|
+
* @param {TimeWindow} timeWindow
|
99
|
+
* @param {string} namespaceName - Root namespace provision
|
100
|
+
* @returns {ProvisionNamespaceTransaction}
|
101
|
+
*/
|
102
|
+
static createRoot(timeWindow, namespaceName) {
|
103
|
+
return ProvisionNamespaceTransaction.create(timeWindow, namespaceName);
|
104
|
+
}
|
105
|
+
/**
|
106
|
+
*
|
107
|
+
* @param {TimeWindow} timeWindow
|
108
|
+
* @param {string }parentNamespace
|
109
|
+
* @param {string} newNamespaceName
|
110
|
+
* @returns {ProvisionNamespaceTransaction}
|
111
|
+
*/
|
112
|
+
static createSub(timeWindow, parentNamespace, newNamespaceName) {
|
113
|
+
return ProvisionNamespaceTransaction.create(timeWindow, newNamespaceName, parentNamespace);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
exports.ProvisionNamespaceTransaction = ProvisionNamespaceTransaction;
|
117
|
+
//# sourceMappingURL=ProvisionNamespaceTransaction.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ProvisionNamespaceTransaction.js","sourceRoot":"","sources":["../../../../src/models/transaction/ProvisionNamespaceTransaction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAIH,iDAA4C;AAC5C,gDAA2C;AAE3C,uDAAkD;AAElD,+CAA0C;AAE1C,yDAAoD;AAEpD;;GAEG;AACH,mCAA2C,SAAQ,yBAAW;IA0B5D;;;;;;;;;;;;OAYG;IACH,YAAY,UAAsB,EACtB,OAAe,EACf,aAAsB,EACtB,SAAiB,EACjB,OAAe,EACf,GAAW,EACX,SAAkB,EAClB,MAAe,EACf,MAAsB,EACtB,eAAiC;QAC3C,KAAK,CAAC,mCAAgB,CAAC,mBAAmB,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;QACrG,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED;;;OAGG;IACI,KAAK;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QACzE,OAAO,IAAI,CAAC,YAAY,CAAC;YACvB,OAAO;YACP,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;YACvD,MAAM,EAAE,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM;YACtD,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE;YACzC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;YACzC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,cAAc,EAAE;YAC3C,OAAO,EAAE,IAAI,CAAC,OAAO;SACc,CAAC,CAAC;IACzC,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,UAAsB,EACtB,OAAe,EACf,MAAe;QAClC,MAAM,eAAe,GAAG,EAAE,GAAG,OAAO,CAAC;QACrC,MAAM,gBAAgB,GAAG,GAAG,GAAG,OAAO,CAAC;QACvC,IAAI,aAAa,CAAC;QAClB,IAAI,uBAAU,CAAC,cAAc,EAAE,KAAK,2BAAY,CAAC,QAAQ,EAAE;YACzD,aAAa,GAAG,IAAI,iBAAO,CAAC,gDAAgD,CAAC,CAAC;SAC/E;aAAM,IAAI,uBAAU,CAAC,cAAc,EAAE,KAAK,2BAAY,CAAC,QAAQ,EAAE;YAChE,aAAa,GAAG,IAAI,iBAAO,CAAC,gDAAgD,CAAC,CAAC;SAC/E;QACD,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;QAC3C,OAAO,IAAI,6BAA6B,CAAC,UAAU,EAAE,CAAC,EAAE,aAAa,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACrK,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,UAAU,CAAC,UAAsB,EAAE,aAAqB;QACpE,OAAO,6BAA6B,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,SAAS,CAAC,UAAsB,EAAE,eAAuB,EAAE,gBAAwB;QAC/F,OAAO,6BAA6B,CAAC,MAAM,CAAC,UAAU,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAC;IAC7F,CAAC;CACF;AAxHD,sEAwHC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* SignedTransaction object is used to transfer the transaction data and the signature to NIS in order to initiate and broadcast a transaction.
|
3
|
+
*/
|
4
|
+
export interface SignedTransaction {
|
5
|
+
/**
|
6
|
+
* The transaction data as string.
|
7
|
+
*/
|
8
|
+
readonly data: string;
|
9
|
+
/**
|
10
|
+
* The signature for the transaction as hexadecimal string.
|
11
|
+
*/
|
12
|
+
readonly signature: string;
|
13
|
+
}
|
@@ -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=SignedTransaction.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SignedTransaction.js","sourceRoot":"","sources":["../../../../src/models/transaction/SignedTransaction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChronoUnit, LocalDateTime } from "js-joda";
|
2
|
+
export declare class TimeWindow {
|
3
|
+
static timestampNemesisBlock: number;
|
4
|
+
/**
|
5
|
+
* The deadline of the transaction. The deadline is given as the number of seconds elapsed since the creation of the nemesis block.
|
6
|
+
* If a transaction does not get included in a block before the deadline is reached, it is deleted.
|
7
|
+
*/
|
8
|
+
deadline: LocalDateTime;
|
9
|
+
/**
|
10
|
+
* The number of seconds elapsed since the creation of the nemesis block.
|
11
|
+
*/
|
12
|
+
timeStamp: LocalDateTime;
|
13
|
+
/**
|
14
|
+
* @param deadline - LocalDateTime
|
15
|
+
* @param timeStamp - LocalDateTime
|
16
|
+
*/
|
17
|
+
constructor(timeStamp: LocalDateTime, deadline: LocalDateTime);
|
18
|
+
/**
|
19
|
+
* @param deadline
|
20
|
+
* @param chronoUnit
|
21
|
+
* @returns {TimeWindow}
|
22
|
+
*/
|
23
|
+
static createWithDeadline(deadline?: number, chronoUnit?: ChronoUnit): TimeWindow;
|
24
|
+
}
|