@hiero-ledger/sdk 2.76.0 → 2.78.0-beta.1
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/README.md +6 -6
- package/dist/umd.js +1017 -673
- package/dist/umd.min.js +14 -14
- package/lib/Cache.cjs +6 -6
- package/lib/Cache.d.ts +12 -12
- package/lib/Cache.js.map +1 -1
- package/lib/Duration.cjs +1 -1
- package/lib/Duration.d.ts +2 -2
- package/lib/Duration.js.map +1 -1
- package/lib/EntityIdHelper.cjs +1 -1
- package/lib/EntityIdHelper.js +1 -1
- package/lib/EntityIdHelper.js.map +1 -1
- package/lib/EthereumFlow.cjs +7 -7
- package/lib/EthereumFlow.d.ts +14 -14
- package/lib/EthereumFlow.js.map +1 -1
- package/lib/EthereumTransaction.cjs +7 -7
- package/lib/EthereumTransaction.d.ts +14 -14
- package/lib/EthereumTransaction.js.map +1 -1
- package/lib/EvmAddress.cjs +1 -1
- package/lib/EvmAddress.d.ts +2 -2
- package/lib/EvmAddress.js.map +1 -1
- package/lib/ExchangeRate.cjs +2 -2
- package/lib/ExchangeRate.d.ts +4 -4
- package/lib/ExchangeRate.js.map +1 -1
- package/lib/ExchangeRates.cjs +1 -1
- package/lib/ExchangeRates.d.ts +1 -1
- package/lib/ExchangeRates.js +1 -1
- package/lib/ExchangeRates.js.map +1 -1
- package/lib/Executable.cjs +13 -3
- package/lib/Executable.js +1 -1
- package/lib/Executable.js.map +1 -1
- package/lib/FeeComponents.cjs +1 -1
- package/lib/FeeComponents.d.ts +1 -1
- package/lib/FeeComponents.js +1 -1
- package/lib/FeeComponents.js.map +1 -1
- package/lib/FeeData.cjs +1 -1
- package/lib/FeeData.d.ts +1 -1
- package/lib/FeeData.js +1 -1
- package/lib/FeeData.js.map +1 -1
- package/lib/FeeDataType.cjs +1 -1
- package/lib/FeeDataType.d.ts +2 -2
- package/lib/FeeDataType.js.map +1 -1
- package/lib/FeeSchedule.cjs +1 -1
- package/lib/FeeSchedule.d.ts +1 -1
- package/lib/FeeSchedule.js +1 -1
- package/lib/FeeSchedule.js.map +1 -1
- package/lib/FeeSchedules.cjs +1 -1
- package/lib/FeeSchedules.d.ts +1 -1
- package/lib/FeeSchedules.js +1 -1
- package/lib/FeeSchedules.js.map +1 -1
- package/lib/FreezeType.cjs +1 -1
- package/lib/FreezeType.d.ts +2 -2
- package/lib/FreezeType.js.map +1 -1
- package/lib/Key.cjs +1 -1
- package/lib/Key.d.ts +2 -2
- package/lib/Key.js.map +1 -1
- package/lib/KeyList.cjs +3 -3
- package/lib/KeyList.d.ts +6 -6
- package/lib/KeyList.js.map +1 -1
- package/lib/Mnemonic.cjs +1 -1
- package/lib/Mnemonic.d.ts +1 -1
- package/lib/Mnemonic.js +1 -1
- package/lib/Mnemonic.js.map +1 -1
- package/lib/PrivateKey.cjs +7 -7
- package/lib/PrivateKey.d.ts +11 -11
- package/lib/PrivateKey.js +1 -1
- package/lib/PrivateKey.js.map +1 -1
- package/lib/PrngTransaction.cjs +9 -9
- package/lib/PrngTransaction.d.ts +18 -18
- package/lib/PrngTransaction.js.map +1 -1
- package/lib/PublicKey.cjs +5 -5
- package/lib/PublicKey.d.ts +9 -9
- package/lib/PublicKey.js +1 -1
- package/lib/PublicKey.js.map +1 -1
- package/lib/RequestType.cjs +1 -1
- package/lib/RequestType.d.ts +2 -2
- package/lib/RequestType.js.map +1 -1
- package/lib/StakingInfo.cjs +1 -1
- package/lib/StakingInfo.d.ts +1 -1
- package/lib/StakingInfo.js +1 -1
- package/lib/StakingInfo.js.map +1 -1
- package/lib/Status.cjs +1 -1
- package/lib/Status.d.ts +2 -2
- package/lib/Status.js.map +1 -1
- package/lib/Timestamp.cjs +1 -1
- package/lib/Timestamp.d.ts +1 -1
- package/lib/Timestamp.js.map +1 -1
- package/lib/TransactionFeeSchedule.cjs +1 -1
- package/lib/TransactionFeeSchedule.d.ts +1 -1
- package/lib/TransactionFeeSchedule.js +1 -1
- package/lib/TransactionFeeSchedule.js.map +1 -1
- package/lib/Transfer.cjs +2 -2
- package/lib/Transfer.d.ts +4 -4
- package/lib/Transfer.js.map +1 -1
- package/lib/account/AccountAllowanceAdjustTransaction.cjs +7 -7
- package/lib/account/AccountAllowanceAdjustTransaction.d.ts +14 -14
- package/lib/account/AccountAllowanceAdjustTransaction.js.map +1 -1
- package/lib/account/AccountAllowanceApproveTransaction.cjs +8 -8
- package/lib/account/AccountAllowanceApproveTransaction.d.ts +16 -16
- package/lib/account/AccountAllowanceApproveTransaction.js.map +1 -1
- package/lib/account/AccountAllowanceDeleteTransaction.cjs +7 -7
- package/lib/account/AccountAllowanceDeleteTransaction.d.ts +14 -14
- package/lib/account/AccountAllowanceDeleteTransaction.js.map +1 -1
- package/lib/account/AccountBalance.cjs +1 -1
- package/lib/account/AccountBalance.d.ts +1 -1
- package/lib/account/AccountBalance.js +1 -1
- package/lib/account/AccountBalance.js.map +1 -1
- package/lib/account/AccountBalanceQuery.cjs +6 -6
- package/lib/account/AccountBalanceQuery.d.ts +12 -12
- package/lib/account/AccountBalanceQuery.js.map +1 -1
- package/lib/account/AccountCreateTransaction.cjs +1 -1
- package/lib/account/AccountCreateTransaction.d.ts +1 -1
- package/lib/account/AccountCreateTransaction.js +1 -1
- package/lib/account/AccountCreateTransaction.js.map +1 -1
- package/lib/account/AccountDeleteTransaction.cjs +7 -7
- package/lib/account/AccountDeleteTransaction.d.ts +14 -14
- package/lib/account/AccountDeleteTransaction.js.map +1 -1
- package/lib/account/AccountId.cjs +1 -1
- package/lib/account/AccountId.d.ts +1 -1
- package/lib/account/AccountId.js +1 -1
- package/lib/account/AccountId.js.map +1 -1
- package/lib/account/AccountInfo.cjs +1 -1
- package/lib/account/AccountInfo.d.ts +1 -1
- package/lib/account/AccountInfo.js +1 -1
- package/lib/account/AccountInfo.js.map +1 -1
- package/lib/account/AccountInfoQuery.cjs +7 -7
- package/lib/account/AccountInfoQuery.d.ts +14 -14
- package/lib/account/AccountInfoQuery.js.map +1 -1
- package/lib/account/AccountRecordsQuery.cjs +7 -7
- package/lib/account/AccountRecordsQuery.d.ts +14 -14
- package/lib/account/AccountRecordsQuery.js.map +1 -1
- package/lib/account/AccountUpdateTransaction.cjs +7 -7
- package/lib/account/AccountUpdateTransaction.d.ts +14 -14
- package/lib/account/AccountUpdateTransaction.js.map +1 -1
- package/lib/account/HbarAllowance.cjs +3 -3
- package/lib/account/HbarAllowance.d.ts +6 -6
- package/lib/account/HbarAllowance.js.map +1 -1
- package/lib/account/HbarTransferMap.cjs +2 -2
- package/lib/account/HbarTransferMap.d.ts +4 -4
- package/lib/account/HbarTransferMap.js.map +1 -1
- package/lib/account/LiveHash.cjs +3 -3
- package/lib/account/LiveHash.d.ts +6 -6
- package/lib/account/LiveHash.js.map +1 -1
- package/lib/account/LiveHashAddTransaction.cjs +7 -7
- package/lib/account/LiveHashAddTransaction.d.ts +14 -14
- package/lib/account/LiveHashAddTransaction.js.map +1 -1
- package/lib/account/LiveHashDeleteTransaction.cjs +6 -6
- package/lib/account/LiveHashDeleteTransaction.d.ts +12 -12
- package/lib/account/LiveHashDeleteTransaction.js.map +1 -1
- package/lib/account/LiveHashQuery.cjs +7 -7
- package/lib/account/LiveHashQuery.d.ts +14 -14
- package/lib/account/LiveHashQuery.js.map +1 -1
- package/lib/account/NullableTokenDecimalMap.cjs +2 -2
- package/lib/account/NullableTokenDecimalMap.d.ts +4 -4
- package/lib/account/NullableTokenDecimalMap.js.map +1 -1
- package/lib/account/ProxyStaker.cjs +2 -2
- package/lib/account/ProxyStaker.d.ts +4 -4
- package/lib/account/ProxyStaker.js.map +1 -1
- package/lib/account/TokenAllowance.cjs +4 -4
- package/lib/account/TokenAllowance.d.ts +8 -8
- package/lib/account/TokenAllowance.js.map +1 -1
- package/lib/account/TokenBalanceMap.cjs +2 -2
- package/lib/account/TokenBalanceMap.d.ts +4 -4
- package/lib/account/TokenBalanceMap.js.map +1 -1
- package/lib/account/TokenDecimalMap.cjs +2 -2
- package/lib/account/TokenDecimalMap.d.ts +4 -4
- package/lib/account/TokenDecimalMap.js.map +1 -1
- package/lib/account/TokenNftAllowance.cjs +5 -5
- package/lib/account/TokenNftAllowance.d.ts +10 -10
- package/lib/account/TokenNftAllowance.js.map +1 -1
- package/lib/account/TokenNftTransferMap.cjs +5 -5
- package/lib/account/TokenNftTransferMap.d.ts +10 -10
- package/lib/account/TokenNftTransferMap.js.map +1 -1
- package/lib/account/TokenRelationship.cjs +4 -4
- package/lib/account/TokenRelationship.d.ts +8 -8
- package/lib/account/TokenRelationship.js.map +1 -1
- package/lib/account/TokenRelationshipMap.cjs +2 -2
- package/lib/account/TokenRelationshipMap.d.ts +4 -4
- package/lib/account/TokenRelationshipMap.js.map +1 -1
- package/lib/account/TokenTransferMap.cjs +4 -4
- package/lib/account/TokenTransferMap.d.ts +8 -8
- package/lib/account/TokenTransferMap.js.map +1 -1
- package/lib/account/TransferTransaction.cjs +6 -6
- package/lib/account/TransferTransaction.d.ts +12 -12
- package/lib/account/TransferTransaction.js.map +1 -1
- package/lib/address_book/AddressBooks.cjs +1 -1
- package/lib/address_book/AddressBooks.js +1 -1
- package/lib/address_book/AddressBooks.js.map +1 -1
- package/lib/address_book/Endpoint.cjs +1 -1
- package/lib/address_book/Endpoint.d.ts +2 -2
- package/lib/address_book/Endpoint.js.map +1 -1
- package/lib/address_book/NodeAddress.cjs +1 -1
- package/lib/address_book/NodeAddress.d.ts +2 -2
- package/lib/address_book/NodeAddress.js.map +1 -1
- package/lib/address_book/NodeAddressBook.cjs +1 -1
- package/lib/address_book/NodeAddressBook.d.ts +1 -1
- package/lib/address_book/NodeAddressBook.js +1 -1
- package/lib/address_book/NodeAddressBook.js.map +1 -1
- package/lib/browser.js +1 -1
- package/lib/channel/Channel.cjs +26 -2
- package/lib/channel/Channel.d.ts +21 -1
- package/lib/channel/Channel.js +1 -1
- package/lib/channel/Channel.js.map +1 -1
- package/lib/channel/NativeChannel.cjs +96 -2
- package/lib/channel/NativeChannel.d.ts +21 -1
- package/lib/channel/NativeChannel.js +1 -1
- package/lib/channel/NativeChannel.js.map +1 -1
- package/lib/channel/NodeChannel.cjs +4 -5
- package/lib/channel/NodeChannel.d.ts +2 -3
- package/lib/channel/NodeChannel.js +1 -1
- package/lib/channel/NodeChannel.js.map +1 -1
- package/lib/channel/WebChannel.cjs +163 -13
- package/lib/channel/WebChannel.d.ts +51 -1
- package/lib/channel/WebChannel.js +1 -1
- package/lib/channel/WebChannel.js.map +1 -1
- package/lib/client/Client.cjs +62 -5
- package/lib/client/Client.d.ts +26 -3
- package/lib/client/Client.js +1 -1
- package/lib/client/Client.js.map +1 -1
- package/lib/client/NativeClient.cjs +1 -1
- package/lib/client/NativeClient.js +1 -1
- package/lib/client/NativeClient.js.map +1 -1
- package/lib/client/NodeClient.cjs +7 -6
- package/lib/client/NodeClient.d.ts +3 -3
- package/lib/client/NodeClient.js +1 -1
- package/lib/client/NodeClient.js.map +1 -1
- package/lib/client/WebClient.cjs +55 -27
- package/lib/client/WebClient.d.ts +6 -0
- package/lib/client/WebClient.js +1 -1
- package/lib/client/WebClient.js.map +1 -1
- package/lib/client/addressbooks/mainnet.cjs +1 -1
- package/lib/client/addressbooks/mainnet.d.ts +1 -1
- package/lib/client/addressbooks/mainnet.js +1 -1
- package/lib/client/addressbooks/mainnet.js.map +1 -1
- package/lib/client/addressbooks/previewnet.cjs +1 -1
- package/lib/client/addressbooks/previewnet.d.ts +1 -1
- package/lib/client/addressbooks/previewnet.js +1 -1
- package/lib/client/addressbooks/previewnet.js.map +1 -1
- package/lib/client/addressbooks/testnet.cjs +1 -1
- package/lib/client/addressbooks/testnet.d.ts +1 -1
- package/lib/client/addressbooks/testnet.js +1 -1
- package/lib/client/addressbooks/testnet.js.map +1 -1
- package/lib/constants/ClientConstants.cjs +17 -1
- package/lib/constants/ClientConstants.d.ts +14 -0
- package/lib/constants/ClientConstants.js +1 -1
- package/lib/constants/ClientConstants.js.map +1 -1
- package/lib/contract/ContractByteCodeQuery.cjs +6 -6
- package/lib/contract/ContractByteCodeQuery.d.ts +12 -12
- package/lib/contract/ContractByteCodeQuery.js.map +1 -1
- package/lib/contract/ContractCallQuery.cjs +1 -1
- package/lib/contract/ContractCallQuery.d.ts +1 -1
- package/lib/contract/ContractCallQuery.js +1 -1
- package/lib/contract/ContractCallQuery.js.map +1 -1
- package/lib/contract/ContractCreateTransaction.cjs +8 -8
- package/lib/contract/ContractCreateTransaction.d.ts +16 -16
- package/lib/contract/ContractCreateTransaction.js.map +1 -1
- package/lib/contract/ContractDeleteTransaction.cjs +8 -8
- package/lib/contract/ContractDeleteTransaction.d.ts +16 -16
- package/lib/contract/ContractDeleteTransaction.js.map +1 -1
- package/lib/contract/ContractExecuteTransaction.cjs +9 -9
- package/lib/contract/ContractExecuteTransaction.d.ts +18 -18
- package/lib/contract/ContractExecuteTransaction.js.map +1 -1
- package/lib/contract/ContractFunctionResult.cjs +2 -2
- package/lib/contract/ContractFunctionResult.d.ts +4 -4
- package/lib/contract/ContractFunctionResult.js.map +1 -1
- package/lib/contract/ContractId.cjs +1 -1
- package/lib/contract/ContractId.d.ts +1 -1
- package/lib/contract/ContractId.js +1 -1
- package/lib/contract/ContractId.js.map +1 -1
- package/lib/contract/ContractInfo.cjs +1 -1
- package/lib/contract/ContractInfo.d.ts +1 -1
- package/lib/contract/ContractInfo.js +1 -1
- package/lib/contract/ContractInfo.js.map +1 -1
- package/lib/contract/ContractInfoQuery.cjs +7 -7
- package/lib/contract/ContractInfoQuery.d.ts +14 -14
- package/lib/contract/ContractInfoQuery.js.map +1 -1
- package/lib/contract/ContractLogInfo.cjs +2 -2
- package/lib/contract/ContractLogInfo.d.ts +4 -4
- package/lib/contract/ContractLogInfo.js.map +1 -1
- package/lib/contract/ContractNonceInfo.cjs +3 -3
- package/lib/contract/ContractNonceInfo.d.ts +4 -4
- package/lib/contract/ContractNonceInfo.js +1 -1
- package/lib/contract/ContractNonceInfo.js.map +1 -1
- package/lib/contract/ContractStateChange.cjs +1 -1
- package/lib/contract/ContractStateChange.d.ts +1 -1
- package/lib/contract/ContractUpdateTransaction.cjs +10 -10
- package/lib/contract/ContractUpdateTransaction.d.ts +18 -18
- package/lib/contract/ContractUpdateTransaction.js +1 -1
- package/lib/contract/ContractUpdateTransaction.js.map +1 -1
- package/lib/contract/DelegateContractId.cjs +2 -2
- package/lib/contract/DelegateContractId.d.ts +4 -4
- package/lib/contract/DelegateContractId.js.map +1 -1
- package/lib/contract/StorageChange.cjs +1 -1
- package/lib/contract/StorageChange.d.ts +1 -1
- package/lib/exports.cjs +1 -1
- package/lib/exports.d.ts +1 -1
- package/lib/exports.js +1 -1
- package/lib/exports.js.map +1 -1
- package/lib/file/FileAppendTransaction.cjs +7 -7
- package/lib/file/FileAppendTransaction.d.ts +14 -14
- package/lib/file/FileAppendTransaction.js.map +1 -1
- package/lib/file/FileContentsQuery.cjs +7 -7
- package/lib/file/FileContentsQuery.d.ts +14 -14
- package/lib/file/FileContentsQuery.js.map +1 -1
- package/lib/file/FileCreateTransaction.cjs +6 -6
- package/lib/file/FileCreateTransaction.d.ts +12 -12
- package/lib/file/FileCreateTransaction.js.map +1 -1
- package/lib/file/FileDeleteTransaction.cjs +7 -7
- package/lib/file/FileDeleteTransaction.d.ts +14 -14
- package/lib/file/FileDeleteTransaction.js.map +1 -1
- package/lib/file/FileId.cjs +1 -1
- package/lib/file/FileId.d.ts +1 -1
- package/lib/file/FileId.js +1 -1
- package/lib/file/FileId.js.map +1 -1
- package/lib/file/FileInfo.cjs +1 -1
- package/lib/file/FileInfo.d.ts +1 -1
- package/lib/file/FileInfo.js +1 -1
- package/lib/file/FileInfo.js.map +1 -1
- package/lib/file/FileInfoQuery.cjs +7 -7
- package/lib/file/FileInfoQuery.d.ts +14 -14
- package/lib/file/FileInfoQuery.js.map +1 -1
- package/lib/file/FileUpdateTransaction.cjs +6 -6
- package/lib/file/FileUpdateTransaction.d.ts +12 -12
- package/lib/file/FileUpdateTransaction.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/native.js +1 -1
- package/lib/network/AddressBookQuery.cjs +1 -5
- package/lib/network/AddressBookQuery.js +1 -1
- package/lib/network/AddressBookQuery.js.map +1 -1
- package/lib/network/AddressBookQueryWeb.cjs +1 -5
- package/lib/network/AddressBookQueryWeb.js +1 -1
- package/lib/network/AddressBookQueryWeb.js.map +1 -1
- package/lib/network/NetworkVersionInfo.cjs +1 -1
- package/lib/network/NetworkVersionInfo.d.ts +1 -1
- package/lib/network/NetworkVersionInfo.js +1 -1
- package/lib/network/NetworkVersionInfo.js.map +1 -1
- package/lib/network/NetworkVersionInfoQuery.cjs +6 -6
- package/lib/network/NetworkVersionInfoQuery.d.ts +12 -12
- package/lib/network/NetworkVersionInfoQuery.js.map +1 -1
- package/lib/network/SemanticVersion.cjs +1 -1
- package/lib/network/SemanticVersion.d.ts +1 -1
- package/lib/network/SemanticVersion.js +1 -1
- package/lib/network/SemanticVersion.js.map +1 -1
- package/lib/node/NodeCreateTransaction.cjs +6 -6
- package/lib/node/NodeCreateTransaction.d.ts +12 -12
- package/lib/node/NodeCreateTransaction.js.map +1 -1
- package/lib/node/NodeDeleteTransaction.cjs +6 -6
- package/lib/node/NodeDeleteTransaction.d.ts +12 -12
- package/lib/node/NodeDeleteTransaction.js.map +1 -1
- package/lib/node/NodeUpdateTransaction.cjs +6 -6
- package/lib/node/NodeUpdateTransaction.d.ts +12 -12
- package/lib/node/NodeUpdateTransaction.js.map +1 -1
- package/lib/node/ServiceEndpoint.cjs +1 -1
- package/lib/node/ServiceEndpoint.d.ts +2 -2
- package/lib/node/ServiceEndpoint.js.map +1 -1
- package/lib/query/CostQuery.cjs +1 -1
- package/lib/query/CostQuery.d.ts +1 -1
- package/lib/query/CostQuery.js +1 -1
- package/lib/query/CostQuery.js.map +1 -1
- package/lib/query/Query.cjs +1 -1
- package/lib/query/Query.d.ts +1 -1
- package/lib/query/Query.js +1 -1
- package/lib/query/Query.js.map +1 -1
- package/lib/query/QueryBase.cjs +1 -1
- package/lib/query/QueryBase.d.ts +1 -1
- package/lib/query/QueryBase.js +1 -1
- package/lib/query/QueryBase.js.map +1 -1
- package/lib/schedule/ScheduleCreateTransaction.cjs +1 -1
- package/lib/schedule/ScheduleCreateTransaction.d.ts +1 -1
- package/lib/schedule/ScheduleCreateTransaction.js +1 -1
- package/lib/schedule/ScheduleCreateTransaction.js.map +1 -1
- package/lib/schedule/ScheduleDeleteTransaction.cjs +8 -8
- package/lib/schedule/ScheduleDeleteTransaction.d.ts +16 -16
- package/lib/schedule/ScheduleDeleteTransaction.js.map +1 -1
- package/lib/schedule/ScheduleId.cjs +1 -1
- package/lib/schedule/ScheduleId.d.ts +1 -1
- package/lib/schedule/ScheduleId.js +1 -1
- package/lib/schedule/ScheduleId.js.map +1 -1
- package/lib/schedule/ScheduleInfo.cjs +1 -1
- package/lib/schedule/ScheduleInfo.d.ts +1 -1
- package/lib/schedule/ScheduleInfo.js +1 -1
- package/lib/schedule/ScheduleInfo.js.map +1 -1
- package/lib/schedule/ScheduleInfoQuery.cjs +7 -7
- package/lib/schedule/ScheduleInfoQuery.d.ts +14 -14
- package/lib/schedule/ScheduleInfoQuery.js.map +1 -1
- package/lib/schedule/ScheduleSignTransaction.cjs +10 -10
- package/lib/schedule/ScheduleSignTransaction.d.ts +20 -20
- package/lib/schedule/ScheduleSignTransaction.js.map +1 -1
- package/lib/system/FreezeTransaction.cjs +6 -6
- package/lib/system/FreezeTransaction.d.ts +12 -12
- package/lib/system/FreezeTransaction.js.map +1 -1
- package/lib/system/SystemDeleteTransaction.cjs +8 -8
- package/lib/system/SystemDeleteTransaction.d.ts +16 -16
- package/lib/system/SystemDeleteTransaction.js.map +1 -1
- package/lib/system/SystemUndeleteTransaction.cjs +8 -8
- package/lib/system/SystemUndeleteTransaction.d.ts +16 -16
- package/lib/system/SystemUndeleteTransaction.js.map +1 -1
- package/lib/token/AbstractTokenTransferTransaction.cjs +1 -1
- package/lib/token/AbstractTokenTransferTransaction.d.ts +2 -2
- package/lib/token/AbstractTokenTransferTransaction.js.map +1 -1
- package/lib/token/AssessedCustomFee.cjs +1 -1
- package/lib/token/AssessedCustomFee.d.ts +2 -2
- package/lib/token/AssessedCustomFee.js.map +1 -1
- package/lib/token/CustomFee.cjs +1 -1
- package/lib/token/CustomFee.d.ts +2 -2
- package/lib/token/CustomFee.js.map +1 -1
- package/lib/token/CustomFixedFee.cjs +3 -3
- package/lib/token/CustomFixedFee.d.ts +6 -6
- package/lib/token/CustomFixedFee.js.map +1 -1
- package/lib/token/CustomFractionalFee.cjs +3 -3
- package/lib/token/CustomFractionalFee.d.ts +6 -6
- package/lib/token/CustomFractionalFee.js.map +1 -1
- package/lib/token/CustomRoyaltyFee.cjs +4 -4
- package/lib/token/CustomRoyaltyFee.d.ts +8 -8
- package/lib/token/CustomRoyaltyFee.js.map +1 -1
- package/lib/token/NftId.cjs +1 -1
- package/lib/token/NftId.d.ts +1 -1
- package/lib/token/NftId.js +1 -1
- package/lib/token/NftId.js.map +1 -1
- package/lib/token/PendingAirdropId.cjs +1 -1
- package/lib/token/PendingAirdropId.d.ts +1 -1
- package/lib/token/PendingAirdropId.js.map +1 -1
- package/lib/token/PendingAirdropRecord.cjs +1 -1
- package/lib/token/PendingAirdropRecord.d.ts +1 -1
- package/lib/token/PendingAirdropRecord.js.map +1 -1
- package/lib/token/TokenAirdropTransaction.cjs +8 -8
- package/lib/token/TokenAirdropTransaction.d.ts +16 -16
- package/lib/token/TokenAirdropTransaction.js.map +1 -1
- package/lib/token/TokenAssociateTransaction.cjs +7 -7
- package/lib/token/TokenAssociateTransaction.d.ts +14 -14
- package/lib/token/TokenAssociateTransaction.js.map +1 -1
- package/lib/token/TokenAssociation.cjs +1 -1
- package/lib/token/TokenAssociation.d.ts +2 -2
- package/lib/token/TokenAssociation.js.map +1 -1
- package/lib/token/TokenBurnTransaction.cjs +7 -7
- package/lib/token/TokenBurnTransaction.d.ts +14 -14
- package/lib/token/TokenBurnTransaction.js.map +1 -1
- package/lib/token/TokenCancelAirdropTransaction.cjs +6 -6
- package/lib/token/TokenCancelAirdropTransaction.d.ts +12 -12
- package/lib/token/TokenCancelAirdropTransaction.js.map +1 -1
- package/lib/token/TokenClaimAirdropTransaction.cjs +6 -6
- package/lib/token/TokenClaimAirdropTransaction.d.ts +12 -12
- package/lib/token/TokenClaimAirdropTransaction.js.map +1 -1
- package/lib/token/TokenCreateTransaction.cjs +7 -7
- package/lib/token/TokenCreateTransaction.d.ts +14 -14
- package/lib/token/TokenCreateTransaction.js.map +1 -1
- package/lib/token/TokenDeleteTransaction.cjs +7 -7
- package/lib/token/TokenDeleteTransaction.d.ts +14 -14
- package/lib/token/TokenDeleteTransaction.js.map +1 -1
- package/lib/token/TokenDissociateTransaction.cjs +7 -7
- package/lib/token/TokenDissociateTransaction.d.ts +14 -14
- package/lib/token/TokenDissociateTransaction.js.map +1 -1
- package/lib/token/TokenFeeScheduleUpdateTransaction.cjs +7 -7
- package/lib/token/TokenFeeScheduleUpdateTransaction.d.ts +14 -14
- package/lib/token/TokenFeeScheduleUpdateTransaction.js.map +1 -1
- package/lib/token/TokenFreezeTransaction.cjs +7 -7
- package/lib/token/TokenFreezeTransaction.d.ts +14 -14
- package/lib/token/TokenFreezeTransaction.js.map +1 -1
- package/lib/token/TokenGrantKycTransaction.cjs +7 -7
- package/lib/token/TokenGrantKycTransaction.d.ts +14 -14
- package/lib/token/TokenGrantKycTransaction.js.map +1 -1
- package/lib/token/TokenId.cjs +1 -1
- package/lib/token/TokenId.d.ts +1 -1
- package/lib/token/TokenId.js +1 -1
- package/lib/token/TokenId.js.map +1 -1
- package/lib/token/TokenInfo.cjs +1 -1
- package/lib/token/TokenInfo.d.ts +1 -1
- package/lib/token/TokenInfo.js +1 -1
- package/lib/token/TokenInfo.js.map +1 -1
- package/lib/token/TokenInfoQuery.cjs +7 -7
- package/lib/token/TokenInfoQuery.d.ts +14 -14
- package/lib/token/TokenInfoQuery.js.map +1 -1
- package/lib/token/TokenKeyValidation.cjs +1 -1
- package/lib/token/TokenKeyValidation.d.ts +2 -2
- package/lib/token/TokenKeyValidation.js.map +1 -1
- package/lib/token/TokenMintTransaction.cjs +7 -7
- package/lib/token/TokenMintTransaction.d.ts +14 -14
- package/lib/token/TokenMintTransaction.js.map +1 -1
- package/lib/token/TokenNftInfo.cjs +10 -10
- package/lib/token/TokenNftInfo.d.ts +20 -20
- package/lib/token/TokenNftInfo.js.map +1 -1
- package/lib/token/TokenNftInfoQuery.cjs +11 -11
- package/lib/token/TokenNftInfoQuery.d.ts +22 -22
- package/lib/token/TokenNftInfoQuery.js.map +1 -1
- package/lib/token/TokenNftTransfer.cjs +5 -5
- package/lib/token/TokenNftTransfer.d.ts +10 -10
- package/lib/token/TokenNftTransfer.js.map +1 -1
- package/lib/token/TokenNftsUpdateTransaction.cjs +7 -7
- package/lib/token/TokenNftsUpdateTransaction.d.ts +14 -14
- package/lib/token/TokenPauseTransaction.cjs +7 -7
- package/lib/token/TokenPauseTransaction.d.ts +14 -14
- package/lib/token/TokenPauseTransaction.js.map +1 -1
- package/lib/token/TokenReference.cjs +1 -1
- package/lib/token/TokenReference.d.ts +2 -2
- package/lib/token/TokenReference.js.map +1 -1
- package/lib/token/TokenRejectTransaction.cjs +7 -7
- package/lib/token/TokenRejectTransaction.d.ts +14 -14
- package/lib/token/TokenRejectTransaction.js.map +1 -1
- package/lib/token/TokenRevokeKycTransaction.cjs +7 -7
- package/lib/token/TokenRevokeKycTransaction.d.ts +14 -14
- package/lib/token/TokenRevokeKycTransaction.js.map +1 -1
- package/lib/token/TokenSupplyType.cjs +1 -1
- package/lib/token/TokenSupplyType.d.ts +2 -2
- package/lib/token/TokenSupplyType.js.map +1 -1
- package/lib/token/TokenTransfer.cjs +4 -4
- package/lib/token/TokenTransfer.d.ts +8 -8
- package/lib/token/TokenTransfer.js.map +1 -1
- package/lib/token/TokenType.cjs +1 -1
- package/lib/token/TokenType.d.ts +2 -2
- package/lib/token/TokenType.js.map +1 -1
- package/lib/token/TokenUnfreezeTransaction.cjs +7 -7
- package/lib/token/TokenUnfreezeTransaction.d.ts +14 -14
- package/lib/token/TokenUnfreezeTransaction.js.map +1 -1
- package/lib/token/TokenUnpauseTransaction.cjs +7 -7
- package/lib/token/TokenUnpauseTransaction.d.ts +14 -14
- package/lib/token/TokenUnpauseTransaction.js.map +1 -1
- package/lib/token/TokenUpdateNftsTransaction.cjs +7 -7
- package/lib/token/TokenUpdateNftsTransaction.d.ts +14 -14
- package/lib/token/TokenUpdateNftsTransaction.js.map +1 -1
- package/lib/token/TokenUpdateTransaction.cjs +7 -7
- package/lib/token/TokenUpdateTransaction.d.ts +14 -14
- package/lib/token/TokenUpdateTransaction.js.map +1 -1
- package/lib/token/TokenWipeTransaction.cjs +7 -7
- package/lib/token/TokenWipeTransaction.d.ts +14 -14
- package/lib/token/TokenWipeTransaction.js.map +1 -1
- package/lib/topic/TopicCreateTransaction.cjs +6 -6
- package/lib/topic/TopicCreateTransaction.d.ts +12 -12
- package/lib/topic/TopicCreateTransaction.js.map +1 -1
- package/lib/topic/TopicDeleteTransaction.cjs +6 -6
- package/lib/topic/TopicDeleteTransaction.d.ts +12 -12
- package/lib/topic/TopicDeleteTransaction.js.map +1 -1
- package/lib/topic/TopicId.cjs +1 -1
- package/lib/topic/TopicId.d.ts +1 -1
- package/lib/topic/TopicId.js +1 -1
- package/lib/topic/TopicId.js.map +1 -1
- package/lib/topic/TopicInfo.cjs +1 -1
- package/lib/topic/TopicInfo.d.ts +1 -1
- package/lib/topic/TopicInfo.js +1 -1
- package/lib/topic/TopicInfo.js.map +1 -1
- package/lib/topic/TopicInfoQuery.cjs +7 -7
- package/lib/topic/TopicInfoQuery.d.ts +14 -14
- package/lib/topic/TopicInfoQuery.js.map +1 -1
- package/lib/topic/TopicMessage.cjs +2 -2
- package/lib/topic/TopicMessage.d.ts +4 -4
- package/lib/topic/TopicMessage.js.map +1 -1
- package/lib/topic/TopicMessageChunk.cjs +2 -2
- package/lib/topic/TopicMessageChunk.d.ts +4 -4
- package/lib/topic/TopicMessageChunk.js.map +1 -1
- package/lib/topic/TopicMessageQuery.cjs +1 -1
- package/lib/topic/TopicMessageQuery.js +1 -1
- package/lib/topic/TopicMessageQuery.js.map +1 -1
- package/lib/topic/TopicMessageSubmitTransaction.cjs +9 -9
- package/lib/topic/TopicMessageSubmitTransaction.d.ts +18 -18
- package/lib/topic/TopicMessageSubmitTransaction.js.map +1 -1
- package/lib/topic/TopicUpdateTransaction.cjs +6 -6
- package/lib/topic/TopicUpdateTransaction.d.ts +12 -12
- package/lib/topic/TopicUpdateTransaction.js.map +1 -1
- package/lib/transaction/BatchTransaction.cjs +5 -5
- package/lib/transaction/BatchTransaction.d.ts +9 -9
- package/lib/transaction/BatchTransaction.js +1 -1
- package/lib/transaction/BatchTransaction.js.map +1 -1
- package/lib/transaction/CustomFeeLimit.cjs +2 -2
- package/lib/transaction/CustomFeeLimit.d.ts +4 -4
- package/lib/transaction/CustomFeeLimit.js.map +1 -1
- package/lib/transaction/NodeAccountIdSignatureMap.cjs +2 -2
- package/lib/transaction/NodeAccountIdSignatureMap.d.ts +2 -2
- package/lib/transaction/NodeAccountIdSignatureMap.js +1 -1
- package/lib/transaction/NodeAccountIdSignatureMap.js.map +1 -1
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.cjs +1 -1
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.d.ts +2 -2
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.js.map +1 -1
- package/lib/transaction/SignatureMap.cjs +1 -1
- package/lib/transaction/SignatureMap.js.map +1 -1
- package/lib/transaction/SignaturePairMap.cjs +1 -1
- package/lib/transaction/SignaturePairMap.d.ts +2 -2
- package/lib/transaction/SignaturePairMap.js.map +1 -1
- package/lib/transaction/Transaction.cjs +1 -1
- package/lib/transaction/Transaction.d.ts +1 -1
- package/lib/transaction/Transaction.js +1 -1
- package/lib/transaction/Transaction.js.map +1 -1
- package/lib/transaction/TransactionHashMap.cjs +1 -1
- package/lib/transaction/TransactionHashMap.d.ts +2 -2
- package/lib/transaction/TransactionHashMap.js.map +1 -1
- package/lib/transaction/TransactionId.cjs +1 -1
- package/lib/transaction/TransactionId.d.ts +1 -1
- package/lib/transaction/TransactionId.js +1 -1
- package/lib/transaction/TransactionId.js.map +1 -1
- package/lib/transaction/TransactionReceipt.cjs +1 -1
- package/lib/transaction/TransactionReceipt.d.ts +1 -1
- package/lib/transaction/TransactionReceipt.js +1 -1
- package/lib/transaction/TransactionReceipt.js.map +1 -1
- package/lib/transaction/TransactionReceiptQuery.cjs +1 -1
- package/lib/transaction/TransactionReceiptQuery.d.ts +1 -1
- package/lib/transaction/TransactionReceiptQuery.js +1 -1
- package/lib/transaction/TransactionReceiptQuery.js.map +1 -1
- package/lib/transaction/TransactionRecord.cjs +1 -1
- package/lib/transaction/TransactionRecord.d.ts +1 -1
- package/lib/transaction/TransactionRecord.js +1 -1
- package/lib/transaction/TransactionRecord.js.map +1 -1
- package/lib/transaction/TransactionRecordQuery.cjs +1 -1
- package/lib/transaction/TransactionRecordQuery.d.ts +1 -1
- package/lib/transaction/TransactionRecordQuery.js +1 -1
- package/lib/transaction/TransactionRecordQuery.js.map +1 -1
- package/lib/util/ASN1-Decoder.cjs +1 -1
- package/lib/util/ASN1-Decoder.js +1 -1
- package/lib/util/ASN1-Decoder.js.map +1 -1
- package/lib/version.js +1 -1
- package/package.json +6 -8
- package/src/Cache.js +6 -6
- package/src/Duration.js +1 -1
- package/src/EntityIdHelper.js +1 -1
- package/src/EthereumFlow.js +7 -7
- package/src/EthereumTransaction.js +7 -7
- package/src/EvmAddress.js +1 -1
- package/src/ExchangeRate.js +2 -2
- package/src/ExchangeRates.js +1 -1
- package/src/Executable.js +18 -2
- package/src/FeeComponents.js +1 -1
- package/src/FeeData.js +1 -1
- package/src/FeeDataType.js +1 -1
- package/src/FeeSchedule.js +1 -1
- package/src/FeeSchedules.js +1 -1
- package/src/FreezeType.js +1 -1
- package/src/Key.js +1 -1
- package/src/KeyList.js +3 -3
- package/src/Mnemonic.js +1 -1
- package/src/PrivateKey.js +7 -7
- package/src/PrngTransaction.js +9 -9
- package/src/PublicKey.js +5 -5
- package/src/RequestType.js +1 -1
- package/src/StakingInfo.js +1 -1
- package/src/Status.js +1 -1
- package/src/Timestamp.js +1 -1
- package/src/TransactionFeeSchedule.js +1 -1
- package/src/Transfer.js +2 -2
- package/src/account/AccountAllowanceAdjustTransaction.js +7 -7
- package/src/account/AccountAllowanceApproveTransaction.js +8 -8
- package/src/account/AccountAllowanceDeleteTransaction.js +7 -7
- package/src/account/AccountBalance.js +1 -1
- package/src/account/AccountBalanceQuery.js +6 -6
- package/src/account/AccountCreateTransaction.js +1 -1
- package/src/account/AccountDeleteTransaction.js +7 -7
- package/src/account/AccountId.js +1 -1
- package/src/account/AccountInfo.js +1 -1
- package/src/account/AccountInfoQuery.js +7 -7
- package/src/account/AccountRecordsQuery.js +7 -7
- package/src/account/AccountUpdateTransaction.js +7 -7
- package/src/account/HbarAllowance.js +3 -3
- package/src/account/HbarTransferMap.js +2 -2
- package/src/account/LiveHash.js +3 -3
- package/src/account/LiveHashAddTransaction.js +7 -7
- package/src/account/LiveHashDeleteTransaction.js +6 -6
- package/src/account/LiveHashQuery.js +7 -7
- package/src/account/NullableTokenDecimalMap.js +2 -2
- package/src/account/ProxyStaker.js +2 -2
- package/src/account/TokenAllowance.js +4 -4
- package/src/account/TokenBalanceMap.js +2 -2
- package/src/account/TokenDecimalMap.js +2 -2
- package/src/account/TokenNftAllowance.js +5 -5
- package/src/account/TokenNftTransferMap.js +5 -5
- package/src/account/TokenRelationship.js +4 -4
- package/src/account/TokenRelationshipMap.js +2 -2
- package/src/account/TokenTransferMap.js +4 -4
- package/src/account/TransferTransaction.js +6 -6
- package/src/address_book/AddressBooks.js +1 -1
- package/src/address_book/Endpoint.js +1 -1
- package/src/address_book/NodeAddress.js +1 -1
- package/src/address_book/NodeAddressBook.js +1 -1
- package/src/channel/Channel.js +26 -2
- package/src/channel/NativeChannel.js +111 -2
- package/src/channel/NodeChannel.js +4 -7
- package/src/channel/WebChannel.js +189 -21
- package/src/client/Client.js +79 -5
- package/src/client/NativeClient.js +1 -1
- package/src/client/NodeClient.js +7 -6
- package/src/client/WebClient.js +64 -31
- package/src/client/addressbooks/mainnet.js +1 -1
- package/src/client/addressbooks/previewnet.js +1 -1
- package/src/client/addressbooks/testnet.js +1 -1
- package/src/constants/ClientConstants.js +16 -0
- package/src/contract/ContractByteCodeQuery.js +6 -6
- package/src/contract/ContractCallQuery.js +1 -1
- package/src/contract/ContractCreateTransaction.js +8 -8
- package/src/contract/ContractDeleteTransaction.js +8 -8
- package/src/contract/ContractExecuteTransaction.js +9 -9
- package/src/contract/ContractFunctionResult.js +2 -2
- package/src/contract/ContractId.js +1 -1
- package/src/contract/ContractInfo.js +1 -1
- package/src/contract/ContractInfoQuery.js +7 -7
- package/src/contract/ContractLogInfo.js +2 -2
- package/src/contract/ContractNonceInfo.js +3 -3
- package/src/contract/ContractStateChange.js +1 -1
- package/src/contract/ContractUpdateTransaction.js +10 -10
- package/src/contract/DelegateContractId.js +2 -2
- package/src/contract/StorageChange.js +1 -1
- package/src/exports.js +1 -1
- package/src/file/FileAppendTransaction.js +7 -7
- package/src/file/FileContentsQuery.js +7 -7
- package/src/file/FileCreateTransaction.js +6 -6
- package/src/file/FileDeleteTransaction.js +7 -7
- package/src/file/FileId.js +1 -1
- package/src/file/FileInfo.js +1 -1
- package/src/file/FileInfoQuery.js +7 -7
- package/src/file/FileUpdateTransaction.js +6 -6
- package/src/network/AddressBookQuery.js +1 -8
- package/src/network/AddressBookQueryWeb.js +1 -8
- package/src/network/NetworkVersionInfo.js +1 -1
- package/src/network/NetworkVersionInfoQuery.js +6 -6
- package/src/network/SemanticVersion.js +1 -1
- package/src/node/NodeCreateTransaction.js +6 -6
- package/src/node/NodeDeleteTransaction.js +6 -6
- package/src/node/NodeUpdateTransaction.js +6 -6
- package/src/node/ServiceEndpoint.js +1 -1
- package/src/query/CostQuery.js +1 -1
- package/src/query/Query.js +1 -1
- package/src/query/QueryBase.js +1 -1
- package/src/schedule/ScheduleCreateTransaction.js +1 -1
- package/src/schedule/ScheduleDeleteTransaction.js +8 -8
- package/src/schedule/ScheduleId.js +1 -1
- package/src/schedule/ScheduleInfo.js +1 -1
- package/src/schedule/ScheduleInfoQuery.js +7 -7
- package/src/schedule/ScheduleSignTransaction.js +10 -10
- package/src/system/FreezeTransaction.js +6 -6
- package/src/system/SystemDeleteTransaction.js +8 -8
- package/src/system/SystemUndeleteTransaction.js +8 -8
- package/src/token/AbstractTokenTransferTransaction.js +1 -1
- package/src/token/AssessedCustomFee.js +1 -1
- package/src/token/CustomFee.js +1 -1
- package/src/token/CustomFixedFee.js +3 -3
- package/src/token/CustomFractionalFee.js +3 -3
- package/src/token/CustomRoyaltyFee.js +4 -4
- package/src/token/NftId.js +1 -1
- package/src/token/PendingAirdropId.js +1 -1
- package/src/token/PendingAirdropRecord.js +1 -1
- package/src/token/TokenAirdropTransaction.js +8 -8
- package/src/token/TokenAssociateTransaction.js +7 -7
- package/src/token/TokenAssociation.js +1 -1
- package/src/token/TokenBurnTransaction.js +7 -7
- package/src/token/TokenCancelAirdropTransaction.js +6 -6
- package/src/token/TokenClaimAirdropTransaction.js +6 -6
- package/src/token/TokenCreateTransaction.js +7 -7
- package/src/token/TokenDeleteTransaction.js +7 -7
- package/src/token/TokenDissociateTransaction.js +7 -7
- package/src/token/TokenFeeScheduleUpdateTransaction.js +7 -7
- package/src/token/TokenFreezeTransaction.js +7 -7
- package/src/token/TokenGrantKycTransaction.js +7 -7
- package/src/token/TokenId.js +1 -1
- package/src/token/TokenInfo.js +1 -1
- package/src/token/TokenInfoQuery.js +7 -7
- package/src/token/TokenKeyValidation.js +1 -1
- package/src/token/TokenMintTransaction.js +7 -7
- package/src/token/TokenNftInfo.js +10 -10
- package/src/token/TokenNftInfoQuery.js +11 -11
- package/src/token/TokenNftTransfer.js +5 -5
- package/src/token/TokenNftsUpdateTransaction.js +7 -7
- package/src/token/TokenPauseTransaction.js +7 -7
- package/src/token/TokenReference.js +1 -1
- package/src/token/TokenRejectTransaction.js +7 -7
- package/src/token/TokenRevokeKycTransaction.js +7 -7
- package/src/token/TokenSupplyType.js +1 -1
- package/src/token/TokenTransfer.js +4 -4
- package/src/token/TokenType.js +1 -1
- package/src/token/TokenUnfreezeTransaction.js +7 -7
- package/src/token/TokenUnpauseTransaction.js +7 -7
- package/src/token/TokenUpdateNftsTransaction.js +7 -7
- package/src/token/TokenUpdateTransaction.js +7 -7
- package/src/token/TokenWipeTransaction.js +7 -7
- package/src/topic/TopicCreateTransaction.js +6 -6
- package/src/topic/TopicDeleteTransaction.js +6 -6
- package/src/topic/TopicId.js +1 -1
- package/src/topic/TopicInfo.js +1 -1
- package/src/topic/TopicInfoQuery.js +7 -7
- package/src/topic/TopicMessage.js +2 -2
- package/src/topic/TopicMessageChunk.js +2 -2
- package/src/topic/TopicMessageQuery.js +1 -1
- package/src/topic/TopicMessageSubmitTransaction.js +9 -9
- package/src/topic/TopicUpdateTransaction.js +6 -6
- package/src/transaction/BatchTransaction.js +5 -5
- package/src/transaction/CustomFeeLimit.js +2 -2
- package/src/transaction/NodeAccountIdSignatureMap.js +2 -2
- package/src/transaction/NodeAccountIdSignatureMapLegacy.js +1 -1
- package/src/transaction/SignatureMap.js +1 -1
- package/src/transaction/SignaturePairMap.js +1 -1
- package/src/transaction/Transaction.js +1 -1
- package/src/transaction/TransactionHashMap.js +1 -1
- package/src/transaction/TransactionId.js +1 -1
- package/src/transaction/TransactionReceipt.js +1 -1
- package/src/transaction/TransactionReceiptQuery.js +1 -1
- package/src/transaction/TransactionRecord.js +1 -1
- package/src/transaction/TransactionRecordQuery.js +1 -1
- package/src/util/ASN1-Decoder.js +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
8
|
-
* @typedef {import("@
|
|
9
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQuery} HieroProto.proto.IQuery
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponse} HieroProto.proto.IResponse
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenInfo} HieroProto.proto.ITokenInfo
|
|
8
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetInfoQuery} HieroProto.proto.ITokenGetInfoQuery
|
|
9
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetInfoResponse} HieroProto.proto.ITokenGetInfoResponse
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
12
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
@@ -50,13 +50,13 @@ export default class TokenInfoQuery extends Query<TokenInfo> {
|
|
|
50
50
|
}
|
|
51
51
|
export namespace HieroProto {
|
|
52
52
|
namespace proto {
|
|
53
|
-
type IQuery = import("@
|
|
54
|
-
type IQueryHeader = import("@
|
|
55
|
-
type IResponse = import("@
|
|
56
|
-
type IResponseHeader = import("@
|
|
57
|
-
type ITokenInfo = import("@
|
|
58
|
-
type ITokenGetInfoQuery = import("@
|
|
59
|
-
type ITokenGetInfoResponse = import("@
|
|
53
|
+
type IQuery = import("@hiero-ledger/proto").proto.IQuery;
|
|
54
|
+
type IQueryHeader = import("@hiero-ledger/proto").proto.IQueryHeader;
|
|
55
|
+
type IResponse = import("@hiero-ledger/proto").proto.IResponse;
|
|
56
|
+
type IResponseHeader = import("@hiero-ledger/proto").proto.IResponseHeader;
|
|
57
|
+
type ITokenInfo = import("@hiero-ledger/proto").proto.ITokenInfo;
|
|
58
|
+
type ITokenGetInfoQuery = import("@hiero-ledger/proto").proto.ITokenGetInfoQuery;
|
|
59
|
+
type ITokenGetInfoResponse = import("@hiero-ledger/proto").proto.ITokenGetInfoResponse;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
export type Channel = import("../channel/Channel.js").default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenInfoQuery.js","sources":["../../src/token/TokenInfoQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport TokenId from \"./TokenId.js\";\nimport TokenInfo from \"./TokenInfo.js\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Hbar from \"../Hbar.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenInfoQuery.js","sources":["../../src/token/TokenInfoQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport TokenId from \"./TokenId.js\";\nimport TokenInfo from \"./TokenInfo.js\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Hbar from \"../Hbar.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IQuery} HieroProto.proto.IQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.IQueryHeader} HieroProto.proto.IQueryHeader\n * @typedef {import(\"@hiero-ledger/proto\").proto.IResponse} HieroProto.proto.IResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.IResponseHeader} HieroProto.proto.IResponseHeader\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenInfo} HieroProto.proto.ITokenInfo\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenGetInfoQuery} HieroProto.proto.ITokenGetInfoQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenGetInfoResponse} HieroProto.proto.ITokenGetInfoResponse\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n */\n\n/**\n * Retrieve the detail characteristics for a token.\n * @augments {Query<TokenInfo>}\n */\nexport default class TokenInfoQuery extends Query {\n /**\n * @param {object} properties\n * @param {TokenId | string} [properties.tokenId]\n */\n constructor(properties = {}) {\n super();\n\n /**\n * @private\n * @type {?TokenId}\n */\n this._tokenId = null;\n if (properties.tokenId != null) {\n this.setTokenId(properties.tokenId);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IQuery} query\n * @returns {TokenInfoQuery}\n */\n static _fromProtobuf(query) {\n const info = /** @type {HieroProto.proto.ITokenGetInfoQuery} */ (\n query.tokenGetInfo\n );\n\n return new TokenInfoQuery({\n tokenId:\n info.token != null\n ? TokenId._fromProtobuf(info.token)\n : undefined,\n });\n }\n\n /**\n * @returns {?TokenId}\n */\n get tokenId() {\n return this._tokenId;\n }\n\n /**\n * Set the token ID for which the info is being requested.\n *\n * @param {TokenId | string} tokenId\n * @returns {TokenInfoQuery}\n */\n setTokenId(tokenId) {\n this._tokenId =\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : tokenId.clone();\n\n return this;\n }\n\n /**\n * @override\n * @param {import(\"../client/Client.js\").default<Channel, *>} client\n * @returns {Promise<Hbar>}\n */\n async getCost(client) {\n return super.getCost(client);\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._tokenId != null) {\n this._tokenId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<HieroProto.proto.IResponse>}\n */\n _execute(channel, request) {\n return channel.token.getTokenInfo(request);\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @returns {HieroProto.proto.IResponseHeader}\n */\n _mapResponseHeader(response) {\n const tokenGetInfo =\n /** @type {HieroProto.proto.ITokenGetInfoResponse} */ (\n response.tokenGetInfo\n );\n return /** @type {HieroProto.proto.IResponseHeader} */ (\n tokenGetInfo.header\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @param {AccountId} nodeAccountId\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<TokenInfo>}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _mapResponse(response, nodeAccountId, request) {\n const info = /** @type {HieroProto.proto.ITokenGetInfoResponse} */ (\n response.tokenGetInfo\n );\n\n return Promise.resolve(\n TokenInfo._fromProtobuf(\n /** @type {HieroProto.proto.ITokenInfo} */ (info.tokenInfo),\n ),\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IQueryHeader} header\n * @returns {HieroProto.proto.IQuery}\n */\n _onMakeRequest(header) {\n return {\n tokenGetInfo: {\n header,\n token:\n this._tokenId != null ? this._tokenId._toProtobuf() : null,\n },\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp =\n this._paymentTransactionId != null &&\n this._paymentTransactionId.validStart != null\n ? this._paymentTransactionId.validStart\n : this._timestamp;\n\n return `TokenInfoQuery:${timestamp.toString()}`;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nQUERY_REGISTRY.set(\"tokenGetInfo\", TokenInfoQuery._fromProtobuf);\n"],"names":["TokenInfoQuery","Query","constructor","properties","super","this","_tokenId","tokenId","setTokenId","_fromProtobuf","query","info","token","TokenId","undefined","fromString","clone","getCost","client","_validateChecksums","validateChecksum","_execute","channel","request","getTokenInfo","_mapResponseHeader","response","_mapResponse","nodeAccountId","Promise","resolve","TokenInfo","_onMakeRequest","header","tokenGetInfo","_toProtobuf","_getLogId","_paymentTransactionId","validStart","_timestamp","toString","QUERY_REGISTRY","set"],"mappings":"yKA6Be,MAAMA,UAAuBC,EAKxC,WAAAC,CAAYC,EAAa,IACrBC,QAMAC,KAAKC,SAAW,KACU,MAAtBH,EAAWI,SACXF,KAAKG,WAAWL,EAAWI,QAEvC,CAOI,oBAAOE,CAAcC,GACjB,MAAMC,EACFD,EACH,aAED,OAAO,IAAIV,EAAe,CACtBO,QACkB,MAAdI,EAAKC,MACCC,EAAQJ,cAAcE,EAAKC,YAC3BE,GAEtB,CAKI,WAAIP,GACA,OAAOF,KAAKC,QACpB,CAQI,UAAAE,CAAWD,GAMP,OALAF,KAAKC,SACkB,iBAAZC,EACDM,EAAQE,WAAWR,GACnBA,EAAQS,QAEXX,IACf,CAOI,aAAMY,CAAQC,GACV,OAAOd,MAAMa,QAAQC,EAC7B,CAKI,kBAAAC,CAAmBD,GACM,MAAjBb,KAAKC,UACLD,KAAKC,SAASc,iBAAiBF,EAE3C,CASI,QAAAG,CAASC,EAASC,GACd,OAAOD,EAAQV,MAAMY,aAAaD,EAC1C,CAQI,kBAAAE,CAAmBC,GAKf,OAFQA,EACH,aAGb,MACA,CAWI,YAAAC,CAAaD,EAAUE,EAAeL,GAClC,MAAMZ,EACFe,EACH,aAED,OAAOG,QAAQC,QACXC,EAAUtB,cACsCE,EAAc,WAG1E,CAQI,cAAAqB,CAAeC,GACX,MAAO,CACHC,aAAc,CACVD,SACArB,MACqB,MAAjBP,KAAKC,SAAmBD,KAAKC,SAAS6B,cAAgB,MAG1E,CAKI,SAAAC,GAOI,MAAO,mBAL2B,MAA9B/B,KAAKgC,uBACoC,MAAzChC,KAAKgC,sBAAsBC,WACrBjC,KAAKgC,sBAAsBC,WAC3BjC,KAAKkC,YAEoBC,YAC3C,EAIAC,EAAeC,IAAI,eAAgB1C,EAAeS"}
|
|
@@ -8,7 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @namespace proto
|
|
11
|
-
* @typedef {import("@
|
|
11
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenKeyValidation} HieroProto.proto.TokenKeyValidation
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
/** Types of validation strategies for token keys. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenKeyValidation} HieroProto.proto.TokenKeyValidation
|
|
4
4
|
*/
|
|
5
5
|
/** Types of validation strategies for token keys. */
|
|
6
6
|
declare class TokenKeyValidation {
|
|
@@ -34,6 +34,6 @@ declare namespace TokenKeyValidation {
|
|
|
34
34
|
export default TokenKeyValidation;
|
|
35
35
|
export namespace HieroProto {
|
|
36
36
|
namespace proto {
|
|
37
|
-
type TokenKeyValidation = import("@
|
|
37
|
+
type TokenKeyValidation = import("@hiero-ledger/proto").proto.TokenKeyValidation;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenKeyValidation.js","sources":["../../src/token/TokenKeyValidation.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenKeyValidation.js","sources":["../../src/token/TokenKeyValidation.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.TokenKeyValidation} HieroProto.proto.TokenKeyValidation\n */\n\n/** Types of validation strategies for token keys. */\nexport default class TokenKeyValidation {\n /**\n * @hideconstructor\n * @internal\n * @param {number} code\n */\n constructor(code) {\n /** @readonly */\n this._code = code;\n\n Object.freeze(this);\n }\n\n /**\n * @returns {string}\n */\n toString() {\n switch (this) {\n case TokenKeyValidation.FullValidation:\n return \"FULL_VALIDATION\";\n case TokenKeyValidation.NoValidation:\n return \"NO_VALIDATION\";\n default:\n return `UNKNOWN (${this._code})`;\n }\n }\n\n /**\n * @internal\n * @param {number} code\n * @returns {TokenKeyValidation}\n */\n static _fromCode(code) {\n switch (code) {\n case 0:\n return TokenKeyValidation.FullValidation;\n case 1:\n return TokenKeyValidation.NoValidation;\n }\n\n throw new Error(\n `(BUG) TokenKeyValidation.fromCode() does not handle code: ${code}`,\n );\n }\n\n /**\n * @returns {HieroProto.proto.TokenKeyValidation}\n */\n valueOf() {\n return this._code;\n }\n}\n\n/**\n * Currently the default behaviour. It will perform all token key validations.\n */\nTokenKeyValidation.FullValidation = new TokenKeyValidation(0);\n\n/**\n * Perform no validations at all for all passed token keys.\n */\nTokenKeyValidation.NoValidation = new TokenKeyValidation(1);\n"],"names":["TokenKeyValidation","constructor","code","this","_code","Object","freeze","toString","FullValidation","NoValidation","_fromCode","Error","valueOf"],"mappings":"AAQe,MAAMA,EAMjB,WAAAC,CAAYC,GAERC,KAAKC,MAAQF,EAEbG,OAAOC,OAAOH,KACtB,CAKI,QAAAI,GACI,OAAQJ,MACJ,KAAKH,EAAmBQ,eACpB,MAAO,kBACX,KAAKR,EAAmBS,aACpB,MAAO,gBACX,QACI,MAAO,YAAYN,KAAKC,SAExC,CAOI,gBAAOM,CAAUR,GACb,OAAQA,GACJ,KAAK,EACD,OAAOF,EAAmBQ,eAC9B,KAAK,EACD,OAAOR,EAAmBS,aAGlC,MAAM,IAAIE,MACN,6DAA6DT,IAEzE,CAKI,OAAAU,GACI,OAAOT,KAAKC,KACpB,EAMAJ,EAAmBQ,eAAiB,IAAIR,EAAmB,GAK3DA,EAAmBS,aAAe,IAAIT,EAAmB"}
|
|
@@ -14,13 +14,13 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @namespace proto
|
|
17
|
-
* @typedef {import("@
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
20
|
-
* @typedef {import("@
|
|
21
|
-
* @typedef {import("@
|
|
22
|
-
* @typedef {import("@
|
|
23
|
-
* @typedef {import("@
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
20
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
21
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
22
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenMintTransactionBody} HieroProto.proto.ITokenMintTransactionBody
|
|
23
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
8
|
-
* @typedef {import("@
|
|
9
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
8
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenMintTransactionBody} HieroProto.proto.ITokenMintTransactionBody
|
|
9
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
12
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
@@ -96,13 +96,13 @@ export default class TokenMintTransaction extends Transaction {
|
|
|
96
96
|
}
|
|
97
97
|
export namespace HieroProto {
|
|
98
98
|
namespace proto {
|
|
99
|
-
type ITransaction = import("@
|
|
100
|
-
type ISignedTransaction = import("@
|
|
101
|
-
type TransactionBody = import("@
|
|
102
|
-
type ITransactionBody = import("@
|
|
103
|
-
type ITransactionResponse = import("@
|
|
104
|
-
type ITokenMintTransactionBody = import("@
|
|
105
|
-
type ITokenID = import("@
|
|
99
|
+
type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
|
|
100
|
+
type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
|
|
101
|
+
type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
|
|
102
|
+
type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
|
|
103
|
+
type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
|
|
104
|
+
type ITokenMintTransactionBody = import("@hiero-ledger/proto").proto.ITokenMintTransactionBody;
|
|
105
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
export type Channel = import("../channel/Channel.js").default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenMintTransaction.js","sources":["../../src/token/TokenMintTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport * as hex from \"../encoding/hex.js\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenMintTransaction.js","sources":["../../src/token/TokenMintTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport * as hex from \"../encoding/hex.js\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenMintTransactionBody} HieroProto.proto.ITokenMintTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * Mint a new Hedera™ crypto-currency token.\n */\nexport default class TokenMintTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {TokenId | string} [props.tokenId]\n * @param {Long | number | BigNumber | bigint} [props.amount]\n * @param {Uint8Array[]} [props.metadata]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TokenId}\n */\n this._tokenId = null;\n\n /**\n * @private\n * @type {?Long}\n */\n this._amount = null;\n\n /**\n * @private\n * @type {Uint8Array[]}\n */\n this._metadata = [];\n\n if (props.tokenId != null) {\n this.setTokenId(props.tokenId);\n }\n\n if (props.amount != null) {\n this.setAmount(props.amount);\n }\n\n if (props.metadata != null) {\n this.setMetadata(props.metadata);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {TokenMintTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const mintToken =\n /** @type {HieroProto.proto.ITokenMintTransactionBody} */ (\n body.tokenMint\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenMintTransaction({\n tokenId:\n mintToken.token != null\n ? TokenId._fromProtobuf(mintToken.token)\n : undefined,\n amount: mintToken.amount != null ? mintToken.amount : undefined,\n metadata:\n mintToken.metadata != null ? mintToken.metadata : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?TokenId}\n */\n get tokenId() {\n return this._tokenId;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @returns {this}\n */\n setTokenId(tokenId) {\n this._requireNotFrozen();\n this._tokenId =\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : tokenId.clone();\n\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get amount() {\n return this._amount;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} amount\n * @returns {this}\n */\n setAmount(amount) {\n this._requireNotFrozen();\n this._amount = convertAmountToLong(amount);\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._tokenId != null) {\n this._tokenId.validateChecksum(client);\n }\n }\n\n /**\n * @returns {Uint8Array[]}\n */\n get metadata() {\n return this._metadata;\n }\n\n /**\n * @param {Uint8Array | string} metadata\n * @returns {this}\n */\n addMetadata(metadata) {\n this._requireNotFrozen();\n\n if (typeof metadata === \"string\") {\n console.warn(\n \"Passing a `string` for token metadata is considered a bug, and has been removed. Please provide a `Uint8Array` instead.\",\n );\n }\n\n this._metadata.push(\n typeof metadata === \"string\" ? hex.decode(metadata) : metadata,\n );\n\n return this;\n }\n\n /**\n * @param {Uint8Array[]} metadata\n * @returns {this}\n */\n setMetadata(metadata) {\n this._requireNotFrozen();\n\n for (const data of metadata) {\n if (typeof data === \"string\") {\n console.warn(\n \"Passing a `string` for token metadata is considered a bug, and has been removed. Please provide a `Uint8Array` instead.\",\n );\n break;\n }\n }\n\n this._metadata = metadata.map((data) =>\n typeof data === \"string\" ? hex.decode(data) : data,\n );\n\n return this;\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.token.mintToken(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenMint\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenMintTransactionBody}\n */\n _makeTransactionData() {\n return {\n amount: this._amount,\n token: this._tokenId != null ? this._tokenId._toProtobuf() : null,\n metadata: this._metadata,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `TokenMintTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenMint\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenMintTransaction._fromProtobuf,\n);\n"],"names":["TokenMintTransaction","Transaction","constructor","props","super","this","_tokenId","_amount","_metadata","tokenId","setTokenId","amount","setAmount","metadata","setMetadata","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","mintToken","_fromProtobufTransactions","token","TokenId","undefined","_requireNotFrozen","fromString","clone","convertAmountToLong","_validateChecksums","client","validateChecksum","addMetadata","console","warn","push","hex.decode","data","map","_execute","channel","request","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"iMA+Be,MAAMA,UAA6BC,EAO9C,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,SAAW,KAMhBD,KAAKE,QAAU,KAMfF,KAAKG,UAAY,GAEI,MAAjBL,EAAMM,SACNJ,KAAKK,WAAWP,EAAMM,SAGN,MAAhBN,EAAMQ,QACNN,KAAKO,UAAUT,EAAMQ,QAGH,MAAlBR,EAAMU,UACNR,KAAKS,YAAYX,EAAMU,SAEnC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,UAEL,OAAOnB,EAAYqB,0BACf,IAAItB,EAAqB,CACrBS,QACuB,MAAnBY,EAAUE,MACJC,EAAQT,cAAcM,EAAUE,YAChCE,EACVd,OAA4B,MAApBU,EAAUV,OAAiBU,EAAUV,YAASc,EACtDZ,SAC0B,MAAtBQ,EAAUR,SAAmBQ,EAAUR,cAAWY,IAE1DT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,WAAIX,GACA,OAAOJ,KAAKC,QACpB,CAMI,UAAAI,CAAWD,GAOP,OANAJ,KAAKqB,oBACLrB,KAAKC,SACkB,iBAAZG,EACDe,EAAQG,WAAWlB,GACnBA,EAAQmB,QAEXvB,IACf,CAKI,UAAIM,GACA,OAAON,KAAKE,OACpB,CAMI,SAAAK,CAAUD,GAIN,OAHAN,KAAKqB,oBACLrB,KAAKE,QAAUsB,EAAoBlB,GAE5BN,IACf,CAKI,kBAAAyB,CAAmBC,GACM,MAAjB1B,KAAKC,UACLD,KAAKC,SAAS0B,iBAAiBD,EAE3C,CAKI,YAAIlB,GACA,OAAOR,KAAKG,SACpB,CAMI,WAAAyB,CAAYpB,GAaR,OAZAR,KAAKqB,oBAEmB,iBAAbb,GACPqB,QAAQC,KACJ,2HAIR9B,KAAKG,UAAU4B,KACS,iBAAbvB,EAAwBwB,EAAWxB,GAAYA,GAGnDR,IACf,CAMI,WAAAS,CAAYD,GACRR,KAAKqB,oBAEL,IAAK,MAAMY,KAAQzB,EACf,GAAoB,iBAATyB,EAAmB,CAC1BJ,QAAQC,KACJ,2HAEJ,KAChB,CAOQ,OAJA9B,KAAKG,UAAYK,EAAS0B,IAAKD,GACX,iBAATA,EAAoBD,EAAWC,GAAQA,GAG3CjC,IACf,CASI,QAAAmC,CAASC,EAASC,GACd,OAAOD,EAAQlB,MAAMF,UAAUqB,EACvC,CAOI,uBAAAC,GACI,MAAO,WACf,CAOI,oBAAAC,GACI,MAAO,CACHjC,OAAQN,KAAKE,QACbgB,MAAwB,MAAjBlB,KAAKC,SAAmBD,KAAKC,SAASuC,cAAgB,KAC7DhC,SAAUR,KAAKG,UAE3B,CAKI,SAAAsC,GAII,MAAO,wBAFHzC,KAAK0C,gBAAgBC,QACxB,WACwCC,YACjD,EAGAC,EAAqBC,IACjB,YAEAnD,EAAqBe"}
|
|
@@ -15,16 +15,16 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @namespace proto
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
20
|
-
* @typedef {import("@
|
|
21
|
-
* @typedef {import("@
|
|
22
|
-
* @typedef {import("@
|
|
23
|
-
* @typedef {import("@
|
|
24
|
-
* @typedef {import("@
|
|
25
|
-
* @typedef {import("@
|
|
26
|
-
* @typedef {import("@
|
|
27
|
-
* @typedef {import("@
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenFreezeStatus} HieroProto.proto.TokenFreezeStatus
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenKycStatus} HieroProto.proto.TokenKycStatus
|
|
20
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenPauseStatus} HieroProto.proto.TokenPauseStatus
|
|
21
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenNftInfo} HieroProto.proto.ITokenNftInfo
|
|
22
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftID} HieroProto.proto.INftID
|
|
23
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITimestamp} HieroProto.proto.ITimestamp
|
|
24
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
25
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
26
|
+
* @typedef {import("@hiero-ledger/proto").proto.IKey} HieroProto.proto.IKey
|
|
27
|
+
* @typedef {import("@hiero-ledger/proto").proto.IDuration} HieroProto.proto.IDuration
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
class TokenNftInfo {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
8
|
-
* @typedef {import("@
|
|
9
|
-
* @typedef {import("@
|
|
10
|
-
* @typedef {import("@
|
|
11
|
-
* @typedef {import("@
|
|
12
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenFreezeStatus} HieroProto.proto.TokenFreezeStatus
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenKycStatus} HieroProto.proto.TokenKycStatus
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenPauseStatus} HieroProto.proto.TokenPauseStatus
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenNftInfo} HieroProto.proto.ITokenNftInfo
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftID} HieroProto.proto.INftID
|
|
8
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITimestamp} HieroProto.proto.ITimestamp
|
|
9
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
10
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
11
|
+
* @typedef {import("@hiero-ledger/proto").proto.IKey} HieroProto.proto.IKey
|
|
12
|
+
* @typedef {import("@hiero-ledger/proto").proto.IDuration} HieroProto.proto.IDuration
|
|
13
13
|
*/
|
|
14
14
|
export default class TokenNftInfo {
|
|
15
15
|
/**
|
|
@@ -78,16 +78,16 @@ export default class TokenNftInfo {
|
|
|
78
78
|
}
|
|
79
79
|
export namespace HieroProto {
|
|
80
80
|
namespace proto {
|
|
81
|
-
type TokenFreezeStatus = import("@
|
|
82
|
-
type TokenKycStatus = import("@
|
|
83
|
-
type TokenPauseStatus = import("@
|
|
84
|
-
type ITokenNftInfo = import("@
|
|
85
|
-
type INftID = import("@
|
|
86
|
-
type ITimestamp = import("@
|
|
87
|
-
type ITokenID = import("@
|
|
88
|
-
type IAccountID = import("@
|
|
89
|
-
type IKey = import("@
|
|
90
|
-
type IDuration = import("@
|
|
81
|
+
type TokenFreezeStatus = import("@hiero-ledger/proto").proto.TokenFreezeStatus;
|
|
82
|
+
type TokenKycStatus = import("@hiero-ledger/proto").proto.TokenKycStatus;
|
|
83
|
+
type TokenPauseStatus = import("@hiero-ledger/proto").proto.TokenPauseStatus;
|
|
84
|
+
type ITokenNftInfo = import("@hiero-ledger/proto").proto.ITokenNftInfo;
|
|
85
|
+
type INftID = import("@hiero-ledger/proto").proto.INftID;
|
|
86
|
+
type ITimestamp = import("@hiero-ledger/proto").proto.ITimestamp;
|
|
87
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
88
|
+
type IAccountID = import("@hiero-ledger/proto").proto.IAccountID;
|
|
89
|
+
type IKey = import("@hiero-ledger/proto").proto.IKey;
|
|
90
|
+
type IDuration = import("@hiero-ledger/proto").proto.IDuration;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
import NftId from "./NftId.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenNftInfo.js","sources":["../../src/token/TokenNftInfo.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport NftId from \"./NftId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport * as hex from \"../encoding/hex.js\";\nimport LedgerId from \"../LedgerId.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenNftInfo.js","sources":["../../src/token/TokenNftInfo.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport NftId from \"./NftId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport * as hex from \"../encoding/hex.js\";\nimport LedgerId from \"../LedgerId.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.TokenFreezeStatus} HieroProto.proto.TokenFreezeStatus\n * @typedef {import(\"@hiero-ledger/proto\").proto.TokenKycStatus} HieroProto.proto.TokenKycStatus\n * @typedef {import(\"@hiero-ledger/proto\").proto.TokenPauseStatus} HieroProto.proto.TokenPauseStatus\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenNftInfo} HieroProto.proto.ITokenNftInfo\n * @typedef {import(\"@hiero-ledger/proto\").proto.INftID} HieroProto.proto.INftID\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITimestamp} HieroProto.proto.ITimestamp\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAccountID} HieroProto.proto.IAccountID\n * @typedef {import(\"@hiero-ledger/proto\").proto.IKey} HieroProto.proto.IKey\n * @typedef {import(\"@hiero-ledger/proto\").proto.IDuration} HieroProto.proto.IDuration\n */\n\nexport default class TokenNftInfo {\n /**\n * @private\n * @param {object} props\n * @param {NftId} props.nftId\n * @param {AccountId} props.accountId\n * @param {Timestamp} props.creationTime\n * @param {Uint8Array | null} props.metadata\n * @param {LedgerId|null} props.ledgerId\n * @param {AccountId|null} props.spenderId\n */\n constructor(props) {\n /**\n * ID of the nft instance\n *\n * @readonly\n */\n this.nftId = props.nftId;\n\n /**\n * @readonly\n */\n this.accountId = props.accountId;\n\n /**\n * @readonly\n */\n this.creationTime = props.creationTime;\n\n /**\n * @readonly\n */\n this.metadata = props.metadata;\n\n this.ledgerId = props.ledgerId;\n\n this.spenderId = props.spenderId;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITokenNftInfo} info\n * @returns {TokenNftInfo}\n */\n static _fromProtobuf(info) {\n return new TokenNftInfo({\n nftId: NftId._fromProtobuf(\n /** @type {HieroProto.proto.INftID} */ (info.nftID),\n ),\n accountId: AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (info.accountID),\n ),\n creationTime: Timestamp._fromProtobuf(\n /** @type {HieroProto.proto.ITimestamp} */ (info.creationTime),\n ),\n metadata: info.metadata !== undefined ? info.metadata : null,\n ledgerId:\n info.ledgerId != null\n ? LedgerId.fromBytes(info.ledgerId)\n : null,\n spenderId:\n info.spenderId != null\n ? AccountId._fromProtobuf(info.spenderId)\n : null,\n });\n }\n\n /**\n * @returns {HieroProto.proto.ITokenNftInfo}\n */\n _toProtobuf() {\n return {\n nftID: this.nftId._toProtobuf(),\n accountID: this.accountId._toProtobuf(),\n creationTime: this.creationTime._toProtobuf(),\n metadata: this.metadata,\n ledgerId: this.ledgerId != null ? this.ledgerId.toBytes() : null,\n spenderId:\n this.spenderId != null ? this.spenderId._toProtobuf() : null,\n };\n }\n\n /**\n * @typedef {object} TokenNftInfoJson\n * @property {string} nftId\n * @property {string} accountId\n * @property {string} creationTime\n * @property {string | null} metadata\n * @property {string | null} ledgerId\n * @property {string | null} spenderId\n * @returns {TokenNftInfoJson}\n */\n toJson() {\n return {\n nftId: this.nftId.toString(),\n accountId: this.accountId.toString(),\n creationTime: this.creationTime.toString(),\n metadata: this.metadata != null ? hex.encode(this.metadata) : null,\n ledgerId: this.ledgerId != null ? this.ledgerId.toString() : null,\n spenderId:\n this.spenderId != null ? this.spenderId.toString() : null,\n };\n }\n\n /**\n * @returns {string}\n */\n toString() {\n return JSON.stringify(this.toJson());\n }\n}\n"],"names":["TokenNftInfo","constructor","props","this","nftId","accountId","creationTime","metadata","ledgerId","spenderId","Object","freeze","_fromProtobuf","info","NftId","AccountId","Timestamp","undefined","LedgerId","fromBytes","_toProtobuf","nftID","accountID","toBytes","toJson","toString","hex.encode","JSON","stringify"],"mappings":"0KAsBe,MAAMA,EAWjB,WAAAC,CAAYC,GAMRC,KAAKC,MAAQF,EAAME,MAKnBD,KAAKE,UAAYH,EAAMG,UAKvBF,KAAKG,aAAeJ,EAAMI,aAK1BH,KAAKI,SAAWL,EAAMK,SAEtBJ,KAAKK,SAAWN,EAAMM,SAEtBL,KAAKM,UAAYP,EAAMO,UAEvBC,OAAOC,OAAOR,KACtB,CAOI,oBAAOS,CAAcC,GACjB,OAAO,IAAIb,EAAa,CACpBI,MAAOU,EAAMF,cAC+BC,EAAU,OAEtDR,UAAWU,EAAUH,cAC2BC,EAAc,WAE9DP,aAAcU,EAAUJ,cACwBC,EAAiB,cAEjEN,cAA4BU,IAAlBJ,EAAKN,SAAyBM,EAAKN,SAAW,KACxDC,SACqB,MAAjBK,EAAKL,SACCU,EAASC,UAAUN,EAAKL,UACxB,KACVC,UACsB,MAAlBI,EAAKJ,UACCM,EAAUH,cAAcC,EAAKJ,WAC7B,MAEtB,CAKI,WAAAW,GACI,MAAO,CACHC,MAAOlB,KAAKC,MAAMgB,cAClBE,UAAWnB,KAAKE,UAAUe,cAC1Bd,aAAcH,KAAKG,aAAac,cAChCb,SAAUJ,KAAKI,SACfC,SAA2B,MAAjBL,KAAKK,SAAmBL,KAAKK,SAASe,UAAY,KAC5Dd,UACsB,MAAlBN,KAAKM,UAAoBN,KAAKM,UAAUW,cAAgB,KAExE,CAYI,MAAAI,GACI,MAAO,CACHpB,MAAOD,KAAKC,MAAMqB,WAClBpB,UAAWF,KAAKE,UAAUoB,WAC1BnB,aAAcH,KAAKG,aAAamB,WAChClB,SAA2B,MAAjBJ,KAAKI,SAAmBmB,EAAWvB,KAAKI,UAAY,KAC9DC,SAA2B,MAAjBL,KAAKK,SAAmBL,KAAKK,SAASiB,WAAa,KAC7DhB,UACsB,MAAlBN,KAAKM,UAAoBN,KAAKM,UAAUgB,WAAa,KAErE,CAKI,QAAAA,GACI,OAAOE,KAAKC,UAAUzB,KAAKqB,SACnC"}
|
|
@@ -19,17 +19,17 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @namespace proto
|
|
22
|
-
* @typedef {import("@
|
|
23
|
-
* @typedef {import("@
|
|
24
|
-
* @typedef {import("@
|
|
25
|
-
* @typedef {import("@
|
|
26
|
-
* @typedef {import("@
|
|
27
|
-
* @typedef {import("@
|
|
28
|
-
* @typedef {import("@
|
|
29
|
-
* @typedef {import("@
|
|
30
|
-
* @typedef {import("@
|
|
31
|
-
* @typedef {import("@
|
|
32
|
-
* @typedef {import("@
|
|
22
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQuery} HieroProto.proto.IQuery
|
|
23
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
|
|
24
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponse} HieroProto.proto.IResponse
|
|
25
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenNftInfo} HieroProto.proto.ITokenNftInfo
|
|
26
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
|
|
27
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetNftInfoQuery} HieroProto.proto.ITokenGetNftInfoQuery
|
|
28
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetNftInfosQuery} HieroProto.proto.ITokenGetNftInfosQuery
|
|
29
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetAccountNftInfosQuery} HieroProto.proto.ITokenGetAccountNftInfosQuery
|
|
30
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetNftInfoResponse} HieroProto.proto.ITokenGetNftInfoResponse
|
|
31
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetNftInfosResponse} HieroProto.proto.ITokenGetNftInfosResponse
|
|
32
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetAccountNftInfosResponse} HieroProto.proto.ITokenGetAccountNftInfosResponse
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
8
|
-
* @typedef {import("@
|
|
9
|
-
* @typedef {import("@
|
|
10
|
-
* @typedef {import("@
|
|
11
|
-
* @typedef {import("@
|
|
12
|
-
* @typedef {import("@
|
|
13
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQuery} HieroProto.proto.IQuery
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponse} HieroProto.proto.IResponse
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenNftInfo} HieroProto.proto.ITokenNftInfo
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
|
|
8
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetNftInfoQuery} HieroProto.proto.ITokenGetNftInfoQuery
|
|
9
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetNftInfosQuery} HieroProto.proto.ITokenGetNftInfosQuery
|
|
10
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetAccountNftInfosQuery} HieroProto.proto.ITokenGetAccountNftInfosQuery
|
|
11
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetNftInfoResponse} HieroProto.proto.ITokenGetNftInfoResponse
|
|
12
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetNftInfosResponse} HieroProto.proto.ITokenGetNftInfosResponse
|
|
13
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenGetAccountNftInfosResponse} HieroProto.proto.ITokenGetAccountNftInfosResponse
|
|
14
14
|
*/
|
|
15
15
|
/**
|
|
16
16
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
@@ -127,17 +127,17 @@ export default class TokenNftInfoQuery extends Query<TokenNftInfo[]> {
|
|
|
127
127
|
}
|
|
128
128
|
export namespace HieroProto {
|
|
129
129
|
namespace proto {
|
|
130
|
-
type IQuery = import("@
|
|
131
|
-
type IQueryHeader = import("@
|
|
132
|
-
type IResponse = import("@
|
|
133
|
-
type ITokenNftInfo = import("@
|
|
134
|
-
type IResponseHeader = import("@
|
|
135
|
-
type ITokenGetNftInfoQuery = import("@
|
|
136
|
-
type ITokenGetNftInfosQuery = import("@
|
|
137
|
-
type ITokenGetAccountNftInfosQuery = import("@
|
|
138
|
-
type ITokenGetNftInfoResponse = import("@
|
|
139
|
-
type ITokenGetNftInfosResponse = import("@
|
|
140
|
-
type ITokenGetAccountNftInfosResponse = import("@
|
|
130
|
+
type IQuery = import("@hiero-ledger/proto").proto.IQuery;
|
|
131
|
+
type IQueryHeader = import("@hiero-ledger/proto").proto.IQueryHeader;
|
|
132
|
+
type IResponse = import("@hiero-ledger/proto").proto.IResponse;
|
|
133
|
+
type ITokenNftInfo = import("@hiero-ledger/proto").proto.ITokenNftInfo;
|
|
134
|
+
type IResponseHeader = import("@hiero-ledger/proto").proto.IResponseHeader;
|
|
135
|
+
type ITokenGetNftInfoQuery = import("@hiero-ledger/proto").proto.ITokenGetNftInfoQuery;
|
|
136
|
+
type ITokenGetNftInfosQuery = import("@hiero-ledger/proto").proto.ITokenGetNftInfosQuery;
|
|
137
|
+
type ITokenGetAccountNftInfosQuery = import("@hiero-ledger/proto").proto.ITokenGetAccountNftInfosQuery;
|
|
138
|
+
type ITokenGetNftInfoResponse = import("@hiero-ledger/proto").proto.ITokenGetNftInfoResponse;
|
|
139
|
+
type ITokenGetNftInfosResponse = import("@hiero-ledger/proto").proto.ITokenGetNftInfosResponse;
|
|
140
|
+
type ITokenGetAccountNftInfosResponse = import("@hiero-ledger/proto").proto.ITokenGetAccountNftInfosResponse;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
export type Channel = import("../channel/Channel.js").default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenNftInfoQuery.js","sources":["../../src/token/TokenNftInfoQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport NftId from \"./NftId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport TokenId from \"../token/TokenId.js\";\nimport TokenNftInfo from \"./TokenNftInfo.js\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Hbar from \"../Hbar.js\";\nimport Long from \"long\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.IQuery} HieroProto.proto.IQuery\n * @typedef {import(\"@hashgraph/proto\").proto.IQueryHeader} HieroProto.proto.IQueryHeader\n * @typedef {import(\"@hashgraph/proto\").proto.IResponse} HieroProto.proto.IResponse\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenNftInfo} HieroProto.proto.ITokenNftInfo\n * @typedef {import(\"@hashgraph/proto\").proto.IResponseHeader} HieroProto.proto.IResponseHeader\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenGetNftInfoQuery} HieroProto.proto.ITokenGetNftInfoQuery\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenGetNftInfosQuery} HieroProto.proto.ITokenGetNftInfosQuery\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenGetAccountNftInfosQuery} HieroProto.proto.ITokenGetAccountNftInfosQuery\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenGetNftInfoResponse} HieroProto.proto.ITokenGetNftInfoResponse\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenGetNftInfosResponse} HieroProto.proto.ITokenGetNftInfosResponse\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenGetAccountNftInfosResponse} HieroProto.proto.ITokenGetAccountNftInfosResponse\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n */\n\n/**\n * @augments {Query<TokenNftInfo[]>}\n */\nexport default class TokenNftInfoQuery extends Query {\n /**\n * @param {object} properties\n * @param {NftId | string} [properties.nftId]\n * @param {AccountId | string} [properties.accountId]\n * @param {TokenId | string} [properties.tokenId]\n * @param {Long | number} [properties.start]\n * @param {Long | number} [properties.end]\n */\n constructor(properties = {}) {\n super();\n\n /**\n * @private\n * @type {?NftId}\n */\n this._nftId = null;\n if (properties.nftId != null) {\n this.setNftId(properties.nftId);\n }\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._accountId = null;\n if (properties.accountId != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setAccountId(properties.accountId);\n }\n\n /**\n * @private\n * @type {?TokenId}\n */\n this._tokenId = null;\n if (properties.tokenId != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setTokenId(properties.tokenId);\n }\n\n /**\n * @private\n * @type {?Long}\n */\n this._start = null;\n if (properties.start != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setStart(properties.start);\n }\n\n /**\n * @private\n * @type {?Long}\n */\n this._end = null;\n if (properties.end != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setEnd(properties.end);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IQuery} query\n * @returns {TokenNftInfoQuery}\n */\n static _fromProtobuf(query) {\n if (query.tokenGetNftInfo != null) {\n const info = /** @type {HieroProto.proto.ITokenGetNftInfoQuery} */ (\n query.tokenGetNftInfo\n );\n\n return new TokenNftInfoQuery({\n nftId:\n info.nftID != null\n ? NftId._fromProtobuf(info.nftID)\n : undefined,\n });\n } else if (query.tokenGetAccountNftInfos != null) {\n const info =\n /** @type {HieroProto.proto.ITokenGetAccountNftInfosQuery} */ (\n query.tokenGetAccountNftInfos\n );\n\n return new TokenNftInfoQuery({\n accountId:\n info.accountID != null\n ? AccountId._fromProtobuf(info.accountID)\n : undefined,\n start: info.start != null ? info.start : undefined,\n end: info.end != null ? info.end : undefined,\n });\n } else {\n const info =\n /** @type {HieroProto.proto.ITokenGetNftInfosQuery} */ (\n query.tokenGetNftInfos\n );\n\n return new TokenNftInfoQuery({\n tokenId:\n info.tokenID != null\n ? TokenId._fromProtobuf(info.tokenID)\n : undefined,\n start: info.start != null ? info.start : undefined,\n end: info.end != null ? info.end : undefined,\n });\n }\n }\n\n /**\n * @returns {?NftId}\n */\n get nftId() {\n return this._nftId;\n }\n\n /**\n * Set the token ID for which the info is being requested.\n *\n * @param {NftId | string} nftId\n * @returns {TokenNftInfoQuery}\n */\n setNftId(nftId) {\n this._nftId =\n typeof nftId === \"string\"\n ? NftId.fromString(nftId)\n : NftId._fromProtobuf(nftId._toProtobuf());\n\n return this;\n }\n\n /**\n * @deprecated with no replacement\n * @returns {?AccountId}\n */\n get accountId() {\n console.warn(\n \"`TokenNftInfoQuery.accountId` is deprecated with no replacement\",\n );\n return this._accountId;\n }\n\n /**\n * @deprecated with no replacement\n * Set the token ID for which the info is being requested.\n * @param {AccountId | string} accountId\n * @returns {TokenNftInfoQuery}\n */\n setAccountId(accountId) {\n console.warn(\n \"`TokenNftInfoQuery.setAccountId()` is deprecated with no replacement\",\n );\n this._accountId =\n typeof accountId === \"string\"\n ? AccountId.fromString(accountId)\n : AccountId._fromProtobuf(accountId._toProtobuf());\n\n return this;\n }\n\n /**\n * @deprecated with no replacement\n * @returns {?TokenId}\n */\n get tokenId() {\n console.warn(\n \"`TokenNftInfoQuery.tokenId` is deprecated with no replacement\",\n );\n return this._tokenId;\n }\n\n /**\n * @deprecated with no replacement\n * Set the token ID for which the info is being requested.\n * @param {TokenId | string} tokenId\n * @returns {TokenNftInfoQuery}\n */\n setTokenId(tokenId) {\n console.warn(\n \"`TokenNftInfoQuery.setTokenId()` is deprecated with no replacement\",\n );\n this._tokenId =\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : TokenId._fromProtobuf(tokenId._toProtobuf());\n\n return this;\n }\n\n /**\n * @deprecated with no replacement\n * @returns {?Long}\n */\n get start() {\n console.warn(\n \"`TokenNftInfoQuery.start` is deprecated with no replacement\",\n );\n return this._start;\n }\n\n /**\n * @deprecated with no replacement\n * Set the token ID for which the info is being requested.\n * @param {Long | number} start\n * @returns {TokenNftInfoQuery}\n */\n setStart(start) {\n console.warn(\n \"`TokenNftInfoQuery.setStart()` is deprecated with no replacement\",\n );\n this._start =\n typeof start === \"number\" ? Long.fromNumber(start) : start;\n\n return this;\n }\n\n /**\n * @deprecated with no replacement\n * @returns {?Long}\n */\n get end() {\n console.warn(\n \"`TokenNftInfoQuery.end` is deprecated with no replacement\",\n );\n return this._end;\n }\n\n /**\n * @deprecated with no replacement\n * Set the token ID for which the info is being requested.\n * @param {Long | number} end\n * @returns {TokenNftInfoQuery}\n */\n setEnd(end) {\n console.warn(\n \"`TokenNftInfoQuery.setEnd()` is deprecated with no replacement\",\n );\n this._end = typeof end === \"number\" ? Long.fromNumber(end) : end;\n\n return this;\n }\n\n /**\n * @override\n * @param {import(\"../client/Client.js\").default<Channel, *>} client\n * @returns {Promise<Hbar>}\n */\n async getCost(client) {\n return super.getCost(client);\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<HieroProto.proto.IResponse>}\n */\n _execute(channel, request) {\n return channel.token.getTokenNftInfo(request);\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @returns {HieroProto.proto.IResponseHeader}\n */\n _mapResponseHeader(response) {\n const infos = /** @type {HieroProto.proto.ITokenGetNftInfoResponse} */ (\n response.tokenGetNftInfo\n );\n\n return /** @type {HieroProto.proto.IResponseHeader} */ (infos.header);\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @param {AccountId} nodeAccountId\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<TokenNftInfo[]>}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _mapResponse(response, nodeAccountId, request) {\n const nfts = [\n /** @type {HieroProto.proto.ITokenNftInfo} */\n (\n /** @type {HieroProto.proto.ITokenGetNftInfoResponse} */ (\n response.tokenGetNftInfo\n ).nft\n ),\n ];\n\n return Promise.resolve(\n nfts.map((nft) =>\n TokenNftInfo._fromProtobuf(\n /** @type {HieroProto.proto.ITokenNftInfo} */ (nft),\n ),\n ),\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IQueryHeader} header\n * @returns {HieroProto.proto.IQuery}\n */\n _onMakeRequest(header) {\n return {\n tokenGetNftInfo: {\n header,\n nftID: this._nftId != null ? this._nftId._toProtobuf() : null,\n },\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp =\n this._paymentTransactionId != null &&\n this._paymentTransactionId.validStart != null\n ? this._paymentTransactionId.validStart\n : this._timestamp;\n\n return `TokenNftInfoQuery:${timestamp.toString()}`;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nQUERY_REGISTRY.set(\"tokenGetNftInfo\", TokenNftInfoQuery._fromProtobuf);\n"],"names":["TokenNftInfoQuery","Query","constructor","properties","super","this","_nftId","nftId","setNftId","_accountId","accountId","setAccountId","_tokenId","tokenId","setTokenId","_start","start","setStart","_end","end","setEnd","_fromProtobuf","query","tokenGetNftInfo","info","nftID","NftId","undefined","tokenGetAccountNftInfos","accountID","AccountId","tokenID","TokenId","fromString","_toProtobuf","console","warn","Long","fromNumber","getCost","client","_execute","channel","request","token","getTokenNftInfo","_mapResponseHeader","response","_mapResponse","nodeAccountId","nfts","Promise","resolve","map","nft","TokenNftInfo","_onMakeRequest","header","_getLogId","_paymentTransactionId","validStart","_timestamp","toString","QUERY_REGISTRY","set"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"TokenNftInfoQuery.js","sources":["../../src/token/TokenNftInfoQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport NftId from \"./NftId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport TokenId from \"../token/TokenId.js\";\nimport TokenNftInfo from \"./TokenNftInfo.js\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Hbar from \"../Hbar.js\";\nimport Long from \"long\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IQuery} HieroProto.proto.IQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.IQueryHeader} HieroProto.proto.IQueryHeader\n * @typedef {import(\"@hiero-ledger/proto\").proto.IResponse} HieroProto.proto.IResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenNftInfo} HieroProto.proto.ITokenNftInfo\n * @typedef {import(\"@hiero-ledger/proto\").proto.IResponseHeader} HieroProto.proto.IResponseHeader\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenGetNftInfoQuery} HieroProto.proto.ITokenGetNftInfoQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenGetNftInfosQuery} HieroProto.proto.ITokenGetNftInfosQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenGetAccountNftInfosQuery} HieroProto.proto.ITokenGetAccountNftInfosQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenGetNftInfoResponse} HieroProto.proto.ITokenGetNftInfoResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenGetNftInfosResponse} HieroProto.proto.ITokenGetNftInfosResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenGetAccountNftInfosResponse} HieroProto.proto.ITokenGetAccountNftInfosResponse\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n */\n\n/**\n * @augments {Query<TokenNftInfo[]>}\n */\nexport default class TokenNftInfoQuery extends Query {\n /**\n * @param {object} properties\n * @param {NftId | string} [properties.nftId]\n * @param {AccountId | string} [properties.accountId]\n * @param {TokenId | string} [properties.tokenId]\n * @param {Long | number} [properties.start]\n * @param {Long | number} [properties.end]\n */\n constructor(properties = {}) {\n super();\n\n /**\n * @private\n * @type {?NftId}\n */\n this._nftId = null;\n if (properties.nftId != null) {\n this.setNftId(properties.nftId);\n }\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._accountId = null;\n if (properties.accountId != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setAccountId(properties.accountId);\n }\n\n /**\n * @private\n * @type {?TokenId}\n */\n this._tokenId = null;\n if (properties.tokenId != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setTokenId(properties.tokenId);\n }\n\n /**\n * @private\n * @type {?Long}\n */\n this._start = null;\n if (properties.start != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setStart(properties.start);\n }\n\n /**\n * @private\n * @type {?Long}\n */\n this._end = null;\n if (properties.end != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setEnd(properties.end);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IQuery} query\n * @returns {TokenNftInfoQuery}\n */\n static _fromProtobuf(query) {\n if (query.tokenGetNftInfo != null) {\n const info = /** @type {HieroProto.proto.ITokenGetNftInfoQuery} */ (\n query.tokenGetNftInfo\n );\n\n return new TokenNftInfoQuery({\n nftId:\n info.nftID != null\n ? NftId._fromProtobuf(info.nftID)\n : undefined,\n });\n } else if (query.tokenGetAccountNftInfos != null) {\n const info =\n /** @type {HieroProto.proto.ITokenGetAccountNftInfosQuery} */ (\n query.tokenGetAccountNftInfos\n );\n\n return new TokenNftInfoQuery({\n accountId:\n info.accountID != null\n ? AccountId._fromProtobuf(info.accountID)\n : undefined,\n start: info.start != null ? info.start : undefined,\n end: info.end != null ? info.end : undefined,\n });\n } else {\n const info =\n /** @type {HieroProto.proto.ITokenGetNftInfosQuery} */ (\n query.tokenGetNftInfos\n );\n\n return new TokenNftInfoQuery({\n tokenId:\n info.tokenID != null\n ? TokenId._fromProtobuf(info.tokenID)\n : undefined,\n start: info.start != null ? info.start : undefined,\n end: info.end != null ? info.end : undefined,\n });\n }\n }\n\n /**\n * @returns {?NftId}\n */\n get nftId() {\n return this._nftId;\n }\n\n /**\n * Set the token ID for which the info is being requested.\n *\n * @param {NftId | string} nftId\n * @returns {TokenNftInfoQuery}\n */\n setNftId(nftId) {\n this._nftId =\n typeof nftId === \"string\"\n ? NftId.fromString(nftId)\n : NftId._fromProtobuf(nftId._toProtobuf());\n\n return this;\n }\n\n /**\n * @deprecated with no replacement\n * @returns {?AccountId}\n */\n get accountId() {\n console.warn(\n \"`TokenNftInfoQuery.accountId` is deprecated with no replacement\",\n );\n return this._accountId;\n }\n\n /**\n * @deprecated with no replacement\n * Set the token ID for which the info is being requested.\n * @param {AccountId | string} accountId\n * @returns {TokenNftInfoQuery}\n */\n setAccountId(accountId) {\n console.warn(\n \"`TokenNftInfoQuery.setAccountId()` is deprecated with no replacement\",\n );\n this._accountId =\n typeof accountId === \"string\"\n ? AccountId.fromString(accountId)\n : AccountId._fromProtobuf(accountId._toProtobuf());\n\n return this;\n }\n\n /**\n * @deprecated with no replacement\n * @returns {?TokenId}\n */\n get tokenId() {\n console.warn(\n \"`TokenNftInfoQuery.tokenId` is deprecated with no replacement\",\n );\n return this._tokenId;\n }\n\n /**\n * @deprecated with no replacement\n * Set the token ID for which the info is being requested.\n * @param {TokenId | string} tokenId\n * @returns {TokenNftInfoQuery}\n */\n setTokenId(tokenId) {\n console.warn(\n \"`TokenNftInfoQuery.setTokenId()` is deprecated with no replacement\",\n );\n this._tokenId =\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : TokenId._fromProtobuf(tokenId._toProtobuf());\n\n return this;\n }\n\n /**\n * @deprecated with no replacement\n * @returns {?Long}\n */\n get start() {\n console.warn(\n \"`TokenNftInfoQuery.start` is deprecated with no replacement\",\n );\n return this._start;\n }\n\n /**\n * @deprecated with no replacement\n * Set the token ID for which the info is being requested.\n * @param {Long | number} start\n * @returns {TokenNftInfoQuery}\n */\n setStart(start) {\n console.warn(\n \"`TokenNftInfoQuery.setStart()` is deprecated with no replacement\",\n );\n this._start =\n typeof start === \"number\" ? Long.fromNumber(start) : start;\n\n return this;\n }\n\n /**\n * @deprecated with no replacement\n * @returns {?Long}\n */\n get end() {\n console.warn(\n \"`TokenNftInfoQuery.end` is deprecated with no replacement\",\n );\n return this._end;\n }\n\n /**\n * @deprecated with no replacement\n * Set the token ID for which the info is being requested.\n * @param {Long | number} end\n * @returns {TokenNftInfoQuery}\n */\n setEnd(end) {\n console.warn(\n \"`TokenNftInfoQuery.setEnd()` is deprecated with no replacement\",\n );\n this._end = typeof end === \"number\" ? Long.fromNumber(end) : end;\n\n return this;\n }\n\n /**\n * @override\n * @param {import(\"../client/Client.js\").default<Channel, *>} client\n * @returns {Promise<Hbar>}\n */\n async getCost(client) {\n return super.getCost(client);\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<HieroProto.proto.IResponse>}\n */\n _execute(channel, request) {\n return channel.token.getTokenNftInfo(request);\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @returns {HieroProto.proto.IResponseHeader}\n */\n _mapResponseHeader(response) {\n const infos = /** @type {HieroProto.proto.ITokenGetNftInfoResponse} */ (\n response.tokenGetNftInfo\n );\n\n return /** @type {HieroProto.proto.IResponseHeader} */ (infos.header);\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @param {AccountId} nodeAccountId\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<TokenNftInfo[]>}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _mapResponse(response, nodeAccountId, request) {\n const nfts = [\n /** @type {HieroProto.proto.ITokenNftInfo} */\n (\n /** @type {HieroProto.proto.ITokenGetNftInfoResponse} */ (\n response.tokenGetNftInfo\n ).nft\n ),\n ];\n\n return Promise.resolve(\n nfts.map((nft) =>\n TokenNftInfo._fromProtobuf(\n /** @type {HieroProto.proto.ITokenNftInfo} */ (nft),\n ),\n ),\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IQueryHeader} header\n * @returns {HieroProto.proto.IQuery}\n */\n _onMakeRequest(header) {\n return {\n tokenGetNftInfo: {\n header,\n nftID: this._nftId != null ? this._nftId._toProtobuf() : null,\n },\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp =\n this._paymentTransactionId != null &&\n this._paymentTransactionId.validStart != null\n ? this._paymentTransactionId.validStart\n : this._timestamp;\n\n return `TokenNftInfoQuery:${timestamp.toString()}`;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nQUERY_REGISTRY.set(\"tokenGetNftInfo\", TokenNftInfoQuery._fromProtobuf);\n"],"names":["TokenNftInfoQuery","Query","constructor","properties","super","this","_nftId","nftId","setNftId","_accountId","accountId","setAccountId","_tokenId","tokenId","setTokenId","_start","start","setStart","_end","end","setEnd","_fromProtobuf","query","tokenGetNftInfo","info","nftID","NftId","undefined","tokenGetAccountNftInfos","accountID","AccountId","tokenID","TokenId","fromString","_toProtobuf","console","warn","Long","fromNumber","getCost","client","_execute","channel","request","token","getTokenNftInfo","_mapResponseHeader","response","_mapResponse","nodeAccountId","nfts","Promise","resolve","map","nft","TokenNftInfo","_onMakeRequest","header","_getLogId","_paymentTransactionId","validStart","_timestamp","toString","QUERY_REGISTRY","set"],"mappings":"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"}
|
|
@@ -12,11 +12,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @namespace proto
|
|
15
|
-
* @typedef {import("@
|
|
16
|
-
* @typedef {import("@
|
|
17
|
-
* @typedef {import("@
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
15
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenTransferList} HieroProto.proto.ITokenTransferList
|
|
16
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountAmount} HieroProto.proto.IAccountAmount
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftTransfer} HieroProto.proto.INftTransfer
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenTransferList} HieroProto.proto.ITokenTransferList
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountAmount} HieroProto.proto.IAccountAmount
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftTransfer} HieroProto.proto.INftTransfer
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
@@ -57,11 +57,11 @@ export default class TokenNftTransfer {
|
|
|
57
57
|
}
|
|
58
58
|
export namespace HieroProto {
|
|
59
59
|
namespace proto {
|
|
60
|
-
type ITokenTransferList = import("@
|
|
61
|
-
type IAccountAmount = import("@
|
|
62
|
-
type INftTransfer = import("@
|
|
63
|
-
type IAccountID = import("@
|
|
64
|
-
type ITokenID = import("@
|
|
60
|
+
type ITokenTransferList = import("@hiero-ledger/proto").proto.ITokenTransferList;
|
|
61
|
+
type IAccountAmount = import("@hiero-ledger/proto").proto.IAccountAmount;
|
|
62
|
+
type INftTransfer = import("@hiero-ledger/proto").proto.INftTransfer;
|
|
63
|
+
type IAccountID = import("@hiero-ledger/proto").proto.IAccountID;
|
|
64
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
export type BigNumber = import("bignumber.js").default;
|