@hiero-ledger/sdk 2.77.0 → 2.78.0-beta.2
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 +592 -592
- package/dist/umd.min.js +2 -2
- 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/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 +1 -1
- package/lib/channel/Channel.d.ts +1 -1
- package/lib/channel/Channel.js +1 -1
- package/lib/channel/Channel.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 -1
- package/lib/network/AddressBookQuery.js +1 -1
- package/lib/network/AddressBookQuery.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 +3 -3
- 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/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 +1 -1
- 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 -1
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveHashQuery.js","sources":["../../src/account/LiveHashQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport AccountId from \"./AccountId.js\";\nimport LiveHash from \"./LiveHash.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"LiveHashQuery.js","sources":["../../src/account/LiveHashQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport AccountId from \"./AccountId.js\";\nimport LiveHash from \"./LiveHash.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.ICryptoGetLiveHashQuery} HieroProto.proto.ICryptoGetLiveHashQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.ICryptoGetLiveHashResponse} HieroProto.proto.ICryptoGetLiveHashResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.ILiveHash} HieroProto.proto.ILiveHash\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n */\n\n/**\n * @augments {Query<LiveHash>}\n * @deprecated\n * Тhis query is no longer supported.\n */\nexport default class LiveHashQuery extends Query {\n /**\n * @param {object} [props]\n * @param {AccountId | string} [props.accountId]\n * @param {Uint8Array} [props.hash]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @type {?AccountId}\n * @private\n */\n this._accountId = null;\n\n if (props.accountId != null) {\n this.setAccountId(props.accountId);\n }\n\n /**\n * @type {?Uint8Array}\n * @private\n */\n this._hash = null;\n\n if (props.hash != null) {\n this.setHash(props.hash);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IQuery} query\n * @returns {LiveHashQuery}\n */\n static _fromProtobuf(query) {\n const hash = /** @type {HieroProto.proto.ICryptoGetLiveHashQuery} */ (\n query.cryptoGetLiveHash\n );\n\n // eslint-disable-next-line deprecation/deprecation\n return new LiveHashQuery({\n accountId:\n hash.accountID != null\n ? AccountId._fromProtobuf(hash.accountID)\n : undefined,\n hash: hash.hash != null ? hash.hash : undefined,\n });\n }\n\n /**\n * @returns {?AccountId}\n */\n get accountId() {\n return this._accountId;\n }\n\n /**\n * Set the account to which the livehash is associated.\n *\n * @param {AccountId | string} accountId\n * @returns {this}\n */\n setAccountId(accountId) {\n this._accountId =\n accountId instanceof AccountId\n ? accountId\n : AccountId.fromString(accountId);\n\n return this;\n }\n\n /**\n * @returns {?Uint8Array}\n */\n get liveHash() {\n return this._hash;\n }\n\n /**\n * Set the SHA-384 data in the livehash.\n *\n * @param {Uint8Array} hash\n * @returns {this}\n */\n setHash(hash) {\n this._hash = hash;\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._accountId != null) {\n this._accountId.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.crypto.getLiveHash(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 cryptoGetLiveHash =\n /** @type {HieroProto.proto.ICryptoGetLiveHashResponse} */ (\n response.cryptoGetLiveHash\n );\n return /** @type {HieroProto.proto.IResponseHeader} */ (\n cryptoGetLiveHash.header\n );\n }\n\n /**\n * @protected\n * @override\n * @param {HieroProto.proto.IResponse} response\n * @returns {Promise<LiveHash>}\n */\n _mapResponse(response) {\n const hashes =\n /** @type {HieroProto.proto.ICryptoGetLiveHashResponse} */ (\n response.cryptoGetLiveHash\n );\n\n return Promise.resolve(\n LiveHash._fromProtobuf(\n /** @type {HieroProto.proto.ILiveHash} */ (hashes.liveHash),\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 cryptoGetLiveHash: {\n header,\n accountID:\n this._accountId != null\n ? this._accountId._toProtobuf()\n : null,\n hash: this._hash,\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 `LiveHashQuery:${timestamp.toString()}`;\n }\n}\n\n// @ts-ignore\n// eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation\nQUERY_REGISTRY.set(\"cryptoGetLiveHash\", LiveHashQuery._fromProtobuf);\n"],"names":["LiveHashQuery","Query","constructor","props","super","this","_accountId","accountId","setAccountId","_hash","hash","setHash","_fromProtobuf","query","accountID","AccountId","undefined","fromString","liveHash","_validateChecksums","client","validateChecksum","_execute","channel","request","crypto","getLiveHash","_mapResponseHeader","response","_mapResponse","hashes","Promise","resolve","LiveHash","_onMakeRequest","header","cryptoGetLiveHash","_toProtobuf","_getLogId","_paymentTransactionId","validStart","_timestamp","toString","QUERY_REGISTRY","set"],"mappings":"iHA2Be,MAAMA,UAAsBC,EAMvC,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,WAAa,KAEK,MAAnBH,EAAMI,WACNF,KAAKG,aAAaL,EAAMI,WAO5BF,KAAKI,MAAQ,KAEK,MAAdN,EAAMO,MACNL,KAAKM,QAAQR,EAAMO,KAE/B,CAOI,oBAAOE,CAAcC,GACjB,MAAMH,EACFG,EACH,kBAGD,OAAO,IAAIb,EAAc,CACrBO,UACsB,MAAlBG,EAAKI,UACCC,EAAUH,cAAcF,EAAKI,gBAC7BE,EACVN,KAAmB,MAAbA,EAAKA,KAAeA,EAAKA,UAAOM,GAElD,CAKI,aAAIT,GACA,OAAOF,KAAKC,UACpB,CAQI,YAAAE,CAAaD,GAMT,OALAF,KAAKC,WACDC,aAAqBQ,EACfR,EACAQ,EAAUE,WAAWV,GAExBF,IACf,CAKI,YAAIa,GACA,OAAOb,KAAKI,KACpB,CAQI,OAAAE,CAAQD,GAGJ,OAFAL,KAAKI,MAAQC,EAENL,IACf,CAKI,kBAAAc,CAAmBC,GACQ,MAAnBf,KAAKC,YACLD,KAAKC,WAAWe,iBAAiBD,EAE7C,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQE,OAAOC,YAAYF,EAC1C,CAQI,kBAAAG,CAAmBC,GAKf,OAFQA,EACH,kBAGb,MACA,CAQI,YAAAC,CAAaD,GACT,MAAME,EAEEF,EACH,kBAEL,OAAOG,QAAQC,QACXC,EAASrB,cACsCkB,EAAe,UAG1E,CAQI,cAAAI,CAAeC,GACX,MAAO,CACHC,kBAAmB,CACfD,SACArB,UACuB,MAAnBT,KAAKC,WACCD,KAAKC,WAAW+B,cAChB,KACV3B,KAAML,KAAKI,OAG3B,CAKI,SAAA6B,GAOI,MAAO,kBAL2B,MAA9BjC,KAAKkC,uBACoC,MAAzClC,KAAKkC,sBAAsBC,WACrBnC,KAAKkC,sBAAsBC,WAC3BnC,KAAKoC,YAEmBC,YAC1C,EAKAC,EAAeC,IAAI,oBAAqB5C,EAAcY"}
|
|
@@ -11,8 +11,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @namespace proto
|
|
14
|
-
* @typedef {import("@
|
|
15
|
-
* @typedef {import("@
|
|
14
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenBalance} HieroProto.proto.ITokenBalance
|
|
15
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenBalance} HieroProto.proto.ITokenBalance
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @augments {ObjectMap<TokenId, number | null>}
|
|
@@ -11,8 +11,8 @@ export default class NullableTokenDecimalMap extends ObjectMap<TokenId, number |
|
|
|
11
11
|
}
|
|
12
12
|
export namespace HieroProto {
|
|
13
13
|
namespace proto {
|
|
14
|
-
type ITokenBalance = import("@
|
|
15
|
-
type ITokenID = import("@
|
|
14
|
+
type ITokenBalance = import("@hiero-ledger/proto").proto.ITokenBalance;
|
|
15
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
import TokenId from "../token/TokenId.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NullableTokenDecimalMap.js","sources":["../../src/account/NullableTokenDecimalMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport ObjectMap from \"../ObjectMap.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"NullableTokenDecimalMap.js","sources":["../../src/account/NullableTokenDecimalMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport ObjectMap from \"../ObjectMap.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenBalance} HieroProto.proto.ITokenBalance\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @augments {ObjectMap<TokenId, number | null>}\n */\nexport default class NullableTokenDecimalMap extends ObjectMap {\n constructor() {\n super((s) => TokenId.fromString(s));\n }\n}\n"],"names":["NullableTokenDecimalMap","ObjectMap","constructor","super","s","TokenId","fromString"],"mappings":"kEAce,MAAMA,UAAgCC,EACjD,WAAAC,GACIC,MAAOC,GAAMC,EAAQC,WAAWF,GACxC"}
|
|
@@ -11,8 +11,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @namespace proto
|
|
14
|
-
* @typedef {import("@
|
|
15
|
-
* @typedef {import("@
|
|
14
|
+
* @typedef {import("@hiero-ledger/proto").proto.IProxyStaker} HieroProto.proto.IProxyStaker
|
|
15
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.IProxyStaker} HieroProto.proto.IProxyStaker
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
@@ -44,8 +44,8 @@ export default class ProxyStaker {
|
|
|
44
44
|
}
|
|
45
45
|
export namespace HieroProto {
|
|
46
46
|
namespace proto {
|
|
47
|
-
type IProxyStaker = import("@
|
|
48
|
-
type IAccountID = import("@
|
|
47
|
+
type IProxyStaker = import("@hiero-ledger/proto").proto.IProxyStaker;
|
|
48
|
+
type IAccountID = import("@hiero-ledger/proto").proto.IAccountID;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
export type BigNumber = import("bignumber.js").default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProxyStaker.js","sources":["../../src/account/ProxyStaker.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport AccountId from \"./AccountId.js\";\nimport Hbar from \"../Hbar.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"ProxyStaker.js","sources":["../../src/account/ProxyStaker.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport AccountId from \"./AccountId.js\";\nimport Hbar from \"../Hbar.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IProxyStaker} HieroProto.proto.IProxyStaker\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAccountID} HieroProto.proto.IAccountID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * An account, and the amount that it sends or receives during a cryptocurrency transfer.\n */\nexport default class ProxyStaker {\n /**\n * @private\n * @param {object} props\n * @param {AccountId} props.accountId\n * @param {number | string | Long | BigNumber | Hbar} props.amount\n */\n constructor(props) {\n /**\n * The Account ID that sends or receives cryptocurrency.\n *\n * @readonly\n */\n this.accountId = props.accountId;\n\n /**\n * The amount of tinybars that the account sends(negative)\n * or receives(positive).\n *\n * @readonly\n */\n this.amount =\n props.amount instanceof Hbar\n ? props.amount\n : new Hbar(props.amount);\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IProxyStaker} transfer\n * @returns {ProxyStaker}\n */\n static _fromProtobuf(transfer) {\n return new ProxyStaker({\n accountId: AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (transfer.accountID),\n ),\n amount: Hbar.fromTinybars(\n transfer.amount != null ? transfer.amount : 0,\n ),\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IProxyStaker}\n */\n _toProtobuf() {\n return {\n accountID: this.accountId._toProtobuf(),\n amount: this.amount.toTinybars(),\n };\n }\n}\n"],"names":["ProxyStaker","constructor","props","this","accountId","amount","Hbar","Object","freeze","_fromProtobuf","transfer","AccountId","fromTinybars","_toProtobuf","accountID","toTinybars"],"mappings":"wDAkBe,MAAMA,EAOjB,WAAAC,CAAYC,GAMRC,KAAKC,UAAYF,EAAME,UAQvBD,KAAKE,OACDH,EAAMG,kBAAkBC,EAClBJ,EAAMG,OACN,IAAIC,EAAKJ,EAAMG,QAEzBE,OAAOC,OAAOL,KACtB,CAOI,oBAAOM,CAAcC,GACjB,OAAO,IAAIV,EAAY,CACnBI,UAAWO,EAAUF,cAC2BC,EAAkB,WAElEL,OAAQC,EAAKM,aACU,MAAnBF,EAASL,OAAiBK,EAASL,OAAS,IAG5D,CAMI,WAAAQ,GACI,MAAO,CACHC,UAAWX,KAAKC,UAAUS,cAC1BR,OAAQF,KAAKE,OAAOU,aAEhC"}
|
|
@@ -13,10 +13,10 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @namespace proto
|
|
16
|
-
* @typedef {import("@
|
|
17
|
-
* @typedef {import("@
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
16
|
+
* @typedef {import("@hiero-ledger/proto").proto.IGrantedTokenAllowance} HieroProto.proto.IGrantedTokenAllowance
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenAllowance} HieroProto.proto.ITokenAllowance
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.IGrantedTokenAllowance} HieroProto.proto.IGrantedTokenAllowance
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenAllowance} HieroProto.proto.ITokenAllowance
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* @typedef {import("../client/Client.js").default<*, *>} Client
|
|
@@ -82,10 +82,10 @@ export default class TokenAllowance {
|
|
|
82
82
|
}
|
|
83
83
|
export namespace HieroProto {
|
|
84
84
|
namespace proto {
|
|
85
|
-
type IGrantedTokenAllowance = import("@
|
|
86
|
-
type ITokenAllowance = import("@
|
|
87
|
-
type ITokenID = import("@
|
|
88
|
-
type IAccountID = import("@
|
|
85
|
+
type IGrantedTokenAllowance = import("@hiero-ledger/proto").proto.IGrantedTokenAllowance;
|
|
86
|
+
type ITokenAllowance = import("@hiero-ledger/proto").proto.ITokenAllowance;
|
|
87
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
88
|
+
type IAccountID = import("@hiero-ledger/proto").proto.IAccountID;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
export type Client = import("../client/Client.js").default<any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenAllowance.js","sources":["../../src/account/TokenAllowance.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport AccountId from \"./AccountId.js\";\nimport Long from \"long\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenAllowance.js","sources":["../../src/account/TokenAllowance.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport AccountId from \"./AccountId.js\";\nimport Long from \"long\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IGrantedTokenAllowance} HieroProto.proto.IGrantedTokenAllowance\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenAllowance} HieroProto.proto.ITokenAllowance\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAccountID} HieroProto.proto.IAccountID\n */\n\n/**\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * Represents a token allowance granted to a spender account by an owner account.\n *\n * The `TokenAllowance` class manages the permissions for one account to spend a specified\n * amount of tokens on behalf of another account. It includes details about the token, the\n * spender, the owner, and the amount allowed.\n */\nexport default class TokenAllowance {\n /**\n * @internal\n * @param {object} props\n * @param {TokenId} props.tokenId\n * @param {AccountId | null} props.spenderAccountId\n * @param {AccountId | null} props.ownerAccountId\n * @param {Long | number | BigNumber | bigint | null} props.amount\n */\n constructor(props) {\n /**\n * The token that the allowance pertains to.\n *\n * @readonly\n */\n this.tokenId = props.tokenId;\n\n /**\n * The account ID of the spender of the hbar allowance.\n *\n * @readonly\n */\n this.spenderAccountId = props.spenderAccountId;\n\n /**\n * The account ID of the owner of the hbar allowance.\n *\n * @readonly\n */\n this.ownerAccountId = props.ownerAccountId;\n\n /**\n * The current balance of the spender's token allowance.\n * **NOTE**: If `null`, the spender has access to all of the account owner's NFT instances\n * (currently owned and any in the future).\n *\n * @readonly\n */\n this.amount =\n props.amount != null ? convertAmountToLong(props.amount) : null;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITokenAllowance} allowance\n * @returns {TokenAllowance}\n */\n static _fromProtobuf(allowance) {\n return new TokenAllowance({\n tokenId: TokenId._fromProtobuf(\n /** @type {HieroProto.proto.ITokenID} */ (allowance.tokenId),\n ),\n spenderAccountId: AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (allowance.spender),\n ),\n ownerAccountId:\n allowance.owner != null\n ? AccountId._fromProtobuf(\n /**@type {HieroProto.proto.IAccountID}*/ (\n allowance.owner\n ),\n )\n : null,\n amount:\n allowance.amount != null\n ? Long.fromValue(/** @type {Long} */ (allowance.amount))\n : null,\n });\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IGrantedTokenAllowance} allowance\n * @param {AccountId} ownerAccountId\n * @returns {TokenAllowance}\n */\n static _fromGrantedProtobuf(allowance, ownerAccountId) {\n return new TokenAllowance({\n tokenId: TokenId._fromProtobuf(\n /** @type {HieroProto.proto.ITokenID} */ (allowance.tokenId),\n ),\n spenderAccountId: AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (allowance.spender),\n ),\n ownerAccountId,\n amount:\n allowance.amount != null\n ? Long.fromValue(/** @type {Long} */ (allowance.amount))\n : null,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.ITokenAllowance}\n */\n _toProtobuf() {\n return {\n tokenId: this.tokenId._toProtobuf(),\n spender:\n this.spenderAccountId != null\n ? this.spenderAccountId._toProtobuf()\n : null,\n owner:\n this.ownerAccountId != null\n ? this.ownerAccountId._toProtobuf()\n : null,\n amount: this.amount,\n };\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n this.tokenId.validateChecksum(client);\n\n if (this.ownerAccountId != null) {\n this.ownerAccountId.validateChecksum(client);\n }\n\n if (this.spenderAccountId != null) {\n this.spenderAccountId.validateChecksum(client);\n }\n }\n}\n"],"names":["TokenAllowance","constructor","props","this","tokenId","spenderAccountId","ownerAccountId","amount","convertAmountToLong","Object","freeze","_fromProtobuf","allowance","TokenId","AccountId","owner","Long","fromValue","_fromGrantedProtobuf","_toProtobuf","spender","_validateChecksums","client","validateChecksum"],"mappings":"sIA2Be,MAAMA,EASjB,WAAAC,CAAYC,GAMRC,KAAKC,QAAUF,EAAME,QAOrBD,KAAKE,iBAAmBH,EAAMG,iBAO9BF,KAAKG,eAAiBJ,EAAMI,eAS5BH,KAAKI,OACe,MAAhBL,EAAMK,OAAiBC,EAAoBN,EAAMK,QAAU,KAE/DE,OAAOC,OAAOP,KACtB,CAOI,oBAAOQ,CAAcC,GACjB,OAAO,IAAIZ,EAAe,CACtBI,QAASS,EAAQF,cAC6BC,EAAiB,SAE/DP,iBAAkBS,EAAUH,cACoBC,EAAiB,SAEjEN,eACuB,MAAnBM,EAAUG,MACJD,EAAUH,cAEFC,EAC9B,OAEsB,KACVL,OACwB,MAApBK,EAAUL,OACJS,EAAKC,UAA+BL,EAAgB,QACpD,MAEtB,CAQI,2BAAOM,CAAqBN,EAAWN,GACnC,OAAO,IAAIN,EAAe,CACtBI,QAASS,EAAQF,cAC6BC,EAAiB,SAE/DP,iBAAkBS,EAAUH,cACoBC,EAAiB,SAEjEN,iBACAC,OACwB,MAApBK,EAAUL,OACJS,EAAKC,UAA+BL,EAAgB,QACpD,MAEtB,CAMI,WAAAO,GACI,MAAO,CACHf,QAASD,KAAKC,QAAQe,cACtBC,QAC6B,MAAzBjB,KAAKE,iBACCF,KAAKE,iBAAiBc,cACtB,KACVJ,MAC2B,MAAvBZ,KAAKG,eACCH,KAAKG,eAAea,cACpB,KACVZ,OAAQJ,KAAKI,OAEzB,CAKI,kBAAAc,CAAmBC,GACfnB,KAAKC,QAAQmB,iBAAiBD,GAEH,MAAvBnB,KAAKG,gBACLH,KAAKG,eAAeiB,iBAAiBD,GAGZ,MAAzBnB,KAAKE,kBACLF,KAAKE,iBAAiBkB,iBAAiBD,EAEnD"}
|
|
@@ -11,8 +11,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @namespace proto
|
|
14
|
-
* @typedef {import("@
|
|
15
|
-
* @typedef {import("@
|
|
14
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenBalance} HieroProto.proto.ITokenBalance
|
|
15
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenBalance} HieroProto.proto.ITokenBalance
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef {import("long")} Long
|
|
@@ -14,8 +14,8 @@ export default class TokenBalanceMap extends ObjectMap<TokenId, import("long")>
|
|
|
14
14
|
}
|
|
15
15
|
export namespace HieroProto {
|
|
16
16
|
namespace proto {
|
|
17
|
-
type ITokenBalance = import("@
|
|
18
|
-
type ITokenID = import("@
|
|
17
|
+
type ITokenBalance = import("@hiero-ledger/proto").proto.ITokenBalance;
|
|
18
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
export type Long = import("long");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenBalanceMap.js","sources":["../../src/account/TokenBalanceMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport ObjectMap from \"../ObjectMap.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenBalanceMap.js","sources":["../../src/account/TokenBalanceMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport ObjectMap from \"../ObjectMap.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenBalance} HieroProto.proto.ITokenBalance\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"long\")} Long\n */\n\n/**\n * @augments {ObjectMap<TokenId, Long>}\n */\nexport default class TokenBalanceMap extends ObjectMap {\n constructor() {\n super((s) => TokenId.fromString(s));\n }\n}\n"],"names":["TokenBalanceMap","ObjectMap","constructor","super","s","TokenId","fromString"],"mappings":"kEAkBe,MAAMA,UAAwBC,EACzC,WAAAC,GACIC,MAAOC,GAAMC,EAAQC,WAAWF,GACxC"}
|
|
@@ -11,8 +11,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @namespace proto
|
|
14
|
-
* @typedef {import("@
|
|
15
|
-
* @typedef {import("@
|
|
14
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenBalance} HieroProto.proto.ITokenBalance
|
|
15
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenBalance} HieroProto.proto.ITokenBalance
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @augments {ObjectMap<TokenId, number>}
|
|
@@ -11,8 +11,8 @@ export default class TokenDecimalMap extends ObjectMap<TokenId, number> {
|
|
|
11
11
|
}
|
|
12
12
|
export namespace HieroProto {
|
|
13
13
|
namespace proto {
|
|
14
|
-
type ITokenBalance = import("@
|
|
15
|
-
type ITokenID = import("@
|
|
14
|
+
type ITokenBalance = import("@hiero-ledger/proto").proto.ITokenBalance;
|
|
15
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
import TokenId from "../token/TokenId.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenDecimalMap.js","sources":["../../src/account/TokenDecimalMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport ObjectMap from \"../ObjectMap.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenDecimalMap.js","sources":["../../src/account/TokenDecimalMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport ObjectMap from \"../ObjectMap.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenBalance} HieroProto.proto.ITokenBalance\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @augments {ObjectMap<TokenId, number>}\n */\nexport default class TokenDecimalMap extends ObjectMap {\n constructor() {\n super((s) => TokenId.fromString(s));\n }\n}\n"],"names":["TokenDecimalMap","ObjectMap","constructor","super","s","TokenId","fromString"],"mappings":"kEAce,MAAMA,UAAwBC,EACzC,WAAAC,GACIC,MAAOC,GAAMC,EAAQC,WAAWF,GACxC"}
|
|
@@ -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.IGrantedNftAllowance} HieroProto.proto.IGrantedNftAllowance
|
|
16
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftRemoveAllowance} HieroProto.proto.INftRemoveAllowance
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftAllowance} HieroProto.proto.INftAllowance
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
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.IGrantedNftAllowance} HieroProto.proto.IGrantedNftAllowance
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftRemoveAllowance} HieroProto.proto.INftRemoveAllowance
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftAllowance} HieroProto.proto.INftAllowance
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* @typedef {import("../client/Client.js").default<*, *>} Client
|
|
@@ -97,11 +97,11 @@ export default class TokenNftAllowance {
|
|
|
97
97
|
}
|
|
98
98
|
export namespace HieroProto {
|
|
99
99
|
namespace proto {
|
|
100
|
-
type IGrantedNftAllowance = import("@
|
|
101
|
-
type INftRemoveAllowance = import("@
|
|
102
|
-
type INftAllowance = import("@
|
|
103
|
-
type ITokenID = import("@
|
|
104
|
-
type IAccountID = import("@
|
|
100
|
+
type IGrantedNftAllowance = import("@hiero-ledger/proto").proto.IGrantedNftAllowance;
|
|
101
|
+
type INftRemoveAllowance = import("@hiero-ledger/proto").proto.INftRemoveAllowance;
|
|
102
|
+
type INftAllowance = import("@hiero-ledger/proto").proto.INftAllowance;
|
|
103
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
104
|
+
type IAccountID = import("@hiero-ledger/proto").proto.IAccountID;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
export type Client = import("../client/Client.js").default<any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenNftAllowance.js","sources":["../../src/account/TokenNftAllowance.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport AccountId from \"./AccountId.js\";\nimport Long from \"long\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenNftAllowance.js","sources":["../../src/account/TokenNftAllowance.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"../token/TokenId.js\";\nimport AccountId from \"./AccountId.js\";\nimport Long from \"long\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IGrantedNftAllowance} HieroProto.proto.IGrantedNftAllowance\n * @typedef {import(\"@hiero-ledger/proto\").proto.INftRemoveAllowance} HieroProto.proto.INftRemoveAllowance\n * @typedef {import(\"@hiero-ledger/proto\").proto.INftAllowance} HieroProto.proto.INftAllowance\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAccountID} HieroProto.proto.IAccountID\n */\n\n/**\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n */\n\n/**\n * The token that the allowance pertains to.\n */\nexport default class TokenNftAllowance {\n /**\n * @internal\n * @param {object} props\n * @param {TokenId} props.tokenId\n * @param {AccountId | null} props.spenderAccountId\n * @param {AccountId | null} props.ownerAccountId\n * @param {Long[] | null} props.serialNumbers\n * @param {boolean | null} props.allSerials\n * @param {AccountId | null} props.delegatingSpender\n */\n constructor(props) {\n /**\n * @readonly\n */\n this.tokenId = props.tokenId;\n\n /**\n * The account ID of the spender of the hbar allowance.\n *\n * @readonly\n */\n this.spenderAccountId = props.spenderAccountId;\n\n /**\n * The account ID of the owner of the hbar allowance.\n *\n * @readonly\n */\n this.ownerAccountId = props.ownerAccountId;\n\n /**\n * The current balance of the spender's token allowance.\n * **NOTE**: If `null`, the spender has access to all of the account owner's NFT instances\n * (currently owned and any in the future).\n *\n * @readonly\n */\n this.serialNumbers = props.serialNumbers;\n\n /**\n * @readonly\n */\n this.allSerials = props.allSerials;\n\n /**\n * The account ID of the spender who is granted approvedForAll allowance and granting\n * approval on an NFT serial to another spender.\n *\n * @readonly\n */\n this.delegatingSpender = props.delegatingSpender;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.INftAllowance} allowance\n * @returns {TokenNftAllowance}\n */\n static _fromProtobuf(allowance) {\n const allSerials =\n allowance.approvedForAll != null &&\n allowance.approvedForAll.value == true;\n return new TokenNftAllowance({\n tokenId: TokenId._fromProtobuf(\n /** @type {HieroProto.proto.ITokenID} */ (allowance.tokenId),\n ),\n spenderAccountId:\n allowance.spender != null\n ? AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n allowance.spender\n ),\n )\n : null,\n ownerAccountId:\n allowance.owner != null\n ? AccountId._fromProtobuf(\n /**@type {HieroProto.proto.IAccountID}*/ (\n allowance.owner\n ),\n )\n : null,\n serialNumbers: allSerials\n ? null\n : allowance.serialNumbers != null\n ? allowance.serialNumbers.map((serialNumber) =>\n Long.fromValue(serialNumber),\n )\n : [],\n allSerials,\n delegatingSpender:\n allowance.delegatingSpender != null\n ? AccountId._fromProtobuf(\n /**@type {HieroProto.proto.IAccountID}*/ (\n allowance.delegatingSpender\n ),\n )\n : null,\n });\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IGrantedNftAllowance} allowance\n * @param {AccountId} ownerAccountId\n * @returns {TokenNftAllowance}\n */\n static _fromGrantedProtobuf(allowance, ownerAccountId) {\n return new TokenNftAllowance({\n tokenId: TokenId._fromProtobuf(\n /** @type {HieroProto.proto.ITokenID} */ (allowance.tokenId),\n ),\n spenderAccountId: AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (allowance.spender),\n ),\n ownerAccountId,\n serialNumbers: [],\n allSerials: null,\n delegatingSpender: null,\n });\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.INftRemoveAllowance} allowance\n * @returns {TokenNftAllowance}\n */\n static _fromRemoveProtobuf(allowance) {\n return new TokenNftAllowance({\n tokenId: TokenId._fromProtobuf(\n /** @type {HieroProto.proto.ITokenID} */ (allowance.tokenId),\n ),\n spenderAccountId: null,\n ownerAccountId:\n allowance.owner != null\n ? AccountId._fromProtobuf(\n /**@type {HieroProto.proto.IAccountID}*/ (\n allowance.owner\n ),\n )\n : null,\n serialNumbers:\n allowance.serialNumbers != null\n ? allowance.serialNumbers.map((serialNumber) =>\n Long.fromValue(serialNumber),\n )\n : [],\n allSerials: null,\n delegatingSpender: null,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.INftAllowance}\n */\n _toProtobuf() {\n return {\n tokenId: this.tokenId._toProtobuf(),\n spender:\n this.spenderAccountId != null\n ? this.spenderAccountId._toProtobuf()\n : null,\n owner:\n this.ownerAccountId != null\n ? this.ownerAccountId._toProtobuf()\n : null,\n approvedForAll:\n this.serialNumbers == null ? { value: this.allSerials } : null,\n serialNumbers: this.serialNumbers,\n delegatingSpender:\n this.delegatingSpender != null\n ? this.delegatingSpender._toProtobuf()\n : null,\n };\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n this.tokenId.validateChecksum(client);\n\n if (this.ownerAccountId != null) {\n this.ownerAccountId.validateChecksum(client);\n }\n\n if (this.spenderAccountId != null) {\n this.spenderAccountId.validateChecksum(client);\n }\n }\n}\n"],"names":["TokenNftAllowance","constructor","props","this","tokenId","spenderAccountId","ownerAccountId","serialNumbers","allSerials","delegatingSpender","Object","freeze","_fromProtobuf","allowance","approvedForAll","value","TokenId","spender","AccountId","owner","map","serialNumber","Long","fromValue","_fromGrantedProtobuf","_fromRemoveProtobuf","_toProtobuf","_validateChecksums","client","validateChecksum"],"mappings":"qFAsBe,MAAMA,EAWjB,WAAAC,CAAYC,GAIRC,KAAKC,QAAUF,EAAME,QAOrBD,KAAKE,iBAAmBH,EAAMG,iBAO9BF,KAAKG,eAAiBJ,EAAMI,eAS5BH,KAAKI,cAAgBL,EAAMK,cAK3BJ,KAAKK,WAAaN,EAAMM,WAQxBL,KAAKM,kBAAoBP,EAAMO,kBAE/BC,OAAOC,OAAOR,KACtB,CAOI,oBAAOS,CAAcC,GACjB,MAAML,EAC0B,MAA5BK,EAAUC,gBACwB,GAAlCD,EAAUC,eAAeC,MAC7B,OAAO,IAAIf,EAAkB,CACzBI,QAASY,EAAQJ,cAC6BC,EAAiB,SAE/DR,iBACyB,MAArBQ,EAAUI,QACJC,EAAUN,cAEFC,EAC9B,SAEsB,KACVP,eACuB,MAAnBO,EAAUM,MACJD,EAAUN,cAEFC,EAC9B,OAEsB,KACVN,cAAeC,EACT,KAC2B,MAA3BK,EAAUN,cACVM,EAAUN,cAAca,IAAKC,GACzBC,EAAKC,UAAUF,IAEnB,GACNb,aACAC,kBACmC,MAA/BI,EAAUJ,kBACJS,EAAUN,cAEFC,EAC9B,mBAEsB,MAEtB,CAQI,2BAAOW,CAAqBX,EAAWP,GACnC,OAAO,IAAIN,EAAkB,CACzBI,QAASY,EAAQJ,cAC6BC,EAAiB,SAE/DR,iBAAkBa,EAAUN,cACoBC,EAAiB,SAEjEP,iBACAC,cAAe,GACfC,WAAY,KACZC,kBAAmB,MAE/B,CAOI,0BAAOgB,CAAoBZ,GACvB,OAAO,IAAIb,EAAkB,CACzBI,QAASY,EAAQJ,cAC6BC,EAAiB,SAE/DR,iBAAkB,KAClBC,eACuB,MAAnBO,EAAUM,MACJD,EAAUN,cAEFC,EAC9B,OAEsB,KACVN,cAC+B,MAA3BM,EAAUN,cACJM,EAAUN,cAAca,IAAKC,GACzBC,EAAKC,UAAUF,IAEnB,GACVb,WAAY,KACZC,kBAAmB,MAE/B,CAMI,WAAAiB,GACI,MAAO,CACHtB,QAASD,KAAKC,QAAQsB,cACtBT,QAC6B,MAAzBd,KAAKE,iBACCF,KAAKE,iBAAiBqB,cACtB,KACVP,MAC2B,MAAvBhB,KAAKG,eACCH,KAAKG,eAAeoB,cACpB,KACVZ,eAC0B,MAAtBX,KAAKI,cAAwB,CAAEQ,MAAOZ,KAAKK,YAAe,KAC9DD,cAAeJ,KAAKI,cACpBE,kBAC8B,MAA1BN,KAAKM,kBACCN,KAAKM,kBAAkBiB,cACvB,KAEtB,CAKI,kBAAAC,CAAmBC,GACfzB,KAAKC,QAAQyB,iBAAiBD,GAEH,MAAvBzB,KAAKG,gBACLH,KAAKG,eAAeuB,iBAAiBD,GAGZ,MAAzBzB,KAAKE,kBACLF,KAAKE,iBAAiBwB,iBAAiBD,EAEnD"}
|
|
@@ -13,11 +13,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @namespace proto
|
|
16
|
-
* @typedef {import("@
|
|
17
|
-
* @typedef {import("@
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
20
|
-
* @typedef {import("@
|
|
16
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenTransferList} HieroProto.proto.ITokenTransferList
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.INftTransfer} HieroProto.proto.INftTransfer
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountAmount} HieroProto.proto.IAccountAmount
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
20
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -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.INftTransfer} HieroProto.proto.INftTransfer
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountAmount} HieroProto.proto.IAccountAmount
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* @typedef {object} NftTransfer
|
|
@@ -36,11 +36,11 @@ export default class TokenNftTransferMap extends ObjectMap<TokenId, NftTransfer[
|
|
|
36
36
|
}
|
|
37
37
|
export namespace HieroProto {
|
|
38
38
|
namespace proto {
|
|
39
|
-
type ITokenTransferList = import("@
|
|
40
|
-
type INftTransfer = import("@
|
|
41
|
-
type IAccountAmount = import("@
|
|
42
|
-
type ITokenID = import("@
|
|
43
|
-
type IAccountID = import("@
|
|
39
|
+
type ITokenTransferList = import("@hiero-ledger/proto").proto.ITokenTransferList;
|
|
40
|
+
type INftTransfer = import("@hiero-ledger/proto").proto.INftTransfer;
|
|
41
|
+
type IAccountAmount = import("@hiero-ledger/proto").proto.IAccountAmount;
|
|
42
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
43
|
+
type IAccountID = import("@hiero-ledger/proto").proto.IAccountID;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
export type NftTransfer = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenNftTransferMap.js","sources":["../../src/account/TokenNftTransferMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Long from \"long\";\nimport TokenId from \"../token/TokenId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport ObjectMap from \"../ObjectMap.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenNftTransferMap.js","sources":["../../src/account/TokenNftTransferMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Long from \"long\";\nimport TokenId from \"../token/TokenId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport ObjectMap from \"../ObjectMap.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenTransferList} HieroProto.proto.ITokenTransferList\n * @typedef {import(\"@hiero-ledger/proto\").proto.INftTransfer} HieroProto.proto.INftTransfer\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAccountAmount} HieroProto.proto.IAccountAmount\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAccountID} HieroProto.proto.IAccountID\n */\n\n/**\n * @typedef {object} NftTransfer\n * @property {AccountId} sender\n * @property {AccountId} recipient\n * @property {Long} serial\n * @property {boolean} isApproved\n */\n\n/**\n * @augments {ObjectMap<TokenId, NftTransfer[]>}\n */\nexport default class TokenNftTransferMap extends ObjectMap {\n constructor() {\n super((s) => TokenId.fromString(s));\n }\n\n /**\n * @internal\n * @param {TokenId} tokenId\n * @param {NftTransfer} nftTransfer\n */\n __set(tokenId, nftTransfer) {\n const token = tokenId.toString();\n\n let _map = this._map.get(token);\n if (_map == null) {\n _map = [];\n this._map.set(token, _map);\n this.__map.set(tokenId, _map);\n }\n\n _map.push(nftTransfer);\n }\n\n /**\n * @param {HieroProto.proto.ITokenTransferList[]} transfers\n * @returns {TokenNftTransferMap}\n */\n static _fromProtobuf(transfers) {\n const tokenTransfersMap = new TokenNftTransferMap();\n\n for (const transfer of transfers) {\n const token = TokenId._fromProtobuf(\n /** @type {HieroProto.proto.ITokenID} */ (transfer.token),\n );\n\n for (const aa of transfer.nftTransfers != null\n ? transfer.nftTransfers\n : []) {\n const sender = AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n aa.senderAccountID\n ),\n );\n const recipient = AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n aa.receiverAccountID\n ),\n );\n\n tokenTransfersMap.__set(token, {\n sender,\n recipient,\n serial: Long.fromValue(\n /** @type {Long} */ (aa.serialNumber),\n ),\n isApproved: false,\n });\n }\n }\n\n return tokenTransfersMap;\n }\n\n /**\n * @returns {HieroProto.proto.ITokenTransferList[]}\n */\n _toProtobuf() {\n /** @type {HieroProto.proto.ITokenTransferList[]} */\n const tokenTransferList = [];\n\n for (const [tokenId, value] of this) {\n /** @type {HieroProto.proto.INftTransfer[]} */\n const transfers = [];\n\n for (const transfer of value) {\n transfers.push({\n senderAccountID: transfer.sender._toProtobuf(),\n receiverAccountID: transfer.recipient._toProtobuf(),\n serialNumber: transfer.serial,\n });\n }\n\n tokenTransferList.push({\n token: tokenId._toProtobuf(),\n nftTransfers: transfers,\n });\n }\n\n return tokenTransferList;\n }\n\n toJSON() {\n const obj = {};\n\n this._map.forEach((value, key) => {\n // @ts-ignore\n obj[key] = value.map((nftTransfer) => ({\n sender: nftTransfer.sender.toString(),\n recipient: nftTransfer.recipient.toString(),\n serial: nftTransfer.serial,\n isApproved: nftTransfer.isApproved,\n }));\n });\n\n return obj;\n }\n}\n"],"names":["TokenNftTransferMap","ObjectMap","constructor","super","s","TokenId","fromString","__set","tokenId","nftTransfer","token","toString","_map","this","get","set","__map","push","_fromProtobuf","transfers","tokenTransfersMap","transfer","aa","nftTransfers","sender","AccountId","recipient","serial","Long","fromValue","isApproved","_toProtobuf","tokenTransferList","value","senderAccountID","receiverAccountID","serialNumber","toJSON","obj","forEach","key","map"],"mappings":"oHA2Be,MAAMA,UAA4BC,EAC7C,WAAAC,GACIC,MAAOC,GAAMC,EAAQC,WAAWF,GACxC,CAOI,KAAAG,CAAMC,EAASC,GACX,MAAMC,EAAQF,EAAQG,WAEtB,IAAIC,EAAOC,KAAKD,KAAKE,IAAIJ,GACb,MAARE,IACAA,EAAO,GACPC,KAAKD,KAAKG,IAAIL,EAAOE,GACrBC,KAAKG,MAAMD,IAAIP,EAASI,IAG5BA,EAAKK,KAAKR,EAClB,CAMI,oBAAOS,CAAcC,GACjB,MAAMC,EAAoB,IAAIpB,EAE9B,IAAK,MAAMqB,KAAYF,EAAW,CAC9B,MAAMT,EAAQL,EAAQa,cACwBG,EAAc,OAG5D,IAAK,MAAMC,KAA+B,MAAzBD,EAASE,aACpBF,EAASE,aACT,GAAI,CACN,MAAMC,EAASC,EAAUP,cAEjBI,EACxB,iBAEsBI,EAAYD,EAAUP,cAEpBI,EACxB,mBAGgBF,EAAkBb,MAAMG,EAAO,CAC3Bc,SACAE,YACAC,OAAQC,EAAKC,UACYP,EAAe,cAExCQ,YAAY,GAEhC,CACA,CAEQ,OAAOV,CACf,CAKI,WAAAW,GAEI,MAAMC,EAAoB,GAE1B,IAAK,MAAOxB,EAASyB,KAAUpB,KAAM,CAEjC,MAAMM,EAAY,GAElB,IAAK,MAAME,KAAYY,EACnBd,EAAUF,KAAK,CACXiB,gBAAiBb,EAASG,OAAOO,cACjCI,kBAAmBd,EAASK,UAAUK,cACtCK,aAAcf,EAASM,SAI/BK,EAAkBf,KAAK,CACnBP,MAAOF,EAAQuB,cACfR,aAAcJ,GAE9B,CAEQ,OAAOa,CACf,CAEI,MAAAK,GACI,MAAMC,EAAM,CAAE,EAYd,OAVAzB,KAAKD,KAAK2B,QAAQ,CAACN,EAAOO,KAEtBF,EAAIE,GAAOP,EAAMQ,IAAKhC,IAAiB,CACnCe,OAAQf,EAAYe,OAAOb,WAC3Be,UAAWjB,EAAYiB,UAAUf,WACjCgB,OAAQlB,EAAYkB,OACpBG,WAAYrB,EAAYqB,gBAIzBQ,CACf"}
|
|
@@ -11,10 +11,10 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @namespace proto
|
|
14
|
-
* @typedef {import("@
|
|
15
|
-
* @typedef {import("@
|
|
16
|
-
* @typedef {import("@
|
|
17
|
-
* @typedef {import("@
|
|
14
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenRelationship} HieroProto.proto.ITokenRelationship
|
|
15
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenKycStatus} HieroProto.proto.TokenKycStatus
|
|
16
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenFreezeStatus} HieroProto.proto.TokenFreezeStatus
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenRelationship} HieroProto.proto.ITokenRelationship
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenKycStatus} HieroProto.proto.TokenKycStatus
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.TokenFreezeStatus} HieroProto.proto.TokenFreezeStatus
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Token's information related to the given Account
|
|
@@ -77,10 +77,10 @@ export default class TokenRelationship {
|
|
|
77
77
|
}
|
|
78
78
|
export namespace HieroProto {
|
|
79
79
|
namespace proto {
|
|
80
|
-
type ITokenRelationship = import("@
|
|
81
|
-
type TokenKycStatus = import("@
|
|
82
|
-
type TokenFreezeStatus = import("@
|
|
83
|
-
type ITokenID = import("@
|
|
80
|
+
type ITokenRelationship = import("@hiero-ledger/proto").proto.ITokenRelationship;
|
|
81
|
+
type TokenKycStatus = import("@hiero-ledger/proto").proto.TokenKycStatus;
|
|
82
|
+
type TokenFreezeStatus = import("@hiero-ledger/proto").proto.TokenFreezeStatus;
|
|
83
|
+
type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
import TokenId from "../token/TokenId.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenRelationship.js","sources":["../../src/account/TokenRelationship.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Long from \"long\";\nimport TokenId from \"../token/TokenId.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"TokenRelationship.js","sources":["../../src/account/TokenRelationship.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Long from \"long\";\nimport TokenId from \"../token/TokenId.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenRelationship} HieroProto.proto.ITokenRelationship\n * @typedef {import(\"@hiero-ledger/proto\").proto.TokenKycStatus} HieroProto.proto.TokenKycStatus\n * @typedef {import(\"@hiero-ledger/proto\").proto.TokenFreezeStatus} HieroProto.proto.TokenFreezeStatus\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * Token's information related to the given Account\n */\nexport default class TokenRelationship {\n /**\n * @param {object} props\n * @param {TokenId} props.tokenId\n * @param {string} props.symbol\n * @param {Long} props.balance\n * @param {boolean | null} props.isKycGranted\n * @param {boolean | null} props.isFrozen\n * @param {boolean | null} props.automaticAssociation\n */\n constructor(props) {\n /**\n * The ID of the token\n *\n * @readonly\n */\n this.tokenId = props.tokenId;\n\n /**\n * The Symbol of the token\n *\n * @readonly\n */\n this.symbol = props.symbol;\n\n /**\n * The balance that the Account holds in the smallest denomination\n *\n * @readonly\n */\n this.balance = props.balance;\n\n /**\n * The KYC status of the account (KycNotApplicable, Granted or Revoked). If the token does\n * not have KYC key, KycNotApplicable is returned\n *\n * @readonly\n */\n this.isKycGranted = props.isKycGranted;\n\n /**\n * The Freeze status of the account (FreezeNotApplicable, Frozen or Unfrozen). If the token\n * does not have Freeze key, FreezeNotApplicable is returned\n *\n * @readonly\n */\n this.isFrozen = props.isFrozen;\n\n /**\n * Specifies if the relationship is created implicitly. False : explicitly associated, True :\n * implicitly associated.\n *\n * @readonly\n */\n this.automaticAssociation = props.automaticAssociation;\n\n Object.freeze(this);\n }\n\n /**\n * @param {HieroProto.proto.ITokenRelationship} relationship\n * @returns {TokenRelationship}\n */\n static _fromProtobuf(relationship) {\n const tokenId = TokenId._fromProtobuf(\n /** @type {HieroProto.proto.ITokenID} */ (relationship.tokenId),\n );\n const isKycGranted =\n relationship.kycStatus == null || relationship.kycStatus === 0\n ? null\n : relationship.kycStatus === 1;\n const isFrozen =\n relationship.freezeStatus == null || relationship.freezeStatus === 0\n ? null\n : relationship.freezeStatus === 1;\n\n return new TokenRelationship({\n tokenId,\n symbol: /** @type {string} */ (relationship.symbol),\n balance:\n relationship.balance != null\n ? relationship.balance instanceof Long\n ? relationship.balance\n : Long.fromValue(relationship.balance)\n : Long.ZERO,\n isKycGranted,\n isFrozen,\n automaticAssociation:\n relationship.automaticAssociation != null\n ? relationship.automaticAssociation\n : null,\n });\n }\n\n /**\n * @returns {HieroProto.proto.ITokenRelationship}\n */\n _toProtobuf() {\n return {\n tokenId: this.tokenId._toProtobuf(),\n symbol: this.symbol,\n balance: this.balance,\n kycStatus:\n this.isKycGranted == null ? 0 : this.isKycGranted ? 1 : 2,\n freezeStatus: this.isFrozen == null ? 0 : this.isFrozen ? 1 : 2,\n automaticAssociation: this.automaticAssociation,\n };\n }\n}\n"],"names":["TokenRelationship","constructor","props","this","tokenId","symbol","balance","isKycGranted","isFrozen","automaticAssociation","Object","freeze","_fromProtobuf","relationship","TokenId","kycStatus","freezeStatus","Long","fromValue","ZERO","_toProtobuf"],"mappings":"uDAgBe,MAAMA,EAUjB,WAAAC,CAAYC,GAMRC,KAAKC,QAAUF,EAAME,QAOrBD,KAAKE,OAASH,EAAMG,OAOpBF,KAAKG,QAAUJ,EAAMI,QAQrBH,KAAKI,aAAeL,EAAMK,aAQ1BJ,KAAKK,SAAWN,EAAMM,SAQtBL,KAAKM,qBAAuBP,EAAMO,qBAElCC,OAAOC,OAAOR,KACtB,CAMI,oBAAOS,CAAcC,GACjB,MAAMT,EAAUU,EAAQF,cACsBC,EAAoB,SAE5DN,EACwB,MAA1BM,EAAaE,WAAgD,IAA3BF,EAAaE,UACzC,KAC2B,IAA3BF,EAAaE,UACjBP,EAC2B,MAA7BK,EAAaG,cAAsD,IAA9BH,EAAaG,aAC5C,KAC8B,IAA9BH,EAAaG,aAEvB,OAAO,IAAIhB,EAAkB,CACzBI,UACAC,OAA+BQ,EAAmB,OAClDP,QAC4B,MAAxBO,EAAaP,QACPO,EAAaP,mBAAmBW,EAC5BJ,EAAaP,QACbW,EAAKC,UAAUL,EAAaP,SAChCW,EAAKE,KACfZ,eACAC,WACAC,qBACyC,MAArCI,EAAaJ,qBACPI,EAAaJ,qBACb,MAEtB,CAKI,WAAAW,GACI,MAAO,CACHhB,QAASD,KAAKC,QAAQgB,cACtBf,OAAQF,KAAKE,OACbC,QAASH,KAAKG,QACdS,UACyB,MAArBZ,KAAKI,aAAuB,EAAIJ,KAAKI,aAAe,EAAI,EAC5DS,aAA+B,MAAjBb,KAAKK,SAAmB,EAAIL,KAAKK,SAAW,EAAI,EAC9DC,qBAAsBN,KAAKM,qBAEvC"}
|
|
@@ -12,8 +12,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @namespace proto
|
|
15
|
-
* @typedef {import("@
|
|
16
|
-
* @typedef {import("@
|
|
15
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenRelationship} HieroProto.proto.ITokenRelationship
|
|
16
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
/**
|