@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.
Files changed (791) hide show
  1. package/README.md +6 -6
  2. package/dist/umd.js +1017 -673
  3. package/dist/umd.min.js +14 -14
  4. package/lib/Cache.cjs +6 -6
  5. package/lib/Cache.d.ts +12 -12
  6. package/lib/Cache.js.map +1 -1
  7. package/lib/Duration.cjs +1 -1
  8. package/lib/Duration.d.ts +2 -2
  9. package/lib/Duration.js.map +1 -1
  10. package/lib/EntityIdHelper.cjs +1 -1
  11. package/lib/EntityIdHelper.js +1 -1
  12. package/lib/EntityIdHelper.js.map +1 -1
  13. package/lib/EthereumFlow.cjs +7 -7
  14. package/lib/EthereumFlow.d.ts +14 -14
  15. package/lib/EthereumFlow.js.map +1 -1
  16. package/lib/EthereumTransaction.cjs +7 -7
  17. package/lib/EthereumTransaction.d.ts +14 -14
  18. package/lib/EthereumTransaction.js.map +1 -1
  19. package/lib/EvmAddress.cjs +1 -1
  20. package/lib/EvmAddress.d.ts +2 -2
  21. package/lib/EvmAddress.js.map +1 -1
  22. package/lib/ExchangeRate.cjs +2 -2
  23. package/lib/ExchangeRate.d.ts +4 -4
  24. package/lib/ExchangeRate.js.map +1 -1
  25. package/lib/ExchangeRates.cjs +1 -1
  26. package/lib/ExchangeRates.d.ts +1 -1
  27. package/lib/ExchangeRates.js +1 -1
  28. package/lib/ExchangeRates.js.map +1 -1
  29. package/lib/Executable.cjs +13 -3
  30. package/lib/Executable.js +1 -1
  31. package/lib/Executable.js.map +1 -1
  32. package/lib/FeeComponents.cjs +1 -1
  33. package/lib/FeeComponents.d.ts +1 -1
  34. package/lib/FeeComponents.js +1 -1
  35. package/lib/FeeComponents.js.map +1 -1
  36. package/lib/FeeData.cjs +1 -1
  37. package/lib/FeeData.d.ts +1 -1
  38. package/lib/FeeData.js +1 -1
  39. package/lib/FeeData.js.map +1 -1
  40. package/lib/FeeDataType.cjs +1 -1
  41. package/lib/FeeDataType.d.ts +2 -2
  42. package/lib/FeeDataType.js.map +1 -1
  43. package/lib/FeeSchedule.cjs +1 -1
  44. package/lib/FeeSchedule.d.ts +1 -1
  45. package/lib/FeeSchedule.js +1 -1
  46. package/lib/FeeSchedule.js.map +1 -1
  47. package/lib/FeeSchedules.cjs +1 -1
  48. package/lib/FeeSchedules.d.ts +1 -1
  49. package/lib/FeeSchedules.js +1 -1
  50. package/lib/FeeSchedules.js.map +1 -1
  51. package/lib/FreezeType.cjs +1 -1
  52. package/lib/FreezeType.d.ts +2 -2
  53. package/lib/FreezeType.js.map +1 -1
  54. package/lib/Key.cjs +1 -1
  55. package/lib/Key.d.ts +2 -2
  56. package/lib/Key.js.map +1 -1
  57. package/lib/KeyList.cjs +3 -3
  58. package/lib/KeyList.d.ts +6 -6
  59. package/lib/KeyList.js.map +1 -1
  60. package/lib/Mnemonic.cjs +1 -1
  61. package/lib/Mnemonic.d.ts +1 -1
  62. package/lib/Mnemonic.js +1 -1
  63. package/lib/Mnemonic.js.map +1 -1
  64. package/lib/PrivateKey.cjs +7 -7
  65. package/lib/PrivateKey.d.ts +11 -11
  66. package/lib/PrivateKey.js +1 -1
  67. package/lib/PrivateKey.js.map +1 -1
  68. package/lib/PrngTransaction.cjs +9 -9
  69. package/lib/PrngTransaction.d.ts +18 -18
  70. package/lib/PrngTransaction.js.map +1 -1
  71. package/lib/PublicKey.cjs +5 -5
  72. package/lib/PublicKey.d.ts +9 -9
  73. package/lib/PublicKey.js +1 -1
  74. package/lib/PublicKey.js.map +1 -1
  75. package/lib/RequestType.cjs +1 -1
  76. package/lib/RequestType.d.ts +2 -2
  77. package/lib/RequestType.js.map +1 -1
  78. package/lib/StakingInfo.cjs +1 -1
  79. package/lib/StakingInfo.d.ts +1 -1
  80. package/lib/StakingInfo.js +1 -1
  81. package/lib/StakingInfo.js.map +1 -1
  82. package/lib/Status.cjs +1 -1
  83. package/lib/Status.d.ts +2 -2
  84. package/lib/Status.js.map +1 -1
  85. package/lib/Timestamp.cjs +1 -1
  86. package/lib/Timestamp.d.ts +1 -1
  87. package/lib/Timestamp.js.map +1 -1
  88. package/lib/TransactionFeeSchedule.cjs +1 -1
  89. package/lib/TransactionFeeSchedule.d.ts +1 -1
  90. package/lib/TransactionFeeSchedule.js +1 -1
  91. package/lib/TransactionFeeSchedule.js.map +1 -1
  92. package/lib/Transfer.cjs +2 -2
  93. package/lib/Transfer.d.ts +4 -4
  94. package/lib/Transfer.js.map +1 -1
  95. package/lib/account/AccountAllowanceAdjustTransaction.cjs +7 -7
  96. package/lib/account/AccountAllowanceAdjustTransaction.d.ts +14 -14
  97. package/lib/account/AccountAllowanceAdjustTransaction.js.map +1 -1
  98. package/lib/account/AccountAllowanceApproveTransaction.cjs +8 -8
  99. package/lib/account/AccountAllowanceApproveTransaction.d.ts +16 -16
  100. package/lib/account/AccountAllowanceApproveTransaction.js.map +1 -1
  101. package/lib/account/AccountAllowanceDeleteTransaction.cjs +7 -7
  102. package/lib/account/AccountAllowanceDeleteTransaction.d.ts +14 -14
  103. package/lib/account/AccountAllowanceDeleteTransaction.js.map +1 -1
  104. package/lib/account/AccountBalance.cjs +1 -1
  105. package/lib/account/AccountBalance.d.ts +1 -1
  106. package/lib/account/AccountBalance.js +1 -1
  107. package/lib/account/AccountBalance.js.map +1 -1
  108. package/lib/account/AccountBalanceQuery.cjs +6 -6
  109. package/lib/account/AccountBalanceQuery.d.ts +12 -12
  110. package/lib/account/AccountBalanceQuery.js.map +1 -1
  111. package/lib/account/AccountCreateTransaction.cjs +1 -1
  112. package/lib/account/AccountCreateTransaction.d.ts +1 -1
  113. package/lib/account/AccountCreateTransaction.js +1 -1
  114. package/lib/account/AccountCreateTransaction.js.map +1 -1
  115. package/lib/account/AccountDeleteTransaction.cjs +7 -7
  116. package/lib/account/AccountDeleteTransaction.d.ts +14 -14
  117. package/lib/account/AccountDeleteTransaction.js.map +1 -1
  118. package/lib/account/AccountId.cjs +1 -1
  119. package/lib/account/AccountId.d.ts +1 -1
  120. package/lib/account/AccountId.js +1 -1
  121. package/lib/account/AccountId.js.map +1 -1
  122. package/lib/account/AccountInfo.cjs +1 -1
  123. package/lib/account/AccountInfo.d.ts +1 -1
  124. package/lib/account/AccountInfo.js +1 -1
  125. package/lib/account/AccountInfo.js.map +1 -1
  126. package/lib/account/AccountInfoQuery.cjs +7 -7
  127. package/lib/account/AccountInfoQuery.d.ts +14 -14
  128. package/lib/account/AccountInfoQuery.js.map +1 -1
  129. package/lib/account/AccountRecordsQuery.cjs +7 -7
  130. package/lib/account/AccountRecordsQuery.d.ts +14 -14
  131. package/lib/account/AccountRecordsQuery.js.map +1 -1
  132. package/lib/account/AccountUpdateTransaction.cjs +7 -7
  133. package/lib/account/AccountUpdateTransaction.d.ts +14 -14
  134. package/lib/account/AccountUpdateTransaction.js.map +1 -1
  135. package/lib/account/HbarAllowance.cjs +3 -3
  136. package/lib/account/HbarAllowance.d.ts +6 -6
  137. package/lib/account/HbarAllowance.js.map +1 -1
  138. package/lib/account/HbarTransferMap.cjs +2 -2
  139. package/lib/account/HbarTransferMap.d.ts +4 -4
  140. package/lib/account/HbarTransferMap.js.map +1 -1
  141. package/lib/account/LiveHash.cjs +3 -3
  142. package/lib/account/LiveHash.d.ts +6 -6
  143. package/lib/account/LiveHash.js.map +1 -1
  144. package/lib/account/LiveHashAddTransaction.cjs +7 -7
  145. package/lib/account/LiveHashAddTransaction.d.ts +14 -14
  146. package/lib/account/LiveHashAddTransaction.js.map +1 -1
  147. package/lib/account/LiveHashDeleteTransaction.cjs +6 -6
  148. package/lib/account/LiveHashDeleteTransaction.d.ts +12 -12
  149. package/lib/account/LiveHashDeleteTransaction.js.map +1 -1
  150. package/lib/account/LiveHashQuery.cjs +7 -7
  151. package/lib/account/LiveHashQuery.d.ts +14 -14
  152. package/lib/account/LiveHashQuery.js.map +1 -1
  153. package/lib/account/NullableTokenDecimalMap.cjs +2 -2
  154. package/lib/account/NullableTokenDecimalMap.d.ts +4 -4
  155. package/lib/account/NullableTokenDecimalMap.js.map +1 -1
  156. package/lib/account/ProxyStaker.cjs +2 -2
  157. package/lib/account/ProxyStaker.d.ts +4 -4
  158. package/lib/account/ProxyStaker.js.map +1 -1
  159. package/lib/account/TokenAllowance.cjs +4 -4
  160. package/lib/account/TokenAllowance.d.ts +8 -8
  161. package/lib/account/TokenAllowance.js.map +1 -1
  162. package/lib/account/TokenBalanceMap.cjs +2 -2
  163. package/lib/account/TokenBalanceMap.d.ts +4 -4
  164. package/lib/account/TokenBalanceMap.js.map +1 -1
  165. package/lib/account/TokenDecimalMap.cjs +2 -2
  166. package/lib/account/TokenDecimalMap.d.ts +4 -4
  167. package/lib/account/TokenDecimalMap.js.map +1 -1
  168. package/lib/account/TokenNftAllowance.cjs +5 -5
  169. package/lib/account/TokenNftAllowance.d.ts +10 -10
  170. package/lib/account/TokenNftAllowance.js.map +1 -1
  171. package/lib/account/TokenNftTransferMap.cjs +5 -5
  172. package/lib/account/TokenNftTransferMap.d.ts +10 -10
  173. package/lib/account/TokenNftTransferMap.js.map +1 -1
  174. package/lib/account/TokenRelationship.cjs +4 -4
  175. package/lib/account/TokenRelationship.d.ts +8 -8
  176. package/lib/account/TokenRelationship.js.map +1 -1
  177. package/lib/account/TokenRelationshipMap.cjs +2 -2
  178. package/lib/account/TokenRelationshipMap.d.ts +4 -4
  179. package/lib/account/TokenRelationshipMap.js.map +1 -1
  180. package/lib/account/TokenTransferMap.cjs +4 -4
  181. package/lib/account/TokenTransferMap.d.ts +8 -8
  182. package/lib/account/TokenTransferMap.js.map +1 -1
  183. package/lib/account/TransferTransaction.cjs +6 -6
  184. package/lib/account/TransferTransaction.d.ts +12 -12
  185. package/lib/account/TransferTransaction.js.map +1 -1
  186. package/lib/address_book/AddressBooks.cjs +1 -1
  187. package/lib/address_book/AddressBooks.js +1 -1
  188. package/lib/address_book/AddressBooks.js.map +1 -1
  189. package/lib/address_book/Endpoint.cjs +1 -1
  190. package/lib/address_book/Endpoint.d.ts +2 -2
  191. package/lib/address_book/Endpoint.js.map +1 -1
  192. package/lib/address_book/NodeAddress.cjs +1 -1
  193. package/lib/address_book/NodeAddress.d.ts +2 -2
  194. package/lib/address_book/NodeAddress.js.map +1 -1
  195. package/lib/address_book/NodeAddressBook.cjs +1 -1
  196. package/lib/address_book/NodeAddressBook.d.ts +1 -1
  197. package/lib/address_book/NodeAddressBook.js +1 -1
  198. package/lib/address_book/NodeAddressBook.js.map +1 -1
  199. package/lib/browser.js +1 -1
  200. package/lib/channel/Channel.cjs +26 -2
  201. package/lib/channel/Channel.d.ts +21 -1
  202. package/lib/channel/Channel.js +1 -1
  203. package/lib/channel/Channel.js.map +1 -1
  204. package/lib/channel/NativeChannel.cjs +96 -2
  205. package/lib/channel/NativeChannel.d.ts +21 -1
  206. package/lib/channel/NativeChannel.js +1 -1
  207. package/lib/channel/NativeChannel.js.map +1 -1
  208. package/lib/channel/NodeChannel.cjs +4 -5
  209. package/lib/channel/NodeChannel.d.ts +2 -3
  210. package/lib/channel/NodeChannel.js +1 -1
  211. package/lib/channel/NodeChannel.js.map +1 -1
  212. package/lib/channel/WebChannel.cjs +163 -13
  213. package/lib/channel/WebChannel.d.ts +51 -1
  214. package/lib/channel/WebChannel.js +1 -1
  215. package/lib/channel/WebChannel.js.map +1 -1
  216. package/lib/client/Client.cjs +62 -5
  217. package/lib/client/Client.d.ts +26 -3
  218. package/lib/client/Client.js +1 -1
  219. package/lib/client/Client.js.map +1 -1
  220. package/lib/client/NativeClient.cjs +1 -1
  221. package/lib/client/NativeClient.js +1 -1
  222. package/lib/client/NativeClient.js.map +1 -1
  223. package/lib/client/NodeClient.cjs +7 -6
  224. package/lib/client/NodeClient.d.ts +3 -3
  225. package/lib/client/NodeClient.js +1 -1
  226. package/lib/client/NodeClient.js.map +1 -1
  227. package/lib/client/WebClient.cjs +55 -27
  228. package/lib/client/WebClient.d.ts +6 -0
  229. package/lib/client/WebClient.js +1 -1
  230. package/lib/client/WebClient.js.map +1 -1
  231. package/lib/client/addressbooks/mainnet.cjs +1 -1
  232. package/lib/client/addressbooks/mainnet.d.ts +1 -1
  233. package/lib/client/addressbooks/mainnet.js +1 -1
  234. package/lib/client/addressbooks/mainnet.js.map +1 -1
  235. package/lib/client/addressbooks/previewnet.cjs +1 -1
  236. package/lib/client/addressbooks/previewnet.d.ts +1 -1
  237. package/lib/client/addressbooks/previewnet.js +1 -1
  238. package/lib/client/addressbooks/previewnet.js.map +1 -1
  239. package/lib/client/addressbooks/testnet.cjs +1 -1
  240. package/lib/client/addressbooks/testnet.d.ts +1 -1
  241. package/lib/client/addressbooks/testnet.js +1 -1
  242. package/lib/client/addressbooks/testnet.js.map +1 -1
  243. package/lib/constants/ClientConstants.cjs +17 -1
  244. package/lib/constants/ClientConstants.d.ts +14 -0
  245. package/lib/constants/ClientConstants.js +1 -1
  246. package/lib/constants/ClientConstants.js.map +1 -1
  247. package/lib/contract/ContractByteCodeQuery.cjs +6 -6
  248. package/lib/contract/ContractByteCodeQuery.d.ts +12 -12
  249. package/lib/contract/ContractByteCodeQuery.js.map +1 -1
  250. package/lib/contract/ContractCallQuery.cjs +1 -1
  251. package/lib/contract/ContractCallQuery.d.ts +1 -1
  252. package/lib/contract/ContractCallQuery.js +1 -1
  253. package/lib/contract/ContractCallQuery.js.map +1 -1
  254. package/lib/contract/ContractCreateTransaction.cjs +8 -8
  255. package/lib/contract/ContractCreateTransaction.d.ts +16 -16
  256. package/lib/contract/ContractCreateTransaction.js.map +1 -1
  257. package/lib/contract/ContractDeleteTransaction.cjs +8 -8
  258. package/lib/contract/ContractDeleteTransaction.d.ts +16 -16
  259. package/lib/contract/ContractDeleteTransaction.js.map +1 -1
  260. package/lib/contract/ContractExecuteTransaction.cjs +9 -9
  261. package/lib/contract/ContractExecuteTransaction.d.ts +18 -18
  262. package/lib/contract/ContractExecuteTransaction.js.map +1 -1
  263. package/lib/contract/ContractFunctionResult.cjs +2 -2
  264. package/lib/contract/ContractFunctionResult.d.ts +4 -4
  265. package/lib/contract/ContractFunctionResult.js.map +1 -1
  266. package/lib/contract/ContractId.cjs +1 -1
  267. package/lib/contract/ContractId.d.ts +1 -1
  268. package/lib/contract/ContractId.js +1 -1
  269. package/lib/contract/ContractId.js.map +1 -1
  270. package/lib/contract/ContractInfo.cjs +1 -1
  271. package/lib/contract/ContractInfo.d.ts +1 -1
  272. package/lib/contract/ContractInfo.js +1 -1
  273. package/lib/contract/ContractInfo.js.map +1 -1
  274. package/lib/contract/ContractInfoQuery.cjs +7 -7
  275. package/lib/contract/ContractInfoQuery.d.ts +14 -14
  276. package/lib/contract/ContractInfoQuery.js.map +1 -1
  277. package/lib/contract/ContractLogInfo.cjs +2 -2
  278. package/lib/contract/ContractLogInfo.d.ts +4 -4
  279. package/lib/contract/ContractLogInfo.js.map +1 -1
  280. package/lib/contract/ContractNonceInfo.cjs +3 -3
  281. package/lib/contract/ContractNonceInfo.d.ts +4 -4
  282. package/lib/contract/ContractNonceInfo.js +1 -1
  283. package/lib/contract/ContractNonceInfo.js.map +1 -1
  284. package/lib/contract/ContractStateChange.cjs +1 -1
  285. package/lib/contract/ContractStateChange.d.ts +1 -1
  286. package/lib/contract/ContractUpdateTransaction.cjs +10 -10
  287. package/lib/contract/ContractUpdateTransaction.d.ts +18 -18
  288. package/lib/contract/ContractUpdateTransaction.js +1 -1
  289. package/lib/contract/ContractUpdateTransaction.js.map +1 -1
  290. package/lib/contract/DelegateContractId.cjs +2 -2
  291. package/lib/contract/DelegateContractId.d.ts +4 -4
  292. package/lib/contract/DelegateContractId.js.map +1 -1
  293. package/lib/contract/StorageChange.cjs +1 -1
  294. package/lib/contract/StorageChange.d.ts +1 -1
  295. package/lib/exports.cjs +1 -1
  296. package/lib/exports.d.ts +1 -1
  297. package/lib/exports.js +1 -1
  298. package/lib/exports.js.map +1 -1
  299. package/lib/file/FileAppendTransaction.cjs +7 -7
  300. package/lib/file/FileAppendTransaction.d.ts +14 -14
  301. package/lib/file/FileAppendTransaction.js.map +1 -1
  302. package/lib/file/FileContentsQuery.cjs +7 -7
  303. package/lib/file/FileContentsQuery.d.ts +14 -14
  304. package/lib/file/FileContentsQuery.js.map +1 -1
  305. package/lib/file/FileCreateTransaction.cjs +6 -6
  306. package/lib/file/FileCreateTransaction.d.ts +12 -12
  307. package/lib/file/FileCreateTransaction.js.map +1 -1
  308. package/lib/file/FileDeleteTransaction.cjs +7 -7
  309. package/lib/file/FileDeleteTransaction.d.ts +14 -14
  310. package/lib/file/FileDeleteTransaction.js.map +1 -1
  311. package/lib/file/FileId.cjs +1 -1
  312. package/lib/file/FileId.d.ts +1 -1
  313. package/lib/file/FileId.js +1 -1
  314. package/lib/file/FileId.js.map +1 -1
  315. package/lib/file/FileInfo.cjs +1 -1
  316. package/lib/file/FileInfo.d.ts +1 -1
  317. package/lib/file/FileInfo.js +1 -1
  318. package/lib/file/FileInfo.js.map +1 -1
  319. package/lib/file/FileInfoQuery.cjs +7 -7
  320. package/lib/file/FileInfoQuery.d.ts +14 -14
  321. package/lib/file/FileInfoQuery.js.map +1 -1
  322. package/lib/file/FileUpdateTransaction.cjs +6 -6
  323. package/lib/file/FileUpdateTransaction.d.ts +12 -12
  324. package/lib/file/FileUpdateTransaction.js.map +1 -1
  325. package/lib/index.js +1 -1
  326. package/lib/native.js +1 -1
  327. package/lib/network/AddressBookQuery.cjs +1 -5
  328. package/lib/network/AddressBookQuery.js +1 -1
  329. package/lib/network/AddressBookQuery.js.map +1 -1
  330. package/lib/network/AddressBookQueryWeb.cjs +1 -5
  331. package/lib/network/AddressBookQueryWeb.js +1 -1
  332. package/lib/network/AddressBookQueryWeb.js.map +1 -1
  333. package/lib/network/NetworkVersionInfo.cjs +1 -1
  334. package/lib/network/NetworkVersionInfo.d.ts +1 -1
  335. package/lib/network/NetworkVersionInfo.js +1 -1
  336. package/lib/network/NetworkVersionInfo.js.map +1 -1
  337. package/lib/network/NetworkVersionInfoQuery.cjs +6 -6
  338. package/lib/network/NetworkVersionInfoQuery.d.ts +12 -12
  339. package/lib/network/NetworkVersionInfoQuery.js.map +1 -1
  340. package/lib/network/SemanticVersion.cjs +1 -1
  341. package/lib/network/SemanticVersion.d.ts +1 -1
  342. package/lib/network/SemanticVersion.js +1 -1
  343. package/lib/network/SemanticVersion.js.map +1 -1
  344. package/lib/node/NodeCreateTransaction.cjs +6 -6
  345. package/lib/node/NodeCreateTransaction.d.ts +12 -12
  346. package/lib/node/NodeCreateTransaction.js.map +1 -1
  347. package/lib/node/NodeDeleteTransaction.cjs +6 -6
  348. package/lib/node/NodeDeleteTransaction.d.ts +12 -12
  349. package/lib/node/NodeDeleteTransaction.js.map +1 -1
  350. package/lib/node/NodeUpdateTransaction.cjs +6 -6
  351. package/lib/node/NodeUpdateTransaction.d.ts +12 -12
  352. package/lib/node/NodeUpdateTransaction.js.map +1 -1
  353. package/lib/node/ServiceEndpoint.cjs +1 -1
  354. package/lib/node/ServiceEndpoint.d.ts +2 -2
  355. package/lib/node/ServiceEndpoint.js.map +1 -1
  356. package/lib/query/CostQuery.cjs +1 -1
  357. package/lib/query/CostQuery.d.ts +1 -1
  358. package/lib/query/CostQuery.js +1 -1
  359. package/lib/query/CostQuery.js.map +1 -1
  360. package/lib/query/Query.cjs +1 -1
  361. package/lib/query/Query.d.ts +1 -1
  362. package/lib/query/Query.js +1 -1
  363. package/lib/query/Query.js.map +1 -1
  364. package/lib/query/QueryBase.cjs +1 -1
  365. package/lib/query/QueryBase.d.ts +1 -1
  366. package/lib/query/QueryBase.js +1 -1
  367. package/lib/query/QueryBase.js.map +1 -1
  368. package/lib/schedule/ScheduleCreateTransaction.cjs +1 -1
  369. package/lib/schedule/ScheduleCreateTransaction.d.ts +1 -1
  370. package/lib/schedule/ScheduleCreateTransaction.js +1 -1
  371. package/lib/schedule/ScheduleCreateTransaction.js.map +1 -1
  372. package/lib/schedule/ScheduleDeleteTransaction.cjs +8 -8
  373. package/lib/schedule/ScheduleDeleteTransaction.d.ts +16 -16
  374. package/lib/schedule/ScheduleDeleteTransaction.js.map +1 -1
  375. package/lib/schedule/ScheduleId.cjs +1 -1
  376. package/lib/schedule/ScheduleId.d.ts +1 -1
  377. package/lib/schedule/ScheduleId.js +1 -1
  378. package/lib/schedule/ScheduleId.js.map +1 -1
  379. package/lib/schedule/ScheduleInfo.cjs +1 -1
  380. package/lib/schedule/ScheduleInfo.d.ts +1 -1
  381. package/lib/schedule/ScheduleInfo.js +1 -1
  382. package/lib/schedule/ScheduleInfo.js.map +1 -1
  383. package/lib/schedule/ScheduleInfoQuery.cjs +7 -7
  384. package/lib/schedule/ScheduleInfoQuery.d.ts +14 -14
  385. package/lib/schedule/ScheduleInfoQuery.js.map +1 -1
  386. package/lib/schedule/ScheduleSignTransaction.cjs +10 -10
  387. package/lib/schedule/ScheduleSignTransaction.d.ts +20 -20
  388. package/lib/schedule/ScheduleSignTransaction.js.map +1 -1
  389. package/lib/system/FreezeTransaction.cjs +6 -6
  390. package/lib/system/FreezeTransaction.d.ts +12 -12
  391. package/lib/system/FreezeTransaction.js.map +1 -1
  392. package/lib/system/SystemDeleteTransaction.cjs +8 -8
  393. package/lib/system/SystemDeleteTransaction.d.ts +16 -16
  394. package/lib/system/SystemDeleteTransaction.js.map +1 -1
  395. package/lib/system/SystemUndeleteTransaction.cjs +8 -8
  396. package/lib/system/SystemUndeleteTransaction.d.ts +16 -16
  397. package/lib/system/SystemUndeleteTransaction.js.map +1 -1
  398. package/lib/token/AbstractTokenTransferTransaction.cjs +1 -1
  399. package/lib/token/AbstractTokenTransferTransaction.d.ts +2 -2
  400. package/lib/token/AbstractTokenTransferTransaction.js.map +1 -1
  401. package/lib/token/AssessedCustomFee.cjs +1 -1
  402. package/lib/token/AssessedCustomFee.d.ts +2 -2
  403. package/lib/token/AssessedCustomFee.js.map +1 -1
  404. package/lib/token/CustomFee.cjs +1 -1
  405. package/lib/token/CustomFee.d.ts +2 -2
  406. package/lib/token/CustomFee.js.map +1 -1
  407. package/lib/token/CustomFixedFee.cjs +3 -3
  408. package/lib/token/CustomFixedFee.d.ts +6 -6
  409. package/lib/token/CustomFixedFee.js.map +1 -1
  410. package/lib/token/CustomFractionalFee.cjs +3 -3
  411. package/lib/token/CustomFractionalFee.d.ts +6 -6
  412. package/lib/token/CustomFractionalFee.js.map +1 -1
  413. package/lib/token/CustomRoyaltyFee.cjs +4 -4
  414. package/lib/token/CustomRoyaltyFee.d.ts +8 -8
  415. package/lib/token/CustomRoyaltyFee.js.map +1 -1
  416. package/lib/token/NftId.cjs +1 -1
  417. package/lib/token/NftId.d.ts +1 -1
  418. package/lib/token/NftId.js +1 -1
  419. package/lib/token/NftId.js.map +1 -1
  420. package/lib/token/PendingAirdropId.cjs +1 -1
  421. package/lib/token/PendingAirdropId.d.ts +1 -1
  422. package/lib/token/PendingAirdropId.js.map +1 -1
  423. package/lib/token/PendingAirdropRecord.cjs +1 -1
  424. package/lib/token/PendingAirdropRecord.d.ts +1 -1
  425. package/lib/token/PendingAirdropRecord.js.map +1 -1
  426. package/lib/token/TokenAirdropTransaction.cjs +8 -8
  427. package/lib/token/TokenAirdropTransaction.d.ts +16 -16
  428. package/lib/token/TokenAirdropTransaction.js.map +1 -1
  429. package/lib/token/TokenAssociateTransaction.cjs +7 -7
  430. package/lib/token/TokenAssociateTransaction.d.ts +14 -14
  431. package/lib/token/TokenAssociateTransaction.js.map +1 -1
  432. package/lib/token/TokenAssociation.cjs +1 -1
  433. package/lib/token/TokenAssociation.d.ts +2 -2
  434. package/lib/token/TokenAssociation.js.map +1 -1
  435. package/lib/token/TokenBurnTransaction.cjs +7 -7
  436. package/lib/token/TokenBurnTransaction.d.ts +14 -14
  437. package/lib/token/TokenBurnTransaction.js.map +1 -1
  438. package/lib/token/TokenCancelAirdropTransaction.cjs +6 -6
  439. package/lib/token/TokenCancelAirdropTransaction.d.ts +12 -12
  440. package/lib/token/TokenCancelAirdropTransaction.js.map +1 -1
  441. package/lib/token/TokenClaimAirdropTransaction.cjs +6 -6
  442. package/lib/token/TokenClaimAirdropTransaction.d.ts +12 -12
  443. package/lib/token/TokenClaimAirdropTransaction.js.map +1 -1
  444. package/lib/token/TokenCreateTransaction.cjs +7 -7
  445. package/lib/token/TokenCreateTransaction.d.ts +14 -14
  446. package/lib/token/TokenCreateTransaction.js.map +1 -1
  447. package/lib/token/TokenDeleteTransaction.cjs +7 -7
  448. package/lib/token/TokenDeleteTransaction.d.ts +14 -14
  449. package/lib/token/TokenDeleteTransaction.js.map +1 -1
  450. package/lib/token/TokenDissociateTransaction.cjs +7 -7
  451. package/lib/token/TokenDissociateTransaction.d.ts +14 -14
  452. package/lib/token/TokenDissociateTransaction.js.map +1 -1
  453. package/lib/token/TokenFeeScheduleUpdateTransaction.cjs +7 -7
  454. package/lib/token/TokenFeeScheduleUpdateTransaction.d.ts +14 -14
  455. package/lib/token/TokenFeeScheduleUpdateTransaction.js.map +1 -1
  456. package/lib/token/TokenFreezeTransaction.cjs +7 -7
  457. package/lib/token/TokenFreezeTransaction.d.ts +14 -14
  458. package/lib/token/TokenFreezeTransaction.js.map +1 -1
  459. package/lib/token/TokenGrantKycTransaction.cjs +7 -7
  460. package/lib/token/TokenGrantKycTransaction.d.ts +14 -14
  461. package/lib/token/TokenGrantKycTransaction.js.map +1 -1
  462. package/lib/token/TokenId.cjs +1 -1
  463. package/lib/token/TokenId.d.ts +1 -1
  464. package/lib/token/TokenId.js +1 -1
  465. package/lib/token/TokenId.js.map +1 -1
  466. package/lib/token/TokenInfo.cjs +1 -1
  467. package/lib/token/TokenInfo.d.ts +1 -1
  468. package/lib/token/TokenInfo.js +1 -1
  469. package/lib/token/TokenInfo.js.map +1 -1
  470. package/lib/token/TokenInfoQuery.cjs +7 -7
  471. package/lib/token/TokenInfoQuery.d.ts +14 -14
  472. package/lib/token/TokenInfoQuery.js.map +1 -1
  473. package/lib/token/TokenKeyValidation.cjs +1 -1
  474. package/lib/token/TokenKeyValidation.d.ts +2 -2
  475. package/lib/token/TokenKeyValidation.js.map +1 -1
  476. package/lib/token/TokenMintTransaction.cjs +7 -7
  477. package/lib/token/TokenMintTransaction.d.ts +14 -14
  478. package/lib/token/TokenMintTransaction.js.map +1 -1
  479. package/lib/token/TokenNftInfo.cjs +10 -10
  480. package/lib/token/TokenNftInfo.d.ts +20 -20
  481. package/lib/token/TokenNftInfo.js.map +1 -1
  482. package/lib/token/TokenNftInfoQuery.cjs +11 -11
  483. package/lib/token/TokenNftInfoQuery.d.ts +22 -22
  484. package/lib/token/TokenNftInfoQuery.js.map +1 -1
  485. package/lib/token/TokenNftTransfer.cjs +5 -5
  486. package/lib/token/TokenNftTransfer.d.ts +10 -10
  487. package/lib/token/TokenNftTransfer.js.map +1 -1
  488. package/lib/token/TokenNftsUpdateTransaction.cjs +7 -7
  489. package/lib/token/TokenNftsUpdateTransaction.d.ts +14 -14
  490. package/lib/token/TokenPauseTransaction.cjs +7 -7
  491. package/lib/token/TokenPauseTransaction.d.ts +14 -14
  492. package/lib/token/TokenPauseTransaction.js.map +1 -1
  493. package/lib/token/TokenReference.cjs +1 -1
  494. package/lib/token/TokenReference.d.ts +2 -2
  495. package/lib/token/TokenReference.js.map +1 -1
  496. package/lib/token/TokenRejectTransaction.cjs +7 -7
  497. package/lib/token/TokenRejectTransaction.d.ts +14 -14
  498. package/lib/token/TokenRejectTransaction.js.map +1 -1
  499. package/lib/token/TokenRevokeKycTransaction.cjs +7 -7
  500. package/lib/token/TokenRevokeKycTransaction.d.ts +14 -14
  501. package/lib/token/TokenRevokeKycTransaction.js.map +1 -1
  502. package/lib/token/TokenSupplyType.cjs +1 -1
  503. package/lib/token/TokenSupplyType.d.ts +2 -2
  504. package/lib/token/TokenSupplyType.js.map +1 -1
  505. package/lib/token/TokenTransfer.cjs +4 -4
  506. package/lib/token/TokenTransfer.d.ts +8 -8
  507. package/lib/token/TokenTransfer.js.map +1 -1
  508. package/lib/token/TokenType.cjs +1 -1
  509. package/lib/token/TokenType.d.ts +2 -2
  510. package/lib/token/TokenType.js.map +1 -1
  511. package/lib/token/TokenUnfreezeTransaction.cjs +7 -7
  512. package/lib/token/TokenUnfreezeTransaction.d.ts +14 -14
  513. package/lib/token/TokenUnfreezeTransaction.js.map +1 -1
  514. package/lib/token/TokenUnpauseTransaction.cjs +7 -7
  515. package/lib/token/TokenUnpauseTransaction.d.ts +14 -14
  516. package/lib/token/TokenUnpauseTransaction.js.map +1 -1
  517. package/lib/token/TokenUpdateNftsTransaction.cjs +7 -7
  518. package/lib/token/TokenUpdateNftsTransaction.d.ts +14 -14
  519. package/lib/token/TokenUpdateNftsTransaction.js.map +1 -1
  520. package/lib/token/TokenUpdateTransaction.cjs +7 -7
  521. package/lib/token/TokenUpdateTransaction.d.ts +14 -14
  522. package/lib/token/TokenUpdateTransaction.js.map +1 -1
  523. package/lib/token/TokenWipeTransaction.cjs +7 -7
  524. package/lib/token/TokenWipeTransaction.d.ts +14 -14
  525. package/lib/token/TokenWipeTransaction.js.map +1 -1
  526. package/lib/topic/TopicCreateTransaction.cjs +6 -6
  527. package/lib/topic/TopicCreateTransaction.d.ts +12 -12
  528. package/lib/topic/TopicCreateTransaction.js.map +1 -1
  529. package/lib/topic/TopicDeleteTransaction.cjs +6 -6
  530. package/lib/topic/TopicDeleteTransaction.d.ts +12 -12
  531. package/lib/topic/TopicDeleteTransaction.js.map +1 -1
  532. package/lib/topic/TopicId.cjs +1 -1
  533. package/lib/topic/TopicId.d.ts +1 -1
  534. package/lib/topic/TopicId.js +1 -1
  535. package/lib/topic/TopicId.js.map +1 -1
  536. package/lib/topic/TopicInfo.cjs +1 -1
  537. package/lib/topic/TopicInfo.d.ts +1 -1
  538. package/lib/topic/TopicInfo.js +1 -1
  539. package/lib/topic/TopicInfo.js.map +1 -1
  540. package/lib/topic/TopicInfoQuery.cjs +7 -7
  541. package/lib/topic/TopicInfoQuery.d.ts +14 -14
  542. package/lib/topic/TopicInfoQuery.js.map +1 -1
  543. package/lib/topic/TopicMessage.cjs +2 -2
  544. package/lib/topic/TopicMessage.d.ts +4 -4
  545. package/lib/topic/TopicMessage.js.map +1 -1
  546. package/lib/topic/TopicMessageChunk.cjs +2 -2
  547. package/lib/topic/TopicMessageChunk.d.ts +4 -4
  548. package/lib/topic/TopicMessageChunk.js.map +1 -1
  549. package/lib/topic/TopicMessageQuery.cjs +1 -1
  550. package/lib/topic/TopicMessageQuery.js +1 -1
  551. package/lib/topic/TopicMessageQuery.js.map +1 -1
  552. package/lib/topic/TopicMessageSubmitTransaction.cjs +9 -9
  553. package/lib/topic/TopicMessageSubmitTransaction.d.ts +18 -18
  554. package/lib/topic/TopicMessageSubmitTransaction.js.map +1 -1
  555. package/lib/topic/TopicUpdateTransaction.cjs +6 -6
  556. package/lib/topic/TopicUpdateTransaction.d.ts +12 -12
  557. package/lib/topic/TopicUpdateTransaction.js.map +1 -1
  558. package/lib/transaction/BatchTransaction.cjs +5 -5
  559. package/lib/transaction/BatchTransaction.d.ts +9 -9
  560. package/lib/transaction/BatchTransaction.js +1 -1
  561. package/lib/transaction/BatchTransaction.js.map +1 -1
  562. package/lib/transaction/CustomFeeLimit.cjs +2 -2
  563. package/lib/transaction/CustomFeeLimit.d.ts +4 -4
  564. package/lib/transaction/CustomFeeLimit.js.map +1 -1
  565. package/lib/transaction/NodeAccountIdSignatureMap.cjs +2 -2
  566. package/lib/transaction/NodeAccountIdSignatureMap.d.ts +2 -2
  567. package/lib/transaction/NodeAccountIdSignatureMap.js +1 -1
  568. package/lib/transaction/NodeAccountIdSignatureMap.js.map +1 -1
  569. package/lib/transaction/NodeAccountIdSignatureMapLegacy.cjs +1 -1
  570. package/lib/transaction/NodeAccountIdSignatureMapLegacy.d.ts +2 -2
  571. package/lib/transaction/NodeAccountIdSignatureMapLegacy.js.map +1 -1
  572. package/lib/transaction/SignatureMap.cjs +1 -1
  573. package/lib/transaction/SignatureMap.js.map +1 -1
  574. package/lib/transaction/SignaturePairMap.cjs +1 -1
  575. package/lib/transaction/SignaturePairMap.d.ts +2 -2
  576. package/lib/transaction/SignaturePairMap.js.map +1 -1
  577. package/lib/transaction/Transaction.cjs +1 -1
  578. package/lib/transaction/Transaction.d.ts +1 -1
  579. package/lib/transaction/Transaction.js +1 -1
  580. package/lib/transaction/Transaction.js.map +1 -1
  581. package/lib/transaction/TransactionHashMap.cjs +1 -1
  582. package/lib/transaction/TransactionHashMap.d.ts +2 -2
  583. package/lib/transaction/TransactionHashMap.js.map +1 -1
  584. package/lib/transaction/TransactionId.cjs +1 -1
  585. package/lib/transaction/TransactionId.d.ts +1 -1
  586. package/lib/transaction/TransactionId.js +1 -1
  587. package/lib/transaction/TransactionId.js.map +1 -1
  588. package/lib/transaction/TransactionReceipt.cjs +1 -1
  589. package/lib/transaction/TransactionReceipt.d.ts +1 -1
  590. package/lib/transaction/TransactionReceipt.js +1 -1
  591. package/lib/transaction/TransactionReceipt.js.map +1 -1
  592. package/lib/transaction/TransactionReceiptQuery.cjs +1 -1
  593. package/lib/transaction/TransactionReceiptQuery.d.ts +1 -1
  594. package/lib/transaction/TransactionReceiptQuery.js +1 -1
  595. package/lib/transaction/TransactionReceiptQuery.js.map +1 -1
  596. package/lib/transaction/TransactionRecord.cjs +1 -1
  597. package/lib/transaction/TransactionRecord.d.ts +1 -1
  598. package/lib/transaction/TransactionRecord.js +1 -1
  599. package/lib/transaction/TransactionRecord.js.map +1 -1
  600. package/lib/transaction/TransactionRecordQuery.cjs +1 -1
  601. package/lib/transaction/TransactionRecordQuery.d.ts +1 -1
  602. package/lib/transaction/TransactionRecordQuery.js +1 -1
  603. package/lib/transaction/TransactionRecordQuery.js.map +1 -1
  604. package/lib/util/ASN1-Decoder.cjs +1 -1
  605. package/lib/util/ASN1-Decoder.js +1 -1
  606. package/lib/util/ASN1-Decoder.js.map +1 -1
  607. package/lib/version.js +1 -1
  608. package/package.json +6 -8
  609. package/src/Cache.js +6 -6
  610. package/src/Duration.js +1 -1
  611. package/src/EntityIdHelper.js +1 -1
  612. package/src/EthereumFlow.js +7 -7
  613. package/src/EthereumTransaction.js +7 -7
  614. package/src/EvmAddress.js +1 -1
  615. package/src/ExchangeRate.js +2 -2
  616. package/src/ExchangeRates.js +1 -1
  617. package/src/Executable.js +18 -2
  618. package/src/FeeComponents.js +1 -1
  619. package/src/FeeData.js +1 -1
  620. package/src/FeeDataType.js +1 -1
  621. package/src/FeeSchedule.js +1 -1
  622. package/src/FeeSchedules.js +1 -1
  623. package/src/FreezeType.js +1 -1
  624. package/src/Key.js +1 -1
  625. package/src/KeyList.js +3 -3
  626. package/src/Mnemonic.js +1 -1
  627. package/src/PrivateKey.js +7 -7
  628. package/src/PrngTransaction.js +9 -9
  629. package/src/PublicKey.js +5 -5
  630. package/src/RequestType.js +1 -1
  631. package/src/StakingInfo.js +1 -1
  632. package/src/Status.js +1 -1
  633. package/src/Timestamp.js +1 -1
  634. package/src/TransactionFeeSchedule.js +1 -1
  635. package/src/Transfer.js +2 -2
  636. package/src/account/AccountAllowanceAdjustTransaction.js +7 -7
  637. package/src/account/AccountAllowanceApproveTransaction.js +8 -8
  638. package/src/account/AccountAllowanceDeleteTransaction.js +7 -7
  639. package/src/account/AccountBalance.js +1 -1
  640. package/src/account/AccountBalanceQuery.js +6 -6
  641. package/src/account/AccountCreateTransaction.js +1 -1
  642. package/src/account/AccountDeleteTransaction.js +7 -7
  643. package/src/account/AccountId.js +1 -1
  644. package/src/account/AccountInfo.js +1 -1
  645. package/src/account/AccountInfoQuery.js +7 -7
  646. package/src/account/AccountRecordsQuery.js +7 -7
  647. package/src/account/AccountUpdateTransaction.js +7 -7
  648. package/src/account/HbarAllowance.js +3 -3
  649. package/src/account/HbarTransferMap.js +2 -2
  650. package/src/account/LiveHash.js +3 -3
  651. package/src/account/LiveHashAddTransaction.js +7 -7
  652. package/src/account/LiveHashDeleteTransaction.js +6 -6
  653. package/src/account/LiveHashQuery.js +7 -7
  654. package/src/account/NullableTokenDecimalMap.js +2 -2
  655. package/src/account/ProxyStaker.js +2 -2
  656. package/src/account/TokenAllowance.js +4 -4
  657. package/src/account/TokenBalanceMap.js +2 -2
  658. package/src/account/TokenDecimalMap.js +2 -2
  659. package/src/account/TokenNftAllowance.js +5 -5
  660. package/src/account/TokenNftTransferMap.js +5 -5
  661. package/src/account/TokenRelationship.js +4 -4
  662. package/src/account/TokenRelationshipMap.js +2 -2
  663. package/src/account/TokenTransferMap.js +4 -4
  664. package/src/account/TransferTransaction.js +6 -6
  665. package/src/address_book/AddressBooks.js +1 -1
  666. package/src/address_book/Endpoint.js +1 -1
  667. package/src/address_book/NodeAddress.js +1 -1
  668. package/src/address_book/NodeAddressBook.js +1 -1
  669. package/src/channel/Channel.js +26 -2
  670. package/src/channel/NativeChannel.js +111 -2
  671. package/src/channel/NodeChannel.js +4 -7
  672. package/src/channel/WebChannel.js +189 -21
  673. package/src/client/Client.js +79 -5
  674. package/src/client/NativeClient.js +1 -1
  675. package/src/client/NodeClient.js +7 -6
  676. package/src/client/WebClient.js +64 -31
  677. package/src/client/addressbooks/mainnet.js +1 -1
  678. package/src/client/addressbooks/previewnet.js +1 -1
  679. package/src/client/addressbooks/testnet.js +1 -1
  680. package/src/constants/ClientConstants.js +16 -0
  681. package/src/contract/ContractByteCodeQuery.js +6 -6
  682. package/src/contract/ContractCallQuery.js +1 -1
  683. package/src/contract/ContractCreateTransaction.js +8 -8
  684. package/src/contract/ContractDeleteTransaction.js +8 -8
  685. package/src/contract/ContractExecuteTransaction.js +9 -9
  686. package/src/contract/ContractFunctionResult.js +2 -2
  687. package/src/contract/ContractId.js +1 -1
  688. package/src/contract/ContractInfo.js +1 -1
  689. package/src/contract/ContractInfoQuery.js +7 -7
  690. package/src/contract/ContractLogInfo.js +2 -2
  691. package/src/contract/ContractNonceInfo.js +3 -3
  692. package/src/contract/ContractStateChange.js +1 -1
  693. package/src/contract/ContractUpdateTransaction.js +10 -10
  694. package/src/contract/DelegateContractId.js +2 -2
  695. package/src/contract/StorageChange.js +1 -1
  696. package/src/exports.js +1 -1
  697. package/src/file/FileAppendTransaction.js +7 -7
  698. package/src/file/FileContentsQuery.js +7 -7
  699. package/src/file/FileCreateTransaction.js +6 -6
  700. package/src/file/FileDeleteTransaction.js +7 -7
  701. package/src/file/FileId.js +1 -1
  702. package/src/file/FileInfo.js +1 -1
  703. package/src/file/FileInfoQuery.js +7 -7
  704. package/src/file/FileUpdateTransaction.js +6 -6
  705. package/src/network/AddressBookQuery.js +1 -8
  706. package/src/network/AddressBookQueryWeb.js +1 -8
  707. package/src/network/NetworkVersionInfo.js +1 -1
  708. package/src/network/NetworkVersionInfoQuery.js +6 -6
  709. package/src/network/SemanticVersion.js +1 -1
  710. package/src/node/NodeCreateTransaction.js +6 -6
  711. package/src/node/NodeDeleteTransaction.js +6 -6
  712. package/src/node/NodeUpdateTransaction.js +6 -6
  713. package/src/node/ServiceEndpoint.js +1 -1
  714. package/src/query/CostQuery.js +1 -1
  715. package/src/query/Query.js +1 -1
  716. package/src/query/QueryBase.js +1 -1
  717. package/src/schedule/ScheduleCreateTransaction.js +1 -1
  718. package/src/schedule/ScheduleDeleteTransaction.js +8 -8
  719. package/src/schedule/ScheduleId.js +1 -1
  720. package/src/schedule/ScheduleInfo.js +1 -1
  721. package/src/schedule/ScheduleInfoQuery.js +7 -7
  722. package/src/schedule/ScheduleSignTransaction.js +10 -10
  723. package/src/system/FreezeTransaction.js +6 -6
  724. package/src/system/SystemDeleteTransaction.js +8 -8
  725. package/src/system/SystemUndeleteTransaction.js +8 -8
  726. package/src/token/AbstractTokenTransferTransaction.js +1 -1
  727. package/src/token/AssessedCustomFee.js +1 -1
  728. package/src/token/CustomFee.js +1 -1
  729. package/src/token/CustomFixedFee.js +3 -3
  730. package/src/token/CustomFractionalFee.js +3 -3
  731. package/src/token/CustomRoyaltyFee.js +4 -4
  732. package/src/token/NftId.js +1 -1
  733. package/src/token/PendingAirdropId.js +1 -1
  734. package/src/token/PendingAirdropRecord.js +1 -1
  735. package/src/token/TokenAirdropTransaction.js +8 -8
  736. package/src/token/TokenAssociateTransaction.js +7 -7
  737. package/src/token/TokenAssociation.js +1 -1
  738. package/src/token/TokenBurnTransaction.js +7 -7
  739. package/src/token/TokenCancelAirdropTransaction.js +6 -6
  740. package/src/token/TokenClaimAirdropTransaction.js +6 -6
  741. package/src/token/TokenCreateTransaction.js +7 -7
  742. package/src/token/TokenDeleteTransaction.js +7 -7
  743. package/src/token/TokenDissociateTransaction.js +7 -7
  744. package/src/token/TokenFeeScheduleUpdateTransaction.js +7 -7
  745. package/src/token/TokenFreezeTransaction.js +7 -7
  746. package/src/token/TokenGrantKycTransaction.js +7 -7
  747. package/src/token/TokenId.js +1 -1
  748. package/src/token/TokenInfo.js +1 -1
  749. package/src/token/TokenInfoQuery.js +7 -7
  750. package/src/token/TokenKeyValidation.js +1 -1
  751. package/src/token/TokenMintTransaction.js +7 -7
  752. package/src/token/TokenNftInfo.js +10 -10
  753. package/src/token/TokenNftInfoQuery.js +11 -11
  754. package/src/token/TokenNftTransfer.js +5 -5
  755. package/src/token/TokenNftsUpdateTransaction.js +7 -7
  756. package/src/token/TokenPauseTransaction.js +7 -7
  757. package/src/token/TokenReference.js +1 -1
  758. package/src/token/TokenRejectTransaction.js +7 -7
  759. package/src/token/TokenRevokeKycTransaction.js +7 -7
  760. package/src/token/TokenSupplyType.js +1 -1
  761. package/src/token/TokenTransfer.js +4 -4
  762. package/src/token/TokenType.js +1 -1
  763. package/src/token/TokenUnfreezeTransaction.js +7 -7
  764. package/src/token/TokenUnpauseTransaction.js +7 -7
  765. package/src/token/TokenUpdateNftsTransaction.js +7 -7
  766. package/src/token/TokenUpdateTransaction.js +7 -7
  767. package/src/token/TokenWipeTransaction.js +7 -7
  768. package/src/topic/TopicCreateTransaction.js +6 -6
  769. package/src/topic/TopicDeleteTransaction.js +6 -6
  770. package/src/topic/TopicId.js +1 -1
  771. package/src/topic/TopicInfo.js +1 -1
  772. package/src/topic/TopicInfoQuery.js +7 -7
  773. package/src/topic/TopicMessage.js +2 -2
  774. package/src/topic/TopicMessageChunk.js +2 -2
  775. package/src/topic/TopicMessageQuery.js +1 -1
  776. package/src/topic/TopicMessageSubmitTransaction.js +9 -9
  777. package/src/topic/TopicUpdateTransaction.js +6 -6
  778. package/src/transaction/BatchTransaction.js +5 -5
  779. package/src/transaction/CustomFeeLimit.js +2 -2
  780. package/src/transaction/NodeAccountIdSignatureMap.js +2 -2
  781. package/src/transaction/NodeAccountIdSignatureMapLegacy.js +1 -1
  782. package/src/transaction/SignatureMap.js +1 -1
  783. package/src/transaction/SignaturePairMap.js +1 -1
  784. package/src/transaction/Transaction.js +1 -1
  785. package/src/transaction/TransactionHashMap.js +1 -1
  786. package/src/transaction/TransactionId.js +1 -1
  787. package/src/transaction/TransactionReceipt.js +1 -1
  788. package/src/transaction/TransactionReceiptQuery.js +1 -1
  789. package/src/transaction/TransactionRecord.js +1 -1
  790. package/src/transaction/TransactionRecordQuery.js +1 -1
  791. package/src/util/ASN1-Decoder.js +1 -1
