@hiero-ledger/sdk 2.80.0 → 2.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -64
- package/dist/umd.js +444 -217
- package/dist/umd.js.map +1 -0
- package/dist/umd.min.js +8 -7
- package/dist/umd.min.js.map +1 -0
- package/lib/BadEntityIdError.js.map +1 -1
- package/lib/Cache.js.map +1 -1
- package/lib/Duration.js.map +1 -1
- package/lib/EntityIdHelper.js.map +1 -1
- package/lib/EthereumFlow.js.map +1 -1
- package/lib/EthereumTransaction.d.ts +4 -0
- package/lib/EthereumTransaction.js.map +1 -1
- package/lib/EthereumTransactionData.js.map +1 -1
- package/lib/EthereumTransactionDataEip1559.js.map +1 -1
- package/lib/EthereumTransactionDataEip2930.js.map +1 -1
- package/lib/EthereumTransactionDataEip7702.js.map +1 -1
- package/lib/EthereumTransactionDataLegacy.js.map +1 -1
- package/lib/EvmAddress.js.map +1 -1
- package/lib/ExchangeRate.js.map +1 -1
- package/lib/ExchangeRates.js.map +1 -1
- package/lib/Executable.cjs +8 -5
- package/lib/Executable.js +1 -1
- package/lib/Executable.js.map +1 -1
- package/lib/FeeComponents.js.map +1 -1
- package/lib/FeeData.js.map +1 -1
- package/lib/FeeDataType.js.map +1 -1
- package/lib/FeeSchedule.js.map +1 -1
- package/lib/FeeSchedules.js.map +1 -1
- package/lib/FreezeType.js.map +1 -1
- package/lib/Hbar.js.map +1 -1
- package/lib/HbarUnit.js.map +1 -1
- package/lib/Key.js.map +1 -1
- package/lib/KeyList.js.map +1 -1
- package/lib/LedgerId.js.map +1 -1
- package/lib/LocalProvider.js.map +1 -1
- package/lib/LocalProviderWeb.js.map +1 -1
- package/lib/ManagedNode.js.map +1 -1
- package/lib/ManagedNodeAddress.js.map +1 -1
- package/lib/MaxAttemptsOrTimeoutError.js.map +1 -1
- package/lib/MaxQueryPaymentExceeded.js.map +1 -1
- package/lib/MirrorNode.js.map +1 -1
- package/lib/Mnemonic.js.map +1 -1
- package/lib/Node.js.map +1 -1
- package/lib/ObjectMap.js.map +1 -1
- package/lib/PrecheckStatusError.js.map +1 -1
- package/lib/PrivateKey.js.map +1 -1
- package/lib/PrngTransaction.d.ts +4 -0
- package/lib/PrngTransaction.js.map +1 -1
- package/lib/Provider.js.map +1 -1
- package/lib/PublicKey.js.map +1 -1
- package/lib/ReceiptStatusError.js.map +1 -1
- package/lib/RecordStatusError.js.map +1 -1
- package/lib/RequestType.js.map +1 -1
- package/lib/Signer.js.map +1 -1
- package/lib/SignerSignature.js.map +1 -1
- package/lib/StakingInfo.js.map +1 -1
- package/lib/Status.js.map +1 -1
- package/lib/StatusError.js.map +1 -1
- package/lib/Timestamp.js.map +1 -1
- package/lib/TransactionFeeSchedule.js.map +1 -1
- package/lib/Transfer.js.map +1 -1
- package/lib/Wallet.js.map +1 -1
- package/lib/account/AccountAllowanceAdjustTransaction.cjs +2 -1
- package/lib/account/AccountAllowanceAdjustTransaction.d.ts +4 -2
- package/lib/account/AccountAllowanceAdjustTransaction.js.map +1 -1
- package/lib/account/AccountAllowanceApproveTransaction.cjs +2 -1
- package/lib/account/AccountAllowanceApproveTransaction.d.ts +4 -2
- package/lib/account/AccountAllowanceApproveTransaction.js.map +1 -1
- package/lib/account/AccountAllowanceDeleteTransaction.cjs +2 -1
- package/lib/account/AccountAllowanceDeleteTransaction.d.ts +4 -2
- package/lib/account/AccountAllowanceDeleteTransaction.js.map +1 -1
- package/lib/account/AccountBalance.cjs +6 -15
- package/lib/account/AccountBalance.d.ts +2 -2
- package/lib/account/AccountBalance.js +1 -1
- package/lib/account/AccountBalance.js.map +1 -1
- package/lib/account/AccountBalanceQuery.cjs +5 -10
- package/lib/account/AccountBalanceQuery.d.ts +15 -2
- package/lib/account/AccountBalanceQuery.js +1 -1
- package/lib/account/AccountBalanceQuery.js.map +1 -1
- package/lib/account/AccountCreateTransaction.cjs +2 -1
- package/lib/account/AccountCreateTransaction.d.ts +4 -2
- package/lib/account/AccountCreateTransaction.js.map +1 -1
- package/lib/account/AccountDeleteTransaction.cjs +2 -1
- package/lib/account/AccountDeleteTransaction.d.ts +4 -2
- package/lib/account/AccountDeleteTransaction.js.map +1 -1
- package/lib/account/AccountId.js.map +1 -1
- package/lib/account/AccountInfo.js.map +1 -1
- package/lib/account/AccountInfoFlow.js.map +1 -1
- package/lib/account/AccountInfoQuery.cjs +2 -1
- package/lib/account/AccountInfoQuery.d.ts +8 -2
- package/lib/account/AccountInfoQuery.js.map +1 -1
- package/lib/account/AccountRecordsQuery.cjs +2 -1
- package/lib/account/AccountRecordsQuery.d.ts +8 -2
- package/lib/account/AccountRecordsQuery.js.map +1 -1
- package/lib/account/AccountUpdateTransaction.cjs +2 -1
- package/lib/account/AccountUpdateTransaction.d.ts +4 -2
- package/lib/account/AccountUpdateTransaction.js.map +1 -1
- package/lib/account/HbarAllowance.cjs +3 -1
- package/lib/account/HbarAllowance.d.ts +6 -2
- package/lib/account/HbarAllowance.js.map +1 -1
- package/lib/account/HbarTransferMap.js.map +1 -1
- package/lib/account/LiveHash.js.map +1 -1
- package/lib/account/LiveHashAddTransaction.cjs +2 -1
- package/lib/account/LiveHashAddTransaction.d.ts +4 -2
- package/lib/account/LiveHashAddTransaction.js.map +1 -1
- package/lib/account/LiveHashDeleteTransaction.cjs +2 -1
- package/lib/account/LiveHashDeleteTransaction.d.ts +4 -2
- package/lib/account/LiveHashDeleteTransaction.js.map +1 -1
- package/lib/account/LiveHashQuery.cjs +2 -1
- package/lib/account/LiveHashQuery.d.ts +8 -2
- package/lib/account/LiveHashQuery.js.map +1 -1
- package/lib/account/NullableTokenDecimalMap.js.map +1 -1
- package/lib/account/ProxyStaker.js.map +1 -1
- package/lib/account/TokenAllowance.cjs +3 -1
- package/lib/account/TokenAllowance.d.ts +6 -2
- package/lib/account/TokenAllowance.js.map +1 -1
- package/lib/account/TokenBalanceMap.js.map +1 -1
- package/lib/account/TokenDecimalMap.js.map +1 -1
- package/lib/account/TokenNftAllowance.cjs +3 -1
- package/lib/account/TokenNftAllowance.d.ts +6 -2
- package/lib/account/TokenNftAllowance.js.map +1 -1
- package/lib/account/TokenNftTransferMap.js.map +1 -1
- package/lib/account/TokenRelationship.js.map +1 -1
- package/lib/account/TokenRelationshipMap.js.map +1 -1
- package/lib/account/TokenTransferAccountMap.js.map +1 -1
- package/lib/account/TokenTransferMap.js.map +1 -1
- package/lib/account/TransferTransaction.cjs +6 -5
- package/lib/account/TransferTransaction.d.ts +6 -2
- package/lib/account/TransferTransaction.js +1 -1
- package/lib/account/TransferTransaction.js.map +1 -1
- package/lib/address_book/Endpoint.js.map +1 -1
- package/lib/address_book/IPv4Address.js.map +1 -1
- package/lib/address_book/IPv4AddressPart.js.map +1 -1
- package/lib/address_book/NodeAddress.js.map +1 -1
- package/lib/address_book/NodeAddressBook.js.map +1 -1
- package/lib/base32.js.map +1 -1
- package/lib/browser.js +1 -1
- package/lib/channel/Channel.js.map +1 -1
- package/lib/channel/MirrorChannel.js.map +1 -1
- package/lib/channel/NativeChannel.js.map +1 -1
- package/lib/channel/NodeChannel.js.map +1 -1
- package/lib/channel/NodeMirrorChannel.js.map +1 -1
- package/lib/channel/WebChannel.js.map +1 -1
- package/lib/client/Client.cjs +38 -0
- package/lib/client/Client.d.ts +30 -0
- package/lib/client/Client.js +1 -1
- package/lib/client/Client.js.map +1 -1
- package/lib/client/ManagedNetwork.js.map +1 -1
- package/lib/client/MirrorNetwork.js.map +1 -1
- package/lib/client/NativeClient.js.map +1 -1
- package/lib/client/Network.js.map +1 -1
- package/lib/client/NodeClient.js.map +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.js.map +1 -1
- package/lib/contract/ContractByteCodeQuery.js.map +1 -1
- package/lib/contract/ContractCallQuery.js.map +1 -1
- package/lib/contract/ContractCreateFlow.js.map +1 -1
- package/lib/contract/ContractCreateTransaction.cjs +2 -1
- package/lib/contract/ContractCreateTransaction.d.ts +4 -2
- package/lib/contract/ContractCreateTransaction.js.map +1 -1
- package/lib/contract/ContractDeleteTransaction.cjs +2 -1
- package/lib/contract/ContractDeleteTransaction.d.ts +4 -2
- package/lib/contract/ContractDeleteTransaction.js.map +1 -1
- package/lib/contract/ContractExecuteTransaction.d.ts +4 -0
- package/lib/contract/ContractExecuteTransaction.js.map +1 -1
- package/lib/contract/ContractFunctionParameters.js.map +1 -1
- package/lib/contract/ContractFunctionResult.js.map +1 -1
- package/lib/contract/ContractFunctionSelector.js.map +1 -1
- package/lib/contract/ContractId.js.map +1 -1
- package/lib/contract/ContractInfo.js.map +1 -1
- package/lib/contract/ContractInfoQuery.js.map +1 -1
- package/lib/contract/ContractLogInfo.js.map +1 -1
- package/lib/contract/ContractNonceInfo.js.map +1 -1
- package/lib/contract/ContractUpdateTransaction.cjs +2 -1
- package/lib/contract/ContractUpdateTransaction.d.ts +4 -2
- package/lib/contract/ContractUpdateTransaction.js.map +1 -1
- package/lib/contract/DelegateContractId.js.map +1 -1
- package/lib/cryptography/keccak.js.map +1 -1
- package/lib/encoding/hex.js.map +1 -1
- package/lib/file/FileAppendTransaction.cjs +5 -4
- package/lib/file/FileAppendTransaction.d.ts +10 -12
- package/lib/file/FileAppendTransaction.js.map +1 -1
- package/lib/file/FileContentsQuery.js.map +1 -1
- package/lib/file/FileCreateTransaction.js.map +1 -1
- package/lib/file/FileDeleteTransaction.d.ts +4 -0
- package/lib/file/FileDeleteTransaction.js.map +1 -1
- package/lib/file/FileId.js.map +1 -1
- package/lib/file/FileInfo.js.map +1 -1
- package/lib/file/FileInfoQuery.js.map +1 -1
- package/lib/file/FileUpdateTransaction.d.ts +4 -0
- package/lib/file/FileUpdateTransaction.js.map +1 -1
- package/lib/grpc/GrpcServiceError.js.map +1 -1
- package/lib/grpc/GrpcStatus.js.map +1 -1
- package/lib/http/HttpError.js.map +1 -1
- package/lib/http/HttpStatus.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/logger/LogLevel.js.map +1 -1
- package/lib/logger/Logger.js.map +1 -1
- package/lib/native.js +1 -1
- package/lib/network/AddressBookQuery.js.map +1 -1
- package/lib/network/AddressBookQueryWeb.js.map +1 -1
- package/lib/network/NetworkVersionInfo.js.map +1 -1
- package/lib/network/NetworkVersionInfoQuery.js.map +1 -1
- package/lib/network/SemanticVersion.js.map +1 -1
- package/lib/node/NodeCreateTransaction.js.map +1 -1
- package/lib/node/NodeDeleteTransaction.js.map +1 -1
- package/lib/node/NodeUpdateTransaction.js.map +1 -1
- package/lib/node/ServiceEndpoint.js.map +1 -1
- package/lib/query/CostQuery.js.map +1 -1
- package/lib/query/MirrorNodeContractCallQuery.js.map +1 -1
- package/lib/query/MirrorNodeContractEstimateQuery.js.map +1 -1
- package/lib/query/MirrorNodeContractQuery.js.map +1 -1
- package/lib/query/Query.js.map +1 -1
- package/lib/query/QueryBase.js.map +1 -1
- package/lib/schedule/ScheduleCreateTransaction.cjs +2 -1
- package/lib/schedule/ScheduleCreateTransaction.d.ts +4 -2
- package/lib/schedule/ScheduleCreateTransaction.js.map +1 -1
- package/lib/schedule/ScheduleDeleteTransaction.d.ts +4 -0
- package/lib/schedule/ScheduleDeleteTransaction.js.map +1 -1
- package/lib/schedule/ScheduleId.js.map +1 -1
- package/lib/schedule/ScheduleInfo.js.map +1 -1
- package/lib/schedule/ScheduleInfoQuery.js.map +1 -1
- package/lib/schedule/ScheduleSignTransaction.d.ts +4 -0
- package/lib/schedule/ScheduleSignTransaction.js.map +1 -1
- package/lib/system/FreezeTransaction.js.map +1 -1
- package/lib/system/SystemDeleteTransaction.js.map +1 -1
- package/lib/system/SystemUndeleteTransaction.js.map +1 -1
- package/lib/token/AbstractTokenTransferTransaction.js.map +1 -1
- package/lib/token/AirdropPendingTransaction.js.map +1 -1
- package/lib/token/AssessedCustomFee.js.map +1 -1
- package/lib/token/CustomFee.js.map +1 -1
- package/lib/token/CustomFixedFee.js.map +1 -1
- package/lib/token/CustomFractionalFee.js.map +1 -1
- package/lib/token/CustomRoyaltyFee.js.map +1 -1
- package/lib/token/FeeAssessmentMethod.js.map +1 -1
- package/lib/token/NftId.js.map +1 -1
- package/lib/token/PendingAirdropId.js.map +1 -1
- package/lib/token/PendingAirdropRecord.js.map +1 -1
- package/lib/token/TokenAirdropTransaction.js.map +1 -1
- package/lib/token/TokenAssociateTransaction.cjs +2 -1
- package/lib/token/TokenAssociateTransaction.d.ts +4 -2
- package/lib/token/TokenAssociateTransaction.js.map +1 -1
- package/lib/token/TokenAssociation.js.map +1 -1
- package/lib/token/TokenBurnTransaction.d.ts +4 -0
- package/lib/token/TokenBurnTransaction.js.map +1 -1
- package/lib/token/TokenCancelAirdropTransaction.js.map +1 -1
- package/lib/token/TokenClaimAirdropTransaction.js.map +1 -1
- package/lib/token/TokenCreateTransaction.cjs +2 -1
- package/lib/token/TokenCreateTransaction.d.ts +4 -2
- package/lib/token/TokenCreateTransaction.js.map +1 -1
- package/lib/token/TokenDeleteTransaction.d.ts +4 -0
- package/lib/token/TokenDeleteTransaction.js.map +1 -1
- package/lib/token/TokenDissociateTransaction.cjs +2 -1
- package/lib/token/TokenDissociateTransaction.d.ts +4 -2
- package/lib/token/TokenDissociateTransaction.js.map +1 -1
- package/lib/token/TokenFeeScheduleUpdateTransaction.js.map +1 -1
- package/lib/token/TokenFreezeTransaction.cjs +2 -1
- package/lib/token/TokenFreezeTransaction.d.ts +4 -2
- package/lib/token/TokenFreezeTransaction.js.map +1 -1
- package/lib/token/TokenGrantKycTransaction.cjs +2 -1
- package/lib/token/TokenGrantKycTransaction.d.ts +4 -2
- package/lib/token/TokenGrantKycTransaction.js.map +1 -1
- package/lib/token/TokenId.js.map +1 -1
- package/lib/token/TokenInfo.js.map +1 -1
- package/lib/token/TokenInfoQuery.js.map +1 -1
- package/lib/token/TokenKeyValidation.js.map +1 -1
- package/lib/token/TokenMintTransaction.d.ts +4 -0
- package/lib/token/TokenMintTransaction.js.map +1 -1
- package/lib/token/TokenNftInfo.js.map +1 -1
- package/lib/token/TokenNftInfoQuery.js.map +1 -1
- package/lib/token/TokenNftTransfer.js.map +1 -1
- package/lib/token/TokenNftsUpdateTransaction.d.ts +4 -0
- package/lib/token/TokenPauseTransaction.d.ts +4 -0
- package/lib/token/TokenPauseTransaction.js.map +1 -1
- package/lib/token/TokenReference.js.map +1 -1
- package/lib/token/TokenRejectFlow.cjs +3 -1
- package/lib/token/TokenRejectFlow.d.ts +6 -2
- package/lib/token/TokenRejectFlow.js.map +1 -1
- package/lib/token/TokenRejectTransaction.js.map +1 -1
- package/lib/token/TokenRevokeKycTransaction.cjs +2 -1
- package/lib/token/TokenRevokeKycTransaction.d.ts +4 -2
- package/lib/token/TokenRevokeKycTransaction.js.map +1 -1
- package/lib/token/TokenSupplyType.js.map +1 -1
- package/lib/token/TokenTransfer.js.map +1 -1
- package/lib/token/TokenType.js.map +1 -1
- package/lib/token/TokenUnfreezeTransaction.cjs +2 -1
- package/lib/token/TokenUnfreezeTransaction.d.ts +4 -2
- package/lib/token/TokenUnfreezeTransaction.js.map +1 -1
- package/lib/token/TokenUnpauseTransaction.d.ts +4 -0
- package/lib/token/TokenUnpauseTransaction.js.map +1 -1
- package/lib/token/TokenUpdateNftsTransaction.d.ts +4 -0
- package/lib/token/TokenUpdateNftsTransaction.js.map +1 -1
- package/lib/token/TokenUpdateTransaction.cjs +2 -1
- package/lib/token/TokenUpdateTransaction.d.ts +4 -2
- package/lib/token/TokenUpdateTransaction.js.map +1 -1
- package/lib/token/TokenWipeTransaction.cjs +2 -1
- package/lib/token/TokenWipeTransaction.d.ts +4 -2
- package/lib/token/TokenWipeTransaction.js.map +1 -1
- package/lib/topic/SubscriptionHandle.js.map +1 -1
- package/lib/topic/TopicCreateTransaction.cjs +2 -1
- package/lib/topic/TopicCreateTransaction.d.ts +4 -2
- package/lib/topic/TopicCreateTransaction.js.map +1 -1
- package/lib/topic/TopicDeleteTransaction.d.ts +4 -0
- package/lib/topic/TopicDeleteTransaction.js.map +1 -1
- package/lib/topic/TopicId.js.map +1 -1
- package/lib/topic/TopicInfo.js.map +1 -1
- package/lib/topic/TopicInfoQuery.js.map +1 -1
- package/lib/topic/TopicMessage.js.map +1 -1
- package/lib/topic/TopicMessageChunk.js.map +1 -1
- package/lib/topic/TopicMessageQuery.js.map +1 -1
- package/lib/topic/TopicMessageSubmitTransaction.js.map +1 -1
- package/lib/topic/TopicUpdateTransaction.cjs +2 -1
- package/lib/topic/TopicUpdateTransaction.d.ts +4 -2
- package/lib/topic/TopicUpdateTransaction.js.map +1 -1
- package/lib/transaction/BatchTransaction.js.map +1 -1
- package/lib/transaction/CustomFeeLimit.js.map +1 -1
- package/lib/transaction/List.js.map +1 -1
- package/lib/transaction/NodeAccountIdSignatureMap.js.map +1 -1
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.js.map +1 -1
- package/lib/transaction/SignableNodeTransactionBodyBytes.js.map +1 -1
- package/lib/transaction/SignatureMap.js.map +1 -1
- package/lib/transaction/SignatureMapLegacy.js.map +1 -1
- package/lib/transaction/SignaturePairMap.js.map +1 -1
- package/lib/transaction/Transaction.cjs +83 -15
- package/lib/transaction/Transaction.d.ts +33 -4
- package/lib/transaction/Transaction.js +1 -1
- package/lib/transaction/Transaction.js.map +1 -1
- package/lib/transaction/TransactionHashMap.js.map +1 -1
- package/lib/transaction/TransactionId.js.map +1 -1
- package/lib/transaction/TransactionReceipt.js.map +1 -1
- package/lib/transaction/TransactionReceiptQuery.cjs +2 -1
- package/lib/transaction/TransactionReceiptQuery.d.ts +8 -2
- package/lib/transaction/TransactionReceiptQuery.js.map +1 -1
- package/lib/transaction/TransactionRecord.js.map +1 -1
- package/lib/transaction/TransactionRecordQuery.cjs +2 -1
- package/lib/transaction/TransactionRecordQuery.d.ts +8 -2
- package/lib/transaction/TransactionRecordQuery.js.map +1 -1
- package/lib/transaction/TransactionResponse.cjs +85 -10
- package/lib/transaction/TransactionResponse.d.ts +39 -4
- package/lib/transaction/TransactionResponse.js +1 -1
- package/lib/transaction/TransactionResponse.js.map +1 -1
- package/lib/util/ASN1-Decoder.js.map +1 -1
- package/lib/util.js.map +1 -1
- package/lib/version.js +1 -1
- package/package.json +21 -19
- package/src/Executable.js +13 -8
- package/src/account/AccountAllowanceAdjustTransaction.js +2 -1
- package/src/account/AccountAllowanceApproveTransaction.js +2 -1
- package/src/account/AccountAllowanceDeleteTransaction.js +2 -1
- package/src/account/AccountBalance.js +7 -15
- package/src/account/AccountBalanceQuery.js +5 -9
- package/src/account/AccountCreateTransaction.js +2 -1
- package/src/account/AccountDeleteTransaction.js +2 -1
- package/src/account/AccountInfoQuery.js +2 -1
- package/src/account/AccountRecordsQuery.js +2 -1
- package/src/account/AccountUpdateTransaction.js +2 -1
- package/src/account/HbarAllowance.js +3 -1
- package/src/account/LiveHashAddTransaction.js +2 -1
- package/src/account/LiveHashDeleteTransaction.js +2 -1
- package/src/account/LiveHashQuery.js +2 -1
- package/src/account/TokenAllowance.js +3 -1
- package/src/account/TokenNftAllowance.js +3 -1
- package/src/account/TransferTransaction.js +6 -4
- package/src/client/Client.js +38 -0
- 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/contract/ContractCreateTransaction.js +2 -1
- package/src/contract/ContractDeleteTransaction.js +2 -1
- package/src/contract/ContractUpdateTransaction.js +2 -1
- package/src/file/FileAppendTransaction.js +5 -4
- package/src/schedule/ScheduleCreateTransaction.js +2 -1
- package/src/token/TokenAssociateTransaction.js +2 -1
- package/src/token/TokenCreateTransaction.js +2 -1
- package/src/token/TokenDissociateTransaction.js +2 -1
- package/src/token/TokenFreezeTransaction.js +2 -1
- package/src/token/TokenGrantKycTransaction.js +2 -1
- package/src/token/TokenRejectFlow.js +3 -1
- package/src/token/TokenRevokeKycTransaction.js +2 -1
- package/src/token/TokenUnfreezeTransaction.js +2 -1
- package/src/token/TokenUpdateTransaction.js +2 -1
- package/src/token/TokenWipeTransaction.js +2 -1
- package/src/topic/TopicCreateTransaction.js +2 -1
- package/src/topic/TopicUpdateTransaction.js +2 -1
- package/src/transaction/Transaction.js +139 -19
- package/src/transaction/TransactionReceiptQuery.js +2 -1
- package/src/transaction/TransactionRecordQuery.js +2 -1
- package/src/transaction/TransactionResponse.js +101 -14
package/dist/umd.js
CHANGED
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
if (value < 0) return UZERO;
|
|
275
275
|
if (value >= TWO_PWR_64_DBL) return MAX_UNSIGNED_VALUE;
|
|
276
276
|
} else {
|
|
277
|
-
if (value <= -
|
|
277
|
+
if (value <= -TWO_PWR_63_DBL) return MIN_VALUE;
|
|
278
278
|
if (value + 1 >= TWO_PWR_63_DBL) return MAX_VALUE;
|
|
279
279
|
}
|
|
280
280
|
if (value < 0) return fromNumber(-value, unsigned).neg();
|
|
@@ -2145,12 +2145,12 @@
|
|
|
2145
2145
|
if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) {
|
|
2146
2146
|
v = obj[p];
|
|
2147
2147
|
if (v && v.pop) {
|
|
2148
|
-
intCheck(v[0], -
|
|
2148
|
+
intCheck(v[0], -MAX, 0, p);
|
|
2149
2149
|
intCheck(v[1], 0, MAX, p);
|
|
2150
2150
|
TO_EXP_NEG = v[0];
|
|
2151
2151
|
TO_EXP_POS = v[1];
|
|
2152
2152
|
} else {
|
|
2153
|
-
intCheck(v, -
|
|
2153
|
+
intCheck(v, -MAX, MAX, p);
|
|
2154
2154
|
TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);
|
|
2155
2155
|
}
|
|
2156
2156
|
}
|
|
@@ -2161,12 +2161,12 @@
|
|
|
2161
2161
|
if (obj.hasOwnProperty(p = 'RANGE')) {
|
|
2162
2162
|
v = obj[p];
|
|
2163
2163
|
if (v && v.pop) {
|
|
2164
|
-
intCheck(v[0], -
|
|
2164
|
+
intCheck(v[0], -MAX, -1, p);
|
|
2165
2165
|
intCheck(v[1], 1, MAX, p);
|
|
2166
2166
|
MIN_EXP = v[0];
|
|
2167
2167
|
MAX_EXP = v[1];
|
|
2168
2168
|
} else {
|
|
2169
|
-
intCheck(v, -
|
|
2169
|
+
intCheck(v, -MAX, MAX, p);
|
|
2170
2170
|
if (v) {
|
|
2171
2171
|
MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);
|
|
2172
2172
|
} else {
|
|
@@ -2283,7 +2283,7 @@
|
|
|
2283
2283
|
|
|
2284
2284
|
out: if ({}.toString.call(c) == '[object Array]') {
|
|
2285
2285
|
|
|
2286
|
-
if ((s === 1 || s === -1) && e >= -
|
|
2286
|
+
if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) {
|
|
2287
2287
|
|
|
2288
2288
|
// If the first element is zero, the BigNumber value must be zero.
|
|
2289
2289
|
if (c[0] === 0) {
|
|
@@ -4044,7 +4044,7 @@
|
|
|
4044
4044
|
* '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}'
|
|
4045
4045
|
*/
|
|
4046
4046
|
P.shiftedBy = function (k) {
|
|
4047
|
-
intCheck(k, -
|
|
4047
|
+
intCheck(k, -MAX_SAFE_INTEGER$1, MAX_SAFE_INTEGER$1);
|
|
4048
4048
|
return this.times('1e' + k);
|
|
4049
4049
|
};
|
|
4050
4050
|
|
|
@@ -5216,14 +5216,14 @@
|
|
|
5216
5216
|
function requireBase64 () {
|
|
5217
5217
|
if (hasRequiredBase64) return base64;
|
|
5218
5218
|
hasRequiredBase64 = 1;
|
|
5219
|
-
(function (exports) {
|
|
5219
|
+
(function (exports$1) {
|
|
5220
5220
|
|
|
5221
5221
|
/**
|
|
5222
5222
|
* A minimal base64 implementation for number arrays.
|
|
5223
5223
|
* @memberof util
|
|
5224
5224
|
* @namespace
|
|
5225
5225
|
*/
|
|
5226
|
-
var base64 = exports;
|
|
5226
|
+
var base64 = exports$1;
|
|
5227
5227
|
|
|
5228
5228
|
/**
|
|
5229
5229
|
* Calculates the byte length of a base64 encoded string.
|
|
@@ -5535,7 +5535,7 @@
|
|
|
5535
5535
|
*/
|
|
5536
5536
|
|
|
5537
5537
|
// Factory function for the purpose of node-based testing in modified global environments
|
|
5538
|
-
function factory(exports) {
|
|
5538
|
+
function factory(exports$1) {
|
|
5539
5539
|
|
|
5540
5540
|
// float: typed array
|
|
5541
5541
|
if (typeof Float32Array !== "undefined") (function() {
|
|
@@ -5561,9 +5561,9 @@
|
|
|
5561
5561
|
}
|
|
5562
5562
|
|
|
5563
5563
|
/* istanbul ignore next */
|
|
5564
|
-
exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
5564
|
+
exports$1.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
5565
5565
|
/* istanbul ignore next */
|
|
5566
|
-
exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
5566
|
+
exports$1.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
5567
5567
|
|
|
5568
5568
|
function readFloat_f32_cpy(buf, pos) {
|
|
5569
5569
|
f8b[0] = buf[pos ];
|
|
@@ -5582,9 +5582,9 @@
|
|
|
5582
5582
|
}
|
|
5583
5583
|
|
|
5584
5584
|
/* istanbul ignore next */
|
|
5585
|
-
exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
5585
|
+
exports$1.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
5586
5586
|
/* istanbul ignore next */
|
|
5587
|
-
exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
5587
|
+
exports$1.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
5588
5588
|
|
|
5589
5589
|
// float: ieee754
|
|
5590
5590
|
})(); else (function() {
|
|
@@ -5608,8 +5608,8 @@
|
|
|
5608
5608
|
}
|
|
5609
5609
|
}
|
|
5610
5610
|
|
|
5611
|
-
exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
5612
|
-
exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
5611
|
+
exports$1.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
5612
|
+
exports$1.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
5613
5613
|
|
|
5614
5614
|
function readFloat_ieee754(readUint, buf, pos) {
|
|
5615
5615
|
var uint = readUint(buf, pos),
|
|
@@ -5625,8 +5625,8 @@
|
|
|
5625
5625
|
: sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
5626
5626
|
}
|
|
5627
5627
|
|
|
5628
|
-
exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
5629
|
-
exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
5628
|
+
exports$1.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
5629
|
+
exports$1.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
5630
5630
|
|
|
5631
5631
|
})();
|
|
5632
5632
|
|
|
@@ -5662,9 +5662,9 @@
|
|
|
5662
5662
|
}
|
|
5663
5663
|
|
|
5664
5664
|
/* istanbul ignore next */
|
|
5665
|
-
exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
5665
|
+
exports$1.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
5666
5666
|
/* istanbul ignore next */
|
|
5667
|
-
exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
5667
|
+
exports$1.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
5668
5668
|
|
|
5669
5669
|
function readDouble_f64_cpy(buf, pos) {
|
|
5670
5670
|
f8b[0] = buf[pos ];
|
|
@@ -5691,9 +5691,9 @@
|
|
|
5691
5691
|
}
|
|
5692
5692
|
|
|
5693
5693
|
/* istanbul ignore next */
|
|
5694
|
-
exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
5694
|
+
exports$1.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
5695
5695
|
/* istanbul ignore next */
|
|
5696
|
-
exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
5696
|
+
exports$1.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
5697
5697
|
|
|
5698
5698
|
// double: ieee754
|
|
5699
5699
|
})(); else (function() {
|
|
@@ -5728,8 +5728,8 @@
|
|
|
5728
5728
|
}
|
|
5729
5729
|
}
|
|
5730
5730
|
|
|
5731
|
-
exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
5732
|
-
exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
5731
|
+
exports$1.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
5732
|
+
exports$1.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
5733
5733
|
|
|
5734
5734
|
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
5735
5735
|
var lo = readUint(buf, pos + off0),
|
|
@@ -5746,12 +5746,12 @@
|
|
|
5746
5746
|
: sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
5747
5747
|
}
|
|
5748
5748
|
|
|
5749
|
-
exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
5750
|
-
exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
5749
|
+
exports$1.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
5750
|
+
exports$1.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
5751
5751
|
|
|
5752
5752
|
})();
|
|
5753
5753
|
|
|
5754
|
-
return exports;
|
|
5754
|
+
return exports$1;
|
|
5755
5755
|
}
|
|
5756
5756
|
|
|
5757
5757
|
// uint helpers
|
|
@@ -5818,14 +5818,14 @@
|
|
|
5818
5818
|
function requireUtf8 () {
|
|
5819
5819
|
if (hasRequiredUtf8) return utf8;
|
|
5820
5820
|
hasRequiredUtf8 = 1;
|
|
5821
|
-
(function (exports) {
|
|
5821
|
+
(function (exports$1) {
|
|
5822
5822
|
|
|
5823
5823
|
/**
|
|
5824
5824
|
* A minimal UTF8 implementation for number arrays.
|
|
5825
5825
|
* @memberof util
|
|
5826
5826
|
* @namespace
|
|
5827
5827
|
*/
|
|
5828
|
-
var utf8 = exports;
|
|
5828
|
+
var utf8 = exports$1;
|
|
5829
5829
|
|
|
5830
5830
|
/**
|
|
5831
5831
|
* Calculates the UTF8 byte length of a string.
|
|
@@ -6196,8 +6196,8 @@
|
|
|
6196
6196
|
function requireMinimal$1 () {
|
|
6197
6197
|
if (hasRequiredMinimal$1) return minimal$1;
|
|
6198
6198
|
hasRequiredMinimal$1 = 1;
|
|
6199
|
-
(function (exports) {
|
|
6200
|
-
var util = exports;
|
|
6199
|
+
(function (exports$1) {
|
|
6200
|
+
var util = exports$1;
|
|
6201
6201
|
|
|
6202
6202
|
// used to return a Promise where callback is omitted
|
|
6203
6203
|
util.asPromise = requireAspromise();
|
|
@@ -7844,13 +7844,13 @@
|
|
|
7844
7844
|
function requireRpc () {
|
|
7845
7845
|
if (hasRequiredRpc) return rpc;
|
|
7846
7846
|
hasRequiredRpc = 1;
|
|
7847
|
-
(function (exports) {
|
|
7847
|
+
(function (exports$1) {
|
|
7848
7848
|
|
|
7849
7849
|
/**
|
|
7850
7850
|
* Streaming RPC helpers.
|
|
7851
7851
|
* @namespace
|
|
7852
7852
|
*/
|
|
7853
|
-
var rpc = exports;
|
|
7853
|
+
var rpc = exports$1;
|
|
7854
7854
|
|
|
7855
7855
|
/**
|
|
7856
7856
|
* RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets.
|
|
@@ -7915,8 +7915,8 @@
|
|
|
7915
7915
|
function requireIndexMinimal () {
|
|
7916
7916
|
if (hasRequiredIndexMinimal) return indexMinimal;
|
|
7917
7917
|
hasRequiredIndexMinimal = 1;
|
|
7918
|
-
(function (exports) {
|
|
7919
|
-
var protobuf = exports;
|
|
7918
|
+
(function (exports$1) {
|
|
7919
|
+
var protobuf = exports$1;
|
|
7920
7920
|
|
|
7921
7921
|
/**
|
|
7922
7922
|
* Build type, one of `"full"`, `"light"` or `"minimal"`.
|
|
@@ -7974,15 +7974,15 @@
|
|
|
7974
7974
|
function requireUmd () {
|
|
7975
7975
|
if (hasRequiredUmd) return umd$1.exports;
|
|
7976
7976
|
hasRequiredUmd = 1;
|
|
7977
|
-
(function (module, exports) {
|
|
7977
|
+
(function (module, exports$1) {
|
|
7978
7978
|
// GENERATED FILE. DO NOT EDIT.
|
|
7979
7979
|
(function (global, factory) {
|
|
7980
|
-
function unwrapDefault(exports) {
|
|
7981
|
-
return "default" in exports ? exports.default : exports;
|
|
7980
|
+
function unwrapDefault(exports$1) {
|
|
7981
|
+
return "default" in exports$1 ? exports$1.default : exports$1;
|
|
7982
7982
|
}
|
|
7983
7983
|
{
|
|
7984
|
-
factory(exports);
|
|
7985
|
-
module.exports = unwrapDefault(exports);
|
|
7984
|
+
factory(exports$1);
|
|
7985
|
+
module.exports = unwrapDefault(exports$1);
|
|
7986
7986
|
}
|
|
7987
7987
|
})(
|
|
7988
7988
|
typeof globalThis !== "undefined"
|
|
@@ -8247,7 +8247,7 @@
|
|
|
8247
8247
|
if (value < 0) return UZERO;
|
|
8248
8248
|
if (value >= TWO_PWR_64_DBL) return MAX_UNSIGNED_VALUE;
|
|
8249
8249
|
} else {
|
|
8250
|
-
if (value <= -
|
|
8250
|
+
if (value <= -TWO_PWR_63_DBL) return MIN_VALUE;
|
|
8251
8251
|
if (value + 1 >= TWO_PWR_63_DBL) return MAX_VALUE;
|
|
8252
8252
|
}
|
|
8253
8253
|
if (value < 0) return fromNumber(-value, unsigned).neg();
|
|
@@ -9633,11 +9633,9 @@
|
|
|
9633
9633
|
}
|
|
9634
9634
|
|
|
9635
9635
|
var libExports = requireLib();
|
|
9636
|
-
var index = /*@__PURE__*/getDefaultExportFromCjs(libExports);
|
|
9637
9636
|
|
|
9638
9637
|
var HieroProto = /*#__PURE__*/_mergeNamespaces({
|
|
9639
|
-
__proto__: null
|
|
9640
|
-
default: index
|
|
9638
|
+
__proto__: null
|
|
9641
9639
|
}, [libExports]);
|
|
9642
9640
|
|
|
9643
9641
|
let Key$1 = class Key {};
|
|
@@ -12461,7 +12459,7 @@
|
|
|
12461
12459
|
* Convert JS string to byte array.
|
|
12462
12460
|
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
12463
12461
|
*/
|
|
12464
|
-
function utf8ToBytes
|
|
12462
|
+
function utf8ToBytes(str) {
|
|
12465
12463
|
if (typeof str !== 'string')
|
|
12466
12464
|
throw new Error('utf8ToBytes expected string, got ' + typeof str);
|
|
12467
12465
|
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
@@ -12473,7 +12471,7 @@
|
|
|
12473
12471
|
*/
|
|
12474
12472
|
function toBytes(data) {
|
|
12475
12473
|
if (typeof data === 'string')
|
|
12476
|
-
data = utf8ToBytes
|
|
12474
|
+
data = utf8ToBytes(data);
|
|
12477
12475
|
abytes$1(data);
|
|
12478
12476
|
return data;
|
|
12479
12477
|
}
|
|
@@ -12935,10 +12933,6 @@
|
|
|
12935
12933
|
function numberToBytesLE(n, len) {
|
|
12936
12934
|
return numberToBytesBE(n, len).reverse();
|
|
12937
12935
|
}
|
|
12938
|
-
// Unpadded, rarely used
|
|
12939
|
-
function numberToVarBytesBE(n) {
|
|
12940
|
-
return hexToBytes(numberToHexUnpadded(n));
|
|
12941
|
-
}
|
|
12942
12936
|
/**
|
|
12943
12937
|
* Takes hex string or Uint8Array, converts to Uint8Array.
|
|
12944
12938
|
* Validates output length.
|
|
@@ -12989,23 +12983,6 @@
|
|
|
12989
12983
|
}
|
|
12990
12984
|
return res;
|
|
12991
12985
|
}
|
|
12992
|
-
// Compares 2 u8a-s in kinda constant time
|
|
12993
|
-
function equalBytes$1(a, b) {
|
|
12994
|
-
if (a.length !== b.length)
|
|
12995
|
-
return false;
|
|
12996
|
-
let diff = 0;
|
|
12997
|
-
for (let i = 0; i < a.length; i++)
|
|
12998
|
-
diff |= a[i] ^ b[i];
|
|
12999
|
-
return diff === 0;
|
|
13000
|
-
}
|
|
13001
|
-
/**
|
|
13002
|
-
* @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
|
|
13003
|
-
*/
|
|
13004
|
-
function utf8ToBytes(str) {
|
|
13005
|
-
if (typeof str !== 'string')
|
|
13006
|
-
throw new Error('string expected');
|
|
13007
|
-
return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
|
|
13008
|
-
}
|
|
13009
12986
|
// Is positive bigint
|
|
13010
12987
|
const isPosBig = (n) => typeof n === 'bigint' && _0n$3 <= n;
|
|
13011
12988
|
function inRange(n, min, max) {
|
|
@@ -13036,20 +13013,6 @@
|
|
|
13036
13013
|
;
|
|
13037
13014
|
return len;
|
|
13038
13015
|
}
|
|
13039
|
-
/**
|
|
13040
|
-
* Gets single bit at position.
|
|
13041
|
-
* NOTE: first bit position is 0 (same as arrays)
|
|
13042
|
-
* Same as `!!+Array.from(n.toString(2)).reverse()[pos]`
|
|
13043
|
-
*/
|
|
13044
|
-
function bitGet(n, pos) {
|
|
13045
|
-
return (n >> BigInt(pos)) & _1n$4;
|
|
13046
|
-
}
|
|
13047
|
-
/**
|
|
13048
|
-
* Sets single bit at position.
|
|
13049
|
-
*/
|
|
13050
|
-
function bitSet(n, pos, value) {
|
|
13051
|
-
return n | ((value ? _1n$4 : _0n$3) << BigInt(pos));
|
|
13052
|
-
}
|
|
13053
13016
|
/**
|
|
13054
13017
|
* Calculate mask for N bits. Not using ** operator with bigints because of old engines.
|
|
13055
13018
|
* Same as BigInt(`0b${Array(i).fill('1').join('')}`)
|
|
@@ -13147,20 +13110,6 @@
|
|
|
13147
13110
|
checkField(fieldName, type, true);
|
|
13148
13111
|
return object;
|
|
13149
13112
|
}
|
|
13150
|
-
// validate type tests
|
|
13151
|
-
// const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 };
|
|
13152
|
-
// const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok!
|
|
13153
|
-
// // Should fail type-check
|
|
13154
|
-
// const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' });
|
|
13155
|
-
// const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' });
|
|
13156
|
-
// const z3 = validateObject(o, { test: 'boolean', z: 'bug' });
|
|
13157
|
-
// const z4 = validateObject(o, { a: 'boolean', z: 'bug' });
|
|
13158
|
-
/**
|
|
13159
|
-
* throws not implemented error
|
|
13160
|
-
*/
|
|
13161
|
-
const notImplemented = () => {
|
|
13162
|
-
throw new Error('not implemented');
|
|
13163
|
-
};
|
|
13164
13113
|
/**
|
|
13165
13114
|
* Memoizes (caches) computation result.
|
|
13166
13115
|
* Uses WeakMap: the value is going auto-cleaned by GC after last reference is removed.
|
|
@@ -13182,28 +13131,22 @@
|
|
|
13182
13131
|
aInRange: aInRange,
|
|
13183
13132
|
abool: abool,
|
|
13184
13133
|
abytes: abytes,
|
|
13185
|
-
bitGet: bitGet,
|
|
13186
13134
|
bitLen: bitLen,
|
|
13187
13135
|
bitMask: bitMask,
|
|
13188
|
-
bitSet: bitSet,
|
|
13189
13136
|
bytesToHex: bytesToHex,
|
|
13190
13137
|
bytesToNumberBE: bytesToNumberBE,
|
|
13191
13138
|
bytesToNumberLE: bytesToNumberLE,
|
|
13192
13139
|
concatBytes: concatBytes,
|
|
13193
13140
|
createHmacDrbg: createHmacDrbg,
|
|
13194
13141
|
ensureBytes: ensureBytes,
|
|
13195
|
-
equalBytes: equalBytes$1,
|
|
13196
13142
|
hexToBytes: hexToBytes,
|
|
13197
13143
|
hexToNumber: hexToNumber,
|
|
13198
13144
|
inRange: inRange,
|
|
13199
13145
|
isBytes: isBytes$1,
|
|
13200
13146
|
memoized: memoized,
|
|
13201
|
-
notImplemented: notImplemented,
|
|
13202
13147
|
numberToBytesBE: numberToBytesBE,
|
|
13203
13148
|
numberToBytesLE: numberToBytesLE,
|
|
13204
13149
|
numberToHexUnpadded: numberToHexUnpadded,
|
|
13205
|
-
numberToVarBytesBE: numberToVarBytesBE,
|
|
13206
|
-
utf8ToBytes: utf8ToBytes,
|
|
13207
13150
|
validateObject: validateObject
|
|
13208
13151
|
});
|
|
13209
13152
|
|
|
@@ -16580,7 +16523,7 @@
|
|
|
16580
16523
|
function requireSparkMd5 () {
|
|
16581
16524
|
if (hasRequiredSparkMd5) return sparkMd5.exports;
|
|
16582
16525
|
hasRequiredSparkMd5 = 1;
|
|
16583
|
-
(function (module, exports) {
|
|
16526
|
+
(function (module, exports$1) {
|
|
16584
16527
|
(function (factory) {
|
|
16585
16528
|
{
|
|
16586
16529
|
// Node/CommonJS
|
|
@@ -17577,7 +17520,7 @@
|
|
|
17577
17520
|
function requireBuffer () {
|
|
17578
17521
|
if (hasRequiredBuffer) return buffer;
|
|
17579
17522
|
hasRequiredBuffer = 1;
|
|
17580
|
-
(function (exports) {
|
|
17523
|
+
(function (exports$1) {
|
|
17581
17524
|
|
|
17582
17525
|
const base64 = requireBase64Js();
|
|
17583
17526
|
const ieee754 = requireIeee754();
|
|
@@ -17586,12 +17529,12 @@
|
|
|
17586
17529
|
? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
|
|
17587
17530
|
: null;
|
|
17588
17531
|
|
|
17589
|
-
exports.Buffer = Buffer;
|
|
17590
|
-
exports.SlowBuffer = SlowBuffer;
|
|
17591
|
-
exports.INSPECT_MAX_BYTES = 50;
|
|
17532
|
+
exports$1.Buffer = Buffer;
|
|
17533
|
+
exports$1.SlowBuffer = SlowBuffer;
|
|
17534
|
+
exports$1.INSPECT_MAX_BYTES = 50;
|
|
17592
17535
|
|
|
17593
17536
|
const K_MAX_LENGTH = 0x7fffffff;
|
|
17594
|
-
exports.kMaxLength = K_MAX_LENGTH;
|
|
17537
|
+
exports$1.kMaxLength = K_MAX_LENGTH;
|
|
17595
17538
|
|
|
17596
17539
|
/**
|
|
17597
17540
|
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
|
@@ -18187,7 +18130,7 @@
|
|
|
18187
18130
|
|
|
18188
18131
|
Buffer.prototype.inspect = function inspect () {
|
|
18189
18132
|
let str = '';
|
|
18190
|
-
const max = exports.INSPECT_MAX_BYTES;
|
|
18133
|
+
const max = exports$1.INSPECT_MAX_BYTES;
|
|
18191
18134
|
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim();
|
|
18192
18135
|
if (this.length > max) str += ' ... ';
|
|
18193
18136
|
return '<Buffer ' + str + '>'
|
|
@@ -43911,7 +43854,9 @@
|
|
|
43911
43854
|
async execute(client, requestTimeout) {
|
|
43912
43855
|
// we check if its local node then backoff mechanism should be disabled
|
|
43913
43856
|
// and we increase the retry attempts
|
|
43914
|
-
const isLocalNode =
|
|
43857
|
+
const isLocalNode =
|
|
43858
|
+
client.network["127.0.0.1:50211"] != null ||
|
|
43859
|
+
client.network["localhost:8080"] != null;
|
|
43915
43860
|
|
|
43916
43861
|
if (this.isBatchedAndNotBatchTransaction()) {
|
|
43917
43862
|
throw new Error(
|
|
@@ -44073,13 +44018,16 @@
|
|
|
44073
44018
|
this._nodeAccountIds.index ===
|
|
44074
44019
|
this._nodeAccountIds.list.length - 1;
|
|
44075
44020
|
|
|
44076
|
-
// Check if the request is a transaction receipt or record
|
|
44077
|
-
//
|
|
44078
|
-
//
|
|
44079
|
-
|
|
44080
|
-
|
|
44081
|
-
|
|
44082
|
-
|
|
44021
|
+
// Check if the request is a transaction receipt or record request
|
|
44022
|
+
// with a single node (traditional behavior), or if it's a local node.
|
|
44023
|
+
// For single-node receipt queries, we retry the same node with backoff.
|
|
44024
|
+
// For multi-node receipt queries (when failover is enabled), we allow
|
|
44025
|
+
// advancing to the next node like other queries.
|
|
44026
|
+
const isSingleNodeReceiptOrRecordRequest =
|
|
44027
|
+
isTransactionReceiptOrRecordRequest(request) &&
|
|
44028
|
+
this._nodeAccountIds.length <= 1;
|
|
44029
|
+
|
|
44030
|
+
if (isSingleNodeReceiptOrRecordRequest || isLocalNode) {
|
|
44083
44031
|
await delayForAttempt(
|
|
44084
44032
|
isLocalNode,
|
|
44085
44033
|
attempt,
|
|
@@ -46911,7 +46859,8 @@
|
|
|
46911
46859
|
/**
|
|
46912
46860
|
* @typedef {import("../account/AccountId.js").default} AccountId
|
|
46913
46861
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
46914
|
-
* @typedef {import("../
|
|
46862
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
46863
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
46915
46864
|
*/
|
|
46916
46865
|
|
|
46917
46866
|
/**
|
|
@@ -47539,7 +47488,7 @@
|
|
|
47539
47488
|
if (hasRequiredBn) return bn$1.exports;
|
|
47540
47489
|
hasRequiredBn = 1;
|
|
47541
47490
|
(function (module) {
|
|
47542
|
-
(function (module, exports) {
|
|
47491
|
+
(function (module, exports$1) {
|
|
47543
47492
|
|
|
47544
47493
|
// Utils
|
|
47545
47494
|
function assert (val, msg) {
|
|
@@ -47582,7 +47531,7 @@
|
|
|
47582
47531
|
if (typeof module === 'object') {
|
|
47583
47532
|
module.exports = BN;
|
|
47584
47533
|
} else {
|
|
47585
|
-
exports.BN = BN;
|
|
47534
|
+
exports$1.BN = BN;
|
|
47586
47535
|
}
|
|
47587
47536
|
|
|
47588
47537
|
BN.BN = BN;
|
|
@@ -49352,6 +49301,7 @@
|
|
|
49352
49301
|
this.words[i] = carry;
|
|
49353
49302
|
this.length++;
|
|
49354
49303
|
}
|
|
49304
|
+
this.length = num === 0 ? 1 : this.length;
|
|
49355
49305
|
|
|
49356
49306
|
return isNegNum ? this.ineg() : this;
|
|
49357
49307
|
};
|
|
@@ -49557,6 +49507,11 @@
|
|
|
49557
49507
|
this.words[this.length - 1] &= mask;
|
|
49558
49508
|
}
|
|
49559
49509
|
|
|
49510
|
+
if (this.length === 0) {
|
|
49511
|
+
this.words[0] = 0;
|
|
49512
|
+
this.length = 1;
|
|
49513
|
+
}
|
|
49514
|
+
|
|
49560
49515
|
return this._strip();
|
|
49561
49516
|
};
|
|
49562
49517
|
|
|
@@ -51074,7 +51029,7 @@
|
|
|
51074
51029
|
if (value % 1) {
|
|
51075
51030
|
throwFault("underflow", "BigNumber.from", value);
|
|
51076
51031
|
}
|
|
51077
|
-
if (value >= MAX_SAFE || value <= -
|
|
51032
|
+
if (value >= MAX_SAFE || value <= -MAX_SAFE) {
|
|
51078
51033
|
throwFault("overflow", "BigNumber.from", value);
|
|
51079
51034
|
}
|
|
51080
51035
|
return BigNumber.from(String(value));
|
|
@@ -56103,7 +56058,8 @@
|
|
|
56103
56058
|
|
|
56104
56059
|
/**
|
|
56105
56060
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
56106
|
-
* @typedef {import("../
|
|
56061
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
56062
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
56107
56063
|
* @typedef {import("../account/AccountId.js").default} AccountId
|
|
56108
56064
|
*/
|
|
56109
56065
|
|
|
@@ -56531,7 +56487,9 @@
|
|
|
56531
56487
|
|
|
56532
56488
|
|
|
56533
56489
|
/**
|
|
56534
|
-
* @typedef {import("../
|
|
56490
|
+
* @typedef {import("../channel/Channel.js").default} Channel
|
|
56491
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
56492
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
56535
56493
|
* @typedef {import("./Transaction.js").default} Transaction
|
|
56536
56494
|
* @typedef {import("./TransactionReceipt.js").default} TransactionReceipt
|
|
56537
56495
|
* @typedef {import("./TransactionRecord.js").default} TransactionRecord
|
|
@@ -56564,6 +56522,7 @@
|
|
|
56564
56522
|
* @param {TransactionId} props.transactionId
|
|
56565
56523
|
* @param {Transaction} [props.transaction]
|
|
56566
56524
|
* @param {Logger | null} [props.logger]
|
|
56525
|
+
* @param {AccountId[]} [props.transactionNodeAccountIds]
|
|
56567
56526
|
*/
|
|
56568
56527
|
constructor(props) {
|
|
56569
56528
|
/** @readonly */
|
|
@@ -56577,6 +56536,14 @@
|
|
|
56577
56536
|
this.transaction = props.transaction;
|
|
56578
56537
|
|
|
56579
56538
|
this.logger = props.logger;
|
|
56539
|
+
|
|
56540
|
+
/**
|
|
56541
|
+
* The node account IDs that were configured on the transaction.
|
|
56542
|
+
* Used for receipt query failover when allowReceiptNodeFailover is enabled.
|
|
56543
|
+
* @internal
|
|
56544
|
+
* @type {AccountId[] | undefined}
|
|
56545
|
+
*/
|
|
56546
|
+
this.transactionNodeAccountIds = props.transactionNodeAccountIds;
|
|
56580
56547
|
}
|
|
56581
56548
|
|
|
56582
56549
|
/**
|
|
@@ -56598,7 +56565,7 @@
|
|
|
56598
56565
|
async getReceipt(client) {
|
|
56599
56566
|
let receipt;
|
|
56600
56567
|
try {
|
|
56601
|
-
receipt = await this.getReceiptQuery().execute(client);
|
|
56568
|
+
receipt = await this.getReceiptQuery(client).execute(client);
|
|
56602
56569
|
} catch (err) {
|
|
56603
56570
|
if (
|
|
56604
56571
|
err instanceof ReceiptStatusError &&
|
|
@@ -56634,7 +56601,7 @@
|
|
|
56634
56601
|
async getRecord(client) {
|
|
56635
56602
|
await this.getReceipt(client);
|
|
56636
56603
|
|
|
56637
|
-
return this.getRecordQuery().execute(client);
|
|
56604
|
+
return this.getRecordQuery(client).execute(client);
|
|
56638
56605
|
}
|
|
56639
56606
|
|
|
56640
56607
|
/**
|
|
@@ -56646,10 +56613,10 @@
|
|
|
56646
56613
|
async getVerboseRecord(client) {
|
|
56647
56614
|
try {
|
|
56648
56615
|
// The receipt needs to be called in order to wait for transaction to be included in the consensus. Otherwise we are going to get "DUPLICATE_TRANSACTION".
|
|
56649
|
-
await this.getReceiptQuery().execute(client);
|
|
56650
|
-
return this.getRecordQuery().execute(client);
|
|
56616
|
+
await this.getReceiptQuery(client).execute(client);
|
|
56617
|
+
return this.getRecordQuery(client).execute(client);
|
|
56651
56618
|
} catch (e) {
|
|
56652
|
-
return this.getRecordQuery().execute(client);
|
|
56619
|
+
return this.getRecordQuery(client).execute(client);
|
|
56653
56620
|
}
|
|
56654
56621
|
}
|
|
56655
56622
|
|
|
@@ -56682,21 +56649,97 @@
|
|
|
56682
56649
|
}
|
|
56683
56650
|
|
|
56684
56651
|
/**
|
|
56652
|
+
* Create a receipt query for this transaction.
|
|
56653
|
+
*
|
|
56654
|
+
* By default, the query is pinned to the submitting node only. If the client has
|
|
56655
|
+
* `allowReceiptNodeFailover` enabled, the query can fail over to other nodes while
|
|
56656
|
+
* still starting with the submitting node first.
|
|
56657
|
+
*
|
|
56658
|
+
* When failover is enabled, the node list is determined by:
|
|
56659
|
+
* 1. Transaction's configured nodes (if transaction had specific nodes set), or
|
|
56660
|
+
* 2. Client's network nodes (as fallback)
|
|
56661
|
+
*
|
|
56662
|
+
* @param {Client} [client] - Optional client to enable failover behavior
|
|
56685
56663
|
* @returns {TransactionReceiptQuery}
|
|
56686
56664
|
*/
|
|
56687
|
-
getReceiptQuery() {
|
|
56688
|
-
|
|
56689
|
-
|
|
56690
|
-
|
|
56665
|
+
getReceiptQuery(client) {
|
|
56666
|
+
const query = new TransactionReceiptQuery().setTransactionId(
|
|
56667
|
+
this.transactionId,
|
|
56668
|
+
);
|
|
56669
|
+
|
|
56670
|
+
// If client is provided and failover is enabled, construct a node list
|
|
56671
|
+
// that starts with the submitting node followed by other nodes
|
|
56672
|
+
if (client != null && client.allowReceiptNodeFailover) {
|
|
56673
|
+
// Use transaction's configured nodes if available, otherwise use client network
|
|
56674
|
+
const availableNodes =
|
|
56675
|
+
this.transactionNodeAccountIds != null &&
|
|
56676
|
+
this.transactionNodeAccountIds.length > 0
|
|
56677
|
+
? this.transactionNodeAccountIds
|
|
56678
|
+
: client._network.getNodeAccountIdsForExecute();
|
|
56679
|
+
|
|
56680
|
+
// Build node list: [submittedNode, ...otherNodes] without duplicates
|
|
56681
|
+
const nodeList = [this.nodeId];
|
|
56682
|
+
for (const node of availableNodes) {
|
|
56683
|
+
// Only add if it's not the submitting node (avoid duplicates)
|
|
56684
|
+
if (!node.equals(this.nodeId)) {
|
|
56685
|
+
nodeList.push(node);
|
|
56686
|
+
}
|
|
56687
|
+
}
|
|
56688
|
+
|
|
56689
|
+
query.setNodeAccountIds(nodeList);
|
|
56690
|
+
} else {
|
|
56691
|
+
// Default behavior: pin to submitting node only
|
|
56692
|
+
query.setNodeAccountIds([this.nodeId]);
|
|
56693
|
+
}
|
|
56694
|
+
|
|
56695
|
+
return query;
|
|
56691
56696
|
}
|
|
56692
56697
|
|
|
56693
56698
|
/**
|
|
56699
|
+
* Create a record query for this transaction.
|
|
56700
|
+
*
|
|
56701
|
+
* By default, the query is pinned to the submitting node only. If the client has
|
|
56702
|
+
* `allowReceiptNodeFailover` enabled, the query can fail over to other nodes while
|
|
56703
|
+
* still starting with the submitting node first.
|
|
56704
|
+
*
|
|
56705
|
+
* When failover is enabled, the node list is determined by:
|
|
56706
|
+
* 1. Transaction's configured nodes (if transaction had specific nodes set), or
|
|
56707
|
+
* 2. Client's network nodes (as fallback)
|
|
56708
|
+
*
|
|
56709
|
+
* @param {Client} [client] - Optional client to enable failover behavior
|
|
56694
56710
|
* @returns {TransactionRecordQuery}
|
|
56695
56711
|
*/
|
|
56696
|
-
getRecordQuery() {
|
|
56697
|
-
|
|
56698
|
-
|
|
56699
|
-
|
|
56712
|
+
getRecordQuery(client) {
|
|
56713
|
+
const query = new TransactionRecordQuery().setTransactionId(
|
|
56714
|
+
this.transactionId,
|
|
56715
|
+
);
|
|
56716
|
+
|
|
56717
|
+
// If client is provided and failover is enabled, construct a node list
|
|
56718
|
+
// that starts with the submitting node followed by other nodes
|
|
56719
|
+
if (client != null && client.allowReceiptNodeFailover) {
|
|
56720
|
+
// Use transaction's configured nodes if available, otherwise use client network
|
|
56721
|
+
const availableNodes =
|
|
56722
|
+
this.transactionNodeAccountIds != null &&
|
|
56723
|
+
this.transactionNodeAccountIds.length > 0
|
|
56724
|
+
? this.transactionNodeAccountIds
|
|
56725
|
+
: client._network.getNodeAccountIdsForExecute();
|
|
56726
|
+
|
|
56727
|
+
// Build node list: [submittedNode, ...otherNodes] without duplicates
|
|
56728
|
+
const nodeList = [this.nodeId];
|
|
56729
|
+
for (const node of availableNodes) {
|
|
56730
|
+
// Only add if it's not the submitting node (avoid duplicates)
|
|
56731
|
+
if (!node.equals(this.nodeId)) {
|
|
56732
|
+
nodeList.push(node);
|
|
56733
|
+
}
|
|
56734
|
+
}
|
|
56735
|
+
|
|
56736
|
+
query.setNodeAccountIds(nodeList);
|
|
56737
|
+
} else {
|
|
56738
|
+
// Default behavior: pin to submitting node only
|
|
56739
|
+
query.setNodeAccountIds([this.nodeId]);
|
|
56740
|
+
}
|
|
56741
|
+
|
|
56742
|
+
return query;
|
|
56700
56743
|
}
|
|
56701
56744
|
|
|
56702
56745
|
/**
|
|
@@ -57367,7 +57410,8 @@
|
|
|
57367
57410
|
* @typedef {import("../schedule/ScheduleCreateTransaction.js").default} ScheduleCreateTransaction
|
|
57368
57411
|
* @typedef {import("../PrivateKey.js").default} PrivateKey
|
|
57369
57412
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
57370
|
-
* @typedef {import("../
|
|
57413
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
57414
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
57371
57415
|
* @typedef {import("../Signer.js").Signer} Signer
|
|
57372
57416
|
*/
|
|
57373
57417
|
|
|
@@ -57393,6 +57437,17 @@
|
|
|
57393
57437
|
// This value can be overriden using `setChunkSize` when preparing to submit a messsage via `TopicMessageSubmitTransaction`.
|
|
57394
57438
|
const CHUNK_SIZE = 1024;
|
|
57395
57439
|
|
|
57440
|
+
/**
|
|
57441
|
+
* @param {NonNullable<HieroProto.proto.TransactionBody["data"]>} transactionDataCase
|
|
57442
|
+
* @returns {boolean}
|
|
57443
|
+
*/
|
|
57444
|
+
function isMultiTransactionIdType(transactionDataCase) {
|
|
57445
|
+
return (
|
|
57446
|
+
transactionDataCase === "fileAppend" ||
|
|
57447
|
+
transactionDataCase === "consensusSubmitMessage"
|
|
57448
|
+
);
|
|
57449
|
+
}
|
|
57450
|
+
|
|
57396
57451
|
/**
|
|
57397
57452
|
* @type {Map<NonNullable<HieroProto.proto.TransactionBody["data"]>, (transactions: HieroProto.proto.ITransaction[], signedTransactions: HieroProto.proto.ISignedTransaction[], transactionIds: TransactionId[], nodeIds: AccountId[], bodies: HieroProto.proto.TransactionBody[]) => Transaction>}
|
|
57398
57453
|
*/
|
|
@@ -57775,7 +57830,7 @@
|
|
|
57775
57830
|
* @description Batchify method is used to mark a transaction as part of a batch transaction or make it so-called inner transaction.
|
|
57776
57831
|
* The Transaction will be frozen and signed by the operator of the client.
|
|
57777
57832
|
*
|
|
57778
|
-
* @param {
|
|
57833
|
+
* @param {Client} client
|
|
57779
57834
|
* @param {Key} batchKey
|
|
57780
57835
|
* @returns {Promise<this>}
|
|
57781
57836
|
*/
|
|
@@ -57785,6 +57840,82 @@
|
|
|
57785
57840
|
return await this.signWithOperator(client);
|
|
57786
57841
|
}
|
|
57787
57842
|
|
|
57843
|
+
/**
|
|
57844
|
+
* Validate transaction list shape and consistency.
|
|
57845
|
+
*
|
|
57846
|
+
* @private
|
|
57847
|
+
* @param {NonNullable<HieroProto.proto.TransactionBody["data"]>} transactionDataCase
|
|
57848
|
+
* @param {TransactionId[]} transactionIds
|
|
57849
|
+
* @param {AccountId[]} nodeIds
|
|
57850
|
+
* @param {HieroProto.proto.ITransactionBody[]} bodies
|
|
57851
|
+
* @returns {void}
|
|
57852
|
+
*/
|
|
57853
|
+
static _validateTransactionBodies(
|
|
57854
|
+
transactionDataCase,
|
|
57855
|
+
transactionIds,
|
|
57856
|
+
nodeIds,
|
|
57857
|
+
bodies,
|
|
57858
|
+
) {
|
|
57859
|
+
const hasNoTransactionIds = transactionIds.length === 0;
|
|
57860
|
+
const hasNoBodies = bodies.length === 0;
|
|
57861
|
+
|
|
57862
|
+
if (hasNoTransactionIds || hasNoBodies) {
|
|
57863
|
+
return;
|
|
57864
|
+
}
|
|
57865
|
+
|
|
57866
|
+
const transactionCount = transactionIds.length;
|
|
57867
|
+
const nodeCount = nodeIds.length;
|
|
57868
|
+
const isChunkedTransactionType =
|
|
57869
|
+
isMultiTransactionIdType(transactionDataCase);
|
|
57870
|
+
const hasInvalidLogicalTransactionCount =
|
|
57871
|
+
!isChunkedTransactionType && transactionCount !== 1;
|
|
57872
|
+
|
|
57873
|
+
if (nodeCount === 0) {
|
|
57874
|
+
const hasUnexpectedBodyCountWithoutNodes =
|
|
57875
|
+
bodies.length !== transactionCount;
|
|
57876
|
+
|
|
57877
|
+
if (
|
|
57878
|
+
hasUnexpectedBodyCountWithoutNodes ||
|
|
57879
|
+
hasInvalidLogicalTransactionCount
|
|
57880
|
+
) {
|
|
57881
|
+
throw new Error("failed to validate transaction bodies");
|
|
57882
|
+
}
|
|
57883
|
+
|
|
57884
|
+
return;
|
|
57885
|
+
}
|
|
57886
|
+
|
|
57887
|
+
const expectedBodyCount = transactionCount * nodeCount;
|
|
57888
|
+
const hasUnexpectedBodyCount = bodies.length !== expectedBodyCount;
|
|
57889
|
+
|
|
57890
|
+
if (hasUnexpectedBodyCount || hasInvalidLogicalTransactionCount) {
|
|
57891
|
+
throw new Error("failed to validate transaction bodies");
|
|
57892
|
+
}
|
|
57893
|
+
|
|
57894
|
+
const ignoredFields = new Set();
|
|
57895
|
+
ignoredFields.add("nodeAccountID");
|
|
57896
|
+
|
|
57897
|
+
for (
|
|
57898
|
+
let transactionIndex = 0;
|
|
57899
|
+
transactionIndex < transactionCount;
|
|
57900
|
+
transactionIndex++
|
|
57901
|
+
) {
|
|
57902
|
+
const rowStart = transactionIndex * nodeCount;
|
|
57903
|
+
const referenceBody = bodies[rowStart];
|
|
57904
|
+
|
|
57905
|
+
for (let nodeIndex = 1; nodeIndex < nodeCount; nodeIndex++) {
|
|
57906
|
+
if (
|
|
57907
|
+
!compare$1(
|
|
57908
|
+
referenceBody,
|
|
57909
|
+
bodies[rowStart + nodeIndex],
|
|
57910
|
+
ignoredFields,
|
|
57911
|
+
)
|
|
57912
|
+
) {
|
|
57913
|
+
throw new Error("failed to validate transaction bodies");
|
|
57914
|
+
}
|
|
57915
|
+
}
|
|
57916
|
+
}
|
|
57917
|
+
}
|
|
57918
|
+
|
|
57788
57919
|
/**
|
|
57789
57920
|
* This method is called by each `*Transaction._fromProtobuf()` method. It does
|
|
57790
57921
|
* all the finalization before the user gets hold of a complete `Transaction`
|
|
@@ -57807,22 +57938,12 @@
|
|
|
57807
57938
|
bodies,
|
|
57808
57939
|
) {
|
|
57809
57940
|
const body = bodies[0];
|
|
57810
|
-
|
|
57811
|
-
|
|
57812
|
-
|
|
57813
|
-
|
|
57814
|
-
|
|
57815
|
-
|
|
57816
|
-
bodies[i * nodeIds.length + j],
|
|
57817
|
-
bodies[i * nodeIds.length + j + 1],
|
|
57818
|
-
// eslint-disable-next-line ie11/no-collection-args
|
|
57819
|
-
new Set(["nodeAccountID"]),
|
|
57820
|
-
)
|
|
57821
|
-
) {
|
|
57822
|
-
throw new Error("failed to validate transaction bodies");
|
|
57823
|
-
}
|
|
57824
|
-
}
|
|
57825
|
-
}
|
|
57941
|
+
Transaction._validateTransactionBodies(
|
|
57942
|
+
transaction._getTransactionDataCase(),
|
|
57943
|
+
transactionIds,
|
|
57944
|
+
nodeIds,
|
|
57945
|
+
bodies,
|
|
57946
|
+
);
|
|
57826
57947
|
|
|
57827
57948
|
// Remove node account IDs of 0
|
|
57828
57949
|
// _IIRC_ this was initial due to some funny behavior with `ScheduleCreateTransaction`
|
|
@@ -58127,6 +58248,43 @@
|
|
|
58127
58248
|
);
|
|
58128
58249
|
}
|
|
58129
58250
|
|
|
58251
|
+
/**
|
|
58252
|
+
* Defense-in-depth validation before adding signatures.
|
|
58253
|
+
*
|
|
58254
|
+
* @private
|
|
58255
|
+
* @returns {void}
|
|
58256
|
+
*/
|
|
58257
|
+
_validateSignedTransactionBodies() {
|
|
58258
|
+
if (
|
|
58259
|
+
this._transactionIds.length === 0 ||
|
|
58260
|
+
this._signedTransactions.length === 0
|
|
58261
|
+
) {
|
|
58262
|
+
return;
|
|
58263
|
+
}
|
|
58264
|
+
|
|
58265
|
+
/** @type {HieroProto.proto.ITransactionBody[]} */
|
|
58266
|
+
const bodies = [];
|
|
58267
|
+
|
|
58268
|
+
for (const signedTransaction of this._signedTransactions.list) {
|
|
58269
|
+
if (signedTransaction.bodyBytes == null) {
|
|
58270
|
+
throw new Error("failed to validate transaction bodies");
|
|
58271
|
+
}
|
|
58272
|
+
|
|
58273
|
+
bodies.push(
|
|
58274
|
+
libExports.proto.TransactionBody.decode(
|
|
58275
|
+
/** @type {Uint8Array} */ (signedTransaction.bodyBytes),
|
|
58276
|
+
),
|
|
58277
|
+
);
|
|
58278
|
+
}
|
|
58279
|
+
|
|
58280
|
+
Transaction._validateTransactionBodies(
|
|
58281
|
+
this._getTransactionDataCase(),
|
|
58282
|
+
this._transactionIds.list,
|
|
58283
|
+
this._nodeAccountIds.list,
|
|
58284
|
+
bodies,
|
|
58285
|
+
);
|
|
58286
|
+
}
|
|
58287
|
+
|
|
58130
58288
|
/**
|
|
58131
58289
|
* Sign the transaction with the public key and signer function
|
|
58132
58290
|
*
|
|
@@ -58158,6 +58316,8 @@
|
|
|
58158
58316
|
return this;
|
|
58159
58317
|
}
|
|
58160
58318
|
|
|
58319
|
+
this._validateSignedTransactionBodies();
|
|
58320
|
+
|
|
58161
58321
|
// If we add a new signer, then we need to re-create all transactions
|
|
58162
58322
|
this._transactions.clear();
|
|
58163
58323
|
|
|
@@ -59043,7 +59203,7 @@
|
|
|
59043
59203
|
*
|
|
59044
59204
|
* @override
|
|
59045
59205
|
* @protected
|
|
59046
|
-
* @param {
|
|
59206
|
+
* @param {Client} client
|
|
59047
59207
|
* @returns {Promise<void>}
|
|
59048
59208
|
*/
|
|
59049
59209
|
async _beforeExecute(client) {
|
|
@@ -59393,6 +59553,9 @@
|
|
|
59393
59553
|
transactionId,
|
|
59394
59554
|
transaction: this,
|
|
59395
59555
|
logger: this._logger,
|
|
59556
|
+
transactionNodeAccountIds: !this._nodeAccountIds.isEmpty
|
|
59557
|
+
? this._nodeAccountIds.list
|
|
59558
|
+
: undefined,
|
|
59396
59559
|
});
|
|
59397
59560
|
}
|
|
59398
59561
|
|
|
@@ -60938,7 +61101,9 @@
|
|
|
60938
61101
|
*/
|
|
60939
61102
|
|
|
60940
61103
|
/**
|
|
60941
|
-
* @typedef {import("../
|
|
61104
|
+
* @typedef {import("../channel/Channel.js").default} Channel
|
|
61105
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
61106
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
60942
61107
|
*/
|
|
60943
61108
|
|
|
60944
61109
|
/**
|
|
@@ -61081,7 +61246,9 @@
|
|
|
61081
61246
|
*/
|
|
61082
61247
|
|
|
61083
61248
|
/**
|
|
61084
|
-
* @typedef {import("../
|
|
61249
|
+
* @typedef {import("../channel/Channel.js").default} Channel
|
|
61250
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
61251
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
61085
61252
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
61086
61253
|
*/
|
|
61087
61254
|
|
|
@@ -61234,7 +61401,9 @@
|
|
|
61234
61401
|
*/
|
|
61235
61402
|
|
|
61236
61403
|
/**
|
|
61237
|
-
* @typedef {import("../
|
|
61404
|
+
* @typedef {import("../channel/Channel.js").default} Channel
|
|
61405
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
61406
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
61238
61407
|
*/
|
|
61239
61408
|
|
|
61240
61409
|
/**
|
|
@@ -61452,7 +61621,8 @@
|
|
|
61452
61621
|
|
|
61453
61622
|
/**
|
|
61454
61623
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
61455
|
-
* @typedef {import("../
|
|
61624
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
61625
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
61456
61626
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
61457
61627
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
61458
61628
|
* @typedef {import("../long.js").LongObject} LongObject
|
|
@@ -61983,7 +62153,8 @@
|
|
|
61983
62153
|
|
|
61984
62154
|
/**
|
|
61985
62155
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
61986
|
-
* @typedef {import("../
|
|
62156
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
62157
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
61987
62158
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
61988
62159
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
61989
62160
|
* @typedef {import("../long.js").LongObject} LongObject
|
|
@@ -62542,7 +62713,8 @@
|
|
|
62542
62713
|
* @typedef {import("./HbarAllowance.js").default} HbarAllowance
|
|
62543
62714
|
* @typedef {import("./TokenAllowance.js").default} TokenAllowance
|
|
62544
62715
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
62545
|
-
* @typedef {import("../
|
|
62716
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
62717
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
62546
62718
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
62547
62719
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
62548
62720
|
* @typedef {import("../long.js").LongObject} LongObject
|
|
@@ -62793,9 +62965,9 @@
|
|
|
62793
62965
|
*/
|
|
62794
62966
|
this.hbars = props.hbars;
|
|
62795
62967
|
|
|
62796
|
-
this.tokens = props.tokens;
|
|
62968
|
+
this.tokens = props.tokens || new TokenBalanceMap();
|
|
62797
62969
|
|
|
62798
|
-
this.tokenDecimals = props.tokenDecimals;
|
|
62970
|
+
this.tokenDecimals = props.tokenDecimals || new TokenDecimalMap();
|
|
62799
62971
|
|
|
62800
62972
|
Object.freeze(this);
|
|
62801
62973
|
}
|
|
@@ -62852,17 +63024,11 @@
|
|
|
62852
63024
|
/** @type {HieroProto.proto.ITokenBalance[]} */
|
|
62853
63025
|
const list = [];
|
|
62854
63026
|
|
|
62855
|
-
|
|
62856
|
-
for (const [key, value] of this.tokens != null ? this.tokens : []) {
|
|
63027
|
+
for (const [key, value] of this.tokens) {
|
|
62857
63028
|
list.push({
|
|
62858
63029
|
tokenId: key._toProtobuf(),
|
|
62859
63030
|
balance: value,
|
|
62860
|
-
decimals:
|
|
62861
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
62862
|
-
this.tokenDecimals != null
|
|
62863
|
-
? // eslint-disable-next-line deprecation/deprecation
|
|
62864
|
-
this.tokenDecimals.get(key)
|
|
62865
|
-
: null,
|
|
63031
|
+
decimals: this.tokenDecimals.get(key),
|
|
62866
63032
|
});
|
|
62867
63033
|
}
|
|
62868
63034
|
|
|
@@ -62893,11 +63059,9 @@
|
|
|
62893
63059
|
*/
|
|
62894
63060
|
toJSON() {
|
|
62895
63061
|
const tokens = [];
|
|
62896
|
-
|
|
62897
|
-
for (const [key, value] of this.tokens
|
|
62898
|
-
const decimals =
|
|
62899
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
62900
|
-
this.tokenDecimals != null ? this.tokenDecimals.get(key) : null;
|
|
63062
|
+
|
|
63063
|
+
for (const [key, value] of this.tokens) {
|
|
63064
|
+
const decimals = this.tokenDecimals.get(key);
|
|
62901
63065
|
|
|
62902
63066
|
tokens.push({
|
|
62903
63067
|
tokenId: key.toString(),
|
|
@@ -62928,7 +63092,8 @@
|
|
|
62928
63092
|
|
|
62929
63093
|
/**
|
|
62930
63094
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
62931
|
-
* @typedef {import("../
|
|
63095
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
63096
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
62932
63097
|
*/
|
|
62933
63098
|
|
|
62934
63099
|
/**
|
|
@@ -63076,7 +63241,6 @@
|
|
|
63076
63241
|
}
|
|
63077
63242
|
|
|
63078
63243
|
/**
|
|
63079
|
-
* @override
|
|
63080
63244
|
* @override
|
|
63081
63245
|
* @internal
|
|
63082
63246
|
* @param {HieroProto.proto.IResponse} response
|
|
@@ -63093,16 +63257,13 @@
|
|
|
63093
63257
|
}
|
|
63094
63258
|
|
|
63095
63259
|
/**
|
|
63096
|
-
* @override
|
|
63097
63260
|
* @override
|
|
63098
63261
|
* @internal
|
|
63099
63262
|
* @param {HieroProto.proto.IResponse} response
|
|
63100
|
-
* @param {AccountId} nodeAccountId
|
|
63101
|
-
* @param {HieroProto.proto.IQuery} request
|
|
63102
63263
|
* @returns {Promise<AccountBalance>}
|
|
63103
63264
|
*/
|
|
63104
|
-
|
|
63105
|
-
_mapResponse(response
|
|
63265
|
+
|
|
63266
|
+
_mapResponse(response) {
|
|
63106
63267
|
const cryptogetAccountBalance =
|
|
63107
63268
|
/** @type {HieroProto.proto.ICryptoGetAccountBalanceResponse} */ (
|
|
63108
63269
|
response.cryptogetAccountBalance
|
|
@@ -63144,8 +63305,7 @@
|
|
|
63144
63305
|
|
|
63145
63306
|
QUERY_REGISTRY.set(
|
|
63146
63307
|
"cryptogetAccountBalance",
|
|
63147
|
-
|
|
63148
|
-
AccountBalanceQuery._fromProtobuf,
|
|
63308
|
+
AccountBalanceQuery._fromProtobuf.bind(null),
|
|
63149
63309
|
);
|
|
63150
63310
|
|
|
63151
63311
|
// SPDX-License-Identifier: Apache-2.0
|
|
@@ -63201,7 +63361,8 @@
|
|
|
63201
63361
|
/**
|
|
63202
63362
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
63203
63363
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
63204
|
-
* @typedef {import("../
|
|
63364
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
63365
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
63205
63366
|
* @typedef {import("../Timestamp.js").default} Timestamp
|
|
63206
63367
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
63207
63368
|
*/
|
|
@@ -63873,7 +64034,8 @@
|
|
|
63873
64034
|
|
|
63874
64035
|
/**
|
|
63875
64036
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
63876
|
-
* @typedef {import("../
|
|
64037
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
64038
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
63877
64039
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
63878
64040
|
*/
|
|
63879
64041
|
|
|
@@ -65089,7 +65251,8 @@
|
|
|
65089
65251
|
|
|
65090
65252
|
/**
|
|
65091
65253
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
65092
|
-
* @typedef {import("../
|
|
65254
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
65255
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
65093
65256
|
*/
|
|
65094
65257
|
|
|
65095
65258
|
/**
|
|
@@ -65377,7 +65540,8 @@
|
|
|
65377
65540
|
|
|
65378
65541
|
/**
|
|
65379
65542
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
65380
|
-
* @typedef {import("../
|
|
65543
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
65544
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
65381
65545
|
*/
|
|
65382
65546
|
|
|
65383
65547
|
/**
|
|
@@ -65561,7 +65725,8 @@
|
|
|
65561
65725
|
|
|
65562
65726
|
/**
|
|
65563
65727
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
65564
|
-
* @typedef {import("../
|
|
65728
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
65729
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
65565
65730
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
65566
65731
|
*/
|
|
65567
65732
|
|
|
@@ -71344,7 +71509,8 @@
|
|
|
71344
71509
|
/**
|
|
71345
71510
|
* @typedef {import("../PublicKey.js").default} PublicKey
|
|
71346
71511
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
71347
|
-
* @typedef {import("../
|
|
71512
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
71513
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
71348
71514
|
* @typedef {import("../transaction/TransactionResponse.js").default} TransactionResponse
|
|
71349
71515
|
* @typedef {import("../schedule/ScheduleCreateTransaction.js").default} ScheduleCreateTransaction
|
|
71350
71516
|
*/
|
|
@@ -71657,7 +71823,7 @@
|
|
|
71657
71823
|
* Will use the `Client`, if available, to generate a default Transaction ID and select 1/3
|
|
71658
71824
|
* nodes to prepare this transaction for.
|
|
71659
71825
|
*
|
|
71660
|
-
* @param {?
|
|
71826
|
+
* @param {?Client} client
|
|
71661
71827
|
* @returns {this}
|
|
71662
71828
|
*/
|
|
71663
71829
|
freezeWith(client) {
|
|
@@ -71721,7 +71887,7 @@
|
|
|
71721
71887
|
}
|
|
71722
71888
|
|
|
71723
71889
|
/**
|
|
71724
|
-
* @param {
|
|
71890
|
+
* @param {Client} client
|
|
71725
71891
|
* @param {number=} requestTimeout
|
|
71726
71892
|
* @returns {Promise<TransactionResponse>}
|
|
71727
71893
|
*/
|
|
@@ -71730,7 +71896,7 @@
|
|
|
71730
71896
|
}
|
|
71731
71897
|
|
|
71732
71898
|
/**
|
|
71733
|
-
* @param {
|
|
71899
|
+
* @param {Client} client
|
|
71734
71900
|
* @param {number=} requestTimeout
|
|
71735
71901
|
* @returns {Promise<TransactionResponse[]>}
|
|
71736
71902
|
*/
|
|
@@ -72086,7 +72252,8 @@
|
|
|
72086
72252
|
/**
|
|
72087
72253
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
72088
72254
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
72089
|
-
* @typedef {import("../
|
|
72255
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
72256
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
72090
72257
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
72091
72258
|
*/
|
|
72092
72259
|
|
|
@@ -73299,7 +73466,8 @@
|
|
|
73299
73466
|
|
|
73300
73467
|
/**
|
|
73301
73468
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
73302
|
-
* @typedef {import("../
|
|
73469
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
73470
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
73303
73471
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
73304
73472
|
*/
|
|
73305
73473
|
|
|
@@ -74387,7 +74555,8 @@
|
|
|
74387
74555
|
|
|
74388
74556
|
/**
|
|
74389
74557
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
74390
|
-
* @typedef {import("../
|
|
74558
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
74559
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
74391
74560
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
74392
74561
|
*/
|
|
74393
74562
|
|
|
@@ -79346,7 +79515,8 @@
|
|
|
79346
79515
|
|
|
79347
79516
|
/**
|
|
79348
79517
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
79349
|
-
* @typedef {import("../
|
|
79518
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
79519
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
79350
79520
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
79351
79521
|
*/
|
|
79352
79522
|
|
|
@@ -79628,7 +79798,8 @@
|
|
|
79628
79798
|
|
|
79629
79799
|
/**
|
|
79630
79800
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
79631
|
-
* @typedef {import("../
|
|
79801
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
79802
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
79632
79803
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
79633
79804
|
*/
|
|
79634
79805
|
|
|
@@ -79822,7 +79993,8 @@
|
|
|
79822
79993
|
|
|
79823
79994
|
/**
|
|
79824
79995
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
79825
|
-
* @typedef {import("../
|
|
79996
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
79997
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
79826
79998
|
*/
|
|
79827
79999
|
|
|
79828
80000
|
/**
|
|
@@ -81683,7 +81855,8 @@
|
|
|
81683
81855
|
/**
|
|
81684
81856
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
81685
81857
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
81686
|
-
* @typedef {import("../
|
|
81858
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
81859
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
81687
81860
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
81688
81861
|
* @typedef {import("../PublicKey.js").default} PublicKey
|
|
81689
81862
|
* @typedef {import("../PrivateKey.js").default} PrivateKey
|
|
@@ -83379,7 +83552,8 @@
|
|
|
83379
83552
|
|
|
83380
83553
|
/**
|
|
83381
83554
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
83382
|
-
* @typedef {import("../
|
|
83555
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
83556
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
83383
83557
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
83384
83558
|
*/
|
|
83385
83559
|
|
|
@@ -84111,7 +84285,8 @@
|
|
|
84111
84285
|
|
|
84112
84286
|
/**
|
|
84113
84287
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
84114
|
-
* @typedef {import("../
|
|
84288
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
84289
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
84115
84290
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
84116
84291
|
*/
|
|
84117
84292
|
|
|
@@ -84308,7 +84483,9 @@
|
|
|
84308
84483
|
|
|
84309
84484
|
/**
|
|
84310
84485
|
* @typedef {import("../PrivateKey.js").default} PrivateKey
|
|
84311
|
-
* @typedef {import("../
|
|
84486
|
+
* @typedef {import("../channel/Channel.js").default} Channel
|
|
84487
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
84488
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
84312
84489
|
* @typedef {import("../Signer.js").default} Signer
|
|
84313
84490
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
84314
84491
|
* @typedef {import("../transaction/Transaction.js").default} Transaction
|
|
@@ -84731,7 +84908,8 @@
|
|
|
84731
84908
|
/**
|
|
84732
84909
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
84733
84910
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
84734
|
-
* @typedef {import("../
|
|
84911
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
84912
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
84735
84913
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
84736
84914
|
* @typedef {import("./CustomFee.js").default} CustomFee
|
|
84737
84915
|
*/
|
|
@@ -86041,7 +86219,8 @@
|
|
|
86041
86219
|
|
|
86042
86220
|
/**
|
|
86043
86221
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
86044
|
-
* @typedef {import("../
|
|
86222
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
86223
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
86045
86224
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
86046
86225
|
*/
|
|
86047
86226
|
|
|
@@ -86240,7 +86419,8 @@
|
|
|
86240
86419
|
|
|
86241
86420
|
/**
|
|
86242
86421
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
86243
|
-
* @typedef {import("../
|
|
86422
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
86423
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
86244
86424
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
86245
86425
|
*/
|
|
86246
86426
|
|
|
@@ -87967,7 +88147,8 @@
|
|
|
87967
88147
|
|
|
87968
88148
|
/**
|
|
87969
88149
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
87970
|
-
* @typedef {import("../
|
|
88150
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
88151
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
87971
88152
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
87972
88153
|
*/
|
|
87973
88154
|
|
|
@@ -88166,7 +88347,8 @@
|
|
|
88166
88347
|
|
|
88167
88348
|
/**
|
|
88168
88349
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
88169
|
-
* @typedef {import("../
|
|
88350
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
88351
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
88170
88352
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
88171
88353
|
*/
|
|
88172
88354
|
|
|
@@ -88595,7 +88777,8 @@
|
|
|
88595
88777
|
/**
|
|
88596
88778
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
88597
88779
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
88598
|
-
* @typedef {import("../
|
|
88780
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
88781
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
88599
88782
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
88600
88783
|
*/
|
|
88601
88784
|
|
|
@@ -89413,7 +89596,8 @@
|
|
|
89413
89596
|
|
|
89414
89597
|
/**
|
|
89415
89598
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
89416
|
-
* @typedef {import("../
|
|
89599
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
89600
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
89417
89601
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
89418
89602
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
89419
89603
|
*/
|
|
@@ -89679,7 +89863,8 @@
|
|
|
89679
89863
|
|
|
89680
89864
|
/**
|
|
89681
89865
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
89682
|
-
* @typedef {import("../
|
|
89866
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
89867
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
89683
89868
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
89684
89869
|
*/
|
|
89685
89870
|
|
|
@@ -92064,7 +92249,8 @@
|
|
|
92064
92249
|
|
|
92065
92250
|
/**
|
|
92066
92251
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
92067
|
-
* @typedef {import("../
|
|
92252
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
92253
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
92068
92254
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
92069
92255
|
*/
|
|
92070
92256
|
|
|
@@ -92766,7 +92952,9 @@
|
|
|
92766
92952
|
|
|
92767
92953
|
/**
|
|
92768
92954
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
92769
|
-
* @typedef {import("../
|
|
92955
|
+
* @typedef {import("../channel/MirrorChannel.js").default} MirrorChannel
|
|
92956
|
+
* @typedef {import("../client/Client.js").default<Channel, MirrorChannel>} Client
|
|
92957
|
+
* @typedef {import("../Timestamp.js").default} Timestamp
|
|
92770
92958
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
92771
92959
|
*/
|
|
92772
92960
|
|
|
@@ -93091,10 +93279,11 @@
|
|
|
93091
93279
|
}
|
|
93092
93280
|
|
|
93093
93281
|
/**
|
|
93282
|
+
* @override
|
|
93094
93283
|
* @returns {string}
|
|
93095
93284
|
*/
|
|
93096
93285
|
_getLogId() {
|
|
93097
|
-
const timestamp = /** @type {
|
|
93286
|
+
const timestamp = /** @type {Timestamp} */ (
|
|
93098
93287
|
this._transactionIds.current.validStart
|
|
93099
93288
|
);
|
|
93100
93289
|
return `TransferTransaction:${timestamp.toString()}`;
|
|
@@ -93103,8 +93292,7 @@
|
|
|
93103
93292
|
|
|
93104
93293
|
TRANSACTION_REGISTRY.set(
|
|
93105
93294
|
"cryptoTransfer",
|
|
93106
|
-
|
|
93107
|
-
TransferTransaction._fromProtobuf,
|
|
93295
|
+
TransferTransaction._fromProtobuf.bind(null),
|
|
93108
93296
|
);
|
|
93109
93297
|
|
|
93110
93298
|
// SPDX-License-Identifier: Apache-2.0
|
|
@@ -98114,6 +98302,18 @@
|
|
|
98114
98302
|
/** @private */
|
|
98115
98303
|
this._defaultRegenerateTransactionId = true;
|
|
98116
98304
|
|
|
98305
|
+
/**
|
|
98306
|
+
* When enabled, allows receipt queries to fail over to other nodes
|
|
98307
|
+
* if the submitting node is unresponsive. Default is false to preserve
|
|
98308
|
+
* existing semantics where receipt queries are pinned to the submitting node.
|
|
98309
|
+
*
|
|
98310
|
+
* Tradeoff: Improved availability vs the rare case where only the submitting
|
|
98311
|
+
* node may have final failure information.
|
|
98312
|
+
*
|
|
98313
|
+
* @private
|
|
98314
|
+
*/
|
|
98315
|
+
this._allowReceiptNodeFailover = false;
|
|
98316
|
+
|
|
98117
98317
|
/** @private */
|
|
98118
98318
|
this._requestTimeout = DEFAULT_REQUEST_TIMEOUT;
|
|
98119
98319
|
|
|
@@ -98462,6 +98662,32 @@
|
|
|
98462
98662
|
return this;
|
|
98463
98663
|
}
|
|
98464
98664
|
|
|
98665
|
+
/**
|
|
98666
|
+
* @returns {boolean}
|
|
98667
|
+
*/
|
|
98668
|
+
get allowReceiptNodeFailover() {
|
|
98669
|
+
return this._allowReceiptNodeFailover;
|
|
98670
|
+
}
|
|
98671
|
+
|
|
98672
|
+
/**
|
|
98673
|
+
* Enable or disable receipt query failover to other nodes when the submitting node
|
|
98674
|
+
* is unresponsive. When enabled, receipt queries will start with the submitting node
|
|
98675
|
+
* but can fail over to other nodes in the network if needed.
|
|
98676
|
+
*
|
|
98677
|
+
* Default is `false` to preserve existing behavior where receipt queries are pinned
|
|
98678
|
+
* to the submitting node only.
|
|
98679
|
+
*
|
|
98680
|
+
* **Tradeoff**: Enabling this improves availability for high-throughput/relay use cases,
|
|
98681
|
+
* but in rare cases only the submitting node may have the final failure information.
|
|
98682
|
+
*
|
|
98683
|
+
* @param {boolean} allowReceiptNodeFailover
|
|
98684
|
+
* @returns {this}
|
|
98685
|
+
*/
|
|
98686
|
+
setAllowReceiptNodeFailover(allowReceiptNodeFailover) {
|
|
98687
|
+
this._allowReceiptNodeFailover = allowReceiptNodeFailover;
|
|
98688
|
+
return this;
|
|
98689
|
+
}
|
|
98690
|
+
|
|
98465
98691
|
/**
|
|
98466
98692
|
* @returns {Hbar}
|
|
98467
98693
|
*/
|
|
@@ -98947,7 +99173,7 @@
|
|
|
98947
99173
|
|
|
98948
99174
|
const SDK_NAME = "hiero-sdk-js";
|
|
98949
99175
|
const SDK_VERSION =
|
|
98950
|
-
"2.
|
|
99176
|
+
"2.81.0" ;
|
|
98951
99177
|
|
|
98952
99178
|
// SPDX-License-Identifier: Apache-2.0
|
|
98953
99179
|
|
|
@@ -100342,3 +100568,4 @@
|
|
|
100342
100568
|
exports.WebClient = WebClient;
|
|
100343
100569
|
|
|
100344
100570
|
}));
|
|
100571
|
+
//# sourceMappingURL=umd.js.map
|