@hiero-ledger/sdk 2.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +167 -0
- package/dist/umd.js +98781 -0
- package/dist/umd.min.js +122 -0
- package/lib/BadEntityIdError.cjs +27 -0
- package/lib/BadEntityIdError.d.ts +15 -0
- package/lib/BadEntityIdError.js +2 -0
- package/lib/BadEntityIdError.js.map +1 -0
- package/lib/Cache.cjs +376 -0
- package/lib/Cache.d.ts +228 -0
- package/lib/Cache.js +2 -0
- package/lib/Cache.js.map +1 -0
- package/lib/Duration.cjs +53 -0
- package/lib/Duration.d.ts +37 -0
- package/lib/Duration.js +2 -0
- package/lib/Duration.js.map +1 -0
- package/lib/EntityIdHelper.cjs +547 -0
- package/lib/EntityIdHelper.d.ts +203 -0
- package/lib/EntityIdHelper.js +2 -0
- package/lib/EntityIdHelper.js.map +1 -0
- package/lib/EthereumFlow.cjs +207 -0
- package/lib/EthereumFlow.d.ts +134 -0
- package/lib/EthereumFlow.js +2 -0
- package/lib/EthereumFlow.js.map +1 -0
- package/lib/EthereumTransaction.cjs +260 -0
- package/lib/EthereumTransaction.d.ts +161 -0
- package/lib/EthereumTransaction.js +2 -0
- package/lib/EthereumTransaction.js.map +1 -0
- package/lib/EthereumTransactionData.cjs +66 -0
- package/lib/EthereumTransactionData.d.ts +33 -0
- package/lib/EthereumTransactionData.js +2 -0
- package/lib/EthereumTransactionData.js.map +1 -0
- package/lib/EthereumTransactionDataEip1559.cjs +134 -0
- package/lib/EthereumTransactionDataEip1559.d.ts +64 -0
- package/lib/EthereumTransactionDataEip1559.js +2 -0
- package/lib/EthereumTransactionDataEip1559.js.map +1 -0
- package/lib/EthereumTransactionDataEip2930.cjs +129 -0
- package/lib/EthereumTransactionDataEip2930.d.ts +60 -0
- package/lib/EthereumTransactionDataEip2930.js +2 -0
- package/lib/EthereumTransactionDataEip2930.js.map +1 -0
- package/lib/EthereumTransactionDataLegacy.cjs +112 -0
- package/lib/EthereumTransactionDataLegacy.d.ts +52 -0
- package/lib/EthereumTransactionDataLegacy.js +2 -0
- package/lib/EthereumTransactionDataLegacy.js.map +1 -0
- package/lib/EvmAddress.cjs +84 -0
- package/lib/EvmAddress.d.ts +47 -0
- package/lib/EvmAddress.js +2 -0
- package/lib/EvmAddress.js.map +1 -0
- package/lib/ExchangeRate.cjs +113 -0
- package/lib/ExchangeRate.d.ts +75 -0
- package/lib/ExchangeRate.js +2 -0
- package/lib/ExchangeRate.js.map +1 -0
- package/lib/ExchangeRates.cjs +75 -0
- package/lib/ExchangeRates.d.ts +39 -0
- package/lib/ExchangeRates.js +2 -0
- package/lib/ExchangeRates.js.map +1 -0
- package/lib/Executable.cjs +760 -0
- package/lib/Executable.d.ts +365 -0
- package/lib/Executable.js +2 -0
- package/lib/Executable.js.map +1 -0
- package/lib/FeeComponents.cjs +170 -0
- package/lib/FeeComponents.d.ts +66 -0
- package/lib/FeeComponents.js +2 -0
- package/lib/FeeComponents.js.map +1 -0
- package/lib/FeeData.cjs +111 -0
- package/lib/FeeData.d.ts +58 -0
- package/lib/FeeData.js +2 -0
- package/lib/FeeData.js.map +1 -0
- package/lib/FeeDataType.cjs +128 -0
- package/lib/FeeDataType.d.ts +44 -0
- package/lib/FeeDataType.js +2 -0
- package/lib/FeeDataType.js.map +1 -0
- package/lib/FeeSchedule.cjs +79 -0
- package/lib/FeeSchedule.d.ts +40 -0
- package/lib/FeeSchedule.js +2 -0
- package/lib/FeeSchedule.js.map +1 -0
- package/lib/FeeSchedules.cjs +79 -0
- package/lib/FeeSchedules.d.ts +40 -0
- package/lib/FeeSchedules.js +2 -0
- package/lib/FeeSchedules.js.map +1 -0
- package/lib/FreezeType.cjs +117 -0
- package/lib/FreezeType.d.ts +42 -0
- package/lib/FreezeType.js +2 -0
- package/lib/FreezeType.js.map +1 -0
- package/lib/Hbar.cjs +139 -0
- package/lib/Hbar.d.ts +62 -0
- package/lib/Hbar.js +2 -0
- package/lib/Hbar.js.map +1 -0
- package/lib/HbarUnit.cjs +77 -0
- package/lib/HbarUnit.d.ts +46 -0
- package/lib/HbarUnit.js +2 -0
- package/lib/HbarUnit.js.map +1 -0
- package/lib/Key.cjs +62 -0
- package/lib/Key.d.ts +23 -0
- package/lib/Key.js +2 -0
- package/lib/Key.js.map +1 -0
- package/lib/KeyList.cjs +181 -0
- package/lib/KeyList.d.ts +87 -0
- package/lib/KeyList.js +2 -0
- package/lib/KeyList.js.map +1 -0
- package/lib/LedgerId.cjs +137 -0
- package/lib/LedgerId.d.ts +64 -0
- package/lib/LedgerId.js +2 -0
- package/lib/LedgerId.js.map +1 -0
- package/lib/LocalProvider.cjs +159 -0
- package/lib/LocalProvider.d.ts +120 -0
- package/lib/LocalProvider.js +2 -0
- package/lib/LocalProvider.js.map +1 -0
- package/lib/ManagedNode.cjs +245 -0
- package/lib/ManagedNode.d.ts +127 -0
- package/lib/ManagedNode.js +2 -0
- package/lib/ManagedNode.js.map +1 -0
- package/lib/ManagedNodeAddress.cjs +104 -0
- package/lib/ManagedNodeAddress.d.ts +51 -0
- package/lib/ManagedNodeAddress.js +2 -0
- package/lib/ManagedNodeAddress.js.map +1 -0
- package/lib/MaxAttemptsOrTimeoutError.cjs +48 -0
- package/lib/MaxAttemptsOrTimeoutError.d.ts +26 -0
- package/lib/MaxAttemptsOrTimeoutError.js +2 -0
- package/lib/MaxAttemptsOrTimeoutError.js.map +1 -0
- package/lib/MaxQueryPaymentExceeded.cjs +34 -0
- package/lib/MaxQueryPaymentExceeded.d.ts +21 -0
- package/lib/MaxQueryPaymentExceeded.js +2 -0
- package/lib/MaxQueryPaymentExceeded.js.map +1 -0
- package/lib/MirrorNode.cjs +48 -0
- package/lib/MirrorNode.d.ts +39 -0
- package/lib/MirrorNode.js +2 -0
- package/lib/MirrorNode.js.map +1 -0
- package/lib/Mnemonic.cjs +232 -0
- package/lib/Mnemonic.d.ts +145 -0
- package/lib/Mnemonic.js +2 -0
- package/lib/Mnemonic.js.map +1 -0
- package/lib/Node.cjs +114 -0
- package/lib/Node.d.ts +72 -0
- package/lib/Node.js +2 -0
- package/lib/Node.js.map +1 -0
- package/lib/ObjectMap.cjs +137 -0
- package/lib/ObjectMap.d.ts +88 -0
- package/lib/ObjectMap.js +2 -0
- package/lib/ObjectMap.js.map +1 -0
- package/lib/PrecheckStatusError.cjs +77 -0
- package/lib/PrecheckStatusError.d.ts +68 -0
- package/lib/PrecheckStatusError.js +2 -0
- package/lib/PrecheckStatusError.js.map +1 -0
- package/lib/PrivateKey.cjs +529 -0
- package/lib/PrivateKey.d.ts +312 -0
- package/lib/PrivateKey.js +2 -0
- package/lib/PrivateKey.js.map +1 -0
- package/lib/PrngTransaction.cjs +136 -0
- package/lib/PrngTransaction.d.ts +74 -0
- package/lib/PrngTransaction.js +2 -0
- package/lib/PrngTransaction.js.map +1 -0
- package/lib/Provider.cjs +41 -0
- package/lib/Provider.d.ts +32 -0
- package/lib/Provider.js +2 -0
- package/lib/Provider.js.map +1 -0
- package/lib/PublicKey.cjs +285 -0
- package/lib/PublicKey.d.ts +142 -0
- package/lib/PublicKey.js +2 -0
- package/lib/PublicKey.js.map +1 -0
- package/lib/ReceiptStatusError.cjs +45 -0
- package/lib/ReceiptStatusError.d.ts +38 -0
- package/lib/ReceiptStatusError.js +2 -0
- package/lib/ReceiptStatusError.js.map +1 -0
- package/lib/RecordStatusError.cjs +34 -0
- package/lib/RecordStatusError.d.ts +27 -0
- package/lib/RecordStatusError.js +2 -0
- package/lib/RecordStatusError.js.map +1 -0
- package/lib/RequestType.cjs +922 -0
- package/lib/RequestType.d.ts +131 -0
- package/lib/RequestType.js +2 -0
- package/lib/RequestType.js.map +1 -0
- package/lib/Signer.cjs +47 -0
- package/lib/Signer.d.ts +38 -0
- package/lib/Signer.js +2 -0
- package/lib/Signer.js.map +1 -0
- package/lib/SignerSignature.cjs +34 -0
- package/lib/SignerSignature.d.ts +29 -0
- package/lib/SignerSignature.js +2 -0
- package/lib/SignerSignature.js.map +1 -0
- package/lib/StakingInfo.cjs +160 -0
- package/lib/StakingInfo.d.ts +109 -0
- package/lib/StakingInfo.js +2 -0
- package/lib/StakingInfo.js.map +1 -0
- package/lib/Status.cjs +3353 -0
- package/lib/Status.d.ts +395 -0
- package/lib/Status.js +2 -0
- package/lib/Status.js.map +1 -0
- package/lib/StatusError.cjs +66 -0
- package/lib/StatusError.d.ts +41 -0
- package/lib/StatusError.js +2 -0
- package/lib/StatusError.js.map +1 -0
- package/lib/Timestamp.cjs +144 -0
- package/lib/Timestamp.d.ts +69 -0
- package/lib/Timestamp.js +2 -0
- package/lib/Timestamp.js.map +1 -0
- package/lib/TransactionFeeSchedule.cjs +85 -0
- package/lib/TransactionFeeSchedule.d.ts +39 -0
- package/lib/TransactionFeeSchedule.js +2 -0
- package/lib/TransactionFeeSchedule.js.map +1 -0
- package/lib/Transfer.cjs +104 -0
- package/lib/Transfer.d.ts +77 -0
- package/lib/Transfer.js +2 -0
- package/lib/Transfer.js.map +1 -0
- package/lib/Wallet.cjs +253 -0
- package/lib/Wallet.d.ts +147 -0
- package/lib/Wallet.js +2 -0
- package/lib/Wallet.js.map +1 -0
- package/lib/account/AccountAllowanceAdjustTransaction.cjs +366 -0
- package/lib/account/AccountAllowanceAdjustTransaction.d.ts +208 -0
- package/lib/account/AccountAllowanceAdjustTransaction.js +2 -0
- package/lib/account/AccountAllowanceAdjustTransaction.js.map +1 -0
- package/lib/account/AccountAllowanceApproveTransaction.cjs +353 -0
- package/lib/account/AccountAllowanceApproveTransaction.d.ts +194 -0
- package/lib/account/AccountAllowanceApproveTransaction.js +2 -0
- package/lib/account/AccountAllowanceApproveTransaction.js.map +1 -0
- package/lib/account/AccountAllowanceDeleteTransaction.cjs +166 -0
- package/lib/account/AccountAllowanceDeleteTransaction.d.ts +90 -0
- package/lib/account/AccountAllowanceDeleteTransaction.js +2 -0
- package/lib/account/AccountAllowanceDeleteTransaction.js.map +1 -0
- package/lib/account/AccountBalance.cjs +145 -0
- package/lib/account/AccountBalance.d.ts +72 -0
- package/lib/account/AccountBalance.js +2 -0
- package/lib/account/AccountBalance.js.map +1 -0
- package/lib/account/AccountBalanceQuery.cjs +210 -0
- package/lib/account/AccountBalanceQuery.d.ts +92 -0
- package/lib/account/AccountBalanceQuery.js +2 -0
- package/lib/account/AccountBalanceQuery.js.map +1 -0
- package/lib/account/AccountCreateTransaction.cjs +566 -0
- package/lib/account/AccountCreateTransaction.d.ts +309 -0
- package/lib/account/AccountCreateTransaction.js +2 -0
- package/lib/account/AccountCreateTransaction.js.map +1 -0
- package/lib/account/AccountDeleteTransaction.cjs +181 -0
- package/lib/account/AccountDeleteTransaction.d.ts +97 -0
- package/lib/account/AccountDeleteTransaction.js +2 -0
- package/lib/account/AccountDeleteTransaction.js.map +1 -0
- package/lib/account/AccountId.cjs +400 -0
- package/lib/account/AccountId.d.ts +149 -0
- package/lib/account/AccountId.js +2 -0
- package/lib/account/AccountId.js.map +1 -0
- package/lib/account/AccountInfo.cjs +356 -0
- package/lib/account/AccountInfo.d.ts +234 -0
- package/lib/account/AccountInfo.js +2 -0
- package/lib/account/AccountInfo.js.map +1 -0
- package/lib/account/AccountInfoFlow.cjs +88 -0
- package/lib/account/AccountInfoFlow.d.ts +53 -0
- package/lib/account/AccountInfoFlow.js +2 -0
- package/lib/account/AccountInfoFlow.js.map +1 -0
- package/lib/account/AccountInfoQuery.cjs +170 -0
- package/lib/account/AccountInfoQuery.d.ts +67 -0
- package/lib/account/AccountInfoQuery.js +2 -0
- package/lib/account/AccountInfoQuery.js.map +1 -0
- package/lib/account/AccountRecordsQuery.cjs +163 -0
- package/lib/account/AccountRecordsQuery.d.ts +67 -0
- package/lib/account/AccountRecordsQuery.js +2 -0
- package/lib/account/AccountRecordsQuery.js.map +1 -0
- package/lib/account/AccountUpdateTransaction.cjs +503 -0
- package/lib/account/AccountUpdateTransaction.d.ts +271 -0
- package/lib/account/AccountUpdateTransaction.js +2 -0
- package/lib/account/AccountUpdateTransaction.js.map +1 -0
- package/lib/account/HbarAllowance.cjs +126 -0
- package/lib/account/HbarAllowance.d.ts +85 -0
- package/lib/account/HbarAllowance.js +2 -0
- package/lib/account/HbarAllowance.js.map +1 -0
- package/lib/account/HbarTransferMap.cjs +45 -0
- package/lib/account/HbarTransferMap.d.ts +31 -0
- package/lib/account/HbarTransferMap.js +2 -0
- package/lib/account/HbarTransferMap.js.map +1 -0
- package/lib/account/LiveHash.cjs +76 -0
- package/lib/account/LiveHash.d.ts +49 -0
- package/lib/account/LiveHash.js +2 -0
- package/lib/account/LiveHash.js.map +1 -0
- package/lib/account/LiveHashAddTransaction.cjs +238 -0
- package/lib/account/LiveHashAddTransaction.d.ts +125 -0
- package/lib/account/LiveHashAddTransaction.js +2 -0
- package/lib/account/LiveHashAddTransaction.js.map +1 -0
- package/lib/account/LiveHashDeleteTransaction.cjs +170 -0
- package/lib/account/LiveHashDeleteTransaction.d.ts +88 -0
- package/lib/account/LiveHashDeleteTransaction.js +2 -0
- package/lib/account/LiveHashDeleteTransaction.js.map +1 -0
- package/lib/account/LiveHashQuery.cjs +188 -0
- package/lib/account/LiveHashQuery.d.ts +91 -0
- package/lib/account/LiveHashQuery.js +2 -0
- package/lib/account/LiveHashQuery.js.map +1 -0
- package/lib/account/NullableTokenDecimalMap.cjs +26 -0
- package/lib/account/NullableTokenDecimalMap.d.ts +19 -0
- package/lib/account/NullableTokenDecimalMap.js +2 -0
- package/lib/account/NullableTokenDecimalMap.js.map +1 -0
- package/lib/account/ProxyStaker.cjs +73 -0
- package/lib/account/ProxyStaker.d.ts +53 -0
- package/lib/account/ProxyStaker.js +2 -0
- package/lib/account/ProxyStaker.js.map +1 -0
- package/lib/account/TokenAllowance.cjs +130 -0
- package/lib/account/TokenAllowance.d.ts +93 -0
- package/lib/account/TokenAllowance.js +2 -0
- package/lib/account/TokenAllowance.js.map +1 -0
- package/lib/account/TokenBalanceMap.cjs +30 -0
- package/lib/account/TokenBalanceMap.d.ts +23 -0
- package/lib/account/TokenBalanceMap.js +2 -0
- package/lib/account/TokenBalanceMap.js.map +1 -0
- package/lib/account/TokenDecimalMap.cjs +26 -0
- package/lib/account/TokenDecimalMap.d.ts +19 -0
- package/lib/account/TokenDecimalMap.js +2 -0
- package/lib/account/TokenDecimalMap.js.map +1 -0
- package/lib/account/TokenNftAllowance.cjs +168 -0
- package/lib/account/TokenNftAllowance.d.ts +110 -0
- package/lib/account/TokenNftAllowance.js +2 -0
- package/lib/account/TokenNftAllowance.js.map +1 -0
- package/lib/account/TokenNftTransferMap.cjs +116 -0
- package/lib/account/TokenNftTransferMap.d.ts +55 -0
- package/lib/account/TokenNftTransferMap.js +2 -0
- package/lib/account/TokenNftTransferMap.js.map +1 -0
- package/lib/account/TokenRelationship.cjs +113 -0
- package/lib/account/TokenRelationship.d.ts +87 -0
- package/lib/account/TokenRelationship.js +2 -0
- package/lib/account/TokenRelationship.js.map +1 -0
- package/lib/account/TokenRelationshipMap.cjs +57 -0
- package/lib/account/TokenRelationshipMap.d.ts +33 -0
- package/lib/account/TokenRelationshipMap.js +2 -0
- package/lib/account/TokenRelationshipMap.js.map +1 -0
- package/lib/account/TokenTransferAccountMap.cjs +28 -0
- package/lib/account/TokenTransferAccountMap.d.ts +8 -0
- package/lib/account/TokenTransferAccountMap.js +2 -0
- package/lib/account/TokenTransferAccountMap.js.map +1 -0
- package/lib/account/TokenTransferMap.cjs +86 -0
- package/lib/account/TokenTransferMap.d.ts +41 -0
- package/lib/account/TokenTransferMap.js +2 -0
- package/lib/account/TokenTransferMap.js.map +1 -0
- package/lib/account/TransferTransaction.cjs +303 -0
- package/lib/account/TransferTransaction.d.ts +173 -0
- package/lib/account/TransferTransaction.js +2 -0
- package/lib/account/TransferTransaction.js.map +1 -0
- package/lib/address_book/AddressBooks.cjs +17 -0
- package/lib/address_book/AddressBooks.d.ts +4 -0
- package/lib/address_book/AddressBooks.js +2 -0
- package/lib/address_book/AddressBooks.js.map +1 -0
- package/lib/address_book/Endpoint.cjs +140 -0
- package/lib/address_book/Endpoint.d.ts +79 -0
- package/lib/address_book/Endpoint.js +2 -0
- package/lib/address_book/Endpoint.js.map +1 -0
- package/lib/address_book/IPv4Address.cjs +116 -0
- package/lib/address_book/IPv4Address.d.ts +59 -0
- package/lib/address_book/IPv4Address.js +2 -0
- package/lib/address_book/IPv4Address.js.map +1 -0
- package/lib/address_book/IPv4AddressPart.cjs +76 -0
- package/lib/address_book/IPv4AddressPart.d.ts +41 -0
- package/lib/address_book/IPv4AddressPart.js +2 -0
- package/lib/address_book/IPv4AddressPart.js.map +1 -0
- package/lib/address_book/NodeAddress.cjs +287 -0
- package/lib/address_book/NodeAddress.d.ts +170 -0
- package/lib/address_book/NodeAddress.js +2 -0
- package/lib/address_book/NodeAddress.js.map +1 -0
- package/lib/address_book/NodeAddressBook.cjs +108 -0
- package/lib/address_book/NodeAddressBook.d.ts +66 -0
- package/lib/address_book/NodeAddressBook.js +2 -0
- package/lib/address_book/NodeAddressBook.js.map +1 -0
- package/lib/array.cjs +51 -0
- package/lib/array.d.ts +14 -0
- package/lib/array.js +2 -0
- package/lib/array.js.map +1 -0
- package/lib/base32.cjs +38 -0
- package/lib/base32.d.ts +18 -0
- package/lib/base32.js +2 -0
- package/lib/base32.js.map +1 -0
- package/lib/browser.cjs +36 -0
- package/lib/browser.d.ts +3 -0
- package/lib/browser.js +2 -0
- package/lib/browser.js.map +1 -0
- package/lib/channel/Channel.cjs +293 -0
- package/lib/channel/Channel.d.ts +121 -0
- package/lib/channel/Channel.js +2 -0
- package/lib/channel/Channel.js.map +1 -0
- package/lib/channel/MirrorChannel.cjs +55 -0
- package/lib/channel/MirrorChannel.d.ts +32 -0
- package/lib/channel/MirrorChannel.js +2 -0
- package/lib/channel/MirrorChannel.js.map +1 -0
- package/lib/channel/NativeChannel.cjs +97 -0
- package/lib/channel/NativeChannel.d.ts +12 -0
- package/lib/channel/NativeChannel.js +2 -0
- package/lib/channel/NativeChannel.js.map +1 -0
- package/lib/channel/NodeChannel.cjs +173 -0
- package/lib/channel/NodeChannel.d.ts +41 -0
- package/lib/channel/NodeChannel.js +2 -0
- package/lib/channel/NodeChannel.js.map +1 -0
- package/lib/channel/NodeMirrorChannel.cjs +78 -0
- package/lib/channel/NodeMirrorChannel.d.ts +22 -0
- package/lib/channel/NodeMirrorChannel.js +2 -0
- package/lib/channel/NodeMirrorChannel.js.map +1 -0
- package/lib/channel/WebChannel.cjs +90 -0
- package/lib/channel/WebChannel.d.ts +12 -0
- package/lib/channel/WebChannel.js +2 -0
- package/lib/channel/WebChannel.js.map +1 -0
- package/lib/client/Client.cjs +818 -0
- package/lib/client/Client.d.ts +487 -0
- package/lib/client/Client.js +2 -0
- package/lib/client/Client.js.map +1 -0
- package/lib/client/ManagedNetwork.cjs +427 -0
- package/lib/client/ManagedNetwork.d.ts +175 -0
- package/lib/client/ManagedNetwork.js +2 -0
- package/lib/client/ManagedNetwork.js.map +1 -0
- package/lib/client/MirrorNetwork.cjs +89 -0
- package/lib/client/MirrorNetwork.d.ts +27 -0
- package/lib/client/MirrorNetwork.js +2 -0
- package/lib/client/MirrorNetwork.js.map +1 -0
- package/lib/client/NativeClient.cjs +210 -0
- package/lib/client/NativeClient.d.ts +72 -0
- package/lib/client/NativeClient.js +2 -0
- package/lib/client/NativeClient.js.map +1 -0
- package/lib/client/Network.cjs +257 -0
- package/lib/client/Network.d.ts +90 -0
- package/lib/client/Network.js +2 -0
- package/lib/client/Network.js.map +1 -0
- package/lib/client/NodeClient.cjs +316 -0
- package/lib/client/NodeClient.d.ts +129 -0
- package/lib/client/NodeClient.js +2 -0
- package/lib/client/NodeClient.js.map +1 -0
- package/lib/client/WebClient.cjs +280 -0
- package/lib/client/WebClient.d.ts +90 -0
- package/lib/client/WebClient.js +2 -0
- package/lib/client/WebClient.js.map +1 -0
- package/lib/client/addressbooks/mainnet.cjs +7 -0
- package/lib/client/addressbooks/mainnet.d.ts +1 -0
- package/lib/client/addressbooks/mainnet.js +2 -0
- package/lib/client/addressbooks/mainnet.js.map +1 -0
- package/lib/client/addressbooks/previewnet.cjs +7 -0
- package/lib/client/addressbooks/previewnet.d.ts +1 -0
- package/lib/client/addressbooks/previewnet.js +2 -0
- package/lib/client/addressbooks/previewnet.js.map +1 -0
- package/lib/client/addressbooks/testnet.cjs +7 -0
- package/lib/client/addressbooks/testnet.d.ts +1 -0
- package/lib/client/addressbooks/testnet.js +2 -0
- package/lib/client/addressbooks/testnet.js.map +1 -0
- package/lib/constants/ClientConstants.cjs +201 -0
- package/lib/constants/ClientConstants.d.ts +74 -0
- package/lib/constants/ClientConstants.js +2 -0
- package/lib/constants/ClientConstants.js.map +1 -0
- package/lib/contract/ContractByteCodeQuery.cjs +158 -0
- package/lib/contract/ContractByteCodeQuery.d.ts +76 -0
- package/lib/contract/ContractByteCodeQuery.js +2 -0
- package/lib/contract/ContractByteCodeQuery.js.map +1 -0
- package/lib/contract/ContractCallQuery.cjs +338 -0
- package/lib/contract/ContractCallQuery.d.ts +141 -0
- package/lib/contract/ContractCallQuery.js +2 -0
- package/lib/contract/ContractCallQuery.js.map +1 -0
- package/lib/contract/ContractCreateFlow.cjs +452 -0
- package/lib/contract/ContractCreateFlow.d.ts +243 -0
- package/lib/contract/ContractCreateFlow.js +2 -0
- package/lib/contract/ContractCreateFlow.js.map +1 -0
- package/lib/contract/ContractCreateTransaction.cjs +556 -0
- package/lib/contract/ContractCreateTransaction.d.ts +315 -0
- package/lib/contract/ContractCreateTransaction.js +2 -0
- package/lib/contract/ContractCreateTransaction.js.map +1 -0
- package/lib/contract/ContractDeleteTransaction.cjs +235 -0
- package/lib/contract/ContractDeleteTransaction.d.ts +135 -0
- package/lib/contract/ContractDeleteTransaction.js +2 -0
- package/lib/contract/ContractDeleteTransaction.js.map +1 -0
- package/lib/contract/ContractExecuteTransaction.cjs +269 -0
- package/lib/contract/ContractExecuteTransaction.d.ts +164 -0
- package/lib/contract/ContractExecuteTransaction.js +2 -0
- package/lib/contract/ContractExecuteTransaction.js.map +1 -0
- package/lib/contract/ContractFunctionParameters.cjs +1703 -0
- package/lib/contract/ContractFunctionParameters.d.ts +725 -0
- package/lib/contract/ContractFunctionParameters.js +2 -0
- package/lib/contract/ContractFunctionParameters.js.map +1 -0
- package/lib/contract/ContractFunctionResult.cjs +846 -0
- package/lib/contract/ContractFunctionResult.d.ts +510 -0
- package/lib/contract/ContractFunctionResult.js +2 -0
- package/lib/contract/ContractFunctionResult.js.map +1 -0
- package/lib/contract/ContractFunctionSelector.cjs +1775 -0
- package/lib/contract/ContractFunctionSelector.d.ts +688 -0
- package/lib/contract/ContractFunctionSelector.js +2 -0
- package/lib/contract/ContractFunctionSelector.js.map +1 -0
- package/lib/contract/ContractId.cjs +267 -0
- package/lib/contract/ContractId.d.ts +123 -0
- package/lib/contract/ContractId.js +2 -0
- package/lib/contract/ContractId.js.map +1 -0
- package/lib/contract/ContractInfo.cjs +227 -0
- package/lib/contract/ContractInfo.d.ts +151 -0
- package/lib/contract/ContractInfo.js +2 -0
- package/lib/contract/ContractInfo.js.map +1 -0
- package/lib/contract/ContractInfoQuery.cjs +172 -0
- package/lib/contract/ContractInfoQuery.d.ts +70 -0
- package/lib/contract/ContractInfoQuery.js +2 -0
- package/lib/contract/ContractInfoQuery.js.map +1 -0
- package/lib/contract/ContractLogInfo.cjs +87 -0
- package/lib/contract/ContractLogInfo.d.ts +66 -0
- package/lib/contract/ContractLogInfo.js +2 -0
- package/lib/contract/ContractLogInfo.js.map +1 -0
- package/lib/contract/ContractNonceInfo.cjs +129 -0
- package/lib/contract/ContractNonceInfo.d.ts +90 -0
- package/lib/contract/ContractNonceInfo.js +2 -0
- package/lib/contract/ContractNonceInfo.js.map +1 -0
- package/lib/contract/ContractStateChange.cjs +75 -0
- package/lib/contract/ContractStateChange.d.ts +37 -0
- package/lib/contract/ContractUpdateTransaction.cjs +525 -0
- package/lib/contract/ContractUpdateTransaction.d.ts +280 -0
- package/lib/contract/ContractUpdateTransaction.js +2 -0
- package/lib/contract/ContractUpdateTransaction.js.map +1 -0
- package/lib/contract/DelegateContractId.cjs +100 -0
- package/lib/contract/DelegateContractId.d.ts +24 -0
- package/lib/contract/DelegateContractId.js +2 -0
- package/lib/contract/DelegateContractId.js.map +1 -0
- package/lib/contract/StorageChange.cjs +73 -0
- package/lib/contract/StorageChange.d.ts +37 -0
- package/lib/cryptography/keccak.cjs +335 -0
- package/lib/cryptography/keccak.d.ts +14 -0
- package/lib/cryptography/keccak.js +2 -0
- package/lib/cryptography/keccak.js.map +1 -0
- package/lib/cryptography/sha384.browser.cjs +19 -0
- package/lib/cryptography/sha384.browser.d.ts +5 -0
- package/lib/cryptography/sha384.browser.js +2 -0
- package/lib/cryptography/sha384.browser.js.map +1 -0
- package/lib/cryptography/sha384.cjs +27 -0
- package/lib/cryptography/sha384.d.ts +10 -0
- package/lib/cryptography/sha384.js +2 -0
- package/lib/cryptography/sha384.js.map +1 -0
- package/lib/cryptography/sha384.native.cjs +21 -0
- package/lib/cryptography/sha384.native.d.ts +5 -0
- package/lib/encoding/base64.native.cjs +25 -0
- package/lib/encoding/base64.native.d.ts +10 -0
- package/lib/encoding/base64.native.js +2 -0
- package/lib/encoding/base64.native.js.map +1 -0
- package/lib/encoding/hex.browser.cjs +95 -0
- package/lib/encoding/hex.browser.d.ts +26 -0
- package/lib/encoding/hex.browser.js +2 -0
- package/lib/encoding/hex.browser.js.map +1 -0
- package/lib/encoding/hex.cjs +82 -0
- package/lib/encoding/hex.d.ts +26 -0
- package/lib/encoding/hex.js +2 -0
- package/lib/encoding/hex.js.map +1 -0
- package/lib/encoding/hex.native.cjs +127 -0
- package/lib/encoding/hex.native.d.ts +36 -0
- package/lib/encoding/utf8.browser.cjs +26 -0
- package/lib/encoding/utf8.browser.d.ts +10 -0
- package/lib/encoding/utf8.browser.js +2 -0
- package/lib/encoding/utf8.browser.js.map +1 -0
- package/lib/encoding/utf8.cjs +24 -0
- package/lib/encoding/utf8.d.ts +10 -0
- package/lib/encoding/utf8.js +2 -0
- package/lib/encoding/utf8.js.map +1 -0
- package/lib/encoding/utf8.native.cjs +29 -0
- package/lib/encoding/utf8.native.d.ts +10 -0
- package/lib/exports.cjs +1264 -0
- package/lib/exports.d.ts +200 -0
- package/lib/exports.js +2 -0
- package/lib/exports.js.map +1 -0
- package/lib/file/FileAppendTransaction.cjs +482 -0
- package/lib/file/FileAppendTransaction.d.ts +196 -0
- package/lib/file/FileAppendTransaction.js +2 -0
- package/lib/file/FileAppendTransaction.js.map +1 -0
- package/lib/file/FileContentsQuery.cjs +159 -0
- package/lib/file/FileContentsQuery.d.ts +77 -0
- package/lib/file/FileContentsQuery.js +2 -0
- package/lib/file/FileContentsQuery.js.map +1 -0
- package/lib/file/FileCreateTransaction.cjs +259 -0
- package/lib/file/FileCreateTransaction.d.ts +153 -0
- package/lib/file/FileCreateTransaction.js +2 -0
- package/lib/file/FileCreateTransaction.js.map +1 -0
- package/lib/file/FileDeleteTransaction.cjs +149 -0
- package/lib/file/FileDeleteTransaction.d.ts +84 -0
- package/lib/file/FileDeleteTransaction.js +2 -0
- package/lib/file/FileDeleteTransaction.js.map +1 -0
- package/lib/file/FileId.cjs +240 -0
- package/lib/file/FileId.d.ts +126 -0
- package/lib/file/FileId.js +2 -0
- package/lib/file/FileId.js.map +1 -0
- package/lib/file/FileInfo.cjs +128 -0
- package/lib/file/FileInfo.d.ts +76 -0
- package/lib/file/FileInfo.js +2 -0
- package/lib/file/FileInfo.js.map +1 -0
- package/lib/file/FileInfoQuery.cjs +171 -0
- package/lib/file/FileInfoQuery.d.ts +68 -0
- package/lib/file/FileInfoQuery.js +2 -0
- package/lib/file/FileInfoQuery.js.map +1 -0
- package/lib/file/FileUpdateTransaction.cjs +319 -0
- package/lib/file/FileUpdateTransaction.d.ts +188 -0
- package/lib/file/FileUpdateTransaction.js +2 -0
- package/lib/file/FileUpdateTransaction.js.map +1 -0
- package/lib/grpc/GrpcServiceError.cjs +65 -0
- package/lib/grpc/GrpcServiceError.d.ts +32 -0
- package/lib/grpc/GrpcServiceError.js +2 -0
- package/lib/grpc/GrpcServiceError.js.map +1 -0
- package/lib/grpc/GrpcStatus.cjs +145 -0
- package/lib/grpc/GrpcStatus.d.ts +46 -0
- package/lib/grpc/GrpcStatus.js +2 -0
- package/lib/grpc/GrpcStatus.js.map +1 -0
- package/lib/http/HttpError.cjs +32 -0
- package/lib/http/HttpError.d.ts +14 -0
- package/lib/http/HttpError.js +2 -0
- package/lib/http/HttpError.js.map +1 -0
- package/lib/http/HttpStatus.cjs +44 -0
- package/lib/http/HttpStatus.d.ts +24 -0
- package/lib/http/HttpStatus.js +2 -0
- package/lib/http/HttpStatus.js.map +1 -0
- package/lib/index.cjs +44 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/logger/LogLevel.cjs +77 -0
- package/lib/logger/LogLevel.d.ts +29 -0
- package/lib/logger/LogLevel.js +2 -0
- package/lib/logger/LogLevel.js.map +1 -0
- package/lib/logger/Logger.cjs +221 -0
- package/lib/logger/Logger.d.ts +132 -0
- package/lib/logger/Logger.js +2 -0
- package/lib/logger/Logger.js.map +1 -0
- package/lib/long.cjs +26 -0
- package/lib/long.d.ts +16 -0
- package/lib/long.js +2 -0
- package/lib/long.js.map +1 -0
- package/lib/native.cjs +36 -0
- package/lib/native.d.ts +3 -0
- package/lib/native.js +2 -0
- package/lib/native.js.map +1 -0
- package/lib/network/AddressBookQuery.cjs +218 -0
- package/lib/network/AddressBookQuery.d.ts +104 -0
- package/lib/network/AddressBookQuery.js +2 -0
- package/lib/network/AddressBookQuery.js.map +1 -0
- package/lib/network/AddressBookQueryWeb.cjs +326 -0
- package/lib/network/AddressBookQueryWeb.d.ts +165 -0
- package/lib/network/AddressBookQueryWeb.js +2 -0
- package/lib/network/AddressBookQueryWeb.js.map +1 -0
- package/lib/network/NetworkVersionInfo.cjs +81 -0
- package/lib/network/NetworkVersionInfo.d.ts +46 -0
- package/lib/network/NetworkVersionInfo.js +2 -0
- package/lib/network/NetworkVersionInfo.js.map +1 -0
- package/lib/network/NetworkVersionInfoQuery.cjs +112 -0
- package/lib/network/NetworkVersionInfoQuery.d.ts +50 -0
- package/lib/network/NetworkVersionInfoQuery.js +2 -0
- package/lib/network/NetworkVersionInfoQuery.js.map +1 -0
- package/lib/network/SemanticVersion.cjs +78 -0
- package/lib/network/SemanticVersion.d.ts +45 -0
- package/lib/network/SemanticVersion.js +2 -0
- package/lib/network/SemanticVersion.js.map +1 -0
- package/lib/node/NodeCreateTransaction.cjs +413 -0
- package/lib/node/NodeCreateTransaction.d.ts +239 -0
- package/lib/node/NodeCreateTransaction.js +2 -0
- package/lib/node/NodeCreateTransaction.js.map +1 -0
- package/lib/node/NodeDeleteTransaction.cjs +143 -0
- package/lib/node/NodeDeleteTransaction.d.ts +80 -0
- package/lib/node/NodeDeleteTransaction.js +2 -0
- package/lib/node/NodeDeleteTransaction.js.map +1 -0
- package/lib/node/NodeUpdateTransaction.cjs +481 -0
- package/lib/node/NodeUpdateTransaction.d.ts +274 -0
- package/lib/node/NodeUpdateTransaction.js +2 -0
- package/lib/node/NodeUpdateTransaction.js.map +1 -0
- package/lib/node/ServiceEndpoint.cjs +140 -0
- package/lib/node/ServiceEndpoint.d.ts +91 -0
- package/lib/node/ServiceEndpoint.js +2 -0
- package/lib/node/ServiceEndpoint.js.map +1 -0
- package/lib/query/CostQuery.cjs +171 -0
- package/lib/query/CostQuery.d.ts +43 -0
- package/lib/query/CostQuery.js +2 -0
- package/lib/query/CostQuery.js.map +1 -0
- package/lib/query/MirrorNodeContractCallQuery.cjs +53 -0
- package/lib/query/MirrorNodeContractCallQuery.d.ts +21 -0
- package/lib/query/MirrorNodeContractCallQuery.js +2 -0
- package/lib/query/MirrorNodeContractCallQuery.js.map +1 -0
- package/lib/query/MirrorNodeContractEstimateQuery.cjs +53 -0
- package/lib/query/MirrorNodeContractEstimateQuery.d.ts +21 -0
- package/lib/query/MirrorNodeContractEstimateQuery.js +2 -0
- package/lib/query/MirrorNodeContractEstimateQuery.js.map +1 -0
- package/lib/query/MirrorNodeContractQuery.cjs +260 -0
- package/lib/query/MirrorNodeContractQuery.d.ts +158 -0
- package/lib/query/MirrorNodeContractQuery.js +2 -0
- package/lib/query/MirrorNodeContractQuery.js.map +1 -0
- package/lib/query/Query.cjs +450 -0
- package/lib/query/Query.d.ts +173 -0
- package/lib/query/Query.js +2 -0
- package/lib/query/Query.js.map +1 -0
- package/lib/query/QueryBase.cjs +114 -0
- package/lib/query/QueryBase.d.ts +43 -0
- package/lib/query/QueryBase.js +2 -0
- package/lib/query/QueryBase.js.map +1 -0
- package/lib/schedule/ScheduleCreateTransaction.cjs +308 -0
- package/lib/schedule/ScheduleCreateTransaction.d.ts +153 -0
- package/lib/schedule/ScheduleCreateTransaction.js +2 -0
- package/lib/schedule/ScheduleCreateTransaction.js.map +1 -0
- package/lib/schedule/ScheduleDeleteTransaction.cjs +146 -0
- package/lib/schedule/ScheduleDeleteTransaction.d.ts +81 -0
- package/lib/schedule/ScheduleDeleteTransaction.js +2 -0
- package/lib/schedule/ScheduleDeleteTransaction.js.map +1 -0
- package/lib/schedule/ScheduleId.cjs +164 -0
- package/lib/schedule/ScheduleId.d.ts +96 -0
- package/lib/schedule/ScheduleId.js +2 -0
- package/lib/schedule/ScheduleId.js.map +1 -0
- package/lib/schedule/ScheduleInfo.cjs +176 -0
- package/lib/schedule/ScheduleInfo.d.ts +93 -0
- package/lib/schedule/ScheduleInfo.js +2 -0
- package/lib/schedule/ScheduleInfo.js.map +1 -0
- package/lib/schedule/ScheduleInfoQuery.cjs +170 -0
- package/lib/schedule/ScheduleInfoQuery.d.ts +66 -0
- package/lib/schedule/ScheduleInfoQuery.js +2 -0
- package/lib/schedule/ScheduleInfoQuery.js.map +1 -0
- package/lib/schedule/ScheduleSignTransaction.cjs +164 -0
- package/lib/schedule/ScheduleSignTransaction.d.ts +110 -0
- package/lib/schedule/ScheduleSignTransaction.js +2 -0
- package/lib/schedule/ScheduleSignTransaction.js.map +1 -0
- package/lib/system/FreezeTransaction.cjs +348 -0
- package/lib/system/FreezeTransaction.d.ts +188 -0
- package/lib/system/FreezeTransaction.js +2 -0
- package/lib/system/FreezeTransaction.js.map +1 -0
- package/lib/system/SystemDeleteTransaction.cjs +200 -0
- package/lib/system/SystemDeleteTransaction.d.ts +110 -0
- package/lib/system/SystemDeleteTransaction.js +2 -0
- package/lib/system/SystemDeleteTransaction.js.map +1 -0
- package/lib/system/SystemUndeleteTransaction.cjs +172 -0
- package/lib/system/SystemUndeleteTransaction.d.ts +97 -0
- package/lib/system/SystemUndeleteTransaction.js +2 -0
- package/lib/system/SystemUndeleteTransaction.js.map +1 -0
- package/lib/token/AbstractTokenTransferTransaction.cjs +406 -0
- package/lib/token/AbstractTokenTransferTransaction.d.ts +138 -0
- package/lib/token/AbstractTokenTransferTransaction.js +2 -0
- package/lib/token/AbstractTokenTransferTransaction.js.map +1 -0
- package/lib/token/AirdropPendingTransaction.cjs +65 -0
- package/lib/token/AirdropPendingTransaction.d.ts +35 -0
- package/lib/token/AirdropPendingTransaction.js +2 -0
- package/lib/token/AirdropPendingTransaction.js.map +1 -0
- package/lib/token/AssessedCustomFee.cjs +177 -0
- package/lib/token/AssessedCustomFee.d.ts +113 -0
- package/lib/token/AssessedCustomFee.js +2 -0
- package/lib/token/AssessedCustomFee.js.map +1 -0
- package/lib/token/CustomFee.cjs +88 -0
- package/lib/token/CustomFee.d.ts +57 -0
- package/lib/token/CustomFee.js +2 -0
- package/lib/token/CustomFee.js.map +1 -0
- package/lib/token/CustomFixedFee.cjs +155 -0
- package/lib/token/CustomFixedFee.d.ts +85 -0
- package/lib/token/CustomFixedFee.js +2 -0
- package/lib/token/CustomFixedFee.js.map +1 -0
- package/lib/token/CustomFractionalFee.cjs +200 -0
- package/lib/token/CustomFractionalFee.d.ts +103 -0
- package/lib/token/CustomFractionalFee.js +2 -0
- package/lib/token/CustomFractionalFee.js.map +1 -0
- package/lib/token/CustomRoyaltyFee.cjs +150 -0
- package/lib/token/CustomRoyaltyFee.d.ts +75 -0
- package/lib/token/CustomRoyaltyFee.js +2 -0
- package/lib/token/CustomRoyaltyFee.js.map +1 -0
- package/lib/token/FeeAssessmentMethod.cjs +58 -0
- package/lib/token/FeeAssessmentMethod.d.ts +29 -0
- package/lib/token/FeeAssessmentMethod.js +2 -0
- package/lib/token/FeeAssessmentMethod.js.map +1 -0
- package/lib/token/NftId.cjs +89 -0
- package/lib/token/NftId.d.ts +46 -0
- package/lib/token/NftId.js +2 -0
- package/lib/token/NftId.js.map +1 -0
- package/lib/token/PendingAirdropId.cjs +152 -0
- package/lib/token/PendingAirdropId.d.ts +81 -0
- package/lib/token/PendingAirdropId.js +2 -0
- package/lib/token/PendingAirdropId.js.map +1 -0
- package/lib/token/PendingAirdropRecord.cjs +55 -0
- package/lib/token/PendingAirdropRecord.d.ts +29 -0
- package/lib/token/PendingAirdropRecord.js +2 -0
- package/lib/token/PendingAirdropRecord.js.map +1 -0
- package/lib/token/TokenAirdropTransaction.cjs +179 -0
- package/lib/token/TokenAirdropTransaction.d.ts +119 -0
- package/lib/token/TokenAirdropTransaction.js +2 -0
- package/lib/token/TokenAirdropTransaction.js.map +1 -0
- package/lib/token/TokenAssociateTransaction.cjs +176 -0
- package/lib/token/TokenAssociateTransaction.d.ts +90 -0
- package/lib/token/TokenAssociateTransaction.js +2 -0
- package/lib/token/TokenAssociateTransaction.js.map +1 -0
- package/lib/token/TokenAssociation.cjs +117 -0
- package/lib/token/TokenAssociation.d.ts +76 -0
- package/lib/token/TokenAssociation.js +2 -0
- package/lib/token/TokenAssociation.js.map +1 -0
- package/lib/token/TokenBurnTransaction.cjs +199 -0
- package/lib/token/TokenBurnTransaction.d.ts +108 -0
- package/lib/token/TokenBurnTransaction.js +2 -0
- package/lib/token/TokenBurnTransaction.js.map +1 -0
- package/lib/token/TokenCancelAirdropTransaction.cjs +109 -0
- package/lib/token/TokenCancelAirdropTransaction.d.ts +50 -0
- package/lib/token/TokenCancelAirdropTransaction.js +2 -0
- package/lib/token/TokenCancelAirdropTransaction.js.map +1 -0
- package/lib/token/TokenClaimAirdropTransaction.cjs +109 -0
- package/lib/token/TokenClaimAirdropTransaction.d.ts +50 -0
- package/lib/token/TokenClaimAirdropTransaction.js +2 -0
- package/lib/token/TokenClaimAirdropTransaction.js.map +1 -0
- package/lib/token/TokenCreateTransaction.cjs +817 -0
- package/lib/token/TokenCreateTransaction.d.ts +446 -0
- package/lib/token/TokenCreateTransaction.js +2 -0
- package/lib/token/TokenCreateTransaction.js.map +1 -0
- package/lib/token/TokenDeleteTransaction.cjs +140 -0
- package/lib/token/TokenDeleteTransaction.d.ts +75 -0
- package/lib/token/TokenDeleteTransaction.js +2 -0
- package/lib/token/TokenDeleteTransaction.js.map +1 -0
- package/lib/token/TokenDissociateTransaction.cjs +176 -0
- package/lib/token/TokenDissociateTransaction.d.ts +90 -0
- package/lib/token/TokenDissociateTransaction.js +2 -0
- package/lib/token/TokenDissociateTransaction.js.map +1 -0
- package/lib/token/TokenFeeScheduleUpdateTransaction.cjs +172 -0
- package/lib/token/TokenFeeScheduleUpdateTransaction.d.ts +93 -0
- package/lib/token/TokenFeeScheduleUpdateTransaction.js +2 -0
- package/lib/token/TokenFeeScheduleUpdateTransaction.js.map +1 -0
- package/lib/token/TokenFreezeTransaction.cjs +172 -0
- package/lib/token/TokenFreezeTransaction.d.ts +90 -0
- package/lib/token/TokenFreezeTransaction.js +2 -0
- package/lib/token/TokenFreezeTransaction.js.map +1 -0
- package/lib/token/TokenGrantKycTransaction.cjs +172 -0
- package/lib/token/TokenGrantKycTransaction.d.ts +90 -0
- package/lib/token/TokenGrantKycTransaction.js +2 -0
- package/lib/token/TokenGrantKycTransaction.js.map +1 -0
- package/lib/token/TokenId.cjs +185 -0
- package/lib/token/TokenId.d.ts +103 -0
- package/lib/token/TokenId.js +2 -0
- package/lib/token/TokenId.js.map +1 -0
- package/lib/token/TokenInfo.cjs +349 -0
- package/lib/token/TokenInfo.d.ts +224 -0
- package/lib/token/TokenInfo.js +2 -0
- package/lib/token/TokenInfo.js.map +1 -0
- package/lib/token/TokenInfoQuery.cjs +170 -0
- package/lib/token/TokenInfoQuery.d.ts +67 -0
- package/lib/token/TokenInfoQuery.js +2 -0
- package/lib/token/TokenInfoQuery.js.map +1 -0
- package/lib/token/TokenKeyValidation.cjs +73 -0
- package/lib/token/TokenKeyValidation.d.ts +39 -0
- package/lib/token/TokenKeyValidation.js +2 -0
- package/lib/token/TokenKeyValidation.js.map +1 -0
- package/lib/token/TokenMintTransaction.cjs +219 -0
- package/lib/token/TokenMintTransaction.d.ts +113 -0
- package/lib/token/TokenMintTransaction.js +2 -0
- package/lib/token/TokenMintTransaction.js.map +1 -0
- package/lib/token/TokenNftInfo.cjs +127 -0
- package/lib/token/TokenNftInfo.d.ts +96 -0
- package/lib/token/TokenNftInfo.js +2 -0
- package/lib/token/TokenNftInfo.js.map +1 -0
- package/lib/token/TokenNftInfoQuery.cjs +312 -0
- package/lib/token/TokenNftInfoQuery.d.ts +149 -0
- package/lib/token/TokenNftInfoQuery.js +2 -0
- package/lib/token/TokenNftInfoQuery.js.map +1 -0
- package/lib/token/TokenNftTransfer.cjs +95 -0
- package/lib/token/TokenNftTransfer.d.ts +70 -0
- package/lib/token/TokenNftTransfer.js +2 -0
- package/lib/token/TokenNftTransfer.js.map +1 -0
- package/lib/token/TokenNftsUpdateTransaction.cjs +185 -0
- package/lib/token/TokenNftsUpdateTransaction.d.ts +97 -0
- package/lib/token/TokenPauseTransaction.cjs +140 -0
- package/lib/token/TokenPauseTransaction.d.ts +75 -0
- package/lib/token/TokenPauseTransaction.js +2 -0
- package/lib/token/TokenPauseTransaction.js.map +1 -0
- package/lib/token/TokenReference.cjs +41 -0
- package/lib/token/TokenReference.d.ts +29 -0
- package/lib/token/TokenReference.js +2 -0
- package/lib/token/TokenReference.js.map +1 -0
- package/lib/token/TokenRejectFlow.cjs +248 -0
- package/lib/token/TokenRejectFlow.d.ts +141 -0
- package/lib/token/TokenRejectFlow.js +2 -0
- package/lib/token/TokenRejectFlow.js.map +1 -0
- package/lib/token/TokenRejectTransaction.cjs +240 -0
- package/lib/token/TokenRejectTransaction.d.ts +120 -0
- package/lib/token/TokenRejectTransaction.js +2 -0
- package/lib/token/TokenRejectTransaction.js.map +1 -0
- package/lib/token/TokenRevokeKycTransaction.cjs +172 -0
- package/lib/token/TokenRevokeKycTransaction.d.ts +90 -0
- package/lib/token/TokenRevokeKycTransaction.js +2 -0
- package/lib/token/TokenRevokeKycTransaction.js.map +1 -0
- package/lib/token/TokenSupplyType.cjs +77 -0
- package/lib/token/TokenSupplyType.d.ts +38 -0
- package/lib/token/TokenSupplyType.js +2 -0
- package/lib/token/TokenSupplyType.js.map +1 -0
- package/lib/token/TokenTransfer.cjs +122 -0
- package/lib/token/TokenTransfer.d.ts +92 -0
- package/lib/token/TokenTransfer.js +2 -0
- package/lib/token/TokenTransfer.js.map +1 -0
- package/lib/token/TokenType.cjs +77 -0
- package/lib/token/TokenType.d.ts +38 -0
- package/lib/token/TokenType.js +2 -0
- package/lib/token/TokenType.js.map +1 -0
- package/lib/token/TokenUnfreezeTransaction.cjs +172 -0
- package/lib/token/TokenUnfreezeTransaction.d.ts +90 -0
- package/lib/token/TokenUnfreezeTransaction.js +2 -0
- package/lib/token/TokenUnfreezeTransaction.js.map +1 -0
- package/lib/token/TokenUnpauseTransaction.cjs +140 -0
- package/lib/token/TokenUnpauseTransaction.d.ts +75 -0
- package/lib/token/TokenUnpauseTransaction.js +2 -0
- package/lib/token/TokenUnpauseTransaction.js.map +1 -0
- package/lib/token/TokenUpdateNftsTransaction.cjs +189 -0
- package/lib/token/TokenUpdateNftsTransaction.d.ts +103 -0
- package/lib/token/TokenUpdateNftsTransaction.js +2 -0
- package/lib/token/TokenUpdateNftsTransaction.js.map +1 -0
- package/lib/token/TokenUpdateTransaction.cjs +672 -0
- package/lib/token/TokenUpdateTransaction.d.ts +366 -0
- package/lib/token/TokenUpdateTransaction.js +2 -0
- package/lib/token/TokenUpdateTransaction.js.map +1 -0
- package/lib/token/TokenWipeTransaction.cjs +231 -0
- package/lib/token/TokenWipeTransaction.d.ts +123 -0
- package/lib/token/TokenWipeTransaction.js +2 -0
- package/lib/token/TokenWipeTransaction.js.map +1 -0
- package/lib/topic/SubscriptionHandle.cjs +40 -0
- package/lib/topic/SubscriptionHandle.d.ts +22 -0
- package/lib/topic/SubscriptionHandle.js +2 -0
- package/lib/topic/SubscriptionHandle.js.map +1 -0
- package/lib/topic/TopicCreateTransaction.cjs +473 -0
- package/lib/topic/TopicCreateTransaction.d.ts +250 -0
- package/lib/topic/TopicCreateTransaction.js +2 -0
- package/lib/topic/TopicCreateTransaction.js.map +1 -0
- package/lib/topic/TopicDeleteTransaction.cjs +146 -0
- package/lib/topic/TopicDeleteTransaction.d.ts +80 -0
- package/lib/topic/TopicDeleteTransaction.js +2 -0
- package/lib/topic/TopicDeleteTransaction.js.map +1 -0
- package/lib/topic/TopicId.cjs +185 -0
- package/lib/topic/TopicId.d.ts +102 -0
- package/lib/topic/TopicId.js +2 -0
- package/lib/topic/TopicId.js.map +1 -0
- package/lib/topic/TopicInfo.cjs +187 -0
- package/lib/topic/TopicInfo.d.ts +119 -0
- package/lib/topic/TopicInfo.js +2 -0
- package/lib/topic/TopicInfo.js.map +1 -0
- package/lib/topic/TopicInfoQuery.cjs +174 -0
- package/lib/topic/TopicInfoQuery.d.ts +81 -0
- package/lib/topic/TopicInfoQuery.js +2 -0
- package/lib/topic/TopicInfoQuery.js.map +1 -0
- package/lib/topic/TopicMessage.cjs +116 -0
- package/lib/topic/TopicMessage.d.ts +65 -0
- package/lib/topic/TopicMessage.js +2 -0
- package/lib/topic/TopicMessage.js.map +1 -0
- package/lib/topic/TopicMessageChunk.cjs +71 -0
- package/lib/topic/TopicMessageChunk.d.ts +56 -0
- package/lib/topic/TopicMessageChunk.js +2 -0
- package/lib/topic/TopicMessageChunk.js.map +1 -0
- package/lib/topic/TopicMessageQuery.cjs +450 -0
- package/lib/topic/TopicMessageQuery.d.ts +220 -0
- package/lib/topic/TopicMessageQuery.js +2 -0
- package/lib/topic/TopicMessageQuery.js.map +1 -0
- package/lib/topic/TopicMessageSubmitTransaction.cjs +412 -0
- package/lib/topic/TopicMessageSubmitTransaction.d.ts +201 -0
- package/lib/topic/TopicMessageSubmitTransaction.js +2 -0
- package/lib/topic/TopicMessageSubmitTransaction.js.map +1 -0
- package/lib/topic/TopicUpdateTransaction.cjs +532 -0
- package/lib/topic/TopicUpdateTransaction.d.ts +284 -0
- package/lib/topic/TopicUpdateTransaction.js +2 -0
- package/lib/topic/TopicUpdateTransaction.js.map +1 -0
- package/lib/transaction/BatchTransaction.cjs +262 -0
- package/lib/transaction/BatchTransaction.d.ts +134 -0
- package/lib/transaction/BatchTransaction.js +2 -0
- package/lib/transaction/BatchTransaction.js.map +1 -0
- package/lib/transaction/CustomFeeLimit.cjs +116 -0
- package/lib/transaction/CustomFeeLimit.d.ts +64 -0
- package/lib/transaction/CustomFeeLimit.js +2 -0
- package/lib/transaction/CustomFeeLimit.js.map +1 -0
- package/lib/transaction/List.cjs +177 -0
- package/lib/transaction/List.d.ts +100 -0
- package/lib/transaction/List.js +2 -0
- package/lib/transaction/List.js.map +1 -0
- package/lib/transaction/NodeAccountIdSignatureMap.cjs +62 -0
- package/lib/transaction/NodeAccountIdSignatureMap.d.ts +23 -0
- package/lib/transaction/NodeAccountIdSignatureMap.js +2 -0
- package/lib/transaction/NodeAccountIdSignatureMap.js.map +1 -0
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.cjs +39 -0
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.d.ts +14 -0
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.js +2 -0
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.js.map +1 -0
- package/lib/transaction/SignableNodeTransactionBodyBytes.cjs +47 -0
- package/lib/transaction/SignableNodeTransactionBodyBytes.d.ts +38 -0
- package/lib/transaction/SignableNodeTransactionBodyBytes.js +2 -0
- package/lib/transaction/SignableNodeTransactionBodyBytes.js.map +1 -0
- package/lib/transaction/SignatureMap.cjs +95 -0
- package/lib/transaction/SignatureMap.d.ts +42 -0
- package/lib/transaction/SignatureMap.js +2 -0
- package/lib/transaction/SignatureMap.js.map +1 -0
- package/lib/transaction/SignatureMapLegacy.cjs +37 -0
- package/lib/transaction/SignatureMapLegacy.d.ts +15 -0
- package/lib/transaction/SignatureMapLegacy.js +2 -0
- package/lib/transaction/SignatureMapLegacy.js.map +1 -0
- package/lib/transaction/SignaturePairMap.cjs +50 -0
- package/lib/transaction/SignaturePairMap.d.ts +21 -0
- package/lib/transaction/SignaturePairMap.js +2 -0
- package/lib/transaction/SignaturePairMap.js.map +1 -0
- package/lib/transaction/TokenTransfer.cjs +2 -0
- package/lib/transaction/TokenTransfer.d.ts +0 -0
- package/lib/transaction/Transaction.cjs +1959 -0
- package/lib/transaction/Transaction.d.ts +698 -0
- package/lib/transaction/Transaction.js +2 -0
- package/lib/transaction/Transaction.js.map +1 -0
- package/lib/transaction/TransactionHashMap.cjs +44 -0
- package/lib/transaction/TransactionHashMap.d.ts +22 -0
- package/lib/transaction/TransactionHashMap.js +2 -0
- package/lib/transaction/TransactionHashMap.js.map +1 -0
- package/lib/transaction/TransactionId.cjs +224 -0
- package/lib/transaction/TransactionId.d.ts +122 -0
- package/lib/transaction/TransactionId.js +2 -0
- package/lib/transaction/TransactionId.js.map +1 -0
- package/lib/transaction/TransactionReceipt.cjs +303 -0
- package/lib/transaction/TransactionReceipt.d.ts +202 -0
- package/lib/transaction/TransactionReceipt.js +2 -0
- package/lib/transaction/TransactionReceipt.js.map +1 -0
- package/lib/transaction/TransactionReceiptQuery.cjs +347 -0
- package/lib/transaction/TransactionReceiptQuery.d.ts +96 -0
- package/lib/transaction/TransactionReceiptQuery.js +2 -0
- package/lib/transaction/TransactionReceiptQuery.js.map +1 -0
- package/lib/transaction/TransactionRecord.cjs +470 -0
- package/lib/transaction/TransactionRecord.d.ts +317 -0
- package/lib/transaction/TransactionRecord.js +2 -0
- package/lib/transaction/TransactionRecord.js.map +1 -0
- package/lib/transaction/TransactionRecordQuery.cjs +366 -0
- package/lib/transaction/TransactionRecordQuery.d.ts +99 -0
- package/lib/transaction/TransactionRecordQuery.js +2 -0
- package/lib/transaction/TransactionRecordQuery.js.map +1 -0
- package/lib/transaction/TransactionResponse.cjs +242 -0
- package/lib/transaction/TransactionResponse.d.ts +119 -0
- package/lib/transaction/TransactionResponse.js +2 -0
- package/lib/transaction/TransactionResponse.js.map +1 -0
- package/lib/util/ASN1-Decoder.cjs +276 -0
- package/lib/util/ASN1-Decoder.d.ts +104 -0
- package/lib/util/ASN1-Decoder.js +2 -0
- package/lib/util/ASN1-Decoder.js.map +1 -0
- package/lib/util.cjs +464 -0
- package/lib/util.d.ts +210 -0
- package/lib/util.js +2 -0
- package/lib/util.js.map +1 -0
- package/lib/version.cjs +8 -0
- package/lib/version.d.ts +2 -0
- package/lib/version.js +2 -0
- package/lib/version.js.map +1 -0
- package/package.json +139 -0
- package/src/BadEntityIdError.js +24 -0
- package/src/Cache.js +418 -0
- package/src/Duration.js +48 -0
- package/src/EntityIdHelper.js +620 -0
- package/src/EthereumFlow.js +244 -0
- package/src/EthereumTransaction.js +298 -0
- package/src/EthereumTransactionData.js +60 -0
- package/src/EthereumTransactionDataEip1559.js +146 -0
- package/src/EthereumTransactionDataEip2930.js +140 -0
- package/src/EthereumTransactionDataLegacy.js +121 -0
- package/src/EvmAddress.js +78 -0
- package/src/ExchangeRate.js +117 -0
- package/src/ExchangeRates.js +71 -0
- package/src/Executable.js +884 -0
- package/src/FeeComponents.js +199 -0
- package/src/FeeData.js +127 -0
- package/src/FeeDataType.js +125 -0
- package/src/FeeSchedule.js +88 -0
- package/src/FeeSchedules.js +82 -0
- package/src/FreezeType.js +113 -0
- package/src/Hbar.js +147 -0
- package/src/HbarUnit.js +90 -0
- package/src/Key.js +60 -0
- package/src/KeyList.js +179 -0
- package/src/LedgerId.js +134 -0
- package/src/LocalProvider.js +165 -0
- package/src/ManagedNode.js +269 -0
- package/src/ManagedNodeAddress.js +101 -0
- package/src/MaxAttemptsOrTimeoutError.js +42 -0
- package/src/MaxQueryPaymentExceeded.js +28 -0
- package/src/MirrorNode.js +41 -0
- package/src/Mnemonic.js +250 -0
- package/src/Node.js +106 -0
- package/src/ObjectMap.js +137 -0
- package/src/PrecheckStatusError.js +73 -0
- package/src/PrivateKey.js +547 -0
- package/src/PrngTransaction.js +152 -0
- package/src/Provider.js +40 -0
- package/src/PublicKey.js +294 -0
- package/src/ReceiptStatusError.js +41 -0
- package/src/RecordStatusError.js +30 -0
- package/src/RequestType.js +920 -0
- package/src/Signer.js +46 -0
- package/src/SignerSignature.js +27 -0
- package/src/StakingInfo.js +187 -0
- package/src/Status.js +3353 -0
- package/src/StatusError.js +64 -0
- package/src/Timestamp.js +160 -0
- package/src/TransactionFeeSchedule.js +100 -0
- package/src/Transfer.js +113 -0
- package/src/Wallet.js +300 -0
- package/src/account/AccountAllowanceAdjustTransaction.js +540 -0
- package/src/account/AccountAllowanceApproveTransaction.js +569 -0
- package/src/account/AccountAllowanceDeleteTransaction.js +199 -0
- package/src/account/AccountBalance.js +160 -0
- package/src/account/AccountBalanceQuery.js +238 -0
- package/src/account/AccountCreateTransaction.js +674 -0
- package/src/account/AccountDeleteTransaction.js +221 -0
- package/src/account/AccountId.js +486 -0
- package/src/account/AccountInfo.js +433 -0
- package/src/account/AccountInfoFlow.js +106 -0
- package/src/account/AccountInfoQuery.js +187 -0
- package/src/account/AccountRecordsQuery.js +186 -0
- package/src/account/AccountUpdateTransaction.js +634 -0
- package/src/account/HbarAllowance.js +147 -0
- package/src/account/HbarTransferMap.js +48 -0
- package/src/account/LiveHash.js +79 -0
- package/src/account/LiveHashAddTransaction.js +289 -0
- package/src/account/LiveHashDeleteTransaction.js +196 -0
- package/src/account/LiveHashQuery.js +209 -0
- package/src/account/NullableTokenDecimalMap.js +19 -0
- package/src/account/ProxyStaker.js +74 -0
- package/src/account/TokenAllowance.js +152 -0
- package/src/account/TokenBalanceMap.js +23 -0
- package/src/account/TokenDecimalMap.js +19 -0
- package/src/account/TokenNftAllowance.js +217 -0
- package/src/account/TokenNftTransferMap.js +134 -0
- package/src/account/TokenRelationship.js +125 -0
- package/src/account/TokenRelationshipMap.js +59 -0
- package/src/account/TokenTransferAccountMap.js +24 -0
- package/src/account/TokenTransferMap.js +99 -0
- package/src/account/TransferTransaction.js +372 -0
- package/src/address_book/AddressBooks.js +27 -0
- package/src/address_book/Endpoint.js +141 -0
- package/src/address_book/IPv4Address.js +125 -0
- package/src/address_book/IPv4AddressPart.js +71 -0
- package/src/address_book/NodeAddress.js +319 -0
- package/src/address_book/NodeAddressBook.js +114 -0
- package/src/array.js +60 -0
- package/src/base32.js +29 -0
- package/src/browser.js +10 -0
- package/src/channel/Channel.js +340 -0
- package/src/channel/MirrorChannel.js +49 -0
- package/src/channel/NativeChannel.js +120 -0
- package/src/channel/NodeChannel.js +196 -0
- package/src/channel/NodeMirrorChannel.js +91 -0
- package/src/channel/WebChannel.js +100 -0
- package/src/client/Client.js +871 -0
- package/src/client/ManagedNetwork.js +473 -0
- package/src/client/MirrorNetwork.js +87 -0
- package/src/client/NativeClient.js +218 -0
- package/src/client/Network.js +304 -0
- package/src/client/NodeClient.js +321 -0
- package/src/client/WebClient.js +302 -0
- package/src/client/addressbooks/mainnet.js +2 -0
- package/src/client/addressbooks/previewnet.js +2 -0
- package/src/client/addressbooks/testnet.js +2 -0
- package/src/constants/ClientConstants.js +204 -0
- package/src/contract/ContractByteCodeQuery.js +178 -0
- package/src/contract/ContractCallQuery.js +382 -0
- package/src/contract/ContractCreateFlow.js +551 -0
- package/src/contract/ContractCreateTransaction.js +677 -0
- package/src/contract/ContractDeleteTransaction.js +291 -0
- package/src/contract/ContractExecuteTransaction.js +313 -0
- package/src/contract/ContractFunctionParameters.js +1759 -0
- package/src/contract/ContractFunctionResult.js +1060 -0
- package/src/contract/ContractFunctionSelector.js +1360 -0
- package/src/contract/ContractId.js +316 -0
- package/src/contract/ContractInfo.js +264 -0
- package/src/contract/ContractInfoQuery.js +190 -0
- package/src/contract/ContractLogInfo.js +83 -0
- package/src/contract/ContractNonceInfo.js +129 -0
- package/src/contract/ContractStateChange.js +77 -0
- package/src/contract/ContractUpdateTransaction.js +665 -0
- package/src/contract/DelegateContractId.js +94 -0
- package/src/contract/StorageChange.js +71 -0
- package/src/cryptography/keccak.js +419 -0
- package/src/cryptography/sha384.browser.js +13 -0
- package/src/cryptography/sha384.js +20 -0
- package/src/cryptography/sha384.native.js +19 -0
- package/src/encoding/base64.native.js +19 -0
- package/src/encoding/hex.browser.js +95 -0
- package/src/encoding/hex.js +76 -0
- package/src/encoding/hex.native.js +386 -0
- package/src/encoding/utf8.browser.js +19 -0
- package/src/encoding/utf8.js +17 -0
- package/src/encoding/utf8.native.js +20 -0
- package/src/exports.js +213 -0
- package/src/file/FileAppendTransaction.js +586 -0
- package/src/file/FileContentsQuery.js +174 -0
- package/src/file/FileCreateTransaction.js +301 -0
- package/src/file/FileDeleteTransaction.js +167 -0
- package/src/file/FileId.js +247 -0
- package/src/file/FileInfo.js +136 -0
- package/src/file/FileInfoQuery.js +186 -0
- package/src/file/FileUpdateTransaction.js +375 -0
- package/src/grpc/GrpcServiceError.js +64 -0
- package/src/grpc/GrpcStatus.js +142 -0
- package/src/http/HttpError.js +26 -0
- package/src/http/HttpStatus.js +38 -0
- package/src/index.js +11 -0
- package/src/logger/LogLevel.js +72 -0
- package/src/logger/Logger.js +225 -0
- package/src/long.js +20 -0
- package/src/native.js +10 -0
- package/src/network/AddressBookQuery.js +272 -0
- package/src/network/AddressBookQueryWeb.js +388 -0
- package/src/network/NetworkVersionInfo.js +81 -0
- package/src/network/NetworkVersionInfoQuery.js +117 -0
- package/src/network/SemanticVersion.js +74 -0
- package/src/node/NodeCreateTransaction.js +513 -0
- package/src/node/NodeDeleteTransaction.js +161 -0
- package/src/node/NodeUpdateTransaction.js +592 -0
- package/src/node/ServiceEndpoint.js +145 -0
- package/src/query/CostQuery.js +187 -0
- package/src/query/MirrorNodeContractCallQuery.js +49 -0
- package/src/query/MirrorNodeContractEstimateQuery.js +48 -0
- package/src/query/MirrorNodeContractQuery.js +266 -0
- package/src/query/Query.js +527 -0
- package/src/query/QueryBase.js +116 -0
- package/src/schedule/ScheduleCreateTransaction.js +371 -0
- package/src/schedule/ScheduleDeleteTransaction.js +174 -0
- package/src/schedule/ScheduleId.js +173 -0
- package/src/schedule/ScheduleInfo.js +243 -0
- package/src/schedule/ScheduleInfoQuery.js +189 -0
- package/src/schedule/ScheduleSignTransaction.js +189 -0
- package/src/system/FreezeTransaction.js +390 -0
- package/src/system/SystemDeleteTransaction.js +239 -0
- package/src/system/SystemUndeleteTransaction.js +207 -0
- package/src/token/AbstractTokenTransferTransaction.js +589 -0
- package/src/token/AirdropPendingTransaction.js +58 -0
- package/src/token/AssessedCustomFee.js +198 -0
- package/src/token/CustomFee.js +87 -0
- package/src/token/CustomFixedFee.js +178 -0
- package/src/token/CustomFractionalFee.js +226 -0
- package/src/token/CustomRoyaltyFee.js +173 -0
- package/src/token/FeeAssessmentMethod.js +53 -0
- package/src/token/NftId.js +95 -0
- package/src/token/PendingAirdropId.js +157 -0
- package/src/token/PendingAirdropRecord.js +50 -0
- package/src/token/TokenAirdropTransaction.js +220 -0
- package/src/token/TokenAssociateTransaction.js +214 -0
- package/src/token/TokenAssociation.js +127 -0
- package/src/token/TokenBurnTransaction.js +229 -0
- package/src/token/TokenCancelAirdropTransaction.js +120 -0
- package/src/token/TokenClaimAirdropTransaction.js +121 -0
- package/src/token/TokenCreateTransaction.js +978 -0
- package/src/token/TokenDeleteTransaction.js +161 -0
- package/src/token/TokenDissociateTransaction.js +214 -0
- package/src/token/TokenFeeScheduleUpdateTransaction.js +198 -0
- package/src/token/TokenFreezeTransaction.js +203 -0
- package/src/token/TokenGrantKycTransaction.js +203 -0
- package/src/token/TokenId.js +203 -0
- package/src/token/TokenInfo.js +454 -0
- package/src/token/TokenInfoQuery.js +185 -0
- package/src/token/TokenKeyValidation.js +70 -0
- package/src/token/TokenMintTransaction.js +258 -0
- package/src/token/TokenNftInfo.js +135 -0
- package/src/token/TokenNftInfoQuery.js +369 -0
- package/src/token/TokenNftTransfer.js +115 -0
- package/src/token/TokenNftsUpdateTransaction.js +220 -0
- package/src/token/TokenPauseTransaction.js +161 -0
- package/src/token/TokenReference.js +40 -0
- package/src/token/TokenRejectFlow.js +261 -0
- package/src/token/TokenRejectTransaction.js +262 -0
- package/src/token/TokenRevokeKycTransaction.js +203 -0
- package/src/token/TokenSupplyType.js +74 -0
- package/src/token/TokenTransfer.js +142 -0
- package/src/token/TokenType.js +74 -0
- package/src/token/TokenUnfreezeTransaction.js +203 -0
- package/src/token/TokenUnpauseTransaction.js +161 -0
- package/src/token/TokenUpdateNftsTransaction.js +225 -0
- package/src/token/TokenUpdateTransaction.js +827 -0
- package/src/token/TokenWipeTransaction.js +271 -0
- package/src/topic/SubscriptionHandle.js +34 -0
- package/src/topic/TopicCreateTransaction.js +557 -0
- package/src/topic/TopicDeleteTransaction.js +167 -0
- package/src/topic/TopicId.js +204 -0
- package/src/topic/TopicInfo.js +254 -0
- package/src/topic/TopicInfoQuery.js +190 -0
- package/src/topic/TopicMessage.js +170 -0
- package/src/topic/TopicMessageChunk.js +76 -0
- package/src/topic/TopicMessageQuery.js +523 -0
- package/src/topic/TopicMessageSubmitTransaction.js +488 -0
- package/src/topic/TopicUpdateTransaction.js +659 -0
- package/src/transaction/BatchTransaction.js +293 -0
- package/src/transaction/CustomFeeLimit.js +121 -0
- package/src/transaction/List.js +175 -0
- package/src/transaction/NodeAccountIdSignatureMap.js +62 -0
- package/src/transaction/NodeAccountIdSignatureMapLegacy.js +41 -0
- package/src/transaction/SignableNodeTransactionBodyBytes.js +40 -0
- package/src/transaction/SignatureMap.js +104 -0
- package/src/transaction/SignatureMapLegacy.js +37 -0
- package/src/transaction/SignaturePairMap.js +53 -0
- package/src/transaction/TokenTransfer.js +1 -0
- package/src/transaction/Transaction.js +2295 -0
- package/src/transaction/TransactionHashMap.js +41 -0
- package/src/transaction/TransactionId.js +262 -0
- package/src/transaction/TransactionReceipt.js +414 -0
- package/src/transaction/TransactionReceiptQuery.js +418 -0
- package/src/transaction/TransactionRecord.js +638 -0
- package/src/transaction/TransactionRecordQuery.js +440 -0
- package/src/transaction/TransactionResponse.js +283 -0
- package/src/types.d.ts +5 -0
- package/src/util/ASN1-Decoder.js +256 -0
- package/src/util.js +479 -0
- package/src/version.js +3 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var HieroProto = _interopRequireWildcard(require("@hashgraph/proto"));
|
|
8
|
+
var _FeeSchedule = _interopRequireDefault(require("./FeeSchedule.cjs"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Represents a pair of fee schedules on the Hedera network - the currently active fee schedule
|
|
16
|
+
* and the next upcoming fee schedule. This structure allows for transparent fee updates by making
|
|
17
|
+
* future fee changes visible before they take effect.
|
|
18
|
+
*/
|
|
19
|
+
class FeeSchedules {
|
|
20
|
+
/**
|
|
21
|
+
* @param {object} [props]
|
|
22
|
+
* @param {FeeSchedule} [props.currentFeeSchedule]
|
|
23
|
+
* @param {FeeSchedule} [props.nextFeeSchedule]
|
|
24
|
+
*/
|
|
25
|
+
constructor(props = {}) {
|
|
26
|
+
/*
|
|
27
|
+
* Contains current Fee Schedule
|
|
28
|
+
*
|
|
29
|
+
* @type {FeeSchedule}
|
|
30
|
+
*/
|
|
31
|
+
this.current = props.currentFeeSchedule;
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* Contains next Fee Schedule
|
|
35
|
+
*
|
|
36
|
+
* @type {FeeSchedule}
|
|
37
|
+
*/
|
|
38
|
+
this.next = props.nextFeeSchedule;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @param {Uint8Array} bytes
|
|
43
|
+
* @returns {FeeSchedules}
|
|
44
|
+
*/
|
|
45
|
+
static fromBytes(bytes) {
|
|
46
|
+
return FeeSchedules._fromProtobuf(HieroProto.proto.CurrentAndNextFeeSchedule.decode(bytes));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @param {HieroProto.proto.ICurrentAndNextFeeSchedule} feeSchedules
|
|
52
|
+
* @returns {FeeSchedules}
|
|
53
|
+
*/
|
|
54
|
+
static _fromProtobuf(feeSchedules) {
|
|
55
|
+
return new FeeSchedules({
|
|
56
|
+
currentFeeSchedule: feeSchedules.currentFeeSchedule != null ? _FeeSchedule.default._fromProtobuf(feeSchedules.currentFeeSchedule) : undefined,
|
|
57
|
+
nextFeeSchedule: feeSchedules.nextFeeSchedule != null ? _FeeSchedule.default._fromProtobuf(feeSchedules.nextFeeSchedule) : undefined
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @returns {HieroProto.proto.ICurrentAndNextFeeSchedule}
|
|
64
|
+
*/
|
|
65
|
+
_toProtobuf() {
|
|
66
|
+
return {
|
|
67
|
+
currentFeeSchedule: this.current != null ? this.current._toProtobuf() : undefined,
|
|
68
|
+
nextFeeSchedule: this.next != null ? this.next._toProtobuf() : undefined
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @returns {Uint8Array}
|
|
74
|
+
*/
|
|
75
|
+
toBytes() {
|
|
76
|
+
return HieroProto.proto.CurrentAndNextFeeSchedule.encode(this._toProtobuf()).finish();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.default = FeeSchedules;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a pair of fee schedules on the Hedera network - the currently active fee schedule
|
|
3
|
+
* and the next upcoming fee schedule. This structure allows for transparent fee updates by making
|
|
4
|
+
* future fee changes visible before they take effect.
|
|
5
|
+
*/
|
|
6
|
+
export default class FeeSchedules {
|
|
7
|
+
/**
|
|
8
|
+
* @param {Uint8Array} bytes
|
|
9
|
+
* @returns {FeeSchedules}
|
|
10
|
+
*/
|
|
11
|
+
static fromBytes(bytes: Uint8Array): FeeSchedules;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* @param {HieroProto.proto.ICurrentAndNextFeeSchedule} feeSchedules
|
|
15
|
+
* @returns {FeeSchedules}
|
|
16
|
+
*/
|
|
17
|
+
static _fromProtobuf(feeSchedules: HieroProto.proto.ICurrentAndNextFeeSchedule): FeeSchedules;
|
|
18
|
+
/**
|
|
19
|
+
* @param {object} [props]
|
|
20
|
+
* @param {FeeSchedule} [props.currentFeeSchedule]
|
|
21
|
+
* @param {FeeSchedule} [props.nextFeeSchedule]
|
|
22
|
+
*/
|
|
23
|
+
constructor(props?: {
|
|
24
|
+
currentFeeSchedule?: FeeSchedule | undefined;
|
|
25
|
+
nextFeeSchedule?: FeeSchedule | undefined;
|
|
26
|
+
});
|
|
27
|
+
current: FeeSchedule | undefined;
|
|
28
|
+
next: FeeSchedule | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @returns {HieroProto.proto.ICurrentAndNextFeeSchedule}
|
|
32
|
+
*/
|
|
33
|
+
_toProtobuf(): HieroProto.proto.ICurrentAndNextFeeSchedule;
|
|
34
|
+
/**
|
|
35
|
+
* @returns {Uint8Array}
|
|
36
|
+
*/
|
|
37
|
+
toBytes(): Uint8Array;
|
|
38
|
+
}
|
|
39
|
+
import FeeSchedule from "./FeeSchedule.js";
|
|
40
|
+
import * as HieroProto from "@hashgraph/proto";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"@hashgraph/proto";import t from"./FeeSchedule.js";class r{constructor(e={}){this.current=e.currentFeeSchedule,this.next=e.nextFeeSchedule}static fromBytes(t){return r._fromProtobuf(e.proto.CurrentAndNextFeeSchedule.decode(t))}static _fromProtobuf(e){return new r({currentFeeSchedule:null!=e.currentFeeSchedule?t._fromProtobuf(e.currentFeeSchedule):void 0,nextFeeSchedule:null!=e.nextFeeSchedule?t._fromProtobuf(e.nextFeeSchedule):void 0})}_toProtobuf(){return{currentFeeSchedule:null!=this.current?this.current._toProtobuf():void 0,nextFeeSchedule:null!=this.next?this.next._toProtobuf():void 0}}toBytes(){return e.proto.CurrentAndNextFeeSchedule.encode(this._toProtobuf()).finish()}}export{r as default};
|
|
2
|
+
//# sourceMappingURL=FeeSchedules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeeSchedules.js","sources":["../src/FeeSchedules.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hashgraph/proto\";\nimport FeeSchedule from \"./FeeSchedule.js\";\n\n/**\n * Represents a pair of fee schedules on the Hedera network - the currently active fee schedule\n * and the next upcoming fee schedule. This structure allows for transparent fee updates by making\n * future fee changes visible before they take effect.\n */\nexport default class FeeSchedules {\n /**\n * @param {object} [props]\n * @param {FeeSchedule} [props.currentFeeSchedule]\n * @param {FeeSchedule} [props.nextFeeSchedule]\n */\n constructor(props = {}) {\n /*\n * Contains current Fee Schedule\n *\n * @type {FeeSchedule}\n */\n this.current = props.currentFeeSchedule;\n\n /*\n * Contains next Fee Schedule\n *\n * @type {FeeSchedule}\n */\n this.next = props.nextFeeSchedule;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeSchedules}\n */\n static fromBytes(bytes) {\n return FeeSchedules._fromProtobuf(\n HieroProto.proto.CurrentAndNextFeeSchedule.decode(bytes),\n );\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ICurrentAndNextFeeSchedule} feeSchedules\n * @returns {FeeSchedules}\n */\n static _fromProtobuf(feeSchedules) {\n return new FeeSchedules({\n currentFeeSchedule:\n feeSchedules.currentFeeSchedule != null\n ? FeeSchedule._fromProtobuf(feeSchedules.currentFeeSchedule)\n : undefined,\n nextFeeSchedule:\n feeSchedules.nextFeeSchedule != null\n ? FeeSchedule._fromProtobuf(feeSchedules.nextFeeSchedule)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.ICurrentAndNextFeeSchedule}\n */\n _toProtobuf() {\n return {\n currentFeeSchedule:\n this.current != null ? this.current._toProtobuf() : undefined,\n nextFeeSchedule:\n this.next != null ? this.next._toProtobuf() : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.CurrentAndNextFeeSchedule.encode(\n this._toProtobuf(),\n ).finish();\n }\n}\n"],"names":["FeeSchedules","constructor","props","this","current","currentFeeSchedule","next","nextFeeSchedule","fromBytes","bytes","_fromProtobuf","HieroProto","proto","CurrentAndNextFeeSchedule","decode","feeSchedules","FeeSchedule","undefined","_toProtobuf","toBytes","encode","finish"],"mappings":"mEAUe,MAAMA,EAMjB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,QAAUF,EAAMG,mBAOrBF,KAAKG,KAAOJ,EAAMK,eAC1B,CAMI,gBAAOC,CAAUC,GACb,OAAOT,EAAaU,cAChBC,EAAWC,MAAMC,0BAA0BC,OAAOL,GAE9D,CAOI,oBAAOC,CAAcK,GACjB,OAAO,IAAIf,EAAa,CACpBK,mBACuC,MAAnCU,EAAaV,mBACPW,EAAYN,cAAcK,EAAaV,yBACvCY,EACVV,gBACoC,MAAhCQ,EAAaR,gBACPS,EAAYN,cAAcK,EAAaR,sBACvCU,GAEtB,CAMI,WAAAC,GACI,MAAO,CACHb,mBACoB,MAAhBF,KAAKC,QAAkBD,KAAKC,QAAQc,mBAAgBD,EACxDV,gBACiB,MAAbJ,KAAKG,KAAeH,KAAKG,KAAKY,mBAAgBD,EAE9D,CAKI,OAAAE,GACI,OAAOR,EAAWC,MAAMC,0BAA0BO,OAC9CjB,KAAKe,eACPG,QACV"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @namespace proto
|
|
11
|
+
* @typedef {import("@hashgraph/proto").proto.FreezeType} HieroProto.proto.FreezeType
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
class FreezeType {
|
|
15
|
+
/**
|
|
16
|
+
* @hideconstructor
|
|
17
|
+
* @internal
|
|
18
|
+
* @param {number} code
|
|
19
|
+
*/
|
|
20
|
+
constructor(code) {
|
|
21
|
+
/** @readonly */
|
|
22
|
+
this._code = code;
|
|
23
|
+
Object.freeze(this);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @returns {string}
|
|
28
|
+
*/
|
|
29
|
+
toString() {
|
|
30
|
+
switch (this) {
|
|
31
|
+
case FreezeType.UnknownFreezeType:
|
|
32
|
+
return "UNKNOWN_FREEZE_TYPE";
|
|
33
|
+
case FreezeType.FreezeOnly:
|
|
34
|
+
return "FREEZE_ONLY";
|
|
35
|
+
case FreezeType.PrepareUpgrade:
|
|
36
|
+
return "PREPARE_UPGRADE";
|
|
37
|
+
case FreezeType.FreezeUpgrade:
|
|
38
|
+
return "FREEZE_UPGRADE";
|
|
39
|
+
case FreezeType.FreezeAbort:
|
|
40
|
+
return "FREEZE_ABORT";
|
|
41
|
+
case FreezeType.TelemetryUpgrade:
|
|
42
|
+
return "TELEMETRY_UPGRADE";
|
|
43
|
+
default:
|
|
44
|
+
return `UNKNOWN (${this._code})`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @param {number} code
|
|
51
|
+
* @returns {FreezeType}
|
|
52
|
+
*/
|
|
53
|
+
static _fromCode(code) {
|
|
54
|
+
switch (code) {
|
|
55
|
+
case 0:
|
|
56
|
+
return FreezeType.UnknownFreezeType;
|
|
57
|
+
case 1:
|
|
58
|
+
return FreezeType.FreezeOnly;
|
|
59
|
+
case 2:
|
|
60
|
+
return FreezeType.PrepareUpgrade;
|
|
61
|
+
case 3:
|
|
62
|
+
return FreezeType.FreezeUpgrade;
|
|
63
|
+
case 4:
|
|
64
|
+
return FreezeType.FreezeAbort;
|
|
65
|
+
case 5:
|
|
66
|
+
return FreezeType.TelemetryUpgrade;
|
|
67
|
+
default:
|
|
68
|
+
throw new Error(`(BUG) Status.fromCode() does not handle code: ${code}`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @returns {HieroProto.proto.FreezeType}
|
|
74
|
+
*/
|
|
75
|
+
valueOf() {
|
|
76
|
+
return this._code;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* An (invalid) default value for this enum, to ensure the client explicitly sets
|
|
82
|
+
* the intended type of freeze transaction.
|
|
83
|
+
*/
|
|
84
|
+
exports.default = FreezeType;
|
|
85
|
+
FreezeType.UnknownFreezeType = new FreezeType(0);
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Freezes the network at the specified time. The start_time field must be provided and
|
|
89
|
+
* must reference a future time. Any values specified for the update_file and file_hash
|
|
90
|
+
* fields will be ignored. This transaction does not perform any network changes or
|
|
91
|
+
* upgrades and requires manual intervention to restart the network.
|
|
92
|
+
*/
|
|
93
|
+
FreezeType.FreezeOnly = new FreezeType(1);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* A non-freezing operation that initiates network wide preparation in advance of a
|
|
97
|
+
* scheduled freeze upgrade. The update_file and file_hash fields must be provided and
|
|
98
|
+
* valid. The start_time field may be omitted and any value present will be ignored.
|
|
99
|
+
*/
|
|
100
|
+
FreezeType.PrepareUpgrade = new FreezeType(2);
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Freezes the network at the specified time and performs the previously prepared
|
|
104
|
+
* automatic upgrade across the entire network.
|
|
105
|
+
*/
|
|
106
|
+
FreezeType.FreezeUpgrade = new FreezeType(3);
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Aborts a pending network freeze operation.
|
|
110
|
+
*/
|
|
111
|
+
FreezeType.FreezeAbort = new FreezeType(4);
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Performs an immediate upgrade on auxilary services and containers providing
|
|
115
|
+
* telemetry/metrics. Does not impact network operations.
|
|
116
|
+
*/
|
|
117
|
+
FreezeType.TelemetryUpgrade = new FreezeType(5);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @namespace proto
|
|
3
|
+
* @typedef {import("@hashgraph/proto").proto.FreezeType} HieroProto.proto.FreezeType
|
|
4
|
+
*/
|
|
5
|
+
declare class FreezeType {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
* @param {number} code
|
|
9
|
+
* @returns {FreezeType}
|
|
10
|
+
*/
|
|
11
|
+
static _fromCode(code: number): FreezeType;
|
|
12
|
+
/**
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
* @internal
|
|
15
|
+
* @param {number} code
|
|
16
|
+
*/
|
|
17
|
+
constructor(code: number);
|
|
18
|
+
/** @readonly */
|
|
19
|
+
readonly _code: number;
|
|
20
|
+
/**
|
|
21
|
+
* @returns {string}
|
|
22
|
+
*/
|
|
23
|
+
toString(): string;
|
|
24
|
+
/**
|
|
25
|
+
* @returns {HieroProto.proto.FreezeType}
|
|
26
|
+
*/
|
|
27
|
+
valueOf(): HieroProto.proto.FreezeType;
|
|
28
|
+
}
|
|
29
|
+
declare namespace FreezeType {
|
|
30
|
+
let UnknownFreezeType: FreezeType;
|
|
31
|
+
let FreezeOnly: FreezeType;
|
|
32
|
+
let PrepareUpgrade: FreezeType;
|
|
33
|
+
let FreezeUpgrade: FreezeType;
|
|
34
|
+
let FreezeAbort: FreezeType;
|
|
35
|
+
let TelemetryUpgrade: FreezeType;
|
|
36
|
+
}
|
|
37
|
+
export default FreezeType;
|
|
38
|
+
export namespace HieroProto {
|
|
39
|
+
namespace proto {
|
|
40
|
+
type FreezeType = import("@hashgraph/proto").proto.FreezeType;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
class e{constructor(e){this._code=e,Object.freeze(this)}toString(){switch(this){case e.UnknownFreezeType:return"UNKNOWN_FREEZE_TYPE";case e.FreezeOnly:return"FREEZE_ONLY";case e.PrepareUpgrade:return"PREPARE_UPGRADE";case e.FreezeUpgrade:return"FREEZE_UPGRADE";case e.FreezeAbort:return"FREEZE_ABORT";case e.TelemetryUpgrade:return"TELEMETRY_UPGRADE";default:return`UNKNOWN (${this._code})`}}static _fromCode(r){switch(r){case 0:return e.UnknownFreezeType;case 1:return e.FreezeOnly;case 2:return e.PrepareUpgrade;case 3:return e.FreezeUpgrade;case 4:return e.FreezeAbort;case 5:return e.TelemetryUpgrade;default:throw new Error(`(BUG) Status.fromCode() does not handle code: ${r}`)}}valueOf(){return this._code}}e.UnknownFreezeType=new e(0),e.FreezeOnly=new e(1),e.PrepareUpgrade=new e(2),e.FreezeUpgrade=new e(3),e.FreezeAbort=new e(4),e.TelemetryUpgrade=new e(5);export{e as default};
|
|
2
|
+
//# sourceMappingURL=FreezeType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FreezeType.js","sources":["../src/FreezeType.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.FreezeType} HieroProto.proto.FreezeType\n */\n\nexport default class FreezeType {\n /**\n * @hideconstructor\n * @internal\n * @param {number} code\n */\n constructor(code) {\n /** @readonly */\n this._code = code;\n\n Object.freeze(this);\n }\n\n /**\n * @returns {string}\n */\n toString() {\n switch (this) {\n case FreezeType.UnknownFreezeType:\n return \"UNKNOWN_FREEZE_TYPE\";\n case FreezeType.FreezeOnly:\n return \"FREEZE_ONLY\";\n case FreezeType.PrepareUpgrade:\n return \"PREPARE_UPGRADE\";\n case FreezeType.FreezeUpgrade:\n return \"FREEZE_UPGRADE\";\n case FreezeType.FreezeAbort:\n return \"FREEZE_ABORT\";\n case FreezeType.TelemetryUpgrade:\n return \"TELEMETRY_UPGRADE\";\n default:\n return `UNKNOWN (${this._code})`;\n }\n }\n\n /**\n * @internal\n * @param {number} code\n * @returns {FreezeType}\n */\n static _fromCode(code) {\n switch (code) {\n case 0:\n return FreezeType.UnknownFreezeType;\n case 1:\n return FreezeType.FreezeOnly;\n case 2:\n return FreezeType.PrepareUpgrade;\n case 3:\n return FreezeType.FreezeUpgrade;\n case 4:\n return FreezeType.FreezeAbort;\n case 5:\n return FreezeType.TelemetryUpgrade;\n default:\n throw new Error(\n `(BUG) Status.fromCode() does not handle code: ${code}`,\n );\n }\n }\n\n /**\n * @returns {HieroProto.proto.FreezeType}\n */\n valueOf() {\n return this._code;\n }\n}\n\n/**\n * An (invalid) default value for this enum, to ensure the client explicitly sets\n * the intended type of freeze transaction.\n */\nFreezeType.UnknownFreezeType = new FreezeType(0);\n\n/**\n * Freezes the network at the specified time. The start_time field must be provided and\n * must reference a future time. Any values specified for the update_file and file_hash\n * fields will be ignored. This transaction does not perform any network changes or\n * upgrades and requires manual intervention to restart the network.\n */\nFreezeType.FreezeOnly = new FreezeType(1);\n\n/**\n * A non-freezing operation that initiates network wide preparation in advance of a\n * scheduled freeze upgrade. The update_file and file_hash fields must be provided and\n * valid. The start_time field may be omitted and any value present will be ignored.\n */\nFreezeType.PrepareUpgrade = new FreezeType(2);\n\n/**\n * Freezes the network at the specified time and performs the previously prepared\n * automatic upgrade across the entire network.\n */\nFreezeType.FreezeUpgrade = new FreezeType(3);\n\n/**\n * Aborts a pending network freeze operation.\n */\nFreezeType.FreezeAbort = new FreezeType(4);\n\n/**\n * Performs an immediate upgrade on auxilary services and containers providing\n * telemetry/metrics. Does not impact network operations.\n */\nFreezeType.TelemetryUpgrade = new FreezeType(5);\n"],"names":["FreezeType","constructor","code","this","_code","Object","freeze","toString","UnknownFreezeType","FreezeOnly","PrepareUpgrade","FreezeUpgrade","FreezeAbort","TelemetryUpgrade","_fromCode","Error","valueOf"],"mappings":"AAOe,MAAMA,EAMjB,WAAAC,CAAYC,GAERC,KAAKC,MAAQF,EAEbG,OAAOC,OAAOH,KACtB,CAKI,QAAAI,GACI,OAAQJ,MACJ,KAAKH,EAAWQ,kBACZ,MAAO,sBACX,KAAKR,EAAWS,WACZ,MAAO,cACX,KAAKT,EAAWU,eACZ,MAAO,kBACX,KAAKV,EAAWW,cACZ,MAAO,iBACX,KAAKX,EAAWY,YACZ,MAAO,eACX,KAAKZ,EAAWa,iBACZ,MAAO,oBACX,QACI,MAAO,YAAYV,KAAKC,SAExC,CAOI,gBAAOU,CAAUZ,GACb,OAAQA,GACJ,KAAK,EACD,OAAOF,EAAWQ,kBACtB,KAAK,EACD,OAAOR,EAAWS,WACtB,KAAK,EACD,OAAOT,EAAWU,eACtB,KAAK,EACD,OAAOV,EAAWW,cACtB,KAAK,EACD,OAAOX,EAAWY,YACtB,KAAK,EACD,OAAOZ,EAAWa,iBACtB,QACI,MAAM,IAAIE,MACN,iDAAiDb,KAGrE,CAKI,OAAAc,GACI,OAAOb,KAAKC,KACpB,EAOAJ,EAAWQ,kBAAoB,IAAIR,EAAW,GAQ9CA,EAAWS,WAAa,IAAIT,EAAW,GAOvCA,EAAWU,eAAiB,IAAIV,EAAW,GAM3CA,EAAWW,cAAgB,IAAIX,EAAW,GAK1CA,EAAWY,YAAc,IAAIZ,EAAW,GAMxCA,EAAWa,iBAAmB,IAAIb,EAAW"}
|
package/lib/Hbar.cjs
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _bignumber = _interopRequireDefault(require("bignumber.js"));
|
|
8
|
+
var _long = require("./long.cjs");
|
|
9
|
+
var _HbarUnit = _interopRequireDefault(require("./HbarUnit.cjs"));
|
|
10
|
+
var _long2 = _interopRequireDefault(require("long"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @typedef {import("./long.js").LongObject} LongObject
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Represents a quantity of hbar (ℏ), the native currency of the Hedera network.
|
|
20
|
+
* Provides utilities for handling different hbar denominations and conversions.
|
|
21
|
+
*/
|
|
22
|
+
class Hbar {
|
|
23
|
+
/**
|
|
24
|
+
* @param {number | string | Long | LongObject | BigNumber} amount
|
|
25
|
+
* @param {HbarUnit=} unit
|
|
26
|
+
*/
|
|
27
|
+
constructor(amount, unit = _HbarUnit.default.Hbar) {
|
|
28
|
+
if (unit === _HbarUnit.default.Tinybar) {
|
|
29
|
+
this._valueInTinybar = (0, _long.valueToLong)(amount);
|
|
30
|
+
} else {
|
|
31
|
+
/** @type {BigNumber} */
|
|
32
|
+
let bigAmount;
|
|
33
|
+
if (_long2.default.isLong(amount)) {
|
|
34
|
+
bigAmount = new _bignumber.default(amount.toString(10));
|
|
35
|
+
} else if (_bignumber.default.isBigNumber(amount) || typeof amount === "string" || typeof amount === "number") {
|
|
36
|
+
bigAmount = new _bignumber.default(amount);
|
|
37
|
+
} else {
|
|
38
|
+
bigAmount = new _bignumber.default(0);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @type {BigNumber}
|
|
43
|
+
*/
|
|
44
|
+
this._valueInTinybar = bigAmount.multipliedBy(unit._tinybar);
|
|
45
|
+
}
|
|
46
|
+
if (!this._valueInTinybar.isInteger()) {
|
|
47
|
+
throw new Error("Hbar in tinybars contains decimals");
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @param {number | Long | string | BigNumber} amount
|
|
53
|
+
* @param {HbarUnit} unit
|
|
54
|
+
* @returns {Hbar}
|
|
55
|
+
*/
|
|
56
|
+
static from(amount, unit) {
|
|
57
|
+
return new Hbar(amount, unit);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @param {number | Long | string | BigNumber} amount
|
|
62
|
+
* @returns {Hbar}
|
|
63
|
+
*/
|
|
64
|
+
static fromTinybars(amount) {
|
|
65
|
+
if (typeof amount === "string") {
|
|
66
|
+
return this.fromString(amount, _HbarUnit.default.Tinybar);
|
|
67
|
+
}
|
|
68
|
+
return new Hbar(amount, _HbarUnit.default.Tinybar);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @param {string} str
|
|
73
|
+
* @param {HbarUnit=} unit
|
|
74
|
+
* @returns {Hbar}
|
|
75
|
+
*/
|
|
76
|
+
static fromString(str, unit = _HbarUnit.default.Hbar) {
|
|
77
|
+
const pattern = /^((?:\+|-)?\d+(?:\.\d+)?)(?: (tℏ|μℏ|mℏ|ℏ|kℏ|Mℏ|Gℏ))?$/;
|
|
78
|
+
if (pattern.test(str)) {
|
|
79
|
+
let [amount, symbol] = str.split(" ");
|
|
80
|
+
if (symbol != null) {
|
|
81
|
+
unit = _HbarUnit.default.fromString(symbol);
|
|
82
|
+
}
|
|
83
|
+
return new Hbar(new _bignumber.default(amount), unit);
|
|
84
|
+
} else {
|
|
85
|
+
throw new Error("invalid argument provided");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @param {HbarUnit} unit
|
|
91
|
+
* @returns {BigNumber}
|
|
92
|
+
*/
|
|
93
|
+
to(unit) {
|
|
94
|
+
return this._valueInTinybar.dividedBy(unit._tinybar);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @returns {BigNumber}
|
|
99
|
+
*/
|
|
100
|
+
toBigNumber() {
|
|
101
|
+
return this.to(_HbarUnit.default.Hbar);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @returns {Long}
|
|
106
|
+
*/
|
|
107
|
+
toTinybars() {
|
|
108
|
+
return _long2.default.fromValue(this._valueInTinybar.toFixed());
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @returns {Hbar}
|
|
113
|
+
*/
|
|
114
|
+
negated() {
|
|
115
|
+
return Hbar.fromTinybars(this._valueInTinybar.negated());
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @returns {boolean}
|
|
120
|
+
*/
|
|
121
|
+
isNegative() {
|
|
122
|
+
return this._valueInTinybar.isNegative();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @param {HbarUnit=} unit
|
|
127
|
+
* @returns {string}
|
|
128
|
+
*/
|
|
129
|
+
toString(unit) {
|
|
130
|
+
if (unit != null) {
|
|
131
|
+
return `${this._valueInTinybar.dividedBy(unit._tinybar).toString()} ${unit._symbol}`;
|
|
132
|
+
}
|
|
133
|
+
if (this._valueInTinybar.isLessThan(10000) && this._valueInTinybar.isGreaterThan(-10000)) {
|
|
134
|
+
return `${this._valueInTinybar.toFixed()} ${_HbarUnit.default.Tinybar._symbol}`;
|
|
135
|
+
}
|
|
136
|
+
return `${this.to(_HbarUnit.default.Hbar).toString()} ${_HbarUnit.default.Hbar._symbol}`;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.default = Hbar;
|
package/lib/Hbar.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("./long.js").LongObject} LongObject
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Represents a quantity of hbar (ℏ), the native currency of the Hedera network.
|
|
6
|
+
* Provides utilities for handling different hbar denominations and conversions.
|
|
7
|
+
*/
|
|
8
|
+
export default class Hbar {
|
|
9
|
+
/**
|
|
10
|
+
* @param {number | Long | string | BigNumber} amount
|
|
11
|
+
* @param {HbarUnit} unit
|
|
12
|
+
* @returns {Hbar}
|
|
13
|
+
*/
|
|
14
|
+
static from(amount: number | Long | string | BigNumber, unit: HbarUnit): Hbar;
|
|
15
|
+
/**
|
|
16
|
+
* @param {number | Long | string | BigNumber} amount
|
|
17
|
+
* @returns {Hbar}
|
|
18
|
+
*/
|
|
19
|
+
static fromTinybars(amount: number | Long | string | BigNumber): Hbar;
|
|
20
|
+
/**
|
|
21
|
+
* @param {string} str
|
|
22
|
+
* @param {HbarUnit=} unit
|
|
23
|
+
* @returns {Hbar}
|
|
24
|
+
*/
|
|
25
|
+
static fromString(str: string, unit?: HbarUnit | undefined): Hbar;
|
|
26
|
+
/**
|
|
27
|
+
* @param {number | string | Long | LongObject | BigNumber} amount
|
|
28
|
+
* @param {HbarUnit=} unit
|
|
29
|
+
*/
|
|
30
|
+
constructor(amount: number | string | Long | LongObject | BigNumber, unit?: HbarUnit | undefined);
|
|
31
|
+
_valueInTinybar: BigNumber;
|
|
32
|
+
/**
|
|
33
|
+
* @param {HbarUnit} unit
|
|
34
|
+
* @returns {BigNumber}
|
|
35
|
+
*/
|
|
36
|
+
to(unit: HbarUnit): BigNumber;
|
|
37
|
+
/**
|
|
38
|
+
* @returns {BigNumber}
|
|
39
|
+
*/
|
|
40
|
+
toBigNumber(): BigNumber;
|
|
41
|
+
/**
|
|
42
|
+
* @returns {Long}
|
|
43
|
+
*/
|
|
44
|
+
toTinybars(): Long;
|
|
45
|
+
/**
|
|
46
|
+
* @returns {Hbar}
|
|
47
|
+
*/
|
|
48
|
+
negated(): Hbar;
|
|
49
|
+
/**
|
|
50
|
+
* @returns {boolean}
|
|
51
|
+
*/
|
|
52
|
+
isNegative(): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @param {HbarUnit=} unit
|
|
55
|
+
* @returns {string}
|
|
56
|
+
*/
|
|
57
|
+
toString(unit?: HbarUnit | undefined): string;
|
|
58
|
+
}
|
|
59
|
+
export type LongObject = import("./long.js").LongObject;
|
|
60
|
+
import BigNumber from "bignumber.js";
|
|
61
|
+
import HbarUnit from "./HbarUnit.js";
|
|
62
|
+
import Long from "long";
|
package/lib/Hbar.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import r from"bignumber.js";import{valueToLong as i}from"./long.js";import t from"./HbarUnit.js";import n from"long";class e{constructor(e,a=t.Hbar){if(a===t.Tinybar)this._valueInTinybar=i(e);else{let i;i=n.isLong(e)?new r(e.toString(10)):r.isBigNumber(e)||"string"==typeof e||"number"==typeof e?new r(e):new r(0),this._valueInTinybar=i.multipliedBy(a._tinybar)}if(!this._valueInTinybar.isInteger())throw new Error("Hbar in tinybars contains decimals")}static from(r,i){return new e(r,i)}static fromTinybars(r){return"string"==typeof r?this.fromString(r,t.Tinybar):new e(r,t.Tinybar)}static fromString(i,n=t.Hbar){if(/^((?:\+|-)?\d+(?:\.\d+)?)(?: (tℏ|μℏ|mℏ|ℏ|kℏ|Mℏ|Gℏ))?$/.test(i)){let[a,s]=i.split(" ");return null!=s&&(n=t.fromString(s)),new e(new r(a),n)}throw new Error("invalid argument provided")}to(r){return this._valueInTinybar.dividedBy(r._tinybar)}toBigNumber(){return this.to(t.Hbar)}toTinybars(){return n.fromValue(this._valueInTinybar.toFixed())}negated(){return e.fromTinybars(this._valueInTinybar.negated())}isNegative(){return this._valueInTinybar.isNegative()}toString(r){return null!=r?`${this._valueInTinybar.dividedBy(r._tinybar).toString()} ${r._symbol}`:this._valueInTinybar.isLessThan(1e4)&&this._valueInTinybar.isGreaterThan(-1e4)?`${this._valueInTinybar.toFixed()} ${t.Tinybar._symbol}`:`${this.to(t.Hbar).toString()} ${t.Hbar._symbol}`}}export{e as default};
|
|
2
|
+
//# sourceMappingURL=Hbar.js.map
|
package/lib/Hbar.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hbar.js","sources":["../src/Hbar.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport BigNumber from \"bignumber.js\";\nimport { valueToLong } from \"./long.js\";\nimport HbarUnit from \"./HbarUnit.js\";\n\nimport Long from \"long\";\n\n/**\n * @typedef {import(\"./long.js\").LongObject} LongObject\n */\n\n/**\n * Represents a quantity of hbar (ℏ), the native currency of the Hedera network.\n * Provides utilities for handling different hbar denominations and conversions.\n */\nexport default class Hbar {\n /**\n * @param {number | string | Long | LongObject | BigNumber} amount\n * @param {HbarUnit=} unit\n */\n constructor(amount, unit = HbarUnit.Hbar) {\n if (unit === HbarUnit.Tinybar) {\n this._valueInTinybar = valueToLong(amount);\n } else {\n /** @type {BigNumber} */\n let bigAmount;\n\n if (Long.isLong(amount)) {\n bigAmount = new BigNumber(amount.toString(10));\n } else if (\n BigNumber.isBigNumber(amount) ||\n typeof amount === \"string\" ||\n typeof amount === \"number\"\n ) {\n bigAmount = new BigNumber(amount);\n } else {\n bigAmount = new BigNumber(0);\n }\n\n /**\n * @type {BigNumber}\n */\n this._valueInTinybar = bigAmount.multipliedBy(unit._tinybar);\n }\n if (!this._valueInTinybar.isInteger()) {\n throw new Error(\"Hbar in tinybars contains decimals\");\n }\n }\n\n /**\n * @param {number | Long | string | BigNumber} amount\n * @param {HbarUnit} unit\n * @returns {Hbar}\n */\n static from(amount, unit) {\n return new Hbar(amount, unit);\n }\n\n /**\n * @param {number | Long | string | BigNumber} amount\n * @returns {Hbar}\n */\n static fromTinybars(amount) {\n if (typeof amount === \"string\") {\n return this.fromString(amount, HbarUnit.Tinybar);\n }\n return new Hbar(amount, HbarUnit.Tinybar);\n }\n\n /**\n * @param {string} str\n * @param {HbarUnit=} unit\n * @returns {Hbar}\n */\n static fromString(str, unit = HbarUnit.Hbar) {\n const pattern = /^((?:\\+|-)?\\d+(?:\\.\\d+)?)(?: (tℏ|μℏ|mℏ|ℏ|kℏ|Mℏ|Gℏ))?$/;\n if (pattern.test(str)) {\n let [amount, symbol] = str.split(\" \");\n if (symbol != null) {\n unit = HbarUnit.fromString(symbol);\n }\n return new Hbar(new BigNumber(amount), unit);\n } else {\n throw new Error(\"invalid argument provided\");\n }\n }\n\n /**\n * @param {HbarUnit} unit\n * @returns {BigNumber}\n */\n to(unit) {\n return this._valueInTinybar.dividedBy(unit._tinybar);\n }\n\n /**\n * @returns {BigNumber}\n */\n toBigNumber() {\n return this.to(HbarUnit.Hbar);\n }\n\n /**\n * @returns {Long}\n */\n toTinybars() {\n return Long.fromValue(this._valueInTinybar.toFixed());\n }\n\n /**\n * @returns {Hbar}\n */\n negated() {\n return Hbar.fromTinybars(this._valueInTinybar.negated());\n }\n\n /**\n * @returns {boolean}\n */\n isNegative() {\n return this._valueInTinybar.isNegative();\n }\n\n /**\n * @param {HbarUnit=} unit\n * @returns {string}\n */\n toString(unit) {\n if (unit != null) {\n return `${this._valueInTinybar\n .dividedBy(unit._tinybar)\n .toString()} ${unit._symbol}`;\n }\n\n if (\n this._valueInTinybar.isLessThan(10000) &&\n this._valueInTinybar.isGreaterThan(-10000)\n ) {\n return `${this._valueInTinybar.toFixed()} ${\n HbarUnit.Tinybar._symbol\n }`;\n }\n\n return `${this.to(HbarUnit.Hbar).toString()} ${HbarUnit.Hbar._symbol}`;\n }\n}\n"],"names":["Hbar","constructor","amount","unit","HbarUnit","Tinybar","this","_valueInTinybar","valueToLong","bigAmount","Long","isLong","BigNumber","toString","isBigNumber","multipliedBy","_tinybar","isInteger","Error","from","fromTinybars","fromString","str","test","symbol","split","to","dividedBy","toBigNumber","toTinybars","fromValue","toFixed","negated","isNegative","_symbol","isLessThan","isGreaterThan"],"mappings":"qHAgBe,MAAMA,EAKjB,WAAAC,CAAYC,EAAQC,EAAOC,EAASJ,MAChC,GAAIG,IAASC,EAASC,QAClBC,KAAKC,gBAAkBC,EAAYN,OAChC,CAEH,IAAIO,EAGAA,EADAC,EAAKC,OAAOT,GACA,IAAIU,EAAUV,EAAOW,SAAS,KAE1CD,EAAUE,YAAYZ,IACJ,iBAAXA,GACW,iBAAXA,EAEK,IAAIU,EAAUV,GAEd,IAAIU,EAAU,GAM9BN,KAAKC,gBAAkBE,EAAUM,aAAaZ,EAAKa,SAC/D,CACQ,IAAKV,KAAKC,gBAAgBU,YACtB,MAAM,IAAIC,MAAM,qCAE5B,CAOI,WAAOC,CAAKjB,EAAQC,GAChB,OAAO,IAAIH,EAAKE,EAAQC,EAChC,CAMI,mBAAOiB,CAAalB,GAChB,MAAsB,iBAAXA,EACAI,KAAKe,WAAWnB,EAAQE,EAASC,SAErC,IAAIL,EAAKE,EAAQE,EAASC,QACzC,CAOI,iBAAOgB,CAAWC,EAAKnB,EAAOC,EAASJ,MAEnC,GADgB,wDACJuB,KAAKD,GAAM,CACnB,IAAKpB,EAAQsB,GAAUF,EAAIG,MAAM,KAIjC,OAHc,MAAVD,IACArB,EAAOC,EAASiB,WAAWG,IAExB,IAAIxB,EAAK,IAAIY,EAAUV,GAASC,EACnD,CACY,MAAM,IAAIe,MAAM,4BAE5B,CAMI,EAAAQ,CAAGvB,GACC,OAAOG,KAAKC,gBAAgBoB,UAAUxB,EAAKa,SACnD,CAKI,WAAAY,GACI,OAAOtB,KAAKoB,GAAGtB,EAASJ,KAChC,CAKI,UAAA6B,GACI,OAAOnB,EAAKoB,UAAUxB,KAAKC,gBAAgBwB,UACnD,CAKI,OAAAC,GACI,OAAOhC,EAAKoB,aAAad,KAAKC,gBAAgByB,UACtD,CAKI,UAAAC,GACI,OAAO3B,KAAKC,gBAAgB0B,YACpC,CAMI,QAAApB,CAASV,GACL,OAAY,MAARA,EACO,GAAGG,KAAKC,gBACVoB,UAAUxB,EAAKa,UACfH,cAAcV,EAAK+B,UAIxB5B,KAAKC,gBAAgB4B,WAAW,MAChC7B,KAAKC,gBAAgB6B,eAAoB,KAElC,GAAG9B,KAAKC,gBAAgBwB,aAC3B3B,EAASC,QAAQ6B,UAIlB,GAAG5B,KAAKoB,GAAGtB,EAASJ,MAAMa,cAAcT,EAASJ,KAAKkC,SACrE"}
|
package/lib/HbarUnit.cjs
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _bignumber = _interopRequireDefault(require("bignumber.js"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents a unit of HBAR currency measurement in the Hedera network.
|
|
13
|
+
* Defines the various denominations of HBAR (tinybar, microbar, millibar, hbar, kilobar, megabar, gigabar)
|
|
14
|
+
* and provides utilities for converting between these units. Each unit has a name, symbol, and conversion
|
|
15
|
+
* rate to tinybar (the smallest unit of HBAR).
|
|
16
|
+
*/
|
|
17
|
+
class HbarUnit {
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @param {string} name
|
|
21
|
+
* @param {string} symbol
|
|
22
|
+
* @param {BigNumber} tinybar
|
|
23
|
+
*/
|
|
24
|
+
constructor(name, symbol, tinybar) {
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
this._name = name;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
this._symbol = symbol;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @readonly
|
|
40
|
+
*/
|
|
41
|
+
this._tinybar = tinybar;
|
|
42
|
+
Object.freeze(this);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @param {string} unit
|
|
47
|
+
* @returns {HbarUnit}
|
|
48
|
+
*/
|
|
49
|
+
static fromString(unit) {
|
|
50
|
+
switch (unit) {
|
|
51
|
+
case HbarUnit.Hbar._symbol:
|
|
52
|
+
return HbarUnit.Hbar;
|
|
53
|
+
case HbarUnit.Tinybar._symbol:
|
|
54
|
+
return HbarUnit.Tinybar;
|
|
55
|
+
case HbarUnit.Microbar._symbol:
|
|
56
|
+
return HbarUnit.Microbar;
|
|
57
|
+
case HbarUnit.Millibar._symbol:
|
|
58
|
+
return HbarUnit.Millibar;
|
|
59
|
+
case HbarUnit.Kilobar._symbol:
|
|
60
|
+
return HbarUnit.Kilobar;
|
|
61
|
+
case HbarUnit.Megabar._symbol:
|
|
62
|
+
return HbarUnit.Megabar;
|
|
63
|
+
case HbarUnit.Gigabar._symbol:
|
|
64
|
+
return HbarUnit.Gigabar;
|
|
65
|
+
default:
|
|
66
|
+
throw new Error("Unknown unit.");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.default = HbarUnit;
|
|
71
|
+
HbarUnit.Tinybar = new HbarUnit("tinybar", "tℏ", new _bignumber.default(1));
|
|
72
|
+
HbarUnit.Microbar = new HbarUnit("microbar", "μℏ", new _bignumber.default(100));
|
|
73
|
+
HbarUnit.Millibar = new HbarUnit("millibar", "mℏ", new _bignumber.default(100000));
|
|
74
|
+
HbarUnit.Hbar = new HbarUnit("hbar", "ℏ", new _bignumber.default("100000000"));
|
|
75
|
+
HbarUnit.Kilobar = new HbarUnit("kilobar", "kℏ", new _bignumber.default(1000).multipliedBy(new _bignumber.default("100000000")));
|
|
76
|
+
HbarUnit.Megabar = new HbarUnit("megabar", "Mℏ", new _bignumber.default(1000000).multipliedBy(new _bignumber.default("100000000")));
|
|
77
|
+
HbarUnit.Gigabar = new HbarUnit("gigabar", "Gℏ", new _bignumber.default("1000000000").multipliedBy(new _bignumber.default("100000000")));
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a unit of HBAR currency measurement in the Hedera network.
|
|
3
|
+
* Defines the various denominations of HBAR (tinybar, microbar, millibar, hbar, kilobar, megabar, gigabar)
|
|
4
|
+
* and provides utilities for converting between these units. Each unit has a name, symbol, and conversion
|
|
5
|
+
* rate to tinybar (the smallest unit of HBAR).
|
|
6
|
+
*/
|
|
7
|
+
declare class HbarUnit {
|
|
8
|
+
/**
|
|
9
|
+
* @param {string} unit
|
|
10
|
+
* @returns {HbarUnit}
|
|
11
|
+
*/
|
|
12
|
+
static fromString(unit: string): HbarUnit;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* @param {string} name
|
|
16
|
+
* @param {string} symbol
|
|
17
|
+
* @param {BigNumber} tinybar
|
|
18
|
+
*/
|
|
19
|
+
constructor(name: string, symbol: string, tinybar: BigNumber);
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
readonly _name: string;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
readonly _symbol: string;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @readonly
|
|
33
|
+
*/
|
|
34
|
+
readonly _tinybar: BigNumber;
|
|
35
|
+
}
|
|
36
|
+
declare namespace HbarUnit {
|
|
37
|
+
let Tinybar: HbarUnit;
|
|
38
|
+
let Microbar: HbarUnit;
|
|
39
|
+
let Millibar: HbarUnit;
|
|
40
|
+
let Hbar: HbarUnit;
|
|
41
|
+
let Kilobar: HbarUnit;
|
|
42
|
+
let Megabar: HbarUnit;
|
|
43
|
+
let Gigabar: HbarUnit;
|
|
44
|
+
}
|
|
45
|
+
export default HbarUnit;
|
|
46
|
+
import BigNumber from "bignumber.js";
|
package/lib/HbarUnit.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import r from"bignumber.js";class e{constructor(r,e,a){this._name=r,this._symbol=e,this._tinybar=a,Object.freeze(this)}static fromString(r){switch(r){case e.Hbar._symbol:return e.Hbar;case e.Tinybar._symbol:return e.Tinybar;case e.Microbar._symbol:return e.Microbar;case e.Millibar._symbol:return e.Millibar;case e.Kilobar._symbol:return e.Kilobar;case e.Megabar._symbol:return e.Megabar;case e.Gigabar._symbol:return e.Gigabar;default:throw new Error("Unknown unit.")}}}e.Tinybar=new e("tinybar","tℏ",new r(1)),e.Microbar=new e("microbar","μℏ",new r(100)),e.Millibar=new e("millibar","mℏ",new r(1e5)),e.Hbar=new e("hbar","ℏ",new r("100000000")),e.Kilobar=new e("kilobar","kℏ",new r(1e3).multipliedBy(new r("100000000"))),e.Megabar=new e("megabar","Mℏ",new r(1e6).multipliedBy(new r("100000000"))),e.Gigabar=new e("gigabar","Gℏ",new r("1000000000").multipliedBy(new r("100000000")));export{e as default};
|
|
2
|
+
//# sourceMappingURL=HbarUnit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HbarUnit.js","sources":["../src/HbarUnit.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport BigNumber from \"bignumber.js\";\n\n/**\n * Represents a unit of HBAR currency measurement in the Hedera network.\n * Defines the various denominations of HBAR (tinybar, microbar, millibar, hbar, kilobar, megabar, gigabar)\n * and provides utilities for converting between these units. Each unit has a name, symbol, and conversion\n * rate to tinybar (the smallest unit of HBAR).\n */\nexport default class HbarUnit {\n /**\n * @internal\n * @param {string} name\n * @param {string} symbol\n * @param {BigNumber} tinybar\n */\n constructor(name, symbol, tinybar) {\n /**\n * @internal\n * @readonly\n */\n this._name = name;\n\n /**\n * @internal\n * @readonly\n */\n this._symbol = symbol;\n\n /**\n * @internal\n * @readonly\n */\n this._tinybar = tinybar;\n\n Object.freeze(this);\n }\n\n /**\n * @param {string} unit\n * @returns {HbarUnit}\n */\n static fromString(unit) {\n switch (unit) {\n case HbarUnit.Hbar._symbol:\n return HbarUnit.Hbar;\n case HbarUnit.Tinybar._symbol:\n return HbarUnit.Tinybar;\n case HbarUnit.Microbar._symbol:\n return HbarUnit.Microbar;\n case HbarUnit.Millibar._symbol:\n return HbarUnit.Millibar;\n case HbarUnit.Kilobar._symbol:\n return HbarUnit.Kilobar;\n case HbarUnit.Megabar._symbol:\n return HbarUnit.Megabar;\n case HbarUnit.Gigabar._symbol:\n return HbarUnit.Gigabar;\n default:\n throw new Error(\"Unknown unit.\");\n }\n }\n}\n\nHbarUnit.Tinybar = new HbarUnit(\"tinybar\", \"tℏ\", new BigNumber(1));\n\nHbarUnit.Microbar = new HbarUnit(\"microbar\", \"μℏ\", new BigNumber(100));\n\nHbarUnit.Millibar = new HbarUnit(\"millibar\", \"mℏ\", new BigNumber(100000));\n\nHbarUnit.Hbar = new HbarUnit(\"hbar\", \"ℏ\", new BigNumber(\"100000000\"));\n\nHbarUnit.Kilobar = new HbarUnit(\n \"kilobar\",\n \"kℏ\",\n new BigNumber(1000).multipliedBy(new BigNumber(\"100000000\")),\n);\n\nHbarUnit.Megabar = new HbarUnit(\n \"megabar\",\n \"Mℏ\",\n new BigNumber(1000000).multipliedBy(new BigNumber(\"100000000\")),\n);\n\nHbarUnit.Gigabar = new HbarUnit(\n \"gigabar\",\n \"Gℏ\",\n new BigNumber(\"1000000000\").multipliedBy(new BigNumber(\"100000000\")),\n);\n"],"names":["HbarUnit","constructor","name","symbol","tinybar","this","_name","_symbol","_tinybar","Object","freeze","fromString","unit","Hbar","Tinybar","Microbar","Millibar","Kilobar","Megabar","Gigabar","Error","BigNumber","multipliedBy"],"mappings":"4BAUe,MAAMA,EAOjB,WAAAC,CAAYC,EAAMC,EAAQC,GAKtBC,KAAKC,MAAQJ,EAMbG,KAAKE,QAAUJ,EAMfE,KAAKG,SAAWJ,EAEhBK,OAAOC,OAAOL,KACtB,CAMI,iBAAOM,CAAWC,GACd,OAAQA,GACJ,KAAKZ,EAASa,KAAKN,QACf,OAAOP,EAASa,KACpB,KAAKb,EAASc,QAAQP,QAClB,OAAOP,EAASc,QACpB,KAAKd,EAASe,SAASR,QACnB,OAAOP,EAASe,SACpB,KAAKf,EAASgB,SAAST,QACnB,OAAOP,EAASgB,SACpB,KAAKhB,EAASiB,QAAQV,QAClB,OAAOP,EAASiB,QACpB,KAAKjB,EAASkB,QAAQX,QAClB,OAAOP,EAASkB,QACpB,KAAKlB,EAASmB,QAAQZ,QAClB,OAAOP,EAASmB,QACpB,QACI,MAAM,IAAIC,MAAM,iBAEhC,EAGApB,EAASc,QAAU,IAAId,EAAS,UAAW,KAAM,IAAIqB,EAAU,IAE/DrB,EAASe,SAAW,IAAIf,EAAS,WAAY,KAAM,IAAIqB,EAAU,MAEjErB,EAASgB,SAAW,IAAIhB,EAAS,WAAY,KAAM,IAAIqB,EAAU,MAEjErB,EAASa,KAAO,IAAIb,EAAS,OAAQ,IAAK,IAAIqB,EAAU,cAExDrB,EAASiB,QAAU,IAAIjB,EACnB,UACA,KACA,IAAIqB,EAAU,KAAMC,aAAa,IAAID,EAAU,eAGnDrB,EAASkB,QAAU,IAAIlB,EACnB,UACA,KACA,IAAIqB,EAAU,KAASC,aAAa,IAAID,EAAU,eAGtDrB,EAASmB,QAAU,IAAInB,EACnB,UACA,KACA,IAAIqB,EAAU,cAAcC,aAAa,IAAID,EAAU"}
|