@@ -17,12 +17,12 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
17
17
 
18
18
  /**
19
19
  * @namespace proto
20
- * @typedef {import("@hashgraph/proto").proto.IConsensusUpdateTopicTransactionBody} HieroProto.proto.IConsensusUpdateTopicTransactionBody
21
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
22
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
23
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
24
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
25
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
20
+ * @typedef {import("@hiero-ledger/proto").proto.IConsensusUpdateTopicTransactionBody} HieroProto.proto.IConsensusUpdateTopicTransactionBody
21
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
22
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
23
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
24
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
25
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
26
26
  */
27
27
 
28
28
  /**
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.IConsensusUpdateTopicTransactionBody} HieroProto.proto.IConsensusUpdateTopicTransactionBody
4
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
5
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
6
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
7
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
8
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
3
+ * @typedef {import("@hiero-ledger/proto").proto.IConsensusUpdateTopicTransactionBody} HieroProto.proto.IConsensusUpdateTopicTransactionBody
4
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
5
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
6
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
7
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
8
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
9
9
  */
10
10
  /**
11
11
  * @typedef {import("../channel/Channel.js").default} Channel
@@ -264,12 +264,12 @@ export default class TopicUpdateTransaction extends Transaction {
264
264
  }
265
265
  export namespace HieroProto {
266
266
  namespace proto {
267
- type IConsensusUpdateTopicTransactionBody = import("@hashgraph/proto").proto.IConsensusUpdateTopicTransactionBody;
268
- type ITransaction = import("@hashgraph/proto").proto.ITransaction;
269
- type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
270
- type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
271
- type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
272
- type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
267
+ type IConsensusUpdateTopicTransactionBody = import("@hiero-ledger/proto").proto.IConsensusUpdateTopicTransactionBody;
268
+ type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
269
+ type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
270
+ type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
271
+ type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
272
+ type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
273
273
  }
274
274
  }
275
275
  export type Channel = import("../channel/Channel.js").default;
@@ -1 +1 @@
1
- {"version":3,"file":"TopicUpdateTransaction.js","sources":["../../src/topic/TopicUpdateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport TopicId from \"./TopicId.js\";\nimport Duration from \"../Duration.js\";\nimport Key from \"../Key.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport CustomFixedFee from \"../token/CustomFixedFee.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.IConsensusUpdateTopicTransactionBody} HieroProto.proto.IConsensusUpdateTopicTransactionBody\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 */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Update a topic.\n *\n * If there is no adminKey, the only authorized update (available to anyone) is to extend the expirationTime.\n * Otherwise transaction must be signed by the adminKey.\n *\n * If an adminKey is updated, the transaction must be signed by the pre-update adminKey and post-update adminKey.\n *\n * If a new autoRenewAccount is specified (not just being removed), that account must also sign the transaction.\n */\nexport default class TopicUpdateTransaction extends Transaction {\n /**\n * @param {object} props\n * @param {TopicId | string} [props.topicId]\n * @param {Key} [props.adminKey]\n * @param {Key} [props.submitKey]\n * @param {Key} [props.feeScheduleKey]\n * @param {Key[]} [props.feeExemptKeys]\n * @param {Duration | Long | number} [props.autoRenewPeriod]\n * @param {AccountId | string} [props.autoRenewAccountId]\n * @param {CustomFixedFee[]} [props.customFees]\n * @param {?string} [props.topicMemo]\n * @param {Timestamp | Date} [props.expirationTime]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TopicId}\n */\n this._topicId = null;\n\n if (props.topicId != null) {\n this.setTopicId(props.topicId);\n }\n\n /**\n * @private\n * @type {?string}\n */\n this._topicMemo = null;\n\n if (props.topicMemo != null) {\n this.setTopicMemo(props.topicMemo);\n }\n\n /**\n * @private\n * @type {?Key}\n */\n this._submitKey = null;\n\n if (props.submitKey != null) {\n this.setSubmitKey(props.submitKey);\n }\n\n /**\n * @private\n * @type {?Key}\n */\n this._adminKey = null;\n\n if (props.adminKey != null) {\n this.setAdminKey(props.adminKey);\n }\n /**\n * @private\n * @type {?Key}\n */\n this._feeScheduleKey = null;\n\n if (props.feeScheduleKey != null) {\n this.setFeeScheduleKey(props.feeScheduleKey);\n }\n\n /**\n * @private\n * @type {?Key[]}\n */\n this._feeExemptKeys = null;\n\n if (props.feeExemptKeys != null) {\n this.setFeeExemptKeys(props.feeExemptKeys);\n }\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._autoRenewAccountId = null;\n\n if (props.autoRenewAccountId != null) {\n this.setAutoRenewAccountId(props.autoRenewAccountId);\n }\n\n /**\n * @private\n * @type {?Duration}\n */\n this._autoRenewPeriod = null;\n\n if (props.autoRenewPeriod != null) {\n this.setAutoRenewPeriod(props.autoRenewPeriod);\n }\n\n /**\n * @private\n * @type {?CustomFixedFee[]}\n */\n this._customFees = null;\n\n if (props.customFees != null) {\n this.setCustomFees(props.customFees);\n }\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._expirationTime = null;\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 {TopicUpdateTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const update =\n /** @type {HieroProto.proto.IConsensusUpdateTopicTransactionBody} */ (\n body.consensusUpdateTopic\n );\n\n return Transaction._fromProtobufTransactions(\n new TopicUpdateTransaction({\n topicId:\n update.topicID != null\n ? TopicId._fromProtobuf(update.topicID)\n : undefined,\n adminKey:\n update.adminKey != null\n ? Key._fromProtobufKey(update.adminKey)\n : undefined,\n submitKey:\n update.submitKey != null\n ? Key._fromProtobufKey(update.submitKey)\n : undefined,\n feeScheduleKey:\n update.feeScheduleKey != null\n ? Key._fromProtobufKey(update.feeScheduleKey)\n : undefined,\n feeExemptKeys:\n update.feeExemptKeyList != null &&\n update.feeExemptKeyList.keys != null\n ? update?.feeExemptKeyList.keys.map((key) =>\n Key._fromProtobufKey(key),\n )\n : undefined,\n autoRenewAccountId:\n update.autoRenewAccount != null\n ? AccountId._fromProtobuf(update.autoRenewAccount)\n : undefined,\n autoRenewPeriod:\n update.autoRenewPeriod != null\n ? update.autoRenewPeriod.seconds != null\n ? update.autoRenewPeriod.seconds\n : undefined\n : undefined,\n customFees:\n update.customFees != null && update.customFees.fees != null\n ? update.customFees.fees.map((customFee) =>\n CustomFixedFee._fromProtobuf(customFee),\n )\n : undefined,\n topicMemo:\n update.memo != null\n ? Object.hasOwn(update.memo, \"value\")\n ? update.memo.value\n : undefined\n : undefined,\n expirationTime:\n update.expirationTime != null\n ? Timestamp._fromProtobuf(update.expirationTime)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?Timestamp}\n */\n get expirationTime() {\n return this._expirationTime;\n }\n\n /**\n * @param {Timestamp | Date | null} expirationTime\n * @returns {TopicUpdateTransaction}\n */\n setExpirationTime(expirationTime) {\n this._requireNotFrozen();\n\n this._expirationTime =\n expirationTime instanceof Date\n ? Timestamp.fromDate(expirationTime)\n : expirationTime;\n\n return this;\n }\n\n /**\n * @returns {?TopicId}\n */\n get topicId() {\n return this._topicId;\n }\n\n /**\n * @param {TopicId | string} topicId\n * @returns {TopicUpdateTransaction}\n */\n setTopicId(topicId) {\n this._requireNotFrozen();\n this._topicId =\n typeof topicId === \"string\"\n ? TopicId.fromString(topicId)\n : topicId.clone();\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearTopicId() {\n this._requireNotFrozen();\n this._topicId = null;\n\n return this;\n }\n\n /**\n * @returns {?string}\n */\n get topicMemo() {\n return this._topicMemo;\n }\n\n /**\n * @param {string} topicMemo\n * @returns {TopicUpdateTransaction}\n */\n setTopicMemo(topicMemo) {\n this._requireNotFrozen();\n this._topicMemo = topicMemo;\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearTopicMemo() {\n this._requireNotFrozen();\n this._topicMemo = null;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get adminKey() {\n return this._adminKey;\n }\n\n /**\n * @param {Key} adminKey\n * @returns {TopicUpdateTransaction}\n */\n setAdminKey(adminKey) {\n this._requireNotFrozen();\n this._adminKey = adminKey;\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearAdminKey() {\n this._requireNotFrozen();\n this._adminKey = null;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get submitKey() {\n return this._submitKey;\n }\n\n /**\n * @param {Key} submitKey\n * @returns {TopicUpdateTransaction}\n */\n setSubmitKey(submitKey) {\n this._requireNotFrozen();\n this._submitKey = submitKey;\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearSubmitKey() {\n this._requireNotFrozen();\n this._submitKey = null;\n\n return this;\n }\n\n /**\n * Returns the key which allows updates to the new topic’s fees.\n * @returns {?Key}\n */\n getFeeScheduleKey() {\n return this._feeScheduleKey;\n }\n\n /**\n * Sets the key which allows updates to the new topic’s fees.\n * @param {Key} feeScheduleKey\n * @returns {this}\n */\n setFeeScheduleKey(feeScheduleKey) {\n this._requireNotFrozen();\n this._feeScheduleKey = feeScheduleKey;\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearFeeScheduleKey() {\n this._requireNotFrozen();\n this._feeScheduleKey = null;\n\n return this;\n }\n\n /**\n * Returns the keys that will be exempt from paying fees.\n * @returns {?Key[]}\n */\n getFeeExemptKeys() {\n return this._feeExemptKeys;\n }\n\n /**\n * Sets the keys that will be exempt from paying fees.\n * @param {Key[]} feeExemptKeys\n * @returns {this}\n */\n setFeeExemptKeys(feeExemptKeys) {\n this._requireNotFrozen();\n this._feeExemptKeys = feeExemptKeys;\n\n return this;\n }\n\n /**\n * Adds a key that will be exempt from paying fees.\n * @param {Key} key\n * @returns {this}\n */\n addFeeExemptKey(key) {\n this._requireNotFrozen();\n if (this._feeExemptKeys == null) {\n this._feeExemptKeys = [];\n }\n\n this._feeExemptKeys.push(key);\n\n return this;\n }\n\n /**\n * Clears all keys that will be exempt from paying fees, effectively removing them from the network state.\n * @returns {this}\n */\n clearFeeExemptKeys() {\n this._requireNotFrozen();\n this._feeExemptKeys = [];\n\n return this;\n }\n\n /**\n * @returns {?AccountId}\n */\n get autoRenewAccountId() {\n return this._autoRenewAccountId;\n }\n\n /**\n * @param {AccountId | string} autoRenewAccountId\n * @returns {TopicUpdateTransaction}\n */\n setAutoRenewAccountId(autoRenewAccountId) {\n this._requireNotFrozen();\n this._autoRenewAccountId =\n autoRenewAccountId instanceof AccountId\n ? autoRenewAccountId\n : AccountId.fromString(autoRenewAccountId);\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearAutoRenewAccountId() {\n this._requireNotFrozen();\n this._autoRenewAccountId = null;\n\n return this;\n }\n\n /**\n * @returns {?Duration}\n */\n get autoRenewPeriod() {\n return this._autoRenewPeriod;\n }\n\n /**\n * Set the auto renew period for this account.\n *\n * @param {Duration | Long | number} autoRenewPeriod\n * @returns {TopicUpdateTransaction}\n */\n setAutoRenewPeriod(autoRenewPeriod) {\n this._requireNotFrozen();\n this._autoRenewPeriod =\n autoRenewPeriod instanceof Duration\n ? autoRenewPeriod\n : new Duration(autoRenewPeriod);\n\n return this;\n }\n\n /**\n * Returns the fixed fees to assess when a message is submitted to the new topic.\n * @returns {?CustomFixedFee[]}\n */\n getCustomFees() {\n return this._customFees;\n }\n\n /**\n * Sets the fixed fees to assess when a message is submitted to the new topic.\n *\n * @param {CustomFixedFee[]} customFees\n * @returns {this}\n */\n setCustomFees(customFees) {\n this._requireNotFrozen();\n this._customFees = customFees;\n\n return this;\n }\n\n /**\n * Adds fixed fee to assess when a message is submitted to the new topic.\n *\n * @param {CustomFixedFee} customFee\n * @returns {this}\n */\n addCustomFee(customFee) {\n this._requireNotFrozen();\n if (this._customFees == null) {\n this._customFees = [];\n }\n\n this._customFees.push(customFee);\n\n return this;\n }\n\n /**\n * Clears fixed fees, effectively removing them from the network state.\n *\n * @returns {this}\n */\n clearCustomFees() {\n this._requireNotFrozen();\n this._customFees = [];\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._topicId != null) {\n this._topicId.validateChecksum(client);\n }\n\n if (this._autoRenewAccountId != null) {\n this._autoRenewAccountId.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.consensus.updateTopic(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"consensusUpdateTopic\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IConsensusUpdateTopicTransactionBody}\n */\n _makeTransactionData() {\n return {\n topicID: this._topicId != null ? this._topicId._toProtobuf() : null,\n adminKey:\n this._adminKey != null ? this._adminKey._toProtobufKey() : null,\n submitKey:\n this._submitKey != null\n ? this._submitKey._toProtobufKey()\n : null,\n feeScheduleKey:\n this._feeScheduleKey != null\n ? this._feeScheduleKey._toProtobufKey()\n : null,\n feeExemptKeyList:\n this._feeExemptKeys != null\n ? {\n keys: this._feeExemptKeys.map((key) =>\n key._toProtobufKey(),\n ),\n }\n : null,\n memo:\n this._topicMemo != null\n ? {\n value: this._topicMemo,\n }\n : null,\n autoRenewAccount:\n this._autoRenewAccountId != null\n ? this._autoRenewAccountId._toProtobuf()\n : null,\n autoRenewPeriod:\n this._autoRenewPeriod != null\n ? this._autoRenewPeriod._toProtobuf()\n : null,\n customFees:\n this._customFees != null\n ? {\n fees: this._customFees.map((customFee) =>\n customFee._toTopicFeeProtobuf(),\n ),\n }\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 `TopicUpdateTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"consensusUpdateTopic\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TopicUpdateTransaction._fromProtobuf,\n);\n"],"names":["TopicUpdateTransaction","Transaction","constructor","props","super","this","_topicId","topicId","setTopicId","_topicMemo","topicMemo","setTopicMemo","_submitKey","submitKey","setSubmitKey","_adminKey","adminKey","setAdminKey","_feeScheduleKey","feeScheduleKey","setFeeScheduleKey","_feeExemptKeys","feeExemptKeys","setFeeExemptKeys","_autoRenewAccountId","autoRenewAccountId","setAutoRenewAccountId","_autoRenewPeriod","autoRenewPeriod","setAutoRenewPeriod","_customFees","customFees","setCustomFees","_expirationTime","expirationTime","setExpirationTime","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","update","_fromProtobufTransactions","topicID","TopicId","undefined","Key","_fromProtobufKey","feeExemptKeyList","keys","map","key","autoRenewAccount","AccountId","seconds","fees","customFee","CustomFixedFee","memo","Object","hasOwn","value","Timestamp","_requireNotFrozen","Date","fromDate","fromString","clone","clearTopicId","clearTopicMemo","clearAdminKey","clearSubmitKey","getFeeScheduleKey","clearFeeScheduleKey","getFeeExemptKeys","addFeeExemptKey","push","clearFeeExemptKeys","clearAutoRenewAccountId","Duration","getCustomFees","addCustomFee","clearCustomFees","_validateChecksums","client","validateChecksum","_execute","channel","request","consensus","updateTopic","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_toProtobufKey","_toTopicFeeProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"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"}
1
+ {"version":3,"file":"TopicUpdateTransaction.js","sources":["../../src/topic/TopicUpdateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport TopicId from \"./TopicId.js\";\nimport Duration from \"../Duration.js\";\nimport Key from \"../Key.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport CustomFixedFee from \"../token/CustomFixedFee.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IConsensusUpdateTopicTransactionBody} HieroProto.proto.IConsensusUpdateTopicTransactionBody\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 */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Update a topic.\n *\n * If there is no adminKey, the only authorized update (available to anyone) is to extend the expirationTime.\n * Otherwise transaction must be signed by the adminKey.\n *\n * If an adminKey is updated, the transaction must be signed by the pre-update adminKey and post-update adminKey.\n *\n * If a new autoRenewAccount is specified (not just being removed), that account must also sign the transaction.\n */\nexport default class TopicUpdateTransaction extends Transaction {\n /**\n * @param {object} props\n * @param {TopicId | string} [props.topicId]\n * @param {Key} [props.adminKey]\n * @param {Key} [props.submitKey]\n * @param {Key} [props.feeScheduleKey]\n * @param {Key[]} [props.feeExemptKeys]\n * @param {Duration | Long | number} [props.autoRenewPeriod]\n * @param {AccountId | string} [props.autoRenewAccountId]\n * @param {CustomFixedFee[]} [props.customFees]\n * @param {?string} [props.topicMemo]\n * @param {Timestamp | Date} [props.expirationTime]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TopicId}\n */\n this._topicId = null;\n\n if (props.topicId != null) {\n this.setTopicId(props.topicId);\n }\n\n /**\n * @private\n * @type {?string}\n */\n this._topicMemo = null;\n\n if (props.topicMemo != null) {\n this.setTopicMemo(props.topicMemo);\n }\n\n /**\n * @private\n * @type {?Key}\n */\n this._submitKey = null;\n\n if (props.submitKey != null) {\n this.setSubmitKey(props.submitKey);\n }\n\n /**\n * @private\n * @type {?Key}\n */\n this._adminKey = null;\n\n if (props.adminKey != null) {\n this.setAdminKey(props.adminKey);\n }\n /**\n * @private\n * @type {?Key}\n */\n this._feeScheduleKey = null;\n\n if (props.feeScheduleKey != null) {\n this.setFeeScheduleKey(props.feeScheduleKey);\n }\n\n /**\n * @private\n * @type {?Key[]}\n */\n this._feeExemptKeys = null;\n\n if (props.feeExemptKeys != null) {\n this.setFeeExemptKeys(props.feeExemptKeys);\n }\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._autoRenewAccountId = null;\n\n if (props.autoRenewAccountId != null) {\n this.setAutoRenewAccountId(props.autoRenewAccountId);\n }\n\n /**\n * @private\n * @type {?Duration}\n */\n this._autoRenewPeriod = null;\n\n if (props.autoRenewPeriod != null) {\n this.setAutoRenewPeriod(props.autoRenewPeriod);\n }\n\n /**\n * @private\n * @type {?CustomFixedFee[]}\n */\n this._customFees = null;\n\n if (props.customFees != null) {\n this.setCustomFees(props.customFees);\n }\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._expirationTime = null;\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 {TopicUpdateTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const update =\n /** @type {HieroProto.proto.IConsensusUpdateTopicTransactionBody} */ (\n body.consensusUpdateTopic\n );\n\n return Transaction._fromProtobufTransactions(\n new TopicUpdateTransaction({\n topicId:\n update.topicID != null\n ? TopicId._fromProtobuf(update.topicID)\n : undefined,\n adminKey:\n update.adminKey != null\n ? Key._fromProtobufKey(update.adminKey)\n : undefined,\n submitKey:\n update.submitKey != null\n ? Key._fromProtobufKey(update.submitKey)\n : undefined,\n feeScheduleKey:\n update.feeScheduleKey != null\n ? Key._fromProtobufKey(update.feeScheduleKey)\n : undefined,\n feeExemptKeys:\n update.feeExemptKeyList != null &&\n update.feeExemptKeyList.keys != null\n ? update?.feeExemptKeyList.keys.map((key) =>\n Key._fromProtobufKey(key),\n )\n : undefined,\n autoRenewAccountId:\n update.autoRenewAccount != null\n ? AccountId._fromProtobuf(update.autoRenewAccount)\n : undefined,\n autoRenewPeriod:\n update.autoRenewPeriod != null\n ? update.autoRenewPeriod.seconds != null\n ? update.autoRenewPeriod.seconds\n : undefined\n : undefined,\n customFees:\n update.customFees != null && update.customFees.fees != null\n ? update.customFees.fees.map((customFee) =>\n CustomFixedFee._fromProtobuf(customFee),\n )\n : undefined,\n topicMemo:\n update.memo != null\n ? Object.hasOwn(update.memo, \"value\")\n ? update.memo.value\n : undefined\n : undefined,\n expirationTime:\n update.expirationTime != null\n ? Timestamp._fromProtobuf(update.expirationTime)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?Timestamp}\n */\n get expirationTime() {\n return this._expirationTime;\n }\n\n /**\n * @param {Timestamp | Date | null} expirationTime\n * @returns {TopicUpdateTransaction}\n */\n setExpirationTime(expirationTime) {\n this._requireNotFrozen();\n\n this._expirationTime =\n expirationTime instanceof Date\n ? Timestamp.fromDate(expirationTime)\n : expirationTime;\n\n return this;\n }\n\n /**\n * @returns {?TopicId}\n */\n get topicId() {\n return this._topicId;\n }\n\n /**\n * @param {TopicId | string} topicId\n * @returns {TopicUpdateTransaction}\n */\n setTopicId(topicId) {\n this._requireNotFrozen();\n this._topicId =\n typeof topicId === \"string\"\n ? TopicId.fromString(topicId)\n : topicId.clone();\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearTopicId() {\n this._requireNotFrozen();\n this._topicId = null;\n\n return this;\n }\n\n /**\n * @returns {?string}\n */\n get topicMemo() {\n return this._topicMemo;\n }\n\n /**\n * @param {string} topicMemo\n * @returns {TopicUpdateTransaction}\n */\n setTopicMemo(topicMemo) {\n this._requireNotFrozen();\n this._topicMemo = topicMemo;\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearTopicMemo() {\n this._requireNotFrozen();\n this._topicMemo = null;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get adminKey() {\n return this._adminKey;\n }\n\n /**\n * @param {Key} adminKey\n * @returns {TopicUpdateTransaction}\n */\n setAdminKey(adminKey) {\n this._requireNotFrozen();\n this._adminKey = adminKey;\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearAdminKey() {\n this._requireNotFrozen();\n this._adminKey = null;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get submitKey() {\n return this._submitKey;\n }\n\n /**\n * @param {Key} submitKey\n * @returns {TopicUpdateTransaction}\n */\n setSubmitKey(submitKey) {\n this._requireNotFrozen();\n this._submitKey = submitKey;\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearSubmitKey() {\n this._requireNotFrozen();\n this._submitKey = null;\n\n return this;\n }\n\n /**\n * Returns the key which allows updates to the new topic’s fees.\n * @returns {?Key}\n */\n getFeeScheduleKey() {\n return this._feeScheduleKey;\n }\n\n /**\n * Sets the key which allows updates to the new topic’s fees.\n * @param {Key} feeScheduleKey\n * @returns {this}\n */\n setFeeScheduleKey(feeScheduleKey) {\n this._requireNotFrozen();\n this._feeScheduleKey = feeScheduleKey;\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearFeeScheduleKey() {\n this._requireNotFrozen();\n this._feeScheduleKey = null;\n\n return this;\n }\n\n /**\n * Returns the keys that will be exempt from paying fees.\n * @returns {?Key[]}\n */\n getFeeExemptKeys() {\n return this._feeExemptKeys;\n }\n\n /**\n * Sets the keys that will be exempt from paying fees.\n * @param {Key[]} feeExemptKeys\n * @returns {this}\n */\n setFeeExemptKeys(feeExemptKeys) {\n this._requireNotFrozen();\n this._feeExemptKeys = feeExemptKeys;\n\n return this;\n }\n\n /**\n * Adds a key that will be exempt from paying fees.\n * @param {Key} key\n * @returns {this}\n */\n addFeeExemptKey(key) {\n this._requireNotFrozen();\n if (this._feeExemptKeys == null) {\n this._feeExemptKeys = [];\n }\n\n this._feeExemptKeys.push(key);\n\n return this;\n }\n\n /**\n * Clears all keys that will be exempt from paying fees, effectively removing them from the network state.\n * @returns {this}\n */\n clearFeeExemptKeys() {\n this._requireNotFrozen();\n this._feeExemptKeys = [];\n\n return this;\n }\n\n /**\n * @returns {?AccountId}\n */\n get autoRenewAccountId() {\n return this._autoRenewAccountId;\n }\n\n /**\n * @param {AccountId | string} autoRenewAccountId\n * @returns {TopicUpdateTransaction}\n */\n setAutoRenewAccountId(autoRenewAccountId) {\n this._requireNotFrozen();\n this._autoRenewAccountId =\n autoRenewAccountId instanceof AccountId\n ? autoRenewAccountId\n : AccountId.fromString(autoRenewAccountId);\n\n return this;\n }\n\n /**\n * @returns {TopicUpdateTransaction}\n */\n clearAutoRenewAccountId() {\n this._requireNotFrozen();\n this._autoRenewAccountId = null;\n\n return this;\n }\n\n /**\n * @returns {?Duration}\n */\n get autoRenewPeriod() {\n return this._autoRenewPeriod;\n }\n\n /**\n * Set the auto renew period for this account.\n *\n * @param {Duration | Long | number} autoRenewPeriod\n * @returns {TopicUpdateTransaction}\n */\n setAutoRenewPeriod(autoRenewPeriod) {\n this._requireNotFrozen();\n this._autoRenewPeriod =\n autoRenewPeriod instanceof Duration\n ? autoRenewPeriod\n : new Duration(autoRenewPeriod);\n\n return this;\n }\n\n /**\n * Returns the fixed fees to assess when a message is submitted to the new topic.\n * @returns {?CustomFixedFee[]}\n */\n getCustomFees() {\n return this._customFees;\n }\n\n /**\n * Sets the fixed fees to assess when a message is submitted to the new topic.\n *\n * @param {CustomFixedFee[]} customFees\n * @returns {this}\n */\n setCustomFees(customFees) {\n this._requireNotFrozen();\n this._customFees = customFees;\n\n return this;\n }\n\n /**\n * Adds fixed fee to assess when a message is submitted to the new topic.\n *\n * @param {CustomFixedFee} customFee\n * @returns {this}\n */\n addCustomFee(customFee) {\n this._requireNotFrozen();\n if (this._customFees == null) {\n this._customFees = [];\n }\n\n this._customFees.push(customFee);\n\n return this;\n }\n\n /**\n * Clears fixed fees, effectively removing them from the network state.\n *\n * @returns {this}\n */\n clearCustomFees() {\n this._requireNotFrozen();\n this._customFees = [];\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._topicId != null) {\n this._topicId.validateChecksum(client);\n }\n\n if (this._autoRenewAccountId != null) {\n this._autoRenewAccountId.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.consensus.updateTopic(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"consensusUpdateTopic\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IConsensusUpdateTopicTransactionBody}\n */\n _makeTransactionData() {\n return {\n topicID: this._topicId != null ? this._topicId._toProtobuf() : null,\n adminKey:\n this._adminKey != null ? this._adminKey._toProtobufKey() : null,\n submitKey:\n this._submitKey != null\n ? this._submitKey._toProtobufKey()\n : null,\n feeScheduleKey:\n this._feeScheduleKey != null\n ? this._feeScheduleKey._toProtobufKey()\n : null,\n feeExemptKeyList:\n this._feeExemptKeys != null\n ? {\n keys: this._feeExemptKeys.map((key) =>\n key._toProtobufKey(),\n ),\n }\n : null,\n memo:\n this._topicMemo != null\n ? {\n value: this._topicMemo,\n }\n : null,\n autoRenewAccount:\n this._autoRenewAccountId != null\n ? this._autoRenewAccountId._toProtobuf()\n : null,\n autoRenewPeriod:\n this._autoRenewPeriod != null\n ? this._autoRenewPeriod._toProtobuf()\n : null,\n customFees:\n this._customFees != null\n ? {\n fees: this._customFees.map((customFee) =>\n customFee._toTopicFeeProtobuf(),\n ),\n }\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 `TopicUpdateTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"consensusUpdateTopic\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TopicUpdateTransaction._fromProtobuf,\n);\n"],"names":["TopicUpdateTransaction","Transaction","constructor","props","super","this","_topicId","topicId","setTopicId","_topicMemo","topicMemo","setTopicMemo","_submitKey","submitKey","setSubmitKey","_adminKey","adminKey","setAdminKey","_feeScheduleKey","feeScheduleKey","setFeeScheduleKey","_feeExemptKeys","feeExemptKeys","setFeeExemptKeys","_autoRenewAccountId","autoRenewAccountId","setAutoRenewAccountId","_autoRenewPeriod","autoRenewPeriod","setAutoRenewPeriod","_customFees","customFees","setCustomFees","_expirationTime","expirationTime","setExpirationTime","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","update","_fromProtobufTransactions","topicID","TopicId","undefined","Key","_fromProtobufKey","feeExemptKeyList","keys","map","key","autoRenewAccount","AccountId","seconds","fees","customFee","CustomFixedFee","memo","Object","hasOwn","value","Timestamp","_requireNotFrozen","Date","fromDate","fromString","clone","clearTopicId","clearTopicMemo","clearAdminKey","clearSubmitKey","getFeeScheduleKey","clearFeeScheduleKey","getFeeExemptKeys","addFeeExemptKey","push","clearFeeExemptKeys","clearAutoRenewAccountId","Duration","getCustomFees","addCustomFee","clearCustomFees","_validateChecksums","client","validateChecksum","_execute","channel","request","consensus","updateTopic","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_toProtobufKey","_toTopicFeeProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"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"}
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _FreezeTransaction = _interopRequireDefault(require("../system/FreezeTransaction.cjs"));
8
8
  var _Transaction = _interopRequireWildcard(require("./Transaction.cjs"));
9
- var _proto = require("@hashgraph/proto");
9
+ var _proto = require("@hiero-ledger/proto");
10
10
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  /**
13
13
  * @namespace proto
14
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
15
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
16
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
17
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
14
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
15
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
16
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
17
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
18
18
  */
19
19
 
20
20
  /**
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
5
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
3
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
5
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
7
7
  */
8
8
  /**
9
9
  * @typedef {import("../channel/Channel.js").default} Channel
@@ -120,10 +120,10 @@ export default class BatchTransaction extends Transaction {
120
120
  }
121
121
  export namespace HieroProto {
122
122
  namespace proto {
123
- type ITransaction = import("@hashgraph/proto").proto.ITransaction;
124
- type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
125
- type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
126
- type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
123
+ type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
124
+ type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
125
+ type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
126
+ type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
127
127
  }
128
128
  }
129
129
  export type Channel = import("../channel/Channel.js").default;
@@ -131,4 +131,4 @@ export type TransactionId = import("../transaction/TransactionId.js").default;
131
131
  export type AccountId = import("../account/AccountId.js").default;
132
132
  export type Key = import("../Key.js").default;
133
133
  import Transaction from "./Transaction.js";
134
- import { proto } from "@hashgraph/proto";
134
+ import { proto } from "@hiero-ledger/proto";
@@ -1,2 +1,2 @@
1
- import t from"../system/FreezeTransaction.js";import a,{TRANSACTION_REGISTRY as r}from"./Transaction.js";import{proto as n}from"@hashgraph/proto";class o extends a{constructor(t){super(),this._batchTransactions=t?.transactions||[]}setInnerTransactions(t){return t.forEach(t=>this._validateTransaction(t)),this._batchTransactions=t,this}addInnerTransaction(t){return this._validateTransaction(t),this._requireNotFrozen(),this._batchTransactions.push(t),this}get innerTransactions(){return this._batchTransactions}get innerTransactionIds(){return Array.isArray(this._batchTransactions)?this._batchTransactions.map(t=>t.transactionId):[]}_makeTransactionData(){if(!Array.isArray(this._batchTransactions))return{transactions:[]};return{transactions:this._batchTransactions.map(t=>n.SignedTransaction.encode(t._signedTransactions.get(0)).finish())}}static _fromProtobuf(t,s,i,e,c){const h=c[0],d=h.atomicBatch?.transactions,T=d?.map(t=>n.SignedTransaction.decode(t)),u=T?.map(t=>{const a=n.TransactionBody.decode(t.bodyBytes),o=a.data;if(!o)throw new Error("Transaction type not found");const s=r.get(o);if(!s)throw new Error("fromProtobuf not found");return s([],[t],[],[],[a])});return a._fromProtobufTransactions(new o({transactions:u}),t,s,i,e,c)}_getTransactionDataCase(){return"atomicBatch"}_getLogId(){return`AtomicBatch:${this._transactionIds.current.validStart.toString()}`}_execute(t,a){return t.util.atomicBatch(a)}_validateTransaction(a){if(a instanceof o||a instanceof t)throw new Error("Transaction is not allowed to be added to a batch");if(!a.isFrozen())throw new Error("Transaction must be frozen before being added to a batch");if(!a.batchKey)throw new Error("Transaction must have a batch key")}}r.set("atomicBatch",o._fromProtobuf);export{o as default};
1
+ import t from"../system/FreezeTransaction.js";import a,{TRANSACTION_REGISTRY as r}from"./Transaction.js";import{proto as n}from"@hiero-ledger/proto";class o extends a{constructor(t){super(),this._batchTransactions=t?.transactions||[]}setInnerTransactions(t){return t.forEach(t=>this._validateTransaction(t)),this._batchTransactions=t,this}addInnerTransaction(t){return this._validateTransaction(t),this._requireNotFrozen(),this._batchTransactions.push(t),this}get innerTransactions(){return this._batchTransactions}get innerTransactionIds(){return Array.isArray(this._batchTransactions)?this._batchTransactions.map(t=>t.transactionId):[]}_makeTransactionData(){if(!Array.isArray(this._batchTransactions))return{transactions:[]};return{transactions:this._batchTransactions.map(t=>n.SignedTransaction.encode(t._signedTransactions.get(0)).finish())}}static _fromProtobuf(t,s,i,e,c){const h=c[0],d=h.atomicBatch?.transactions,T=d?.map(t=>n.SignedTransaction.decode(t)),u=T?.map(t=>{const a=n.TransactionBody.decode(t.bodyBytes),o=a.data;if(!o)throw new Error("Transaction type not found");const s=r.get(o);if(!s)throw new Error("fromProtobuf not found");return s([],[t],[],[],[a])});return a._fromProtobufTransactions(new o({transactions:u}),t,s,i,e,c)}_getTransactionDataCase(){return"atomicBatch"}_getLogId(){return`AtomicBatch:${this._transactionIds.current.validStart.toString()}`}_execute(t,a){return t.util.atomicBatch(a)}_validateTransaction(a){if(a instanceof o||a instanceof t)throw new Error("Transaction is not allowed to be added to a batch");if(!a.isFrozen())throw new Error("Transaction must be frozen before being added to a batch");if(!a.batchKey)throw new Error("Transaction must have a batch key")}}r.set("atomicBatch",o._fromProtobuf);export{o as default};
2
2
  //# sourceMappingURL=BatchTransaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BatchTransaction.js","sources":["../../src/transaction/BatchTransaction.js"],"sourcesContent":["import FreezeTransaction from \"../system/FreezeTransaction.js\";\nimport Transaction, { TRANSACTION_REGISTRY } from \"./Transaction.js\";\nimport { proto } from \"@hashgraph/proto\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hashgraph/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../Key.js\").default} Key\n */\n\n/**\n * @description Execute multiple transactions in a single consensus event. This allows for atomic execution of multiple\n * transactions, where they either all succeed or all fail together.\n * <p>\n * Requirements:\n * <ul>\n * <li>All inner transactions must be frozen before being added to the batch</li>\n * <li>All inner transactions must have a batch key set</li>\n * <li>All inner transactions must be signed as required for each individual transaction</li>\n * <li>The BatchTransaction must be signed by all batch keys of the inner transactions</li>\n * <li>Certain transaction types (FreezeTransaction, BatchTransaction) are not allowed in a batch</li>\n * </ul>\n * <p>\n * Important notes:\n * <ul>\n * <li>Fees are assessed for each inner transaction separately</li>\n * <li>The maximum number of inner transactions in a batch is limited to 25</li>\n * <li>Inner transactions cannot be scheduled transactions</li>\n * </ul>\n *\n */\nexport default class BatchTransaction extends Transaction {\n /**\n * @param {object} [options]\n * @param {Transaction[] | null} [options.transactions]\n */\n constructor(options) {\n super();\n this._batchTransactions = options?.transactions || [];\n }\n\n /**\n * Set the list of transactions to be executed as part of this BatchTransaction.\n * <p>\n * Requirements for each inner transaction:\n * <ul>\n * <li>Must be frozen (use {@link Transaction#freeze()} or {@link Transaction#freezeWith(Client)})</li>\n * <li>Must have a batch key set (use {@link Transaction#setBatchKey(Key)}} or {@link Transaction#batchify(Client, Key)})</li>\n * <li>Must not be a blacklisted transaction type</li>\n * </ul>\n * <p>\n * Note: This method creates a defensive copy of the provided list.\n *\n * @param {Transaction[]} txs\n * @returns {BatchTransaction}\n */\n setInnerTransactions(txs) {\n txs.forEach((tx) => this._validateTransaction(tx));\n this._batchTransactions = txs;\n return this;\n }\n\n /**\n * Append a transaction to the list of transactions this BatchTransaction will execute.\n * <p>\n * Requirements for the inner transaction:\n * <ul>\n * <li>Must be frozen (use {@link Transaction#freeze()} or {@link Transaction#freezeWith(Client)})</li>\n * <li>Must have a batch key set (use {@link Transaction#setBatchKey(Key)}} or {@link Transaction#batchify(Client, Key)})</li>\n * <li>Must not be a blacklisted transaction type</li>\n * </ul>\n *\n * @param {Transaction} tx\n * @returns {BatchTransaction}\n */\n addInnerTransaction(tx) {\n this._validateTransaction(tx);\n this._requireNotFrozen();\n this._batchTransactions.push(tx);\n return this;\n }\n\n /**\n * Get the list of transactions this BatchTransaction is currently configured to execute.\n * <p>\n * Note: This returns the actual list of transactions. Modifications to this list will affect\n * the batch transaction if it is not frozen.\n *\n * @returns {Transaction[]}\n */\n get innerTransactions() {\n return this._batchTransactions;\n }\n\n /**\n * Get the list of transaction IDs of each inner transaction of this BatchTransaction.\n * <p>\n * This method is particularly useful after execution to:\n * <ul>\n * <li>Track individual transaction results</li>\n * <li>Query receipts for specific inner transactions</li>\n * <li>Monitor the status of each transaction in the batch</li>\n * </ul>\n * <p>\n * <b>NOTE:</b> Transaction IDs will only be meaningful after the batch transaction has been\n * executed or the IDs have been explicitly set on the inner transactions.\n *\n * @returns {(TransactionId | null)[]}\n */\n get innerTransactionIds() {\n if (!Array.isArray(this._batchTransactions)) {\n return [];\n }\n\n return this._batchTransactions.map((tx) => tx.transactionId);\n }\n\n /**\n *\n * @returns {proto.AtomicBatchTransactionBody}\n */\n _makeTransactionData() {\n if (!Array.isArray(this._batchTransactions)) {\n return {\n transactions: [],\n };\n }\n\n const signedTransactionBytes = this._batchTransactions.map((tx) =>\n proto.SignedTransaction.encode(\n tx._signedTransactions.get(0),\n ).finish(),\n );\n return {\n transactions: signedTransactionBytes,\n };\n }\n\n /**\n * @internal\n * @param {proto.ITransaction[]} transactions\n * @param {proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {BatchTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const atomicBatchTxBytes = body.atomicBatch?.transactions;\n\n const atomicBatchSignedTransactions = atomicBatchTxBytes?.map((tx) =>\n proto.SignedTransaction.decode(tx),\n );\n\n const atomicBatchTxs = atomicBatchSignedTransactions?.map((tx) => {\n const txBody = proto.TransactionBody.decode(tx.bodyBytes);\n const txType = txBody.data;\n if (!txType) {\n throw new Error(\"Transaction type not found\");\n }\n\n const fromProtobuf = TRANSACTION_REGISTRY.get(txType);\n if (!fromProtobuf) {\n throw new Error(\"fromProtobuf not found\");\n }\n /* Inner transactions only have one signed transactios therefore\n the other properties are empty that are needed from the \n Transaction._fromProtobufTransactions method\n */\n\n /**\n * @type {proto.ITransaction[]}\n */\n const innerTransactions = [];\n /**\n * @type {proto.ISignedTransaction[]}\n */\n const signedInnerTransactions = [tx];\n /**\n * @type {TransactionId[]}\n */\n const innerTransactionIds = [];\n\n /**\n * Node account IDs is empty for inner transactions\n * @type {AccountId[]}\n */\n const nodeAccountIds = [];\n\n /**\n * @type {HieroProto.proto.TransactionBody[]}\n */\n const bodies = [txBody];\n\n return fromProtobuf(\n innerTransactions,\n signedInnerTransactions,\n innerTransactionIds,\n nodeAccountIds,\n bodies,\n );\n });\n\n return Transaction._fromProtobufTransactions(\n new BatchTransaction({\n transactions: atomicBatchTxs,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * This method returns a key for the `data` field in a transaction body.\n * Each transaction overwrite this to make sure when we build the transaction body\n * we set the right data field.\n *\n * @abstract\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"atomicBatch\";\n }\n\n /**\n * @description Get the log ID for the BatchTransaction.\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `AtomicBatch:${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.util.atomicBatch(request);\n }\n\n /**\n * @description Validate the transaction\n * @param {Transaction} tx\n * @throws {Error} If the transaction is a batch or freeze transaction\n */\n _validateTransaction(tx) {\n if (tx instanceof BatchTransaction || tx instanceof FreezeTransaction) {\n throw new Error(\n \"Transaction is not allowed to be added to a batch\",\n );\n }\n if (!tx.isFrozen()) {\n throw new Error(\n \"Transaction must be frozen before being added to a batch\",\n );\n }\n if (!tx.batchKey) {\n throw new Error(\"Transaction must have a batch key\");\n }\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"atomicBatch\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n BatchTransaction._fromProtobuf,\n);\n"],"names":["BatchTransaction","Transaction","constructor","options","super","this","_batchTransactions","transactions","setInnerTransactions","txs","forEach","tx","_validateTransaction","addInnerTransaction","_requireNotFrozen","push","innerTransactions","innerTransactionIds","Array","isArray","map","transactionId","_makeTransactionData","proto","SignedTransaction","encode","_signedTransactions","get","finish","_fromProtobuf","signedTransactions","transactionIds","nodeIds","bodies","body","atomicBatchTxBytes","atomicBatch","atomicBatchSignedTransactions","decode","atomicBatchTxs","txBody","TransactionBody","bodyBytes","txType","data","Error","fromProtobuf","TRANSACTION_REGISTRY","_fromProtobufTransactions","_getTransactionDataCase","_getLogId","_transactionIds","current","toString","_execute","channel","request","util","FreezeTransaction","isFrozen","batchKey","set"],"mappings":"kJAwCe,MAAMA,UAAyBC,EAK1C,WAAAC,CAAYC,GACRC,QACAC,KAAKC,mBAAqBH,GAASI,cAAgB,EAC3D,CAiBI,oBAAAC,CAAqBC,GAGjB,OAFAA,EAAIC,QAASC,GAAON,KAAKO,qBAAqBD,IAC9CN,KAAKC,mBAAqBG,EACnBJ,IACf,CAeI,mBAAAQ,CAAoBF,GAIhB,OAHAN,KAAKO,qBAAqBD,GAC1BN,KAAKS,oBACLT,KAAKC,mBAAmBS,KAAKJ,GACtBN,IACf,CAUI,qBAAIW,GACA,OAAOX,KAAKC,kBACpB,CAiBI,uBAAIW,GACA,OAAKC,MAAMC,QAAQd,KAAKC,oBAIjBD,KAAKC,mBAAmBc,IAAKT,GAAOA,EAAGU,eAHnC,EAInB,CAMI,oBAAAC,GACI,IAAKJ,MAAMC,QAAQd,KAAKC,oBACpB,MAAO,CACHC,aAAc,IAStB,MAAO,CACHA,aAN2BF,KAAKC,mBAAmBc,IAAKT,GACxDY,EAAMC,kBAAkBC,OACpBd,EAAGe,oBAAoBC,IAAI,IAC7BC,UAKd,CAWI,oBAAOC,CACHtB,EACAuB,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOD,EAAO,GACdE,EAAqBD,EAAKE,aAAa7B,aAEvC8B,EAAgCF,GAAoBf,IAAKT,GAC3DY,EAAMC,kBAAkBc,OAAO3B,IAG7B4B,EAAiBF,GAA+BjB,IAAKT,IACvD,MAAM6B,EAASjB,EAAMkB,gBAAgBH,OAAO3B,EAAG+B,WACzCC,EAASH,EAAOI,KACtB,IAAKD,EACD,MAAM,IAAIE,MAAM,8BAGpB,MAAMC,EAAeC,EAAqBpB,IAAIgB,GAC9C,IAAKG,EACD,MAAM,IAAID,MAAM,0BA+BpB,OAAOC,EArBmB,GAIM,CAACnC,GAIL,GAML,GAKR,CAAC6B,MAWpB,OAAOvC,EAAY+C,0BACf,IAAIhD,EAAiB,CACjBO,aAAcgC,IAElBhC,EACAuB,EACAC,EACAC,EACAC,EAEZ,CAWI,uBAAAgB,GACI,MAAO,aACf,CAMI,SAAAC,GAII,MAAO,eAFH7C,KAAK8C,gBAAgBC,QACxB,WAC+BC,YACxC,CASI,QAAAC,CAASC,EAASC,GACd,OAAOD,EAAQE,KAAKrB,YAAYoB,EACxC,CAOI,oBAAA5C,CAAqBD,GACjB,GAAIA,aAAcX,GAAoBW,aAAc+C,EAChD,MAAM,IAAIb,MACN,qDAGR,IAAKlC,EAAGgD,WACJ,MAAM,IAAId,MACN,4DAGR,IAAKlC,EAAGiD,SACJ,MAAM,IAAIf,MAAM,oCAE5B,EAGAE,EAAqBc,IACjB,cAEA7D,EAAiB6B"}
1
+ {"version":3,"file":"BatchTransaction.js","sources":["../../src/transaction/BatchTransaction.js"],"sourcesContent":["import FreezeTransaction from \"../system/FreezeTransaction.js\";\nimport Transaction, { TRANSACTION_REGISTRY } from \"./Transaction.js\";\nimport { proto } from \"@hiero-ledger/proto\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../Key.js\").default} Key\n */\n\n/**\n * @description Execute multiple transactions in a single consensus event. This allows for atomic execution of multiple\n * transactions, where they either all succeed or all fail together.\n * <p>\n * Requirements:\n * <ul>\n * <li>All inner transactions must be frozen before being added to the batch</li>\n * <li>All inner transactions must have a batch key set</li>\n * <li>All inner transactions must be signed as required for each individual transaction</li>\n * <li>The BatchTransaction must be signed by all batch keys of the inner transactions</li>\n * <li>Certain transaction types (FreezeTransaction, BatchTransaction) are not allowed in a batch</li>\n * </ul>\n * <p>\n * Important notes:\n * <ul>\n * <li>Fees are assessed for each inner transaction separately</li>\n * <li>The maximum number of inner transactions in a batch is limited to 25</li>\n * <li>Inner transactions cannot be scheduled transactions</li>\n * </ul>\n *\n */\nexport default class BatchTransaction extends Transaction {\n /**\n * @param {object} [options]\n * @param {Transaction[] | null} [options.transactions]\n */\n constructor(options) {\n super();\n this._batchTransactions = options?.transactions || [];\n }\n\n /**\n * Set the list of transactions to be executed as part of this BatchTransaction.\n * <p>\n * Requirements for each inner transaction:\n * <ul>\n * <li>Must be frozen (use {@link Transaction#freeze()} or {@link Transaction#freezeWith(Client)})</li>\n * <li>Must have a batch key set (use {@link Transaction#setBatchKey(Key)}} or {@link Transaction#batchify(Client, Key)})</li>\n * <li>Must not be a blacklisted transaction type</li>\n * </ul>\n * <p>\n * Note: This method creates a defensive copy of the provided list.\n *\n * @param {Transaction[]} txs\n * @returns {BatchTransaction}\n */\n setInnerTransactions(txs) {\n txs.forEach((tx) => this._validateTransaction(tx));\n this._batchTransactions = txs;\n return this;\n }\n\n /**\n * Append a transaction to the list of transactions this BatchTransaction will execute.\n * <p>\n * Requirements for the inner transaction:\n * <ul>\n * <li>Must be frozen (use {@link Transaction#freeze()} or {@link Transaction#freezeWith(Client)})</li>\n * <li>Must have a batch key set (use {@link Transaction#setBatchKey(Key)}} or {@link Transaction#batchify(Client, Key)})</li>\n * <li>Must not be a blacklisted transaction type</li>\n * </ul>\n *\n * @param {Transaction} tx\n * @returns {BatchTransaction}\n */\n addInnerTransaction(tx) {\n this._validateTransaction(tx);\n this._requireNotFrozen();\n this._batchTransactions.push(tx);\n return this;\n }\n\n /**\n * Get the list of transactions this BatchTransaction is currently configured to execute.\n * <p>\n * Note: This returns the actual list of transactions. Modifications to this list will affect\n * the batch transaction if it is not frozen.\n *\n * @returns {Transaction[]}\n */\n get innerTransactions() {\n return this._batchTransactions;\n }\n\n /**\n * Get the list of transaction IDs of each inner transaction of this BatchTransaction.\n * <p>\n * This method is particularly useful after execution to:\n * <ul>\n * <li>Track individual transaction results</li>\n * <li>Query receipts for specific inner transactions</li>\n * <li>Monitor the status of each transaction in the batch</li>\n * </ul>\n * <p>\n * <b>NOTE:</b> Transaction IDs will only be meaningful after the batch transaction has been\n * executed or the IDs have been explicitly set on the inner transactions.\n *\n * @returns {(TransactionId | null)[]}\n */\n get innerTransactionIds() {\n if (!Array.isArray(this._batchTransactions)) {\n return [];\n }\n\n return this._batchTransactions.map((tx) => tx.transactionId);\n }\n\n /**\n *\n * @returns {proto.AtomicBatchTransactionBody}\n */\n _makeTransactionData() {\n if (!Array.isArray(this._batchTransactions)) {\n return {\n transactions: [],\n };\n }\n\n const signedTransactionBytes = this._batchTransactions.map((tx) =>\n proto.SignedTransaction.encode(\n tx._signedTransactions.get(0),\n ).finish(),\n );\n return {\n transactions: signedTransactionBytes,\n };\n }\n\n /**\n * @internal\n * @param {proto.ITransaction[]} transactions\n * @param {proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {BatchTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const atomicBatchTxBytes = body.atomicBatch?.transactions;\n\n const atomicBatchSignedTransactions = atomicBatchTxBytes?.map((tx) =>\n proto.SignedTransaction.decode(tx),\n );\n\n const atomicBatchTxs = atomicBatchSignedTransactions?.map((tx) => {\n const txBody = proto.TransactionBody.decode(tx.bodyBytes);\n const txType = txBody.data;\n if (!txType) {\n throw new Error(\"Transaction type not found\");\n }\n\n const fromProtobuf = TRANSACTION_REGISTRY.get(txType);\n if (!fromProtobuf) {\n throw new Error(\"fromProtobuf not found\");\n }\n /* Inner transactions only have one signed transactios therefore\n the other properties are empty that are needed from the \n Transaction._fromProtobufTransactions method\n */\n\n /**\n * @type {proto.ITransaction[]}\n */\n const innerTransactions = [];\n /**\n * @type {proto.ISignedTransaction[]}\n */\n const signedInnerTransactions = [tx];\n /**\n * @type {TransactionId[]}\n */\n const innerTransactionIds = [];\n\n /**\n * Node account IDs is empty for inner transactions\n * @type {AccountId[]}\n */\n const nodeAccountIds = [];\n\n /**\n * @type {HieroProto.proto.TransactionBody[]}\n */\n const bodies = [txBody];\n\n return fromProtobuf(\n innerTransactions,\n signedInnerTransactions,\n innerTransactionIds,\n nodeAccountIds,\n bodies,\n );\n });\n\n return Transaction._fromProtobufTransactions(\n new BatchTransaction({\n transactions: atomicBatchTxs,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * This method returns a key for the `data` field in a transaction body.\n * Each transaction overwrite this to make sure when we build the transaction body\n * we set the right data field.\n *\n * @abstract\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"atomicBatch\";\n }\n\n /**\n * @description Get the log ID for the BatchTransaction.\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `AtomicBatch:${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.util.atomicBatch(request);\n }\n\n /**\n * @description Validate the transaction\n * @param {Transaction} tx\n * @throws {Error} If the transaction is a batch or freeze transaction\n */\n _validateTransaction(tx) {\n if (tx instanceof BatchTransaction || tx instanceof FreezeTransaction) {\n throw new Error(\n \"Transaction is not allowed to be added to a batch\",\n );\n }\n if (!tx.isFrozen()) {\n throw new Error(\n \"Transaction must be frozen before being added to a batch\",\n );\n }\n if (!tx.batchKey) {\n throw new Error(\"Transaction must have a batch key\");\n }\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"atomicBatch\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n BatchTransaction._fromProtobuf,\n);\n"],"names":["BatchTransaction","Transaction","constructor","options","super","this","_batchTransactions","transactions","setInnerTransactions","txs","forEach","tx","_validateTransaction","addInnerTransaction","_requireNotFrozen","push","innerTransactions","innerTransactionIds","Array","isArray","map","transactionId","_makeTransactionData","proto","SignedTransaction","encode","_signedTransactions","get","finish","_fromProtobuf","signedTransactions","transactionIds","nodeIds","bodies","body","atomicBatchTxBytes","atomicBatch","atomicBatchSignedTransactions","decode","atomicBatchTxs","txBody","TransactionBody","bodyBytes","txType","data","Error","fromProtobuf","TRANSACTION_REGISTRY","_fromProtobufTransactions","_getTransactionDataCase","_getLogId","_transactionIds","current","toString","_execute","channel","request","util","FreezeTransaction","isFrozen","batchKey","set"],"mappings":"qJAwCe,MAAMA,UAAyBC,EAK1C,WAAAC,CAAYC,GACRC,QACAC,KAAKC,mBAAqBH,GAASI,cAAgB,EAC3D,CAiBI,oBAAAC,CAAqBC,GAGjB,OAFAA,EAAIC,QAASC,GAAON,KAAKO,qBAAqBD,IAC9CN,KAAKC,mBAAqBG,EACnBJ,IACf,CAeI,mBAAAQ,CAAoBF,GAIhB,OAHAN,KAAKO,qBAAqBD,GAC1BN,KAAKS,oBACLT,KAAKC,mBAAmBS,KAAKJ,GACtBN,IACf,CAUI,qBAAIW,GACA,OAAOX,KAAKC,kBACpB,CAiBI,uBAAIW,GACA,OAAKC,MAAMC,QAAQd,KAAKC,oBAIjBD,KAAKC,mBAAmBc,IAAKT,GAAOA,EAAGU,eAHnC,EAInB,CAMI,oBAAAC,GACI,IAAKJ,MAAMC,QAAQd,KAAKC,oBACpB,MAAO,CACHC,aAAc,IAStB,MAAO,CACHA,aAN2BF,KAAKC,mBAAmBc,IAAKT,GACxDY,EAAMC,kBAAkBC,OACpBd,EAAGe,oBAAoBC,IAAI,IAC7BC,UAKd,CAWI,oBAAOC,CACHtB,EACAuB,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOD,EAAO,GACdE,EAAqBD,EAAKE,aAAa7B,aAEvC8B,EAAgCF,GAAoBf,IAAKT,GAC3DY,EAAMC,kBAAkBc,OAAO3B,IAG7B4B,EAAiBF,GAA+BjB,IAAKT,IACvD,MAAM6B,EAASjB,EAAMkB,gBAAgBH,OAAO3B,EAAG+B,WACzCC,EAASH,EAAOI,KACtB,IAAKD,EACD,MAAM,IAAIE,MAAM,8BAGpB,MAAMC,EAAeC,EAAqBpB,IAAIgB,GAC9C,IAAKG,EACD,MAAM,IAAID,MAAM,0BA+BpB,OAAOC,EArBmB,GAIM,CAACnC,GAIL,GAML,GAKR,CAAC6B,MAWpB,OAAOvC,EAAY+C,0BACf,IAAIhD,EAAiB,CACjBO,aAAcgC,IAElBhC,EACAuB,EACAC,EACAC,EACAC,EAEZ,CAWI,uBAAAgB,GACI,MAAO,aACf,CAMI,SAAAC,GAII,MAAO,eAFH7C,KAAK8C,gBAAgBC,QACxB,WAC+BC,YACxC,CASI,QAAAC,CAASC,EAASC,GACd,OAAOD,EAAQE,KAAKrB,YAAYoB,EACxC,CAOI,oBAAA5C,CAAqBD,GACjB,GAAIA,aAAcX,GAAoBW,aAAc+C,EAChD,MAAM,IAAIb,MACN,qDAGR,IAAKlC,EAAGgD,WACJ,MAAM,IAAId,MACN,4DAGR,IAAKlC,EAAGiD,SACJ,MAAM,IAAIf,MAAM,oCAE5B,EAGAE,EAAqBc,IACjB,cAEA7D,EAAiB6B"}
@@ -9,8 +9,8 @@ var _CustomFixedFee = _interopRequireDefault(require("../token/CustomFixedFee.cj
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  /**
11
11
  * @namespace proto
12
- * @typedef {import("@hashgraph/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
13
- * @typedef {import("@hashgraph/proto").proto.ICustomFeeLimit} HieroProto.proto.ICustomFeeLimit
12
+ * @typedef {import("@hiero-ledger/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
13
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFeeLimit} HieroProto.proto.ICustomFeeLimit
14
14
  */
15
15
 
16
16
  class CustomFeeLimit {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
4
- * @typedef {import("@hashgraph/proto").proto.ICustomFeeLimit} HieroProto.proto.ICustomFeeLimit
3
+ * @typedef {import("@hiero-ledger/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
4
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFeeLimit} HieroProto.proto.ICustomFeeLimit
5
5
  */
6
6
  export default class CustomFeeLimit {
7
7
  /**
@@ -56,8 +56,8 @@ export default class CustomFeeLimit {
56
56
  }
57
57
  export namespace HieroProto {
58
58
  namespace proto {
59
- type IFixedFee = import("@hashgraph/proto").proto.IFixedFee;
60
- type ICustomFeeLimit = import("@hashgraph/proto").proto.ICustomFeeLimit;
59
+ type IFixedFee = import("@hiero-ledger/proto").proto.IFixedFee;
60
+ type ICustomFeeLimit = import("@hiero-ledger/proto").proto.ICustomFeeLimit;
61
61
  }
62
62
  }
63
63
  import AccountId from "../account/AccountId.js";
@@ -1 +1 @@
1
- {"version":3,"file":"CustomFeeLimit.js","sources":["../../src/transaction/CustomFeeLimit.js"],"sourcesContent":["import AccountId from \"../account/AccountId.js\";\nimport CustomFixedFee from \"../token/CustomFixedFee.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.IFixedFee} HieroProto.proto.IFixedFee\n * @typedef {import(\"@hashgraph/proto\").proto.ICustomFeeLimit} HieroProto.proto.ICustomFeeLimit\n */\n\nexport default class CustomFeeLimit {\n /**\n *\n * @param {object} props\n * @param {?AccountId | string} [props.accountId]\n * @param {?CustomFixedFee[]} [props.fees]\n */\n constructor(props = {}) {\n /**\n * @type {?AccountId}\n */\n this._accountId = null;\n\n if (props.accountId) {\n this.setAccountId(props.accountId);\n }\n\n /**\n * @type {?CustomFixedFee[]}\n */\n this._fees = null;\n\n if (props.fees) {\n this.setFees(props.fees);\n }\n }\n\n /**\n * @static\n * @param {HieroProto.proto.ICustomFeeLimit} customFeeLimit\n * @returns {CustomFeeLimit}\n */\n static _fromProtobuf(customFeeLimit) {\n return new CustomFeeLimit({\n accountId:\n customFeeLimit.accountId != null\n ? AccountId._fromProtobuf(customFeeLimit.accountId)\n : null,\n fees:\n customFeeLimit.fees != null\n ? customFeeLimit.fees.map((fixedFee) => {\n return CustomFixedFee._fromProtobuf({\n fixedFee: fixedFee,\n });\n })\n : null,\n });\n }\n\n /**\n * @returns {?AccountId}\n */\n getAccountId() {\n return this._accountId;\n }\n\n /**\n *\n * @param {AccountId | string} accountId\n * @returns {this}\n */\n setAccountId(accountId) {\n if (accountId instanceof AccountId) {\n this._accountId = accountId;\n } else {\n this._accountId = AccountId.fromString(accountId);\n }\n return this;\n }\n\n /**\n * @returns {?CustomFixedFee[]}\n */\n getFees() {\n return this._fees;\n }\n\n /**\n *\n * @param {CustomFixedFee[]} fees\n * @returns {this}\n */\n setFees(fees) {\n this._fees = fees;\n\n return this;\n }\n\n /**\n *\n * @returns {HieroProto.proto.ICustomFeeLimit}\n */\n _toProtobuf() {\n /** @type {HieroProto.proto.IFixedFee[]} */\n const protoFixedFees = [];\n\n if (this._fees != null) {\n this._fees.forEach((fixedFee) => {\n const fixedFeeProto = fixedFee._toProtobuf();\n if (fixedFeeProto.fixedFee != null) {\n protoFixedFees.push(fixedFeeProto.fixedFee);\n }\n });\n }\n\n return {\n accountId:\n this._accountId != null ? this._accountId._toProtobuf() : null,\n fees: protoFixedFees,\n };\n }\n}\n"],"names":["CustomFeeLimit","constructor","props","this","_accountId","accountId","setAccountId","_fees","fees","setFees","_fromProtobuf","customFeeLimit","AccountId","map","fixedFee","CustomFixedFee","getAccountId","fromString","getFees","_toProtobuf","protoFixedFees","forEach","fixedFeeProto","push"],"mappings":"iFASe,MAAMA,EAOjB,WAAAC,CAAYC,EAAQ,IAIhBC,KAAKC,WAAa,KAEdF,EAAMG,WACNF,KAAKG,aAAaJ,EAAMG,WAM5BF,KAAKI,MAAQ,KAETL,EAAMM,MACNL,KAAKM,QAAQP,EAAMM,KAE/B,CAOI,oBAAOE,CAAcC,GACjB,OAAO,IAAIX,EAAe,CACtBK,UACgC,MAA5BM,EAAeN,UACTO,EAAUF,cAAcC,EAAeN,WACvC,KACVG,KAC2B,MAAvBG,EAAeH,KACTG,EAAeH,KAAKK,IAAKC,GACdC,EAAeL,cAAc,CAChCI,SAAUA,KAGlB,MAEtB,CAKI,YAAAE,GACI,OAAOb,KAAKC,UACpB,CAOI,YAAAE,CAAaD,GAMT,OAJIF,KAAKC,WADLC,aAAqBO,EACHP,EAEAO,EAAUK,WAAWZ,GAEpCF,IACf,CAKI,OAAAe,GACI,OAAOf,KAAKI,KACpB,CAOI,OAAAE,CAAQD,GAGJ,OAFAL,KAAKI,MAAQC,EAENL,IACf,CAMI,WAAAgB,GAEI,MAAMC,EAAiB,GAWvB,OATkB,MAAdjB,KAAKI,OACLJ,KAAKI,MAAMc,QAASP,IAChB,MAAMQ,EAAgBR,EAASK,cACD,MAA1BG,EAAcR,UACdM,EAAeG,KAAKD,EAAcR,YAKvC,CACHT,UACuB,MAAnBF,KAAKC,WAAqBD,KAAKC,WAAWe,cAAgB,KAC9DX,KAAMY,EAElB"}
1
+ {"version":3,"file":"CustomFeeLimit.js","sources":["../../src/transaction/CustomFeeLimit.js"],"sourcesContent":["import AccountId from \"../account/AccountId.js\";\nimport CustomFixedFee from \"../token/CustomFixedFee.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFixedFee} HieroProto.proto.IFixedFee\n * @typedef {import(\"@hiero-ledger/proto\").proto.ICustomFeeLimit} HieroProto.proto.ICustomFeeLimit\n */\n\nexport default class CustomFeeLimit {\n /**\n *\n * @param {object} props\n * @param {?AccountId | string} [props.accountId]\n * @param {?CustomFixedFee[]} [props.fees]\n */\n constructor(props = {}) {\n /**\n * @type {?AccountId}\n */\n this._accountId = null;\n\n if (props.accountId) {\n this.setAccountId(props.accountId);\n }\n\n /**\n * @type {?CustomFixedFee[]}\n */\n this._fees = null;\n\n if (props.fees) {\n this.setFees(props.fees);\n }\n }\n\n /**\n * @static\n * @param {HieroProto.proto.ICustomFeeLimit} customFeeLimit\n * @returns {CustomFeeLimit}\n */\n static _fromProtobuf(customFeeLimit) {\n return new CustomFeeLimit({\n accountId:\n customFeeLimit.accountId != null\n ? AccountId._fromProtobuf(customFeeLimit.accountId)\n : null,\n fees:\n customFeeLimit.fees != null\n ? customFeeLimit.fees.map((fixedFee) => {\n return CustomFixedFee._fromProtobuf({\n fixedFee: fixedFee,\n });\n })\n : null,\n });\n }\n\n /**\n * @returns {?AccountId}\n */\n getAccountId() {\n return this._accountId;\n }\n\n /**\n *\n * @param {AccountId | string} accountId\n * @returns {this}\n */\n setAccountId(accountId) {\n if (accountId instanceof AccountId) {\n this._accountId = accountId;\n } else {\n this._accountId = AccountId.fromString(accountId);\n }\n return this;\n }\n\n /**\n * @returns {?CustomFixedFee[]}\n */\n getFees() {\n return this._fees;\n }\n\n /**\n *\n * @param {CustomFixedFee[]} fees\n * @returns {this}\n */\n setFees(fees) {\n this._fees = fees;\n\n return this;\n }\n\n /**\n *\n * @returns {HieroProto.proto.ICustomFeeLimit}\n */\n _toProtobuf() {\n /** @type {HieroProto.proto.IFixedFee[]} */\n const protoFixedFees = [];\n\n if (this._fees != null) {\n this._fees.forEach((fixedFee) => {\n const fixedFeeProto = fixedFee._toProtobuf();\n if (fixedFeeProto.fixedFee != null) {\n protoFixedFees.push(fixedFeeProto.fixedFee);\n }\n });\n }\n\n return {\n accountId:\n this._accountId != null ? this._accountId._toProtobuf() : null,\n fees: protoFixedFees,\n };\n }\n}\n"],"names":["CustomFeeLimit","constructor","props","this","_accountId","accountId","setAccountId","_fees","fees","setFees","_fromProtobuf","customFeeLimit","AccountId","map","fixedFee","CustomFixedFee","getAccountId","fromString","getFees","_toProtobuf","protoFixedFees","forEach","fixedFeeProto","push"],"mappings":"iFASe,MAAMA,EAOjB,WAAAC,CAAYC,EAAQ,IAIhBC,KAAKC,WAAa,KAEdF,EAAMG,WACNF,KAAKG,aAAaJ,EAAMG,WAM5BF,KAAKI,MAAQ,KAETL,EAAMM,MACNL,KAAKM,QAAQP,EAAMM,KAE/B,CAOI,oBAAOE,CAAcC,GACjB,OAAO,IAAIX,EAAe,CACtBK,UACgC,MAA5BM,EAAeN,UACTO,EAAUF,cAAcC,EAAeN,WACvC,KACVG,KAC2B,MAAvBG,EAAeH,KACTG,EAAeH,KAAKK,IAAKC,GACdC,EAAeL,cAAc,CAChCI,SAAUA,KAGlB,MAEtB,CAKI,YAAAE,GACI,OAAOb,KAAKC,UACpB,CAOI,YAAAE,CAAaD,GAMT,OAJIF,KAAKC,WADLC,aAAqBO,EACHP,EAEAO,EAAUK,WAAWZ,GAEpCF,IACf,CAKI,OAAAe,GACI,OAAOf,KAAKI,KACpB,CAOI,OAAAE,CAAQD,GAGJ,OAFAL,KAAKI,MAAQC,EAENL,IACf,CAMI,WAAAgB,GAEI,MAAMC,EAAiB,GAWvB,OATkB,MAAdjB,KAAKI,OACLJ,KAAKI,MAAMc,QAASP,IAChB,MAAMQ,EAAgBR,EAASK,cACD,MAA1BG,EAAcR,UACdM,EAAeG,KAAKD,EAAcR,YAKvC,CACHT,UACuB,MAAnBF,KAAKC,WAAqBD,KAAKC,WAAWe,cAAgB,KAC9DX,KAAMY,EAElB"}
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
  var _ObjectMap = _interopRequireDefault(require("../ObjectMap.cjs"));
8
8
  var _TransactionId = _interopRequireDefault(require("./TransactionId.cjs"));
9
9
  var _SignaturePairMap = _interopRequireDefault(require("./SignaturePairMap.cjs"));
10
- var HieroProto = _interopRequireWildcard(require("@hashgraph/proto"));
10
+ var HieroProto = _interopRequireWildcard(require("@hiero-ledger/proto"));
11
11
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
13
  // SPDX-License-Identifier: Apache-2.0
@@ -22,7 +22,7 @@ class NodeAccountIdSignatureMap extends _ObjectMap.default {
22
22
 
23
23
  /**
24
24
  * This function is used to create a NodeAccountIdSignaturemap from an already built transaction.
25
- * @param { import('./List.js').default<import("@hashgraph/proto").proto.ISignedTransaction>} signedTransactions
25
+ * @param { import('./List.js').default<import("@hiero-ledger/proto").proto.ISignedTransaction>} signedTransactions
26
26
  * @returns {NodeAccountIdSignatureMap}
27
27
  */
28
28
  static _fromSignedTransactions(signedTransactions) {
@@ -4,10 +4,10 @@
4
4
  export default class NodeAccountIdSignatureMap extends ObjectMap<TransactionId, SignaturePairMap> {
5
5
  /**
6
6
  * This function is used to create a NodeAccountIdSignaturemap from an already built transaction.
7
- * @param { import('./List.js').default<import("@hashgraph/proto").proto.ISignedTransaction>} signedTransactions
7
+ * @param { import('./List.js').default<import("@hiero-ledger/proto").proto.ISignedTransaction>} signedTransactions
8
8
  * @returns {NodeAccountIdSignatureMap}
9
9
  */
10
- static _fromSignedTransactions(signedTransactions: import("./List.js").default<import("@hashgraph/proto").proto.ISignedTransaction>): NodeAccountIdSignatureMap;
10
+ static _fromSignedTransactions(signedTransactions: import("./List.js").default<import("@hiero-ledger/proto").proto.ISignedTransaction>): NodeAccountIdSignatureMap;
11
11
  constructor();
12
12
  /**
13
13
  *
@@ -1,2 +1,2 @@
1
- import t from"../ObjectMap.js";import o from"./TransactionId.js";import r from"./SignaturePairMap.js";import*as a from"@hashgraph/proto";class n extends t{constructor(){super(t=>o.fromString(t))}static _fromSignedTransactions(t){const s=new n;for(const{bodyBytes:n,sigMap:i}of t.list)if(null!=n&&null!=i){const t=a.proto.TransactionBody.decode(n);if(null!=t.transactionID){const a=o._fromProtobuf(t.transactionID);s._set(a,r._fromTransactionSigMap(i))}}return s}addSignature(t,o,a){const n=this.get(t);n?n.addSignature(o,a):this._set(t,(new r).addSignature(o,a))}}export{n as default};
1
+ import t from"../ObjectMap.js";import o from"./TransactionId.js";import r from"./SignaturePairMap.js";import*as n from"@hiero-ledger/proto";class s extends t{constructor(){super(t=>o.fromString(t))}static _fromSignedTransactions(t){const a=new s;for(const{bodyBytes:s,sigMap:i}of t.list)if(null!=s&&null!=i){const t=n.proto.TransactionBody.decode(s);if(null!=t.transactionID){const n=o._fromProtobuf(t.transactionID);a._set(n,r._fromTransactionSigMap(i))}}return a}addSignature(t,o,n){const s=this.get(t);s?s.addSignature(o,n):this._set(t,(new r).addSignature(o,n))}}export{s as default};
2
2
  //# sourceMappingURL=NodeAccountIdSignatureMap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodeAccountIdSignatureMap.js","sources":["../../src/transaction/NodeAccountIdSignatureMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ObjectMap from \"../ObjectMap.js\";\nimport TransactionId from \"./TransactionId.js\";\nimport SignaturePairMap from \"./SignaturePairMap.js\";\nimport * as HieroProto from \"@hashgraph/proto\";\n\n/**\n * @augments {ObjectMap<TransactionId, SignaturePairMap>}\n */\nexport default class NodeAccountIdSignatureMap extends ObjectMap {\n constructor() {\n super((s) => TransactionId.fromString(s));\n }\n\n /**\n * This function is used to create a NodeAccountIdSignaturemap from an already built transaction.\n * @param { import('./List.js').default<import(\"@hashgraph/proto\").proto.ISignedTransaction>} signedTransactions\n * @returns {NodeAccountIdSignatureMap}\n */\n static _fromSignedTransactions(signedTransactions) {\n const signatures = new NodeAccountIdSignatureMap();\n\n for (const { bodyBytes, sigMap } of signedTransactions.list) {\n if (bodyBytes != null && sigMap != null) {\n const body = HieroProto.proto.TransactionBody.decode(bodyBytes);\n\n if (body.transactionID != null) {\n const transactionId = TransactionId._fromProtobuf(\n body.transactionID,\n );\n\n signatures._set(\n transactionId,\n SignaturePairMap._fromTransactionSigMap(sigMap),\n );\n }\n }\n }\n\n return signatures;\n }\n\n /**\n *\n * Adds a signature pair for this transaction id.\n * @param {TransactionId} txId\n * @param {import(\"../SignerSignature.js\").PublicKey} publicKey\n * @param {Uint8Array} signature\n */\n addSignature(txId, publicKey, signature) {\n const sigPairMap = this.get(txId);\n if (sigPairMap) {\n sigPairMap.addSignature(publicKey, signature);\n } else {\n this._set(\n txId,\n new SignaturePairMap().addSignature(publicKey, signature),\n );\n }\n }\n}\n"],"names":["NodeAccountIdSignatureMap","ObjectMap","constructor","super","s","TransactionId","fromString","_fromSignedTransactions","signedTransactions","signatures","bodyBytes","sigMap","list","body","HieroProto","proto","TransactionBody","decode","transactionID","transactionId","_fromProtobuf","_set","SignaturePairMap","_fromTransactionSigMap","addSignature","txId","publicKey","signature","sigPairMap","this","get"],"mappings":"yIAUe,MAAMA,UAAkCC,EACnD,WAAAC,GACIC,MAAOC,GAAMC,EAAcC,WAAWF,GAC9C,CAOI,8BAAOG,CAAwBC,GAC3B,MAAMC,EAAa,IAAIT,EAEvB,IAAK,MAAMU,UAAEA,EAASC,OAAEA,KAAYH,EAAmBI,KACnD,GAAiB,MAAbF,GAA+B,MAAVC,EAAgB,CACrC,MAAME,EAAOC,EAAWC,MAAMC,gBAAgBC,OAAOP,GAErD,GAA0B,MAAtBG,EAAKK,cAAuB,CAC5B,MAAMC,EAAgBd,EAAce,cAChCP,EAAKK,eAGTT,EAAWY,KACPF,EACAG,EAAiBC,uBAAuBZ,GAEhE,CACA,CAGQ,OAAOF,CACf,CASI,YAAAe,CAAaC,EAAMC,EAAWC,GAC1B,MAAMC,EAAaC,KAAKC,IAAIL,GACxBG,EACAA,EAAWJ,aAAaE,EAAWC,GAEnCE,KAAKR,KACDI,GACA,IAAIH,GAAmBE,aAAaE,EAAWC,GAG/D"}
1
+ {"version":3,"file":"NodeAccountIdSignatureMap.js","sources":["../../src/transaction/NodeAccountIdSignatureMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ObjectMap from \"../ObjectMap.js\";\nimport TransactionId from \"./TransactionId.js\";\nimport SignaturePairMap from \"./SignaturePairMap.js\";\nimport * as HieroProto from \"@hiero-ledger/proto\";\n\n/**\n * @augments {ObjectMap<TransactionId, SignaturePairMap>}\n */\nexport default class NodeAccountIdSignatureMap extends ObjectMap {\n constructor() {\n super((s) => TransactionId.fromString(s));\n }\n\n /**\n * This function is used to create a NodeAccountIdSignaturemap from an already built transaction.\n * @param { import('./List.js').default<import(\"@hiero-ledger/proto\").proto.ISignedTransaction>} signedTransactions\n * @returns {NodeAccountIdSignatureMap}\n */\n static _fromSignedTransactions(signedTransactions) {\n const signatures = new NodeAccountIdSignatureMap();\n\n for (const { bodyBytes, sigMap } of signedTransactions.list) {\n if (bodyBytes != null && sigMap != null) {\n const body = HieroProto.proto.TransactionBody.decode(bodyBytes);\n\n if (body.transactionID != null) {\n const transactionId = TransactionId._fromProtobuf(\n body.transactionID,\n );\n\n signatures._set(\n transactionId,\n SignaturePairMap._fromTransactionSigMap(sigMap),\n );\n }\n }\n }\n\n return signatures;\n }\n\n /**\n *\n * Adds a signature pair for this transaction id.\n * @param {TransactionId} txId\n * @param {import(\"../SignerSignature.js\").PublicKey} publicKey\n * @param {Uint8Array} signature\n */\n addSignature(txId, publicKey, signature) {\n const sigPairMap = this.get(txId);\n if (sigPairMap) {\n sigPairMap.addSignature(publicKey, signature);\n } else {\n this._set(\n txId,\n new SignaturePairMap().addSignature(publicKey, signature),\n );\n }\n }\n}\n"],"names":["NodeAccountIdSignatureMap","ObjectMap","constructor","super","s","TransactionId","fromString","_fromSignedTransactions","signedTransactions","signatures","bodyBytes","sigMap","list","body","HieroProto","proto","TransactionBody","decode","transactionID","transactionId","_fromProtobuf","_set","SignaturePairMap","_fromTransactionSigMap","addSignature","txId","publicKey","signature","sigPairMap","this","get"],"mappings":"4IAUe,MAAMA,UAAkCC,EACnD,WAAAC,GACIC,MAAOC,GAAMC,EAAcC,WAAWF,GAC9C,CAOI,8BAAOG,CAAwBC,GAC3B,MAAMC,EAAa,IAAIT,EAEvB,IAAK,MAAMU,UAAEA,EAASC,OAAEA,KAAYH,EAAmBI,KACnD,GAAiB,MAAbF,GAA+B,MAAVC,EAAgB,CACrC,MAAME,EAAOC,EAAWC,MAAMC,gBAAgBC,OAAOP,GAErD,GAA0B,MAAtBG,EAAKK,cAAuB,CAC5B,MAAMC,EAAgBd,EAAce,cAChCP,EAAKK,eAGTT,EAAWY,KACPF,EACAG,EAAiBC,uBAAuBZ,GAEhE,CACA,CAGQ,OAAOF,CACf,CASI,YAAAe,CAAaC,EAAMC,EAAWC,GAC1B,MAAMC,EAAaC,KAAKC,IAAIL,GACxBG,EACAA,EAAWJ,aAAaE,EAAWC,GAEnCE,KAAKR,KACDI,GACA,IAAIH,GAAmBE,aAAaE,EAAWC,GAG/D"}
@@ -17,7 +17,7 @@ class NodeAccountIdSignatureMap extends _ObjectMap.default {
17
17
  }
18
18
 
19
19
  /**
20
- * @param {import("@hashgraph/proto").proto.ISignatureMap} sigMap
20
+ * @param {import("@hiero-ledger/proto").proto.ISignatureMap} sigMap
21
21
  * @returns {NodeAccountIdSignatureMap}
22
22
  */
23
23
  static _fromTransactionSigMap(sigMap) {
@@ -4,10 +4,10 @@
4
4
  */
5
5
  export default class NodeAccountIdSignatureMap extends ObjectMap<PublicKey, Uint8Array<ArrayBufferLike>> {
6
6
  /**
7
- * @param {import("@hashgraph/proto").proto.ISignatureMap} sigMap
7
+ * @param {import("@hiero-ledger/proto").proto.ISignatureMap} sigMap
8
8
  * @returns {NodeAccountIdSignatureMap}
9
9
  */
10
- static _fromTransactionSigMap(sigMap: import("@hashgraph/proto").proto.ISignatureMap): NodeAccountIdSignatureMap;
10
+ static _fromTransactionSigMap(sigMap: import("@hiero-ledger/proto").proto.ISignatureMap): NodeAccountIdSignatureMap;
11
11
  constructor();
12
12
  }
13
13
  import PublicKey from "../PublicKey.js";
@@ -1 +1 @@
1
- {"version":3,"file":"NodeAccountIdSignatureMapLegacy.js","sources":["../../src/transaction/NodeAccountIdSignatureMapLegacy.js"],"sourcesContent":["import ObjectMap from \"../ObjectMap.js\";\nimport PublicKey from \"../PublicKey.js\";\n\n/**\n * @deprecated\n * @augments {ObjectMap<PublicKey, Uint8Array>}\n */\nexport default class NodeAccountIdSignatureMap extends ObjectMap {\n constructor() {\n super((s) => PublicKey.fromString(s));\n }\n\n /**\n * @param {import(\"@hashgraph/proto\").proto.ISignatureMap} sigMap\n * @returns {NodeAccountIdSignatureMap}\n */\n static _fromTransactionSigMap(sigMap) {\n // eslint-disable-next-line deprecation/deprecation\n const signatures = new NodeAccountIdSignatureMap();\n const sigPairs = sigMap.sigPair != null ? sigMap.sigPair : [];\n\n for (const sigPair of sigPairs) {\n if (sigPair.pubKeyPrefix != null) {\n if (sigPair.ed25519 != null) {\n signatures._set(\n PublicKey.fromBytesED25519(sigPair.pubKeyPrefix),\n sigPair.ed25519,\n );\n } else if (sigPair.ECDSASecp256k1 != null) {\n signatures._set(\n PublicKey.fromBytesECDSA(sigPair.pubKeyPrefix),\n\n sigPair.ECDSASecp256k1,\n );\n }\n }\n }\n\n return signatures;\n }\n}\n"],"names":["NodeAccountIdSignatureMap","ObjectMap","constructor","super","s","PublicKey","fromString","_fromTransactionSigMap","sigMap","signatures","sigPairs","sigPair","pubKeyPrefix","ed25519","_set","fromBytesED25519","ECDSASecp256k1","fromBytesECDSA"],"mappings":"8DAOe,MAAMA,UAAkCC,EACnD,WAAAC,GACIC,MAAOC,GAAMC,EAAUC,WAAWF,GAC1C,CAMI,6BAAOG,CAAuBC,GAE1B,MAAMC,EAAa,IAAIT,EACjBU,EAA6B,MAAlBF,EAAOG,QAAkBH,EAAOG,QAAU,GAE3D,IAAK,MAAMA,KAAWD,EACU,MAAxBC,EAAQC,eACe,MAAnBD,EAAQE,QACRJ,EAAWK,KACPT,EAAUU,iBAAiBJ,EAAQC,cACnCD,EAAQE,SAEqB,MAA1BF,EAAQK,gBACfP,EAAWK,KACPT,EAAUY,eAAeN,EAAQC,cAEjCD,EAAQK,iBAMxB,OAAOP,CACf"}
1
+ {"version":3,"file":"NodeAccountIdSignatureMapLegacy.js","sources":["../../src/transaction/NodeAccountIdSignatureMapLegacy.js"],"sourcesContent":["import ObjectMap from \"../ObjectMap.js\";\nimport PublicKey from \"../PublicKey.js\";\n\n/**\n * @deprecated\n * @augments {ObjectMap<PublicKey, Uint8Array>}\n */\nexport default class NodeAccountIdSignatureMap extends ObjectMap {\n constructor() {\n super((s) => PublicKey.fromString(s));\n }\n\n /**\n * @param {import(\"@hiero-ledger/proto\").proto.ISignatureMap} sigMap\n * @returns {NodeAccountIdSignatureMap}\n */\n static _fromTransactionSigMap(sigMap) {\n // eslint-disable-next-line deprecation/deprecation\n const signatures = new NodeAccountIdSignatureMap();\n const sigPairs = sigMap.sigPair != null ? sigMap.sigPair : [];\n\n for (const sigPair of sigPairs) {\n if (sigPair.pubKeyPrefix != null) {\n if (sigPair.ed25519 != null) {\n signatures._set(\n PublicKey.fromBytesED25519(sigPair.pubKeyPrefix),\n sigPair.ed25519,\n );\n } else if (sigPair.ECDSASecp256k1 != null) {\n signatures._set(\n PublicKey.fromBytesECDSA(sigPair.pubKeyPrefix),\n\n sigPair.ECDSASecp256k1,\n );\n }\n }\n }\n\n return signatures;\n }\n}\n"],"names":["NodeAccountIdSignatureMap","ObjectMap","constructor","super","s","PublicKey","fromString","_fromTransactionSigMap","sigMap","signatures","sigPairs","sigPair","pubKeyPrefix","ed25519","_set","fromBytesED25519","ECDSASecp256k1","fromBytesECDSA"],"mappings":"8DAOe,MAAMA,UAAkCC,EACnD,WAAAC,GACIC,MAAOC,GAAMC,EAAUC,WAAWF,GAC1C,CAMI,6BAAOG,CAAuBC,GAE1B,MAAMC,EAAa,IAAIT,EACjBU,EAA6B,MAAlBF,EAAOG,QAAkBH,EAAOG,QAAU,GAE3D,IAAK,MAAMA,KAAWD,EACU,MAAxBC,EAAQC,eACe,MAAnBD,EAAQE,QACRJ,EAAWK,KACPT,EAAUU,iBAAiBJ,EAAQC,cACnCD,EAAQE,SAEqB,MAA1BF,EAAQK,gBACfP,EAAWK,KACPT,EAAUY,eAAeN,EAAQC,cAEjCD,EAAQK,iBAMxB,OAAOP,CACf"}
@@ -48,7 +48,7 @@ class SignatureMap extends _ObjectMap.default {
48
48
  signed transactions are for the second node account id and so on.
49
49
  */
50
50
  for (let row = 0; row < rowLength; row++) {
51
- /** @type { List<import("@hashgraph/proto").proto.ISignedTransaction> } */
51
+ /** @type { List<import("@hiero-ledger/proto").proto.ISignedTransaction> } */
52
52
  const signedTransactions = new _List.default();
53
53
  for (let col = 0; col < columns; col++) {
54
54
  signedTransactions.push(transaction._signedTransactions.get(col * rowLength + row));
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureMap.js","sources":["../../src/transaction/SignatureMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport NodeAccountIdSignatureMap from \"./NodeAccountIdSignatureMap.js\";\nimport ObjectMap from \"../ObjectMap.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport List from \"./List.js\";\n\n/**\n * Represents a mapping of account IDs to their corresponding signatures for transactions.\n *\n * The `SignatureMap` class is used to manage and store signatures associated with\n * different accounts in a transaction. It allows for adding signatures, retrieving\n * them, and converting the signature map to and from various formats.\n */\n\n/**\n * @augments {ObjectMap<AccountId, NodeAccountIdSignatureMap>}\n */\nexport default class SignatureMap extends ObjectMap {\n /**\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"../transaction/SignaturePairMap.js\").default} SignaturePairMap\n */\n constructor() {\n super((s) => AccountId.fromString(s));\n }\n\n /**\n * This function is used to create a SignatureMap from an already built transaction.\n * @param {import(\"./Transaction.js\").default} transaction\n * @returns {SignatureMap}\n */\n static _fromTransaction(transaction) {\n const signatures = new SignatureMap();\n\n const rowLength = transaction._nodeAccountIds.length;\n const columns = transaction._signedTransactions.length / rowLength;\n\n /*\n this setup implies that the signed transactions are stored sequentially\n in the signed transactions list. This means that the first rowLength\n signed transactions are for the first node account id, the next rowLength\n signed transactions are for the second node account id and so on.\n */\n for (let row = 0; row < rowLength; row++) {\n /** @type { List<import(\"@hashgraph/proto\").proto.ISignedTransaction> } */\n const signedTransactions = new List();\n\n for (let col = 0; col < columns; col++) {\n signedTransactions.push(\n transaction._signedTransactions.get(col * rowLength + row),\n );\n }\n\n signatures._set(\n transaction._nodeAccountIds.list[row],\n NodeAccountIdSignatureMap._fromSignedTransactions(\n signedTransactions,\n ),\n );\n }\n\n return signatures;\n }\n\n /**\n * Updates the signature map with the given signature.\n * by generating a new node account id signature map if it does not exist\n * or adding the signature to the existing node account id signature map.\n *\n * @param {AccountId} nodeId\n * @param {TransactionId} txId\n * @param {import(\"../SignerSignature.js\").PublicKey} publicKey\n * @param {Uint8Array} signature\n * @returns {SignatureMap}\n */\n addSignature(nodeId, txId, publicKey, signature) {\n let nodeAccountIdSigdMap = this.get(nodeId);\n\n if (!nodeAccountIdSigdMap) {\n nodeAccountIdSigdMap = new NodeAccountIdSignatureMap();\n this._set(nodeId, nodeAccountIdSigdMap);\n }\n\n nodeAccountIdSigdMap.addSignature(txId, publicKey, signature);\n this._set(nodeId, nodeAccountIdSigdMap);\n\n return this;\n }\n /**\n * @returns {SignaturePairMap[]}\n */\n getFlatSignatureList() {\n const flatSignatureList = [];\n\n for (const nodeAccountIdSignatureMap of this.values()) {\n for (const tx of nodeAccountIdSignatureMap.values()) {\n flatSignatureList.push(tx);\n }\n }\n\n return flatSignatureList;\n }\n}\n"],"names":["SignatureMap","ObjectMap","constructor","super","s","AccountId","fromString","_fromTransaction","transaction","signatures","rowLength","_nodeAccountIds","length","columns","_signedTransactions","row","signedTransactions","List","col","push","get","_set","list","NodeAccountIdSignatureMap","_fromSignedTransactions","addSignature","nodeId","txId","publicKey","signature","nodeAccountIdSigdMap","this","getFlatSignatureList","flatSignatureList","nodeAccountIdSignatureMap","values","tx"],"mappings":"6IAkBe,MAAMA,UAAqBC,EAKtC,WAAAC,GACIC,MAAOC,GAAMC,EAAUC,WAAWF,GAC1C,CAOI,uBAAOG,CAAiBC,GACpB,MAAMC,EAAa,IAAIT,EAEjBU,EAAYF,EAAYG,gBAAgBC,OACxCC,EAAUL,EAAYM,oBAAoBF,OAASF,EAQzD,IAAK,IAAIK,EAAM,EAAGA,EAAML,EAAWK,IAAO,CAEtC,MAAMC,EAAqB,IAAIC,EAE/B,IAAK,IAAIC,EAAM,EAAGA,EAAML,EAASK,IAC7BF,EAAmBG,KACfX,EAAYM,oBAAoBM,IAAIF,EAAMR,EAAYK,IAI9DN,EAAWY,KACPb,EAAYG,gBAAgBW,KAAKP,GACjCQ,EAA0BC,wBACtBR,GAGpB,CAEQ,OAAOP,CACf,CAaI,YAAAgB,CAAaC,EAAQC,EAAMC,EAAWC,GAClC,IAAIC,EAAuBC,KAAKX,IAAIM,GAUpC,OARKI,IACDA,EAAuB,IAAIP,EAC3BQ,KAAKV,KAAKK,EAAQI,IAGtBA,EAAqBL,aAAaE,EAAMC,EAAWC,GACnDE,KAAKV,KAAKK,EAAQI,GAEXC,IACf,CAII,oBAAAC,GACI,MAAMC,EAAoB,GAE1B,IAAK,MAAMC,KAA6BH,KAAKI,SACzC,IAAK,MAAMC,KAAMF,EAA0BC,SACvCF,EAAkBd,KAAKiB,GAI/B,OAAOH,CACf"}
1
+ {"version":3,"file":"SignatureMap.js","sources":["../../src/transaction/SignatureMap.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport NodeAccountIdSignatureMap from \"./NodeAccountIdSignatureMap.js\";\nimport ObjectMap from \"../ObjectMap.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport List from \"./List.js\";\n\n/**\n * Represents a mapping of account IDs to their corresponding signatures for transactions.\n *\n * The `SignatureMap` class is used to manage and store signatures associated with\n * different accounts in a transaction. It allows for adding signatures, retrieving\n * them, and converting the signature map to and from various formats.\n */\n\n/**\n * @augments {ObjectMap<AccountId, NodeAccountIdSignatureMap>}\n */\nexport default class SignatureMap extends ObjectMap {\n /**\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"../transaction/SignaturePairMap.js\").default} SignaturePairMap\n */\n constructor() {\n super((s) => AccountId.fromString(s));\n }\n\n /**\n * This function is used to create a SignatureMap from an already built transaction.\n * @param {import(\"./Transaction.js\").default} transaction\n * @returns {SignatureMap}\n */\n static _fromTransaction(transaction) {\n const signatures = new SignatureMap();\n\n const rowLength = transaction._nodeAccountIds.length;\n const columns = transaction._signedTransactions.length / rowLength;\n\n /*\n this setup implies that the signed transactions are stored sequentially\n in the signed transactions list. This means that the first rowLength\n signed transactions are for the first node account id, the next rowLength\n signed transactions are for the second node account id and so on.\n */\n for (let row = 0; row < rowLength; row++) {\n /** @type { List<import(\"@hiero-ledger/proto\").proto.ISignedTransaction> } */\n const signedTransactions = new List();\n\n for (let col = 0; col < columns; col++) {\n signedTransactions.push(\n transaction._signedTransactions.get(col * rowLength + row),\n );\n }\n\n signatures._set(\n transaction._nodeAccountIds.list[row],\n NodeAccountIdSignatureMap._fromSignedTransactions(\n signedTransactions,\n ),\n );\n }\n\n return signatures;\n }\n\n /**\n * Updates the signature map with the given signature.\n * by generating a new node account id signature map if it does not exist\n * or adding the signature to the existing node account id signature map.\n *\n * @param {AccountId} nodeId\n * @param {TransactionId} txId\n * @param {import(\"../SignerSignature.js\").PublicKey} publicKey\n * @param {Uint8Array} signature\n * @returns {SignatureMap}\n */\n addSignature(nodeId, txId, publicKey, signature) {\n let nodeAccountIdSigdMap = this.get(nodeId);\n\n if (!nodeAccountIdSigdMap) {\n nodeAccountIdSigdMap = new NodeAccountIdSignatureMap();\n this._set(nodeId, nodeAccountIdSigdMap);\n }\n\n nodeAccountIdSigdMap.addSignature(txId, publicKey, signature);\n this._set(nodeId, nodeAccountIdSigdMap);\n\n return this;\n }\n /**\n * @returns {SignaturePairMap[]}\n */\n getFlatSignatureList() {\n const flatSignatureList = [];\n\n for (const nodeAccountIdSignatureMap of this.values()) {\n for (const tx of nodeAccountIdSignatureMap.values()) {\n flatSignatureList.push(tx);\n }\n }\n\n return flatSignatureList;\n }\n}\n"],"names":["SignatureMap","ObjectMap","constructor","super","s","AccountId","fromString","_fromTransaction","transaction","signatures","rowLength","_nodeAccountIds","length","columns","_signedTransactions","row","signedTransactions","List","col","push","get","_set","list","NodeAccountIdSignatureMap","_fromSignedTransactions","addSignature","nodeId","txId","publicKey","signature","nodeAccountIdSigdMap","this","getFlatSignatureList","flatSignatureList","nodeAccountIdSignatureMap","values","tx"],"mappings":"6IAkBe,MAAMA,UAAqBC,EAKtC,WAAAC,GACIC,MAAOC,GAAMC,EAAUC,WAAWF,GAC1C,CAOI,uBAAOG,CAAiBC,GACpB,MAAMC,EAAa,IAAIT,EAEjBU,EAAYF,EAAYG,gBAAgBC,OACxCC,EAAUL,EAAYM,oBAAoBF,OAASF,EAQzD,IAAK,IAAIK,EAAM,EAAGA,EAAML,EAAWK,IAAO,CAEtC,MAAMC,EAAqB,IAAIC,EAE/B,IAAK,IAAIC,EAAM,EAAGA,EAAML,EAASK,IAC7BF,EAAmBG,KACfX,EAAYM,oBAAoBM,IAAIF,EAAMR,EAAYK,IAI9DN,EAAWY,KACPb,EAAYG,gBAAgBW,KAAKP,GACjCQ,EAA0BC,wBACtBR,GAGpB,CAEQ,OAAOP,CACf,CAaI,YAAAgB,CAAaC,EAAQC,EAAMC,EAAWC,GAClC,IAAIC,EAAuBC,KAAKX,IAAIM,GAUpC,OARKI,IACDA,EAAuB,IAAIP,EAC3BQ,KAAKV,KAAKK,EAAQI,IAGtBA,EAAqBL,aAAaE,EAAMC,EAAWC,GACnDE,KAAKV,KAAKK,EAAQI,GAEXC,IACf,CAII,oBAAAC,GACI,MAAMC,EAAoB,GAE1B,IAAK,MAAMC,KAA6BH,KAAKI,SACzC,IAAK,MAAMC,KAAMF,EAA0BC,SACvCF,EAAkBd,KAAKiB,GAI/B,OAAOH,CACf"}
@@ -17,7 +17,7 @@ class SignaturePairMap extends _ObjectMap.default {
17
17
 
18
18
  /**
19
19
  * This function is used to create a SignaturePairMap from an already built transaction.
20
- * @param {import("@hashgraph/proto").proto.ISignatureMap} sigMap
20
+ * @param {import("@hiero-ledger/proto").proto.ISignatureMap} sigMap
21
21
  * @returns {SignaturePairMap}
22
22
  */
23
23
  static _fromTransactionSigMap(sigMap) {
@@ -4,10 +4,10 @@
4
4
  export default class SignaturePairMap extends ObjectMap<PublicKey, Uint8Array<ArrayBufferLike>> {
5
5
  /**
6
6
  * This function is used to create a SignaturePairMap from an already built transaction.
7
- * @param {import("@hashgraph/proto").proto.ISignatureMap} sigMap
7
+ * @param {import("@hiero-ledger/proto").proto.ISignatureMap} sigMap
8
8
  * @returns {SignaturePairMap}
9
9
  */
10
- static _fromTransactionSigMap(sigMap: import("@hashgraph/proto").proto.ISignatureMap): SignaturePairMap;
10
+ static _fromTransactionSigMap(sigMap: import("@hiero-ledger/proto").proto.ISignatureMap): SignaturePairMap;
11
11
  constructor();
12
12
  /**
13
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"SignaturePairMap.js","sources":["../../src/transaction/SignaturePairMap.js"],"sourcesContent":["import ObjectMap from \"../ObjectMap.js\";\nimport PublicKey from \"../PublicKey.js\";\n\n/**\n * @augments {ObjectMap<PublicKey, Uint8Array>}\n */\nexport default class SignaturePairMap extends ObjectMap {\n constructor() {\n super((s) => PublicKey.fromString(s));\n }\n\n /**\n * This function is used to create a SignaturePairMap from an already built transaction.\n * @param {import(\"@hashgraph/proto\").proto.ISignatureMap} sigMap\n * @returns {SignaturePairMap}\n */\n static _fromTransactionSigMap(sigMap) {\n const signatures = new SignaturePairMap();\n\n const sigPairs = sigMap.sigPair != null ? sigMap.sigPair : [];\n\n for (const sigPair of sigPairs) {\n if (sigPair.pubKeyPrefix == null) {\n continue;\n }\n\n if (sigPair.ed25519 != null) {\n signatures._set(\n PublicKey.fromBytesED25519(sigPair.pubKeyPrefix),\n sigPair.ed25519,\n );\n } else if (sigPair.ECDSASecp256k1 != null) {\n signatures._set(\n PublicKey.fromBytesECDSA(sigPair.pubKeyPrefix),\n sigPair.ECDSASecp256k1,\n );\n }\n }\n\n return signatures;\n }\n\n /**\n *\n * @param {PublicKey} pubKey\n * @param {Uint8Array} signature\n * @returns {SignaturePairMap}\n */\n addSignature(pubKey, signature) {\n this._set(pubKey, signature);\n return this;\n }\n}\n"],"names":["SignaturePairMap","ObjectMap","constructor","super","s","PublicKey","fromString","_fromTransactionSigMap","sigMap","signatures","sigPairs","sigPair","pubKeyPrefix","ed25519","_set","fromBytesED25519","ECDSASecp256k1","fromBytesECDSA","addSignature","pubKey","signature","this"],"mappings":"8DAMe,MAAMA,UAAyBC,EAC1C,WAAAC,GACIC,MAAOC,GAAMC,EAAUC,WAAWF,GAC1C,CAOI,6BAAOG,CAAuBC,GAC1B,MAAMC,EAAa,IAAIT,EAEjBU,EAA6B,MAAlBF,EAAOG,QAAkBH,EAAOG,QAAU,GAE3D,IAAK,MAAMA,KAAWD,EACU,MAAxBC,EAAQC,eAIW,MAAnBD,EAAQE,QACRJ,EAAWK,KACPT,EAAUU,iBAAiBJ,EAAQC,cACnCD,EAAQE,SAEqB,MAA1BF,EAAQK,gBACfP,EAAWK,KACPT,EAAUY,eAAeN,EAAQC,cACjCD,EAAQK,iBAKpB,OAAOP,CACf,CAQI,YAAAS,CAAaC,EAAQC,GAEjB,OADAC,KAAKP,KAAKK,EAAQC,GACXC,IACf"}
1
+ {"version":3,"file":"SignaturePairMap.js","sources":["../../src/transaction/SignaturePairMap.js"],"sourcesContent":["import ObjectMap from \"../ObjectMap.js\";\nimport PublicKey from \"../PublicKey.js\";\n\n/**\n * @augments {ObjectMap<PublicKey, Uint8Array>}\n */\nexport default class SignaturePairMap extends ObjectMap {\n constructor() {\n super((s) => PublicKey.fromString(s));\n }\n\n /**\n * This function is used to create a SignaturePairMap from an already built transaction.\n * @param {import(\"@hiero-ledger/proto\").proto.ISignatureMap} sigMap\n * @returns {SignaturePairMap}\n */\n static _fromTransactionSigMap(sigMap) {\n const signatures = new SignaturePairMap();\n\n const sigPairs = sigMap.sigPair != null ? sigMap.sigPair : [];\n\n for (const sigPair of sigPairs) {\n if (sigPair.pubKeyPrefix == null) {\n continue;\n }\n\n if (sigPair.ed25519 != null) {\n signatures._set(\n PublicKey.fromBytesED25519(sigPair.pubKeyPrefix),\n sigPair.ed25519,\n );\n } else if (sigPair.ECDSASecp256k1 != null) {\n signatures._set(\n PublicKey.fromBytesECDSA(sigPair.pubKeyPrefix),\n sigPair.ECDSASecp256k1,\n );\n }\n }\n\n return signatures;\n }\n\n /**\n *\n * @param {PublicKey} pubKey\n * @param {Uint8Array} signature\n * @returns {SignaturePairMap}\n */\n addSignature(pubKey, signature) {\n this._set(pubKey, signature);\n return this;\n }\n}\n"],"names":["SignaturePairMap","ObjectMap","constructor","super","s","PublicKey","fromString","_fromTransactionSigMap","sigMap","signatures","sigPairs","sigPair","pubKeyPrefix","ed25519","_set","fromBytesED25519","ECDSASecp256k1","fromBytesECDSA","addSignature","pubKey","signature","this"],"mappings":"8DAMe,MAAMA,UAAyBC,EAC1C,WAAAC,GACIC,MAAOC,GAAMC,EAAUC,WAAWF,GAC1C,CAOI,6BAAOG,CAAuBC,GAC1B,MAAMC,EAAa,IAAIT,EAEjBU,EAA6B,MAAlBF,EAAOG,QAAkBH,EAAOG,QAAU,GAE3D,IAAK,MAAMA,KAAWD,EACU,MAAxBC,EAAQC,eAIW,MAAnBD,EAAQE,QACRJ,EAAWK,KACPT,EAAUU,iBAAiBJ,EAAQC,cACnCD,EAAQE,SAEqB,MAA1BF,EAAQK,gBACfP,EAAWK,KACPT,EAAUY,eAAeN,EAAQC,cACjCD,EAAQK,iBAKpB,OAAOP,CACf,CAQI,YAAAS,CAAaC,EAAQC,GAEjB,OADAC,KAAKP,KAAKK,EAAQC,GACXC,IACf"}
@@ -15,7 +15,7 @@ var _Status = _interopRequireDefault(require("../Status.cjs"));
15
15
  var _long = _interopRequireDefault(require("long"));
16
16
  var sha384 = _interopRequireWildcard(require("../cryptography/sha384.cjs"));
17
17
  var hex = _interopRequireWildcard(require("../encoding/hex.cjs"));
18
- var HieroProto = _interopRequireWildcard(require("@hashgraph/proto"));
18
+ var HieroProto = _interopRequireWildcard(require("@hiero-ledger/proto"));
19
19
  var _PrecheckStatusError = _interopRequireDefault(require("../PrecheckStatusError.cjs"));
20
20
  var _AccountId = _interopRequireDefault(require("../account/AccountId.cjs"));
21
21
  var _PublicKey = _interopRequireDefault(require("../PublicKey.cjs"));
@@ -693,7 +693,7 @@ export type Client = import("../client/Client.js").default<any, any>;
693
693
  export type Signer = import("../Signer.js").Signer;
694
694
  import Long from "long";
695
695
  import Hbar from "../Hbar.js";
696
- import * as HieroProto from "@hashgraph/proto";
696
+ import * as HieroProto from "@hiero-ledger/proto";
697
697
  import TransactionId from "./TransactionId.js";
698
698
  import AccountId from "../account/AccountId.js";
699
699
  import TransactionResponse from "./TransactionResponse.js";