@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
@@ -1 +1 @@
1
- {"version":3,"file":"SystemUndeleteTransaction.js","sources":["../../src/system/SystemUndeleteTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport FileId from \"../file/FileId.js\";\nimport ContractId from \"../contract/ContractId.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hashgraph/proto\").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction\n * @typedef {import(\"@hashgraph/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n * @typedef {import(\"@hashgraph/proto\").proto.ISystemUndeleteTransactionBody} HieroProto.proto.ISystemUndeleteTransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.IContractID} HieroProto.proto.IContractID\n * @typedef {import(\"@hashgraph/proto\").proto.IFileID} HieroProto.proto.IFileID\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../Timestamp.js\").default} Timestamp\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Deprecated: Do not use.\n * @deprecated\n */\nexport default class SystemUndeleteTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {FileId | string} [props.fileId]\n * @param {ContractId | string} [props.contractId]\n * @param {Timestamp} [props.expirationTime]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?FileId}\n */\n this._fileId = null;\n\n /**\n * @private\n * @type {?ContractId}\n */\n this._contractId = null;\n\n if (props.fileId != null) {\n this.setFileId(props.fileId);\n }\n\n if (props.contractId != null) {\n this.setContractId(props.contractId);\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 {SystemUndeleteTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const systemUndelete =\n /** @type {HieroProto.proto.ISystemUndeleteTransactionBody} */ (\n body.systemUndelete\n );\n\n return Transaction._fromProtobufTransactions(\n // eslint-disable-next-line deprecation/deprecation\n new SystemUndeleteTransaction({\n fileId:\n systemUndelete.fileID != null\n ? FileId._fromProtobuf(\n /** @type {HieroProto.proto.IFileID} */ (\n systemUndelete.fileID\n ),\n )\n : undefined,\n contractId:\n systemUndelete.contractID != null\n ? ContractId._fromProtobuf(\n /** @type {HieroProto.proto.IContractID} */ (\n systemUndelete.contractID\n ),\n )\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?FileId}\n */\n get fileId() {\n return this._fileId;\n }\n\n /**\n * @param {FileId | string} fileId\n * @returns {this}\n */\n setFileId(fileId) {\n this._requireNotFrozen();\n this._fileId =\n fileId instanceof FileId ? fileId : FileId.fromString(fileId);\n\n return this;\n }\n\n /**\n * @returns {?ContractId}\n */\n get contractId() {\n return this._contractId;\n }\n\n /**\n * @param {ContractId | string} contractId\n * @returns {this}\n */\n setContractId(contractId) {\n this._requireNotFrozen();\n this._contractId =\n contractId instanceof ContractId\n ? contractId\n : ContractId.fromString(contractId);\n\n return this;\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n if (this._fileId != null) {\n return channel.file.systemUndelete(request);\n } else {\n return channel.smartContract.systemUndelete(request);\n }\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"systemUndelete\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ISystemUndeleteTransactionBody}\n */\n _makeTransactionData() {\n return {\n fileID: this._fileId != null ? this._fileId._toProtobuf() : null,\n contractID:\n this._contractId != null\n ? this._contractId._toProtobuf()\n : null,\n };\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 `SystemUndeleteTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"systemUndelete\",\n // eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation\n SystemUndeleteTransaction._fromProtobuf,\n);\n"],"names":["SystemUndeleteTransaction","Transaction","constructor","props","super","this","_fileId","_contractId","fileId","setFileId","contractId","setContractId","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","systemUndelete","_fromProtobufTransactions","fileID","FileId","undefined","contractID","ContractId","_requireNotFrozen","fromString","_execute","channel","request","file","smartContract","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"kJA+Be,MAAMA,UAAkCC,EAOnD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,QAAU,KAMfD,KAAKE,YAAc,KAEC,MAAhBJ,EAAMK,QACNH,KAAKI,UAAUN,EAAMK,QAGD,MAApBL,EAAMO,YACNL,KAAKM,cAAcR,EAAMO,WAErC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,eAEL,OAAOhB,EAAYkB,0BAEf,IAAInB,EAA0B,CAC1BQ,OAC6B,MAAzBU,EAAeE,OACTC,EAAOT,cAECM,EAClC,aAE0BI,EACVZ,WACiC,MAA7BQ,EAAeK,WACTC,EAAWZ,cAEHM,EAClC,iBAE0BI,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,UAAIT,GACA,OAAOH,KAAKC,OACpB,CAMI,SAAAG,CAAUD,GAKN,OAJAH,KAAKoB,oBACLpB,KAAKC,QACDE,aAAkBa,EAASb,EAASa,EAAOK,WAAWlB,GAEnDH,IACf,CAKI,cAAIK,GACA,OAAOL,KAAKE,WACpB,CAMI,aAAAI,CAAcD,GAOV,OANAL,KAAKoB,oBACLpB,KAAKE,YACDG,aAAsBc,EAChBd,EACAc,EAAWE,WAAWhB,GAEzBL,IACf,CASI,QAAAsB,CAASC,EAASC,GACd,OAAoB,MAAhBxB,KAAKC,QACEsB,EAAQE,KAAKZ,eAAeW,GAE5BD,EAAQG,cAAcb,eAAeW,EAExD,CAOI,uBAAAG,GACI,MAAO,gBACf,CAOI,oBAAAC,GACI,MAAO,CACHb,OAAwB,MAAhBf,KAAKC,QAAkBD,KAAKC,QAAQ4B,cAAgB,KAC5DX,WACwB,MAApBlB,KAAKE,YACCF,KAAKE,YAAY2B,cACjB,KAEtB,CAKI,SAAAC,GAII,MAAO,6BAFH9B,KAAK+B,gBAAgBC,QACxB,WAC6CC,YACtD,EAGAC,EAAqBC,IACjB,iBAEAxC,EAA0BY"}
1
+ {"version":3,"file":"SystemUndeleteTransaction.js","sources":["../../src/system/SystemUndeleteTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport FileId from \"../file/FileId.js\";\nimport ContractId from \"../contract/ContractId.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransaction} HieroProto.proto.ITransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction\n * @typedef {import(\"@hiero-ledger/proto\").proto.TransactionBody} HieroProto.proto.TransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionBody} HieroProto.proto.ITransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.ISystemUndeleteTransactionBody} HieroProto.proto.ISystemUndeleteTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.IContractID} HieroProto.proto.IContractID\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFileID} HieroProto.proto.IFileID\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../Timestamp.js\").default} Timestamp\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Deprecated: Do not use.\n * @deprecated\n */\nexport default class SystemUndeleteTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {FileId | string} [props.fileId]\n * @param {ContractId | string} [props.contractId]\n * @param {Timestamp} [props.expirationTime]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?FileId}\n */\n this._fileId = null;\n\n /**\n * @private\n * @type {?ContractId}\n */\n this._contractId = null;\n\n if (props.fileId != null) {\n this.setFileId(props.fileId);\n }\n\n if (props.contractId != null) {\n this.setContractId(props.contractId);\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 {SystemUndeleteTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const systemUndelete =\n /** @type {HieroProto.proto.ISystemUndeleteTransactionBody} */ (\n body.systemUndelete\n );\n\n return Transaction._fromProtobufTransactions(\n // eslint-disable-next-line deprecation/deprecation\n new SystemUndeleteTransaction({\n fileId:\n systemUndelete.fileID != null\n ? FileId._fromProtobuf(\n /** @type {HieroProto.proto.IFileID} */ (\n systemUndelete.fileID\n ),\n )\n : undefined,\n contractId:\n systemUndelete.contractID != null\n ? ContractId._fromProtobuf(\n /** @type {HieroProto.proto.IContractID} */ (\n systemUndelete.contractID\n ),\n )\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?FileId}\n */\n get fileId() {\n return this._fileId;\n }\n\n /**\n * @param {FileId | string} fileId\n * @returns {this}\n */\n setFileId(fileId) {\n this._requireNotFrozen();\n this._fileId =\n fileId instanceof FileId ? fileId : FileId.fromString(fileId);\n\n return this;\n }\n\n /**\n * @returns {?ContractId}\n */\n get contractId() {\n return this._contractId;\n }\n\n /**\n * @param {ContractId | string} contractId\n * @returns {this}\n */\n setContractId(contractId) {\n this._requireNotFrozen();\n this._contractId =\n contractId instanceof ContractId\n ? contractId\n : ContractId.fromString(contractId);\n\n return this;\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n if (this._fileId != null) {\n return channel.file.systemUndelete(request);\n } else {\n return channel.smartContract.systemUndelete(request);\n }\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"systemUndelete\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ISystemUndeleteTransactionBody}\n */\n _makeTransactionData() {\n return {\n fileID: this._fileId != null ? this._fileId._toProtobuf() : null,\n contractID:\n this._contractId != null\n ? this._contractId._toProtobuf()\n : null,\n };\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 `SystemUndeleteTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"systemUndelete\",\n // eslint-disable-next-line @typescript-eslint/unbound-method, deprecation/deprecation\n SystemUndeleteTransaction._fromProtobuf,\n);\n"],"names":["SystemUndeleteTransaction","Transaction","constructor","props","super","this","_fileId","_contractId","fileId","setFileId","contractId","setContractId","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","systemUndelete","_fromProtobufTransactions","fileID","FileId","undefined","contractID","ContractId","_requireNotFrozen","fromString","_execute","channel","request","file","smartContract","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"kJA+Be,MAAMA,UAAkCC,EAOnD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,QAAU,KAMfD,KAAKE,YAAc,KAEC,MAAhBJ,EAAMK,QACNH,KAAKI,UAAUN,EAAMK,QAGD,MAApBL,EAAMO,YACNL,KAAKM,cAAcR,EAAMO,WAErC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,eAEL,OAAOhB,EAAYkB,0BAEf,IAAInB,EAA0B,CAC1BQ,OAC6B,MAAzBU,EAAeE,OACTC,EAAOT,cAECM,EAClC,aAE0BI,EACVZ,WACiC,MAA7BQ,EAAeK,WACTC,EAAWZ,cAEHM,EAClC,iBAE0BI,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,UAAIT,GACA,OAAOH,KAAKC,OACpB,CAMI,SAAAG,CAAUD,GAKN,OAJAH,KAAKoB,oBACLpB,KAAKC,QACDE,aAAkBa,EAASb,EAASa,EAAOK,WAAWlB,GAEnDH,IACf,CAKI,cAAIK,GACA,OAAOL,KAAKE,WACpB,CAMI,aAAAI,CAAcD,GAOV,OANAL,KAAKoB,oBACLpB,KAAKE,YACDG,aAAsBc,EAChBd,EACAc,EAAWE,WAAWhB,GAEzBL,IACf,CASI,QAAAsB,CAASC,EAASC,GACd,OAAoB,MAAhBxB,KAAKC,QACEsB,EAAQE,KAAKZ,eAAeW,GAE5BD,EAAQG,cAAcb,eAAeW,EAExD,CAOI,uBAAAG,GACI,MAAO,gBACf,CAOI,oBAAAC,GACI,MAAO,CACHb,OAAwB,MAAhBf,KAAKC,QAAkBD,KAAKC,QAAQ4B,cAAgB,KAC5DX,WACwB,MAApBlB,KAAKE,YACCF,KAAKE,YAAY2B,cACjB,KAEtB,CAKI,SAAAC,GAII,MAAO,6BAFH9B,KAAK+B,gBAAgBC,QACxB,WAC6CC,YACtD,EAGAC,EAAqBC,IACjB,iBAEAxC,EAA0BY"}
@@ -24,7 +24,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
24
24
 
25
25
  /**
26
26
  * @namespace proto
27
- * @typedef {import("@hashgraph/proto").proto.ITokenAirdropTransactionBody} HieroProto.proto.ITokenAirdropTransactionBody
27
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenAirdropTransactionBody} HieroProto.proto.ITokenAirdropTransactionBody
28
28
  */
29
29
 
30
30
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @namespace proto
6
- * @typedef {import("@hashgraph/proto").proto.ITokenAirdropTransactionBody} HieroProto.proto.ITokenAirdropTransactionBody
6
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenAirdropTransactionBody} HieroProto.proto.ITokenAirdropTransactionBody
7
7
  */
8
8
  /**
9
9
  * @typedef {object} TransferTokensInput
@@ -116,7 +116,7 @@ export default class AbstractTokenTransferTransaction extends Transaction {
116
116
  export type BigNumber = import("bignumber.js").default;
117
117
  export namespace HieroProto {
118
118
  namespace proto {
119
- type ITokenAirdropTransactionBody = import("@hashgraph/proto").proto.ITokenAirdropTransactionBody;
119
+ type ITokenAirdropTransactionBody = import("@hiero-ledger/proto").proto.ITokenAirdropTransactionBody;
120
120
  }
121
121
  }
122
122
  export type TransferTokensInput = {
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractTokenTransferTransaction.js","sources":["../../src/token/AbstractTokenTransferTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\nimport TokenTransfer from \"./TokenTransfer.js\";\nimport TokenNftTransfer from \"../token/TokenNftTransfer.js\";\nimport TokenId from \"./TokenId.js\";\nimport NftId from \"./NftId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Transaction from \"../transaction/Transaction.js\";\nimport NullableTokenDecimalMap from \"../account/NullableTokenDecimalMap.js\";\nimport TokenNftTransferMap from \"../account/TokenNftTransferMap.js\";\nimport TokenTransferMap from \"../account/TokenTransferMap.js\";\nimport TokenTransferAccountMap from \"../account/TokenTransferAccountMap.js\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenAirdropTransactionBody} HieroProto.proto.ITokenAirdropTransactionBody\n */\n\n/**\n * @typedef {object} TransferTokensInput\n * @property {TokenId | string} tokenId\n * @property {AccountId | string} accountId\n * @property {Long | number | BigNumber | bigint} amount\n */\n\n/**\n * @typedef {object} TransferNftInput\n * @property {TokenId | string} tokenId\n * @property {AccountId | string} sender\n * @property {AccountId | string} recipient\n * @property {Long | number} serial\n */\n\nexport default class AbstractTokenTransferTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {(TransferTokensInput)[]} [props.tokenTransfers]\n * @param {(TransferNftInput)[]} [props.nftTransfers]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @protected\n * @type {TokenTransfer[]}\n */\n this._tokenTransfers = [];\n\n /**\n * @protected\n * @type {TokenNftTransfer[]}\n */\n this._nftTransfers = [];\n\n for (const transfer of props.tokenTransfers != null\n ? props.tokenTransfers\n : []) {\n this.addTokenTransfer(\n transfer.tokenId,\n transfer.accountId,\n transfer.amount,\n );\n }\n\n for (const transfer of props.nftTransfers != null\n ? props.nftTransfers\n : []) {\n this.addNftTransfer(\n transfer.tokenId,\n transfer.serial,\n transfer.sender,\n transfer.recipient,\n );\n }\n }\n\n /**\n * @param {NftId | TokenId | string} tokenIdOrNftId\n * @param {AccountId | string | Long | number} senderAccountIdOrSerialNumber\n * @param {AccountId | string} receiverAccountIdOrSenderAccountId\n * @param {(AccountId | string)=} receiver\n * @returns {this}\n */\n addNftTransfer(\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n ) {\n return this._addNftTransfer(\n false,\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n );\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @param {AccountId | string} accountId\n * @param {number | Long | BigNumber | bigint} amount\n * @param {boolean} isApproved\n * @param {number | null} expectedDecimals\n * @returns {this}\n */\n _addTokenTransfer(\n tokenId,\n accountId,\n amount,\n isApproved,\n expectedDecimals,\n ) {\n this._requireNotFrozen();\n\n const token =\n tokenId instanceof TokenId ? tokenId : TokenId.fromString(tokenId);\n const account =\n accountId instanceof AccountId\n ? accountId\n : AccountId.fromString(accountId);\n const value = convertAmountToLong(amount);\n\n for (const tokenTransfer of this._tokenTransfers) {\n if (\n tokenTransfer.tokenId.compare(token) === 0 &&\n tokenTransfer.accountId.compare(account) === 0\n ) {\n tokenTransfer.amount = tokenTransfer.amount.add(value);\n tokenTransfer.expectedDecimals = expectedDecimals;\n return this;\n }\n }\n\n this._tokenTransfers.push(\n new TokenTransfer({\n tokenId,\n accountId,\n expectedDecimals: expectedDecimals,\n amount,\n isApproved,\n }),\n );\n\n return this;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @param {AccountId | string} accountId\n * @param {number | Long | BigNumber | bigint} amount\n * @returns {this}\n */\n addTokenTransfer(tokenId, accountId, amount) {\n return this._addTokenTransfer(tokenId, accountId, amount, false, null);\n }\n\n /**\n * @param {boolean} isApproved\n * @param {NftId | TokenId | string} tokenIdOrNftId\n * @param {AccountId | string | Long | number} senderAccountIdOrSerialNumber\n * @param {AccountId | string} receiverAccountIdOrSenderAccountId\n * @param {(AccountId | string)=} receiver\n * @returns {this}\n */\n _addNftTransfer(\n isApproved,\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n ) {\n this._requireNotFrozen();\n\n let nftId;\n let senderAccountId;\n let receiverAccountId;\n\n if (tokenIdOrNftId instanceof NftId) {\n nftId = tokenIdOrNftId;\n senderAccountId =\n typeof senderAccountIdOrSerialNumber === \"string\"\n ? AccountId.fromString(senderAccountIdOrSerialNumber)\n : /** @type {AccountId} */ (senderAccountIdOrSerialNumber);\n receiverAccountId =\n typeof receiverAccountIdOrSenderAccountId === \"string\"\n ? AccountId.fromString(receiverAccountIdOrSenderAccountId)\n : /** @type {AccountId} */ (\n receiverAccountIdOrSenderAccountId\n );\n } else if (tokenIdOrNftId instanceof TokenId) {\n nftId = new NftId(\n tokenIdOrNftId,\n /** @type {Long} */ (senderAccountIdOrSerialNumber),\n );\n senderAccountId =\n typeof receiverAccountIdOrSenderAccountId === \"string\"\n ? AccountId.fromString(receiverAccountIdOrSenderAccountId)\n : /** @type {AccountId} */ (\n receiverAccountIdOrSenderAccountId\n );\n receiverAccountId =\n typeof receiver === \"string\"\n ? AccountId.fromString(receiver)\n : /** @type {AccountId} */ (receiver);\n } else {\n try {\n nftId = NftId.fromString(tokenIdOrNftId);\n senderAccountId =\n typeof senderAccountIdOrSerialNumber === \"string\"\n ? AccountId.fromString(senderAccountIdOrSerialNumber)\n : /** @type {AccountId} */ (\n senderAccountIdOrSerialNumber\n );\n receiverAccountId =\n typeof receiverAccountIdOrSenderAccountId === \"string\"\n ? AccountId.fromString(\n receiverAccountIdOrSenderAccountId,\n )\n : /** @type {AccountId} */ (\n receiverAccountIdOrSenderAccountId\n );\n } catch (_) {\n const tokenId = TokenId.fromString(tokenIdOrNftId);\n nftId = new NftId(\n tokenId,\n /** @type {Long} */ (senderAccountIdOrSerialNumber),\n );\n senderAccountId =\n typeof receiverAccountIdOrSenderAccountId === \"string\"\n ? AccountId.fromString(\n receiverAccountIdOrSenderAccountId,\n )\n : /** @type {AccountId} */ (\n receiverAccountIdOrSenderAccountId\n );\n receiverAccountId =\n typeof receiver === \"string\"\n ? AccountId.fromString(receiver)\n : /** @type {AccountId} */ (receiver);\n }\n }\n\n for (const nftTransfer of this._nftTransfers) {\n if (\n nftTransfer.tokenId.compare(nftId.tokenId) === 0 &&\n nftTransfer.serialNumber.compare(nftId.serial) === 0\n ) {\n nftTransfer.senderAccountId = senderAccountId;\n nftTransfer.receiverAccountId = receiverAccountId;\n return this;\n }\n }\n\n this._nftTransfers.push(\n new TokenNftTransfer({\n tokenId: nftId.tokenId,\n serialNumber: nftId.serial,\n senderAccountId,\n receiverAccountId,\n isApproved,\n }),\n );\n\n return this;\n }\n\n /**\n * @param {NftId | TokenId | string} tokenIdOrNftId\n * @param {AccountId | string | Long | number} senderAccountIdOrSerialNumber\n * @param {AccountId | string} receiverAccountIdOrSenderAccountId\n * @param {(AccountId | string)=} receiver\n * @returns {this}\n */\n addApprovedNftTransfer(\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n ) {\n return this._addNftTransfer(\n true,\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n );\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @param {AccountId | string} accountId\n * @param {number | Long | BigNumber | bigint} amount\n * @returns {this}\n */\n addApprovedTokenTransfer(tokenId, accountId, amount) {\n return this._addTokenTransfer(tokenId, accountId, amount, true, null);\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @param {AccountId | string} accountId\n * @param {number | Long | BigNumber | bigint} amount\n * @param {number} decimals\n * @returns {this}\n */\n addTokenTransferWithDecimals(tokenId, accountId, amount, decimals) {\n this._requireNotFrozen();\n\n const token =\n tokenId instanceof TokenId ? tokenId : TokenId.fromString(tokenId);\n const account =\n accountId instanceof AccountId\n ? accountId\n : AccountId.fromString(accountId);\n const value = convertAmountToLong(amount);\n\n let found = false;\n\n for (const tokenTransfer of this._tokenTransfers) {\n if (tokenTransfer.tokenId.compare(token) === 0) {\n if (\n tokenTransfer.expectedDecimals != null &&\n tokenTransfer.expectedDecimals !== decimals\n ) {\n throw new Error(\"expected decimals mis-match\");\n } else {\n tokenTransfer.expectedDecimals = decimals;\n }\n\n if (tokenTransfer.accountId.compare(account) === 0) {\n tokenTransfer.amount = tokenTransfer.amount.add(value);\n tokenTransfer.expectedDecimals = decimals;\n found = true;\n }\n }\n }\n\n if (found) {\n return this;\n }\n\n this._tokenTransfers.push(\n new TokenTransfer({\n tokenId,\n accountId,\n expectedDecimals: decimals,\n amount,\n isApproved: false,\n }),\n );\n\n return this;\n }\n\n /**\n * @returns {NullableTokenDecimalMap}\n */\n get tokenIdDecimals() {\n const map = new NullableTokenDecimalMap();\n\n for (const transfer of this._tokenTransfers) {\n map._set(transfer.tokenId, transfer.expectedDecimals);\n }\n\n return map;\n }\n\n /**\n * @returns {TokenNftTransferMap}\n */\n get nftTransfers() {\n const map = new TokenNftTransferMap();\n\n for (const transfer of this._nftTransfers) {\n const transferList = map.get(transfer.tokenId);\n\n const nftTransfer = {\n sender: transfer.senderAccountId,\n recipient: transfer.receiverAccountId,\n serial: transfer.serialNumber,\n isApproved: transfer.isApproved,\n };\n\n if (transferList != null) {\n transferList.push(nftTransfer);\n } else {\n map._set(transfer.tokenId, [nftTransfer]);\n }\n }\n\n return map;\n }\n\n /**\n * @returns {TokenTransferMap}\n */\n get tokenTransfers() {\n const map = new TokenTransferMap();\n\n for (const transfer of this._tokenTransfers) {\n let transferMap = map.get(transfer.tokenId);\n\n if (transferMap != null) {\n transferMap._set(transfer.accountId, transfer.amount);\n } else {\n transferMap = new TokenTransferAccountMap();\n transferMap._set(transfer.accountId, transfer.amount);\n map._set(transfer.tokenId, transferMap);\n }\n }\n\n return map;\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenAirdropTransactionBody}\n */\n _makeTransactionData() {\n /** @type {{tokenId: TokenId; expectedDecimals: number | null; transfers: TokenTransfer[]; nftTransfers: TokenNftTransfer[];}[]} */\n const tokenTransferList = [];\n\n this._tokenTransfers.sort((a, b) => {\n const compare = a.tokenId.compare(b.tokenId);\n\n if (compare !== 0) {\n return compare;\n }\n\n return a.accountId.compare(b.accountId);\n });\n\n this._nftTransfers.sort((a, b) => {\n const senderComparision = a.senderAccountId.compare(\n b.senderAccountId,\n );\n if (senderComparision != 0) {\n return senderComparision;\n }\n\n const recipientComparision = a.receiverAccountId.compare(\n b.receiverAccountId,\n );\n if (recipientComparision != 0) {\n return recipientComparision;\n }\n\n return a.serialNumber.compare(b.serialNumber);\n });\n\n let i = 0;\n let j = 0;\n while (\n i < this._tokenTransfers.length ||\n j < this._nftTransfers.length\n ) {\n if (\n i < this._tokenTransfers.length &&\n j < this._nftTransfers.length\n ) {\n const iTokenId = this._tokenTransfers[i].tokenId;\n const jTokenId = this._nftTransfers[j].tokenId;\n\n const last =\n tokenTransferList.length > 0\n ? tokenTransferList[tokenTransferList.length - 1]\n : null;\n const lastTokenId = last != null ? last.tokenId : null;\n\n if (\n last != null &&\n lastTokenId != null &&\n lastTokenId.compare(iTokenId) === 0\n ) {\n last.transfers.push(this._tokenTransfers[i++]);\n continue;\n }\n\n if (\n last != null &&\n lastTokenId != null &&\n lastTokenId.compare(jTokenId) === 0\n ) {\n last.nftTransfers.push(this._nftTransfers[j++]);\n continue;\n }\n\n const result = iTokenId.compare(jTokenId);\n\n if (result === 0) {\n tokenTransferList.push({\n tokenId: iTokenId,\n expectedDecimals:\n this._tokenTransfers[i].expectedDecimals,\n transfers: [this._tokenTransfers[i++]],\n nftTransfers: [this._nftTransfers[j++]],\n });\n } else if (result < 0) {\n tokenTransferList.push({\n tokenId: iTokenId,\n expectedDecimals:\n this._tokenTransfers[i].expectedDecimals,\n transfers: [this._tokenTransfers[i++]],\n nftTransfers: [],\n });\n } else {\n tokenTransferList.push({\n tokenId: jTokenId,\n expectedDecimals: null,\n transfers: [],\n nftTransfers: [this._nftTransfers[j++]],\n });\n }\n } else if (i < this._tokenTransfers.length) {\n const iTokenId = this._tokenTransfers[i].tokenId;\n\n let last;\n for (const transfer of tokenTransferList) {\n if (transfer.tokenId.compare(iTokenId) === 0) {\n last = transfer;\n }\n }\n const lastTokenId = last != null ? last.tokenId : null;\n\n if (\n last != null &&\n lastTokenId != null &&\n lastTokenId.compare(iTokenId) === 0\n ) {\n last.transfers.push(this._tokenTransfers[i++]);\n continue;\n }\n\n tokenTransferList.push({\n tokenId: iTokenId,\n expectedDecimals: this._tokenTransfers[i].expectedDecimals,\n transfers: [this._tokenTransfers[i++]],\n nftTransfers: [],\n });\n } else if (j < this._nftTransfers.length) {\n const jTokenId = this._nftTransfers[j].tokenId;\n\n let last;\n for (const transfer of tokenTransferList) {\n if (transfer.tokenId.compare(jTokenId) === 0) {\n last = transfer;\n }\n }\n const lastTokenId = last != null ? last.tokenId : null;\n\n if (\n last != null &&\n lastTokenId != null &&\n lastTokenId.compare(jTokenId) === 0\n ) {\n last.nftTransfers.push(this._nftTransfers[j++]);\n continue;\n }\n\n tokenTransferList.push({\n tokenId: jTokenId,\n expectedDecimals: null,\n transfers: [],\n nftTransfers: [this._nftTransfers[j++]],\n });\n }\n }\n\n return {\n tokenTransfers: tokenTransferList.map((tokenTransfer) => {\n return {\n token: tokenTransfer.tokenId._toProtobuf(),\n expectedDecimals:\n tokenTransfer.expectedDecimals != null\n ? { value: tokenTransfer.expectedDecimals }\n : null,\n transfers: tokenTransfer.transfers.map((transfer) =>\n transfer._toProtobuf(),\n ),\n nftTransfers: tokenTransfer.nftTransfers.map((transfer) =>\n transfer._toProtobuf(),\n ),\n };\n }),\n };\n }\n}\n"],"names":["AbstractTokenTransferTransaction","Transaction","constructor","props","super","this","_tokenTransfers","_nftTransfers","transfer","tokenTransfers","addTokenTransfer","tokenId","accountId","amount","nftTransfers","addNftTransfer","serial","sender","recipient","tokenIdOrNftId","senderAccountIdOrSerialNumber","receiverAccountIdOrSenderAccountId","receiver","_addNftTransfer","_addTokenTransfer","isApproved","expectedDecimals","_requireNotFrozen","token","TokenId","fromString","account","AccountId","value","convertAmountToLong","tokenTransfer","compare","add","push","TokenTransfer","nftId","senderAccountId","receiverAccountId","NftId","_","nftTransfer","serialNumber","TokenNftTransfer","addApprovedNftTransfer","addApprovedTokenTransfer","addTokenTransferWithDecimals","decimals","found","Error","tokenIdDecimals","map","NullableTokenDecimalMap","_set","TokenNftTransferMap","transferList","get","TokenTransferMap","transferMap","TokenTransferAccountMap","_makeTransactionData","tokenTransferList","sort","a","b","senderComparision","recipientComparision","i","j","length","iTokenId","jTokenId","last","lastTokenId","transfers","result","_toProtobuf"],"mappings":"2cAqCe,MAAMA,UAAyCC,EAM1D,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,gBAAkB,GAMvBD,KAAKE,cAAgB,GAErB,IAAK,MAAMC,KAAoC,MAAxBL,EAAMM,eACvBN,EAAMM,eACN,GACFJ,KAAKK,iBACDF,EAASG,QACTH,EAASI,UACTJ,EAASK,QAIjB,IAAK,MAAML,KAAkC,MAAtBL,EAAMW,aACvB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AAKpB,IAC5B,CACHP,MAAOO,EAAcxB,QAAQqE,cAC7BtD,iBACsC,MAAlCS,EAAcT,iBACR,CAAEO,MAAOE,EAAcT,kBACvB,KACVoD,UAAW3C,EAAc2C,UAAUvB,IAAK/C,GACpCA,EAASwE,eAEblE,aAAcqB,EAAcrB,aAAayC,IAAK/C,GAC1CA,EAASwE,kBAKjC"}
1
+ {"version":3,"file":"AbstractTokenTransferTransaction.js","sources":["../../src/token/AbstractTokenTransferTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\nimport TokenTransfer from \"./TokenTransfer.js\";\nimport TokenNftTransfer from \"../token/TokenNftTransfer.js\";\nimport TokenId from \"./TokenId.js\";\nimport NftId from \"./NftId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Transaction from \"../transaction/Transaction.js\";\nimport NullableTokenDecimalMap from \"../account/NullableTokenDecimalMap.js\";\nimport TokenNftTransferMap from \"../account/TokenNftTransferMap.js\";\nimport TokenTransferMap from \"../account/TokenTransferMap.js\";\nimport TokenTransferAccountMap from \"../account/TokenTransferAccountMap.js\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenAirdropTransactionBody} HieroProto.proto.ITokenAirdropTransactionBody\n */\n\n/**\n * @typedef {object} TransferTokensInput\n * @property {TokenId | string} tokenId\n * @property {AccountId | string} accountId\n * @property {Long | number | BigNumber | bigint} amount\n */\n\n/**\n * @typedef {object} TransferNftInput\n * @property {TokenId | string} tokenId\n * @property {AccountId | string} sender\n * @property {AccountId | string} recipient\n * @property {Long | number} serial\n */\n\nexport default class AbstractTokenTransferTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {(TransferTokensInput)[]} [props.tokenTransfers]\n * @param {(TransferNftInput)[]} [props.nftTransfers]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @protected\n * @type {TokenTransfer[]}\n */\n this._tokenTransfers = [];\n\n /**\n * @protected\n * @type {TokenNftTransfer[]}\n */\n this._nftTransfers = [];\n\n for (const transfer of props.tokenTransfers != null\n ? props.tokenTransfers\n : []) {\n this.addTokenTransfer(\n transfer.tokenId,\n transfer.accountId,\n transfer.amount,\n );\n }\n\n for (const transfer of props.nftTransfers != null\n ? props.nftTransfers\n : []) {\n this.addNftTransfer(\n transfer.tokenId,\n transfer.serial,\n transfer.sender,\n transfer.recipient,\n );\n }\n }\n\n /**\n * @param {NftId | TokenId | string} tokenIdOrNftId\n * @param {AccountId | string | Long | number} senderAccountIdOrSerialNumber\n * @param {AccountId | string} receiverAccountIdOrSenderAccountId\n * @param {(AccountId | string)=} receiver\n * @returns {this}\n */\n addNftTransfer(\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n ) {\n return this._addNftTransfer(\n false,\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n );\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @param {AccountId | string} accountId\n * @param {number | Long | BigNumber | bigint} amount\n * @param {boolean} isApproved\n * @param {number | null} expectedDecimals\n * @returns {this}\n */\n _addTokenTransfer(\n tokenId,\n accountId,\n amount,\n isApproved,\n expectedDecimals,\n ) {\n this._requireNotFrozen();\n\n const token =\n tokenId instanceof TokenId ? tokenId : TokenId.fromString(tokenId);\n const account =\n accountId instanceof AccountId\n ? accountId\n : AccountId.fromString(accountId);\n const value = convertAmountToLong(amount);\n\n for (const tokenTransfer of this._tokenTransfers) {\n if (\n tokenTransfer.tokenId.compare(token) === 0 &&\n tokenTransfer.accountId.compare(account) === 0\n ) {\n tokenTransfer.amount = tokenTransfer.amount.add(value);\n tokenTransfer.expectedDecimals = expectedDecimals;\n return this;\n }\n }\n\n this._tokenTransfers.push(\n new TokenTransfer({\n tokenId,\n accountId,\n expectedDecimals: expectedDecimals,\n amount,\n isApproved,\n }),\n );\n\n return this;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @param {AccountId | string} accountId\n * @param {number | Long | BigNumber | bigint} amount\n * @returns {this}\n */\n addTokenTransfer(tokenId, accountId, amount) {\n return this._addTokenTransfer(tokenId, accountId, amount, false, null);\n }\n\n /**\n * @param {boolean} isApproved\n * @param {NftId | TokenId | string} tokenIdOrNftId\n * @param {AccountId | string | Long | number} senderAccountIdOrSerialNumber\n * @param {AccountId | string} receiverAccountIdOrSenderAccountId\n * @param {(AccountId | string)=} receiver\n * @returns {this}\n */\n _addNftTransfer(\n isApproved,\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n ) {\n this._requireNotFrozen();\n\n let nftId;\n let senderAccountId;\n let receiverAccountId;\n\n if (tokenIdOrNftId instanceof NftId) {\n nftId = tokenIdOrNftId;\n senderAccountId =\n typeof senderAccountIdOrSerialNumber === \"string\"\n ? AccountId.fromString(senderAccountIdOrSerialNumber)\n : /** @type {AccountId} */ (senderAccountIdOrSerialNumber);\n receiverAccountId =\n typeof receiverAccountIdOrSenderAccountId === \"string\"\n ? AccountId.fromString(receiverAccountIdOrSenderAccountId)\n : /** @type {AccountId} */ (\n receiverAccountIdOrSenderAccountId\n );\n } else if (tokenIdOrNftId instanceof TokenId) {\n nftId = new NftId(\n tokenIdOrNftId,\n /** @type {Long} */ (senderAccountIdOrSerialNumber),\n );\n senderAccountId =\n typeof receiverAccountIdOrSenderAccountId === \"string\"\n ? AccountId.fromString(receiverAccountIdOrSenderAccountId)\n : /** @type {AccountId} */ (\n receiverAccountIdOrSenderAccountId\n );\n receiverAccountId =\n typeof receiver === \"string\"\n ? AccountId.fromString(receiver)\n : /** @type {AccountId} */ (receiver);\n } else {\n try {\n nftId = NftId.fromString(tokenIdOrNftId);\n senderAccountId =\n typeof senderAccountIdOrSerialNumber === \"string\"\n ? AccountId.fromString(senderAccountIdOrSerialNumber)\n : /** @type {AccountId} */ (\n senderAccountIdOrSerialNumber\n );\n receiverAccountId =\n typeof receiverAccountIdOrSenderAccountId === \"string\"\n ? AccountId.fromString(\n receiverAccountIdOrSenderAccountId,\n )\n : /** @type {AccountId} */ (\n receiverAccountIdOrSenderAccountId\n );\n } catch (_) {\n const tokenId = TokenId.fromString(tokenIdOrNftId);\n nftId = new NftId(\n tokenId,\n /** @type {Long} */ (senderAccountIdOrSerialNumber),\n );\n senderAccountId =\n typeof receiverAccountIdOrSenderAccountId === \"string\"\n ? AccountId.fromString(\n receiverAccountIdOrSenderAccountId,\n )\n : /** @type {AccountId} */ (\n receiverAccountIdOrSenderAccountId\n );\n receiverAccountId =\n typeof receiver === \"string\"\n ? AccountId.fromString(receiver)\n : /** @type {AccountId} */ (receiver);\n }\n }\n\n for (const nftTransfer of this._nftTransfers) {\n if (\n nftTransfer.tokenId.compare(nftId.tokenId) === 0 &&\n nftTransfer.serialNumber.compare(nftId.serial) === 0\n ) {\n nftTransfer.senderAccountId = senderAccountId;\n nftTransfer.receiverAccountId = receiverAccountId;\n return this;\n }\n }\n\n this._nftTransfers.push(\n new TokenNftTransfer({\n tokenId: nftId.tokenId,\n serialNumber: nftId.serial,\n senderAccountId,\n receiverAccountId,\n isApproved,\n }),\n );\n\n return this;\n }\n\n /**\n * @param {NftId | TokenId | string} tokenIdOrNftId\n * @param {AccountId | string | Long | number} senderAccountIdOrSerialNumber\n * @param {AccountId | string} receiverAccountIdOrSenderAccountId\n * @param {(AccountId | string)=} receiver\n * @returns {this}\n */\n addApprovedNftTransfer(\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n ) {\n return this._addNftTransfer(\n true,\n tokenIdOrNftId,\n senderAccountIdOrSerialNumber,\n receiverAccountIdOrSenderAccountId,\n receiver,\n );\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @param {AccountId | string} accountId\n * @param {number | Long | BigNumber | bigint} amount\n * @returns {this}\n */\n addApprovedTokenTransfer(tokenId, accountId, amount) {\n return this._addTokenTransfer(tokenId, accountId, amount, true, null);\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @param {AccountId | string} accountId\n * @param {number | Long | BigNumber | bigint} amount\n * @param {number} decimals\n * @returns {this}\n */\n addTokenTransferWithDecimals(tokenId, accountId, amount, decimals) {\n this._requireNotFrozen();\n\n const token =\n tokenId instanceof TokenId ? tokenId : TokenId.fromString(tokenId);\n const account =\n accountId instanceof AccountId\n ? accountId\n : AccountId.fromString(accountId);\n const value = convertAmountToLong(amount);\n\n let found = false;\n\n for (const tokenTransfer of this._tokenTransfers) {\n if (tokenTransfer.tokenId.compare(token) === 0) {\n if (\n tokenTransfer.expectedDecimals != null &&\n tokenTransfer.expectedDecimals !== decimals\n ) {\n throw new Error(\"expected decimals mis-match\");\n } else {\n tokenTransfer.expectedDecimals = decimals;\n }\n\n if (tokenTransfer.accountId.compare(account) === 0) {\n tokenTransfer.amount = tokenTransfer.amount.add(value);\n tokenTransfer.expectedDecimals = decimals;\n found = true;\n }\n }\n }\n\n if (found) {\n return this;\n }\n\n this._tokenTransfers.push(\n new TokenTransfer({\n tokenId,\n accountId,\n expectedDecimals: decimals,\n amount,\n isApproved: false,\n }),\n );\n\n return this;\n }\n\n /**\n * @returns {NullableTokenDecimalMap}\n */\n get tokenIdDecimals() {\n const map = new NullableTokenDecimalMap();\n\n for (const transfer of this._tokenTransfers) {\n map._set(transfer.tokenId, transfer.expectedDecimals);\n }\n\n return map;\n }\n\n /**\n * @returns {TokenNftTransferMap}\n */\n get nftTransfers() {\n const map = new TokenNftTransferMap();\n\n for (const transfer of this._nftTransfers) {\n const transferList = map.get(transfer.tokenId);\n\n const nftTransfer = {\n sender: transfer.senderAccountId,\n recipient: transfer.receiverAccountId,\n serial: transfer.serialNumber,\n isApproved: transfer.isApproved,\n };\n\n if (transferList != null) {\n transferList.push(nftTransfer);\n } else {\n map._set(transfer.tokenId, [nftTransfer]);\n }\n }\n\n return map;\n }\n\n /**\n * @returns {TokenTransferMap}\n */\n get tokenTransfers() {\n const map = new TokenTransferMap();\n\n for (const transfer of this._tokenTransfers) {\n let transferMap = map.get(transfer.tokenId);\n\n if (transferMap != null) {\n transferMap._set(transfer.accountId, transfer.amount);\n } else {\n transferMap = new TokenTransferAccountMap();\n transferMap._set(transfer.accountId, transfer.amount);\n map._set(transfer.tokenId, transferMap);\n }\n }\n\n return map;\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenAirdropTransactionBody}\n */\n _makeTransactionData() {\n /** @type {{tokenId: TokenId; expectedDecimals: number | null; transfers: TokenTransfer[]; nftTransfers: TokenNftTransfer[];}[]} */\n const tokenTransferList = [];\n\n this._tokenTransfers.sort((a, b) => {\n const compare = a.tokenId.compare(b.tokenId);\n\n if (compare !== 0) {\n return compare;\n }\n\n return a.accountId.compare(b.accountId);\n });\n\n this._nftTransfers.sort((a, b) => {\n const senderComparision = a.senderAccountId.compare(\n b.senderAccountId,\n );\n if (senderComparision != 0) {\n return senderComparision;\n }\n\n const recipientComparision = a.receiverAccountId.compare(\n b.receiverAccountId,\n );\n if (recipientComparision != 0) {\n return recipientComparision;\n }\n\n return a.serialNumber.compare(b.serialNumber);\n });\n\n let i = 0;\n let j = 0;\n while (\n i < this._tokenTransfers.length ||\n j < this._nftTransfers.length\n ) {\n if (\n i < this._tokenTransfers.length &&\n j < this._nftTransfers.length\n ) {\n const iTokenId = this._tokenTransfers[i].tokenId;\n const jTokenId = this._nftTransfers[j].tokenId;\n\n const last =\n tokenTransferList.length > 0\n ? tokenTransferList[tokenTransferList.length - 1]\n : null;\n const lastTokenId = last != null ? last.tokenId : null;\n\n if (\n last != null &&\n lastTokenId != null &&\n lastTokenId.compare(iTokenId) === 0\n ) {\n last.transfers.push(this._tokenTransfers[i++]);\n continue;\n }\n\n if (\n last != null &&\n lastTokenId != null &&\n lastTokenId.compare(jTokenId) === 0\n ) {\n last.nftTransfers.push(this._nftTransfers[j++]);\n continue;\n }\n\n const result = iTokenId.compare(jTokenId);\n\n if (result === 0) {\n tokenTransferList.push({\n tokenId: iTokenId,\n expectedDecimals:\n this._tokenTransfers[i].expectedDecimals,\n transfers: [this._tokenTransfers[i++]],\n nftTransfers: [this._nftTransfers[j++]],\n });\n } else if (result < 0) {\n tokenTransferList.push({\n tokenId: iTokenId,\n expectedDecimals:\n this._tokenTransfers[i].expectedDecimals,\n transfers: [this._tokenTransfers[i++]],\n nftTransfers: [],\n });\n } else {\n tokenTransferList.push({\n tokenId: jTokenId,\n expectedDecimals: null,\n transfers: [],\n nftTransfers: [this._nftTransfers[j++]],\n });\n }\n } else if (i < this._tokenTransfers.length) {\n const iTokenId = this._tokenTransfers[i].tokenId;\n\n let last;\n for (const transfer of tokenTransferList) {\n if (transfer.tokenId.compare(iTokenId) === 0) {\n last = transfer;\n }\n }\n const lastTokenId = last != null ? last.tokenId : null;\n\n if (\n last != null &&\n lastTokenId != null &&\n lastTokenId.compare(iTokenId) === 0\n ) {\n last.transfers.push(this._tokenTransfers[i++]);\n continue;\n }\n\n tokenTransferList.push({\n tokenId: iTokenId,\n expectedDecimals: this._tokenTransfers[i].expectedDecimals,\n transfers: [this._tokenTransfers[i++]],\n nftTransfers: [],\n });\n } else if (j < this._nftTransfers.length) {\n const jTokenId = this._nftTransfers[j].tokenId;\n\n let last;\n for (const transfer of tokenTransferList) {\n if (transfer.tokenId.compare(jTokenId) === 0) {\n last = transfer;\n }\n }\n const lastTokenId = last != null ? last.tokenId : null;\n\n if (\n last != null &&\n lastTokenId != null &&\n lastTokenId.compare(jTokenId) === 0\n ) {\n last.nftTransfers.push(this._nftTransfers[j++]);\n continue;\n }\n\n tokenTransferList.push({\n tokenId: jTokenId,\n expectedDecimals: null,\n transfers: [],\n nftTransfers: [this._nftTransfers[j++]],\n });\n }\n }\n\n return {\n tokenTransfers: tokenTransferList.map((tokenTransfer) => {\n return {\n token: tokenTransfer.tokenId._toProtobuf(),\n expectedDecimals:\n tokenTransfer.expectedDecimals != null\n ? { value: tokenTransfer.expectedDecimals }\n : null,\n transfers: tokenTransfer.transfers.map((transfer) =>\n transfer._toProtobuf(),\n ),\n nftTransfers: tokenTransfer.nftTransfers.map((transfer) =>\n transfer._toProtobuf(),\n ),\n };\n }),\n };\n }\n}\n"],"names":["AbstractTokenTransferTransaction","Transaction","constructor","props","super","this","_tokenTransfers","_nftTransfers","transfer","tokenTransfers","addTokenTransfer","tokenId","accountId","amount","nftTransfers","addNftTransfer","serial","sender","recipient","tokenIdOrNftId","senderAccountIdOrSerialNumber","receiverAccountIdOrSenderAccountId","receiver","_addNftTransfer","_addTokenTransfer","isApproved","expectedDecimals","_requireNotFrozen","token","TokenId","fromString","account","AccountId","value","convertAmountToLong","tokenTransfer","compare","add","push","TokenTransfer","nftId","senderAccountId","receiverAccountId","NftId","_","nftTransfer","serialNumber","TokenNftTransfer","addApprovedNftTransfer","addApprovedTokenTransfer","addTokenTransferWithDecimals","decimals","found","Error","tokenIdDecimals","map","NullableTokenDecimalMap","_set","TokenNftTransferMap","transferList","get","TokenTransferMap","transferMap","TokenTransferAccountMap","_makeTransactionData","tokenTransferList","sort","a","b","senderComparision","recipientComparision","i","j","length","iTokenId","jTokenId","last","lastTokenId","transfers","result","_toProtobuf"],"mappings":"2cAqCe,MAAMA,UAAyCC,EAM1D,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,gBAAkB,GAMvBD,KAAKE,cAAgB,GAErB,IAAK,MAAMC,KAAoC,MAAxBL,EAAMM,eACvBN,EAAMM,eACN,GACFJ,KAAKK,iBACDF,EAASG,QACTH,EAASI,UACTJ,EAASK,QAIjB,IAAK,MAAML,KAAkC,MAAtBL,EAAMW,aACvBX,EAAMW,aACN,GACFT,KAAKU,eACDP,EAASG,QACTH,EAASQ,OACTR,EAASS,OACTT,EAASU,UAGzB,CASI,cAAAH,CACII,EACAC,EACAC,EACAC,GAEA,OAAOjB,KAAKkB,iBACR,EACAJ,EACAC,EACAC,EACAC,EAEZ,CAUI,iBAAAE,CACIb,EACAC,EACAC,E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,EAASwE,kBAKjC"}
@@ -16,7 +16,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
16
16
 
17
17
  /**
18
18
  * @namespace proto
19
- * @typedef {import("@hashgraph/proto").proto.IAssessedCustomFee} HieroProto.proto.IAssessedCustomFee
19
+ * @typedef {import("@hiero-ledger/proto").proto.IAssessedCustomFee} HieroProto.proto.IAssessedCustomFee
20
20
  */
21
21
 
22
22
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @namespace proto
6
- * @typedef {import("@hashgraph/proto").proto.IAssessedCustomFee} HieroProto.proto.IAssessedCustomFee
6
+ * @typedef {import("@hiero-ledger/proto").proto.IAssessedCustomFee} HieroProto.proto.IAssessedCustomFee
7
7
  */
8
8
  /**
9
9
  * @typedef {object} AssessedCustomFeeJSON
@@ -103,7 +103,7 @@ export default class AssessedCustomFee {
103
103
  export type BigNumber = import("bignumber.js").default;
104
104
  export namespace HieroProto {
105
105
  namespace proto {
106
- type IAssessedCustomFee = import("@hashgraph/proto").proto.IAssessedCustomFee;
106
+ type IAssessedCustomFee = import("@hiero-ledger/proto").proto.IAssessedCustomFee;
107
107
  }
108
108
  }
109
109
  export type AssessedCustomFeeJSON = {
@@ -1 +1 @@
1
- {"version":3,"file":"AssessedCustomFee.js","sources":["../../src/token/AssessedCustomFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.IAssessedCustomFee} HieroProto.proto.IAssessedCustomFee\n */\n\n/**\n * @typedef {object} AssessedCustomFeeJSON\n * @property {?string} feeCollectorAccountId\n * @property {?string} tokenId\n * @property {?string} amount\n * @property {string[]} payerAccountIds\n */\n\n/**\n * Represents an assessed custom fee that has been evaluated and attached to a transaction.\n * This includes details about who collects the fee, which token the fee is paid in,\n * the amount of the fee, and which accounts are responsible for paying it.\n */\nexport default class AssessedCustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {TokenId | string} [props.tokenId]\n * @param {Long | number | BigNumber | bigint} [props.amount]\n * @param {AccountId[]} [props.payerAccountIds]\n */\n constructor(props = {}) {\n /**\n * @type {?AccountId}\n */\n this._feeCollectorAccountId = null;\n\n if (props.feeCollectorAccountId != null) {\n this.setFeeCollectorAccountId(props.feeCollectorAccountId);\n }\n\n /**\n * @type {?TokenId}\n */\n this._tokenId = null;\n\n if (props.tokenId != null) {\n this.setTokenId(props.tokenId);\n }\n\n /**\n * @type {?Long}\n */\n this._amount = null;\n\n if (props.amount != null) {\n this.setAmount(props.amount);\n }\n\n /**\n * @type {?AccountId[]}\n */\n this._payerAccountIds = null;\n\n if (props.payerAccountIds != null) {\n this.setPayerAccountIds(props.payerAccountIds);\n }\n }\n\n /**\n * @returns {?AccountId}\n */\n get feeCollectorAccountId() {\n return this._feeCollectorAccountId;\n }\n\n /**\n * @param {AccountId | string} feeCollectorAccountId\n * @returns {this}\n */\n setFeeCollectorAccountId(feeCollectorAccountId) {\n this._feeCollectorAccountId =\n typeof feeCollectorAccountId === \"string\"\n ? AccountId.fromString(feeCollectorAccountId)\n : feeCollectorAccountId;\n return this;\n }\n\n /**\n * @returns {?TokenId}\n */\n get tokenId() {\n return this._tokenId;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @returns {this}\n */\n setTokenId(tokenId) {\n this._tokenId =\n typeof tokenId === \"string\" ? TokenId.fromString(tokenId) : tokenId;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get amount() {\n return this._amount;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} amount\n * @returns {AssessedCustomFee}\n */\n setAmount(amount) {\n this._amount = convertAmountToLong(amount);\n return this;\n }\n\n /**\n * @returns {?AccountId[]}\n */\n get payerAccountIds() {\n return this._payerAccountIds;\n }\n\n /**\n * @param {AccountId[]} payerAccountIds\n * @returns {AssessedCustomFee}\n */\n setPayerAccountIds(payerAccountIds) {\n this._payerAccountIds = payerAccountIds;\n return this;\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IAssessedCustomFee} fee\n * @returns {AssessedCustomFee}\n */\n static _fromProtobuf(fee) {\n return new AssessedCustomFee({\n feeCollectorAccountId:\n fee.feeCollectorAccountId != null\n ? AccountId._fromProtobuf(fee.feeCollectorAccountId)\n : undefined,\n tokenId:\n fee.tokenId != null\n ? TokenId._fromProtobuf(fee.tokenId)\n : undefined,\n amount: fee.amount != null ? fee.amount : undefined,\n payerAccountIds:\n fee.effectivePayerAccountId != null\n ? fee.effectivePayerAccountId.map((id) =>\n AccountId._fromProtobuf(id),\n )\n : undefined,\n });\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.IAssessedCustomFee}\n */\n _toProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n tokenId: this._tokenId != null ? this._tokenId._toProtobuf() : null,\n amount: this._amount,\n effectivePayerAccountId:\n this._payerAccountIds != null\n ? this._payerAccountIds.map((id) => id._toProtobuf())\n : null,\n };\n }\n\n /**\n * @returns {AssessedCustomFeeJSON}\n */\n toJSON() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId?.toString() || null,\n tokenId: this._tokenId?.toString() || null,\n amount: this._amount?.toString() || null,\n payerAccountIds:\n this._payerAccountIds?.map((id) => id.toString()) || [],\n };\n }\n}\n"],"names":["AssessedCustomFee","constructor","props","this","_feeCollectorAccountId","feeCollectorAccountId","setFeeCollectorAccountId","_tokenId","tokenId","setTokenId","_amount","amount","setAmount","_payerAccountIds","payerAccountIds","setPayerAccountIds","AccountId","fromString","TokenId","convertAmountToLong","_fromProtobuf","fee","undefined","effectivePayerAccountId","map","id","_toProtobuf","toJSON","toString"],"mappings":"oHA4Be,MAAMA,EAQjB,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BqB,cAC3B,KACVlB,QAA0B,MAAjBL,KAAKI,SAAmBJ,KAAKI,SAASmB,cAAgB,KAC/Df,OAAQR,KAAKO,QACba,wBAC6B,MAAzBpB,KAAKU,iBACCV,KAAKU,iBAAiBW,IAAKC,GAAOA,EAAGC,eACrC,KAEtB,CAKI,MAAAC,GACI,MAAO,CACHtB,sBACIF,KAAKE,uBAAuBuB,YAAc,KAC9CpB,QAASL,KAAKI,UAAUqB,YAAc,KACtCjB,OAAQR,KAAKO,SAASkB,YAAc,KACpCd,gBACIX,KAAKU,kBAAkBW,IAAKC,GAAOA,EAAGG,aAAe,GAErE"}
1
+ {"version":3,"file":"AssessedCustomFee.js","sources":["../../src/token/AssessedCustomFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAssessedCustomFee} HieroProto.proto.IAssessedCustomFee\n */\n\n/**\n * @typedef {object} AssessedCustomFeeJSON\n * @property {?string} feeCollectorAccountId\n * @property {?string} tokenId\n * @property {?string} amount\n * @property {string[]} payerAccountIds\n */\n\n/**\n * Represents an assessed custom fee that has been evaluated and attached to a transaction.\n * This includes details about who collects the fee, which token the fee is paid in,\n * the amount of the fee, and which accounts are responsible for paying it.\n */\nexport default class AssessedCustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {TokenId | string} [props.tokenId]\n * @param {Long | number | BigNumber | bigint} [props.amount]\n * @param {AccountId[]} [props.payerAccountIds]\n */\n constructor(props = {}) {\n /**\n * @type {?AccountId}\n */\n this._feeCollectorAccountId = null;\n\n if (props.feeCollectorAccountId != null) {\n this.setFeeCollectorAccountId(props.feeCollectorAccountId);\n }\n\n /**\n * @type {?TokenId}\n */\n this._tokenId = null;\n\n if (props.tokenId != null) {\n this.setTokenId(props.tokenId);\n }\n\n /**\n * @type {?Long}\n */\n this._amount = null;\n\n if (props.amount != null) {\n this.setAmount(props.amount);\n }\n\n /**\n * @type {?AccountId[]}\n */\n this._payerAccountIds = null;\n\n if (props.payerAccountIds != null) {\n this.setPayerAccountIds(props.payerAccountIds);\n }\n }\n\n /**\n * @returns {?AccountId}\n */\n get feeCollectorAccountId() {\n return this._feeCollectorAccountId;\n }\n\n /**\n * @param {AccountId | string} feeCollectorAccountId\n * @returns {this}\n */\n setFeeCollectorAccountId(feeCollectorAccountId) {\n this._feeCollectorAccountId =\n typeof feeCollectorAccountId === \"string\"\n ? AccountId.fromString(feeCollectorAccountId)\n : feeCollectorAccountId;\n return this;\n }\n\n /**\n * @returns {?TokenId}\n */\n get tokenId() {\n return this._tokenId;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @returns {this}\n */\n setTokenId(tokenId) {\n this._tokenId =\n typeof tokenId === \"string\" ? TokenId.fromString(tokenId) : tokenId;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get amount() {\n return this._amount;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} amount\n * @returns {AssessedCustomFee}\n */\n setAmount(amount) {\n this._amount = convertAmountToLong(amount);\n return this;\n }\n\n /**\n * @returns {?AccountId[]}\n */\n get payerAccountIds() {\n return this._payerAccountIds;\n }\n\n /**\n * @param {AccountId[]} payerAccountIds\n * @returns {AssessedCustomFee}\n */\n setPayerAccountIds(payerAccountIds) {\n this._payerAccountIds = payerAccountIds;\n return this;\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IAssessedCustomFee} fee\n * @returns {AssessedCustomFee}\n */\n static _fromProtobuf(fee) {\n return new AssessedCustomFee({\n feeCollectorAccountId:\n fee.feeCollectorAccountId != null\n ? AccountId._fromProtobuf(fee.feeCollectorAccountId)\n : undefined,\n tokenId:\n fee.tokenId != null\n ? TokenId._fromProtobuf(fee.tokenId)\n : undefined,\n amount: fee.amount != null ? fee.amount : undefined,\n payerAccountIds:\n fee.effectivePayerAccountId != null\n ? fee.effectivePayerAccountId.map((id) =>\n AccountId._fromProtobuf(id),\n )\n : undefined,\n });\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.IAssessedCustomFee}\n */\n _toProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n tokenId: this._tokenId != null ? this._tokenId._toProtobuf() : null,\n amount: this._amount,\n effectivePayerAccountId:\n this._payerAccountIds != null\n ? this._payerAccountIds.map((id) => id._toProtobuf())\n : null,\n };\n }\n\n /**\n * @returns {AssessedCustomFeeJSON}\n */\n toJSON() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId?.toString() || null,\n tokenId: this._tokenId?.toString() || null,\n amount: this._amount?.toString() || null,\n payerAccountIds:\n this._payerAccountIds?.map((id) => id.toString()) || [],\n };\n }\n}\n"],"names":["AssessedCustomFee","constructor","props","this","_feeCollectorAccountId","feeCollectorAccountId","setFeeCollectorAccountId","_tokenId","tokenId","setTokenId","_amount","amount","setAmount","_payerAccountIds","payerAccountIds","setPayerAccountIds","AccountId","fromString","TokenId","convertAmountToLong","_fromProtobuf","fee","undefined","effectivePayerAccountId","map","id","_toProtobuf","toJSON","toString"],"mappings":"oHA4Be,MAAMA,EAQjB,WAAAC,CAAYC,EAAQ,IAIhBC,KAAKC,uBAAyB,KAEK,MAA/BF,EAAMG,uBACNF,KAAKG,yBAAyBJ,EAAMG,uBAMxCF,KAAKI,SAAW,KAEK,MAAjBL,EAAMM,SACNL,KAAKM,WAAWP,EAAMM,SAM1BL,KAAKO,QAAU,KAEK,MAAhBR,EAAMS,QACNR,KAAKS,UAAUV,EAAMS,QAMzBR,KAAKU,iBAAmB,KAEK,MAAzBX,EAAMY,iBACNX,KAAKY,mBAAmBb,EAAMY,gBAE1C,CAKI,yBAAIT,GACA,OAAOF,KAAKC,sBACpB,CAMI,wBAAA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AErE"}
@@ -10,7 +10,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
10
10
 
11
11
  /**
12
12
  * @namespace proto
13
- * @typedef {import("@hashgraph/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
13
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
14
14
  */
15
15
 
16
16
  class CustomFee {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
3
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
4
4
  */
5
5
  export default class CustomFee {
6
6
  /**
@@ -51,7 +51,7 @@ export default class CustomFee {
51
51
  }
52
52
  export namespace HieroProto {
53
53
  namespace proto {
54
- type ICustomFee = import("@hashgraph/proto").proto.ICustomFee;
54
+ type ICustomFee = import("@hiero-ledger/proto").proto.ICustomFee;
55
55
  }
56
56
  }
57
57
  import AccountId from "../account/AccountId.js";
@@ -1 +1 @@
1
- {"version":3,"file":"CustomFee.js","sources":["../../src/token/CustomFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport AccountId from \"../account/AccountId.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.ICustomFee} HieroProto.proto.ICustomFee\n */\n\nexport default class CustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {boolean} [props.allCollectorsAreExempt]\n */\n constructor(props = {}) {\n /**\n * @type {?AccountId}\n */\n this._feeCollectorAccountId = null;\n\n this._allCollectorsAreExempt = false;\n\n if (props.feeCollectorAccountId != null) {\n this.setFeeCollectorAccountId(props.feeCollectorAccountId);\n }\n\n if (props.allCollectorsAreExempt != null) {\n this.setAllCollectorsAreExempt(props.allCollectorsAreExempt);\n }\n }\n\n /**\n * @returns {?AccountId}\n */\n get feeCollectorAccountId() {\n return this._feeCollectorAccountId;\n }\n\n /**\n * @param {AccountId | string} feeCollectorAccountId\n * @returns {this}\n */\n setFeeCollectorAccountId(feeCollectorAccountId) {\n this._feeCollectorAccountId =\n typeof feeCollectorAccountId === \"string\"\n ? AccountId.fromString(feeCollectorAccountId)\n : feeCollectorAccountId;\n return this;\n }\n\n /**\n * @returns {boolean}\n */\n get allCollectorsAreExempt() {\n return this._allCollectorsAreExempt;\n }\n\n /**\n * @param {boolean} allCollectorsAreExempt\n * @returns {this}\n */\n setAllCollectorsAreExempt(allCollectorsAreExempt) {\n this._allCollectorsAreExempt = allCollectorsAreExempt;\n return this;\n }\n\n /**\n * @internal\n * @abstract\n * @param {HieroProto.proto.ICustomFee} info\n * @returns {CustomFee}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n static _fromProtobuf(info) {\n throw new Error(\"not implemented\");\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.ICustomFee}\n */\n _toProtobuf() {\n throw new Error(\"not implemented\");\n }\n}\n"],"names":["CustomFee","constructor","props","this","_feeCollectorAccountId","_allCollectorsAreExempt","feeCollectorAccountId","setFeeCollectorAccountId","allCollectorsAreExempt","setAllCollectorsAreExempt","AccountId","fromString","_fromProtobuf","info","Error","_toProtobuf"],"mappings":"uCASe,MAAMA,EAMjB,WAAAC,CAAYC,EAAQ,IAIhBC,KAAKC,uBAAyB,KAE9BD,KAAKE,yBAA0B,EAEI,MAA/BH,EAAMI,uBACNH,KAAKI,yBAAyBL,EAAMI,uBAGJ,MAAhCJ,EAAMM,wBACNL,KAAKM,0BAA0BP,EAAMM,uBAEjD,CAKI,yBAAIF,GACA,OAAOH,KAAKC,sBACpB,CAMI,wBAAAG,CAAyBD,GAKrB,OAJAH,KAAKC,uBACgC,iBAA1BE,EACDI,EAAUC,WAAWL,GACrBA,EACHH,IACf,CAKI,0BAAIK,GACA,OAAOL,KAAKE,uBACpB,CAMI,yBAAAI,CAA0BD,GAEtB,OADAL,KAAKE,wBAA0BG,EACxBL,IACf,CASI,oBAAOS,CAAcC,GACjB,MAAM,IAAIC,MAAM,kBACxB,CAOI,WAAAC,GACI,MAAM,IAAID,MAAM,kBACxB"}
1
+ {"version":3,"file":"CustomFee.js","sources":["../../src/token/CustomFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport AccountId from \"../account/AccountId.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ICustomFee} HieroProto.proto.ICustomFee\n */\n\nexport default class CustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {boolean} [props.allCollectorsAreExempt]\n */\n constructor(props = {}) {\n /**\n * @type {?AccountId}\n */\n this._feeCollectorAccountId = null;\n\n this._allCollectorsAreExempt = false;\n\n if (props.feeCollectorAccountId != null) {\n this.setFeeCollectorAccountId(props.feeCollectorAccountId);\n }\n\n if (props.allCollectorsAreExempt != null) {\n this.setAllCollectorsAreExempt(props.allCollectorsAreExempt);\n }\n }\n\n /**\n * @returns {?AccountId}\n */\n get feeCollectorAccountId() {\n return this._feeCollectorAccountId;\n }\n\n /**\n * @param {AccountId | string} feeCollectorAccountId\n * @returns {this}\n */\n setFeeCollectorAccountId(feeCollectorAccountId) {\n this._feeCollectorAccountId =\n typeof feeCollectorAccountId === \"string\"\n ? AccountId.fromString(feeCollectorAccountId)\n : feeCollectorAccountId;\n return this;\n }\n\n /**\n * @returns {boolean}\n */\n get allCollectorsAreExempt() {\n return this._allCollectorsAreExempt;\n }\n\n /**\n * @param {boolean} allCollectorsAreExempt\n * @returns {this}\n */\n setAllCollectorsAreExempt(allCollectorsAreExempt) {\n this._allCollectorsAreExempt = allCollectorsAreExempt;\n return this;\n }\n\n /**\n * @internal\n * @abstract\n * @param {HieroProto.proto.ICustomFee} info\n * @returns {CustomFee}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n static _fromProtobuf(info) {\n throw new Error(\"not implemented\");\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.ICustomFee}\n */\n _toProtobuf() {\n throw new Error(\"not implemented\");\n }\n}\n"],"names":["CustomFee","constructor","props","this","_feeCollectorAccountId","_allCollectorsAreExempt","feeCollectorAccountId","setFeeCollectorAccountId","allCollectorsAreExempt","setAllCollectorsAreExempt","AccountId","fromString","_fromProtobuf","info","Error","_toProtobuf"],"mappings":"uCASe,MAAMA,EAMjB,WAAAC,CAAYC,EAAQ,IAIhBC,KAAKC,uBAAyB,KAE9BD,KAAKE,yBAA0B,EAEI,MAA/BH,EAAMI,uBACNH,KAAKI,yBAAyBL,EAAMI,uBAGJ,MAAhCJ,EAAMM,wBACNL,KAAKM,0BAA0BP,EAAMM,uBAEjD,CAKI,yBAAIF,GACA,OAAOH,KAAKC,sBACpB,CAMI,wBAAAG,CAAyBD,GAKrB,OAJAH,KAAKC,uBACgC,iBAA1BE,EACDI,EAAUC,WAAWL,GACrBA,EACHH,IACf,CAKI,0BAAIK,GACA,OAAOL,KAAKE,uBACpB,CAMI,yBAAAI,CAA0BD,GAEtB,OADAL,KAAKE,wBAA0BG,EACxBL,IACf,CASI,oBAAOS,CAAcC,GACjB,MAAM,IAAIC,MAAM,kBACxB,CAOI,WAAAC,GACI,MAAM,IAAID,MAAM,kBACxB"}
@@ -18,9 +18,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
18
18
 
19
19
  /**
20
20
  * @namespace proto
21
- * @typedef {import("@hashgraph/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
22
- * @typedef {import("@hashgraph/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
23
- * @typedef {import("@hashgraph/proto").proto.IFixedCustomFee} HieroProto.proto.IFixedCustomFee
21
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
22
+ * @typedef {import("@hiero-ledger/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
23
+ * @typedef {import("@hiero-ledger/proto").proto.IFixedCustomFee} HieroProto.proto.IFixedCustomFee
24
24
  */
25
25
 
26
26
  class CustomFixedFee extends _CustomFee.default {
@@ -3,9 +3,9 @@
3
3
  */
4
4
  /**
5
5
  * @namespace proto
6
- * @typedef {import("@hashgraph/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
7
- * @typedef {import("@hashgraph/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
8
- * @typedef {import("@hashgraph/proto").proto.IFixedCustomFee} HieroProto.proto.IFixedCustomFee
6
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
7
+ * @typedef {import("@hiero-ledger/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
8
+ * @typedef {import("@hiero-ledger/proto").proto.IFixedCustomFee} HieroProto.proto.IFixedCustomFee
9
9
  */
10
10
  export default class CustomFixedFee extends CustomFee {
11
11
  /**
@@ -77,9 +77,9 @@ export default class CustomFixedFee extends CustomFee {
77
77
  export type BigNumber = import("bignumber.js").default;
78
78
  export namespace HieroProto {
79
79
  namespace proto {
80
- type ICustomFee = import("@hashgraph/proto").proto.ICustomFee;
81
- type IFixedFee = import("@hashgraph/proto").proto.IFixedFee;
82
- type IFixedCustomFee = import("@hashgraph/proto").proto.IFixedCustomFee;
80
+ type ICustomFee = import("@hiero-ledger/proto").proto.ICustomFee;
81
+ type IFixedFee = import("@hiero-ledger/proto").proto.IFixedFee;
82
+ type IFixedCustomFee = import("@hiero-ledger/proto").proto.IFixedCustomFee;
83
83
  }
84
84
  }
85
85
  import CustomFee from "./CustomFee.js";
@@ -1 +1 @@
1
- {"version":3,"file":"CustomFixedFee.js","sources":["../../src/token/CustomFixedFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.js\";\nimport CustomFee from \"./CustomFee.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Hbar from \"../Hbar.js\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.ICustomFee} HieroProto.proto.ICustomFee\n * @typedef {import(\"@hashgraph/proto\").proto.IFixedFee} HieroProto.proto.IFixedFee\n * @typedef {import(\"@hashgraph/proto\").proto.IFixedCustomFee} HieroProto.proto.IFixedCustomFee\n */\n\nexport default class CustomFixedFee extends CustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {boolean} [props.allCollectorsAreExempt]\n * @param {TokenId | string} [props.denominatingTokenId]\n * @param {Long | number | BigNumber | bigint} [props.amount]\n */\n constructor(props = {}) {\n super(props);\n\n /**\n * @type {?TokenId}\n */\n this._denominatingTokenId = null;\n\n if (props.denominatingTokenId != null) {\n this.setDenominatingTokenId(props.denominatingTokenId);\n }\n\n /**\n * @type {?Long}\n */\n this._amount = null;\n\n if (props.amount != null) {\n this.setAmount(props.amount);\n }\n }\n\n /**\n * @param {Hbar} amount\n * @returns {CustomFixedFee}\n */\n setHbarAmount(amount) {\n this._amount = amount.toTinybars();\n this._denominatingTokenId = null;\n return this;\n }\n\n /**\n * @returns {TokenId | Hbar | null}\n */\n get hbarAmount() {\n return this._denominatingTokenId != null\n ? null\n : Hbar.fromTinybars(this._amount != null ? this._amount : 0);\n }\n\n /**\n * @returns {CustomFixedFee}\n */\n setDenominatingTokenToSameToken() {\n this._denominatingTokenId = new TokenId(0, 0, 0);\n return this;\n }\n\n /**\n * @returns {?TokenId}\n */\n get denominatingTokenId() {\n return this._denominatingTokenId;\n }\n\n /**\n * @param {TokenId | string} denominatingTokenId\n * @returns {CustomFixedFee}\n */\n setDenominatingTokenId(denominatingTokenId) {\n this._denominatingTokenId =\n typeof denominatingTokenId === \"string\"\n ? TokenId.fromString(denominatingTokenId)\n : denominatingTokenId;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get amount() {\n return this._amount;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} amount\n * @returns {CustomFixedFee}\n */\n setAmount(amount) {\n this._amount = convertAmountToLong(amount);\n return this;\n }\n\n /**\n * @internal\n * @override\n * @param {HieroProto.proto.ICustomFee} info\n * @returns {CustomFixedFee}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n static _fromProtobuf(info) {\n const fee = /** @type {HieroProto.proto.IFixedFee} */ (info.fixedFee);\n\n return new CustomFixedFee({\n feeCollectorAccountId:\n info.feeCollectorAccountId != null\n ? AccountId._fromProtobuf(info.feeCollectorAccountId)\n : undefined,\n allCollectorsAreExempt:\n info.allCollectorsAreExempt != null\n ? info.allCollectorsAreExempt\n : undefined,\n denominatingTokenId:\n fee.denominatingTokenId != null\n ? TokenId._fromProtobuf(fee.denominatingTokenId)\n : undefined,\n amount: fee.amount != null ? fee.amount : undefined,\n });\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.ICustomFee}\n */\n _toProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n allCollectorsAreExempt: this.allCollectorsAreExempt,\n fixedFee: {\n denominatingTokenId:\n this._denominatingTokenId != null\n ? this._denominatingTokenId._toProtobuf()\n : null,\n amount: this._amount,\n },\n };\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.IFixedCustomFee}\n */\n _toTopicFeeProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n fixedFee: {\n denominatingTokenId:\n this._denominatingTokenId != null\n ? this._denominatingTokenId._toProtobuf()\n : null,\n amount: this._amount,\n },\n };\n }\n}\n"],"names":["CustomFixedFee","CustomFee","constructor","props","super","this","_denominatingTokenId","denominatingTokenId","setDenominatingTokenId","_amount","amount","setAmount","setHbarAmount","toTinybars","hbarAmount","Hbar","fromTinybars","setDenominatingTokenToSameToken","TokenId","fromString","convertAmountToLong","_fromProtobuf","info","fee","feeCollectorAccountId","AccountId","undefined","allCollectorsAreExempt","_toProtobuf","f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B,uBAC7BE,SAAU,CACNtB,oBACiC,MAA7BF,KAAKC,qBACCD,KAAKC,qBAAqBsB,cAC1B,KACVlB,OAAQL,KAAKI,SAG7B,CAOI,mBAAAqB,GACI,MAAO,CACHN,sBACkC,MAA9BnB,KAAKmB,sBACCnB,KAAKmB,sBAAsBI,cAC3B,KACVC,SAAU,CACNtB,oBACiC,MAA7BF,KAAKC,qBACCD,KAAKC,qBAAqBsB,cAC1B,KACVlB,OAAQL,KAAKI,SAG7B"}
1
+ {"version":3,"file":"CustomFixedFee.js","sources":["../../src/token/CustomFixedFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.js\";\nimport CustomFee from \"./CustomFee.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Hbar from \"../Hbar.js\";\nimport { convertAmountToLong } from \"../util.js\";\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n */\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ICustomFee} HieroProto.proto.ICustomFee\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFixedFee} HieroProto.proto.IFixedFee\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFixedCustomFee} HieroProto.proto.IFixedCustomFee\n */\n\nexport default class CustomFixedFee extends CustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {boolean} [props.allCollectorsAreExempt]\n * @param {TokenId | string} [props.denominatingTokenId]\n * @param {Long | number | BigNumber | bigint} [props.amount]\n */\n constructor(props = {}) {\n super(props);\n\n /**\n * @type {?TokenId}\n */\n this._denominatingTokenId = null;\n\n if (props.denominatingTokenId != null) {\n this.setDenominatingTokenId(props.denominatingTokenId);\n }\n\n /**\n * @type {?Long}\n */\n this._amount = null;\n\n if (props.amount != null) {\n this.setAmount(props.amount);\n }\n }\n\n /**\n * @param {Hbar} amount\n * @returns {CustomFixedFee}\n */\n setHbarAmount(amount) {\n this._amount = amount.toTinybars();\n this._denominatingTokenId = null;\n return this;\n }\n\n /**\n * @returns {TokenId | Hbar | null}\n */\n get hbarAmount() {\n return this._denominatingTokenId != null\n ? null\n : Hbar.fromTinybars(this._amount != null ? this._amount : 0);\n }\n\n /**\n * @returns {CustomFixedFee}\n */\n setDenominatingTokenToSameToken() {\n this._denominatingTokenId = new TokenId(0, 0, 0);\n return this;\n }\n\n /**\n * @returns {?TokenId}\n */\n get denominatingTokenId() {\n return this._denominatingTokenId;\n }\n\n /**\n * @param {TokenId | string} denominatingTokenId\n * @returns {CustomFixedFee}\n */\n setDenominatingTokenId(denominatingTokenId) {\n this._denominatingTokenId =\n typeof denominatingTokenId === \"string\"\n ? TokenId.fromString(denominatingTokenId)\n : denominatingTokenId;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get amount() {\n return this._amount;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} amount\n * @returns {CustomFixedFee}\n */\n setAmount(amount) {\n this._amount = convertAmountToLong(amount);\n return this;\n }\n\n /**\n * @internal\n * @override\n * @param {HieroProto.proto.ICustomFee} info\n * @returns {CustomFixedFee}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n static _fromProtobuf(info) {\n const fee = /** @type {HieroProto.proto.IFixedFee} */ (info.fixedFee);\n\n return new CustomFixedFee({\n feeCollectorAccountId:\n info.feeCollectorAccountId != null\n ? AccountId._fromProtobuf(info.feeCollectorAccountId)\n : undefined,\n allCollectorsAreExempt:\n info.allCollectorsAreExempt != null\n ? info.allCollectorsAreExempt\n : undefined,\n denominatingTokenId:\n fee.denominatingTokenId != null\n ? TokenId._fromProtobuf(fee.denominatingTokenId)\n : undefined,\n amount: fee.amount != null ? fee.amount : undefined,\n });\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.ICustomFee}\n */\n _toProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n allCollectorsAreExempt: this.allCollectorsAreExempt,\n fixedFee: {\n denominatingTokenId:\n this._denominatingTokenId != null\n ? this._denominatingTokenId._toProtobuf()\n : null,\n amount: this._amount,\n },\n };\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.IFixedCustomFee}\n */\n _toTopicFeeProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n fixedFee: {\n denominatingTokenId:\n this._denominatingTokenId != null\n ? this._denominatingTokenId._toProtobuf()\n : null,\n amount: this._amount,\n },\n };\n }\n}\n"],"names":["CustomFixedFee","CustomFee","constructor","props","super","this","_denominatingTokenId","denominatingTokenId","setDenominatingTokenId","_amount","amount","setAmount","setHbarAmount","toTinybars","hbarAmount","Hbar","fromTinybars","setDenominatingTokenToSameToken","TokenId","fromString","convertAmountToLong","_fromProtobuf","info","fee","feeCollectorAccountId","AccountId","undefined","allCollectorsAreExempt","_toProtobuf","fixedFee","_toTopicFeeProtobuf"],"mappings":"4KAmBe,MAAMA,UAAuBC,EAQxC,WAAAC,CAAYC,EAAQ,IAChBC,MAAMD,GAKNE,KAAKC,qBAAuB,KAEK,MAA7BH,EAAMI,qBACNF,KAAKG,uBAAuBL,EAAMI,qBAMtCF,KAAKI,QAAU,KAEK,MAAhBN,EAAMO,QACNL,KAAKM,UAAUR,EAAMO,OAEjC,CAMI,aAAAE,CAAcF,GAGV,OAFAL,KAAKI,QAAUC,EAAOG,aACtBR,KAAKC,qBAAuB,KACrBD,IACf,CAKI,cAAIS,GACA,OAAoC,MAA7BT,KAAKC,qBACN,KACAS,EAAKC,aAA6B,MAAhBX,KAAKI,QAAkBJ,KAAKI,QAAU,EACtE,CAKI,+BAAAQ,GAEI,OADAZ,KAAKC,qBAAuB,IAAIY,EAAQ,EAAG,EAAG,GACvCb,IACf,CAKI,uBAAIE,GACA,OAAOF,KAAKC,oBACpB,CAMI,sBAAAE,CAAuBD,GAKnB,OAJAF,KAAKC,qBAC8B,iBAAxBC,EACDW,EAAQC,WAAWZ,GACnBA,EACHF,IACf,CAKI,UAAIK,GACA,OAAOL,KAAKI,OACpB,CAMI,SAAAE,CAAUD,GAEN,OADAL,KAAKI,QAAUW,EAAoBV,GAC5BL,IACf,CASI,oBAAOgB,CAAcC,GACjB,MAAMC,EAAiDD,EAAa,SAEpE,OAAO,IAAItB,EAAe,CACtBwB,sBACkC,MAA9BF,EAAKE,sBACCC,EAAUJ,cAAcC,EAAKE,4BAC7BE,EACVC,uBACmC,MAA/BL,EAAKK,uBACCL,EAAKK,4BACLD,EACVnB,oBAC+B,MAA3BgB,EAAIhB,oBACEW,EAAQG,cAAcE,EAAIhB,0BAC1BmB,EACVhB,OAAsB,MAAda,EAAIb,OAAiBa,EAAIb,YAASgB,GAEtD,CAOI,WAAAE,GACI,MAAO,CACHJ,sBACkC,MAA9BnB,KAAKmB,sBACCnB,KAAKmB,sBAAsBI,cAC3B,KACVD,uBAAwBtB,KAAKsB,uBAC7BE,SAAU,CACNtB,oBACiC,MAA7BF,KAAKC,qBACCD,KAAKC,qBAAqBsB,cAC1B,KACVlB,OAAQL,KAAKI,SAG7B,CAOI,mBAAAqB,GACI,MAAO,CACHN,sBACkC,MAA9BnB,KAAKmB,sBACCnB,KAAKmB,sBAAsBI,cAC3B,KACVC,SAAU,CACNtB,oBACiC,MAA7BF,KAAKC,qBACCD,KAAKC,qBAAqBsB,cAC1B,KACVlB,OAAQL,KAAKI,SAG7B"}
@@ -13,9 +13,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
13
 
14
14
  /**
15
15
  * @namespace proto
16
- * @typedef {import("@hashgraph/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
17
- * @typedef {import("@hashgraph/proto").proto.IFractionalFee} HieroProto.proto.IFractionalFee
18
- * @typedef {import("@hashgraph/proto").proto.IFraction} HieroProto.proto.IFraction
16
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
17
+ * @typedef {import("@hiero-ledger/proto").proto.IFractionalFee} HieroProto.proto.IFractionalFee
18
+ * @typedef {import("@hiero-ledger/proto").proto.IFraction} HieroProto.proto.IFraction
19
19
  */
20
20
 
21
21
  class CustomFractionalFee extends _CustomFee.default {
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
4
- * @typedef {import("@hashgraph/proto").proto.IFractionalFee} HieroProto.proto.IFractionalFee
5
- * @typedef {import("@hashgraph/proto").proto.IFraction} HieroProto.proto.IFraction
3
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
4
+ * @typedef {import("@hiero-ledger/proto").proto.IFractionalFee} HieroProto.proto.IFractionalFee
5
+ * @typedef {import("@hiero-ledger/proto").proto.IFraction} HieroProto.proto.IFraction
6
6
  */
7
7
  export default class CustomFractionalFee extends CustomFee {
8
8
  /**
@@ -92,9 +92,9 @@ export default class CustomFractionalFee extends CustomFee {
92
92
  }
93
93
  export namespace HieroProto {
94
94
  namespace proto {
95
- type ICustomFee = import("@hashgraph/proto").proto.ICustomFee;
96
- type IFractionalFee = import("@hashgraph/proto").proto.IFractionalFee;
97
- type IFraction = import("@hashgraph/proto").proto.IFraction;
95
+ type ICustomFee = import("@hiero-ledger/proto").proto.ICustomFee;
96
+ type IFractionalFee = import("@hiero-ledger/proto").proto.IFractionalFee;
97
+ type IFraction = import("@hiero-ledger/proto").proto.IFraction;
98
98
  }
99
99
  }
100
100
  import CustomFee from "./CustomFee.js";
@@ -1 +1 @@
1
- {"version":3,"file":"CustomFractionalFee.js","sources":["../../src/token/CustomFractionalFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport CustomFee from \"./CustomFee.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport FeeAssessmentMethod from \"./FeeAssessmentMethod.js\";\nimport Long from \"long\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.ICustomFee} HieroProto.proto.ICustomFee\n * @typedef {import(\"@hashgraph/proto\").proto.IFractionalFee} HieroProto.proto.IFractionalFee\n * @typedef {import(\"@hashgraph/proto\").proto.IFraction} HieroProto.proto.IFraction\n */\n\nexport default class CustomFractionalFee extends CustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {boolean} [props.allCollectorsAreExempt]\n * @param {Long | number} [props.numerator]\n * @param {Long | number} [props.denominator]\n * @param {Long | number} [props.min]\n * @param {Long | number} [props.max]\n * @param {FeeAssessmentMethod} [props.assessmentMethod]\n */\n constructor(props = {}) {\n super(props);\n\n /**\n * @type {?Long}\n */\n this._numerator = null;\n\n if (props.numerator != null) {\n this.setNumerator(props.numerator);\n }\n\n /**\n * @type {?Long}\n */\n this._denominator = null;\n\n if (props.denominator != null) {\n this.setDenominator(props.denominator);\n }\n\n /**\n * @type {?Long}\n */\n this._min = null;\n\n if (props.min != null) {\n this.setMin(props.min);\n }\n\n /**\n * @type {?Long}\n */\n this._max;\n\n if (props.max != null) {\n this.setMax(props.max);\n }\n\n /**\n * @type {?FeeAssessmentMethod}\n */\n this._assessmentMethod;\n\n if (props.assessmentMethod != null) {\n this.setAssessmentMethod(props.assessmentMethod);\n }\n }\n\n /**\n * @returns {?Long}\n */\n get numerator() {\n return this._numerator;\n }\n\n /**\n * @param {Long | number} numerator\n * @returns {CustomFractionalFee}\n */\n setNumerator(numerator) {\n this._numerator =\n typeof numerator === \"number\"\n ? Long.fromNumber(numerator)\n : numerator;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get denominator() {\n return this._denominator;\n }\n\n /**\n * @param {Long | number} denominator\n * @returns {CustomFractionalFee}\n */\n setDenominator(denominator) {\n this._denominator =\n typeof denominator === \"number\"\n ? Long.fromNumber(denominator)\n : denominator;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get min() {\n return this._min;\n }\n\n /**\n * @param {Long | number} min\n * @returns {CustomFractionalFee}\n */\n setMin(min) {\n this._min = typeof min === \"number\" ? Long.fromNumber(min) : min;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get max() {\n return this._max;\n }\n\n /**\n * @param {Long | number} max\n * @returns {CustomFractionalFee}\n */\n setMax(max) {\n this._max = typeof max === \"number\" ? Long.fromNumber(max) : max;\n return this;\n }\n\n /**\n * @returns {?FeeAssessmentMethod}\n */\n get assessmentMethod() {\n return this._assessmentMethod;\n }\n\n /**\n * @param {FeeAssessmentMethod} assessmentMethod\n * @returns {CustomFractionalFee}\n */\n setAssessmentMethod(assessmentMethod) {\n this._assessmentMethod = assessmentMethod;\n return this;\n }\n\n /**\n * @internal\n * @override\n * @param {HieroProto.proto.ICustomFee} info\n * @returns {CustomFee}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n static _fromProtobuf(info) {\n const fee = /** @type {HieroProto.proto.IFractionalFee} */ (\n info.fractionalFee\n );\n const fractional = /** @type {HieroProto.proto.IFraction} */ (\n fee.fractionalAmount\n );\n\n return new CustomFractionalFee({\n feeCollectorAccountId:\n info.feeCollectorAccountId != null\n ? AccountId._fromProtobuf(info.feeCollectorAccountId)\n : undefined,\n allCollectorsAreExempt:\n info.allCollectorsAreExempt != null\n ? info.allCollectorsAreExempt\n : undefined,\n numerator:\n fractional.numerator != null ? fractional.numerator : undefined,\n denominator:\n fractional.denominator != null\n ? fractional.denominator\n : undefined,\n min: fee.minimumAmount != null ? fee.minimumAmount : undefined,\n max: fee.maximumAmount != null ? fee.maximumAmount : undefined,\n assessmentMethod:\n fee.netOfTransfers != null\n ? new FeeAssessmentMethod(fee.netOfTransfers)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.ICustomFee}\n */\n _toProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n allCollectorsAreExempt: this.allCollectorsAreExempt,\n fractionalFee: {\n fractionalAmount: {\n numerator: this._numerator,\n denominator: this._denominator,\n },\n minimumAmount: this._min,\n maximumAmount: this._max,\n netOfTransfers:\n this._assessmentMethod != null\n ? this._assessmentMethod.valueOf()\n : false,\n },\n };\n }\n}\n"],"names":["CustomFractionalFee","CustomFee","constructor","props","super","this","_numerator","numerator","setNumerator","_denominator","denominator","setDenominator","_min","min","setMin","_max","max","setMax","_assessmentMethod","assessmentMethod","setAssessmentMethod","Long","fromNumber","_fromProtobuf","info","fee","fractional","feeCollectorAccountId","AccountId","undefined","allCollectorsAreExempt","minimumAmount","maximumAmount","netOfTransfers","FeeAssessmentMethod","_toProtobuf","fractionalFee","fractionalAmount","valueOf"],"mappings":"iIAce,MAAMA,UAA4BC,EAW7C,WAAAC,CAAYC,EAAQ,IAChBC,MAAMD,GAKNE,KAAKC,WAAa,KAEK,MAAnBH,EAAMI,WACNF,KAAKG,aAAaL,EAAMI,WAM5BF,KAAKI,aAAe,KAEK,MAArBN,EAAMO,aACNL,KAAKM,eAAeR,EAAMO,aAM9BL,KAAKO,KAAO,KAEK,MAAbT,EAAMU,KACNR,KAAKS,OAAOX,EAAMU,KAMtBR,KAAKU,KAEY,MAAbZ,EAAMa,KACNX,KAAKY,OAAOd,EAAMa,KAMtBX,KAAKa,kBAEyB,MAA1Bf,EAAMgB,kBACNd,KAAKe,oBAAoBjB,EAAMgB,iBAE3C,CAKI,aAAIZ,GACA,OAAOF,KAAKC,UACpB,CAMI,YAAAE,CAAaD,GAKT,OAJAF,KAAKC,WACoB,iBAAdC,EACDc,EAAKC,WAAWf,GAChBA,EACHF,IACf,CAKI,eAAIK,GACA,OAAOL,KAAKI,YACpB,CAMI,cAAAE,CAAeD,GAKX,OAJAL,KAAKI,aACsB,iBAAhBC,EACDW,EAAKC,WAAWZ,GAChBA,EACHL,IACf,CAKI,OAAIQ,GACA,OAAOR,KAAKO,IACpB,CAMI,MAAAE,CAAOD,GAEH,OADAR,KAAKO,KAAsB,iBAARC,EAAmBQ,EAAKC,WAAWT,GAAOA,EACtDR,IACf,CAKI,OAAIW,GACA,OAAOX,KAAKU,IACpB,CAMI,MAAAE,CAAOD,GAEH,OADAX,KAAKU,KAAsB,iBAARC,EAAmBK,EAAKC,WAAWN,GAAOA,EACtDX,IACf,CAKI,oBAAIc,GACA,OAAOd,KAAKa,iBACpB,CAMI,mBAAAE,CAAoBD,GAEhB,OADAd,KAAKa,kBAAoBC,EAClBd,IACf,CASI,oBAAOkB,CAAcC,GACjB,MAAMC,EACFD,EACH,cACKE,EACFD,EACH,iBAED,OAAO,IAAIzB,EAAoB,CAC3B2B,sBACkC,MAA9BH,EAAKG,sBACCC,EAAUL,cAAcC,EAAKG,4BAC7BE,EACVC,uBACmC,MAA/BN,EAAKM,uBACCN,EAAKM,4BACLD,EACVtB,UAC4B,MAAxBmB,EAAWnB,UAAoBmB,EAAWnB,eAAYsB,EAC1DnB,YAC8B,MAA1BgB,EAAWhB,YACLgB,EAAWhB,iBACXmB,EACVhB,IAA0B,MAArBY,EAAIM,cAAwBN,EAAIM,mBAAgBF,EACrDb,IAA0B,MAArBS,EAAIO,cAAwBP,EAAIO,mBAAgBH,EACrDV,iBAC0B,MAAtBM,EAAIQ,eACE,IAAIC,EAAoBT,EAAIQ,qBAC5BJ,GAEtB,CAOI,WAAAM,GACI,MAAO,CACHR,sBACkC,MAA9BtB,KAAKsB,sBACCtB,KAAKsB,sBAAsBQ,cAC3B,KACVL,uBAAwBzB,KAAKyB,uBAC7BM,cAAe,CACXC,iBAAkB,CACd9B,UAAWF,KAAKC,WAChBI,YAAaL,KAAKI,cAEtBsB,cAAe1B,KAAKO,KACpBoB,cAAe3B,KAAKU,KACpBkB,eAC8B,MAA1B5B,KAAKa,mBACCb,KAAKa,kBAAkBoB,WAIjD"}
1
+ {"version":3,"file":"CustomFractionalFee.js","sources":["../../src/token/CustomFractionalFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport CustomFee from \"./CustomFee.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport FeeAssessmentMethod from \"./FeeAssessmentMethod.js\";\nimport Long from \"long\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.ICustomFee} HieroProto.proto.ICustomFee\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFractionalFee} HieroProto.proto.IFractionalFee\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFraction} HieroProto.proto.IFraction\n */\n\nexport default class CustomFractionalFee extends CustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {boolean} [props.allCollectorsAreExempt]\n * @param {Long | number} [props.numerator]\n * @param {Long | number} [props.denominator]\n * @param {Long | number} [props.min]\n * @param {Long | number} [props.max]\n * @param {FeeAssessmentMethod} [props.assessmentMethod]\n */\n constructor(props = {}) {\n super(props);\n\n /**\n * @type {?Long}\n */\n this._numerator = null;\n\n if (props.numerator != null) {\n this.setNumerator(props.numerator);\n }\n\n /**\n * @type {?Long}\n */\n this._denominator = null;\n\n if (props.denominator != null) {\n this.setDenominator(props.denominator);\n }\n\n /**\n * @type {?Long}\n */\n this._min = null;\n\n if (props.min != null) {\n this.setMin(props.min);\n }\n\n /**\n * @type {?Long}\n */\n this._max;\n\n if (props.max != null) {\n this.setMax(props.max);\n }\n\n /**\n * @type {?FeeAssessmentMethod}\n */\n this._assessmentMethod;\n\n if (props.assessmentMethod != null) {\n this.setAssessmentMethod(props.assessmentMethod);\n }\n }\n\n /**\n * @returns {?Long}\n */\n get numerator() {\n return this._numerator;\n }\n\n /**\n * @param {Long | number} numerator\n * @returns {CustomFractionalFee}\n */\n setNumerator(numerator) {\n this._numerator =\n typeof numerator === \"number\"\n ? Long.fromNumber(numerator)\n : numerator;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get denominator() {\n return this._denominator;\n }\n\n /**\n * @param {Long | number} denominator\n * @returns {CustomFractionalFee}\n */\n setDenominator(denominator) {\n this._denominator =\n typeof denominator === \"number\"\n ? Long.fromNumber(denominator)\n : denominator;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get min() {\n return this._min;\n }\n\n /**\n * @param {Long | number} min\n * @returns {CustomFractionalFee}\n */\n setMin(min) {\n this._min = typeof min === \"number\" ? Long.fromNumber(min) : min;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get max() {\n return this._max;\n }\n\n /**\n * @param {Long | number} max\n * @returns {CustomFractionalFee}\n */\n setMax(max) {\n this._max = typeof max === \"number\" ? Long.fromNumber(max) : max;\n return this;\n }\n\n /**\n * @returns {?FeeAssessmentMethod}\n */\n get assessmentMethod() {\n return this._assessmentMethod;\n }\n\n /**\n * @param {FeeAssessmentMethod} assessmentMethod\n * @returns {CustomFractionalFee}\n */\n setAssessmentMethod(assessmentMethod) {\n this._assessmentMethod = assessmentMethod;\n return this;\n }\n\n /**\n * @internal\n * @override\n * @param {HieroProto.proto.ICustomFee} info\n * @returns {CustomFee}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n static _fromProtobuf(info) {\n const fee = /** @type {HieroProto.proto.IFractionalFee} */ (\n info.fractionalFee\n );\n const fractional = /** @type {HieroProto.proto.IFraction} */ (\n fee.fractionalAmount\n );\n\n return new CustomFractionalFee({\n feeCollectorAccountId:\n info.feeCollectorAccountId != null\n ? AccountId._fromProtobuf(info.feeCollectorAccountId)\n : undefined,\n allCollectorsAreExempt:\n info.allCollectorsAreExempt != null\n ? info.allCollectorsAreExempt\n : undefined,\n numerator:\n fractional.numerator != null ? fractional.numerator : undefined,\n denominator:\n fractional.denominator != null\n ? fractional.denominator\n : undefined,\n min: fee.minimumAmount != null ? fee.minimumAmount : undefined,\n max: fee.maximumAmount != null ? fee.maximumAmount : undefined,\n assessmentMethod:\n fee.netOfTransfers != null\n ? new FeeAssessmentMethod(fee.netOfTransfers)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.ICustomFee}\n */\n _toProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n allCollectorsAreExempt: this.allCollectorsAreExempt,\n fractionalFee: {\n fractionalAmount: {\n numerator: this._numerator,\n denominator: this._denominator,\n },\n minimumAmount: this._min,\n maximumAmount: this._max,\n netOfTransfers:\n this._assessmentMethod != null\n ? this._assessmentMethod.valueOf()\n : false,\n },\n };\n }\n}\n"],"names":["CustomFractionalFee","CustomFee","constructor","props","super","this","_numerator","numerator","setNumerator","_denominator","denominator","setDenominator","_min","min","setMin","_max","max","setMax","_assessmentMethod","assessmentMethod","setAssessmentMethod","Long","fromNumber","_fromProtobuf","info","fee","fractional","feeCollectorAccountId","AccountId","undefined","allCollectorsAreExempt","minimumAmount","maximumAmount","netOfTransfers","FeeAssessmentMethod","_toProtobuf","fractionalFee","fractionalAmount","valueOf"],"mappings":"iIAce,MAAMA,UAA4BC,EAW7C,WAAAC,CAAYC,EAAQ,IAChBC,MAAMD,GAKNE,KAAKC,WAAa,KAEK,MAAnBH,EAAMI,WACNF,KAAKG,aAAaL,EAAMI,WAM5BF,KAAKI,aAAe,KAEK,MAArBN,EAAMO,aACNL,KAAKM,eAAeR,EAAMO,aAM9BL,KAAKO,KAAO,KAEK,MAAbT,EAAMU,KACNR,KAAKS,OAAOX,EAAMU,KAMtBR,KAAKU,KAEY,MAAbZ,EAAMa,KACNX,KAAKY,OAAOd,EAAMa,KAMtBX,KAAKa,kBAEyB,MAA1Bf,EAAMgB,kBACNd,KAAKe,oBAAoBjB,EAAMgB,iBAE3C,CAKI,aAAIZ,GACA,OAAOF,KAAKC,UACpB,CAMI,YAAAE,CAAaD,GAKT,OAJAF,KAAKC,WACoB,iBAAdC,EACDc,EAAKC,WAAWf,GAChBA,EACHF,IACf,CAKI,eAAIK,GACA,OAAOL,KAAKI,YACpB,CAMI,cAAAE,CAAeD,GAKX,OAJAL,KAAKI,aACsB,iBAAhBC,EACDW,EAAKC,WAAWZ,GAChBA,EACHL,IACf,CAKI,OAAIQ,GACA,OAAOR,KAAKO,IACpB,C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**
15
15
  * @namespace proto
16
- * @typedef {import("@hashgraph/proto").proto.IFraction} HieroProto.proto.IFraction
17
- * @typedef {import("@hashgraph/proto").proto.IRoyaltyFee} HieroProto.proto.IRoyaltyFee
18
- * @typedef {import("@hashgraph/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
19
- * @typedef {import("@hashgraph/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
16
+ * @typedef {import("@hiero-ledger/proto").proto.IFraction} HieroProto.proto.IFraction
17
+ * @typedef {import("@hiero-ledger/proto").proto.IRoyaltyFee} HieroProto.proto.IRoyaltyFee
18
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
19
+ * @typedef {import("@hiero-ledger/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
20
20
  */
21
21
 
22
22
  class CustomRoyalyFee extends _CustomFee.default {
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.IFraction} HieroProto.proto.IFraction
4
- * @typedef {import("@hashgraph/proto").proto.IRoyaltyFee} HieroProto.proto.IRoyaltyFee
5
- * @typedef {import("@hashgraph/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
6
- * @typedef {import("@hashgraph/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
3
+ * @typedef {import("@hiero-ledger/proto").proto.IFraction} HieroProto.proto.IFraction
4
+ * @typedef {import("@hiero-ledger/proto").proto.IRoyaltyFee} HieroProto.proto.IRoyaltyFee
5
+ * @typedef {import("@hiero-ledger/proto").proto.ICustomFee} HieroProto.proto.ICustomFee
6
+ * @typedef {import("@hiero-ledger/proto").proto.IFixedFee} HieroProto.proto.IFixedFee
7
7
  */
8
8
  export default class CustomRoyalyFee extends CustomFee {
9
9
  /**
@@ -63,10 +63,10 @@ export default class CustomRoyalyFee extends CustomFee {
63
63
  }
64
64
  export namespace HieroProto {
65
65
  namespace proto {
66
- type IFraction = import("@hashgraph/proto").proto.IFraction;
67
- type IRoyaltyFee = import("@hashgraph/proto").proto.IRoyaltyFee;
68
- type ICustomFee = import("@hashgraph/proto").proto.ICustomFee;
69
- type IFixedFee = import("@hashgraph/proto").proto.IFixedFee;
66
+ type IFraction = import("@hiero-ledger/proto").proto.IFraction;
67
+ type IRoyaltyFee = import("@hiero-ledger/proto").proto.IRoyaltyFee;
68
+ type ICustomFee = import("@hiero-ledger/proto").proto.ICustomFee;
69
+ type IFixedFee = import("@hiero-ledger/proto").proto.IFixedFee;
70
70
  }
71
71
  }
72
72
  import CustomFee from "./CustomFee.js";
@@ -1 +1 @@
1
- {"version":3,"file":"CustomRoyaltyFee.js","sources":["../../src/token/CustomRoyaltyFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport CustomFee from \"./CustomFee.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Long from \"long\";\nimport CustomFixedFee from \"./CustomFixedFee.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.IFraction} HieroProto.proto.IFraction\n * @typedef {import(\"@hashgraph/proto\").proto.IRoyaltyFee} HieroProto.proto.IRoyaltyFee\n * @typedef {import(\"@hashgraph/proto\").proto.ICustomFee} HieroProto.proto.ICustomFee\n * @typedef {import(\"@hashgraph/proto\").proto.IFixedFee} HieroProto.proto.IFixedFee\n */\n\nexport default class CustomRoyalyFee extends CustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {boolean} [props.allCollectorsAreExempt]\n * @param {Long | number} [props.numerator]\n * @param {Long | number} [props.denominator]\n * @param {CustomFixedFee} [props.fallbackFee]\n */\n constructor(props = {}) {\n super(props);\n\n /**\n * @type {?CustomFixedFee}\n */\n this._fallbackFee = null;\n\n if (props.fallbackFee != null) {\n this.setFallbackFee(props.fallbackFee);\n }\n\n /**\n * @type {?Long}\n */\n this._numerator = null;\n\n if (props.numerator != null) {\n this.setNumerator(props.numerator);\n }\n\n /**\n * @type {?Long}\n */\n this._denominator = null;\n\n if (props.denominator != null) {\n this.setDenominator(props.denominator);\n }\n }\n\n /**\n * @returns {?CustomFixedFee}\n */\n get fallbackFee() {\n return this._fallbackFee;\n }\n\n /**\n * @param {CustomFixedFee} fallbackFee\n * @returns {CustomRoyalyFee}\n */\n setFallbackFee(fallbackFee) {\n this._fallbackFee = fallbackFee;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get numerator() {\n return this._numerator;\n }\n\n /**\n * @param {Long | number} numerator\n * @returns {CustomRoyalyFee}\n */\n setNumerator(numerator) {\n this._numerator =\n typeof numerator === \"number\"\n ? Long.fromNumber(numerator)\n : numerator;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get denominator() {\n return this._denominator;\n }\n\n /**\n * @param {Long | number} denominator\n * @returns {CustomRoyalyFee}\n */\n setDenominator(denominator) {\n this._denominator =\n typeof denominator === \"number\"\n ? Long.fromNumber(denominator)\n : denominator;\n return this;\n }\n\n /**\n * @internal\n * @override\n * @param {HieroProto.proto.ICustomFee} info\n * @returns {CustomFee}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n static _fromProtobuf(info) {\n const fee = /** @type {HieroProto.proto.IRoyaltyFee} */ (\n info.royaltyFee\n );\n const fraction = /** @type {HieroProto.proto.IFraction} */ (\n fee.exchangeValueFraction\n );\n\n return new CustomRoyalyFee({\n feeCollectorAccountId:\n info.feeCollectorAccountId != null\n ? AccountId._fromProtobuf(info.feeCollectorAccountId)\n : undefined,\n allCollectorsAreExempt:\n info.allCollectorsAreExempt != null\n ? info.allCollectorsAreExempt\n : undefined,\n fallbackFee:\n fee.fallbackFee != null\n ? /** @type {CustomFixedFee} */ (\n CustomFixedFee._fromProtobuf({\n fixedFee: fee.fallbackFee,\n })\n )\n : undefined,\n numerator:\n fraction.numerator != null ? fraction.numerator : undefined,\n denominator:\n fraction.denominator != null ? fraction.denominator : undefined,\n });\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.ICustomFee}\n */\n _toProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n allCollectorsAreExempt: this.allCollectorsAreExempt,\n royaltyFee: {\n exchangeValueFraction: {\n numerator: this._numerator,\n denominator: this._denominator,\n },\n fallbackFee:\n this._fallbackFee != null\n ? this._fallbackFee._toProtobuf().fixedFee\n : null,\n },\n };\n }\n}\n"],"names":["CustomRoyalyFee","CustomFee","constructor","props","super","this","_fallbackFee","fallbackFee","setFallbackFee","_numerator","numerator","setNumerator","_denominator","denominator","setDenominator","Long","fromNumber","_fromProtobuf","info","fee","fraction","feeCollectorAccountId","AccountId","undefined","allCollectorsAreExempt","CustomFixedFee","fixedFee","_toProtobuf","royaltyFee","exchangeValueFraction"],"mappings":"4HAee,MAAMA,UAAwBC,EASzC,WAAAC,CAAYC,EAAQ,IAChBC,MAAMD,GAKNE,KAAKC,aAAe,KAEK,MAArBH,EAAMI,aACNF,KAAKG,eAAeL,EAAMI,aAM9BF,KAAKI,WAAa,KAEK,MAAnBN,EAAMO,WACNL,KAAKM,aAAaR,EAAMO,WAM5BL,KAAKO,aAAe,KAEK,MAArBT,EAAMU,aACNR,KAAKS,eAAeX,EAAMU,YAEtC,CAKI,eAAIN,GACA,OAAOF,KAAKC,YACpB,CAMI,cAAAE,CAAeD,GAEX,OADAF,KAAKC,aAAeC,EACbF,IACf,CAKI,aAAIK,GACA,OAAOL,KAAKI,UACpB,CAMI,YAAAE,CAAaD,GAKT,OAJAL,KAAKI,WACoB,iBAAdC,EACDK,EAAKC,WAAWN,GAChBA,EACHL,IACf,CAKI,eAAIQ,GACA,OAAOR,KAAKO,YACpB,CAMI,cAAAE,CAAeD,GAKX,OAJAR,KAAKO,aACsB,iBAAhBC,EACDE,EAAKC,WAAWH,GAChBA,EACHR,IACf,CASI,oBAAOY,CAAcC,GACjB,MAAMC,EACFD,EACH,WACKE,EACFD,EACH,sBAED,OAAO,IAAInB,EAAgB,CACvBqB,sBACkC,MAA9BH,EAAKG,sBACCC,EAAUL,cAAcC,EAAKG,4BAC7BE,EACVC,uBACmC,MAA/BN,EAAKM,uBACCN,EAAKM,4BACLD,EACVhB,YACuB,MAAnBY,EAAIZ,YAEMkB,EAAeR,cAAc,CACzBS,SAAUP,EAAIZ,mBAGtBgB,EACVb,UAC0B,MAAtBU,EAASV,UAAoBU,EAASV,eAAYa,EACtDV,YAC4B,MAAxBO,EAASP,YAAsBO,EAASP,iBAAcU,GAEtE,CAOI,WAAAI,GACI,MAAO,CACHN,sBACkC,MAA9BhB,KAAKgB,sBACChB,KAAKgB,sBAAsBM,cAC3B,KACVH,uBAAwBnB,KAAKmB,uBAC7BI,WAAY,CACRC,sBAAuB,CACnBnB,UAAWL,KAAKI,WAChBI,YAAaR,KAAKO,cAEtBL,YACyB,MAArBF,KAAKC,aACCD,KAAKC,aAAaqB,cAAcD,SAChC,MAG1B"}
1
+ {"version":3,"file":"CustomRoyaltyFee.js","sources":["../../src/token/CustomRoyaltyFee.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport CustomFee from \"./CustomFee.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Long from \"long\";\nimport CustomFixedFee from \"./CustomFixedFee.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFraction} HieroProto.proto.IFraction\n * @typedef {import(\"@hiero-ledger/proto\").proto.IRoyaltyFee} HieroProto.proto.IRoyaltyFee\n * @typedef {import(\"@hiero-ledger/proto\").proto.ICustomFee} HieroProto.proto.ICustomFee\n * @typedef {import(\"@hiero-ledger/proto\").proto.IFixedFee} HieroProto.proto.IFixedFee\n */\n\nexport default class CustomRoyalyFee extends CustomFee {\n /**\n * @param {object} props\n * @param {AccountId | string} [props.feeCollectorAccountId]\n * @param {boolean} [props.allCollectorsAreExempt]\n * @param {Long | number} [props.numerator]\n * @param {Long | number} [props.denominator]\n * @param {CustomFixedFee} [props.fallbackFee]\n */\n constructor(props = {}) {\n super(props);\n\n /**\n * @type {?CustomFixedFee}\n */\n this._fallbackFee = null;\n\n if (props.fallbackFee != null) {\n this.setFallbackFee(props.fallbackFee);\n }\n\n /**\n * @type {?Long}\n */\n this._numerator = null;\n\n if (props.numerator != null) {\n this.setNumerator(props.numerator);\n }\n\n /**\n * @type {?Long}\n */\n this._denominator = null;\n\n if (props.denominator != null) {\n this.setDenominator(props.denominator);\n }\n }\n\n /**\n * @returns {?CustomFixedFee}\n */\n get fallbackFee() {\n return this._fallbackFee;\n }\n\n /**\n * @param {CustomFixedFee} fallbackFee\n * @returns {CustomRoyalyFee}\n */\n setFallbackFee(fallbackFee) {\n this._fallbackFee = fallbackFee;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get numerator() {\n return this._numerator;\n }\n\n /**\n * @param {Long | number} numerator\n * @returns {CustomRoyalyFee}\n */\n setNumerator(numerator) {\n this._numerator =\n typeof numerator === \"number\"\n ? Long.fromNumber(numerator)\n : numerator;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get denominator() {\n return this._denominator;\n }\n\n /**\n * @param {Long | number} denominator\n * @returns {CustomRoyalyFee}\n */\n setDenominator(denominator) {\n this._denominator =\n typeof denominator === \"number\"\n ? Long.fromNumber(denominator)\n : denominator;\n return this;\n }\n\n /**\n * @internal\n * @override\n * @param {HieroProto.proto.ICustomFee} info\n * @returns {CustomFee}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n static _fromProtobuf(info) {\n const fee = /** @type {HieroProto.proto.IRoyaltyFee} */ (\n info.royaltyFee\n );\n const fraction = /** @type {HieroProto.proto.IFraction} */ (\n fee.exchangeValueFraction\n );\n\n return new CustomRoyalyFee({\n feeCollectorAccountId:\n info.feeCollectorAccountId != null\n ? AccountId._fromProtobuf(info.feeCollectorAccountId)\n : undefined,\n allCollectorsAreExempt:\n info.allCollectorsAreExempt != null\n ? info.allCollectorsAreExempt\n : undefined,\n fallbackFee:\n fee.fallbackFee != null\n ? /** @type {CustomFixedFee} */ (\n CustomFixedFee._fromProtobuf({\n fixedFee: fee.fallbackFee,\n })\n )\n : undefined,\n numerator:\n fraction.numerator != null ? fraction.numerator : undefined,\n denominator:\n fraction.denominator != null ? fraction.denominator : undefined,\n });\n }\n\n /**\n * @internal\n * @abstract\n * @returns {HieroProto.proto.ICustomFee}\n */\n _toProtobuf() {\n return {\n feeCollectorAccountId:\n this.feeCollectorAccountId != null\n ? this.feeCollectorAccountId._toProtobuf()\n : null,\n allCollectorsAreExempt: this.allCollectorsAreExempt,\n royaltyFee: {\n exchangeValueFraction: {\n numerator: this._numerator,\n denominator: this._denominator,\n },\n fallbackFee:\n this._fallbackFee != null\n ? this._fallbackFee._toProtobuf().fixedFee\n : null,\n },\n };\n }\n}\n"],"names":["CustomRoyalyFee","CustomFee","constructor","props","super","this","_fallbackFee","fallbackFee","setFallbackFee","_numerator","numerator","setNumerator","_denominator","denominator","setDenominator","Long","fromNumber","_fromProtobuf","info","fee","fraction","feeCollectorAccountId","AccountId","undefined","allCollectorsAreExempt","CustomFixedFee","fixedFee","_toProtobuf","royaltyFee","exchangeValueFraction"],"mappings":"4HAee,MAAMA,UAAwBC,EASzC,WAAAC,CAAYC,EAAQ,IAChBC,MAAMD,GAKNE,KAAKC,aAAe,KAEK,MAArBH,EAAMI,aACNF,KAAKG,eAAeL,EAAMI,aAM9BF,KAAKI,WAAa,KAEK,MAAnBN,EAAMO,WACNL,KAAKM,aAAaR,EAAMO,WAM5BL,KAAKO,aAAe,KAEK,MAArBT,EAAMU,aACNR,KAAKS,eAAeX,EAAMU,YAEtC,CAKI,eAAIN,GACA,OAAOF,KAAKC,YACpB,CAMI,cAAAE,CAAeD,GAEX,OADAF,KAAKC,aAAeC,EACbF,IACf,CAKI,aAAIK,GACA,OAAOL,KAAKI,UACpB,CAMI,YAAAE,CAAaD,GAKT,OAJAL,KAAKI,WACoB,iBAAdC,EACDK,EAAKC,WAAWN,GAChBA,EACHL,IACf,CAKI,eAAIQ,GACA,OAAOR,KAAKO,YACpB,CAMI,cAAAE,CAAeD,GAKX,OAJAR,KAAKO,aACsB,iBAAhBC,EACDE,EAAKC,WAAWH,GAChBA,EACHR,IACf,CASI,oBAAOY,CAAcC,GACjB,MAAMC,EACFD,EACH,WACKE,EACFD,EACH,sBAED,OAAO,IAAInB,EAAgB,CACvBqB,sBACkC,MAA9BH,EAAKG,sBACCC,EAAUL,cAAcC,EAAKG,4BAC7BE,EACVC,uBACmC,MAA/BN,EAAKM,uBACCN,EAAKM,4BACLD,EACVhB,YACuB,MAAnBY,EAAIZ,YAEMkB,EAAeR,cAAc,CACzBS,SAAUP,EAAIZ,mBAGtBgB,EACVb,UAC0B,MAAtBU,EAASV,UAAoBU,EAASV,eAAYa,EACtDV,YAC4B,MAAxBO,EAASP,YAAsBO,EAASP,iBAAcU,GAEtE,CAOI,WAAAI,GACI,MAAO,CACHN,sBACkC,MAA9BhB,KAAKgB,sBACChB,KAAKgB,sBAAsBM,cAC3B,KACVH,uBAAwBnB,KAAKmB,uBAC7BI,WAAY,CACRC,sBAAuB,CACnBnB,UAAWL,KAAKI,WAChBI,YAAaR,KAAKO,cAEtBL,YACyB,MAArBF,KAAKC,aACCD,KAAKC,aAAaqB,cAAcD,SAChC,MAG1B"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var HieroProto = _interopRequireWildcard(require("@hashgraph/proto"));
7
+ var HieroProto = _interopRequireWildcard(require("@hiero-ledger/proto"));
8
8
  var _TokenId = _interopRequireDefault(require("../token/TokenId.cjs"));
9
9
  var _long = _interopRequireDefault(require("long"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -43,4 +43,4 @@ export default class NftId {
43
43
  }
44
44
  import TokenId from "../token/TokenId.js";
45
45
  import Long from "long";
46
- import * as HieroProto from "@hashgraph/proto";
46
+ import * as HieroProto from "@hiero-ledger/proto";