@hiero-ledger/sdk 2.76.0 → 2.78.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/umd.js +1017 -673
- package/dist/umd.min.js +14 -14
- package/lib/Cache.cjs +6 -6
- package/lib/Cache.d.ts +12 -12
- package/lib/Cache.js.map +1 -1
- package/lib/Duration.cjs +1 -1
- package/lib/Duration.d.ts +2 -2
- package/lib/Duration.js.map +1 -1
- package/lib/EntityIdHelper.cjs +1 -1
- package/lib/EntityIdHelper.js +1 -1
- package/lib/EntityIdHelper.js.map +1 -1
- package/lib/EthereumFlow.cjs +7 -7
- package/lib/EthereumFlow.d.ts +14 -14
- package/lib/EthereumFlow.js.map +1 -1
- package/lib/EthereumTransaction.cjs +7 -7
- package/lib/EthereumTransaction.d.ts +14 -14
- package/lib/EthereumTransaction.js.map +1 -1
- package/lib/EvmAddress.cjs +1 -1
- package/lib/EvmAddress.d.ts +2 -2
- package/lib/EvmAddress.js.map +1 -1
- package/lib/ExchangeRate.cjs +2 -2
- package/lib/ExchangeRate.d.ts +4 -4
- package/lib/ExchangeRate.js.map +1 -1
- package/lib/ExchangeRates.cjs +1 -1
- package/lib/ExchangeRates.d.ts +1 -1
- package/lib/ExchangeRates.js +1 -1
- package/lib/ExchangeRates.js.map +1 -1
- package/lib/Executable.cjs +13 -3
- package/lib/Executable.js +1 -1
- package/lib/Executable.js.map +1 -1
- package/lib/FeeComponents.cjs +1 -1
- package/lib/FeeComponents.d.ts +1 -1
- package/lib/FeeComponents.js +1 -1
- package/lib/FeeComponents.js.map +1 -1
- package/lib/FeeData.cjs +1 -1
- package/lib/FeeData.d.ts +1 -1
- package/lib/FeeData.js +1 -1
- package/lib/FeeData.js.map +1 -1
- package/lib/FeeDataType.cjs +1 -1
- package/lib/FeeDataType.d.ts +2 -2
- package/lib/FeeDataType.js.map +1 -1
- package/lib/FeeSchedule.cjs +1 -1
- package/lib/FeeSchedule.d.ts +1 -1
- package/lib/FeeSchedule.js +1 -1
- package/lib/FeeSchedule.js.map +1 -1
- package/lib/FeeSchedules.cjs +1 -1
- package/lib/FeeSchedules.d.ts +1 -1
- package/lib/FeeSchedules.js +1 -1
- package/lib/FeeSchedules.js.map +1 -1
- package/lib/FreezeType.cjs +1 -1
- package/lib/FreezeType.d.ts +2 -2
- package/lib/FreezeType.js.map +1 -1
- package/lib/Key.cjs +1 -1
- package/lib/Key.d.ts +2 -2
- package/lib/Key.js.map +1 -1
- package/lib/KeyList.cjs +3 -3
- package/lib/KeyList.d.ts +6 -6
- package/lib/KeyList.js.map +1 -1
- package/lib/Mnemonic.cjs +1 -1
- package/lib/Mnemonic.d.ts +1 -1
- package/lib/Mnemonic.js +1 -1
- package/lib/Mnemonic.js.map +1 -1
- package/lib/PrivateKey.cjs +7 -7
- package/lib/PrivateKey.d.ts +11 -11
- package/lib/PrivateKey.js +1 -1
- package/lib/PrivateKey.js.map +1 -1
- package/lib/PrngTransaction.cjs +9 -9
- package/lib/PrngTransaction.d.ts +18 -18
- package/lib/PrngTransaction.js.map +1 -1
- package/lib/PublicKey.cjs +5 -5
- package/lib/PublicKey.d.ts +9 -9
- package/lib/PublicKey.js +1 -1
- package/lib/PublicKey.js.map +1 -1
- package/lib/RequestType.cjs +1 -1
- package/lib/RequestType.d.ts +2 -2
- package/lib/RequestType.js.map +1 -1
- package/lib/StakingInfo.cjs +1 -1
- package/lib/StakingInfo.d.ts +1 -1
- package/lib/StakingInfo.js +1 -1
- package/lib/StakingInfo.js.map +1 -1
- package/lib/Status.cjs +1 -1
- package/lib/Status.d.ts +2 -2
- package/lib/Status.js.map +1 -1
- package/lib/Timestamp.cjs +1 -1
- package/lib/Timestamp.d.ts +1 -1
- package/lib/Timestamp.js.map +1 -1
- package/lib/TransactionFeeSchedule.cjs +1 -1
- package/lib/TransactionFeeSchedule.d.ts +1 -1
- package/lib/TransactionFeeSchedule.js +1 -1
- package/lib/TransactionFeeSchedule.js.map +1 -1
- package/lib/Transfer.cjs +2 -2
- package/lib/Transfer.d.ts +4 -4
- package/lib/Transfer.js.map +1 -1
- package/lib/account/AccountAllowanceAdjustTransaction.cjs +7 -7
- package/lib/account/AccountAllowanceAdjustTransaction.d.ts +14 -14
- package/lib/account/AccountAllowanceAdjustTransaction.js.map +1 -1
- package/lib/account/AccountAllowanceApproveTransaction.cjs +8 -8
- package/lib/account/AccountAllowanceApproveTransaction.d.ts +16 -16
- package/lib/account/AccountAllowanceApproveTransaction.js.map +1 -1
- package/lib/account/AccountAllowanceDeleteTransaction.cjs +7 -7
- package/lib/account/AccountAllowanceDeleteTransaction.d.ts +14 -14
- package/lib/account/AccountAllowanceDeleteTransaction.js.map +1 -1
- package/lib/account/AccountBalance.cjs +1 -1
- package/lib/account/AccountBalance.d.ts +1 -1
- package/lib/account/AccountBalance.js +1 -1
- package/lib/account/AccountBalance.js.map +1 -1
- package/lib/account/AccountBalanceQuery.cjs +6 -6
- package/lib/account/AccountBalanceQuery.d.ts +12 -12
- package/lib/account/AccountBalanceQuery.js.map +1 -1
- package/lib/account/AccountCreateTransaction.cjs +1 -1
- package/lib/account/AccountCreateTransaction.d.ts +1 -1
- package/lib/account/AccountCreateTransaction.js +1 -1
- package/lib/account/AccountCreateTransaction.js.map +1 -1
- package/lib/account/AccountDeleteTransaction.cjs +7 -7
- package/lib/account/AccountDeleteTransaction.d.ts +14 -14
- package/lib/account/AccountDeleteTransaction.js.map +1 -1
- package/lib/account/AccountId.cjs +1 -1
- package/lib/account/AccountId.d.ts +1 -1
- package/lib/account/AccountId.js +1 -1
- package/lib/account/AccountId.js.map +1 -1
- package/lib/account/AccountInfo.cjs +1 -1
- package/lib/account/AccountInfo.d.ts +1 -1
- package/lib/account/AccountInfo.js +1 -1
- package/lib/account/AccountInfo.js.map +1 -1
- package/lib/account/AccountInfoQuery.cjs +7 -7
- package/lib/account/AccountInfoQuery.d.ts +14 -14
- package/lib/account/AccountInfoQuery.js.map +1 -1
- package/lib/account/AccountRecordsQuery.cjs +7 -7
- package/lib/account/AccountRecordsQuery.d.ts +14 -14
- package/lib/account/AccountRecordsQuery.js.map +1 -1
- package/lib/account/AccountUpdateTransaction.cjs +7 -7
- package/lib/account/AccountUpdateTransaction.d.ts +14 -14
- package/lib/account/AccountUpdateTransaction.js.map +1 -1
- package/lib/account/HbarAllowance.cjs +3 -3
- package/lib/account/HbarAllowance.d.ts +6 -6
- package/lib/account/HbarAllowance.js.map +1 -1
- package/lib/account/HbarTransferMap.cjs +2 -2
- package/lib/account/HbarTransferMap.d.ts +4 -4
- package/lib/account/HbarTransferMap.js.map +1 -1
- package/lib/account/LiveHash.cjs +3 -3
- package/lib/account/LiveHash.d.ts +6 -6
- package/lib/account/LiveHash.js.map +1 -1
- package/lib/account/LiveHashAddTransaction.cjs +7 -7
- package/lib/account/LiveHashAddTransaction.d.ts +14 -14
- package/lib/account/LiveHashAddTransaction.js.map +1 -1
- package/lib/account/LiveHashDeleteTransaction.cjs +6 -6
- package/lib/account/LiveHashDeleteTransaction.d.ts +12 -12
- package/lib/account/LiveHashDeleteTransaction.js.map +1 -1
- package/lib/account/LiveHashQuery.cjs +7 -7
- package/lib/account/LiveHashQuery.d.ts +14 -14
- package/lib/account/LiveHashQuery.js.map +1 -1
- package/lib/account/NullableTokenDecimalMap.cjs +2 -2
- package/lib/account/NullableTokenDecimalMap.d.ts +4 -4
- package/lib/account/NullableTokenDecimalMap.js.map +1 -1
- package/lib/account/ProxyStaker.cjs +2 -2
- package/lib/account/ProxyStaker.d.ts +4 -4
- package/lib/account/ProxyStaker.js.map +1 -1
- package/lib/account/TokenAllowance.cjs +4 -4
- package/lib/account/TokenAllowance.d.ts +8 -8
- package/lib/account/TokenAllowance.js.map +1 -1
- package/lib/account/TokenBalanceMap.cjs +2 -2
- package/lib/account/TokenBalanceMap.d.ts +4 -4
- package/lib/account/TokenBalanceMap.js.map +1 -1
- package/lib/account/TokenDecimalMap.cjs +2 -2
- package/lib/account/TokenDecimalMap.d.ts +4 -4
- package/lib/account/TokenDecimalMap.js.map +1 -1
- package/lib/account/TokenNftAllowance.cjs +5 -5
- package/lib/account/TokenNftAllowance.d.ts +10 -10
- package/lib/account/TokenNftAllowance.js.map +1 -1
- package/lib/account/TokenNftTransferMap.cjs +5 -5
- package/lib/account/TokenNftTransferMap.d.ts +10 -10
- package/lib/account/TokenNftTransferMap.js.map +1 -1
- package/lib/account/TokenRelationship.cjs +4 -4
- package/lib/account/TokenRelationship.d.ts +8 -8
- package/lib/account/TokenRelationship.js.map +1 -1
- package/lib/account/TokenRelationshipMap.cjs +2 -2
- package/lib/account/TokenRelationshipMap.d.ts +4 -4
- package/lib/account/TokenRelationshipMap.js.map +1 -1
- package/lib/account/TokenTransferMap.cjs +4 -4
- package/lib/account/TokenTransferMap.d.ts +8 -8
- package/lib/account/TokenTransferMap.js.map +1 -1
- package/lib/account/TransferTransaction.cjs +6 -6
- package/lib/account/TransferTransaction.d.ts +12 -12
- package/lib/account/TransferTransaction.js.map +1 -1
- package/lib/address_book/AddressBooks.cjs +1 -1
- package/lib/address_book/AddressBooks.js +1 -1
- package/lib/address_book/AddressBooks.js.map +1 -1
- package/lib/address_book/Endpoint.cjs +1 -1
- package/lib/address_book/Endpoint.d.ts +2 -2
- package/lib/address_book/Endpoint.js.map +1 -1
- package/lib/address_book/NodeAddress.cjs +1 -1
- package/lib/address_book/NodeAddress.d.ts +2 -2
- package/lib/address_book/NodeAddress.js.map +1 -1
- package/lib/address_book/NodeAddressBook.cjs +1 -1
- package/lib/address_book/NodeAddressBook.d.ts +1 -1
- package/lib/address_book/NodeAddressBook.js +1 -1
- package/lib/address_book/NodeAddressBook.js.map +1 -1
- package/lib/browser.js +1 -1
- package/lib/channel/Channel.cjs +26 -2
- package/lib/channel/Channel.d.ts +21 -1
- package/lib/channel/Channel.js +1 -1
- package/lib/channel/Channel.js.map +1 -1
- package/lib/channel/NativeChannel.cjs +96 -2
- package/lib/channel/NativeChannel.d.ts +21 -1
- package/lib/channel/NativeChannel.js +1 -1
- package/lib/channel/NativeChannel.js.map +1 -1
- package/lib/channel/NodeChannel.cjs +4 -5
- package/lib/channel/NodeChannel.d.ts +2 -3
- package/lib/channel/NodeChannel.js +1 -1
- package/lib/channel/NodeChannel.js.map +1 -1
- package/lib/channel/WebChannel.cjs +163 -13
- package/lib/channel/WebChannel.d.ts +51 -1
- package/lib/channel/WebChannel.js +1 -1
- package/lib/channel/WebChannel.js.map +1 -1
- package/lib/client/Client.cjs +62 -5
- package/lib/client/Client.d.ts +26 -3
- package/lib/client/Client.js +1 -1
- package/lib/client/Client.js.map +1 -1
- package/lib/client/NativeClient.cjs +1 -1
- package/lib/client/NativeClient.js +1 -1
- package/lib/client/NativeClient.js.map +1 -1
- package/lib/client/NodeClient.cjs +7 -6
- package/lib/client/NodeClient.d.ts +3 -3
- package/lib/client/NodeClient.js +1 -1
- package/lib/client/NodeClient.js.map +1 -1
- package/lib/client/WebClient.cjs +55 -27
- package/lib/client/WebClient.d.ts +6 -0
- package/lib/client/WebClient.js +1 -1
- package/lib/client/WebClient.js.map +1 -1
- package/lib/client/addressbooks/mainnet.cjs +1 -1
- package/lib/client/addressbooks/mainnet.d.ts +1 -1
- package/lib/client/addressbooks/mainnet.js +1 -1
- package/lib/client/addressbooks/mainnet.js.map +1 -1
- package/lib/client/addressbooks/previewnet.cjs +1 -1
- package/lib/client/addressbooks/previewnet.d.ts +1 -1
- package/lib/client/addressbooks/previewnet.js +1 -1
- package/lib/client/addressbooks/previewnet.js.map +1 -1
- package/lib/client/addressbooks/testnet.cjs +1 -1
- package/lib/client/addressbooks/testnet.d.ts +1 -1
- package/lib/client/addressbooks/testnet.js +1 -1
- package/lib/client/addressbooks/testnet.js.map +1 -1
- package/lib/constants/ClientConstants.cjs +17 -1
- package/lib/constants/ClientConstants.d.ts +14 -0
- package/lib/constants/ClientConstants.js +1 -1
- package/lib/constants/ClientConstants.js.map +1 -1
- package/lib/contract/ContractByteCodeQuery.cjs +6 -6
- package/lib/contract/ContractByteCodeQuery.d.ts +12 -12
- package/lib/contract/ContractByteCodeQuery.js.map +1 -1
- package/lib/contract/ContractCallQuery.cjs +1 -1
- package/lib/contract/ContractCallQuery.d.ts +1 -1
- package/lib/contract/ContractCallQuery.js +1 -1
- package/lib/contract/ContractCallQuery.js.map +1 -1
- package/lib/contract/ContractCreateTransaction.cjs +8 -8
- package/lib/contract/ContractCreateTransaction.d.ts +16 -16
- package/lib/contract/ContractCreateTransaction.js.map +1 -1
- package/lib/contract/ContractDeleteTransaction.cjs +8 -8
- package/lib/contract/ContractDeleteTransaction.d.ts +16 -16
- package/lib/contract/ContractDeleteTransaction.js.map +1 -1
- package/lib/contract/ContractExecuteTransaction.cjs +9 -9
- package/lib/contract/ContractExecuteTransaction.d.ts +18 -18
- package/lib/contract/ContractExecuteTransaction.js.map +1 -1
- package/lib/contract/ContractFunctionResult.cjs +2 -2
- package/lib/contract/ContractFunctionResult.d.ts +4 -4
- package/lib/contract/ContractFunctionResult.js.map +1 -1
- package/lib/contract/ContractId.cjs +1 -1
- package/lib/contract/ContractId.d.ts +1 -1
- package/lib/contract/ContractId.js +1 -1
- package/lib/contract/ContractId.js.map +1 -1
- package/lib/contract/ContractInfo.cjs +1 -1
- package/lib/contract/ContractInfo.d.ts +1 -1
- package/lib/contract/ContractInfo.js +1 -1
- package/lib/contract/ContractInfo.js.map +1 -1
- package/lib/contract/ContractInfoQuery.cjs +7 -7
- package/lib/contract/ContractInfoQuery.d.ts +14 -14
- package/lib/contract/ContractInfoQuery.js.map +1 -1
- package/lib/contract/ContractLogInfo.cjs +2 -2
- package/lib/contract/ContractLogInfo.d.ts +4 -4
- package/lib/contract/ContractLogInfo.js.map +1 -1
- package/lib/contract/ContractNonceInfo.cjs +3 -3
- package/lib/contract/ContractNonceInfo.d.ts +4 -4
- package/lib/contract/ContractNonceInfo.js +1 -1
- package/lib/contract/ContractNonceInfo.js.map +1 -1
- package/lib/contract/ContractStateChange.cjs +1 -1
- package/lib/contract/ContractStateChange.d.ts +1 -1
- package/lib/contract/ContractUpdateTransaction.cjs +10 -10
- package/lib/contract/ContractUpdateTransaction.d.ts +18 -18
- package/lib/contract/ContractUpdateTransaction.js +1 -1
- package/lib/contract/ContractUpdateTransaction.js.map +1 -1
- package/lib/contract/DelegateContractId.cjs +2 -2
- package/lib/contract/DelegateContractId.d.ts +4 -4
- package/lib/contract/DelegateContractId.js.map +1 -1
- package/lib/contract/StorageChange.cjs +1 -1
- package/lib/contract/StorageChange.d.ts +1 -1
- package/lib/exports.cjs +1 -1
- package/lib/exports.d.ts +1 -1
- package/lib/exports.js +1 -1
- package/lib/exports.js.map +1 -1
- package/lib/file/FileAppendTransaction.cjs +7 -7
- package/lib/file/FileAppendTransaction.d.ts +14 -14
- package/lib/file/FileAppendTransaction.js.map +1 -1
- package/lib/file/FileContentsQuery.cjs +7 -7
- package/lib/file/FileContentsQuery.d.ts +14 -14
- package/lib/file/FileContentsQuery.js.map +1 -1
- package/lib/file/FileCreateTransaction.cjs +6 -6
- package/lib/file/FileCreateTransaction.d.ts +12 -12
- package/lib/file/FileCreateTransaction.js.map +1 -1
- package/lib/file/FileDeleteTransaction.cjs +7 -7
- package/lib/file/FileDeleteTransaction.d.ts +14 -14
- package/lib/file/FileDeleteTransaction.js.map +1 -1
- package/lib/file/FileId.cjs +1 -1
- package/lib/file/FileId.d.ts +1 -1
- package/lib/file/FileId.js +1 -1
- package/lib/file/FileId.js.map +1 -1
- package/lib/file/FileInfo.cjs +1 -1
- package/lib/file/FileInfo.d.ts +1 -1
- package/lib/file/FileInfo.js +1 -1
- package/lib/file/FileInfo.js.map +1 -1
- package/lib/file/FileInfoQuery.cjs +7 -7
- package/lib/file/FileInfoQuery.d.ts +14 -14
- package/lib/file/FileInfoQuery.js.map +1 -1
- package/lib/file/FileUpdateTransaction.cjs +6 -6
- package/lib/file/FileUpdateTransaction.d.ts +12 -12
- package/lib/file/FileUpdateTransaction.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/native.js +1 -1
- package/lib/network/AddressBookQuery.cjs +1 -5
- package/lib/network/AddressBookQuery.js +1 -1
- package/lib/network/AddressBookQuery.js.map +1 -1
- package/lib/network/AddressBookQueryWeb.cjs +1 -5
- package/lib/network/AddressBookQueryWeb.js +1 -1
- package/lib/network/AddressBookQueryWeb.js.map +1 -1
- package/lib/network/NetworkVersionInfo.cjs +1 -1
- package/lib/network/NetworkVersionInfo.d.ts +1 -1
- package/lib/network/NetworkVersionInfo.js +1 -1
- package/lib/network/NetworkVersionInfo.js.map +1 -1
- package/lib/network/NetworkVersionInfoQuery.cjs +6 -6
- package/lib/network/NetworkVersionInfoQuery.d.ts +12 -12
- package/lib/network/NetworkVersionInfoQuery.js.map +1 -1
- package/lib/network/SemanticVersion.cjs +1 -1
- package/lib/network/SemanticVersion.d.ts +1 -1
- package/lib/network/SemanticVersion.js +1 -1
- package/lib/network/SemanticVersion.js.map +1 -1
- package/lib/node/NodeCreateTransaction.cjs +6 -6
- package/lib/node/NodeCreateTransaction.d.ts +12 -12
- package/lib/node/NodeCreateTransaction.js.map +1 -1
- package/lib/node/NodeDeleteTransaction.cjs +6 -6
- package/lib/node/NodeDeleteTransaction.d.ts +12 -12
- package/lib/node/NodeDeleteTransaction.js.map +1 -1
- package/lib/node/NodeUpdateTransaction.cjs +6 -6
- package/lib/node/NodeUpdateTransaction.d.ts +12 -12
- package/lib/node/NodeUpdateTransaction.js.map +1 -1
- package/lib/node/ServiceEndpoint.cjs +1 -1
- package/lib/node/ServiceEndpoint.d.ts +2 -2
- package/lib/node/ServiceEndpoint.js.map +1 -1
- package/lib/query/CostQuery.cjs +1 -1
- package/lib/query/CostQuery.d.ts +1 -1
- package/lib/query/CostQuery.js +1 -1
- package/lib/query/CostQuery.js.map +1 -1
- package/lib/query/Query.cjs +1 -1
- package/lib/query/Query.d.ts +1 -1
- package/lib/query/Query.js +1 -1
- package/lib/query/Query.js.map +1 -1
- package/lib/query/QueryBase.cjs +1 -1
- package/lib/query/QueryBase.d.ts +1 -1
- package/lib/query/QueryBase.js +1 -1
- package/lib/query/QueryBase.js.map +1 -1
- package/lib/schedule/ScheduleCreateTransaction.cjs +1 -1
- package/lib/schedule/ScheduleCreateTransaction.d.ts +1 -1
- package/lib/schedule/ScheduleCreateTransaction.js +1 -1
- package/lib/schedule/ScheduleCreateTransaction.js.map +1 -1
- package/lib/schedule/ScheduleDeleteTransaction.cjs +8 -8
- package/lib/schedule/ScheduleDeleteTransaction.d.ts +16 -16
- package/lib/schedule/ScheduleDeleteTransaction.js.map +1 -1
- package/lib/schedule/ScheduleId.cjs +1 -1
- package/lib/schedule/ScheduleId.d.ts +1 -1
- package/lib/schedule/ScheduleId.js +1 -1
- package/lib/schedule/ScheduleId.js.map +1 -1
- package/lib/schedule/ScheduleInfo.cjs +1 -1
- package/lib/schedule/ScheduleInfo.d.ts +1 -1
- package/lib/schedule/ScheduleInfo.js +1 -1
- package/lib/schedule/ScheduleInfo.js.map +1 -1
- package/lib/schedule/ScheduleInfoQuery.cjs +7 -7
- package/lib/schedule/ScheduleInfoQuery.d.ts +14 -14
- package/lib/schedule/ScheduleInfoQuery.js.map +1 -1
- package/lib/schedule/ScheduleSignTransaction.cjs +10 -10
- package/lib/schedule/ScheduleSignTransaction.d.ts +20 -20
- package/lib/schedule/ScheduleSignTransaction.js.map +1 -1
- package/lib/system/FreezeTransaction.cjs +6 -6
- package/lib/system/FreezeTransaction.d.ts +12 -12
- package/lib/system/FreezeTransaction.js.map +1 -1
- package/lib/system/SystemDeleteTransaction.cjs +8 -8
- package/lib/system/SystemDeleteTransaction.d.ts +16 -16
- package/lib/system/SystemDeleteTransaction.js.map +1 -1
- package/lib/system/SystemUndeleteTransaction.cjs +8 -8
- package/lib/system/SystemUndeleteTransaction.d.ts +16 -16
- package/lib/system/SystemUndeleteTransaction.js.map +1 -1
- package/lib/token/AbstractTokenTransferTransaction.cjs +1 -1
- package/lib/token/AbstractTokenTransferTransaction.d.ts +2 -2
- package/lib/token/AbstractTokenTransferTransaction.js.map +1 -1
- package/lib/token/AssessedCustomFee.cjs +1 -1
- package/lib/token/AssessedCustomFee.d.ts +2 -2
- package/lib/token/AssessedCustomFee.js.map +1 -1
- package/lib/token/CustomFee.cjs +1 -1
- package/lib/token/CustomFee.d.ts +2 -2
- package/lib/token/CustomFee.js.map +1 -1
- package/lib/token/CustomFixedFee.cjs +3 -3
- package/lib/token/CustomFixedFee.d.ts +6 -6
- package/lib/token/CustomFixedFee.js.map +1 -1
- package/lib/token/CustomFractionalFee.cjs +3 -3
- package/lib/token/CustomFractionalFee.d.ts +6 -6
- package/lib/token/CustomFractionalFee.js.map +1 -1
- package/lib/token/CustomRoyaltyFee.cjs +4 -4
- package/lib/token/CustomRoyaltyFee.d.ts +8 -8
- package/lib/token/CustomRoyaltyFee.js.map +1 -1
- package/lib/token/NftId.cjs +1 -1
- package/lib/token/NftId.d.ts +1 -1
- package/lib/token/NftId.js +1 -1
- package/lib/token/NftId.js.map +1 -1
- package/lib/token/PendingAirdropId.cjs +1 -1
- package/lib/token/PendingAirdropId.d.ts +1 -1
- package/lib/token/PendingAirdropId.js.map +1 -1
- package/lib/token/PendingAirdropRecord.cjs +1 -1
- package/lib/token/PendingAirdropRecord.d.ts +1 -1
- package/lib/token/PendingAirdropRecord.js.map +1 -1
- package/lib/token/TokenAirdropTransaction.cjs +8 -8
- package/lib/token/TokenAirdropTransaction.d.ts +16 -16
- package/lib/token/TokenAirdropTransaction.js.map +1 -1
- package/lib/token/TokenAssociateTransaction.cjs +7 -7
- package/lib/token/TokenAssociateTransaction.d.ts +14 -14
- package/lib/token/TokenAssociateTransaction.js.map +1 -1
- package/lib/token/TokenAssociation.cjs +1 -1
- package/lib/token/TokenAssociation.d.ts +2 -2
- package/lib/token/TokenAssociation.js.map +1 -1
- package/lib/token/TokenBurnTransaction.cjs +7 -7
- package/lib/token/TokenBurnTransaction.d.ts +14 -14
- package/lib/token/TokenBurnTransaction.js.map +1 -1
- package/lib/token/TokenCancelAirdropTransaction.cjs +6 -6
- package/lib/token/TokenCancelAirdropTransaction.d.ts +12 -12
- package/lib/token/TokenCancelAirdropTransaction.js.map +1 -1
- package/lib/token/TokenClaimAirdropTransaction.cjs +6 -6
- package/lib/token/TokenClaimAirdropTransaction.d.ts +12 -12
- package/lib/token/TokenClaimAirdropTransaction.js.map +1 -1
- package/lib/token/TokenCreateTransaction.cjs +7 -7
- package/lib/token/TokenCreateTransaction.d.ts +14 -14
- package/lib/token/TokenCreateTransaction.js.map +1 -1
- package/lib/token/TokenDeleteTransaction.cjs +7 -7
- package/lib/token/TokenDeleteTransaction.d.ts +14 -14
- package/lib/token/TokenDeleteTransaction.js.map +1 -1
- package/lib/token/TokenDissociateTransaction.cjs +7 -7
- package/lib/token/TokenDissociateTransaction.d.ts +14 -14
- package/lib/token/TokenDissociateTransaction.js.map +1 -1
- package/lib/token/TokenFeeScheduleUpdateTransaction.cjs +7 -7
- package/lib/token/TokenFeeScheduleUpdateTransaction.d.ts +14 -14
- package/lib/token/TokenFeeScheduleUpdateTransaction.js.map +1 -1
- package/lib/token/TokenFreezeTransaction.cjs +7 -7
- package/lib/token/TokenFreezeTransaction.d.ts +14 -14
- package/lib/token/TokenFreezeTransaction.js.map +1 -1
- package/lib/token/TokenGrantKycTransaction.cjs +7 -7
- package/lib/token/TokenGrantKycTransaction.d.ts +14 -14
- package/lib/token/TokenGrantKycTransaction.js.map +1 -1
- package/lib/token/TokenId.cjs +1 -1
- package/lib/token/TokenId.d.ts +1 -1
- package/lib/token/TokenId.js +1 -1
- package/lib/token/TokenId.js.map +1 -1
- package/lib/token/TokenInfo.cjs +1 -1
- package/lib/token/TokenInfo.d.ts +1 -1
- package/lib/token/TokenInfo.js +1 -1
- package/lib/token/TokenInfo.js.map +1 -1
- package/lib/token/TokenInfoQuery.cjs +7 -7
- package/lib/token/TokenInfoQuery.d.ts +14 -14
- package/lib/token/TokenInfoQuery.js.map +1 -1
- package/lib/token/TokenKeyValidation.cjs +1 -1
- package/lib/token/TokenKeyValidation.d.ts +2 -2
- package/lib/token/TokenKeyValidation.js.map +1 -1
- package/lib/token/TokenMintTransaction.cjs +7 -7
- package/lib/token/TokenMintTransaction.d.ts +14 -14
- package/lib/token/TokenMintTransaction.js.map +1 -1
- package/lib/token/TokenNftInfo.cjs +10 -10
- package/lib/token/TokenNftInfo.d.ts +20 -20
- package/lib/token/TokenNftInfo.js.map +1 -1
- package/lib/token/TokenNftInfoQuery.cjs +11 -11
- package/lib/token/TokenNftInfoQuery.d.ts +22 -22
- package/lib/token/TokenNftInfoQuery.js.map +1 -1
- package/lib/token/TokenNftTransfer.cjs +5 -5
- package/lib/token/TokenNftTransfer.d.ts +10 -10
- package/lib/token/TokenNftTransfer.js.map +1 -1
- package/lib/token/TokenNftsUpdateTransaction.cjs +7 -7
- package/lib/token/TokenNftsUpdateTransaction.d.ts +14 -14
- package/lib/token/TokenPauseTransaction.cjs +7 -7
- package/lib/token/TokenPauseTransaction.d.ts +14 -14
- package/lib/token/TokenPauseTransaction.js.map +1 -1
- package/lib/token/TokenReference.cjs +1 -1
- package/lib/token/TokenReference.d.ts +2 -2
- package/lib/token/TokenReference.js.map +1 -1
- package/lib/token/TokenRejectTransaction.cjs +7 -7
- package/lib/token/TokenRejectTransaction.d.ts +14 -14
- package/lib/token/TokenRejectTransaction.js.map +1 -1
- package/lib/token/TokenRevokeKycTransaction.cjs +7 -7
- package/lib/token/TokenRevokeKycTransaction.d.ts +14 -14
- package/lib/token/TokenRevokeKycTransaction.js.map +1 -1
- package/lib/token/TokenSupplyType.cjs +1 -1
- package/lib/token/TokenSupplyType.d.ts +2 -2
- package/lib/token/TokenSupplyType.js.map +1 -1
- package/lib/token/TokenTransfer.cjs +4 -4
- package/lib/token/TokenTransfer.d.ts +8 -8
- package/lib/token/TokenTransfer.js.map +1 -1
- package/lib/token/TokenType.cjs +1 -1
- package/lib/token/TokenType.d.ts +2 -2
- package/lib/token/TokenType.js.map +1 -1
- package/lib/token/TokenUnfreezeTransaction.cjs +7 -7
- package/lib/token/TokenUnfreezeTransaction.d.ts +14 -14
- package/lib/token/TokenUnfreezeTransaction.js.map +1 -1
- package/lib/token/TokenUnpauseTransaction.cjs +7 -7
- package/lib/token/TokenUnpauseTransaction.d.ts +14 -14
- package/lib/token/TokenUnpauseTransaction.js.map +1 -1
- package/lib/token/TokenUpdateNftsTransaction.cjs +7 -7
- package/lib/token/TokenUpdateNftsTransaction.d.ts +14 -14
- package/lib/token/TokenUpdateNftsTransaction.js.map +1 -1
- package/lib/token/TokenUpdateTransaction.cjs +7 -7
- package/lib/token/TokenUpdateTransaction.d.ts +14 -14
- package/lib/token/TokenUpdateTransaction.js.map +1 -1
- package/lib/token/TokenWipeTransaction.cjs +7 -7
- package/lib/token/TokenWipeTransaction.d.ts +14 -14
- package/lib/token/TokenWipeTransaction.js.map +1 -1
- package/lib/topic/TopicCreateTransaction.cjs +6 -6
- package/lib/topic/TopicCreateTransaction.d.ts +12 -12
- package/lib/topic/TopicCreateTransaction.js.map +1 -1
- package/lib/topic/TopicDeleteTransaction.cjs +6 -6
- package/lib/topic/TopicDeleteTransaction.d.ts +12 -12
- package/lib/topic/TopicDeleteTransaction.js.map +1 -1
- package/lib/topic/TopicId.cjs +1 -1
- package/lib/topic/TopicId.d.ts +1 -1
- package/lib/topic/TopicId.js +1 -1
- package/lib/topic/TopicId.js.map +1 -1
- package/lib/topic/TopicInfo.cjs +1 -1
- package/lib/topic/TopicInfo.d.ts +1 -1
- package/lib/topic/TopicInfo.js +1 -1
- package/lib/topic/TopicInfo.js.map +1 -1
- package/lib/topic/TopicInfoQuery.cjs +7 -7
- package/lib/topic/TopicInfoQuery.d.ts +14 -14
- package/lib/topic/TopicInfoQuery.js.map +1 -1
- package/lib/topic/TopicMessage.cjs +2 -2
- package/lib/topic/TopicMessage.d.ts +4 -4
- package/lib/topic/TopicMessage.js.map +1 -1
- package/lib/topic/TopicMessageChunk.cjs +2 -2
- package/lib/topic/TopicMessageChunk.d.ts +4 -4
- package/lib/topic/TopicMessageChunk.js.map +1 -1
- package/lib/topic/TopicMessageQuery.cjs +1 -1
- package/lib/topic/TopicMessageQuery.js +1 -1
- package/lib/topic/TopicMessageQuery.js.map +1 -1
- package/lib/topic/TopicMessageSubmitTransaction.cjs +9 -9
- package/lib/topic/TopicMessageSubmitTransaction.d.ts +18 -18
- package/lib/topic/TopicMessageSubmitTransaction.js.map +1 -1
- package/lib/topic/TopicUpdateTransaction.cjs +6 -6
- package/lib/topic/TopicUpdateTransaction.d.ts +12 -12
- package/lib/topic/TopicUpdateTransaction.js.map +1 -1
- package/lib/transaction/BatchTransaction.cjs +5 -5
- package/lib/transaction/BatchTransaction.d.ts +9 -9
- package/lib/transaction/BatchTransaction.js +1 -1
- package/lib/transaction/BatchTransaction.js.map +1 -1
- package/lib/transaction/CustomFeeLimit.cjs +2 -2
- package/lib/transaction/CustomFeeLimit.d.ts +4 -4
- package/lib/transaction/CustomFeeLimit.js.map +1 -1
- package/lib/transaction/NodeAccountIdSignatureMap.cjs +2 -2
- package/lib/transaction/NodeAccountIdSignatureMap.d.ts +2 -2
- package/lib/transaction/NodeAccountIdSignatureMap.js +1 -1
- package/lib/transaction/NodeAccountIdSignatureMap.js.map +1 -1
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.cjs +1 -1
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.d.ts +2 -2
- package/lib/transaction/NodeAccountIdSignatureMapLegacy.js.map +1 -1
- package/lib/transaction/SignatureMap.cjs +1 -1
- package/lib/transaction/SignatureMap.js.map +1 -1
- package/lib/transaction/SignaturePairMap.cjs +1 -1
- package/lib/transaction/SignaturePairMap.d.ts +2 -2
- package/lib/transaction/SignaturePairMap.js.map +1 -1
- package/lib/transaction/Transaction.cjs +1 -1
- package/lib/transaction/Transaction.d.ts +1 -1
- package/lib/transaction/Transaction.js +1 -1
- package/lib/transaction/Transaction.js.map +1 -1
- package/lib/transaction/TransactionHashMap.cjs +1 -1
- package/lib/transaction/TransactionHashMap.d.ts +2 -2
- package/lib/transaction/TransactionHashMap.js.map +1 -1
- package/lib/transaction/TransactionId.cjs +1 -1
- package/lib/transaction/TransactionId.d.ts +1 -1
- package/lib/transaction/TransactionId.js +1 -1
- package/lib/transaction/TransactionId.js.map +1 -1
- package/lib/transaction/TransactionReceipt.cjs +1 -1
- package/lib/transaction/TransactionReceipt.d.ts +1 -1
- package/lib/transaction/TransactionReceipt.js +1 -1
- package/lib/transaction/TransactionReceipt.js.map +1 -1
- package/lib/transaction/TransactionReceiptQuery.cjs +1 -1
- package/lib/transaction/TransactionReceiptQuery.d.ts +1 -1
- package/lib/transaction/TransactionReceiptQuery.js +1 -1
- package/lib/transaction/TransactionReceiptQuery.js.map +1 -1
- package/lib/transaction/TransactionRecord.cjs +1 -1
- package/lib/transaction/TransactionRecord.d.ts +1 -1
- package/lib/transaction/TransactionRecord.js +1 -1
- package/lib/transaction/TransactionRecord.js.map +1 -1
- package/lib/transaction/TransactionRecordQuery.cjs +1 -1
- package/lib/transaction/TransactionRecordQuery.d.ts +1 -1
- package/lib/transaction/TransactionRecordQuery.js +1 -1
- package/lib/transaction/TransactionRecordQuery.js.map +1 -1
- package/lib/util/ASN1-Decoder.cjs +1 -1
- package/lib/util/ASN1-Decoder.js +1 -1
- package/lib/util/ASN1-Decoder.js.map +1 -1
- package/lib/version.js +1 -1
- package/package.json +6 -8
- package/src/Cache.js +6 -6
- package/src/Duration.js +1 -1
- package/src/EntityIdHelper.js +1 -1
- package/src/EthereumFlow.js +7 -7
- package/src/EthereumTransaction.js +7 -7
- package/src/EvmAddress.js +1 -1
- package/src/ExchangeRate.js +2 -2
- package/src/ExchangeRates.js +1 -1
- package/src/Executable.js +18 -2
- package/src/FeeComponents.js +1 -1
- package/src/FeeData.js +1 -1
- package/src/FeeDataType.js +1 -1
- package/src/FeeSchedule.js +1 -1
- package/src/FeeSchedules.js +1 -1
- package/src/FreezeType.js +1 -1
- package/src/Key.js +1 -1
- package/src/KeyList.js +3 -3
- package/src/Mnemonic.js +1 -1
- package/src/PrivateKey.js +7 -7
- package/src/PrngTransaction.js +9 -9
- package/src/PublicKey.js +5 -5
- package/src/RequestType.js +1 -1
- package/src/StakingInfo.js +1 -1
- package/src/Status.js +1 -1
- package/src/Timestamp.js +1 -1
- package/src/TransactionFeeSchedule.js +1 -1
- package/src/Transfer.js +2 -2
- package/src/account/AccountAllowanceAdjustTransaction.js +7 -7
- package/src/account/AccountAllowanceApproveTransaction.js +8 -8
- package/src/account/AccountAllowanceDeleteTransaction.js +7 -7
- package/src/account/AccountBalance.js +1 -1
- package/src/account/AccountBalanceQuery.js +6 -6
- package/src/account/AccountCreateTransaction.js +1 -1
- package/src/account/AccountDeleteTransaction.js +7 -7
- package/src/account/AccountId.js +1 -1
- package/src/account/AccountInfo.js +1 -1
- package/src/account/AccountInfoQuery.js +7 -7
- package/src/account/AccountRecordsQuery.js +7 -7
- package/src/account/AccountUpdateTransaction.js +7 -7
- package/src/account/HbarAllowance.js +3 -3
- package/src/account/HbarTransferMap.js +2 -2
- package/src/account/LiveHash.js +3 -3
- package/src/account/LiveHashAddTransaction.js +7 -7
- package/src/account/LiveHashDeleteTransaction.js +6 -6
- package/src/account/LiveHashQuery.js +7 -7
- package/src/account/NullableTokenDecimalMap.js +2 -2
- package/src/account/ProxyStaker.js +2 -2
- package/src/account/TokenAllowance.js +4 -4
- package/src/account/TokenBalanceMap.js +2 -2
- package/src/account/TokenDecimalMap.js +2 -2
- package/src/account/TokenNftAllowance.js +5 -5
- package/src/account/TokenNftTransferMap.js +5 -5
- package/src/account/TokenRelationship.js +4 -4
- package/src/account/TokenRelationshipMap.js +2 -2
- package/src/account/TokenTransferMap.js +4 -4
- package/src/account/TransferTransaction.js +6 -6
- package/src/address_book/AddressBooks.js +1 -1
- package/src/address_book/Endpoint.js +1 -1
- package/src/address_book/NodeAddress.js +1 -1
- package/src/address_book/NodeAddressBook.js +1 -1
- package/src/channel/Channel.js +26 -2
- package/src/channel/NativeChannel.js +111 -2
- package/src/channel/NodeChannel.js +4 -7
- package/src/channel/WebChannel.js +189 -21
- package/src/client/Client.js +79 -5
- package/src/client/NativeClient.js +1 -1
- package/src/client/NodeClient.js +7 -6
- package/src/client/WebClient.js +64 -31
- package/src/client/addressbooks/mainnet.js +1 -1
- package/src/client/addressbooks/previewnet.js +1 -1
- package/src/client/addressbooks/testnet.js +1 -1
- package/src/constants/ClientConstants.js +16 -0
- package/src/contract/ContractByteCodeQuery.js +6 -6
- package/src/contract/ContractCallQuery.js +1 -1
- package/src/contract/ContractCreateTransaction.js +8 -8
- package/src/contract/ContractDeleteTransaction.js +8 -8
- package/src/contract/ContractExecuteTransaction.js +9 -9
- package/src/contract/ContractFunctionResult.js +2 -2
- package/src/contract/ContractId.js +1 -1
- package/src/contract/ContractInfo.js +1 -1
- package/src/contract/ContractInfoQuery.js +7 -7
- package/src/contract/ContractLogInfo.js +2 -2
- package/src/contract/ContractNonceInfo.js +3 -3
- package/src/contract/ContractStateChange.js +1 -1
- package/src/contract/ContractUpdateTransaction.js +10 -10
- package/src/contract/DelegateContractId.js +2 -2
- package/src/contract/StorageChange.js +1 -1
- package/src/exports.js +1 -1
- package/src/file/FileAppendTransaction.js +7 -7
- package/src/file/FileContentsQuery.js +7 -7
- package/src/file/FileCreateTransaction.js +6 -6
- package/src/file/FileDeleteTransaction.js +7 -7
- package/src/file/FileId.js +1 -1
- package/src/file/FileInfo.js +1 -1
- package/src/file/FileInfoQuery.js +7 -7
- package/src/file/FileUpdateTransaction.js +6 -6
- package/src/network/AddressBookQuery.js +1 -8
- package/src/network/AddressBookQueryWeb.js +1 -8
- package/src/network/NetworkVersionInfo.js +1 -1
- package/src/network/NetworkVersionInfoQuery.js +6 -6
- package/src/network/SemanticVersion.js +1 -1
- package/src/node/NodeCreateTransaction.js +6 -6
- package/src/node/NodeDeleteTransaction.js +6 -6
- package/src/node/NodeUpdateTransaction.js +6 -6
- package/src/node/ServiceEndpoint.js +1 -1
- package/src/query/CostQuery.js +1 -1
- package/src/query/Query.js +1 -1
- package/src/query/QueryBase.js +1 -1
- package/src/schedule/ScheduleCreateTransaction.js +1 -1
- package/src/schedule/ScheduleDeleteTransaction.js +8 -8
- package/src/schedule/ScheduleId.js +1 -1
- package/src/schedule/ScheduleInfo.js +1 -1
- package/src/schedule/ScheduleInfoQuery.js +7 -7
- package/src/schedule/ScheduleSignTransaction.js +10 -10
- package/src/system/FreezeTransaction.js +6 -6
- package/src/system/SystemDeleteTransaction.js +8 -8
- package/src/system/SystemUndeleteTransaction.js +8 -8
- package/src/token/AbstractTokenTransferTransaction.js +1 -1
- package/src/token/AssessedCustomFee.js +1 -1
- package/src/token/CustomFee.js +1 -1
- package/src/token/CustomFixedFee.js +3 -3
- package/src/token/CustomFractionalFee.js +3 -3
- package/src/token/CustomRoyaltyFee.js +4 -4
- package/src/token/NftId.js +1 -1
- package/src/token/PendingAirdropId.js +1 -1
- package/src/token/PendingAirdropRecord.js +1 -1
- package/src/token/TokenAirdropTransaction.js +8 -8
- package/src/token/TokenAssociateTransaction.js +7 -7
- package/src/token/TokenAssociation.js +1 -1
- package/src/token/TokenBurnTransaction.js +7 -7
- package/src/token/TokenCancelAirdropTransaction.js +6 -6
- package/src/token/TokenClaimAirdropTransaction.js +6 -6
- package/src/token/TokenCreateTransaction.js +7 -7
- package/src/token/TokenDeleteTransaction.js +7 -7
- package/src/token/TokenDissociateTransaction.js +7 -7
- package/src/token/TokenFeeScheduleUpdateTransaction.js +7 -7
- package/src/token/TokenFreezeTransaction.js +7 -7
- package/src/token/TokenGrantKycTransaction.js +7 -7
- package/src/token/TokenId.js +1 -1
- package/src/token/TokenInfo.js +1 -1
- package/src/token/TokenInfoQuery.js +7 -7
- package/src/token/TokenKeyValidation.js +1 -1
- package/src/token/TokenMintTransaction.js +7 -7
- package/src/token/TokenNftInfo.js +10 -10
- package/src/token/TokenNftInfoQuery.js +11 -11
- package/src/token/TokenNftTransfer.js +5 -5
- package/src/token/TokenNftsUpdateTransaction.js +7 -7
- package/src/token/TokenPauseTransaction.js +7 -7
- package/src/token/TokenReference.js +1 -1
- package/src/token/TokenRejectTransaction.js +7 -7
- package/src/token/TokenRevokeKycTransaction.js +7 -7
- package/src/token/TokenSupplyType.js +1 -1
- package/src/token/TokenTransfer.js +4 -4
- package/src/token/TokenType.js +1 -1
- package/src/token/TokenUnfreezeTransaction.js +7 -7
- package/src/token/TokenUnpauseTransaction.js +7 -7
- package/src/token/TokenUpdateNftsTransaction.js +7 -7
- package/src/token/TokenUpdateTransaction.js +7 -7
- package/src/token/TokenWipeTransaction.js +7 -7
- package/src/topic/TopicCreateTransaction.js +6 -6
- package/src/topic/TopicDeleteTransaction.js +6 -6
- package/src/topic/TopicId.js +1 -1
- package/src/topic/TopicInfo.js +1 -1
- package/src/topic/TopicInfoQuery.js +7 -7
- package/src/topic/TopicMessage.js +2 -2
- package/src/topic/TopicMessageChunk.js +2 -2
- package/src/topic/TopicMessageQuery.js +1 -1
- package/src/topic/TopicMessageSubmitTransaction.js +9 -9
- package/src/topic/TopicUpdateTransaction.js +6 -6
- package/src/transaction/BatchTransaction.js +5 -5
- package/src/transaction/CustomFeeLimit.js +2 -2
- package/src/transaction/NodeAccountIdSignatureMap.js +2 -2
- package/src/transaction/NodeAccountIdSignatureMapLegacy.js +1 -1
- package/src/transaction/SignatureMap.js +1 -1
- package/src/transaction/SignaturePairMap.js +1 -1
- package/src/transaction/Transaction.js +1 -1
- package/src/transaction/TransactionHashMap.js +1 -1
- package/src/transaction/TransactionId.js +1 -1
- package/src/transaction/TransactionReceipt.js +1 -1
- package/src/transaction/TransactionReceiptQuery.js +1 -1
- package/src/transaction/TransactionRecord.js +1 -1
- package/src/transaction/TransactionRecordQuery.js +1 -1
- package/src/util/ASN1-Decoder.js +1 -1
|
@@ -16,13 +16,13 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @namespace proto
|
|
19
|
-
* @typedef {import("@
|
|
20
|
-
* @typedef {import("@
|
|
21
|
-
* @typedef {import("@
|
|
22
|
-
* @typedef {import("@
|
|
23
|
-
* @typedef {import("@
|
|
24
|
-
* @typedef {import("@
|
|
25
|
-
* @typedef {import("@
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQuery} HieroProto.proto.IQuery
|
|
20
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
|
|
21
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponse} HieroProto.proto.IResponse
|
|
22
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
|
|
23
|
+
* @typedef {import("@hiero-ledger/proto").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo
|
|
24
|
+
* @typedef {import("@hiero-ledger/proto").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery
|
|
25
|
+
* @typedef {import("@hiero-ledger/proto").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
8
|
-
* @typedef {import("@
|
|
9
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQuery} HieroProto.proto.IQuery
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponse} HieroProto.proto.IResponse
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo
|
|
8
|
+
* @typedef {import("@hiero-ledger/proto").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery
|
|
9
|
+
* @typedef {import("@hiero-ledger/proto").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
12
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
@@ -49,13 +49,13 @@ export default class ScheduleInfoQuery extends Query<ScheduleInfo> {
|
|
|
49
49
|
}
|
|
50
50
|
export namespace HieroProto {
|
|
51
51
|
namespace proto {
|
|
52
|
-
type IQuery = import("@
|
|
53
|
-
type IQueryHeader = import("@
|
|
54
|
-
type IResponse = import("@
|
|
55
|
-
type IResponseHeader = import("@
|
|
56
|
-
type IScheduleInfo = import("@
|
|
57
|
-
type IScheduleGetInfoQuery = import("@
|
|
58
|
-
type IScheduleGetInfoResponse = import("@
|
|
52
|
+
type IQuery = import("@hiero-ledger/proto").proto.IQuery;
|
|
53
|
+
type IQueryHeader = import("@hiero-ledger/proto").proto.IQueryHeader;
|
|
54
|
+
type IResponse = import("@hiero-ledger/proto").proto.IResponse;
|
|
55
|
+
type IResponseHeader = import("@hiero-ledger/proto").proto.IResponseHeader;
|
|
56
|
+
type IScheduleInfo = import("@hiero-ledger/proto").proto.IScheduleInfo;
|
|
57
|
+
type IScheduleGetInfoQuery = import("@hiero-ledger/proto").proto.IScheduleGetInfoQuery;
|
|
58
|
+
type IScheduleGetInfoResponse = import("@hiero-ledger/proto").proto.IScheduleGetInfoResponse;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
export type Channel = import("../channel/Channel.js").default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleInfoQuery.js","sources":["../../src/schedule/ScheduleInfoQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport ScheduleId from \"./ScheduleId.js\";\nimport ScheduleInfo from \"./ScheduleInfo.js\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Hbar from \"../Hbar.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"ScheduleInfoQuery.js","sources":["../../src/schedule/ScheduleInfoQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport ScheduleId from \"./ScheduleId.js\";\nimport ScheduleInfo from \"./ScheduleInfo.js\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Hbar from \"../Hbar.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IQuery} HieroProto.proto.IQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.IQueryHeader} HieroProto.proto.IQueryHeader\n * @typedef {import(\"@hiero-ledger/proto\").proto.IResponse} HieroProto.proto.IResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.IResponseHeader} HieroProto.proto.IResponseHeader\n * @typedef {import(\"@hiero-ledger/proto\").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo\n * @typedef {import(\"@hiero-ledger/proto\").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n */\n\n/**\n * Retrieve the metadata for a schedule.\n * @augments {Query<ScheduleInfo>}\n */\nexport default class ScheduleInfoQuery extends Query {\n /**\n * @param {object} properties\n * @param {ScheduleId | string} [properties.scheduleId]\n */\n constructor(properties = {}) {\n super();\n\n /**\n * @private\n * @type {?ScheduleId}\n */\n this._scheduleId = null;\n\n if (properties.scheduleId != null) {\n this.setScheduleId(properties.scheduleId);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IQuery} query\n * @returns {ScheduleInfoQuery}\n */\n static _fromProtobuf(query) {\n const info = /** @type {HieroProto.proto.IScheduleGetInfoQuery} */ (\n query.scheduleGetInfo\n );\n\n return new ScheduleInfoQuery({\n scheduleId:\n info.scheduleID != null\n ? ScheduleId._fromProtobuf(info.scheduleID)\n : undefined,\n });\n }\n\n /**\n * @returns {?ScheduleId}\n */\n get scheduleId() {\n return this._scheduleId;\n }\n\n /**\n *\n * @param {ScheduleId | string} scheduleId\n * @returns {ScheduleInfoQuery}\n */\n setScheduleId(scheduleId) {\n this._scheduleId =\n typeof scheduleId === \"string\"\n ? ScheduleId.fromString(scheduleId)\n : scheduleId.clone();\n\n return this;\n }\n\n /**\n * @override\n * @param {import(\"../client/Client.js\").default<Channel, *>} client\n * @returns {Promise<Hbar>}\n */\n async getCost(client) {\n return super.getCost(client);\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._scheduleId != null) {\n this._scheduleId.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.schedule.getScheduleInfo(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 scheduleGetInfo =\n /** @type {HieroProto.proto.IScheduleGetInfoResponse} */ (\n response.scheduleGetInfo\n );\n return /** @type {HieroProto.proto.IResponseHeader} */ (\n scheduleGetInfo.header\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @param {AccountId} nodeAccountId\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<ScheduleInfo>}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _mapResponse(response, nodeAccountId, request) {\n const info = /** @type {HieroProto.proto.IScheduleGetInfoResponse} */ (\n response.scheduleGetInfo\n );\n\n return Promise.resolve(\n ScheduleInfo._fromProtobuf(\n /** @type {HieroProto.proto.IScheduleInfo} */ (\n info.scheduleInfo\n ),\n ),\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IQueryHeader} header\n * @returns {HieroProto.proto.IQuery}\n */\n _onMakeRequest(header) {\n return {\n scheduleGetInfo: {\n header,\n scheduleID:\n this._scheduleId != null\n ? this._scheduleId._toProtobuf()\n : null,\n },\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp =\n this._paymentTransactionId != null &&\n this._paymentTransactionId.validStart != null\n ? this._paymentTransactionId.validStart\n : this._timestamp;\n\n return `ScheduleInfoQuery:${timestamp.toString()}`;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nQUERY_REGISTRY.set(\"scheduleGetInfo\", ScheduleInfoQuery._fromProtobuf);\n"],"names":["ScheduleInfoQuery","Query","constructor","properties","super","this","_scheduleId","scheduleId","setScheduleId","_fromProtobuf","query","info","scheduleID","ScheduleId","undefined","fromString","clone","getCost","client","_validateChecksums","validateChecksum","_execute","channel","request","schedule","getScheduleInfo","_mapResponseHeader","response","_mapResponse","nodeAccountId","Promise","resolve","ScheduleInfo","_onMakeRequest","header","scheduleGetInfo","_toProtobuf","_getLogId","_paymentTransactionId","validStart","_timestamp","toString","QUERY_REGISTRY","set"],"mappings":"+KA6Be,MAAMA,UAA0BC,EAK3C,WAAAC,CAAYC,EAAa,IACrBC,QAMAC,KAAKC,YAAc,KAEU,MAAzBH,EAAWI,YACXF,KAAKG,cAAcL,EAAWI,WAE1C,CAOI,oBAAOE,CAAcC,GACjB,MAAMC,EACFD,EACH,gBAED,OAAO,IAAIV,EAAkB,CACzBO,WACuB,MAAnBI,EAAKC,WACCC,EAAWJ,cAAcE,EAAKC,iBAC9BE,GAEtB,CAKI,cAAIP,GACA,OAAOF,KAAKC,WACpB,CAOI,aAAAE,CAAcD,GAMV,OALAF,KAAKC,YACqB,iBAAfC,EACDM,EAAWE,WAAWR,GACtBA,EAAWS,QAEdX,IACf,CAOI,aAAMY,CAAQC,GACV,OAAOd,MAAMa,QAAQC,EAC7B,CAKI,kBAAAC,CAAmBD,GACS,MAApBb,KAAKC,aACLD,KAAKC,YAAYc,iBAAiBF,EAE9C,CASI,QAAAG,CAASC,EAASC,GACd,OAAOD,EAAQE,SAASC,gBAAgBF,EAChD,CAQI,kBAAAG,CAAmBC,GAKf,OAFQA,EACH,gBAGb,MACA,CAWI,YAAAC,CAAaD,EAAUE,EAAeN,GAClC,MAAMZ,EACFgB,EACH,gBAED,OAAOG,QAAQC,QACXC,EAAavB,cAELE,EACpB,cAGA,CAQI,cAAAsB,CAAeC,GACX,MAAO,CACHC,gBAAiB,CACbD,SACAtB,WACwB,MAApBP,KAAKC,YACCD,KAAKC,YAAY8B,cACjB,MAG1B,CAKI,SAAAC,GAOI,MAAO,sBAL2B,MAA9BhC,KAAKiC,uBACoC,MAAzCjC,KAAKiC,sBAAsBC,WACrBlC,KAAKiC,sBAAsBC,WAC3BlC,KAAKmC,YAEuBC,YAC9C,EAIAC,EAAeC,IAAI,kBAAmB3C,EAAkBS"}
|
|
@@ -30,25 +30,25 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* @namespace proto
|
|
33
|
-
* @typedef {import("@
|
|
34
|
-
* @typedef {import("@
|
|
35
|
-
* @typedef {import("@
|
|
36
|
-
* @typedef {import("@
|
|
37
|
-
* @typedef {import("@
|
|
38
|
-
* @typedef {import("@
|
|
39
|
-
* @typedef {import("@
|
|
40
|
-
* @typedef {import("@
|
|
33
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
34
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
35
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
36
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
37
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
38
|
+
* @typedef {import("@hiero-ledger/proto").proto.IScheduleSignTransactionBody} HieroProto.proto.IScheduleSignTransactionBody
|
|
39
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
40
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignatureMap} HieroProto.proto.ISignatureMap
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
45
|
-
* @typedef {import("@
|
|
45
|
+
* @typedef {import("@hiero-ledger/cryptography").Key} Key
|
|
46
46
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
47
47
|
* @typedef {import("../client/Client.js").default<*, *>} Client
|
|
48
48
|
* @typedef {import("../Timestamp.js").default} Timestamp
|
|
49
49
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
50
50
|
* @typedef {import("../account/AccountId.js").default} AccountId
|
|
51
|
-
* @typedef {import("@
|
|
51
|
+
* @typedef {import("@hiero-ledger/cryptography").PublicKey} PublicKey
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
54
|
/**
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
*/
|
|
15
15
|
/**
|
|
16
16
|
* @namespace proto
|
|
17
|
-
* @typedef {import("@
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
20
|
-
* @typedef {import("@
|
|
21
|
-
* @typedef {import("@
|
|
22
|
-
* @typedef {import("@
|
|
23
|
-
* @typedef {import("@
|
|
24
|
-
* @typedef {import("@
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
20
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
21
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
22
|
+
* @typedef {import("@hiero-ledger/proto").proto.IScheduleSignTransactionBody} HieroProto.proto.IScheduleSignTransactionBody
|
|
23
|
+
* @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
|
|
24
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignatureMap} HieroProto.proto.ISignatureMap
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
27
|
* @typedef {import("bignumber.js").default} BigNumber
|
|
28
|
-
* @typedef {import("@
|
|
28
|
+
* @typedef {import("@hiero-ledger/cryptography").Key} Key
|
|
29
29
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
30
30
|
* @typedef {import("../client/Client.js").default<*, *>} Client
|
|
31
31
|
* @typedef {import("../Timestamp.js").default} Timestamp
|
|
32
32
|
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
|
|
33
33
|
* @typedef {import("../account/AccountId.js").default} AccountId
|
|
34
|
-
* @typedef {import("@
|
|
34
|
+
* @typedef {import("@hiero-ledger/cryptography").PublicKey} PublicKey
|
|
35
35
|
*/
|
|
36
36
|
/**
|
|
37
37
|
* Create a new Hedera™ crypto-currency account.
|
|
@@ -88,23 +88,23 @@ export type ProtoSignedTransaction = {
|
|
|
88
88
|
};
|
|
89
89
|
export namespace HieroProto {
|
|
90
90
|
namespace proto {
|
|
91
|
-
type ITransaction = import("@
|
|
92
|
-
type ISignedTransaction = import("@
|
|
93
|
-
type TransactionBody = import("@
|
|
94
|
-
type ITransactionBody = import("@
|
|
95
|
-
type ITransactionResponse = import("@
|
|
96
|
-
type IScheduleSignTransactionBody = import("@
|
|
97
|
-
type IAccountID = import("@
|
|
98
|
-
type ISignatureMap = import("@
|
|
91
|
+
type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
|
|
92
|
+
type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
|
|
93
|
+
type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
|
|
94
|
+
type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
|
|
95
|
+
type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
|
|
96
|
+
type IScheduleSignTransactionBody = import("@hiero-ledger/proto").proto.IScheduleSignTransactionBody;
|
|
97
|
+
type IAccountID = import("@hiero-ledger/proto").proto.IAccountID;
|
|
98
|
+
type ISignatureMap = import("@hiero-ledger/proto").proto.ISignatureMap;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
export type BigNumber = import("bignumber.js").default;
|
|
102
|
-
export type Key = import("@
|
|
102
|
+
export type Key = import("@hiero-ledger/cryptography").Key;
|
|
103
103
|
export type Channel = import("../channel/Channel.js").default;
|
|
104
104
|
export type Client = import("../client/Client.js").default<any, any>;
|
|
105
105
|
export type Timestamp = import("../Timestamp.js").default;
|
|
106
106
|
export type TransactionId = import("../transaction/TransactionId.js").default;
|
|
107
107
|
export type AccountId = import("../account/AccountId.js").default;
|
|
108
|
-
export type PublicKey = import("@
|
|
108
|
+
export type PublicKey = import("@hiero-ledger/cryptography").PublicKey;
|
|
109
109
|
import Transaction from "../transaction/Transaction.js";
|
|
110
110
|
import ScheduleId from "./ScheduleId.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleSignTransaction.js","sources":["../../src/schedule/ScheduleSignTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ScheduleId from \"./ScheduleId.js\";\nimport Hbar from \"../Hbar.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\n\n/**\n * @typedef {object} ProtoSignaturePair\n * @property {(Uint8Array | null)=} pubKeyPrefix\n * @property {(Uint8Array | null)=} ed25519\n */\n\n/**\n * @typedef {object} ProtoSigMap\n * @property {(ProtoSignaturePair[] | null)=} sigPair\n */\n\n/**\n * @typedef {object} ProtoSignedTransaction\n * @property {(Uint8Array | null)=} bodyBytes\n * @property {(ProtoSigMap | null)=} sigMap\n */\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"ScheduleSignTransaction.js","sources":["../../src/schedule/ScheduleSignTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ScheduleId from \"./ScheduleId.js\";\nimport Hbar from \"../Hbar.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\n\n/**\n * @typedef {object} ProtoSignaturePair\n * @property {(Uint8Array | null)=} pubKeyPrefix\n * @property {(Uint8Array | null)=} ed25519\n */\n\n/**\n * @typedef {object} ProtoSigMap\n * @property {(ProtoSignaturePair[] | null)=} sigPair\n */\n\n/**\n * @typedef {object} ProtoSignedTransaction\n * @property {(Uint8Array | null)=} bodyBytes\n * @property {(ProtoSigMap | null)=} sigMap\n */\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.IScheduleSignTransactionBody} HieroProto.proto.IScheduleSignTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAccountID} HieroProto.proto.IAccountID\n * @typedef {import(\"@hiero-ledger/proto\").proto.ISignatureMap} HieroProto.proto.ISignatureMap\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"@hiero-ledger/cryptography\").Key} Key\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../Timestamp.js\").default} Timestamp\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"@hiero-ledger/cryptography\").PublicKey} PublicKey\n */\n\n/**\n * Create a new Hedera™ crypto-currency account.\n */\nexport default class ScheduleSignTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {ScheduleId | string} [props.scheduleId]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?ScheduleId}\n */\n this._scheduleId = null;\n\n if (props.scheduleId != null) {\n this.setScheduleId(props.scheduleId);\n }\n\n this._defaultMaxTransactionFee = new Hbar(5);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {ScheduleSignTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const sign =\n /** @type {HieroProto.proto.IScheduleSignTransactionBody} */ (\n body.scheduleSign\n );\n\n return Transaction._fromProtobufTransactions(\n new ScheduleSignTransaction({\n scheduleId:\n sign.scheduleID != null\n ? ScheduleId._fromProtobuf(sign.scheduleID)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?ScheduleId}\n */\n get scheduleId() {\n return this._scheduleId;\n }\n\n /**\n * @param {ScheduleId | string} scheduleId\n * @returns {this}\n */\n setScheduleId(scheduleId) {\n this._requireNotFrozen();\n this._scheduleId =\n typeof scheduleId === \"string\"\n ? ScheduleId.fromString(scheduleId)\n : scheduleId.clone();\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._scheduleId != null) {\n this._scheduleId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.schedule.signSchedule(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"scheduleSign\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IScheduleSignTransactionBody}\n */\n _makeTransactionData() {\n return {\n scheduleID:\n this._scheduleId != null\n ? this._scheduleId._toProtobuf()\n : null,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `ScheduleSignTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"scheduleSign\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n ScheduleSignTransaction._fromProtobuf,\n);\n"],"names":["ScheduleSignTransaction","Transaction","constructor","props","super","this","_scheduleId","scheduleId","setScheduleId","_defaultMaxTransactionFee","Hbar","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","sign","_fromProtobufTransactions","scheduleID","ScheduleId","undefined","_requireNotFrozen","fromString","clone","_validateChecksums","client","validateChecksum","_execute","channel","request","schedule","signSchedule","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"iIAmDe,MAAMA,UAAgCC,EAKjD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,YAAc,KAEK,MAApBH,EAAMI,YACNF,KAAKG,cAAcL,EAAMI,YAG7BF,KAAKI,0BAA4B,IAAIC,EAAK,EAClD,CAWI,oBAAOC,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,aAEL,OAAOf,EAAYiB,0BACf,IAAIlB,EAAwB,CACxBO,WACuB,MAAnBU,EAAKE,WACCC,EAAWT,cAAcM,EAAKE,iBAC9BE,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,cAAIT,GACA,OAAOF,KAAKC,WACpB,CAMI,aAAAE,CAAcD,GAOV,OANAF,KAAKiB,oBACLjB,KAAKC,YACqB,iBAAfC,EACDa,EAAWG,WAAWhB,GACtBA,EAAWiB,QAEdnB,IACf,CAKI,kBAAAoB,CAAmBC,GACS,MAApBrB,KAAKC,aACLD,KAAKC,YAAYqB,iBAAiBD,EAE9C,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQE,SAASC,aAAaF,EAC7C,CAOI,uBAAAG,GACI,MAAO,cACf,CAOI,oBAAAC,GACI,MAAO,CACHf,WACwB,MAApBd,KAAKC,YACCD,KAAKC,YAAY6B,cACjB,KAEtB,CAKI,SAAAC,GAII,MAAO,2BAFH/B,KAAKgC,gBAAgBC,QACxB,WAC2CC,YACpD,EAGAC,EAAqBC,IACjB,eAEAzC,EAAwBW"}
|
|
@@ -15,12 +15,12 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @namespace proto
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
20
|
-
* @typedef {import("@
|
|
21
|
-
* @typedef {import("@
|
|
22
|
-
* @typedef {import("@
|
|
23
|
-
* @typedef {import("@
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
20
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
21
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
22
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
23
|
+
* @typedef {import("@hiero-ledger/proto").proto.IFreezeTransactionBody} HieroProto.proto.IFreezeTransactionBody
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
8
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
8
|
+
* @typedef {import("@hiero-ledger/proto").proto.IFreezeTransactionBody} HieroProto.proto.IFreezeTransactionBody
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
11
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
@@ -167,12 +167,12 @@ export default class FreezeTransaction extends Transaction {
|
|
|
167
167
|
}
|
|
168
168
|
export namespace HieroProto {
|
|
169
169
|
namespace proto {
|
|
170
|
-
type ITransaction = import("@
|
|
171
|
-
type ISignedTransaction = import("@
|
|
172
|
-
type TransactionBody = import("@
|
|
173
|
-
type ITransactionBody = import("@
|
|
174
|
-
type ITransactionResponse = import("@
|
|
175
|
-
type IFreezeTransactionBody = import("@
|
|
170
|
+
type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
|
|
171
|
+
type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
|
|
172
|
+
type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
|
|
173
|
+
type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
|
|
174
|
+
type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
|
|
175
|
+
type IFreezeTransactionBody = import("@hiero-ledger/proto").proto.IFreezeTransactionBody;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
export type Channel = import("../channel/Channel.js").default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FreezeTransaction.js","sources":["../../src/system/FreezeTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport FileId from \"../file/FileId.js\";\nimport * as hex from \"../encoding/hex.js\";\nimport FreezeType from \"../FreezeType.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hashgraph/proto\").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction\n * @typedef {import(\"@hashgraph/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n * @typedef {import(\"@hashgraph/proto\").proto.IFreezeTransactionBody} HieroProto.proto.IFreezeTransactionBody\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * @typedef {object} HourMinute\n * @property {number} hour\n * @property {number} minute\n */\n\n/**\n * Freeze, cancel, or prepare a freeze.\n * This single transaction performs all of the functions supported\n * by the network freeze service. These functions include actions to\n * prepare an upgrade, prepare a telemetry upgrade, freeze the network,\n * freeze the network for upgrade, or abort a scheduled freeze.\n * <p>\n * The actual freeze action SHALL be determined by the `freeze_type` field\n * of the `FreezeTransactionBody`.<br/>\n */\nexport default class FreezeTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {HourMinute} [props.startTime]\n * @param {HourMinute} [props.endTime]\n * @param {Timestamp} [props.startTimestamp]\n * @param {FileId} [props.updateFileId]\n * @param {FileId} [props.fileId]\n * @param {Uint8Array | string} [props.fileHash]\n * @param { FreezeType } [props.freezeType]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?HourMinute}\n */\n this._startTime = null;\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._startTimestamp = null;\n\n /**\n * @private\n * @type {?HourMinute}\n */\n this._endTime = null;\n\n /**\n * @private\n * @type {?FileId}\n */\n this._fileId = null;\n\n /**\n * @private\n * @type {?Uint8Array}\n */\n this._fileHash = null;\n\n /**\n * @private\n * @type {?FreezeType}\n */\n this._freezeType = null;\n\n if (props.startTime != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setStartTime(props.startTime.hour, props.startTime.minute);\n }\n\n if (props.endTime != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setEndTime(props.endTime.hour, props.endTime.minute);\n }\n\n if (props.startTimestamp != null) {\n this.setStartTimestamp(props.startTimestamp);\n }\n\n if (props.updateFileId != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setUpdateFileId(props.updateFileId);\n }\n\n if (props.fileId != null) {\n this.setFileId(props.fileId);\n }\n\n if (props.fileHash != null) {\n this.setFileHash(props.fileHash);\n }\n\n if (props.freezeType != null) {\n this.setFreezeType(props.freezeType);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {FreezeTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const freeze = /** @type {HieroProto.proto.IFreezeTransactionBody} */ (\n body.freeze\n );\n\n return Transaction._fromProtobufTransactions(\n new FreezeTransaction({\n startTime:\n freeze.startHour != null && freeze.startMin != null\n ? {\n hour: freeze.startHour,\n minute: freeze.startMin,\n }\n : undefined,\n endTime:\n freeze.endHour != null && freeze.endMin != null\n ? {\n hour: freeze.endHour,\n minute: freeze.endMin,\n }\n : undefined,\n startTimestamp:\n freeze.startTime != null\n ? Timestamp._fromProtobuf(freeze.startTime)\n : undefined,\n updateFileId:\n freeze.updateFile != null\n ? FileId._fromProtobuf(freeze.updateFile)\n : undefined,\n fileHash: freeze.fileHash != null ? freeze.fileHash : undefined,\n freezeType:\n freeze.freezeType != null\n ? FreezeType._fromCode(freeze.freezeType)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @deprecated - Use `startTimestamp` instead\n * @returns {?HourMinute}\n */\n get startTime() {\n return null;\n }\n\n /**\n * @deprecated - Use `startTimestamp` instead\n * @param {number | string} startHourOrString\n * @param {?number} startMinute\n * @returns {FreezeTransaction}\n */\n setStartTime(startHourOrString, startMinute) {\n this._requireNotFrozen();\n if (typeof startHourOrString === \"string\") {\n const split = startHourOrString.split(\":\");\n this._startTime = {\n hour: Number(split[0]),\n minute: Number(split[1]),\n };\n } else {\n this._startTime = {\n hour: startHourOrString,\n minute: /** @type {number} */ (startMinute),\n };\n }\n\n return this;\n }\n\n /**\n * @returns {?Timestamp}\n */\n get startTimestamp() {\n return this._startTimestamp;\n }\n\n /**\n * @param {Timestamp} startTimestamp\n * @returns {FreezeTransaction}\n */\n setStartTimestamp(startTimestamp) {\n this._requireNotFrozen();\n this._startTimestamp = startTimestamp;\n\n return this;\n }\n\n /**\n * @deprecated\n * @returns {?HourMinute}\n */\n get endTime() {\n console.warn(\"`FreezeTransaction.endTime` is deprecated\");\n return this._endTime;\n }\n\n /**\n * @deprecated\n * @param {number | string} endHourOrString\n * @param {?number} endMinute\n * @returns {FreezeTransaction}\n */\n setEndTime(endHourOrString, endMinute) {\n console.warn(\"`FreezeTransaction.endTime` is deprecated\");\n this._requireNotFrozen();\n if (typeof endHourOrString === \"string\") {\n const split = endHourOrString.split(\":\");\n this._endTime = {\n hour: Number(split[0]),\n minute: Number(split[1]),\n };\n } else {\n this._endTime = {\n hour: endHourOrString,\n minute: /** @type {number} */ (endMinute),\n };\n }\n\n return this;\n }\n\n /**\n * @deprecated - Use `fileId` instead\n * @returns {?FileId}\n */\n get updateFileId() {\n return this.fileId;\n }\n\n /**\n * @deprecated - Use `setFileId()` instead\n * @param {FileId} updateFileId\n * @returns {FreezeTransaction}\n */\n setUpdateFileId(updateFileId) {\n return this.setFileId(updateFileId);\n }\n\n /**\n * @returns {?FileId}\n */\n get fileId() {\n return this._fileId;\n }\n\n /**\n * @param {FileId} fileId\n * @returns {FreezeTransaction}\n */\n setFileId(fileId) {\n this._requireNotFrozen();\n this._fileId = fileId;\n\n return this;\n }\n\n /**\n * @returns {?Uint8Array}\n */\n get fileHash() {\n return this._fileHash;\n }\n\n /**\n * @param {Uint8Array | string} fileHash\n * @returns {FreezeTransaction}\n */\n setFileHash(fileHash) {\n this._requireNotFrozen();\n this._fileHash =\n typeof fileHash === \"string\" ? hex.decode(fileHash) : fileHash;\n\n return this;\n }\n\n /**\n * @returns {?FreezeType}\n */\n get freezeType() {\n return this._freezeType;\n }\n\n /**\n * @param {FreezeType} freezeType\n * @returns {FreezeTransaction}\n */\n setFreezeType(freezeType) {\n this._requireNotFrozen();\n this._freezeType = freezeType;\n return this;\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"freeze\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IFreezeTransactionBody}\n */\n _makeTransactionData() {\n return {\n startTime:\n this._startTimestamp != null\n ? this._startTimestamp._toProtobuf()\n : null,\n updateFile:\n this._fileId != null ? this._fileId._toProtobuf() : null,\n fileHash: this._fileHash,\n freezeType:\n this._freezeType != null ? this._freezeType.valueOf() : null,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `FreezeTransaction:${timestamp.toString()}`;\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.freeze.freeze(request);\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nTRANSACTION_REGISTRY.set(\"freeze\", FreezeTransaction._fromProtobuf);\n"],"names":["FreezeTransaction","Transaction","constructor","props","super","this","_startTime","_startTimestamp","_endTime","_fileId","_fileHash","_freezeType","startTime","setStartTime","hour","minute","endTime","setEndTime","startTimestamp","setStartTimestamp","updateFileId","setUpdateFileId","fileId","setFileId","fileHash","setFileHash","freezeType","setFreezeType","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","freeze","_fromProtobufTransactions","startHour","startMin","undefined","endHour","endMin","Timestamp","updateFile","FileId","FreezeType","_fromCode","startHourOrString","startMinute","_requireNotFrozen","split","Number","console","warn","endHourOrString","endMinute","hex.decode","_getTransactionDataCase","_makeTransactionData","_toProtobuf","valueOf","_getLogId","_transactionIds","current","toString","_execute","channel","request","TRANSACTION_REGISTRY","set"],"mappings":"oNA0Ce,MAAMA,UAA0BC,EAW3C,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,WAAa,KAMlBD,KAAKE,gBAAkB,KAMvBF,KAAKG,SAAW,KAMhBH,KAAKI,QAAU,KAMfJ,KAAKK,UAAY,KAMjBL,KAAKM,YAAc,KAEI,MAAnBR,EAAMS,WAENP,KAAKQ,aAAaV,EAAMS,UAAUE,KAAMX,EAAMS,UAAUG,QAGvC,MAAjBZ,EAAMa,SAENX,KAAKY,WAAWd,EAAMa,QAAQF,KAAMX,EAAMa,QAAQD,QAG1B,MAAxBZ,EAAMe,gBACNb,KAAKc,kBAAkBhB,EAAMe,gBAGP,MAAtBf,EAAMiB,cAENf,KAAKgB,gBAAgBlB,EAAMiB,cAGX,MAAhBjB,EAAMmB,QACNjB,KAAKkB,UAAUpB,EAAMmB,QAGH,MAAlBnB,EAAMqB,UACNnB,KAAKoB,YAAYtB,EAAMqB,UAGH,MAApBrB,EAAMuB,YACNrB,KAAKsB,cAAcxB,EAAMuB,WAErC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAGnB,OAED,OAAOhC,EAAYkC,0BACf,IAAInC,EAAkB,CAClBY,UACwB,MAApBsB,EAAOE,WAAwC,MAAnBF,EAAOG,SAC7B,CACIvB,KAAMoB,EAAOE,UACbrB,OAAQmB,EAAOG,eAEnBC,EACVtB,QACsB,MAAlBkB,EAAOK,SAAoC,MAAjBL,EAAOM,OAC3B,CACI1B,KAAMoB,EAAOK,QACbxB,OAAQmB,EAAOM,aAEnBF,EACVpB,eACwB,MAApBgB,EAAOtB,UACD6B,EAAUb,cAAcM,EAAOtB,gBAC/B0B,EACVlB,aACyB,MAArBc,EAAOQ,WACDC,EAAOf,cAAcM,EAAOQ,iBAC5BJ,EACVd,SAA6B,MAAnBU,EAAOV,SAAmBU,EAAOV,cAAWc,EACtDZ,WACyB,MAArBQ,EAAOR,WACDkB,EAAWC,UAAUX,EAAOR,iBAC5BY,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAMI,aAAIrB,GACA,OAAO,IACf,CAQI,YAAAC,CAAaiC,EAAmBC,GAE5B,GADA1C,KAAK2C,oBAC4B,iBAAtBF,EAAgC,CACvC,MAAMG,EAAQH,EAAkBG,MAAM,KACtC5C,KAAKC,WAAa,CACdQ,KAAMoC,OAAOD,EAAM,IACnBlC,OAAQmC,OAAOD,EAAM,IAErC,MACY5C,KAAKC,WAAa,CACdQ,KAAMgC,EACN/B,OAA+B,GAIvC,OAAOV,IACf,CAKI,kBAAIa,GACA,OAAOb,KAAKE,eACpB,CAMI,iBAAAY,CAAkBD,GAId,OAHAb,KAAK2C,oBACL3C,KAAKE,gBAAkBW,EAEhBb,IACf,CAMI,WAAIW,GAEA,OADAmC,QAAQC,KAAK,6CACN/C,KAAKG,QACpB,CAQI,UAAAS,CAAWoC,EAAiBC,GAGxB,GAFAH,QAAQC,KAAK,6CACb/C,KAAK2C,oBAC0B,iBAApBK,EAA8B,CACrC,MAAMJ,EAAQI,EAAgBJ,MAAM,KACpC5C,KAAKG,SAAW,CACZM,KAAMoC,OAAOD,EAAM,IACnBlC,OAAQmC,OAAOD,EAAM,IAErC,MACY5C,KAAKG,SAAW,CACZM,KAAMuC,EACNtC,OAA+B,GAIvC,OAAOV,IACf,CAMI,gBAAIe,GACA,OAAOf,KAAKiB,MACpB,CAOI,eAAAD,CAAgBD,GACZ,OAAOf,KAAKkB,UAAUH,EAC9B,CAKI,UAAIE,GACA,OAAOjB,KAAKI,OACpB,CAMI,SAAAc,CAAUD,GAIN,OAHAjB,KAAK2C,oBACL3C,KAAKI,QAAUa,EAERjB,IACf,CAKI,YAAImB,GACA,OAAOnB,KAAKK,SACpB,CAMI,WAAAe,CAAYD,GAKR,OAJAnB,KAAK2C,oBACL3C,KAAKK,UACmB,iBAAbc,EAAwB+B,EAAW/B,GAAYA,EAEnDnB,IACf,CAKI,cAAIqB,GACA,OAAOrB,KAAKM,WACpB,CAMI,aAAAgB,CAAcD,GAGV,OAFArB,KAAK2C,oBACL3C,KAAKM,YAAce,EACZrB,IACf,CAOI,uBAAAmD,GACI,MAAO,QACf,CAOI,oBAAAC,GACI,MAAO,CACH7C,UAC4B,MAAxBP,KAAKE,gBACCF,KAAKE,gBAAgBmD,cACrB,KACVhB,WACoB,MAAhBrC,KAAKI,QAAkBJ,KAAKI,QAAQiD,cAAgB,KACxDlC,SAAUnB,KAAKK,UACfgB,WACwB,MAApBrB,KAAKM,YAAsBN,KAAKM,YAAYgD,UAAY,KAExE,CAKI,SAAAC,GAII,MAAO,qBAFHvD,KAAKwD,gBAAgBC,QACxB,WACqCC,YAC9C,CASI,QAAAC,CAASC,EAASC,GACd,OAAOD,EAAQ/B,OAAOA,OAAOgC,EACrC,EAIAC,EAAqBC,IAAI,SAAUpE,EAAkB4B"}
|
|
1
|
+
{"version":3,"file":"FreezeTransaction.js","sources":["../../src/system/FreezeTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport FileId from \"../file/FileId.js\";\nimport * as hex from \"../encoding/hex.js\";\nimport FreezeType from \"../FreezeType.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFreezeTransactionBody} HieroProto.proto.IFreezeTransactionBody\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * @typedef {object} HourMinute\n * @property {number} hour\n * @property {number} minute\n */\n\n/**\n * Freeze, cancel, or prepare a freeze.\n * This single transaction performs all of the functions supported\n * by the network freeze service. These functions include actions to\n * prepare an upgrade, prepare a telemetry upgrade, freeze the network,\n * freeze the network for upgrade, or abort a scheduled freeze.\n * <p>\n * The actual freeze action SHALL be determined by the `freeze_type` field\n * of the `FreezeTransactionBody`.<br/>\n */\nexport default class FreezeTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {HourMinute} [props.startTime]\n * @param {HourMinute} [props.endTime]\n * @param {Timestamp} [props.startTimestamp]\n * @param {FileId} [props.updateFileId]\n * @param {FileId} [props.fileId]\n * @param {Uint8Array | string} [props.fileHash]\n * @param { FreezeType } [props.freezeType]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?HourMinute}\n */\n this._startTime = null;\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._startTimestamp = null;\n\n /**\n * @private\n * @type {?HourMinute}\n */\n this._endTime = null;\n\n /**\n * @private\n * @type {?FileId}\n */\n this._fileId = null;\n\n /**\n * @private\n * @type {?Uint8Array}\n */\n this._fileHash = null;\n\n /**\n * @private\n * @type {?FreezeType}\n */\n this._freezeType = null;\n\n if (props.startTime != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setStartTime(props.startTime.hour, props.startTime.minute);\n }\n\n if (props.endTime != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setEndTime(props.endTime.hour, props.endTime.minute);\n }\n\n if (props.startTimestamp != null) {\n this.setStartTimestamp(props.startTimestamp);\n }\n\n if (props.updateFileId != null) {\n // eslint-disable-next-line deprecation/deprecation\n this.setUpdateFileId(props.updateFileId);\n }\n\n if (props.fileId != null) {\n this.setFileId(props.fileId);\n }\n\n if (props.fileHash != null) {\n this.setFileHash(props.fileHash);\n }\n\n if (props.freezeType != null) {\n this.setFreezeType(props.freezeType);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {FreezeTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const freeze = /** @type {HieroProto.proto.IFreezeTransactionBody} */ (\n body.freeze\n );\n\n return Transaction._fromProtobufTransactions(\n new FreezeTransaction({\n startTime:\n freeze.startHour != null && freeze.startMin != null\n ? {\n hour: freeze.startHour,\n minute: freeze.startMin,\n }\n : undefined,\n endTime:\n freeze.endHour != null && freeze.endMin != null\n ? {\n hour: freeze.endHour,\n minute: freeze.endMin,\n }\n : undefined,\n startTimestamp:\n freeze.startTime != null\n ? Timestamp._fromProtobuf(freeze.startTime)\n : undefined,\n updateFileId:\n freeze.updateFile != null\n ? FileId._fromProtobuf(freeze.updateFile)\n : undefined,\n fileHash: freeze.fileHash != null ? freeze.fileHash : undefined,\n freezeType:\n freeze.freezeType != null\n ? FreezeType._fromCode(freeze.freezeType)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @deprecated - Use `startTimestamp` instead\n * @returns {?HourMinute}\n */\n get startTime() {\n return null;\n }\n\n /**\n * @deprecated - Use `startTimestamp` instead\n * @param {number | string} startHourOrString\n * @param {?number} startMinute\n * @returns {FreezeTransaction}\n */\n setStartTime(startHourOrString, startMinute) {\n this._requireNotFrozen();\n if (typeof startHourOrString === \"string\") {\n const split = startHourOrString.split(\":\");\n this._startTime = {\n hour: Number(split[0]),\n minute: Number(split[1]),\n };\n } else {\n this._startTime = {\n hour: startHourOrString,\n minute: /** @type {number} */ (startMinute),\n };\n }\n\n return this;\n }\n\n /**\n * @returns {?Timestamp}\n */\n get startTimestamp() {\n return this._startTimestamp;\n }\n\n /**\n * @param {Timestamp} startTimestamp\n * @returns {FreezeTransaction}\n */\n setStartTimestamp(startTimestamp) {\n this._requireNotFrozen();\n this._startTimestamp = startTimestamp;\n\n return this;\n }\n\n /**\n * @deprecated\n * @returns {?HourMinute}\n */\n get endTime() {\n console.warn(\"`FreezeTransaction.endTime` is deprecated\");\n return this._endTime;\n }\n\n /**\n * @deprecated\n * @param {number | string} endHourOrString\n * @param {?number} endMinute\n * @returns {FreezeTransaction}\n */\n setEndTime(endHourOrString, endMinute) {\n console.warn(\"`FreezeTransaction.endTime` is deprecated\");\n this._requireNotFrozen();\n if (typeof endHourOrString === \"string\") {\n const split = endHourOrString.split(\":\");\n this._endTime = {\n hour: Number(split[0]),\n minute: Number(split[1]),\n };\n } else {\n this._endTime = {\n hour: endHourOrString,\n minute: /** @type {number} */ (endMinute),\n };\n }\n\n return this;\n }\n\n /**\n * @deprecated - Use `fileId` instead\n * @returns {?FileId}\n */\n get updateFileId() {\n return this.fileId;\n }\n\n /**\n * @deprecated - Use `setFileId()` instead\n * @param {FileId} updateFileId\n * @returns {FreezeTransaction}\n */\n setUpdateFileId(updateFileId) {\n return this.setFileId(updateFileId);\n }\n\n /**\n * @returns {?FileId}\n */\n get fileId() {\n return this._fileId;\n }\n\n /**\n * @param {FileId} fileId\n * @returns {FreezeTransaction}\n */\n setFileId(fileId) {\n this._requireNotFrozen();\n this._fileId = fileId;\n\n return this;\n }\n\n /**\n * @returns {?Uint8Array}\n */\n get fileHash() {\n return this._fileHash;\n }\n\n /**\n * @param {Uint8Array | string} fileHash\n * @returns {FreezeTransaction}\n */\n setFileHash(fileHash) {\n this._requireNotFrozen();\n this._fileHash =\n typeof fileHash === \"string\" ? hex.decode(fileHash) : fileHash;\n\n return this;\n }\n\n /**\n * @returns {?FreezeType}\n */\n get freezeType() {\n return this._freezeType;\n }\n\n /**\n * @param {FreezeType} freezeType\n * @returns {FreezeTransaction}\n */\n setFreezeType(freezeType) {\n this._requireNotFrozen();\n this._freezeType = freezeType;\n return this;\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"freeze\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IFreezeTransactionBody}\n */\n _makeTransactionData() {\n return {\n startTime:\n this._startTimestamp != null\n ? this._startTimestamp._toProtobuf()\n : null,\n updateFile:\n this._fileId != null ? this._fileId._toProtobuf() : null,\n fileHash: this._fileHash,\n freezeType:\n this._freezeType != null ? this._freezeType.valueOf() : null,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `FreezeTransaction:${timestamp.toString()}`;\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.freeze.freeze(request);\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nTRANSACTION_REGISTRY.set(\"freeze\", FreezeTransaction._fromProtobuf);\n"],"names":["FreezeTransaction","Transaction","constructor","props","super","this","_startTime","_startTimestamp","_endTime","_fileId","_fileHash","_freezeType","startTime","setStartTime","hour","minute","endTime","setEndTime","startTimestamp","setStartTimestamp","updateFileId","setUpdateFileId","fileId","setFileId","fileHash","setFileHash","freezeType","setFreezeType","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","freeze","_fromProtobufTransactions","startHour","startMin","undefined","endHour","endMin","Timestamp","updateFile","FileId","FreezeType","_fromCode","startHourOrString","startMinute","_requireNotFrozen","split","Number","console","warn","endHourOrString","endMinute","hex.decode","_getTransactionDataCase","_makeTransactionData","_toProtobuf","valueOf","_getLogId","_transactionIds","current","toString","_execute","channel","request","TRANSACTION_REGISTRY","set"],"mappings":"oNA0Ce,MAAMA,UAA0BC,EAW3C,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,WAAa,KAMlBD,KAAKE,gBAAkB,KAMvBF,KAAKG,SAAW,KAMhBH,KAAKI,QAAU,KAMfJ,KAAKK,UAAY,KAMjBL,KAAKM,YAAc,KAEI,MAAnBR,EAAMS,WAENP,KAAKQ,aAAaV,EAAMS,UAAUE,KAAMX,EAAMS,UAAUG,QAGvC,MAAjBZ,EAAMa,SAENX,KAAKY,WAAWd,EAAMa,QAAQF,KAAMX,EAAMa,QAAQD,QAG1B,MAAxBZ,EAAMe,gBACNb,KAAKc,kBAAkBhB,EAAMe,gBAGP,MAAtBf,EAAMiB,cAENf,KAAKgB,gBAAgBlB,EAAMiB,cAGX,MAAhBjB,EAAMmB,QACNjB,KAAKkB,UAAUpB,EAAMmB,QAGH,MAAlBnB,EAAMqB,UACNnB,KAAKoB,YAAYtB,EAAMqB,UAGH,MAApBrB,EAAMuB,YACNrB,KAAKsB,cAAcxB,EAAMuB,WAErC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAGnB,OAED,OAAOhC,EAAYkC,0BACf,IAAInC,EAAkB,CAClBY,UACwB,MAApBsB,EAAOE,WAAwC,MAAnBF,EAAOG,SAC7B,CACIvB,KAAMoB,EAAOE,UACbrB,OAAQmB,EAAOG,eAEnBC,EACVtB,QACsB,MAAlBkB,EAAOK,SAAoC,MAAjBL,EAAOM,OAC3B,CACI1B,KAAMoB,EAAOK,QACbxB,OAAQmB,EAAOM,aAEnBF,EACVpB,eACwB,MAApBgB,EAAOtB,UACD6B,EAAUb,cAAcM,EAAOtB,gBAC/B0B,EACVlB,aACyB,MAArBc,EAAOQ,WACDC,EAAOf,cAAcM,EAAOQ,iBAC5BJ,EACVd,SAA6B,MAAnBU,EAAOV,SAAmBU,EAAOV,cAAWc,EACtDZ,WACyB,MAArBQ,EAAOR,WACDkB,EAAWC,UAAUX,EAAOR,iBAC5BY,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAMI,aAAIrB,GACA,OAAO,IACf,CAQI,YAAAC,CAAaiC,EAAmBC,GAE5B,GADA1C,KAAK2C,oBAC4B,iBAAtBF,EAAgC,CACvC,MAAMG,EAAQH,EAAkBG,MAAM,KACtC5C,KAAKC,WAAa,CACdQ,KAAMoC,OAAOD,EAAM,IACnBlC,OAAQmC,OAAOD,EAAM,IAErC,MACY5C,KAAKC,WAAa,CACdQ,KAAMgC,EACN/B,OAA+B,GAIvC,OAAOV,IACf,CAKI,kBAAIa,GACA,OAAOb,KAAKE,eACpB,CAMI,iBAAAY,CAAkBD,GAId,OAHAb,KAAK2C,oBACL3C,KAAKE,gBAAkBW,EAEhBb,IACf,CAMI,WAAIW,GAEA,OADAmC,QAAQC,KAAK,6CACN/C,KAAKG,QACpB,CAQI,UAAAS,CAAWoC,EAAiBC,GAGxB,GAFAH,QAAQC,KAAK,6CACb/C,KAAK2C,oBAC0B,iBAApBK,EAA8B,CACrC,MAAMJ,EAAQI,EAAgBJ,MAAM,KACpC5C,KAAKG,SAAW,CACZM,KAAMoC,OAAOD,EAAM,IACnBlC,OAAQmC,OAAOD,EAAM,IAErC,MACY5C,KAAKG,SAAW,CACZM,KAAMuC,EACNtC,OAA+B,GAIvC,OAAOV,IACf,CAMI,gBAAIe,GACA,OAAOf,KAAKiB,MACpB,CAOI,eAAAD,CAAgBD,GACZ,OAAOf,KAAKkB,UAAUH,EAC9B,CAKI,UAAIE,GACA,OAAOjB,KAAKI,OACpB,CAMI,SAAAc,CAAUD,GAIN,OAHAjB,KAAK2C,oBACL3C,KAAKI,QAAUa,EAERjB,IACf,CAKI,YAAImB,GACA,OAAOnB,KAAKK,SACpB,CAMI,WAAAe,CAAYD,GAKR,OAJAnB,KAAK2C,oBACL3C,KAAKK,UACmB,iBAAbc,EAAwB+B,EAAW/B,GAAYA,EAEnDnB,IACf,CAKI,cAAIqB,GACA,OAAOrB,KAAKM,WACpB,CAMI,aAAAgB,CAAcD,GAGV,OAFArB,KAAK2C,oBACL3C,KAAKM,YAAce,EACZrB,IACf,CAOI,uBAAAmD,GACI,MAAO,QACf,CAOI,oBAAAC,GACI,MAAO,CACH7C,UAC4B,MAAxBP,KAAKE,gBACCF,KAAKE,gBAAgBmD,cACrB,KACVhB,WACoB,MAAhBrC,KAAKI,QAAkBJ,KAAKI,QAAQiD,cAAgB,KACxDlC,SAAUnB,KAAKK,UACfgB,WACwB,MAApBrB,KAAKM,YAAsBN,KAAKM,YAAYgD,UAAY,KAExE,CAKI,SAAAC,GAII,MAAO,qBAFHvD,KAAKwD,gBAAgBC,QACxB,WACqCC,YAC9C,CASI,QAAAC,CAASC,EAASC,GACd,OAAOD,EAAQ/B,OAAOA,OAAOgC,EACrC,EAIAC,EAAqBC,IAAI,SAAUpE,EAAkB4B"}
|
|
@@ -14,14 +14,14 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @namespace proto
|
|
17
|
-
* @typedef {import("@
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
20
|
-
* @typedef {import("@
|
|
21
|
-
* @typedef {import("@
|
|
22
|
-
* @typedef {import("@
|
|
23
|
-
* @typedef {import("@
|
|
24
|
-
* @typedef {import("@
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
20
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
21
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
22
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISystemDeleteTransactionBody} HieroProto.proto.ISystemDeleteTransactionBody
|
|
23
|
+
* @typedef {import("@hiero-ledger/proto").proto.IContractID} HieroProto.proto.IContractID
|
|
24
|
+
* @typedef {import("@hiero-ledger/proto").proto.IFileID} HieroProto.proto.IFileID
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
8
|
-
* @typedef {import("@
|
|
9
|
-
* @typedef {import("@
|
|
10
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
8
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISystemDeleteTransactionBody} HieroProto.proto.ISystemDeleteTransactionBody
|
|
9
|
+
* @typedef {import("@hiero-ledger/proto").proto.IContractID} HieroProto.proto.IContractID
|
|
10
|
+
* @typedef {import("@hiero-ledger/proto").proto.IFileID} HieroProto.proto.IFileID
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
@@ -91,14 +91,14 @@ export default class SystemDeleteTransaction extends Transaction {
|
|
|
91
91
|
}
|
|
92
92
|
export namespace HieroProto {
|
|
93
93
|
namespace proto {
|
|
94
|
-
type ITransaction = import("@
|
|
95
|
-
type ISignedTransaction = import("@
|
|
96
|
-
type TransactionBody = import("@
|
|
97
|
-
type ITransactionBody = import("@
|
|
98
|
-
type ITransactionResponse = import("@
|
|
99
|
-
type ISystemDeleteTransactionBody = import("@
|
|
100
|
-
type IContractID = import("@
|
|
101
|
-
type IFileID = import("@
|
|
94
|
+
type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
|
|
95
|
+
type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
|
|
96
|
+
type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
|
|
97
|
+
type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
|
|
98
|
+
type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
|
|
99
|
+
type ISystemDeleteTransactionBody = import("@hiero-ledger/proto").proto.ISystemDeleteTransactionBody;
|
|
100
|
+
type IContractID = import("@hiero-ledger/proto").proto.IContractID;
|
|
101
|
+
type IFileID = import("@hiero-ledger/proto").proto.IFileID;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
export type Channel = import("../channel/Channel.js").default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemDeleteTransaction.js","sources":["../../src/system/SystemDeleteTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport FileId from \"../file/FileId.js\";\nimport ContractId from \"../contract/ContractId.js\";\nimport Timestamp from \"../Timestamp.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@
|
|
1
|
+
{"version":3,"file":"SystemDeleteTransaction.js","sources":["../../src/system/SystemDeleteTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport FileId from \"../file/FileId.js\";\nimport ContractId from \"../contract/ContractId.js\";\nimport Timestamp from \"../Timestamp.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.ISystemDeleteTransactionBody} HieroProto.proto.ISystemDeleteTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.IContractID} HieroProto.proto.IContractID\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFileID} HieroProto.proto.IFileID\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Deprecated: Do not use.\n * @deprecated\n */\nexport default class SystemDeleteTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {FileId | string} [props.fileId]\n * @param {ContractId | string} [props.contractId]\n * @param {Timestamp} [props.expirationTime]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?FileId}\n */\n this._fileId = null;\n\n /**\n * @private\n * @type {?ContractId}\n */\n this._contractId = null;\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._expirationTime = null;\n\n if (props.fileId != null) {\n this.setFileId(props.fileId);\n }\n\n if (props.contractId != null) {\n this.setContractId(props.contractId);\n }\n\n if (props.expirationTime != null) {\n this.setExpirationTime(props.expirationTime);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {SystemDeleteTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const systemDelete =\n /** @type {HieroProto.proto.ISystemDeleteTransactionBody} */ (\n body.systemDelete\n );\n\n return Transaction._fromProtobufTransactions(\n // eslint-disable-next-line deprecation/deprecation\n new SystemDeleteTransaction({\n fileId:\n systemDelete.fileID != null\n ? FileId._fromProtobuf(\n /** @type {HieroProto.proto.IFileID} */ (\n systemDelete.fileID\n ),\n )\n : undefined,\n contractId:\n systemDelete.contractID != null\n ? ContractId._fromProtobuf(\n /** @type {HieroProto.proto.IContractID} */ (\n systemDelete.contractID\n ),\n )\n : undefined,\n expirationTime:\n systemDelete.expirationTime != null\n ? Timestamp._fromProtobuf(systemDelete.expirationTime)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?FileId}\n */\n get fileId() {\n return this._fileId;\n }\n\n /**\n * @param {FileId | string} fileId\n * @returns {this}\n */\n setFileId(fileId) {\n this._requireNotFrozen();\n this._fileId =\n fileId instanceof FileId ? fileId : FileId.fromString(fileId);\n\n return this;\n }\n\n /**\n * @returns {?ContractId}\n */\n get contractId() {\n return this._contractId;\n }\n\n /**\n * @param {ContractId | string} contractId\n * @returns {this}\n */\n setContractId(contractId) {\n this._requireNotFrozen();\n this._contractId =\n contractId instanceof ContractId\n ? contractId\n : ContractId.fromString(contractId);\n\n return this;\n }\n\n /**\n * @returns {?Timestamp}\n */\n get expirationTime() {\n return this._expirationTime;\n }\n\n /**\n * @param {Timestamp} expirationTime\n * @returns {SystemDeleteTransaction}\n */\n setExpirationTime(expirationTime) {\n this._requireNotFrozen();\n this._expirationTime = expirationTime;\n return this;\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n if (this._fileId != null) {\n return channel.file.systemDelete(request);\n } else {\n return channel.smartContract.systemDelete(request);\n }\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"systemDelete\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ISystemDeleteTransactionBody}\n */\n _makeTransactionData() {\n return {\n fileID: this._fileId != null ? this._fileId._toProtobuf() : null,\n contractID:\n this._contractId != null\n ? this._contractId._toProtobuf()\n : null,\n expirationTime:\n this._expirationTime != null\n ? this._expirationTime._toProtobuf()\n : null,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `SystemDeleteTransaction:${timestamp.toString()}`;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation\nTRANSACTION_REGISTRY.set(\"systemDelete\", SystemDeleteTransaction._fromProtobuf);\n"],"names":["SystemDeleteTransaction","Transaction","constructor","props","super","this","_fileId","_contractId","_expirationTime","fileId","setFileId","contractId","setContractId","expirationTime","setExpirationTime","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","systemDelete","_fromProtobufTransactions","fileID","FileId","undefined","contractID","ContractId","Timestamp","_requireNotFrozen","fromString","_execute","channel","request","file","smartContract","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"iLA+Be,MAAMA,UAAgCC,EAOjD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,QAAU,KAMfD,KAAKE,YAAc,KAMnBF,KAAKG,gBAAkB,KAEH,MAAhBL,EAAMM,QACNJ,KAAKK,UAAUP,EAAMM,QAGD,MAApBN,EAAMQ,YACNN,KAAKO,cAAcT,EAAMQ,YAGD,MAAxBR,EAAMU,gBACNR,KAAKS,kBAAkBX,EAAMU,eAEzC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,aAEL,OAAOnB,EAAYqB,0BAEf,IAAItB,EAAwB,CACxBS,OAC2B,MAAvBY,EAAaE,OACPC,EAAOT,cAECM,EAClC,aAE0BI,EACVd,WAC+B,MAA3BU,EAAaK,WACPC,EAAWZ,cAEHM,EAClC,iBAE0BI,EACVZ,eACmC,MAA/BQ,EAAaR,eACPe,EAAUb,cAAcM,EAAaR,qBACrCY,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,UAAIX,GACA,OAAOJ,KAAKC,OACpB,CAMI,SAAAI,CAAUD,GAKN,OAJAJ,KAAKwB,oBACLxB,KAAKC,QACDG,aAAkBe,EAASf,EAASe,EAAOM,WAAWrB,GAEnDJ,IACf,CAKI,cAAIM,GACA,OAAON,KAAKE,WACpB,CAMI,aAAAK,CAAcD,GAOV,OANAN,KAAKwB,oBACLxB,KAAKE,YACDI,aAAsBgB,EAChBhB,EACAgB,EAAWG,WAAWnB,GAEzBN,IACf,CAKI,kBAAIQ,GACA,OAAOR,KAAKG,eACpB,CAMI,iBAAAM,CAAkBD,GAGd,OAFAR,KAAKwB,oBACLxB,KAAKG,gBAAkBK,EAChBR,IACf,CASI,QAAA0B,CAASC,EAASC,GACd,OAAoB,MAAhB5B,KAAKC,QACE0B,EAAQE,KAAKb,aAAaY,GAE1BD,EAAQG,cAAcd,aAAaY,EAEtD,CAOI,uBAAAG,GACI,MAAO,cACf,CAOI,oBAAAC,GACI,MAAO,CACHd,OAAwB,MAAhBlB,KAAKC,QAAkBD,KAAKC,QAAQgC,cAAgB,KAC5DZ,WACwB,MAApBrB,KAAKE,YACCF,KAAKE,YAAY+B,cACjB,KACVzB,eAC4B,MAAxBR,KAAKG,gBACCH,KAAKG,gBAAgB8B,cACrB,KAEtB,CAKI,SAAAC,GAII,MAAO,2BAFHlC,KAAKmC,gBAAgBC,QACxB,WAC2CC,YACpD,EAIAC,EAAqBC,IAAI,eAAgB5C,EAAwBe"}
|
|
@@ -13,14 +13,14 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @namespace proto
|
|
16
|
-
* @typedef {import("@
|
|
17
|
-
* @typedef {import("@
|
|
18
|
-
* @typedef {import("@
|
|
19
|
-
* @typedef {import("@
|
|
20
|
-
* @typedef {import("@
|
|
21
|
-
* @typedef {import("@
|
|
22
|
-
* @typedef {import("@
|
|
23
|
-
* @typedef {import("@
|
|
16
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
17
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
18
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
19
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
20
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
21
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISystemUndeleteTransactionBody} HieroProto.proto.ISystemUndeleteTransactionBody
|
|
22
|
+
* @typedef {import("@hiero-ledger/proto").proto.IContractID} HieroProto.proto.IContractID
|
|
23
|
+
* @typedef {import("@hiero-ledger/proto").proto.IFileID} HieroProto.proto.IFileID
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @namespace proto
|
|
3
|
-
* @typedef {import("@
|
|
4
|
-
* @typedef {import("@
|
|
5
|
-
* @typedef {import("@
|
|
6
|
-
* @typedef {import("@
|
|
7
|
-
* @typedef {import("@
|
|
8
|
-
* @typedef {import("@
|
|
9
|
-
* @typedef {import("@
|
|
10
|
-
* @typedef {import("@
|
|
3
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
|
|
4
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
|
|
5
|
+
* @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
|
|
6
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
|
|
7
|
+
* @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
|
|
8
|
+
* @typedef {import("@hiero-ledger/proto").proto.ISystemUndeleteTransactionBody} HieroProto.proto.ISystemUndeleteTransactionBody
|
|
9
|
+
* @typedef {import("@hiero-ledger/proto").proto.IContractID} HieroProto.proto.IContractID
|
|
10
|
+
* @typedef {import("@hiero-ledger/proto").proto.IFileID} HieroProto.proto.IFileID
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* @typedef {import("../channel/Channel.js").default} Channel
|
|
@@ -78,14 +78,14 @@ export default class SystemUndeleteTransaction extends Transaction {
|
|
|
78
78
|
}
|
|
79
79
|
export namespace HieroProto {
|
|
80
80
|
namespace proto {
|
|
81
|
-
type ITransaction = import("@
|
|
82
|
-
type ISignedTransaction = import("@
|
|
83
|
-
type TransactionBody = import("@
|
|
84
|
-
type ITransactionBody = import("@
|
|
85
|
-
type ITransactionResponse = import("@
|
|
86
|
-
type ISystemUndeleteTransactionBody = import("@
|
|
87
|
-
type IContractID = import("@
|
|
88
|
-
type IFileID = import("@
|
|
81
|
+
type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
|
|
82
|
+
type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
|
|
83
|
+
type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
|
|
84
|
+
type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
|
|
85
|
+
type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
|
|
86
|
+
type ISystemUndeleteTransactionBody = import("@hiero-ledger/proto").proto.ISystemUndeleteTransactionBody;
|
|
87
|
+
type IContractID = import("@hiero-ledger/proto").proto.IContractID;
|
|
88
|
+
type IFileID = import("@hiero-ledger/proto").proto.IFileID;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
export type Channel = import("../channel/Channel.js").default;
|