@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,356 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _AccountId = _interopRequireDefault(require("./AccountId.cjs"));
|
|
8
|
+
var _StakingInfo = _interopRequireDefault(require("../StakingInfo.cjs"));
|
|
9
|
+
var _LiveHash = _interopRequireDefault(require("./LiveHash.cjs"));
|
|
10
|
+
var _Hbar = _interopRequireDefault(require("../Hbar.cjs"));
|
|
11
|
+
var _Timestamp = _interopRequireDefault(require("../Timestamp.cjs"));
|
|
12
|
+
var _long = _interopRequireDefault(require("long"));
|
|
13
|
+
var _TokenRelationshipMap = _interopRequireDefault(require("./TokenRelationshipMap.cjs"));
|
|
14
|
+
var HieroProto = _interopRequireWildcard(require("@hashgraph/proto"));
|
|
15
|
+
var _Duration = _interopRequireDefault(require("../Duration.cjs"));
|
|
16
|
+
var _Key = _interopRequireDefault(require("../Key.cjs"));
|
|
17
|
+
var _PublicKey = _interopRequireDefault(require("../PublicKey.cjs"));
|
|
18
|
+
var _LedgerId = _interopRequireDefault(require("../LedgerId.cjs"));
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
21
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @typedef {import("./HbarAllowance.js").default} HbarAllowance
|
|
26
|
+
* @typedef {import("./TokenAllowance.js").default} TokenAllowance
|
|
27
|
+
* @typedef {import("./TokenNftAllowance.js").default} TokenNftAllowance
|
|
28
|
+
* @typedef {import("../StakingInfo.js").StakingInfoJson} StakingInfoJson
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @typedef {object} AccountInfoJson
|
|
33
|
+
* @property {string} accountId
|
|
34
|
+
* @property {?string} contractAccountId
|
|
35
|
+
* @property {boolean} isDeleted
|
|
36
|
+
* @property {?string} proxyAccountId
|
|
37
|
+
* @property {string} proxyReceived
|
|
38
|
+
* @property {?string} key
|
|
39
|
+
* @property {string} balance
|
|
40
|
+
* @property {string} sendRecordThreshold
|
|
41
|
+
* @property {string} receiveRecordThreshold
|
|
42
|
+
* @property {boolean} isReceiverSignatureRequired
|
|
43
|
+
* @property {string} expirationTime
|
|
44
|
+
* @property {string} autoRenewPeriod
|
|
45
|
+
* @property {string} accountMemo
|
|
46
|
+
* @property {string} ownedNfts
|
|
47
|
+
* @property {string} maxAutomaticTokenAssociations
|
|
48
|
+
* @property {?string} aliasKey
|
|
49
|
+
* @property {?string} ledgerId
|
|
50
|
+
* @property {?string} ethereumNonce
|
|
51
|
+
* @property {?StakingInfoJson} stakingInfo
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Current information about an account, including the balance.
|
|
56
|
+
*/
|
|
57
|
+
class AccountInfo {
|
|
58
|
+
/**
|
|
59
|
+
* @private
|
|
60
|
+
* @param {object} props
|
|
61
|
+
* @param {AccountId} props.accountId
|
|
62
|
+
* @param {?string} props.contractAccountId
|
|
63
|
+
* @param {boolean} props.isDeleted
|
|
64
|
+
* @param {?AccountId} props.proxyAccountId
|
|
65
|
+
* @param {Hbar} props.proxyReceived
|
|
66
|
+
* @param {Key} props.key
|
|
67
|
+
* @param {Hbar} props.balance
|
|
68
|
+
* @param {Hbar} props.sendRecordThreshold
|
|
69
|
+
* @param {Hbar} props.receiveRecordThreshold
|
|
70
|
+
* @param {boolean} props.isReceiverSignatureRequired
|
|
71
|
+
* @param {Timestamp} props.expirationTime
|
|
72
|
+
* @param {Duration} props.autoRenewPeriod
|
|
73
|
+
* @param {LiveHash[]} props.liveHashes
|
|
74
|
+
* @param {TokenRelationshipMap} props.tokenRelationships
|
|
75
|
+
* @param {string} props.accountMemo
|
|
76
|
+
* @param {Long} props.ownedNfts
|
|
77
|
+
* @param {Long} props.maxAutomaticTokenAssociations
|
|
78
|
+
* @param {PublicKey | null} props.aliasKey
|
|
79
|
+
* @param {LedgerId | null} props.ledgerId
|
|
80
|
+
* @param {HbarAllowance[]} props.hbarAllowances
|
|
81
|
+
* @param {TokenAllowance[]} props.tokenAllowances
|
|
82
|
+
* @param {TokenNftAllowance[]} props.nftAllowances
|
|
83
|
+
* @param {?Long} props.ethereumNonce
|
|
84
|
+
* @param {?StakingInfo} props.stakingInfo
|
|
85
|
+
*/
|
|
86
|
+
constructor(props) {
|
|
87
|
+
/**
|
|
88
|
+
* The account ID for which this information applies.
|
|
89
|
+
*
|
|
90
|
+
* @readonly
|
|
91
|
+
*/
|
|
92
|
+
this.accountId = props.accountId;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
|
|
96
|
+
* account owned by the contract instance, in the format used by Solidity.
|
|
97
|
+
*
|
|
98
|
+
* @readonly
|
|
99
|
+
*/
|
|
100
|
+
this.contractAccountId = props.contractAccountId;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* If true, then this account has been deleted, it will disappear when it expires, and
|
|
104
|
+
* all transactions for it will fail except the transaction to extend its expiration date.
|
|
105
|
+
*
|
|
106
|
+
* @readonly
|
|
107
|
+
*/
|
|
108
|
+
this.isDeleted = props.isDeleted;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated
|
|
112
|
+
*
|
|
113
|
+
* The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
|
|
114
|
+
* or is an invalid account, or is an account that isn't a node, then this account is
|
|
115
|
+
* automatically proxy staked to a node chosen by the network, but without earning payments.
|
|
116
|
+
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
|
|
117
|
+
* running a node, then it will behave as if proxyAccountID was null.
|
|
118
|
+
* @readonly
|
|
119
|
+
*/
|
|
120
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
121
|
+
this.proxyAccountId = props.proxyAccountId;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated
|
|
125
|
+
* The total number of tinybars proxy staked to this account.
|
|
126
|
+
*
|
|
127
|
+
* @readonly
|
|
128
|
+
*/
|
|
129
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
130
|
+
this.proxyReceived = props.proxyReceived;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The key for the account, which must sign in order to transfer out, or to modify the account
|
|
134
|
+
* in any way other than extending its expiration date.
|
|
135
|
+
*
|
|
136
|
+
* @readonly
|
|
137
|
+
*/
|
|
138
|
+
this.key = props.key;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The current balance of account.
|
|
142
|
+
*
|
|
143
|
+
* @readonly
|
|
144
|
+
*/
|
|
145
|
+
this.balance = props.balance;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The threshold amount (in tinybars) for which an account record is created (and this account
|
|
149
|
+
* charged for them) for any send/withdraw transaction.
|
|
150
|
+
*
|
|
151
|
+
* @readonly
|
|
152
|
+
*/
|
|
153
|
+
this.sendRecordThreshold = props.sendRecordThreshold;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The threshold amount (in tinybars) for which an account record is created
|
|
157
|
+
* (and this account charged for them) for any transaction above this amount.
|
|
158
|
+
*
|
|
159
|
+
* @readonly
|
|
160
|
+
*/
|
|
161
|
+
this.receiveRecordThreshold = props.receiveRecordThreshold;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* If true, no transaction can transfer to this account unless signed by this account's key.
|
|
165
|
+
*
|
|
166
|
+
* @readonly
|
|
167
|
+
*/
|
|
168
|
+
this.isReceiverSignatureRequired = props.isReceiverSignatureRequired;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The TimeStamp time at which this account is set to expire.
|
|
172
|
+
*
|
|
173
|
+
* @readonly
|
|
174
|
+
*/
|
|
175
|
+
this.expirationTime = props.expirationTime;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The duration for expiration time will extend every this many seconds. If there are
|
|
179
|
+
* insufficient funds, then it extends as long as possible. If it is empty when it
|
|
180
|
+
* expires, then it is deleted.
|
|
181
|
+
*
|
|
182
|
+
* @readonly
|
|
183
|
+
*/
|
|
184
|
+
this.autoRenewPeriod = props.autoRenewPeriod;
|
|
185
|
+
|
|
186
|
+
/** @readonly */
|
|
187
|
+
this.liveHashes = props.liveHashes;
|
|
188
|
+
|
|
189
|
+
/** @readonly */
|
|
190
|
+
this.tokenRelationships = props.tokenRelationships;
|
|
191
|
+
|
|
192
|
+
/** @readonly */
|
|
193
|
+
this.accountMemo = props.accountMemo;
|
|
194
|
+
|
|
195
|
+
/** @readonly */
|
|
196
|
+
this.ownedNfts = props.ownedNfts;
|
|
197
|
+
|
|
198
|
+
/** @readonly */
|
|
199
|
+
this.maxAutomaticTokenAssociations = props.maxAutomaticTokenAssociations;
|
|
200
|
+
this.aliasKey = props.aliasKey;
|
|
201
|
+
this.ledgerId = props.ledgerId;
|
|
202
|
+
/*
|
|
203
|
+
* @deprecated - no longer supported
|
|
204
|
+
*/
|
|
205
|
+
this.hbarAllowances = props.hbarAllowances;
|
|
206
|
+
/*
|
|
207
|
+
* @deprecated - no longer supported
|
|
208
|
+
*/
|
|
209
|
+
this.tokenAllowances = props.tokenAllowances;
|
|
210
|
+
/*
|
|
211
|
+
* @deprecated - no longer supported
|
|
212
|
+
*/
|
|
213
|
+
this.nftAllowances = props.nftAllowances;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The ethereum transaction nonce associated with this account.
|
|
217
|
+
*/
|
|
218
|
+
this.ethereumNonce = props.ethereumNonce;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Staking metadata for this account.
|
|
222
|
+
*/
|
|
223
|
+
this.stakingInfo = props.stakingInfo;
|
|
224
|
+
Object.freeze(this);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @internal
|
|
229
|
+
* @param {HieroProto.proto.CryptoGetInfoResponse.IAccountInfo} info
|
|
230
|
+
* @returns {AccountInfo}
|
|
231
|
+
*/
|
|
232
|
+
static _fromProtobuf(info) {
|
|
233
|
+
let aliasKey = info.alias != null && info.alias.length > 0 ? _Key.default._fromProtobufKey(HieroProto.proto.Key.decode(info.alias)) : null;
|
|
234
|
+
if (!(aliasKey instanceof _PublicKey.default)) {
|
|
235
|
+
aliasKey = null;
|
|
236
|
+
}
|
|
237
|
+
const accountId = _AccountId.default._fromProtobuf(/** @type {HieroProto.proto.IAccountID} */info.accountID);
|
|
238
|
+
return new AccountInfo({
|
|
239
|
+
accountId,
|
|
240
|
+
contractAccountId: info.contractAccountID != null ? info.contractAccountID : null,
|
|
241
|
+
isDeleted: info.deleted != null ? info.deleted : false,
|
|
242
|
+
key: _Key.default._fromProtobufKey(/** @type {HieroProto.proto.IKey} */info.key),
|
|
243
|
+
balance: _Hbar.default.fromTinybars(info.balance != null ? info.balance : 0),
|
|
244
|
+
sendRecordThreshold: _Hbar.default.fromTinybars(info.generateSendRecordThreshold != null ? info.generateSendRecordThreshold : 0),
|
|
245
|
+
receiveRecordThreshold: _Hbar.default.fromTinybars(info.generateReceiveRecordThreshold != null ? info.generateReceiveRecordThreshold : 0),
|
|
246
|
+
isReceiverSignatureRequired: info.receiverSigRequired != null ? info.receiverSigRequired : false,
|
|
247
|
+
expirationTime: _Timestamp.default._fromProtobuf(/** @type {HieroProto.proto.ITimestamp} */
|
|
248
|
+
info.expirationTime),
|
|
249
|
+
autoRenewPeriod: info.autoRenewPeriod != null ? new _Duration.default(/** @type {Long} */info.autoRenewPeriod.seconds) : new _Duration.default(0),
|
|
250
|
+
proxyAccountId: info.proxyAccountID != null && _long.default.fromValue(/** @type {Long | number} */info.proxyAccountID.shardNum).toInt() !== 0 && _long.default.fromValue(/** @type {Long | number} */info.proxyAccountID.realmNum).toInt() !== 0 && _long.default.fromValue(/** @type {Long | number} */
|
|
251
|
+
info.proxyAccountID.accountNum).toInt() !== 0 ? _AccountId.default._fromProtobuf(info.proxyAccountID) : null,
|
|
252
|
+
proxyReceived: _Hbar.default.fromTinybars(info.proxyReceived != null ? info.proxyReceived : 0),
|
|
253
|
+
liveHashes: (info.liveHashes != null ? info.liveHashes : []).map(hash => _LiveHash.default._fromProtobuf(hash)),
|
|
254
|
+
tokenRelationships: _TokenRelationshipMap.default._fromProtobuf(info.tokenRelationships != null ? info.tokenRelationships : []),
|
|
255
|
+
accountMemo: info.memo != null ? info.memo : "",
|
|
256
|
+
ownedNfts: info.ownedNfts ? info.ownedNfts : _long.default.ZERO,
|
|
257
|
+
maxAutomaticTokenAssociations: info.maxAutomaticTokenAssociations ? _long.default.fromNumber(info.maxAutomaticTokenAssociations) : _long.default.ZERO,
|
|
258
|
+
aliasKey,
|
|
259
|
+
ledgerId: info.ledgerId != null ? _LedgerId.default.fromBytes(info.ledgerId) : null,
|
|
260
|
+
hbarAllowances: [],
|
|
261
|
+
tokenAllowances: [],
|
|
262
|
+
nftAllowances: [],
|
|
263
|
+
ethereumNonce: info.ethereumNonce != null ? info.ethereumNonce : null,
|
|
264
|
+
stakingInfo: info.stakingInfo != null ? _StakingInfo.default._fromProtobuf(info.stakingInfo) : null
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @returns {HieroProto.proto.CryptoGetInfoResponse.IAccountInfo}
|
|
270
|
+
*/
|
|
271
|
+
_toProtobuf() {
|
|
272
|
+
return {
|
|
273
|
+
accountID: this.accountId._toProtobuf(),
|
|
274
|
+
contractAccountID: this.contractAccountId,
|
|
275
|
+
deleted: this.isDeleted,
|
|
276
|
+
proxyAccountID:
|
|
277
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
278
|
+
this.proxyAccountId != null ?
|
|
279
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
280
|
+
this.proxyAccountId._toProtobuf() : null,
|
|
281
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
282
|
+
proxyReceived: this.proxyReceived.toTinybars(),
|
|
283
|
+
key: this.key._toProtobufKey(),
|
|
284
|
+
balance: this.balance.toTinybars(),
|
|
285
|
+
generateSendRecordThreshold: this.sendRecordThreshold.toTinybars(),
|
|
286
|
+
generateReceiveRecordThreshold: this.receiveRecordThreshold.toTinybars(),
|
|
287
|
+
receiverSigRequired: this.isReceiverSignatureRequired,
|
|
288
|
+
expirationTime: this.expirationTime._toProtobuf(),
|
|
289
|
+
autoRenewPeriod: this.autoRenewPeriod._toProtobuf(),
|
|
290
|
+
liveHashes: this.liveHashes.map(hash => hash._toProtobuf()),
|
|
291
|
+
tokenRelationships: this.tokenRelationships != null ? this.tokenRelationships._toProtobuf() : null,
|
|
292
|
+
memo: this.accountMemo,
|
|
293
|
+
ownedNfts: this.ownedNfts,
|
|
294
|
+
maxAutomaticTokenAssociations: this.maxAutomaticTokenAssociations.toInt(),
|
|
295
|
+
alias: this.aliasKey != null ? HieroProto.proto.Key.encode(this.aliasKey._toProtobufKey()).finish() : null,
|
|
296
|
+
ledgerId: this.ledgerId != null ? this.ledgerId.toBytes() : null,
|
|
297
|
+
ethereumNonce: this.ethereumNonce,
|
|
298
|
+
stakingInfo: this.stakingInfo != null ? this.stakingInfo._toProtobuf() : null
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @param {Uint8Array} bytes
|
|
304
|
+
* @returns {AccountInfo}
|
|
305
|
+
*/
|
|
306
|
+
static fromBytes(bytes) {
|
|
307
|
+
return AccountInfo._fromProtobuf(HieroProto.proto.CryptoGetInfoResponse.AccountInfo.decode(bytes));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @returns {Uint8Array}
|
|
312
|
+
*/
|
|
313
|
+
toBytes() {
|
|
314
|
+
return HieroProto.proto.CryptoGetInfoResponse.AccountInfo.encode(this._toProtobuf()).finish();
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @returns {string}
|
|
319
|
+
*/
|
|
320
|
+
toString() {
|
|
321
|
+
return JSON.stringify(this.toJSON());
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @returns {AccountInfoJson}
|
|
326
|
+
*/
|
|
327
|
+
toJSON() {
|
|
328
|
+
return {
|
|
329
|
+
balance: this.balance.toString(),
|
|
330
|
+
accountId: this.accountId.toString(),
|
|
331
|
+
contractAccountId: this.contractAccountId,
|
|
332
|
+
isDeleted: this.isDeleted,
|
|
333
|
+
proxyAccountId:
|
|
334
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
335
|
+
this.proxyAccountId != null ?
|
|
336
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
337
|
+
this.proxyAccountId.toString() : null,
|
|
338
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
339
|
+
proxyReceived: this.proxyReceived.toString(),
|
|
340
|
+
key: this.key != null ? this.key.toString() : null,
|
|
341
|
+
sendRecordThreshold: this.sendRecordThreshold.toString(),
|
|
342
|
+
receiveRecordThreshold: this.receiveRecordThreshold.toString(),
|
|
343
|
+
isReceiverSignatureRequired: this.isReceiverSignatureRequired,
|
|
344
|
+
expirationTime: this.expirationTime.toString(),
|
|
345
|
+
autoRenewPeriod: this.autoRenewPeriod.toString(),
|
|
346
|
+
accountMemo: this.accountMemo,
|
|
347
|
+
ownedNfts: this.ownedNfts.toString(),
|
|
348
|
+
maxAutomaticTokenAssociations: this.maxAutomaticTokenAssociations.toString(),
|
|
349
|
+
aliasKey: this.aliasKey != null ? this.aliasKey.toString() : null,
|
|
350
|
+
ledgerId: this.ledgerId != null ? this.ledgerId.toString() : null,
|
|
351
|
+
ethereumNonce: this.ethereumNonce != null ? this.ethereumNonce.toString() : null,
|
|
352
|
+
stakingInfo: this.stakingInfo != null ? this.stakingInfo.toJSON() : null
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
exports.default = AccountInfo;
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import("./HbarAllowance.js").default} HbarAllowance
|
|
3
|
+
* @typedef {import("./TokenAllowance.js").default} TokenAllowance
|
|
4
|
+
* @typedef {import("./TokenNftAllowance.js").default} TokenNftAllowance
|
|
5
|
+
* @typedef {import("../StakingInfo.js").StakingInfoJson} StakingInfoJson
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {object} AccountInfoJson
|
|
9
|
+
* @property {string} accountId
|
|
10
|
+
* @property {?string} contractAccountId
|
|
11
|
+
* @property {boolean} isDeleted
|
|
12
|
+
* @property {?string} proxyAccountId
|
|
13
|
+
* @property {string} proxyReceived
|
|
14
|
+
* @property {?string} key
|
|
15
|
+
* @property {string} balance
|
|
16
|
+
* @property {string} sendRecordThreshold
|
|
17
|
+
* @property {string} receiveRecordThreshold
|
|
18
|
+
* @property {boolean} isReceiverSignatureRequired
|
|
19
|
+
* @property {string} expirationTime
|
|
20
|
+
* @property {string} autoRenewPeriod
|
|
21
|
+
* @property {string} accountMemo
|
|
22
|
+
* @property {string} ownedNfts
|
|
23
|
+
* @property {string} maxAutomaticTokenAssociations
|
|
24
|
+
* @property {?string} aliasKey
|
|
25
|
+
* @property {?string} ledgerId
|
|
26
|
+
* @property {?string} ethereumNonce
|
|
27
|
+
* @property {?StakingInfoJson} stakingInfo
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Current information about an account, including the balance.
|
|
31
|
+
*/
|
|
32
|
+
export default class AccountInfo {
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @param {HieroProto.proto.CryptoGetInfoResponse.IAccountInfo} info
|
|
36
|
+
* @returns {AccountInfo}
|
|
37
|
+
*/
|
|
38
|
+
static _fromProtobuf(info: HieroProto.proto.CryptoGetInfoResponse.IAccountInfo): AccountInfo;
|
|
39
|
+
/**
|
|
40
|
+
* @param {Uint8Array} bytes
|
|
41
|
+
* @returns {AccountInfo}
|
|
42
|
+
*/
|
|
43
|
+
static fromBytes(bytes: Uint8Array): AccountInfo;
|
|
44
|
+
/**
|
|
45
|
+
* @private
|
|
46
|
+
* @param {object} props
|
|
47
|
+
* @param {AccountId} props.accountId
|
|
48
|
+
* @param {?string} props.contractAccountId
|
|
49
|
+
* @param {boolean} props.isDeleted
|
|
50
|
+
* @param {?AccountId} props.proxyAccountId
|
|
51
|
+
* @param {Hbar} props.proxyReceived
|
|
52
|
+
* @param {Key} props.key
|
|
53
|
+
* @param {Hbar} props.balance
|
|
54
|
+
* @param {Hbar} props.sendRecordThreshold
|
|
55
|
+
* @param {Hbar} props.receiveRecordThreshold
|
|
56
|
+
* @param {boolean} props.isReceiverSignatureRequired
|
|
57
|
+
* @param {Timestamp} props.expirationTime
|
|
58
|
+
* @param {Duration} props.autoRenewPeriod
|
|
59
|
+
* @param {LiveHash[]} props.liveHashes
|
|
60
|
+
* @param {TokenRelationshipMap} props.tokenRelationships
|
|
61
|
+
* @param {string} props.accountMemo
|
|
62
|
+
* @param {Long} props.ownedNfts
|
|
63
|
+
* @param {Long} props.maxAutomaticTokenAssociations
|
|
64
|
+
* @param {PublicKey | null} props.aliasKey
|
|
65
|
+
* @param {LedgerId | null} props.ledgerId
|
|
66
|
+
* @param {HbarAllowance[]} props.hbarAllowances
|
|
67
|
+
* @param {TokenAllowance[]} props.tokenAllowances
|
|
68
|
+
* @param {TokenNftAllowance[]} props.nftAllowances
|
|
69
|
+
* @param {?Long} props.ethereumNonce
|
|
70
|
+
* @param {?StakingInfo} props.stakingInfo
|
|
71
|
+
*/
|
|
72
|
+
private constructor();
|
|
73
|
+
/**
|
|
74
|
+
* The account ID for which this information applies.
|
|
75
|
+
*
|
|
76
|
+
* @readonly
|
|
77
|
+
*/
|
|
78
|
+
readonly accountId: AccountId;
|
|
79
|
+
/**
|
|
80
|
+
* The Contract Account ID comprising of both the contract instance and the cryptocurrency
|
|
81
|
+
* account owned by the contract instance, in the format used by Solidity.
|
|
82
|
+
*
|
|
83
|
+
* @readonly
|
|
84
|
+
*/
|
|
85
|
+
readonly contractAccountId: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* If true, then this account has been deleted, it will disappear when it expires, and
|
|
88
|
+
* all transactions for it will fail except the transaction to extend its expiration date.
|
|
89
|
+
*
|
|
90
|
+
* @readonly
|
|
91
|
+
*/
|
|
92
|
+
readonly isDeleted: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated
|
|
95
|
+
*
|
|
96
|
+
* The Account ID of the account to which this is proxy staked. If proxyAccountID is null,
|
|
97
|
+
* or is an invalid account, or is an account that isn't a node, then this account is
|
|
98
|
+
* automatically proxy staked to a node chosen by the network, but without earning payments.
|
|
99
|
+
* If the proxyAccountID account refuses to accept proxy staking , or if it is not currently
|
|
100
|
+
* running a node, then it will behave as if proxyAccountID was null.
|
|
101
|
+
* @readonly
|
|
102
|
+
*/
|
|
103
|
+
readonly proxyAccountId: AccountId | null;
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated
|
|
106
|
+
* The total number of tinybars proxy staked to this account.
|
|
107
|
+
*
|
|
108
|
+
* @readonly
|
|
109
|
+
*/
|
|
110
|
+
readonly proxyReceived: Hbar;
|
|
111
|
+
/**
|
|
112
|
+
* The key for the account, which must sign in order to transfer out, or to modify the account
|
|
113
|
+
* in any way other than extending its expiration date.
|
|
114
|
+
*
|
|
115
|
+
* @readonly
|
|
116
|
+
*/
|
|
117
|
+
readonly key: Key;
|
|
118
|
+
/**
|
|
119
|
+
* The current balance of account.
|
|
120
|
+
*
|
|
121
|
+
* @readonly
|
|
122
|
+
*/
|
|
123
|
+
readonly balance: Hbar;
|
|
124
|
+
/**
|
|
125
|
+
* The threshold amount (in tinybars) for which an account record is created (and this account
|
|
126
|
+
* charged for them) for any send/withdraw transaction.
|
|
127
|
+
*
|
|
128
|
+
* @readonly
|
|
129
|
+
*/
|
|
130
|
+
readonly sendRecordThreshold: Hbar;
|
|
131
|
+
/**
|
|
132
|
+
* The threshold amount (in tinybars) for which an account record is created
|
|
133
|
+
* (and this account charged for them) for any transaction above this amount.
|
|
134
|
+
*
|
|
135
|
+
* @readonly
|
|
136
|
+
*/
|
|
137
|
+
readonly receiveRecordThreshold: Hbar;
|
|
138
|
+
/**
|
|
139
|
+
* If true, no transaction can transfer to this account unless signed by this account's key.
|
|
140
|
+
*
|
|
141
|
+
* @readonly
|
|
142
|
+
*/
|
|
143
|
+
readonly isReceiverSignatureRequired: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* The TimeStamp time at which this account is set to expire.
|
|
146
|
+
*
|
|
147
|
+
* @readonly
|
|
148
|
+
*/
|
|
149
|
+
readonly expirationTime: Timestamp;
|
|
150
|
+
/**
|
|
151
|
+
* The duration for expiration time will extend every this many seconds. If there are
|
|
152
|
+
* insufficient funds, then it extends as long as possible. If it is empty when it
|
|
153
|
+
* expires, then it is deleted.
|
|
154
|
+
*
|
|
155
|
+
* @readonly
|
|
156
|
+
*/
|
|
157
|
+
readonly autoRenewPeriod: Duration;
|
|
158
|
+
/** @readonly */
|
|
159
|
+
readonly liveHashes: LiveHash[];
|
|
160
|
+
/** @readonly */
|
|
161
|
+
readonly tokenRelationships: TokenRelationshipMap;
|
|
162
|
+
/** @readonly */
|
|
163
|
+
readonly accountMemo: string;
|
|
164
|
+
/** @readonly */
|
|
165
|
+
readonly ownedNfts: Long;
|
|
166
|
+
/** @readonly */
|
|
167
|
+
readonly maxAutomaticTokenAssociations: Long;
|
|
168
|
+
aliasKey: PublicKey | null;
|
|
169
|
+
ledgerId: LedgerId | null;
|
|
170
|
+
hbarAllowances: import("./HbarAllowance.js").default[];
|
|
171
|
+
tokenAllowances: import("./TokenAllowance.js").default[];
|
|
172
|
+
nftAllowances: import("./TokenNftAllowance.js").default[];
|
|
173
|
+
/**
|
|
174
|
+
* The ethereum transaction nonce associated with this account.
|
|
175
|
+
*/
|
|
176
|
+
ethereumNonce: Long | null;
|
|
177
|
+
/**
|
|
178
|
+
* Staking metadata for this account.
|
|
179
|
+
*/
|
|
180
|
+
stakingInfo: StakingInfo | null;
|
|
181
|
+
/**
|
|
182
|
+
* @returns {HieroProto.proto.CryptoGetInfoResponse.IAccountInfo}
|
|
183
|
+
*/
|
|
184
|
+
_toProtobuf(): HieroProto.proto.CryptoGetInfoResponse.IAccountInfo;
|
|
185
|
+
/**
|
|
186
|
+
* @returns {Uint8Array}
|
|
187
|
+
*/
|
|
188
|
+
toBytes(): Uint8Array;
|
|
189
|
+
/**
|
|
190
|
+
* @returns {string}
|
|
191
|
+
*/
|
|
192
|
+
toString(): string;
|
|
193
|
+
/**
|
|
194
|
+
* @returns {AccountInfoJson}
|
|
195
|
+
*/
|
|
196
|
+
toJSON(): AccountInfoJson;
|
|
197
|
+
}
|
|
198
|
+
export type HbarAllowance = import("./HbarAllowance.js").default;
|
|
199
|
+
export type TokenAllowance = import("./TokenAllowance.js").default;
|
|
200
|
+
export type TokenNftAllowance = import("./TokenNftAllowance.js").default;
|
|
201
|
+
export type StakingInfoJson = import("../StakingInfo.js").StakingInfoJson;
|
|
202
|
+
export type AccountInfoJson = {
|
|
203
|
+
accountId: string;
|
|
204
|
+
contractAccountId: string | null;
|
|
205
|
+
isDeleted: boolean;
|
|
206
|
+
proxyAccountId: string | null;
|
|
207
|
+
proxyReceived: string;
|
|
208
|
+
key: string | null;
|
|
209
|
+
balance: string;
|
|
210
|
+
sendRecordThreshold: string;
|
|
211
|
+
receiveRecordThreshold: string;
|
|
212
|
+
isReceiverSignatureRequired: boolean;
|
|
213
|
+
expirationTime: string;
|
|
214
|
+
autoRenewPeriod: string;
|
|
215
|
+
accountMemo: string;
|
|
216
|
+
ownedNfts: string;
|
|
217
|
+
maxAutomaticTokenAssociations: string;
|
|
218
|
+
aliasKey: string | null;
|
|
219
|
+
ledgerId: string | null;
|
|
220
|
+
ethereumNonce: string | null;
|
|
221
|
+
stakingInfo: StakingInfoJson | null;
|
|
222
|
+
};
|
|
223
|
+
import AccountId from "./AccountId.js";
|
|
224
|
+
import Hbar from "../Hbar.js";
|
|
225
|
+
import Key from "../Key.js";
|
|
226
|
+
import Timestamp from "../Timestamp.js";
|
|
227
|
+
import Duration from "../Duration.js";
|
|
228
|
+
import LiveHash from "./LiveHash.js";
|
|
229
|
+
import TokenRelationshipMap from "./TokenRelationshipMap.js";
|
|
230
|
+
import Long from "long";
|
|
231
|
+
import PublicKey from "../PublicKey.js";
|
|
232
|
+
import LedgerId from "../LedgerId.js";
|
|
233
|
+
import StakingInfo from "../StakingInfo.js";
|
|
234
|
+
import * as HieroProto from "@hashgraph/proto";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"./AccountId.js";import o from"../StakingInfo.js";import t from"./LiveHash.js";import i from"../Hbar.js";import n from"../Timestamp.js";import r from"long";import s from"./TokenRelationshipMap.js";import*as c from"@hashgraph/proto";import l from"../Duration.js";import a from"../Key.js";import u from"../PublicKey.js";import h from"../LedgerId.js";class d{constructor(e){this.accountId=e.accountId,this.contractAccountId=e.contractAccountId,this.isDeleted=e.isDeleted,this.proxyAccountId=e.proxyAccountId,this.proxyReceived=e.proxyReceived,this.key=e.key,this.balance=e.balance,this.sendRecordThreshold=e.sendRecordThreshold,this.receiveRecordThreshold=e.receiveRecordThreshold,this.isReceiverSignatureRequired=e.isReceiverSignatureRequired,this.expirationTime=e.expirationTime,this.autoRenewPeriod=e.autoRenewPeriod,this.liveHashes=e.liveHashes,this.tokenRelationships=e.tokenRelationships,this.accountMemo=e.accountMemo,this.ownedNfts=e.ownedNfts,this.maxAutomaticTokenAssociations=e.maxAutomaticTokenAssociations,this.aliasKey=e.aliasKey,this.ledgerId=e.ledgerId,this.hbarAllowances=e.hbarAllowances,this.tokenAllowances=e.tokenAllowances,this.nftAllowances=e.nftAllowances,this.ethereumNonce=e.ethereumNonce,this.stakingInfo=e.stakingInfo,Object.freeze(this)}static _fromProtobuf(m){let f=null!=m.alias&&m.alias.length>0?a._fromProtobufKey(c.proto.Key.decode(m.alias)):null;f instanceof u||(f=null);const p=e._fromProtobuf(m.accountID);return new d({accountId:p,contractAccountId:null!=m.contractAccountID?m.contractAccountID:null,isDeleted:null!=m.deleted&&m.deleted,key:a._fromProtobufKey(m.key),balance:i.fromTinybars(null!=m.balance?m.balance:0),sendRecordThreshold:i.fromTinybars(null!=m.generateSendRecordThreshold?m.generateSendRecordThreshold:0),receiveRecordThreshold:i.fromTinybars(null!=m.generateReceiveRecordThreshold?m.generateReceiveRecordThreshold:0),isReceiverSignatureRequired:null!=m.receiverSigRequired&&m.receiverSigRequired,expirationTime:n._fromProtobuf(m.expirationTime),autoRenewPeriod:null!=m.autoRenewPeriod?new l(m.autoRenewPeriod.seconds):new l(0),proxyAccountId:null!=m.proxyAccountID&&0!==r.fromValue(m.proxyAccountID.shardNum).toInt()&&0!==r.fromValue(m.proxyAccountID.realmNum).toInt()&&0!==r.fromValue(m.proxyAccountID.accountNum).toInt()?e._fromProtobuf(m.proxyAccountID):null,proxyReceived:i.fromTinybars(null!=m.proxyReceived?m.proxyReceived:0),liveHashes:(null!=m.liveHashes?m.liveHashes:[]).map((e=>t._fromProtobuf(e))),tokenRelationships:s._fromProtobuf(null!=m.tokenRelationships?m.tokenRelationships:[]),accountMemo:null!=m.memo?m.memo:"",ownedNfts:m.ownedNfts?m.ownedNfts:r.ZERO,maxAutomaticTokenAssociations:m.maxAutomaticTokenAssociations?r.fromNumber(m.maxAutomaticTokenAssociations):r.ZERO,aliasKey:f,ledgerId:null!=m.ledgerId?h.fromBytes(m.ledgerId):null,hbarAllowances:[],tokenAllowances:[],nftAllowances:[],ethereumNonce:null!=m.ethereumNonce?m.ethereumNonce:null,stakingInfo:null!=m.stakingInfo?o._fromProtobuf(m.stakingInfo):null})}_toProtobuf(){return{accountID:this.accountId._toProtobuf(),contractAccountID:this.contractAccountId,deleted:this.isDeleted,proxyAccountID:null!=this.proxyAccountId?this.proxyAccountId._toProtobuf():null,proxyReceived:this.proxyReceived.toTinybars(),key:this.key._toProtobufKey(),balance:this.balance.toTinybars(),generateSendRecordThreshold:this.sendRecordThreshold.toTinybars(),generateReceiveRecordThreshold:this.receiveRecordThreshold.toTinybars(),receiverSigRequired:this.isReceiverSignatureRequired,expirationTime:this.expirationTime._toProtobuf(),autoRenewPeriod:this.autoRenewPeriod._toProtobuf(),liveHashes:this.liveHashes.map((e=>e._toProtobuf())),tokenRelationships:null!=this.tokenRelationships?this.tokenRelationships._toProtobuf():null,memo:this.accountMemo,ownedNfts:this.ownedNfts,maxAutomaticTokenAssociations:this.maxAutomaticTokenAssociations.toInt(),alias:null!=this.aliasKey?c.proto.Key.encode(this.aliasKey._toProtobufKey()).finish():null,ledgerId:null!=this.ledgerId?this.ledgerId.toBytes():null,ethereumNonce:this.ethereumNonce,stakingInfo:null!=this.stakingInfo?this.stakingInfo._toProtobuf():null}}static fromBytes(e){return d._fromProtobuf(c.proto.CryptoGetInfoResponse.AccountInfo.decode(e))}toBytes(){return c.proto.CryptoGetInfoResponse.AccountInfo.encode(this._toProtobuf()).finish()}toString(){return JSON.stringify(this.toJSON())}toJSON(){return{balance:this.balance.toString(),accountId:this.accountId.toString(),contractAccountId:this.contractAccountId,isDeleted:this.isDeleted,proxyAccountId:null!=this.proxyAccountId?this.proxyAccountId.toString():null,proxyReceived:this.proxyReceived.toString(),key:null!=this.key?this.key.toString():null,sendRecordThreshold:this.sendRecordThreshold.toString(),receiveRecordThreshold:this.receiveRecordThreshold.toString(),isReceiverSignatureRequired:this.isReceiverSignatureRequired,expirationTime:this.expirationTime.toString(),autoRenewPeriod:this.autoRenewPeriod.toString(),accountMemo:this.accountMemo,ownedNfts:this.ownedNfts.toString(),maxAutomaticTokenAssociations:this.maxAutomaticTokenAssociations.toString(),aliasKey:null!=this.aliasKey?this.aliasKey.toString():null,ledgerId:null!=this.ledgerId?this.ledgerId.toString():null,ethereumNonce:null!=this.ethereumNonce?this.ethereumNonce.toString():null,stakingInfo:null!=this.stakingInfo?this.stakingInfo.toJSON():null}}}export{d as default};
|
|
2
|
+
//# sourceMappingURL=AccountInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountInfo.js","sources":["../../src/account/AccountInfo.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport AccountId from \"./AccountId.js\";\nimport StakingInfo from \"../StakingInfo.js\";\nimport LiveHash from \"./LiveHash.js\";\nimport Hbar from \"../Hbar.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport Long from \"long\";\nimport TokenRelationshipMap from \"./TokenRelationshipMap.js\";\nimport * as HieroProto from \"@hashgraph/proto\";\nimport Duration from \"../Duration.js\";\nimport Key from \"../Key.js\";\nimport PublicKey from \"../PublicKey.js\";\nimport LedgerId from \"../LedgerId.js\";\n\n/**\n * @typedef {import(\"./HbarAllowance.js\").default} HbarAllowance\n * @typedef {import(\"./TokenAllowance.js\").default} TokenAllowance\n * @typedef {import(\"./TokenNftAllowance.js\").default} TokenNftAllowance\n * @typedef {import(\"../StakingInfo.js\").StakingInfoJson} StakingInfoJson\n */\n\n/**\n * @typedef {object} AccountInfoJson\n * @property {string} accountId\n * @property {?string} contractAccountId\n * @property {boolean} isDeleted\n * @property {?string} proxyAccountId\n * @property {string} proxyReceived\n * @property {?string} key\n * @property {string} balance\n * @property {string} sendRecordThreshold\n * @property {string} receiveRecordThreshold\n * @property {boolean} isReceiverSignatureRequired\n * @property {string} expirationTime\n * @property {string} autoRenewPeriod\n * @property {string} accountMemo\n * @property {string} ownedNfts\n * @property {string} maxAutomaticTokenAssociations\n * @property {?string} aliasKey\n * @property {?string} ledgerId\n * @property {?string} ethereumNonce\n * @property {?StakingInfoJson} stakingInfo\n */\n\n/**\n * Current information about an account, including the balance.\n */\nexport default class AccountInfo {\n /**\n * @private\n * @param {object} props\n * @param {AccountId} props.accountId\n * @param {?string} props.contractAccountId\n * @param {boolean} props.isDeleted\n * @param {?AccountId} props.proxyAccountId\n * @param {Hbar} props.proxyReceived\n * @param {Key} props.key\n * @param {Hbar} props.balance\n * @param {Hbar} props.sendRecordThreshold\n * @param {Hbar} props.receiveRecordThreshold\n * @param {boolean} props.isReceiverSignatureRequired\n * @param {Timestamp} props.expirationTime\n * @param {Duration} props.autoRenewPeriod\n * @param {LiveHash[]} props.liveHashes\n * @param {TokenRelationshipMap} props.tokenRelationships\n * @param {string} props.accountMemo\n * @param {Long} props.ownedNfts\n * @param {Long} props.maxAutomaticTokenAssociations\n * @param {PublicKey | null} props.aliasKey\n * @param {LedgerId | null} props.ledgerId\n * @param {HbarAllowance[]} props.hbarAllowances\n * @param {TokenAllowance[]} props.tokenAllowances\n * @param {TokenNftAllowance[]} props.nftAllowances\n * @param {?Long} props.ethereumNonce\n * @param {?StakingInfo} props.stakingInfo\n */\n constructor(props) {\n /**\n * The account ID for which this information applies.\n *\n * @readonly\n */\n this.accountId = props.accountId;\n\n /**\n * The Contract Account ID comprising of both the contract instance and the cryptocurrency\n * account owned by the contract instance, in the format used by Solidity.\n *\n * @readonly\n */\n this.contractAccountId = props.contractAccountId;\n\n /**\n * If true, then this account has been deleted, it will disappear when it expires, and\n * all transactions for it will fail except the transaction to extend its expiration date.\n *\n * @readonly\n */\n this.isDeleted = props.isDeleted;\n\n /**\n * @deprecated\n *\n * The Account ID of the account to which this is proxy staked. If proxyAccountID is null,\n * or is an invalid account, or is an account that isn't a node, then this account is\n * automatically proxy staked to a node chosen by the network, but without earning payments.\n * If the proxyAccountID account refuses to accept proxy staking , or if it is not currently\n * running a node, then it will behave as if proxyAccountID was null.\n * @readonly\n */\n // eslint-disable-next-line deprecation/deprecation\n this.proxyAccountId = props.proxyAccountId;\n\n /**\n * @deprecated\n * The total number of tinybars proxy staked to this account.\n *\n * @readonly\n */\n // eslint-disable-next-line deprecation/deprecation\n this.proxyReceived = props.proxyReceived;\n\n /**\n * The key for the account, which must sign in order to transfer out, or to modify the account\n * in any way other than extending its expiration date.\n *\n * @readonly\n */\n this.key = props.key;\n\n /**\n * The current balance of account.\n *\n * @readonly\n */\n this.balance = props.balance;\n\n /**\n * The threshold amount (in tinybars) for which an account record is created (and this account\n * charged for them) for any send/withdraw transaction.\n *\n * @readonly\n */\n this.sendRecordThreshold = props.sendRecordThreshold;\n\n /**\n * The threshold amount (in tinybars) for which an account record is created\n * (and this account charged for them) for any transaction above this amount.\n *\n * @readonly\n */\n this.receiveRecordThreshold = props.receiveRecordThreshold;\n\n /**\n * If true, no transaction can transfer to this account unless signed by this account's key.\n *\n * @readonly\n */\n this.isReceiverSignatureRequired = props.isReceiverSignatureRequired;\n\n /**\n * The TimeStamp time at which this account is set to expire.\n *\n * @readonly\n */\n this.expirationTime = props.expirationTime;\n\n /**\n * The duration for expiration time will extend every this many seconds. If there are\n * insufficient funds, then it extends as long as possible. If it is empty when it\n * expires, then it is deleted.\n *\n * @readonly\n */\n this.autoRenewPeriod = props.autoRenewPeriod;\n\n /** @readonly */\n this.liveHashes = props.liveHashes;\n\n /** @readonly */\n this.tokenRelationships = props.tokenRelationships;\n\n /** @readonly */\n this.accountMemo = props.accountMemo;\n\n /** @readonly */\n this.ownedNfts = props.ownedNfts;\n\n /** @readonly */\n this.maxAutomaticTokenAssociations =\n props.maxAutomaticTokenAssociations;\n\n this.aliasKey = props.aliasKey;\n\n this.ledgerId = props.ledgerId;\n /*\n * @deprecated - no longer supported\n */\n this.hbarAllowances = props.hbarAllowances;\n /*\n * @deprecated - no longer supported\n */\n this.tokenAllowances = props.tokenAllowances;\n /*\n * @deprecated - no longer supported\n */\n this.nftAllowances = props.nftAllowances;\n\n /**\n * The ethereum transaction nonce associated with this account.\n */\n this.ethereumNonce = props.ethereumNonce;\n\n /**\n * Staking metadata for this account.\n */\n this.stakingInfo = props.stakingInfo;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.CryptoGetInfoResponse.IAccountInfo} info\n * @returns {AccountInfo}\n */\n static _fromProtobuf(info) {\n let aliasKey =\n info.alias != null && info.alias.length > 0\n ? Key._fromProtobufKey(HieroProto.proto.Key.decode(info.alias))\n : null;\n\n if (!(aliasKey instanceof PublicKey)) {\n aliasKey = null;\n }\n\n const accountId = AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (info.accountID),\n );\n\n return new AccountInfo({\n accountId,\n contractAccountId:\n info.contractAccountID != null ? info.contractAccountID : null,\n isDeleted: info.deleted != null ? info.deleted : false,\n key: Key._fromProtobufKey(\n /** @type {HieroProto.proto.IKey} */ (info.key),\n ),\n balance: Hbar.fromTinybars(info.balance != null ? info.balance : 0),\n sendRecordThreshold: Hbar.fromTinybars(\n info.generateSendRecordThreshold != null\n ? info.generateSendRecordThreshold\n : 0,\n ),\n receiveRecordThreshold: Hbar.fromTinybars(\n info.generateReceiveRecordThreshold != null\n ? info.generateReceiveRecordThreshold\n : 0,\n ),\n isReceiverSignatureRequired:\n info.receiverSigRequired != null\n ? info.receiverSigRequired\n : false,\n expirationTime: Timestamp._fromProtobuf(\n /** @type {HieroProto.proto.ITimestamp} */ (\n info.expirationTime\n ),\n ),\n autoRenewPeriod:\n info.autoRenewPeriod != null\n ? new Duration(\n /** @type {Long} */ (info.autoRenewPeriod.seconds),\n )\n : new Duration(0),\n proxyAccountId:\n info.proxyAccountID != null &&\n Long.fromValue(\n /** @type {Long | number} */ (info.proxyAccountID.shardNum),\n ).toInt() !== 0 &&\n Long.fromValue(\n /** @type {Long | number} */ (info.proxyAccountID.realmNum),\n ).toInt() !== 0 &&\n Long.fromValue(\n /** @type {Long | number} */ (\n info.proxyAccountID.accountNum\n ),\n ).toInt() !== 0\n ? AccountId._fromProtobuf(info.proxyAccountID)\n : null,\n proxyReceived: Hbar.fromTinybars(\n info.proxyReceived != null ? info.proxyReceived : 0,\n ),\n liveHashes: (info.liveHashes != null ? info.liveHashes : []).map(\n (hash) => LiveHash._fromProtobuf(hash),\n ),\n tokenRelationships: TokenRelationshipMap._fromProtobuf(\n info.tokenRelationships != null ? info.tokenRelationships : [],\n ),\n accountMemo: info.memo != null ? info.memo : \"\",\n ownedNfts: info.ownedNfts ? info.ownedNfts : Long.ZERO,\n maxAutomaticTokenAssociations: info.maxAutomaticTokenAssociations\n ? Long.fromNumber(info.maxAutomaticTokenAssociations)\n : Long.ZERO,\n aliasKey,\n ledgerId:\n info.ledgerId != null\n ? LedgerId.fromBytes(info.ledgerId)\n : null,\n hbarAllowances: [],\n tokenAllowances: [],\n nftAllowances: [],\n ethereumNonce:\n info.ethereumNonce != null ? info.ethereumNonce : null,\n stakingInfo:\n info.stakingInfo != null\n ? StakingInfo._fromProtobuf(info.stakingInfo)\n : null,\n });\n }\n\n /**\n * @returns {HieroProto.proto.CryptoGetInfoResponse.IAccountInfo}\n */\n _toProtobuf() {\n return {\n accountID: this.accountId._toProtobuf(),\n contractAccountID: this.contractAccountId,\n deleted: this.isDeleted,\n proxyAccountID:\n // eslint-disable-next-line deprecation/deprecation\n this.proxyAccountId != null\n ? // eslint-disable-next-line deprecation/deprecation\n this.proxyAccountId._toProtobuf()\n : null,\n // eslint-disable-next-line deprecation/deprecation\n proxyReceived: this.proxyReceived.toTinybars(),\n key: this.key._toProtobufKey(),\n balance: this.balance.toTinybars(),\n generateSendRecordThreshold: this.sendRecordThreshold.toTinybars(),\n generateReceiveRecordThreshold:\n this.receiveRecordThreshold.toTinybars(),\n receiverSigRequired: this.isReceiverSignatureRequired,\n expirationTime: this.expirationTime._toProtobuf(),\n autoRenewPeriod: this.autoRenewPeriod._toProtobuf(),\n liveHashes: this.liveHashes.map((hash) => hash._toProtobuf()),\n tokenRelationships:\n this.tokenRelationships != null\n ? this.tokenRelationships._toProtobuf()\n : null,\n memo: this.accountMemo,\n ownedNfts: this.ownedNfts,\n maxAutomaticTokenAssociations:\n this.maxAutomaticTokenAssociations.toInt(),\n alias:\n this.aliasKey != null\n ? HieroProto.proto.Key.encode(\n this.aliasKey._toProtobufKey(),\n ).finish()\n : null,\n ledgerId: this.ledgerId != null ? this.ledgerId.toBytes() : null,\n ethereumNonce: this.ethereumNonce,\n stakingInfo:\n this.stakingInfo != null\n ? this.stakingInfo._toProtobuf()\n : null,\n };\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {AccountInfo}\n */\n static fromBytes(bytes) {\n return AccountInfo._fromProtobuf(\n HieroProto.proto.CryptoGetInfoResponse.AccountInfo.decode(bytes),\n );\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.CryptoGetInfoResponse.AccountInfo.encode(\n this._toProtobuf(),\n ).finish();\n }\n\n /**\n * @returns {string}\n */\n toString() {\n return JSON.stringify(this.toJSON());\n }\n\n /**\n * @returns {AccountInfoJson}\n */\n toJSON() {\n return {\n balance: this.balance.toString(),\n accountId: this.accountId.toString(),\n contractAccountId: this.contractAccountId,\n isDeleted: this.isDeleted,\n proxyAccountId:\n // eslint-disable-next-line deprecation/deprecation\n this.proxyAccountId != null\n ? // eslint-disable-next-line deprecation/deprecation\n this.proxyAccountId.toString()\n : null,\n // eslint-disable-next-line deprecation/deprecation\n proxyReceived: this.proxyReceived.toString(),\n key: this.key != null ? this.key.toString() : null,\n sendRecordThreshold: this.sendRecordThreshold.toString(),\n receiveRecordThreshold: this.receiveRecordThreshold.toString(),\n isReceiverSignatureRequired: this.isReceiverSignatureRequired,\n expirationTime: this.expirationTime.toString(),\n autoRenewPeriod: this.autoRenewPeriod.toString(),\n accountMemo: this.accountMemo,\n ownedNfts: this.ownedNfts.toString(),\n maxAutomaticTokenAssociations:\n this.maxAutomaticTokenAssociations.toString(),\n aliasKey: this.aliasKey != null ? this.aliasKey.toString() : null,\n ledgerId: this.ledgerId != null ? this.ledgerId.toString() : null,\n ethereumNonce:\n this.ethereumNonce != null\n ? this.ethereumNonce.toString()\n : null,\n stakingInfo:\n this.stakingInfo != null ? this.stakingInfo.toJSON() : null,\n };\n }\n}\n"],"names":["AccountInfo","constructor","props","this","accountId","contractAccountId","isDeleted","proxyAccountId","proxyReceived","key","balance","sendRecordThreshold","receiveRecordThreshold","isReceiverSignatureRequired","expirationTime","autoRenewPeriod","liveHashes","tokenRelationships","accountMemo","ownedNfts","maxAutomaticTokenAssociations","aliasKey","ledgerId","hbarAllowances","tokenAllowances","nftAllowances","ethereumNonce","stakingInfo","Object","freeze","_fromProtobuf","info","alias","length","Key","_fromProtobufKey","HieroProto","proto","decode","PublicKey","AccountId","contractAccountID","deleted","Hbar","fromTinybars","generateSendRecordThreshold","generateReceiveRecordThreshold","receiverSigRequired","Timestamp","Duration","proxyAccountID","Long","fromValue","toInt","map","hash","LiveHash","TokenRelationshipMap","memo","ZERO","fromNumber","LedgerId","fromBytes","StakingInfo","_toProtobuf","accountID","toTinybars","_toProtobufKey","encode","finish","toBytes","bytes","CryptoGetInfoResponse","toString","JSON","stringify","toJSON"],"mappings":"yWAgDe,MAAMA,EA6BjB,WAAAC,CAAYC,GAMRC,KAAKC,UAAYF,EAAME,UAQvBD,KAAKE,kBAAoBH,EAAMG,kBAQ/BF,KAAKG,UAAYJ,EAAMI,UAavBH,KAAKI,eAAiBL,EAAMK,eAS5BJ,KAAKK,cAAgBN,EAAMM,cAQ3BL,KAAKM,IAAMP,EAAMO,IAOjBN,KAAKO,QAAUR,EAAMQ,QAQrBP,KAAKQ,oBAAsBT,EAAMS,oBAQjCR,KAAKS,uBAAyBV,EAAMU,uBAOpCT,KAAKU,4BAA8BX,EAAMW,4BAOzCV,KAAKW,eAAiBZ,EAAMY,eAS5BX,KAAKY,gBAAkBb,EAAMa,gBAG7BZ,KAAKa,WAAad,EAAMc,WAGxBb,KAAKc,mBAAqBf,EAAMe,mBAGhCd,KAAKe,YAAchB,EAAMgB,YAGzBf,KAAKgB,UAAYjB,EAAMiB,UAGvBhB,KAAKiB,8BACDlB,EAAMkB,8BAEVjB,KAAKkB,SAAWnB,EAAMmB,SAEtBlB,KAAKmB,SAAWpB,EAAMoB,SAItBnB,KAAKoB,eAAiBrB,EAAMqB,eAI5BpB,KAAKqB,gBAAkBtB,EAAMsB,gBAI7BrB,KAAKsB,cAAgBvB,EAAMuB,cAK3BtB,KAAKuB,cAAgBxB,EAAMwB,cAK3BvB,KAAKwB,YAAczB,EAAMyB,YAEzBC,OAAOC,OAAO1B,KACtB,CAOI,oBAAO2B,CAAcC,GACjB,IAAIV,EACc,MAAdU,EAAKC,OAAiBD,EAAKC,MAAMC,OAAS,EACpCC,EAAIC,iBAAiBC,EAAWC,MAAMH,IAAII,OAAOP,EAAKC,QACtD,KAEJX,aAAoBkB,IACtBlB,EAAW,MAGf,MAAMjB,EAAYoC,EAAUV,cACoBC,EAAc,WAG9D,OAAO,IAAI/B,EAAY,CACnBI,YACAC,kBAC8B,MAA1B0B,EAAKU,kBAA4BV,EAAKU,kBAAoB,KAC9DnC,UAA2B,MAAhByB,EAAKW,SAAkBX,EAAKW,QACvCjC,IAAKyB,EAAIC,iBACiCJ,EAAQ,KAElDrB,QAASiC,EAAKC,aAA6B,MAAhBb,EAAKrB,QAAkBqB,EAAKrB,QAAU,GACjEC,oBAAqBgC,EAAKC,aACc,MAApCb,EAAKc,4BACCd,EAAKc,4BACL,GAEVjC,uBAAwB+B,EAAKC,aACc,MAAvCb,EAAKe,+BACCf,EAAKe,+BACL,GAEVjC,4BACgC,MAA5BkB,EAAKgB,qBACChB,EAAKgB,oBAEfjC,eAAgBkC,EAAUlB,cAElBC,EACpB,gBAEYhB,gBAC4B,MAAxBgB,EAAKhB,gBACC,IAAIkC,EACqBlB,EAAKhB,gBAAuB,SAErD,IAAIkC,EAAS,GACvB1C,eAC2B,MAAvBwB,EAAKmB,gBAGS,IAFdC,EAAKC,UAC6BrB,EAAKmB,eAAuB,UAC5DG,SAGY,IAFdF,EAAKC,UAC6BrB,EAAKmB,eAAuB,UAC5DG,SAKY,IAJdF,EAAKC,UAEGrB,EAAKmB,eAC7B,YACkBG,QACIb,EAAUV,cAAcC,EAAKmB,gBAC7B,KACV1C,cAAemC,EAAKC,aACM,MAAtBb,EAAKvB,cAAwBuB,EAAKvB,cAAgB,GAEtDQ,YAAgC,MAAnBe,EAAKf,WAAqBe,EAAKf,WAAa,IAAIsC,KACxDC,GAASC,EAAS1B,cAAcyB,KAErCtC,mBAAoBwC,EAAqB3B,cACV,MAA3BC,EAAKd,mBAA6Bc,EAAKd,mBAAqB,IAEhEC,YAA0B,MAAba,EAAK2B,KAAe3B,EAAK2B,KAAO,GAC7CvC,UAAWY,EAAKZ,UAAYY,EAAKZ,UAAYgC,EAAKQ,KAClDvC,8BAA+BW,EAAKX,8BAC9B+B,EAAKS,WAAW7B,EAAKX,+BACrB+B,EAAKQ,KACXtC,WACAC,SACqB,MAAjBS,EAAKT,SACCuC,EAASC,UAAU/B,EAAKT,UACxB,KACVC,eAAgB,GAChBC,gBAAiB,GACjBC,cAAe,GACfC,cAC0B,MAAtBK,EAAKL,cAAwBK,EAAKL,cAAgB,KACtDC,YACwB,MAApBI,EAAKJ,YACCoC,EAAYjC,cAAcC,EAAKJ,aAC/B,MAEtB,CAKI,WAAAqC,GACI,MAAO,CACHC,UAAW9D,KAAKC,UAAU4D,cAC1BvB,kBAAmBtC,KAAKE,kBACxBqC,QAASvC,KAAKG,UACd4C,eAE2B,MAAvB/C,KAAKI,eAECJ,KAAKI,eAAeyD,cACpB,KAEVxD,cAAeL,KAAKK,cAAc0D,aAClCzD,IAAKN,KAAKM,IAAI0D,iBACdzD,QAASP,KAAKO,QAAQwD,aACtBrB,4BAA6B1C,KAAKQ,oBAAoBuD,aACtDpB,+BACI3C,KAAKS,uBAAuBsD,aAChCnB,oBAAqB5C,KAAKU,4BAC1BC,eAAgBX,KAAKW,eAAekD,cACpCjD,gBAAiBZ,KAAKY,gBAAgBiD,cACtChD,WAAYb,KAAKa,WAAWsC,KAAKC,GAASA,EAAKS,gBAC/C/C,mBAC+B,MAA3Bd,KAAKc,mBACCd,KAAKc,mBAAmB+C,cACxB,KACVN,KAAMvD,KAAKe,YACXC,UAAWhB,KAAKgB,UAChBC,8BACIjB,KAAKiB,8BAA8BiC,QACvCrB,MACqB,MAAjB7B,KAAKkB,SACCe,EAAWC,MAAMH,IAAIkC,OACjBjE,KAAKkB,SAAS8C,kBAChBE,SACF,KACV/C,SAA2B,MAAjBnB,KAAKmB,SAAmBnB,KAAKmB,SAASgD,UAAY,KAC5D5C,cAAevB,KAAKuB,cACpBC,YACwB,MAApBxB,KAAKwB,YACCxB,KAAKwB,YAAYqC,cACjB,KAEtB,CAMI,gBAAOF,CAAUS,GACb,OAAOvE,EAAY8B,cACfM,EAAWC,MAAMmC,sBAAsBxE,YAAYsC,OAAOiC,GAEtE,CAKI,OAAAD,GACI,OAAOlC,EAAWC,MAAMmC,sBAAsBxE,YAAYoE,OACtDjE,KAAK6D,eACPK,QACV,CAKI,QAAAI,GACI,OAAOC,KAAKC,UAAUxE,KAAKyE,SACnC,CAKI,MAAAA,GACI,MAAO,CACHlE,QAASP,KAAKO,QAAQ+D,WACtBrE,UAAWD,KAAKC,UAAUqE,WAC1BpE,kBAAmBF,KAAKE,kBACxBC,UAAWH,KAAKG,UAChBC,eAE2B,MAAvBJ,KAAKI,eAECJ,KAAKI,eAAekE,WACpB,KAEVjE,cAAeL,KAAKK,cAAciE,WAClChE,IAAiB,MAAZN,KAAKM,IAAcN,KAAKM,IAAIgE,WAAa,KAC9C9D,oBAAqBR,KAAKQ,oBAAoB8D,WAC9C7D,uBAAwBT,KAAKS,uBAAuB6D,WACpD5D,4BAA6BV,KAAKU,4BAClCC,eAAgBX,KAAKW,eAAe2D,WACpC1D,gBAAiBZ,KAAKY,gBAAgB0D,WACtCvD,YAAaf,KAAKe,YAClBC,UAAWhB,KAAKgB,UAAUsD,WAC1BrD,8BACIjB,KAAKiB,8BAA8BqD,WACvCpD,SAA2B,MAAjBlB,KAAKkB,SAAmBlB,KAAKkB,SAASoD,WAAa,KAC7DnD,SAA2B,MAAjBnB,KAAKmB,SAAmBnB,KAAKmB,SAASmD,WAAa,KAC7D/C,cAC0B,MAAtBvB,KAAKuB,cACCvB,KAAKuB,cAAc+C,WACnB,KACV9C,YACwB,MAApBxB,KAAKwB,YAAsBxB,KAAKwB,YAAYiD,SAAW,KAEvE"}
|