@hiero-ledger/sdk 2.77.0 → 2.78.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (729) hide show
  1. package/README.md +6 -6
  2. package/dist/umd.js +592 -592
  3. package/dist/umd.min.js +2 -2
  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/FeeComponents.cjs +1 -1
  30. package/lib/FeeComponents.d.ts +1 -1
  31. package/lib/FeeComponents.js +1 -1
  32. package/lib/FeeComponents.js.map +1 -1
  33. package/lib/FeeData.cjs +1 -1
  34. package/lib/FeeData.d.ts +1 -1
  35. package/lib/FeeData.js +1 -1
  36. package/lib/FeeData.js.map +1 -1
  37. package/lib/FeeDataType.cjs +1 -1
  38. package/lib/FeeDataType.d.ts +2 -2
  39. package/lib/FeeDataType.js.map +1 -1
  40. package/lib/FeeSchedule.cjs +1 -1
  41. package/lib/FeeSchedule.d.ts +1 -1
  42. package/lib/FeeSchedule.js +1 -1
  43. package/lib/FeeSchedule.js.map +1 -1
  44. package/lib/FeeSchedules.cjs +1 -1
  45. package/lib/FeeSchedules.d.ts +1 -1
  46. package/lib/FeeSchedules.js +1 -1
  47. package/lib/FeeSchedules.js.map +1 -1
  48. package/lib/FreezeType.cjs +1 -1
  49. package/lib/FreezeType.d.ts +2 -2
  50. package/lib/FreezeType.js.map +1 -1
  51. package/lib/Key.cjs +1 -1
  52. package/lib/Key.d.ts +2 -2
  53. package/lib/Key.js.map +1 -1
  54. package/lib/KeyList.cjs +3 -3
  55. package/lib/KeyList.d.ts +6 -6
  56. package/lib/KeyList.js.map +1 -1
  57. package/lib/Mnemonic.cjs +1 -1
  58. package/lib/Mnemonic.d.ts +1 -1
  59. package/lib/Mnemonic.js +1 -1
  60. package/lib/Mnemonic.js.map +1 -1
  61. package/lib/PrivateKey.cjs +7 -7
  62. package/lib/PrivateKey.d.ts +11 -11
  63. package/lib/PrivateKey.js +1 -1
  64. package/lib/PrivateKey.js.map +1 -1
  65. package/lib/PrngTransaction.cjs +9 -9
  66. package/lib/PrngTransaction.d.ts +18 -18
  67. package/lib/PrngTransaction.js.map +1 -1
  68. package/lib/PublicKey.cjs +5 -5
  69. package/lib/PublicKey.d.ts +9 -9
  70. package/lib/PublicKey.js +1 -1
  71. package/lib/PublicKey.js.map +1 -1
  72. package/lib/RequestType.cjs +1 -1
  73. package/lib/RequestType.d.ts +2 -2
  74. package/lib/RequestType.js.map +1 -1
  75. package/lib/StakingInfo.cjs +1 -1
  76. package/lib/StakingInfo.d.ts +1 -1
  77. package/lib/StakingInfo.js +1 -1
  78. package/lib/StakingInfo.js.map +1 -1
  79. package/lib/Status.cjs +1 -1
  80. package/lib/Status.d.ts +2 -2
  81. package/lib/Status.js.map +1 -1
  82. package/lib/Timestamp.cjs +1 -1
  83. package/lib/Timestamp.d.ts +1 -1
  84. package/lib/Timestamp.js.map +1 -1
  85. package/lib/TransactionFeeSchedule.cjs +1 -1
  86. package/lib/TransactionFeeSchedule.d.ts +1 -1
  87. package/lib/TransactionFeeSchedule.js +1 -1
  88. package/lib/TransactionFeeSchedule.js.map +1 -1
  89. package/lib/Transfer.cjs +2 -2
  90. package/lib/Transfer.d.ts +4 -4
  91. package/lib/Transfer.js.map +1 -1
  92. package/lib/account/AccountAllowanceAdjustTransaction.cjs +7 -7
  93. package/lib/account/AccountAllowanceAdjustTransaction.d.ts +14 -14
  94. package/lib/account/AccountAllowanceAdjustTransaction.js.map +1 -1
  95. package/lib/account/AccountAllowanceApproveTransaction.cjs +8 -8
  96. package/lib/account/AccountAllowanceApproveTransaction.d.ts +16 -16
  97. package/lib/account/AccountAllowanceApproveTransaction.js.map +1 -1
  98. package/lib/account/AccountAllowanceDeleteTransaction.cjs +7 -7
  99. package/lib/account/AccountAllowanceDeleteTransaction.d.ts +14 -14
  100. package/lib/account/AccountAllowanceDeleteTransaction.js.map +1 -1
  101. package/lib/account/AccountBalance.cjs +1 -1
  102. package/lib/account/AccountBalance.d.ts +1 -1
  103. package/lib/account/AccountBalance.js +1 -1
  104. package/lib/account/AccountBalance.js.map +1 -1
  105. package/lib/account/AccountBalanceQuery.cjs +6 -6
  106. package/lib/account/AccountBalanceQuery.d.ts +12 -12
  107. package/lib/account/AccountBalanceQuery.js.map +1 -1
  108. package/lib/account/AccountCreateTransaction.cjs +1 -1
  109. package/lib/account/AccountCreateTransaction.d.ts +1 -1
  110. package/lib/account/AccountCreateTransaction.js +1 -1
  111. package/lib/account/AccountCreateTransaction.js.map +1 -1
  112. package/lib/account/AccountDeleteTransaction.cjs +7 -7
  113. package/lib/account/AccountDeleteTransaction.d.ts +14 -14
  114. package/lib/account/AccountDeleteTransaction.js.map +1 -1
  115. package/lib/account/AccountId.cjs +1 -1
  116. package/lib/account/AccountId.d.ts +1 -1
  117. package/lib/account/AccountId.js +1 -1
  118. package/lib/account/AccountId.js.map +1 -1
  119. package/lib/account/AccountInfo.cjs +1 -1
  120. package/lib/account/AccountInfo.d.ts +1 -1
  121. package/lib/account/AccountInfo.js +1 -1
  122. package/lib/account/AccountInfo.js.map +1 -1
  123. package/lib/account/AccountInfoQuery.cjs +7 -7
  124. package/lib/account/AccountInfoQuery.d.ts +14 -14
  125. package/lib/account/AccountInfoQuery.js.map +1 -1
  126. package/lib/account/AccountRecordsQuery.cjs +7 -7
  127. package/lib/account/AccountRecordsQuery.d.ts +14 -14
  128. package/lib/account/AccountRecordsQuery.js.map +1 -1
  129. package/lib/account/AccountUpdateTransaction.cjs +7 -7
  130. package/lib/account/AccountUpdateTransaction.d.ts +14 -14
  131. package/lib/account/AccountUpdateTransaction.js.map +1 -1
  132. package/lib/account/HbarAllowance.cjs +3 -3
  133. package/lib/account/HbarAllowance.d.ts +6 -6
  134. package/lib/account/HbarAllowance.js.map +1 -1
  135. package/lib/account/HbarTransferMap.cjs +2 -2
  136. package/lib/account/HbarTransferMap.d.ts +4 -4
  137. package/lib/account/HbarTransferMap.js.map +1 -1
  138. package/lib/account/LiveHash.cjs +3 -3
  139. package/lib/account/LiveHash.d.ts +6 -6
  140. package/lib/account/LiveHash.js.map +1 -1
  141. package/lib/account/LiveHashAddTransaction.cjs +7 -7
  142. package/lib/account/LiveHashAddTransaction.d.ts +14 -14
  143. package/lib/account/LiveHashAddTransaction.js.map +1 -1
  144. package/lib/account/LiveHashDeleteTransaction.cjs +6 -6
  145. package/lib/account/LiveHashDeleteTransaction.d.ts +12 -12
  146. package/lib/account/LiveHashDeleteTransaction.js.map +1 -1
  147. package/lib/account/LiveHashQuery.cjs +7 -7
  148. package/lib/account/LiveHashQuery.d.ts +14 -14
  149. package/lib/account/LiveHashQuery.js.map +1 -1
  150. package/lib/account/NullableTokenDecimalMap.cjs +2 -2
  151. package/lib/account/NullableTokenDecimalMap.d.ts +4 -4
  152. package/lib/account/NullableTokenDecimalMap.js.map +1 -1
  153. package/lib/account/ProxyStaker.cjs +2 -2
  154. package/lib/account/ProxyStaker.d.ts +4 -4
  155. package/lib/account/ProxyStaker.js.map +1 -1
  156. package/lib/account/TokenAllowance.cjs +4 -4
  157. package/lib/account/TokenAllowance.d.ts +8 -8
  158. package/lib/account/TokenAllowance.js.map +1 -1
  159. package/lib/account/TokenBalanceMap.cjs +2 -2
  160. package/lib/account/TokenBalanceMap.d.ts +4 -4
  161. package/lib/account/TokenBalanceMap.js.map +1 -1
  162. package/lib/account/TokenDecimalMap.cjs +2 -2
  163. package/lib/account/TokenDecimalMap.d.ts +4 -4
  164. package/lib/account/TokenDecimalMap.js.map +1 -1
  165. package/lib/account/TokenNftAllowance.cjs +5 -5
  166. package/lib/account/TokenNftAllowance.d.ts +10 -10
  167. package/lib/account/TokenNftAllowance.js.map +1 -1
  168. package/lib/account/TokenNftTransferMap.cjs +5 -5
  169. package/lib/account/TokenNftTransferMap.d.ts +10 -10
  170. package/lib/account/TokenNftTransferMap.js.map +1 -1
  171. package/lib/account/TokenRelationship.cjs +4 -4
  172. package/lib/account/TokenRelationship.d.ts +8 -8
  173. package/lib/account/TokenRelationship.js.map +1 -1
  174. package/lib/account/TokenRelationshipMap.cjs +2 -2
  175. package/lib/account/TokenRelationshipMap.d.ts +4 -4
  176. package/lib/account/TokenRelationshipMap.js.map +1 -1
  177. package/lib/account/TokenTransferMap.cjs +4 -4
  178. package/lib/account/TokenTransferMap.d.ts +8 -8
  179. package/lib/account/TokenTransferMap.js.map +1 -1
  180. package/lib/account/TransferTransaction.cjs +6 -6
  181. package/lib/account/TransferTransaction.d.ts +12 -12
  182. package/lib/account/TransferTransaction.js.map +1 -1
  183. package/lib/address_book/AddressBooks.cjs +1 -1
  184. package/lib/address_book/AddressBooks.js +1 -1
  185. package/lib/address_book/AddressBooks.js.map +1 -1
  186. package/lib/address_book/Endpoint.cjs +1 -1
  187. package/lib/address_book/Endpoint.d.ts +2 -2
  188. package/lib/address_book/Endpoint.js.map +1 -1
  189. package/lib/address_book/NodeAddress.cjs +1 -1
  190. package/lib/address_book/NodeAddress.d.ts +2 -2
  191. package/lib/address_book/NodeAddress.js.map +1 -1
  192. package/lib/address_book/NodeAddressBook.cjs +1 -1
  193. package/lib/address_book/NodeAddressBook.d.ts +1 -1
  194. package/lib/address_book/NodeAddressBook.js +1 -1
  195. package/lib/address_book/NodeAddressBook.js.map +1 -1
  196. package/lib/browser.js +1 -1
  197. package/lib/channel/Channel.cjs +1 -1
  198. package/lib/channel/Channel.d.ts +1 -1
  199. package/lib/channel/Channel.js +1 -1
  200. package/lib/channel/Channel.js.map +1 -1
  201. package/lib/contract/ContractByteCodeQuery.cjs +6 -6
  202. package/lib/contract/ContractByteCodeQuery.d.ts +12 -12
  203. package/lib/contract/ContractByteCodeQuery.js.map +1 -1
  204. package/lib/contract/ContractCallQuery.cjs +1 -1
  205. package/lib/contract/ContractCallQuery.d.ts +1 -1
  206. package/lib/contract/ContractCallQuery.js +1 -1
  207. package/lib/contract/ContractCallQuery.js.map +1 -1
  208. package/lib/contract/ContractCreateTransaction.cjs +8 -8
  209. package/lib/contract/ContractCreateTransaction.d.ts +16 -16
  210. package/lib/contract/ContractCreateTransaction.js.map +1 -1
  211. package/lib/contract/ContractDeleteTransaction.cjs +8 -8
  212. package/lib/contract/ContractDeleteTransaction.d.ts +16 -16
  213. package/lib/contract/ContractDeleteTransaction.js.map +1 -1
  214. package/lib/contract/ContractExecuteTransaction.cjs +9 -9
  215. package/lib/contract/ContractExecuteTransaction.d.ts +18 -18
  216. package/lib/contract/ContractExecuteTransaction.js.map +1 -1
  217. package/lib/contract/ContractFunctionResult.cjs +2 -2
  218. package/lib/contract/ContractFunctionResult.d.ts +4 -4
  219. package/lib/contract/ContractFunctionResult.js.map +1 -1
  220. package/lib/contract/ContractId.cjs +1 -1
  221. package/lib/contract/ContractId.d.ts +1 -1
  222. package/lib/contract/ContractId.js +1 -1
  223. package/lib/contract/ContractId.js.map +1 -1
  224. package/lib/contract/ContractInfo.cjs +1 -1
  225. package/lib/contract/ContractInfo.d.ts +1 -1
  226. package/lib/contract/ContractInfo.js +1 -1
  227. package/lib/contract/ContractInfo.js.map +1 -1
  228. package/lib/contract/ContractInfoQuery.cjs +7 -7
  229. package/lib/contract/ContractInfoQuery.d.ts +14 -14
  230. package/lib/contract/ContractInfoQuery.js.map +1 -1
  231. package/lib/contract/ContractLogInfo.cjs +2 -2
  232. package/lib/contract/ContractLogInfo.d.ts +4 -4
  233. package/lib/contract/ContractLogInfo.js.map +1 -1
  234. package/lib/contract/ContractNonceInfo.cjs +3 -3
  235. package/lib/contract/ContractNonceInfo.d.ts +4 -4
  236. package/lib/contract/ContractNonceInfo.js +1 -1
  237. package/lib/contract/ContractNonceInfo.js.map +1 -1
  238. package/lib/contract/ContractStateChange.cjs +1 -1
  239. package/lib/contract/ContractStateChange.d.ts +1 -1
  240. package/lib/contract/ContractUpdateTransaction.cjs +10 -10
  241. package/lib/contract/ContractUpdateTransaction.d.ts +18 -18
  242. package/lib/contract/ContractUpdateTransaction.js +1 -1
  243. package/lib/contract/ContractUpdateTransaction.js.map +1 -1
  244. package/lib/contract/DelegateContractId.cjs +2 -2
  245. package/lib/contract/DelegateContractId.d.ts +4 -4
  246. package/lib/contract/DelegateContractId.js.map +1 -1
  247. package/lib/contract/StorageChange.cjs +1 -1
  248. package/lib/contract/StorageChange.d.ts +1 -1
  249. package/lib/exports.cjs +1 -1
  250. package/lib/exports.d.ts +1 -1
  251. package/lib/exports.js +1 -1
  252. package/lib/exports.js.map +1 -1
  253. package/lib/file/FileAppendTransaction.cjs +7 -7
  254. package/lib/file/FileAppendTransaction.d.ts +14 -14
  255. package/lib/file/FileAppendTransaction.js.map +1 -1
  256. package/lib/file/FileContentsQuery.cjs +7 -7
  257. package/lib/file/FileContentsQuery.d.ts +14 -14
  258. package/lib/file/FileContentsQuery.js.map +1 -1
  259. package/lib/file/FileCreateTransaction.cjs +6 -6
  260. package/lib/file/FileCreateTransaction.d.ts +12 -12
  261. package/lib/file/FileCreateTransaction.js.map +1 -1
  262. package/lib/file/FileDeleteTransaction.cjs +7 -7
  263. package/lib/file/FileDeleteTransaction.d.ts +14 -14
  264. package/lib/file/FileDeleteTransaction.js.map +1 -1
  265. package/lib/file/FileId.cjs +1 -1
  266. package/lib/file/FileId.d.ts +1 -1
  267. package/lib/file/FileId.js +1 -1
  268. package/lib/file/FileId.js.map +1 -1
  269. package/lib/file/FileInfo.cjs +1 -1
  270. package/lib/file/FileInfo.d.ts +1 -1
  271. package/lib/file/FileInfo.js +1 -1
  272. package/lib/file/FileInfo.js.map +1 -1
  273. package/lib/file/FileInfoQuery.cjs +7 -7
  274. package/lib/file/FileInfoQuery.d.ts +14 -14
  275. package/lib/file/FileInfoQuery.js.map +1 -1
  276. package/lib/file/FileUpdateTransaction.cjs +6 -6
  277. package/lib/file/FileUpdateTransaction.d.ts +12 -12
  278. package/lib/file/FileUpdateTransaction.js.map +1 -1
  279. package/lib/index.js +1 -1
  280. package/lib/native.js +1 -1
  281. package/lib/network/AddressBookQuery.cjs +1 -1
  282. package/lib/network/AddressBookQuery.js +1 -1
  283. package/lib/network/AddressBookQuery.js.map +1 -1
  284. package/lib/network/NetworkVersionInfo.cjs +1 -1
  285. package/lib/network/NetworkVersionInfo.d.ts +1 -1
  286. package/lib/network/NetworkVersionInfo.js +1 -1
  287. package/lib/network/NetworkVersionInfo.js.map +1 -1
  288. package/lib/network/NetworkVersionInfoQuery.cjs +6 -6
  289. package/lib/network/NetworkVersionInfoQuery.d.ts +12 -12
  290. package/lib/network/NetworkVersionInfoQuery.js.map +1 -1
  291. package/lib/network/SemanticVersion.cjs +1 -1
  292. package/lib/network/SemanticVersion.d.ts +1 -1
  293. package/lib/network/SemanticVersion.js +1 -1
  294. package/lib/network/SemanticVersion.js.map +1 -1
  295. package/lib/node/NodeCreateTransaction.cjs +6 -6
  296. package/lib/node/NodeCreateTransaction.d.ts +12 -12
  297. package/lib/node/NodeCreateTransaction.js.map +1 -1
  298. package/lib/node/NodeDeleteTransaction.cjs +6 -6
  299. package/lib/node/NodeDeleteTransaction.d.ts +12 -12
  300. package/lib/node/NodeDeleteTransaction.js.map +1 -1
  301. package/lib/node/NodeUpdateTransaction.cjs +6 -6
  302. package/lib/node/NodeUpdateTransaction.d.ts +12 -12
  303. package/lib/node/NodeUpdateTransaction.js.map +1 -1
  304. package/lib/node/ServiceEndpoint.cjs +1 -1
  305. package/lib/node/ServiceEndpoint.d.ts +2 -2
  306. package/lib/node/ServiceEndpoint.js.map +1 -1
  307. package/lib/query/CostQuery.cjs +1 -1
  308. package/lib/query/CostQuery.d.ts +1 -1
  309. package/lib/query/CostQuery.js +1 -1
  310. package/lib/query/CostQuery.js.map +1 -1
  311. package/lib/query/Query.cjs +1 -1
  312. package/lib/query/Query.d.ts +1 -1
  313. package/lib/query/Query.js +1 -1
  314. package/lib/query/Query.js.map +1 -1
  315. package/lib/query/QueryBase.cjs +1 -1
  316. package/lib/query/QueryBase.d.ts +1 -1
  317. package/lib/query/QueryBase.js +1 -1
  318. package/lib/query/QueryBase.js.map +1 -1
  319. package/lib/schedule/ScheduleCreateTransaction.cjs +1 -1
  320. package/lib/schedule/ScheduleCreateTransaction.d.ts +1 -1
  321. package/lib/schedule/ScheduleCreateTransaction.js +1 -1
  322. package/lib/schedule/ScheduleCreateTransaction.js.map +1 -1
  323. package/lib/schedule/ScheduleDeleteTransaction.cjs +8 -8
  324. package/lib/schedule/ScheduleDeleteTransaction.d.ts +16 -16
  325. package/lib/schedule/ScheduleDeleteTransaction.js.map +1 -1
  326. package/lib/schedule/ScheduleId.cjs +1 -1
  327. package/lib/schedule/ScheduleId.d.ts +1 -1
  328. package/lib/schedule/ScheduleId.js +1 -1
  329. package/lib/schedule/ScheduleId.js.map +1 -1
  330. package/lib/schedule/ScheduleInfo.cjs +1 -1
  331. package/lib/schedule/ScheduleInfo.d.ts +1 -1
  332. package/lib/schedule/ScheduleInfo.js +1 -1
  333. package/lib/schedule/ScheduleInfo.js.map +1 -1
  334. package/lib/schedule/ScheduleInfoQuery.cjs +7 -7
  335. package/lib/schedule/ScheduleInfoQuery.d.ts +14 -14
  336. package/lib/schedule/ScheduleInfoQuery.js.map +1 -1
  337. package/lib/schedule/ScheduleSignTransaction.cjs +10 -10
  338. package/lib/schedule/ScheduleSignTransaction.d.ts +20 -20
  339. package/lib/schedule/ScheduleSignTransaction.js.map +1 -1
  340. package/lib/system/FreezeTransaction.cjs +6 -6
  341. package/lib/system/FreezeTransaction.d.ts +12 -12
  342. package/lib/system/FreezeTransaction.js.map +1 -1
  343. package/lib/system/SystemDeleteTransaction.cjs +8 -8
  344. package/lib/system/SystemDeleteTransaction.d.ts +16 -16
  345. package/lib/system/SystemDeleteTransaction.js.map +1 -1
  346. package/lib/system/SystemUndeleteTransaction.cjs +8 -8
  347. package/lib/system/SystemUndeleteTransaction.d.ts +16 -16
  348. package/lib/system/SystemUndeleteTransaction.js.map +1 -1
  349. package/lib/token/AbstractTokenTransferTransaction.cjs +1 -1
  350. package/lib/token/AbstractTokenTransferTransaction.d.ts +2 -2
  351. package/lib/token/AbstractTokenTransferTransaction.js.map +1 -1
  352. package/lib/token/AssessedCustomFee.cjs +1 -1
  353. package/lib/token/AssessedCustomFee.d.ts +2 -2
  354. package/lib/token/AssessedCustomFee.js.map +1 -1
  355. package/lib/token/CustomFee.cjs +1 -1
  356. package/lib/token/CustomFee.d.ts +2 -2
  357. package/lib/token/CustomFee.js.map +1 -1
  358. package/lib/token/CustomFixedFee.cjs +3 -3
  359. package/lib/token/CustomFixedFee.d.ts +6 -6
  360. package/lib/token/CustomFixedFee.js.map +1 -1
  361. package/lib/token/CustomFractionalFee.cjs +3 -3
  362. package/lib/token/CustomFractionalFee.d.ts +6 -6
  363. package/lib/token/CustomFractionalFee.js.map +1 -1
  364. package/lib/token/CustomRoyaltyFee.cjs +4 -4
  365. package/lib/token/CustomRoyaltyFee.d.ts +8 -8
  366. package/lib/token/CustomRoyaltyFee.js.map +1 -1
  367. package/lib/token/NftId.cjs +1 -1
  368. package/lib/token/NftId.d.ts +1 -1
  369. package/lib/token/NftId.js +1 -1
  370. package/lib/token/NftId.js.map +1 -1
  371. package/lib/token/PendingAirdropId.cjs +1 -1
  372. package/lib/token/PendingAirdropId.d.ts +1 -1
  373. package/lib/token/PendingAirdropId.js.map +1 -1
  374. package/lib/token/PendingAirdropRecord.cjs +1 -1
  375. package/lib/token/PendingAirdropRecord.d.ts +1 -1
  376. package/lib/token/PendingAirdropRecord.js.map +1 -1
  377. package/lib/token/TokenAirdropTransaction.cjs +8 -8
  378. package/lib/token/TokenAirdropTransaction.d.ts +16 -16
  379. package/lib/token/TokenAirdropTransaction.js.map +1 -1
  380. package/lib/token/TokenAssociateTransaction.cjs +7 -7
  381. package/lib/token/TokenAssociateTransaction.d.ts +14 -14
  382. package/lib/token/TokenAssociateTransaction.js.map +1 -1
  383. package/lib/token/TokenAssociation.cjs +1 -1
  384. package/lib/token/TokenAssociation.d.ts +2 -2
  385. package/lib/token/TokenAssociation.js.map +1 -1
  386. package/lib/token/TokenBurnTransaction.cjs +7 -7
  387. package/lib/token/TokenBurnTransaction.d.ts +14 -14
  388. package/lib/token/TokenBurnTransaction.js.map +1 -1
  389. package/lib/token/TokenCancelAirdropTransaction.cjs +6 -6
  390. package/lib/token/TokenCancelAirdropTransaction.d.ts +12 -12
  391. package/lib/token/TokenCancelAirdropTransaction.js.map +1 -1
  392. package/lib/token/TokenClaimAirdropTransaction.cjs +6 -6
  393. package/lib/token/TokenClaimAirdropTransaction.d.ts +12 -12
  394. package/lib/token/TokenClaimAirdropTransaction.js.map +1 -1
  395. package/lib/token/TokenCreateTransaction.cjs +7 -7
  396. package/lib/token/TokenCreateTransaction.d.ts +14 -14
  397. package/lib/token/TokenCreateTransaction.js.map +1 -1
  398. package/lib/token/TokenDeleteTransaction.cjs +7 -7
  399. package/lib/token/TokenDeleteTransaction.d.ts +14 -14
  400. package/lib/token/TokenDeleteTransaction.js.map +1 -1
  401. package/lib/token/TokenDissociateTransaction.cjs +7 -7
  402. package/lib/token/TokenDissociateTransaction.d.ts +14 -14
  403. package/lib/token/TokenDissociateTransaction.js.map +1 -1
  404. package/lib/token/TokenFeeScheduleUpdateTransaction.cjs +7 -7
  405. package/lib/token/TokenFeeScheduleUpdateTransaction.d.ts +14 -14
  406. package/lib/token/TokenFeeScheduleUpdateTransaction.js.map +1 -1
  407. package/lib/token/TokenFreezeTransaction.cjs +7 -7
  408. package/lib/token/TokenFreezeTransaction.d.ts +14 -14
  409. package/lib/token/TokenFreezeTransaction.js.map +1 -1
  410. package/lib/token/TokenGrantKycTransaction.cjs +7 -7
  411. package/lib/token/TokenGrantKycTransaction.d.ts +14 -14
  412. package/lib/token/TokenGrantKycTransaction.js.map +1 -1
  413. package/lib/token/TokenId.cjs +1 -1
  414. package/lib/token/TokenId.d.ts +1 -1
  415. package/lib/token/TokenId.js +1 -1
  416. package/lib/token/TokenId.js.map +1 -1
  417. package/lib/token/TokenInfo.cjs +1 -1
  418. package/lib/token/TokenInfo.d.ts +1 -1
  419. package/lib/token/TokenInfo.js +1 -1
  420. package/lib/token/TokenInfo.js.map +1 -1
  421. package/lib/token/TokenInfoQuery.cjs +7 -7
  422. package/lib/token/TokenInfoQuery.d.ts +14 -14
  423. package/lib/token/TokenInfoQuery.js.map +1 -1
  424. package/lib/token/TokenKeyValidation.cjs +1 -1
  425. package/lib/token/TokenKeyValidation.d.ts +2 -2
  426. package/lib/token/TokenKeyValidation.js.map +1 -1
  427. package/lib/token/TokenMintTransaction.cjs +7 -7
  428. package/lib/token/TokenMintTransaction.d.ts +14 -14
  429. package/lib/token/TokenMintTransaction.js.map +1 -1
  430. package/lib/token/TokenNftInfo.cjs +10 -10
  431. package/lib/token/TokenNftInfo.d.ts +20 -20
  432. package/lib/token/TokenNftInfo.js.map +1 -1
  433. package/lib/token/TokenNftInfoQuery.cjs +11 -11
  434. package/lib/token/TokenNftInfoQuery.d.ts +22 -22
  435. package/lib/token/TokenNftInfoQuery.js.map +1 -1
  436. package/lib/token/TokenNftTransfer.cjs +5 -5
  437. package/lib/token/TokenNftTransfer.d.ts +10 -10
  438. package/lib/token/TokenNftTransfer.js.map +1 -1
  439. package/lib/token/TokenNftsUpdateTransaction.cjs +7 -7
  440. package/lib/token/TokenNftsUpdateTransaction.d.ts +14 -14
  441. package/lib/token/TokenPauseTransaction.cjs +7 -7
  442. package/lib/token/TokenPauseTransaction.d.ts +14 -14
  443. package/lib/token/TokenPauseTransaction.js.map +1 -1
  444. package/lib/token/TokenReference.cjs +1 -1
  445. package/lib/token/TokenReference.d.ts +2 -2
  446. package/lib/token/TokenReference.js.map +1 -1
  447. package/lib/token/TokenRejectTransaction.cjs +7 -7
  448. package/lib/token/TokenRejectTransaction.d.ts +14 -14
  449. package/lib/token/TokenRejectTransaction.js.map +1 -1
  450. package/lib/token/TokenRevokeKycTransaction.cjs +7 -7
  451. package/lib/token/TokenRevokeKycTransaction.d.ts +14 -14
  452. package/lib/token/TokenRevokeKycTransaction.js.map +1 -1
  453. package/lib/token/TokenSupplyType.cjs +1 -1
  454. package/lib/token/TokenSupplyType.d.ts +2 -2
  455. package/lib/token/TokenSupplyType.js.map +1 -1
  456. package/lib/token/TokenTransfer.cjs +4 -4
  457. package/lib/token/TokenTransfer.d.ts +8 -8
  458. package/lib/token/TokenTransfer.js.map +1 -1
  459. package/lib/token/TokenType.cjs +1 -1
  460. package/lib/token/TokenType.d.ts +2 -2
  461. package/lib/token/TokenType.js.map +1 -1
  462. package/lib/token/TokenUnfreezeTransaction.cjs +7 -7
  463. package/lib/token/TokenUnfreezeTransaction.d.ts +14 -14
  464. package/lib/token/TokenUnfreezeTransaction.js.map +1 -1
  465. package/lib/token/TokenUnpauseTransaction.cjs +7 -7
  466. package/lib/token/TokenUnpauseTransaction.d.ts +14 -14
  467. package/lib/token/TokenUnpauseTransaction.js.map +1 -1
  468. package/lib/token/TokenUpdateNftsTransaction.cjs +7 -7
  469. package/lib/token/TokenUpdateNftsTransaction.d.ts +14 -14
  470. package/lib/token/TokenUpdateNftsTransaction.js.map +1 -1
  471. package/lib/token/TokenUpdateTransaction.cjs +7 -7
  472. package/lib/token/TokenUpdateTransaction.d.ts +14 -14
  473. package/lib/token/TokenUpdateTransaction.js.map +1 -1
  474. package/lib/token/TokenWipeTransaction.cjs +7 -7
  475. package/lib/token/TokenWipeTransaction.d.ts +14 -14
  476. package/lib/token/TokenWipeTransaction.js.map +1 -1
  477. package/lib/topic/TopicCreateTransaction.cjs +6 -6
  478. package/lib/topic/TopicCreateTransaction.d.ts +12 -12
  479. package/lib/topic/TopicCreateTransaction.js.map +1 -1
  480. package/lib/topic/TopicDeleteTransaction.cjs +6 -6
  481. package/lib/topic/TopicDeleteTransaction.d.ts +12 -12
  482. package/lib/topic/TopicDeleteTransaction.js.map +1 -1
  483. package/lib/topic/TopicId.cjs +1 -1
  484. package/lib/topic/TopicId.d.ts +1 -1
  485. package/lib/topic/TopicId.js +1 -1
  486. package/lib/topic/TopicId.js.map +1 -1
  487. package/lib/topic/TopicInfo.cjs +1 -1
  488. package/lib/topic/TopicInfo.d.ts +1 -1
  489. package/lib/topic/TopicInfo.js +1 -1
  490. package/lib/topic/TopicInfo.js.map +1 -1
  491. package/lib/topic/TopicInfoQuery.cjs +7 -7
  492. package/lib/topic/TopicInfoQuery.d.ts +14 -14
  493. package/lib/topic/TopicInfoQuery.js.map +1 -1
  494. package/lib/topic/TopicMessage.cjs +2 -2
  495. package/lib/topic/TopicMessage.d.ts +4 -4
  496. package/lib/topic/TopicMessage.js.map +1 -1
  497. package/lib/topic/TopicMessageChunk.cjs +2 -2
  498. package/lib/topic/TopicMessageChunk.d.ts +4 -4
  499. package/lib/topic/TopicMessageChunk.js.map +1 -1
  500. package/lib/topic/TopicMessageQuery.cjs +1 -1
  501. package/lib/topic/TopicMessageQuery.js +1 -1
  502. package/lib/topic/TopicMessageQuery.js.map +1 -1
  503. package/lib/topic/TopicMessageSubmitTransaction.cjs +9 -9
  504. package/lib/topic/TopicMessageSubmitTransaction.d.ts +18 -18
  505. package/lib/topic/TopicMessageSubmitTransaction.js.map +1 -1
  506. package/lib/topic/TopicUpdateTransaction.cjs +6 -6
  507. package/lib/topic/TopicUpdateTransaction.d.ts +12 -12
  508. package/lib/topic/TopicUpdateTransaction.js.map +1 -1
  509. package/lib/transaction/BatchTransaction.cjs +5 -5
  510. package/lib/transaction/BatchTransaction.d.ts +9 -9
  511. package/lib/transaction/BatchTransaction.js +1 -1
  512. package/lib/transaction/BatchTransaction.js.map +1 -1
  513. package/lib/transaction/CustomFeeLimit.cjs +2 -2
  514. package/lib/transaction/CustomFeeLimit.d.ts +4 -4
  515. package/lib/transaction/CustomFeeLimit.js.map +1 -1
  516. package/lib/transaction/NodeAccountIdSignatureMap.cjs +2 -2
  517. package/lib/transaction/NodeAccountIdSignatureMap.d.ts +2 -2
  518. package/lib/transaction/NodeAccountIdSignatureMap.js +1 -1
  519. package/lib/transaction/NodeAccountIdSignatureMap.js.map +1 -1
  520. package/lib/transaction/NodeAccountIdSignatureMapLegacy.cjs +1 -1
  521. package/lib/transaction/NodeAccountIdSignatureMapLegacy.d.ts +2 -2
  522. package/lib/transaction/NodeAccountIdSignatureMapLegacy.js.map +1 -1
  523. package/lib/transaction/SignatureMap.cjs +1 -1
  524. package/lib/transaction/SignatureMap.js.map +1 -1
  525. package/lib/transaction/SignaturePairMap.cjs +1 -1
  526. package/lib/transaction/SignaturePairMap.d.ts +2 -2
  527. package/lib/transaction/SignaturePairMap.js.map +1 -1
  528. package/lib/transaction/Transaction.cjs +1 -1
  529. package/lib/transaction/Transaction.d.ts +1 -1
  530. package/lib/transaction/Transaction.js +1 -1
  531. package/lib/transaction/Transaction.js.map +1 -1
  532. package/lib/transaction/TransactionHashMap.cjs +1 -1
  533. package/lib/transaction/TransactionHashMap.d.ts +2 -2
  534. package/lib/transaction/TransactionHashMap.js.map +1 -1
  535. package/lib/transaction/TransactionId.cjs +1 -1
  536. package/lib/transaction/TransactionId.d.ts +1 -1
  537. package/lib/transaction/TransactionId.js +1 -1
  538. package/lib/transaction/TransactionId.js.map +1 -1
  539. package/lib/transaction/TransactionReceipt.cjs +1 -1
  540. package/lib/transaction/TransactionReceipt.d.ts +1 -1
  541. package/lib/transaction/TransactionReceipt.js +1 -1
  542. package/lib/transaction/TransactionReceipt.js.map +1 -1
  543. package/lib/transaction/TransactionReceiptQuery.cjs +1 -1
  544. package/lib/transaction/TransactionReceiptQuery.d.ts +1 -1
  545. package/lib/transaction/TransactionReceiptQuery.js +1 -1
  546. package/lib/transaction/TransactionReceiptQuery.js.map +1 -1
  547. package/lib/transaction/TransactionRecord.cjs +1 -1
  548. package/lib/transaction/TransactionRecord.d.ts +1 -1
  549. package/lib/transaction/TransactionRecord.js +1 -1
  550. package/lib/transaction/TransactionRecord.js.map +1 -1
  551. package/lib/transaction/TransactionRecordQuery.cjs +1 -1
  552. package/lib/transaction/TransactionRecordQuery.d.ts +1 -1
  553. package/lib/transaction/TransactionRecordQuery.js +1 -1
  554. package/lib/transaction/TransactionRecordQuery.js.map +1 -1
  555. package/lib/util/ASN1-Decoder.cjs +1 -1
  556. package/lib/util/ASN1-Decoder.js +1 -1
  557. package/lib/util/ASN1-Decoder.js.map +1 -1
  558. package/lib/version.js +1 -1
  559. package/package.json +3 -3
  560. package/src/Cache.js +6 -6
  561. package/src/Duration.js +1 -1
  562. package/src/EntityIdHelper.js +1 -1
  563. package/src/EthereumFlow.js +7 -7
  564. package/src/EthereumTransaction.js +7 -7
  565. package/src/EvmAddress.js +1 -1
  566. package/src/ExchangeRate.js +2 -2
  567. package/src/ExchangeRates.js +1 -1
  568. package/src/FeeComponents.js +1 -1
  569. package/src/FeeData.js +1 -1
  570. package/src/FeeDataType.js +1 -1
  571. package/src/FeeSchedule.js +1 -1
  572. package/src/FeeSchedules.js +1 -1
  573. package/src/FreezeType.js +1 -1
  574. package/src/Key.js +1 -1
  575. package/src/KeyList.js +3 -3
  576. package/src/Mnemonic.js +1 -1
  577. package/src/PrivateKey.js +7 -7
  578. package/src/PrngTransaction.js +9 -9
  579. package/src/PublicKey.js +5 -5
  580. package/src/RequestType.js +1 -1
  581. package/src/StakingInfo.js +1 -1
  582. package/src/Status.js +1 -1
  583. package/src/Timestamp.js +1 -1
  584. package/src/TransactionFeeSchedule.js +1 -1
  585. package/src/Transfer.js +2 -2
  586. package/src/account/AccountAllowanceAdjustTransaction.js +7 -7
  587. package/src/account/AccountAllowanceApproveTransaction.js +8 -8
  588. package/src/account/AccountAllowanceDeleteTransaction.js +7 -7
  589. package/src/account/AccountBalance.js +1 -1
  590. package/src/account/AccountBalanceQuery.js +6 -6
  591. package/src/account/AccountCreateTransaction.js +1 -1
  592. package/src/account/AccountDeleteTransaction.js +7 -7
  593. package/src/account/AccountId.js +1 -1
  594. package/src/account/AccountInfo.js +1 -1
  595. package/src/account/AccountInfoQuery.js +7 -7
  596. package/src/account/AccountRecordsQuery.js +7 -7
  597. package/src/account/AccountUpdateTransaction.js +7 -7
  598. package/src/account/HbarAllowance.js +3 -3
  599. package/src/account/HbarTransferMap.js +2 -2
  600. package/src/account/LiveHash.js +3 -3
  601. package/src/account/LiveHashAddTransaction.js +7 -7
  602. package/src/account/LiveHashDeleteTransaction.js +6 -6
  603. package/src/account/LiveHashQuery.js +7 -7
  604. package/src/account/NullableTokenDecimalMap.js +2 -2
  605. package/src/account/ProxyStaker.js +2 -2
  606. package/src/account/TokenAllowance.js +4 -4
  607. package/src/account/TokenBalanceMap.js +2 -2
  608. package/src/account/TokenDecimalMap.js +2 -2
  609. package/src/account/TokenNftAllowance.js +5 -5
  610. package/src/account/TokenNftTransferMap.js +5 -5
  611. package/src/account/TokenRelationship.js +4 -4
  612. package/src/account/TokenRelationshipMap.js +2 -2
  613. package/src/account/TokenTransferMap.js +4 -4
  614. package/src/account/TransferTransaction.js +6 -6
  615. package/src/address_book/AddressBooks.js +1 -1
  616. package/src/address_book/Endpoint.js +1 -1
  617. package/src/address_book/NodeAddress.js +1 -1
  618. package/src/address_book/NodeAddressBook.js +1 -1
  619. package/src/channel/Channel.js +1 -1
  620. package/src/contract/ContractByteCodeQuery.js +6 -6
  621. package/src/contract/ContractCallQuery.js +1 -1
  622. package/src/contract/ContractCreateTransaction.js +8 -8
  623. package/src/contract/ContractDeleteTransaction.js +8 -8
  624. package/src/contract/ContractExecuteTransaction.js +9 -9
  625. package/src/contract/ContractFunctionResult.js +2 -2
  626. package/src/contract/ContractId.js +1 -1
  627. package/src/contract/ContractInfo.js +1 -1
  628. package/src/contract/ContractInfoQuery.js +7 -7
  629. package/src/contract/ContractLogInfo.js +2 -2
  630. package/src/contract/ContractNonceInfo.js +3 -3
  631. package/src/contract/ContractStateChange.js +1 -1
  632. package/src/contract/ContractUpdateTransaction.js +10 -10
  633. package/src/contract/DelegateContractId.js +2 -2
  634. package/src/contract/StorageChange.js +1 -1
  635. package/src/exports.js +1 -1
  636. package/src/file/FileAppendTransaction.js +7 -7
  637. package/src/file/FileContentsQuery.js +7 -7
  638. package/src/file/FileCreateTransaction.js +6 -6
  639. package/src/file/FileDeleteTransaction.js +7 -7
  640. package/src/file/FileId.js +1 -1
  641. package/src/file/FileInfo.js +1 -1
  642. package/src/file/FileInfoQuery.js +7 -7
  643. package/src/file/FileUpdateTransaction.js +6 -6
  644. package/src/network/AddressBookQuery.js +1 -1
  645. package/src/network/NetworkVersionInfo.js +1 -1
  646. package/src/network/NetworkVersionInfoQuery.js +6 -6
  647. package/src/network/SemanticVersion.js +1 -1
  648. package/src/node/NodeCreateTransaction.js +6 -6
  649. package/src/node/NodeDeleteTransaction.js +6 -6
  650. package/src/node/NodeUpdateTransaction.js +6 -6
  651. package/src/node/ServiceEndpoint.js +1 -1
  652. package/src/query/CostQuery.js +1 -1
  653. package/src/query/Query.js +1 -1
  654. package/src/query/QueryBase.js +1 -1
  655. package/src/schedule/ScheduleCreateTransaction.js +1 -1
  656. package/src/schedule/ScheduleDeleteTransaction.js +8 -8
  657. package/src/schedule/ScheduleId.js +1 -1
  658. package/src/schedule/ScheduleInfo.js +1 -1
  659. package/src/schedule/ScheduleInfoQuery.js +7 -7
  660. package/src/schedule/ScheduleSignTransaction.js +10 -10
  661. package/src/system/FreezeTransaction.js +6 -6
  662. package/src/system/SystemDeleteTransaction.js +8 -8
  663. package/src/system/SystemUndeleteTransaction.js +8 -8
  664. package/src/token/AbstractTokenTransferTransaction.js +1 -1
  665. package/src/token/AssessedCustomFee.js +1 -1
  666. package/src/token/CustomFee.js +1 -1
  667. package/src/token/CustomFixedFee.js +3 -3
  668. package/src/token/CustomFractionalFee.js +3 -3
  669. package/src/token/CustomRoyaltyFee.js +4 -4
  670. package/src/token/NftId.js +1 -1
  671. package/src/token/PendingAirdropId.js +1 -1
  672. package/src/token/PendingAirdropRecord.js +1 -1
  673. package/src/token/TokenAirdropTransaction.js +8 -8
  674. package/src/token/TokenAssociateTransaction.js +7 -7
  675. package/src/token/TokenAssociation.js +1 -1
  676. package/src/token/TokenBurnTransaction.js +7 -7
  677. package/src/token/TokenCancelAirdropTransaction.js +6 -6
  678. package/src/token/TokenClaimAirdropTransaction.js +6 -6
  679. package/src/token/TokenCreateTransaction.js +7 -7
  680. package/src/token/TokenDeleteTransaction.js +7 -7
  681. package/src/token/TokenDissociateTransaction.js +7 -7
  682. package/src/token/TokenFeeScheduleUpdateTransaction.js +7 -7
  683. package/src/token/TokenFreezeTransaction.js +7 -7
  684. package/src/token/TokenGrantKycTransaction.js +7 -7
  685. package/src/token/TokenId.js +1 -1
  686. package/src/token/TokenInfo.js +1 -1
  687. package/src/token/TokenInfoQuery.js +7 -7
  688. package/src/token/TokenKeyValidation.js +1 -1
  689. package/src/token/TokenMintTransaction.js +7 -7
  690. package/src/token/TokenNftInfo.js +10 -10
  691. package/src/token/TokenNftInfoQuery.js +11 -11
  692. package/src/token/TokenNftTransfer.js +5 -5
  693. package/src/token/TokenNftsUpdateTransaction.js +7 -7
  694. package/src/token/TokenPauseTransaction.js +7 -7
  695. package/src/token/TokenReference.js +1 -1
  696. package/src/token/TokenRejectTransaction.js +7 -7
  697. package/src/token/TokenRevokeKycTransaction.js +7 -7
  698. package/src/token/TokenSupplyType.js +1 -1
  699. package/src/token/TokenTransfer.js +4 -4
  700. package/src/token/TokenType.js +1 -1
  701. package/src/token/TokenUnfreezeTransaction.js +7 -7
  702. package/src/token/TokenUnpauseTransaction.js +7 -7
  703. package/src/token/TokenUpdateNftsTransaction.js +7 -7
  704. package/src/token/TokenUpdateTransaction.js +7 -7
  705. package/src/token/TokenWipeTransaction.js +7 -7
  706. package/src/topic/TopicCreateTransaction.js +6 -6
  707. package/src/topic/TopicDeleteTransaction.js +6 -6
  708. package/src/topic/TopicId.js +1 -1
  709. package/src/topic/TopicInfo.js +1 -1
  710. package/src/topic/TopicInfoQuery.js +7 -7
  711. package/src/topic/TopicMessage.js +2 -2
  712. package/src/topic/TopicMessageChunk.js +2 -2
  713. package/src/topic/TopicMessageQuery.js +1 -1
  714. package/src/topic/TopicMessageSubmitTransaction.js +9 -9
  715. package/src/topic/TopicUpdateTransaction.js +6 -6
  716. package/src/transaction/BatchTransaction.js +5 -5
  717. package/src/transaction/CustomFeeLimit.js +2 -2
  718. package/src/transaction/NodeAccountIdSignatureMap.js +2 -2
  719. package/src/transaction/NodeAccountIdSignatureMapLegacy.js +1 -1
  720. package/src/transaction/SignatureMap.js +1 -1
  721. package/src/transaction/SignaturePairMap.js +1 -1
  722. package/src/transaction/Transaction.js +1 -1
  723. package/src/transaction/TransactionHashMap.js +1 -1
  724. package/src/transaction/TransactionId.js +1 -1
  725. package/src/transaction/TransactionReceipt.js +1 -1
  726. package/src/transaction/TransactionReceiptQuery.js +1 -1
  727. package/src/transaction/TransactionRecord.js +1 -1
  728. package/src/transaction/TransactionRecordQuery.js +1 -1
  729. package/src/util/ASN1-Decoder.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"EthereumTransaction.js","sources":["../src/EthereumTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Hbar from \"./Hbar.js\";\nimport FileId from \"./file/FileId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"./transaction/Transaction.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.IEthereumTransactionBody} HieroProto.proto.IEthereumTransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.IAccountID} HieroProto.proto.IAccountID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"./account/AccountId.js\").default} AccountId\n * @typedef {import(\"./channel/Channel.js\").default} Channel\n * @typedef {import(\"./client/Client.js\").default<*, *>} Client\n * @typedef {import(\"./Timestamp.js\").default} Timestamp\n * @typedef {import(\"./transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"long\")} Long\n */\n\n/**\n * Create a new Hedera™ transaction wrapped ethereum transaction.\n */\nexport default class EthereumTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {Uint8Array} [props.ethereumData]\n * @param {FileId} [props.callData]\n * @param {FileId} [props.callDataFileId]\n * @param {number | string | Long | BigNumber | Hbar} [props.maxGasAllowance]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?Uint8Array}\n */\n this._ethereumData = null;\n\n /**\n * @private\n * @type {?FileId}\n */\n this._callDataFileId = null;\n\n /**\n * @private\n * @type {?Hbar}\n */\n this._maxGasAllowance = null;\n\n if (props.ethereumData != null) {\n this.setEthereumData(props.ethereumData);\n }\n\n if (props.callData != null) {\n this.setCallDataFileId(props.callData);\n }\n\n if (props.callDataFileId != null) {\n this.setCallDataFileId(props.callDataFileId);\n }\n\n if (props.maxGasAllowance != null) {\n this.setMaxGasAllowanceHbar(props.maxGasAllowance);\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 {EthereumTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const transaction =\n /** @type {HieroProto.proto.IEthereumTransactionBody} */ (\n body.ethereumTransaction\n );\n\n return Transaction._fromProtobufTransactions(\n new EthereumTransaction({\n ethereumData:\n transaction.ethereumData != null\n ? transaction.ethereumData\n : undefined,\n callData:\n transaction.callData != null\n ? FileId._fromProtobuf(transaction.callData)\n : undefined,\n maxGasAllowance:\n transaction.maxGasAllowance != null\n ? Hbar.fromTinybars(transaction.maxGasAllowance)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?(Uint8Array | FileId)}\n */\n get ethereumData() {\n return this._ethereumData;\n }\n\n /**\n * The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete\n * unless the callData field is set.\n *\n * @param {Uint8Array} ethereumData\n * @returns {this}\n */\n setEthereumData(ethereumData) {\n this._requireNotFrozen();\n this._ethereumData = ethereumData;\n return this;\n }\n\n /**\n * @deprecated - Use `callDataFileId` instead\n * @returns {?FileId}\n */\n get callData() {\n return this.callDataFileId;\n }\n\n /**\n * @deprecated - Use `setCallDataFileId()` instead\n *\n * For large transactions (for example contract create) this is the callData\n * of the callData. The data in the callData will be re-written with\n * the callData element as a zero length string with the original contents in\n * the referenced file at time of execution. The callData will need to be\n * \"rehydrated\" with the callData for signature validation to pass.\n * @param {FileId} callDataFileId\n * @returns {this}\n */\n setCallData(callDataFileId) {\n return this.setCallDataFileId(callDataFileId);\n }\n\n /**\n * @returns {?FileId}\n */\n get callDataFileId() {\n return this._callDataFileId;\n }\n\n /**\n * For large transactions (for example contract create) this is the callData\n * of the callData. The data in the callData will be re-written with\n * the callData element as a zero length string with the original contents in\n * the referenced file at time of execution. The callData will need to be\n * \"rehydrated\" with the callData for signature validation to pass.\n *\n * @param {FileId} callDataFileId\n * @returns {this}\n */\n setCallDataFileId(callDataFileId) {\n this._requireNotFrozen();\n this._callDataFileId = callDataFileId;\n return this;\n }\n\n /**\n * @returns {?Hbar}\n */\n get maxGasAllowance() {\n return this._maxGasAllowance;\n }\n\n /**\n * @deprecated -- use setMaxGasAllowanceHbar instead\n * @param {number | string | Long | BigNumber | Hbar} maxGasAllowance\n * @returns {this}\n */\n setMaxGasAllowance(maxGasAllowance) {\n return this.setMaxGasAllowanceHbar(maxGasAllowance);\n }\n\n /**\n * The maximum amount, in hbars, that the payer of the hedera transaction\n * is willing to pay to complete the transaction.\n *\n * Ordinarily the account with the ECDSA alias corresponding to the public\n * key that is extracted from the ethereum_data signature is responsible for\n * fees that result from the execution of the transaction. If that amount of\n * authorized fees is not sufficient then the payer of the transaction can be\n * charged, up to but not exceeding this amount. If the ethereum_data\n * transaction authorized an amount that was insufficient then the payer will\n * only be charged the amount needed to make up the difference. If the gas\n * price in the transaction was set to zero then the payer will be assessed\n * the entire fee.\n *\n * @param {number | string | Long | BigNumber | Hbar} maxGasAllowance\n * @returns {this}\n */\n setMaxGasAllowanceHbar(maxGasAllowance) {\n this._requireNotFrozen();\n this._maxGasAllowance =\n maxGasAllowance instanceof Hbar\n ? maxGasAllowance\n : new Hbar(maxGasAllowance);\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (\n this._ethereumData != null &&\n this._ethereumData instanceof FileId\n ) {\n this._ethereumData.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.smartContract.callEthereum(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"ethereumTransaction\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IEthereumTransactionBody}\n */\n _makeTransactionData() {\n return {\n ethereumData: this._ethereumData,\n callData:\n this._callDataFileId != null\n ? this._callDataFileId._toProtobuf()\n : null,\n maxGasAllowance:\n this._maxGasAllowance != null\n ? this._maxGasAllowance.toTinybars()\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 `EthereumTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"ethereumTransaction\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n EthereumTransaction._fromProtobuf,\n);\n"],"names":["EthereumTransaction","Transaction","constructor","props","super","this","_ethereumData","_callDataFileId","_maxGasAllowance","ethereumData","setEthereumData","callData","setCallDataFileId","callDataFileId","maxGasAllowance","setMaxGasAllowanceHbar","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","transaction","_fromProtobufTransactions","undefined","FileId","Hbar","fromTinybars","_requireNotFrozen","setCallData","setMaxGasAllowance","_validateChecksums","client","validateChecksum","_execute","channel","request","smartContract","callEthereum","_getTransactionDataCase","_makeTransactionData","_toProtobuf","toTinybars","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"gIAgCe,MAAMA,UAA4BC,EAQ7C,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,cAAgB,KAMrBD,KAAKE,gBAAkB,KAMvBF,KAAKG,iBAAmB,KAEE,MAAtBL,EAAMM,cACNJ,KAAKK,gBAAgBP,EAAMM,cAGT,MAAlBN,EAAMQ,UACNN,KAAKO,kBAAkBT,EAAMQ,UAGL,MAAxBR,EAAMU,gBACNR,KAAKO,kBAAkBT,EAAMU,gBAGJ,MAAzBV,EAAMW,iBACNT,KAAKU,uBAAuBZ,EAAMW,gBAE9C,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,oBAEL,OAAOpB,EAAYsB,0BACf,IAAIvB,EAAoB,CACpBS,aACgC,MAA5Ba,EAAYb,aACNa,EAAYb,kBACZe,EACVb,SAC4B,MAAxBW,EAAYX,SACNc,EAAOT,cAAcM,EAAYX,eACjCa,EACVV,gBACmC,MAA/BQ,EAAYR,gBACNY,EAAKC,aAAaL,EAAYR,sBAC9BU,IAEdP,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,gBAAIZ,GACA,OAAOJ,KAAKC,aACpB,CASI,eAAAI,CAAgBD,GAGZ,OAFAJ,KAAKuB,oBACLvB,KAAKC,cAAgBG,EACdJ,IACf,CAMI,YAAIM,GACA,OAAON,KAAKQ,cACpB,CAaI,WAAAgB,CAAYhB,GACR,OAAOR,KAAKO,kBAAkBC,EACtC,CAKI,kBAAIA,GACA,OAAOR,KAAKE,eACpB,CAYI,iBAAAK,CAAkBC,GAGd,OAFAR,KAAKuB,oBACLvB,KAAKE,gBAAkBM,EAChBR,IACf,CAKI,mBAAIS,GACA,OAAOT,KAAKG,gBACpB,CAOI,kBAAAsB,CAAmBhB,GACf,OAAOT,KAAKU,uBAAuBD,EAC3C,CAmBI,sBAAAC,CAAuBD,GAMnB,OALAT,KAAKuB,oBACLvB,KAAKG,iBACDM,aAA2BY,EACrBZ,EACA,IAAIY,EAAKZ,GACZT,IACf,CAKI,kBAAA0B,CAAmBC,GAEW,MAAtB3B,KAAKC,eACLD,KAAKC,yBAAyBmB,GAE9BpB,KAAKC,cAAc2B,iBAAiBD,EAEhD,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQE,cAAcC,aAAaF,EAClD,CAOI,uBAAAG,GACI,MAAO,qBACf,CAOI,oBAAAC,GACI,MAAO,CACH/B,aAAcJ,KAAKC,cACnBK,SAC4B,MAAxBN,KAAKE,gBACCF,KAAKE,gBAAgBkC,cACrB,KACV3B,gBAC6B,MAAzBT,KAAKG,iBACCH,KAAKG,iBAAiBkC,aACtB,KAEtB,CAKI,SAAAC,GAII,MAAO,uBAFHtC,KAAKuC,gBAAgBC,QACxB,WACuCC,YAChD,EAGAC,EAAqBC,IACjB,sBAEAhD,EAAoBgB"}
1
+ {"version":3,"file":"EthereumTransaction.js","sources":["../src/EthereumTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Hbar from \"./Hbar.js\";\nimport FileId from \"./file/FileId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"./transaction/Transaction.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.IEthereumTransactionBody} HieroProto.proto.IEthereumTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.IAccountID} HieroProto.proto.IAccountID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"./account/AccountId.js\").default} AccountId\n * @typedef {import(\"./channel/Channel.js\").default} Channel\n * @typedef {import(\"./client/Client.js\").default<*, *>} Client\n * @typedef {import(\"./Timestamp.js\").default} Timestamp\n * @typedef {import(\"./transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"long\")} Long\n */\n\n/**\n * Create a new Hedera™ transaction wrapped ethereum transaction.\n */\nexport default class EthereumTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {Uint8Array} [props.ethereumData]\n * @param {FileId} [props.callData]\n * @param {FileId} [props.callDataFileId]\n * @param {number | string | Long | BigNumber | Hbar} [props.maxGasAllowance]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?Uint8Array}\n */\n this._ethereumData = null;\n\n /**\n * @private\n * @type {?FileId}\n */\n this._callDataFileId = null;\n\n /**\n * @private\n * @type {?Hbar}\n */\n this._maxGasAllowance = null;\n\n if (props.ethereumData != null) {\n this.setEthereumData(props.ethereumData);\n }\n\n if (props.callData != null) {\n this.setCallDataFileId(props.callData);\n }\n\n if (props.callDataFileId != null) {\n this.setCallDataFileId(props.callDataFileId);\n }\n\n if (props.maxGasAllowance != null) {\n this.setMaxGasAllowanceHbar(props.maxGasAllowance);\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 {EthereumTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const transaction =\n /** @type {HieroProto.proto.IEthereumTransactionBody} */ (\n body.ethereumTransaction\n );\n\n return Transaction._fromProtobufTransactions(\n new EthereumTransaction({\n ethereumData:\n transaction.ethereumData != null\n ? transaction.ethereumData\n : undefined,\n callData:\n transaction.callData != null\n ? FileId._fromProtobuf(transaction.callData)\n : undefined,\n maxGasAllowance:\n transaction.maxGasAllowance != null\n ? Hbar.fromTinybars(transaction.maxGasAllowance)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?(Uint8Array | FileId)}\n */\n get ethereumData() {\n return this._ethereumData;\n }\n\n /**\n * The raw Ethereum transaction (RLP encoded type 0, 1, and 2). Complete\n * unless the callData field is set.\n *\n * @param {Uint8Array} ethereumData\n * @returns {this}\n */\n setEthereumData(ethereumData) {\n this._requireNotFrozen();\n this._ethereumData = ethereumData;\n return this;\n }\n\n /**\n * @deprecated - Use `callDataFileId` instead\n * @returns {?FileId}\n */\n get callData() {\n return this.callDataFileId;\n }\n\n /**\n * @deprecated - Use `setCallDataFileId()` instead\n *\n * For large transactions (for example contract create) this is the callData\n * of the callData. The data in the callData will be re-written with\n * the callData element as a zero length string with the original contents in\n * the referenced file at time of execution. The callData will need to be\n * \"rehydrated\" with the callData for signature validation to pass.\n * @param {FileId} callDataFileId\n * @returns {this}\n */\n setCallData(callDataFileId) {\n return this.setCallDataFileId(callDataFileId);\n }\n\n /**\n * @returns {?FileId}\n */\n get callDataFileId() {\n return this._callDataFileId;\n }\n\n /**\n * For large transactions (for example contract create) this is the callData\n * of the callData. The data in the callData will be re-written with\n * the callData element as a zero length string with the original contents in\n * the referenced file at time of execution. The callData will need to be\n * \"rehydrated\" with the callData for signature validation to pass.\n *\n * @param {FileId} callDataFileId\n * @returns {this}\n */\n setCallDataFileId(callDataFileId) {\n this._requireNotFrozen();\n this._callDataFileId = callDataFileId;\n return this;\n }\n\n /**\n * @returns {?Hbar}\n */\n get maxGasAllowance() {\n return this._maxGasAllowance;\n }\n\n /**\n * @deprecated -- use setMaxGasAllowanceHbar instead\n * @param {number | string | Long | BigNumber | Hbar} maxGasAllowance\n * @returns {this}\n */\n setMaxGasAllowance(maxGasAllowance) {\n return this.setMaxGasAllowanceHbar(maxGasAllowance);\n }\n\n /**\n * The maximum amount, in hbars, that the payer of the hedera transaction\n * is willing to pay to complete the transaction.\n *\n * Ordinarily the account with the ECDSA alias corresponding to the public\n * key that is extracted from the ethereum_data signature is responsible for\n * fees that result from the execution of the transaction. If that amount of\n * authorized fees is not sufficient then the payer of the transaction can be\n * charged, up to but not exceeding this amount. If the ethereum_data\n * transaction authorized an amount that was insufficient then the payer will\n * only be charged the amount needed to make up the difference. If the gas\n * price in the transaction was set to zero then the payer will be assessed\n * the entire fee.\n *\n * @param {number | string | Long | BigNumber | Hbar} maxGasAllowance\n * @returns {this}\n */\n setMaxGasAllowanceHbar(maxGasAllowance) {\n this._requireNotFrozen();\n this._maxGasAllowance =\n maxGasAllowance instanceof Hbar\n ? maxGasAllowance\n : new Hbar(maxGasAllowance);\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (\n this._ethereumData != null &&\n this._ethereumData instanceof FileId\n ) {\n this._ethereumData.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.smartContract.callEthereum(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"ethereumTransaction\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IEthereumTransactionBody}\n */\n _makeTransactionData() {\n return {\n ethereumData: this._ethereumData,\n callData:\n this._callDataFileId != null\n ? this._callDataFileId._toProtobuf()\n : null,\n maxGasAllowance:\n this._maxGasAllowance != null\n ? this._maxGasAllowance.toTinybars()\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 `EthereumTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"ethereumTransaction\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n EthereumTransaction._fromProtobuf,\n);\n"],"names":["EthereumTransaction","Transaction","constructor","props","super","this","_ethereumData","_callDataFileId","_maxGasAllowance","ethereumData","setEthereumData","callData","setCallDataFileId","callDataFileId","maxGasAllowance","setMaxGasAllowanceHbar","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","transaction","_fromProtobufTransactions","undefined","FileId","Hbar","fromTinybars","_requireNotFrozen","setCallData","setMaxGasAllowance","_validateChecksums","client","validateChecksum","_execute","channel","request","smartContract","callEthereum","_getTransactionDataCase","_makeTransactionData","_toProtobuf","toTinybars","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"gIAgCe,MAAMA,UAA4BC,EAQ7C,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,cAAgB,KAMrBD,KAAKE,gBAAkB,KAMvBF,KAAKG,iBAAmB,KAEE,MAAtBL,EAAMM,cACNJ,KAAKK,gBAAgBP,EAAMM,cAGT,MAAlBN,EAAMQ,UACNN,KAAKO,kBAAkBT,EAAMQ,UAGL,MAAxBR,EAAMU,gBACNR,KAAKO,kBAAkBT,EAAMU,gBAGJ,MAAzBV,EAAMW,iBACNT,KAAKU,uBAAuBZ,EAAMW,gBAE9C,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,oBAEL,OAAOpB,EAAYsB,0BACf,IAAIvB,EAAoB,CACpBS,aACgC,MAA5Ba,EAAYb,aACNa,EAAYb,kBACZe,EACVb,SAC4B,MAAxBW,EAAYX,SACNc,EAAOT,cAAcM,EAAYX,eACjCa,EACVV,gBACmC,MAA/BQ,EAAYR,gBACNY,EAAKC,aAAaL,EAAYR,sBAC9BU,IAEdP,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,gBAAIZ,GACA,OAAOJ,KAAKC,aACpB,CASI,eAAAI,CAAgBD,GAGZ,OAFAJ,KAAKuB,oBACLvB,KAAKC,cAAgBG,EACdJ,IACf,CAMI,YAAIM,GACA,OAAON,KAAKQ,cACpB,CAaI,WAAAgB,CAAYhB,GACR,OAAOR,KAAKO,kBAAkBC,EACtC,CAKI,kBAAIA,GACA,OAAOR,KAAKE,eACpB,CAYI,iBAAAK,CAAkBC,GAGd,OAFAR,KAAKuB,oBACLvB,KAAKE,gBAAkBM,EAChBR,IACf,CAKI,mBAAIS,GACA,OAAOT,KAAKG,gBACpB,CAOI,kBAAAsB,CAAmBhB,GACf,OAAOT,KAAKU,uBAAuBD,EAC3C,CAmBI,sBAAAC,CAAuBD,GAMnB,OALAT,KAAKuB,oBACLvB,KAAKG,iBACDM,aAA2BY,EACrBZ,EACA,IAAIY,EAAKZ,GACZT,IACf,CAKI,kBAAA0B,CAAmBC,GAEW,MAAtB3B,KAAKC,eACLD,KAAKC,yBAAyBmB,GAE9BpB,KAAKC,cAAc2B,iBAAiBD,EAEhD,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQE,cAAcC,aAAaF,EAClD,CAOI,uBAAAG,GACI,MAAO,qBACf,CAOI,oBAAAC,GACI,MAAO,CACH/B,aAAcJ,KAAKC,cACnBK,SAC4B,MAAxBN,KAAKE,gBACCF,KAAKE,gBAAgBkC,cACrB,KACV3B,gBAC6B,MAAzBT,KAAKG,iBACCH,KAAKG,iBAAiBkC,aACtB,KAEtB,CAKI,SAAAC,GAII,MAAO,uBAFHtC,KAAKuC,gBAAgBC,QACxB,WACuCC,YAChD,EAGAC,EAAqBC,IACjB,sBAEAhD,EAAoBgB"}
@@ -13,7 +13,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
13
 
14
14
  /**
15
15
  * @namespace proto
16
- * @typedef {import("@hashgraph/proto").proto.IKey} HieroProto.proto.IKey
16
+ * @typedef {import("@hiero-ledger/proto").proto.IKey} HieroProto.proto.IKey
17
17
  */
18
18
 
19
19
  /**
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.IKey} HieroProto.proto.IKey
3
+ * @typedef {import("@hiero-ledger/proto").proto.IKey} HieroProto.proto.IKey
4
4
  */
5
5
  /**
6
6
  * @typedef {import("./client/Client.js").default<*, *>} Client
@@ -40,7 +40,7 @@ export default class EvmAddress extends Key {
40
40
  }
41
41
  export namespace HieroProto {
42
42
  namespace proto {
43
- type IKey = import("@hashgraph/proto").proto.IKey;
43
+ type IKey = import("@hiero-ledger/proto").proto.IKey;
44
44
  }
45
45
  }
46
46
  export type Client = import("./client/Client.js").default<any, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"EvmAddress.js","sources":["../src/EvmAddress.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Key from \"./Key.js\";\nimport * as hex from \"./encoding/hex.js\";\nimport { arrayEqual } from \"./util.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.IKey} HieroProto.proto.IKey\n */\n\n/**\n * @typedef {import(\"./client/Client.js\").default<*, *>} Client\n */\n\n/**\n * Represents an Ethereum Virtual Machine (EVM) address.\n * This class extends the Key class and provides functionality for handling EVM addresses.\n */\nexport default class EvmAddress extends Key {\n /**\n * @internal\n * @param {Uint8Array} bytes\n */\n constructor(bytes) {\n super();\n this._bytes = bytes;\n }\n\n /**\n * Creates an EvmAddress from a hex string representation.\n * @param {string} evmAddress - The hex string representing the EVM address\n * @returns {EvmAddress}\n * @throws {Error} If the input string is not the correct size\n */\n static fromString(evmAddress) {\n evmAddress = evmAddress.startsWith(\"0x\")\n ? evmAddress.slice(2)\n : evmAddress;\n\n // Standard EVM address is 20 bytes which is 40 hex characters\n if (evmAddress.length !== 40) {\n throw new Error(\"Input EVM address string is not the correct size\");\n }\n\n return new EvmAddress(hex.decode(evmAddress));\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {EvmAddress}\n */\n static fromBytes(bytes) {\n return new EvmAddress(bytes);\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return this._bytes;\n }\n\n /**\n * @returns {string}\n */\n toString() {\n return hex.encode(this._bytes);\n }\n\n /**\n * @param {EvmAddress} other\n * @returns {boolean}\n */\n equals(other) {\n return arrayEqual(this._bytes, other._bytes);\n }\n}\n"],"names":["EvmAddress","Key","constructor","bytes","super","this","_bytes","fromString","evmAddress","startsWith","slice","length","Error","hex.decode","fromBytes","toBytes","toString","hex.encode","equals","other","arrayEqual"],"mappings":"sHAmBe,MAAMA,UAAmBC,EAKpC,WAAAC,CAAYC,GACRC,QACAC,KAAKC,OAASH,CACtB,CAQI,iBAAOI,CAAWC,GAMd,GAA0B,MAL1BA,EAAaA,EAAWC,WAAW,MAC7BD,EAAWE,MAAM,GACjBF,GAGSG,OACX,MAAM,IAAIC,MAAM,oDAGpB,OAAO,IAAIZ,EAAWa,EAAWL,GACzC,CAMI,gBAAOM,CAAUX,GACb,OAAO,IAAIH,EAAWG,EAC9B,CAKI,OAAAY,GACI,OAAOV,KAAKC,MACpB,CAKI,QAAAU,GACI,OAAOC,EAAWZ,KAAKC,OAC/B,CAMI,MAAAY,CAAOC,GACH,OAAOC,EAAWf,KAAKC,OAAQa,EAAMb,OAC7C"}
1
+ {"version":3,"file":"EvmAddress.js","sources":["../src/EvmAddress.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Key from \"./Key.js\";\nimport * as hex from \"./encoding/hex.js\";\nimport { arrayEqual } from \"./util.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IKey} HieroProto.proto.IKey\n */\n\n/**\n * @typedef {import(\"./client/Client.js\").default<*, *>} Client\n */\n\n/**\n * Represents an Ethereum Virtual Machine (EVM) address.\n * This class extends the Key class and provides functionality for handling EVM addresses.\n */\nexport default class EvmAddress extends Key {\n /**\n * @internal\n * @param {Uint8Array} bytes\n */\n constructor(bytes) {\n super();\n this._bytes = bytes;\n }\n\n /**\n * Creates an EvmAddress from a hex string representation.\n * @param {string} evmAddress - The hex string representing the EVM address\n * @returns {EvmAddress}\n * @throws {Error} If the input string is not the correct size\n */\n static fromString(evmAddress) {\n evmAddress = evmAddress.startsWith(\"0x\")\n ? evmAddress.slice(2)\n : evmAddress;\n\n // Standard EVM address is 20 bytes which is 40 hex characters\n if (evmAddress.length !== 40) {\n throw new Error(\"Input EVM address string is not the correct size\");\n }\n\n return new EvmAddress(hex.decode(evmAddress));\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {EvmAddress}\n */\n static fromBytes(bytes) {\n return new EvmAddress(bytes);\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return this._bytes;\n }\n\n /**\n * @returns {string}\n */\n toString() {\n return hex.encode(this._bytes);\n }\n\n /**\n * @param {EvmAddress} other\n * @returns {boolean}\n */\n equals(other) {\n return arrayEqual(this._bytes, other._bytes);\n }\n}\n"],"names":["EvmAddress","Key","constructor","bytes","super","this","_bytes","fromString","evmAddress","startsWith","slice","length","Error","hex.decode","fromBytes","toBytes","toString","hex.encode","equals","other","arrayEqual"],"mappings":"sHAmBe,MAAMA,UAAmBC,EAKpC,WAAAC,CAAYC,GACRC,QACAC,KAAKC,OAASH,CACtB,CAQI,iBAAOI,CAAWC,GAMd,GAA0B,MAL1BA,EAAaA,EAAWC,WAAW,MAC7BD,EAAWE,MAAM,GACjBF,GAGSG,OACX,MAAM,IAAIC,MAAM,oDAGpB,OAAO,IAAIZ,EAAWa,EAAWL,GACzC,CAMI,gBAAOM,CAAUX,GACb,OAAO,IAAIH,EAAWG,EAC9B,CAKI,OAAAY,GACI,OAAOV,KAAKC,MACpB,CAKI,QAAAU,GACI,OAAOC,EAAWZ,KAAKC,OAC/B,CAMI,MAAAY,CAAOC,GACH,OAAOC,EAAWf,KAAKC,OAAQa,EAAMb,OAC7C"}
@@ -66,7 +66,7 @@ class ExchangeRate {
66
66
 
67
67
  /**
68
68
  * @internal
69
- * @param {import("@hashgraph/proto").proto.IExchangeRate} rate
69
+ * @param {import("@hiero-ledger/proto").proto.IExchangeRate} rate
70
70
  * @returns {ExchangeRate}
71
71
  */
72
72
  static _fromProtobuf(rate) {
@@ -79,7 +79,7 @@ class ExchangeRate {
79
79
 
80
80
  /**
81
81
  * @internal
82
- * @returns {import("@hashgraph/proto").proto.IExchangeRate}
82
+ * @returns {import("@hiero-ledger/proto").proto.IExchangeRate}
83
83
  */
84
84
  _toProtobuf() {
85
85
  return {
@@ -13,10 +13,10 @@
13
13
  export default class ExchangeRate {
14
14
  /**
15
15
  * @internal
16
- * @param {import("@hashgraph/proto").proto.IExchangeRate} rate
16
+ * @param {import("@hiero-ledger/proto").proto.IExchangeRate} rate
17
17
  * @returns {ExchangeRate}
18
18
  */
19
- static _fromProtobuf(rate: import("@hashgraph/proto").proto.IExchangeRate): ExchangeRate;
19
+ static _fromProtobuf(rate: import("@hiero-ledger/proto").proto.IExchangeRate): ExchangeRate;
20
20
  /**
21
21
  * @private
22
22
  * @param {object} props
@@ -55,9 +55,9 @@ export default class ExchangeRate {
55
55
  readonly exchangeRateInCents: number;
56
56
  /**
57
57
  * @internal
58
- * @returns {import("@hashgraph/proto").proto.IExchangeRate}
58
+ * @returns {import("@hiero-ledger/proto").proto.IExchangeRate}
59
59
  */
60
- _toProtobuf(): import("@hashgraph/proto").proto.IExchangeRate;
60
+ _toProtobuf(): import("@hiero-ledger/proto").proto.IExchangeRate;
61
61
  /**
62
62
  * @returns {ExchangeRateJSON}
63
63
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeRate.js","sources":["../src/ExchangeRate.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Long from \"long\";\n\n/**\n * @typedef {object} ExchangeRateJSON\n * @property {number} hbars\n * @property {number} cents\n * @property {Date} expirationTime\n * @property {number} exchangeRateInCents\n */\n\n/**\n * Represents an exchange rate between hbars and cents (USD).\n * This class provides functionality for handling and converting exchange rates\n * between Hedera's native HBAR currency and US cents.\n */\nexport default class ExchangeRate {\n /**\n * @private\n * @param {object} props\n * @param {number} props.hbars\n * @param {number} props.cents\n * @param {Date} props.expirationTime\n */\n constructor(props) {\n /**\n * Denotes Hbar equivalent to cents (USD)\n *\n * @readonly\n * @type {number}\n */\n this.hbars = props.hbars;\n\n /**\n * Denotes cents (USD) equivalent to Hbar\n *\n * @readonly\n * @type {number}\n */\n this.cents = props.cents;\n\n /**\n * Expiration time of this exchange rate\n *\n * @readonly\n * @type {Date}\n */\n this.expirationTime = props.expirationTime;\n\n /**\n * Calculated exchange rate\n *\n * @readonly\n * @type {number}\n */\n this.exchangeRateInCents = props.cents / props.hbars;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {import(\"@hashgraph/proto\").proto.IExchangeRate} rate\n * @returns {ExchangeRate}\n */\n static _fromProtobuf(rate) {\n return new ExchangeRate({\n hbars: /** @type {number} */ (rate.hbarEquiv),\n cents: /** @type {number} */ (rate.centEquiv),\n expirationTime: new Date(\n rate.expirationTime != null\n ? rate.expirationTime.seconds != null\n ? Long.isLong(rate.expirationTime.seconds)\n ? rate.expirationTime.seconds.toInt() * 1000\n : rate.expirationTime.seconds\n : 0\n : 0,\n ),\n });\n }\n\n /**\n * @internal\n * @returns {import(\"@hashgraph/proto\").proto.IExchangeRate}\n */\n _toProtobuf() {\n return {\n hbarEquiv: this.hbars,\n centEquiv: this.cents,\n expirationTime: {\n seconds: Long.fromNumber(\n Math.trunc(this.expirationTime.getTime() / 1000),\n ),\n },\n };\n }\n\n /**\n * @returns {ExchangeRateJSON}\n */\n toJSON() {\n return {\n hbars: this.hbars,\n cents: this.cents,\n expirationTime: this.expirationTime,\n exchangeRateInCents: this.exchangeRateInCents,\n };\n }\n\n /**\n * @returns {string}\n */\n toString() {\n return JSON.stringify(this.toJSON());\n }\n}\n"],"names":["ExchangeRate","constructor","props","this","hbars","cents","expirationTime","exchangeRateInCents","Object","freeze","_fromProtobuf","rate","Date","seconds","Long","isLong","toInt","_toProtobuf","hbarEquiv","centEquiv","fromNumber","Math","trunc","getTime","toJSON","toString","JSON","stringify"],"mappings":"oBAiBe,MAAMA,EAQjB,WAAAC,CAAYC,GAORC,KAAKC,MAAQF,EAAME,MAQnBD,KAAKE,MAAQH,EAAMG,MAQnBF,KAAKG,eAAiBJ,EAAMI,eAQ5BH,KAAKI,oBAAsBL,EAAMG,MAAQH,EAAME,MAE/CI,OAAOC,OAAON,KACtB,CAOI,oBAAOO,CAAcC,GACjB,OAAO,IAAIX,EAAa,CACpBI,MAA8BO,EAAc,UAC5CN,MAA8BM,EAAc,UAC5CL,eAAgB,IAAIM,KACO,MAAvBD,EAAKL,gBACgC,MAA/BK,EAAKL,eAAeO,QAChBC,EAAKC,OAAOJ,EAAKL,eAAeO,SACU,IAAtCF,EAAKL,eAAeO,QAAQG,QAC5BL,EAAKL,eAAeO,QAE5B,IAGtB,CAMI,WAAAI,GACI,MAAO,CACHC,UAAWf,KAAKC,MAChBe,UAAWhB,KAAKE,MAChBC,eAAgB,CACZO,QAASC,EAAKM,WACVC,KAAKC,MAAMnB,KAAKG,eAAeiB,UAAY,OAI/D,CAKI,MAAAC,GACI,MAAO,CACHpB,MAAOD,KAAKC,MACZC,MAAOF,KAAKE,MACZC,eAAgBH,KAAKG,eACrBC,oBAAqBJ,KAAKI,oBAEtC,CAKI,QAAAkB,GACI,OAAOC,KAAKC,UAAUxB,KAAKqB,SACnC"}
1
+ {"version":3,"file":"ExchangeRate.js","sources":["../src/ExchangeRate.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Long from \"long\";\n\n/**\n * @typedef {object} ExchangeRateJSON\n * @property {number} hbars\n * @property {number} cents\n * @property {Date} expirationTime\n * @property {number} exchangeRateInCents\n */\n\n/**\n * Represents an exchange rate between hbars and cents (USD).\n * This class provides functionality for handling and converting exchange rates\n * between Hedera's native HBAR currency and US cents.\n */\nexport default class ExchangeRate {\n /**\n * @private\n * @param {object} props\n * @param {number} props.hbars\n * @param {number} props.cents\n * @param {Date} props.expirationTime\n */\n constructor(props) {\n /**\n * Denotes Hbar equivalent to cents (USD)\n *\n * @readonly\n * @type {number}\n */\n this.hbars = props.hbars;\n\n /**\n * Denotes cents (USD) equivalent to Hbar\n *\n * @readonly\n * @type {number}\n */\n this.cents = props.cents;\n\n /**\n * Expiration time of this exchange rate\n *\n * @readonly\n * @type {Date}\n */\n this.expirationTime = props.expirationTime;\n\n /**\n * Calculated exchange rate\n *\n * @readonly\n * @type {number}\n */\n this.exchangeRateInCents = props.cents / props.hbars;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {import(\"@hiero-ledger/proto\").proto.IExchangeRate} rate\n * @returns {ExchangeRate}\n */\n static _fromProtobuf(rate) {\n return new ExchangeRate({\n hbars: /** @type {number} */ (rate.hbarEquiv),\n cents: /** @type {number} */ (rate.centEquiv),\n expirationTime: new Date(\n rate.expirationTime != null\n ? rate.expirationTime.seconds != null\n ? Long.isLong(rate.expirationTime.seconds)\n ? rate.expirationTime.seconds.toInt() * 1000\n : rate.expirationTime.seconds\n : 0\n : 0,\n ),\n });\n }\n\n /**\n * @internal\n * @returns {import(\"@hiero-ledger/proto\").proto.IExchangeRate}\n */\n _toProtobuf() {\n return {\n hbarEquiv: this.hbars,\n centEquiv: this.cents,\n expirationTime: {\n seconds: Long.fromNumber(\n Math.trunc(this.expirationTime.getTime() / 1000),\n ),\n },\n };\n }\n\n /**\n * @returns {ExchangeRateJSON}\n */\n toJSON() {\n return {\n hbars: this.hbars,\n cents: this.cents,\n expirationTime: this.expirationTime,\n exchangeRateInCents: this.exchangeRateInCents,\n };\n }\n\n /**\n * @returns {string}\n */\n toString() {\n return JSON.stringify(this.toJSON());\n }\n}\n"],"names":["ExchangeRate","constructor","props","this","hbars","cents","expirationTime","exchangeRateInCents","Object","freeze","_fromProtobuf","rate","Date","seconds","Long","isLong","toInt","_toProtobuf","hbarEquiv","centEquiv","fromNumber","Math","trunc","getTime","toJSON","toString","JSON","stringify"],"mappings":"oBAiBe,MAAMA,EAQjB,WAAAC,CAAYC,GAORC,KAAKC,MAAQF,EAAME,MAQnBD,KAAKE,MAAQH,EAAMG,MAQnBF,KAAKG,eAAiBJ,EAAMI,eAQ5BH,KAAKI,oBAAsBL,EAAMG,MAAQH,EAAME,MAE/CI,OAAOC,OAAON,KACtB,CAOI,oBAAOO,CAAcC,GACjB,OAAO,IAAIX,EAAa,CACpBI,MAA8BO,EAAc,UAC5CN,MAA8BM,EAAc,UAC5CL,eAAgB,IAAIM,KACO,MAAvBD,EAAKL,gBACgC,MAA/BK,EAAKL,eAAeO,QAChBC,EAAKC,OAAOJ,EAAKL,eAAeO,SACU,IAAtCF,EAAKL,eAAeO,QAAQG,QAC5BL,EAAKL,eAAeO,QAE5B,IAGtB,CAMI,WAAAI,GACI,MAAO,CACHC,UAAWf,KAAKC,MAChBe,UAAWhB,KAAKE,MAChBC,eAAgB,CACZO,QAASC,EAAKM,WACVC,KAAKC,MAAMnB,KAAKG,eAAeiB,UAAY,OAI/D,CAKI,MAAAC,GACI,MAAO,CACHpB,MAAOD,KAAKC,MACZC,MAAOF,KAAKE,MACZC,eAAgBH,KAAKG,eACrBC,oBAAqBJ,KAAKI,oBAEtC,CAKI,QAAAkB,GACI,OAAOC,KAAKC,UAAUxB,KAAKqB,SACnC"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _ExchangeRate = _interopRequireDefault(require("./ExchangeRate.cjs"));
8
- var HieroProto = _interopRequireWildcard(require("@hashgraph/proto"));
8
+ var HieroProto = _interopRequireWildcard(require("@hiero-ledger/proto"));
9
9
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  // SPDX-License-Identifier: Apache-2.0
@@ -36,4 +36,4 @@ export default class ExchangeRates {
36
36
  _toProtobuf(): HieroProto.proto.IExchangeRateSet;
37
37
  }
38
38
  import ExchangeRate from "./ExchangeRate.js";
39
- import * as HieroProto from "@hashgraph/proto";
39
+ import * as HieroProto from "@hiero-ledger/proto";
@@ -1,2 +1,2 @@
1
- import t from"./ExchangeRate.js";import*as e from"@hashgraph/proto";const{proto:r}=e;class o{constructor(t){this.currentRate=t.currentRate,this.nextRate=t.nextRate,Object.freeze(this)}static _fromProtobuf(e){return new o({currentRate:t._fromProtobuf(e.currentRate),nextRate:t._fromProtobuf(e.nextRate)})}_toProtobuf(){return{currentRate:this.currentRate._toProtobuf(),nextRate:this.nextRate._toProtobuf()}}static fromBytes(t){return o._fromProtobuf(r.ExchangeRateSet.decode(t))}}export{o as default};
1
+ import t from"./ExchangeRate.js";import*as e from"@hiero-ledger/proto";const{proto:r}=e;class o{constructor(t){this.currentRate=t.currentRate,this.nextRate=t.nextRate,Object.freeze(this)}static _fromProtobuf(e){return new o({currentRate:t._fromProtobuf(e.currentRate),nextRate:t._fromProtobuf(e.nextRate)})}_toProtobuf(){return{currentRate:this.currentRate._toProtobuf(),nextRate:this.nextRate._toProtobuf()}}static fromBytes(t){return o._fromProtobuf(r.ExchangeRateSet.decode(t))}}export{o as default};
2
2
  //# sourceMappingURL=ExchangeRates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeRates.js","sources":["../src/ExchangeRates.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ExchangeRate from \"./ExchangeRate.js\";\nimport * as HieroProto from \"@hashgraph/proto\";\n\nconst { proto } = HieroProto;\n\n/**\n * Represents a pair of exchange rates for HBAR to USD cents conversion.\n * Contains both the current exchange rate and the next exchange rate that will take effect.\n */\nexport default class ExchangeRates {\n /**\n * @private\n * @param {object} props\n * @param {ExchangeRate} props.currentRate\n * @param {ExchangeRate} props.nextRate\n */\n constructor(props) {\n /**\n * @readonly\n */\n this.currentRate = props.currentRate;\n\n /**\n * @readonly\n */\n this.nextRate = props.nextRate;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IExchangeRateSet} rateSet\n * @returns {ExchangeRates}\n */\n static _fromProtobuf(rateSet) {\n return new ExchangeRates({\n currentRate: ExchangeRate._fromProtobuf(\n /** @type {HieroProto.proto.IExchangeRate} */ (\n rateSet.currentRate\n ),\n ),\n nextRate: ExchangeRate._fromProtobuf(\n /** @type {HieroProto.proto.IExchangeRate} */ (\n rateSet.nextRate\n ),\n ),\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IExchangeRateSet}\n */\n _toProtobuf() {\n return {\n currentRate: this.currentRate._toProtobuf(),\n nextRate: this.nextRate._toProtobuf(),\n };\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {ExchangeRates}\n */\n static fromBytes(bytes) {\n return ExchangeRates._fromProtobuf(proto.ExchangeRateSet.decode(bytes));\n }\n}\n"],"names":["proto","HieroProto","ExchangeRates","constructor","props","this","currentRate","nextRate","Object","freeze","_fromProtobuf","rateSet","ExchangeRate","_toProtobuf","fromBytes","bytes","ExchangeRateSet","decode"],"mappings":"oEAKA,MAAMA,MAAEA,GAAUC,EAMH,MAAMC,EAOjB,WAAAC,CAAYC,GAIRC,KAAKC,YAAcF,EAAME,YAKzBD,KAAKE,SAAWH,EAAMG,SAEtBC,OAAOC,OAAOJ,KACtB,CAOI,oBAAOK,CAAcC,GACjB,OAAO,IAAIT,EAAc,CACrBI,YAAaM,EAAaF,cAElBC,EACpB,aAEYJ,SAAUK,EAAaF,cAEfC,EACpB,WAGA,CAMI,WAAAE,GACI,MAAO,CACHP,YAAaD,KAAKC,YAAYO,cAC9BN,SAAUF,KAAKE,SAASM,cAEpC,CAMI,gBAAOC,CAAUC,GACb,OAAOb,EAAcQ,cAAcV,EAAMgB,gBAAgBC,OAAOF,GACxE"}
1
+ {"version":3,"file":"ExchangeRates.js","sources":["../src/ExchangeRates.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ExchangeRate from \"./ExchangeRate.js\";\nimport * as HieroProto from \"@hiero-ledger/proto\";\n\nconst { proto } = HieroProto;\n\n/**\n * Represents a pair of exchange rates for HBAR to USD cents conversion.\n * Contains both the current exchange rate and the next exchange rate that will take effect.\n */\nexport default class ExchangeRates {\n /**\n * @private\n * @param {object} props\n * @param {ExchangeRate} props.currentRate\n * @param {ExchangeRate} props.nextRate\n */\n constructor(props) {\n /**\n * @readonly\n */\n this.currentRate = props.currentRate;\n\n /**\n * @readonly\n */\n this.nextRate = props.nextRate;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IExchangeRateSet} rateSet\n * @returns {ExchangeRates}\n */\n static _fromProtobuf(rateSet) {\n return new ExchangeRates({\n currentRate: ExchangeRate._fromProtobuf(\n /** @type {HieroProto.proto.IExchangeRate} */ (\n rateSet.currentRate\n ),\n ),\n nextRate: ExchangeRate._fromProtobuf(\n /** @type {HieroProto.proto.IExchangeRate} */ (\n rateSet.nextRate\n ),\n ),\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IExchangeRateSet}\n */\n _toProtobuf() {\n return {\n currentRate: this.currentRate._toProtobuf(),\n nextRate: this.nextRate._toProtobuf(),\n };\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {ExchangeRates}\n */\n static fromBytes(bytes) {\n return ExchangeRates._fromProtobuf(proto.ExchangeRateSet.decode(bytes));\n }\n}\n"],"names":["proto","HieroProto","ExchangeRates","constructor","props","this","currentRate","nextRate","Object","freeze","_fromProtobuf","rateSet","ExchangeRate","_toProtobuf","fromBytes","bytes","ExchangeRateSet","decode"],"mappings":"uEAKA,MAAMA,MAAEA,GAAUC,EAMH,MAAMC,EAOjB,WAAAC,CAAYC,GAIRC,KAAKC,YAAcF,EAAME,YAKzBD,KAAKE,SAAWH,EAAMG,SAEtBC,OAAOC,OAAOJ,KACtB,CAOI,oBAAOK,CAAcC,GACjB,OAAO,IAAIT,EAAc,CACrBI,YAAaM,EAAaF,cAElBC,EACpB,aAEYJ,SAAUK,EAAaF,cAEfC,EACpB,WAGA,CAMI,WAAAE,GACI,MAAO,CACHP,YAAaD,KAAKC,YAAYO,cAC9BN,SAAUF,KAAKE,SAASM,cAEpC,CAMI,gBAAOC,CAAUC,GACb,OAAOb,EAAcQ,cAAcV,EAAMgB,gBAAgBC,OAAOF,GACxE"}
@@ -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 _long = _interopRequireDefault(require("long"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -63,4 +63,4 @@ export default class FeeComponents {
63
63
  toBytes(): Uint8Array;
64
64
  }
65
65
  import Long from "long";
66
- import * as HieroProto from "@hashgraph/proto";
66
+ import * as HieroProto from "@hiero-ledger/proto";
@@ -1,2 +1,2 @@
1
- import*as t from"@hashgraph/proto";import"long";class n{constructor(t={}){this.min=t.min,this.max=t.max,this.constant=t.constant,this.transactionBandwidthByte=t.transactionBandwidthByte,this.transactionVerification=t.transactionVerification,this.transactionRamByteHour=t.transactionRamByteHour,this.transactionStorageByteHour=t.transactionStorageByteHour,this.contractTransactionGas=t.contractTransactionGas,this.transferVolumeHbar=t.transferVolumeHbar,this.responseMemoryByte=t.responseMemoryByte,this.responseDiskByte=t.responseDiskByte}static fromBytes(o){return n._fromProtobuf(t.proto.FeeComponents.decode(o))}static _fromProtobuf(t){return new n({min:null!=t.min?t.min:void 0,max:null!=t.max?t.max:void 0,constant:null!=t.constant?t.constant:void 0,transactionBandwidthByte:null!=t.bpt?t.bpt:void 0,transactionVerification:null!=t.vpt?t.vpt:void 0,transactionRamByteHour:null!=t.rbh?t.rbh:void 0,transactionStorageByteHour:null!=t.sbh?t.sbh:void 0,contractTransactionGas:null!=t.gas?t.gas:void 0,transferVolumeHbar:null!=t.tv?t.tv:void 0,responseMemoryByte:null!=t.bpr?t.bpr:void 0,responseDiskByte:null!=t.sbpr?t.sbpr:void 0})}_toProtobuf(){return{min:null!=this.min?this.min:void 0,max:null!=this.max?this.max:void 0,constant:null!=this.constant?this.constant:void 0,bpt:null!=this.transactionBandwidthByte?this.transactionBandwidthByte:void 0,vpt:null!=this.transactionVerification?this.transactionVerification:void 0,rbh:null!=this.transactionRamByteHour?this.transactionRamByteHour:void 0,sbh:null!=this.transactionStorageByteHour?this.transactionStorageByteHour:void 0,gas:null!=this.contractTransactionGas?this.contractTransactionGas:void 0,tv:null!=this.transferVolumeHbar?this.transferVolumeHbar:void 0,bpr:null!=this.responseMemoryByte?this.responseMemoryByte:void 0,sbpr:null!=this.responseDiskByte?this.responseDiskByte:void 0}}toBytes(){return t.proto.FeeComponents.encode(this._toProtobuf()).finish()}}export{n as default};
1
+ import*as t from"@hiero-ledger/proto";import"long";class n{constructor(t={}){this.min=t.min,this.max=t.max,this.constant=t.constant,this.transactionBandwidthByte=t.transactionBandwidthByte,this.transactionVerification=t.transactionVerification,this.transactionRamByteHour=t.transactionRamByteHour,this.transactionStorageByteHour=t.transactionStorageByteHour,this.contractTransactionGas=t.contractTransactionGas,this.transferVolumeHbar=t.transferVolumeHbar,this.responseMemoryByte=t.responseMemoryByte,this.responseDiskByte=t.responseDiskByte}static fromBytes(o){return n._fromProtobuf(t.proto.FeeComponents.decode(o))}static _fromProtobuf(t){return new n({min:null!=t.min?t.min:void 0,max:null!=t.max?t.max:void 0,constant:null!=t.constant?t.constant:void 0,transactionBandwidthByte:null!=t.bpt?t.bpt:void 0,transactionVerification:null!=t.vpt?t.vpt:void 0,transactionRamByteHour:null!=t.rbh?t.rbh:void 0,transactionStorageByteHour:null!=t.sbh?t.sbh:void 0,contractTransactionGas:null!=t.gas?t.gas:void 0,transferVolumeHbar:null!=t.tv?t.tv:void 0,responseMemoryByte:null!=t.bpr?t.bpr:void 0,responseDiskByte:null!=t.sbpr?t.sbpr:void 0})}_toProtobuf(){return{min:null!=this.min?this.min:void 0,max:null!=this.max?this.max:void 0,constant:null!=this.constant?this.constant:void 0,bpt:null!=this.transactionBandwidthByte?this.transactionBandwidthByte:void 0,vpt:null!=this.transactionVerification?this.transactionVerification:void 0,rbh:null!=this.transactionRamByteHour?this.transactionRamByteHour:void 0,sbh:null!=this.transactionStorageByteHour?this.transactionStorageByteHour:void 0,gas:null!=this.contractTransactionGas?this.contractTransactionGas:void 0,tv:null!=this.transferVolumeHbar?this.transferVolumeHbar:void 0,bpr:null!=this.responseMemoryByte?this.responseMemoryByte:void 0,sbpr:null!=this.responseDiskByte?this.responseDiskByte:void 0}}toBytes(){return t.proto.FeeComponents.encode(this._toProtobuf()).finish()}}export{n as default};
2
2
  //# sourceMappingURL=FeeComponents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeeComponents.js","sources":["../src/FeeComponents.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hashgraph/proto\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Long from \"long\";\n\n/**\n * A set of values the nodes use in determining transaction and query fees, and\n * constants involved in fee calculations.\n */\nexport default class FeeComponents {\n /**\n * @param {object} [props]\n * @param {Long} [props.min]\n * @param {Long} [props.max]\n * @param {Long} [props.constant]\n * @param {Long} [props.transactionBandwidthByte]\n * @param {Long} [props.transactionVerification]\n * @param {Long} [props.transactionRamByteHour]\n * @param {Long} [props.transactionStorageByteHour]\n * @param {Long} [props.contractTransactionGas]\n * @param {Long} [props.transferVolumeHbar]\n * @param {Long} [props.responseMemoryByte]\n * @param {Long} [props.responseDiskByte]\n */\n constructor(props = {}) {\n /*\n * A minimum, the calculated fee must be greater than this value\n *\n * @type {Long}\n */\n this.min = props.min;\n\n /*\n * A maximum, the calculated fee must be less than this value\n *\n * @type {Long}\n */\n this.max = props.max;\n\n /*\n * A constant contribution to the fee\n *\n * @type {Long}\n */\n this.constant = props.constant;\n\n /*\n * The price of bandwidth consumed by a transaction, measured in bytes\n *\n * @type {Long}\n */\n this.transactionBandwidthByte = props.transactionBandwidthByte;\n\n /*\n * The price per signature verification for a transaction\n *\n * @type {Long}\n */\n this.transactionVerification = props.transactionVerification;\n\n /*\n * The price of RAM consumed by a transaction, measured in byte-hours\n *\n * @type {Long}\n */\n this.transactionRamByteHour = props.transactionRamByteHour;\n\n /*\n * The price of storage consumed by a transaction, measured in byte-hours\n *\n * @type {Long}\n */\n this.transactionStorageByteHour = props.transactionStorageByteHour;\n\n /*\n * The price of computation for a smart contract transaction, measured in gas\n *\n * @type {Long}\n */\n this.contractTransactionGas = props.contractTransactionGas;\n\n /*\n * The price per hbar transferred for a transfer\n *\n * @type {Long}\n */\n this.transferVolumeHbar = props.transferVolumeHbar;\n\n /*\n * The price of bandwidth for data retrieved from memory for a response, measured in bytes\n *\n * @type {Long}\n */\n this.responseMemoryByte = props.responseMemoryByte;\n\n /*\n * The price of bandwidth for data retrieved from disk for a response, measured in bytes\n *\n * @type {Long}\n */\n this.responseDiskByte = props.responseDiskByte;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeComponents}\n */\n static fromBytes(bytes) {\n return FeeComponents._fromProtobuf(\n HieroProto.proto.FeeComponents.decode(bytes),\n );\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IFeeComponents} feeComponents\n * @returns {FeeComponents}\n */\n static _fromProtobuf(feeComponents) {\n return new FeeComponents({\n min: feeComponents.min != null ? feeComponents.min : undefined,\n max: feeComponents.max != null ? feeComponents.max : undefined,\n constant:\n feeComponents.constant != null\n ? feeComponents.constant\n : undefined,\n transactionBandwidthByte:\n feeComponents.bpt != null ? feeComponents.bpt : undefined,\n transactionVerification:\n feeComponents.vpt != null ? feeComponents.vpt : undefined,\n transactionRamByteHour:\n feeComponents.rbh != null ? feeComponents.rbh : undefined,\n transactionStorageByteHour:\n feeComponents.sbh != null ? feeComponents.sbh : undefined,\n contractTransactionGas:\n feeComponents.gas != null ? feeComponents.gas : undefined,\n transferVolumeHbar:\n feeComponents.tv != null ? feeComponents.tv : undefined,\n responseMemoryByte:\n feeComponents.bpr != null ? feeComponents.bpr : undefined,\n responseDiskByte:\n feeComponents.sbpr != null ? feeComponents.sbpr : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IFeeComponents}\n */\n _toProtobuf() {\n return {\n min: this.min != null ? this.min : undefined,\n max: this.max != null ? this.max : undefined,\n constant: this.constant != null ? this.constant : undefined,\n bpt:\n this.transactionBandwidthByte != null\n ? this.transactionBandwidthByte\n : undefined,\n vpt:\n this.transactionVerification != null\n ? this.transactionVerification\n : undefined,\n rbh:\n this.transactionRamByteHour != null\n ? this.transactionRamByteHour\n : undefined,\n sbh:\n this.transactionStorageByteHour != null\n ? this.transactionStorageByteHour\n : undefined,\n gas:\n this.contractTransactionGas != null\n ? this.contractTransactionGas\n : undefined,\n tv:\n this.transferVolumeHbar != null\n ? this.transferVolumeHbar\n : undefined,\n bpr:\n this.responseMemoryByte != null\n ? this.responseMemoryByte\n : undefined,\n sbpr:\n this.responseDiskByte != null\n ? this.responseDiskByte\n : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.FeeComponents.encode(\n this._toProtobuf(),\n ).finish();\n }\n}\n"],"names":["FeeComponents","constructor","props","this","min","max","constant","transactionBandwidthByte","transactionVerification","transactionRamByteHour","transactionStorageByteHour","contractTransactionGas","transferVolumeHbar","responseMemoryByte","responseDiskByte","fromBytes","bytes","_fromProtobuf","HieroProto","proto","decode","feeComponents","undefined","bpt","vpt","rbh","sbh","gas","tv","bpr","sbpr","_toProtobuf","toBytes","encode","finish"],"mappings":"gDAUe,MAAMA,EAejB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,IAAMF,EAAME,IAOjBD,KAAKE,IAAMH,EAAMG,IAOjBF,KAAKG,SAAWJ,EAAMI,SAOtBH,KAAKI,yBAA2BL,EAAMK,yBAOtCJ,KAAKK,wBAA0BN,EAAMM,wBAOrCL,KAAKM,uBAAyBP,EAAMO,uBAOpCN,KAAKO,2BAA6BR,EAAMQ,2BAOxCP,KAAKQ,uBAAyBT,EAAMS,uBAOpCR,KAAKS,mBAAqBV,EAAMU,mBAOhCT,KAAKU,mBAAqBX,EAAMW,mBAOhCV,KAAKW,iBAAmBZ,EAAMY,gBACtC,CAMI,gBAAOC,CAAUC,GACb,OAAOhB,EAAciB,cACjBC,EAAWC,MAAMnB,cAAcoB,OAAOJ,GAElD,CAOI,oBAAOC,CAAcI,GACjB,OAAO,IAAIrB,EAAc,CACrBI,IAA0B,MAArBiB,EAAcjB,IAAciB,EAAcjB,SAAMkB,EACrDjB,IAA0B,MAArBgB,EAAchB,IAAcgB,EAAchB,SAAMiB,EACrDhB,SAC8B,MAA1Be,EAAcf,SACRe,EAAcf,cACdgB,EACVf,yBACyB,MAArBc,EAAcE,IAAcF,EAAcE,SAAMD,EACpDd,wBACyB,MAArBa,EAAcG,IAAcH,EAAcG,SAAMF,EACpDb,uBACyB,MAArBY,EAAcI,IAAcJ,EAAcI,SAAMH,EACpDZ,2BACyB,MAArBW,EAAcK,IAAcL,EAAcK,SAAMJ,EACpDX,uBACyB,MAArBU,EAAcM,IAAcN,EAAcM,SAAML,EACpDV,mBACwB,MAApBS,EAAcO,GAAaP,EAAcO,QAAKN,EAClDT,mBACyB,MAArBQ,EAAcQ,IAAcR,EAAcQ,SAAMP,EACpDR,iBAC0B,MAAtBO,EAAcS,KAAeT,EAAcS,UAAOR,GAElE,CAMI,WAAAS,GACI,MAAO,CACH3B,IAAiB,MAAZD,KAAKC,IAAcD,KAAKC,SAAMkB,EACnCjB,IAAiB,MAAZF,KAAKE,IAAcF,KAAKE,SAAMiB,EACnChB,SAA2B,MAAjBH,KAAKG,SAAmBH,KAAKG,cAAWgB,EAClDC,IACqC,MAAjCpB,KAAKI,yBACCJ,KAAKI,8BACLe,EACVE,IACoC,MAAhCrB,KAAKK,wBACCL,KAAKK,6BACLc,EACVG,IACmC,MAA/BtB,KAAKM,uBACCN,KAAKM,4BACLa,EACVI,IACuC,MAAnCvB,KAAKO,2BACCP,KAAKO,gCACLY,EACVK,IACmC,MAA/BxB,KAAKQ,uBACCR,KAAKQ,4BACLW,EACVM,GAC+B,MAA3BzB,KAAKS,mBACCT,KAAKS,wBACLU,EACVO,IAC+B,MAA3B1B,KAAKU,mBACCV,KAAKU,wBACLS,EACVQ,KAC6B,MAAzB3B,KAAKW,iBACCX,KAAKW,sBACLQ,EAEtB,CAKI,OAAAU,GACI,OAAOd,EAAWC,MAAMnB,cAAciC,OAClC9B,KAAK4B,eACPG,QACV"}
1
+ {"version":3,"file":"FeeComponents.js","sources":["../src/FeeComponents.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hiero-ledger/proto\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Long from \"long\";\n\n/**\n * A set of values the nodes use in determining transaction and query fees, and\n * constants involved in fee calculations.\n */\nexport default class FeeComponents {\n /**\n * @param {object} [props]\n * @param {Long} [props.min]\n * @param {Long} [props.max]\n * @param {Long} [props.constant]\n * @param {Long} [props.transactionBandwidthByte]\n * @param {Long} [props.transactionVerification]\n * @param {Long} [props.transactionRamByteHour]\n * @param {Long} [props.transactionStorageByteHour]\n * @param {Long} [props.contractTransactionGas]\n * @param {Long} [props.transferVolumeHbar]\n * @param {Long} [props.responseMemoryByte]\n * @param {Long} [props.responseDiskByte]\n */\n constructor(props = {}) {\n /*\n * A minimum, the calculated fee must be greater than this value\n *\n * @type {Long}\n */\n this.min = props.min;\n\n /*\n * A maximum, the calculated fee must be less than this value\n *\n * @type {Long}\n */\n this.max = props.max;\n\n /*\n * A constant contribution to the fee\n *\n * @type {Long}\n */\n this.constant = props.constant;\n\n /*\n * The price of bandwidth consumed by a transaction, measured in bytes\n *\n * @type {Long}\n */\n this.transactionBandwidthByte = props.transactionBandwidthByte;\n\n /*\n * The price per signature verification for a transaction\n *\n * @type {Long}\n */\n this.transactionVerification = props.transactionVerification;\n\n /*\n * The price of RAM consumed by a transaction, measured in byte-hours\n *\n * @type {Long}\n */\n this.transactionRamByteHour = props.transactionRamByteHour;\n\n /*\n * The price of storage consumed by a transaction, measured in byte-hours\n *\n * @type {Long}\n */\n this.transactionStorageByteHour = props.transactionStorageByteHour;\n\n /*\n * The price of computation for a smart contract transaction, measured in gas\n *\n * @type {Long}\n */\n this.contractTransactionGas = props.contractTransactionGas;\n\n /*\n * The price per hbar transferred for a transfer\n *\n * @type {Long}\n */\n this.transferVolumeHbar = props.transferVolumeHbar;\n\n /*\n * The price of bandwidth for data retrieved from memory for a response, measured in bytes\n *\n * @type {Long}\n */\n this.responseMemoryByte = props.responseMemoryByte;\n\n /*\n * The price of bandwidth for data retrieved from disk for a response, measured in bytes\n *\n * @type {Long}\n */\n this.responseDiskByte = props.responseDiskByte;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeComponents}\n */\n static fromBytes(bytes) {\n return FeeComponents._fromProtobuf(\n HieroProto.proto.FeeComponents.decode(bytes),\n );\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IFeeComponents} feeComponents\n * @returns {FeeComponents}\n */\n static _fromProtobuf(feeComponents) {\n return new FeeComponents({\n min: feeComponents.min != null ? feeComponents.min : undefined,\n max: feeComponents.max != null ? feeComponents.max : undefined,\n constant:\n feeComponents.constant != null\n ? feeComponents.constant\n : undefined,\n transactionBandwidthByte:\n feeComponents.bpt != null ? feeComponents.bpt : undefined,\n transactionVerification:\n feeComponents.vpt != null ? feeComponents.vpt : undefined,\n transactionRamByteHour:\n feeComponents.rbh != null ? feeComponents.rbh : undefined,\n transactionStorageByteHour:\n feeComponents.sbh != null ? feeComponents.sbh : undefined,\n contractTransactionGas:\n feeComponents.gas != null ? feeComponents.gas : undefined,\n transferVolumeHbar:\n feeComponents.tv != null ? feeComponents.tv : undefined,\n responseMemoryByte:\n feeComponents.bpr != null ? feeComponents.bpr : undefined,\n responseDiskByte:\n feeComponents.sbpr != null ? feeComponents.sbpr : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IFeeComponents}\n */\n _toProtobuf() {\n return {\n min: this.min != null ? this.min : undefined,\n max: this.max != null ? this.max : undefined,\n constant: this.constant != null ? this.constant : undefined,\n bpt:\n this.transactionBandwidthByte != null\n ? this.transactionBandwidthByte\n : undefined,\n vpt:\n this.transactionVerification != null\n ? this.transactionVerification\n : undefined,\n rbh:\n this.transactionRamByteHour != null\n ? this.transactionRamByteHour\n : undefined,\n sbh:\n this.transactionStorageByteHour != null\n ? this.transactionStorageByteHour\n : undefined,\n gas:\n this.contractTransactionGas != null\n ? this.contractTransactionGas\n : undefined,\n tv:\n this.transferVolumeHbar != null\n ? this.transferVolumeHbar\n : undefined,\n bpr:\n this.responseMemoryByte != null\n ? this.responseMemoryByte\n : undefined,\n sbpr:\n this.responseDiskByte != null\n ? this.responseDiskByte\n : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.FeeComponents.encode(\n this._toProtobuf(),\n ).finish();\n }\n}\n"],"names":["FeeComponents","constructor","props","this","min","max","constant","transactionBandwidthByte","transactionVerification","transactionRamByteHour","transactionStorageByteHour","contractTransactionGas","transferVolumeHbar","responseMemoryByte","responseDiskByte","fromBytes","bytes","_fromProtobuf","HieroProto","proto","decode","feeComponents","undefined","bpt","vpt","rbh","sbh","gas","tv","bpr","sbpr","_toProtobuf","toBytes","encode","finish"],"mappings":"mDAUe,MAAMA,EAejB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,IAAMF,EAAME,IAOjBD,KAAKE,IAAMH,EAAMG,IAOjBF,KAAKG,SAAWJ,EAAMI,SAOtBH,KAAKI,yBAA2BL,EAAMK,yBAOtCJ,KAAKK,wBAA0BN,EAAMM,wBAOrCL,KAAKM,uBAAyBP,EAAMO,uBAOpCN,KAAKO,2BAA6BR,EAAMQ,2BAOxCP,KAAKQ,uBAAyBT,EAAMS,uBAOpCR,KAAKS,mBAAqBV,EAAMU,mBAOhCT,KAAKU,mBAAqBX,EAAMW,mBAOhCV,KAAKW,iBAAmBZ,EAAMY,gBACtC,CAMI,gBAAOC,CAAUC,GACb,OAAOhB,EAAciB,cACjBC,EAAWC,MAAMnB,cAAcoB,OAAOJ,GAElD,CAOI,oBAAOC,CAAcI,GACjB,OAAO,IAAIrB,EAAc,CACrBI,IAA0B,MAArBiB,EAAcjB,IAAciB,EAAcjB,SAAMkB,EACrDjB,IAA0B,MAArBgB,EAAchB,IAAcgB,EAAchB,SAAMiB,EACrDhB,SAC8B,MAA1Be,EAAcf,SACRe,EAAcf,cACdgB,EACVf,yBACyB,MAArBc,EAAcE,IAAcF,EAAcE,SAAMD,EACpDd,wBACyB,MAArBa,EAAcG,IAAcH,EAAcG,SAAMF,EACpDb,uBACyB,MAArBY,EAAcI,IAAcJ,EAAcI,SAAMH,EACpDZ,2BACyB,MAArBW,EAAcK,IAAcL,EAAcK,SAAMJ,EACpDX,uBACyB,MAArBU,EAAcM,IAAcN,EAAcM,SAAML,EACpDV,mBACwB,MAApBS,EAAcO,GAAaP,EAAcO,QAAKN,EAClDT,mBACyB,MAArBQ,EAAcQ,IAAcR,EAAcQ,SAAMP,EACpDR,iBAC0B,MAAtBO,EAAcS,KAAeT,EAAcS,UAAOR,GAElE,CAMI,WAAAS,GACI,MAAO,CACH3B,IAAiB,MAAZD,KAAKC,IAAcD,KAAKC,SAAMkB,EACnCjB,IAAiB,MAAZF,KAAKE,IAAcF,KAAKE,SAAMiB,EACnChB,SAA2B,MAAjBH,KAAKG,SAAmBH,KAAKG,cAAWgB,EAClDC,IACqC,MAAjCpB,KAAKI,yBACCJ,KAAKI,8BACLe,EACVE,IACoC,MAAhCrB,KAAKK,wBACCL,KAAKK,6BACLc,EACVG,IACmC,MAA/BtB,KAAKM,uBACCN,KAAKM,4BACLa,EACVI,IACuC,MAAnCvB,KAAKO,2BACCP,KAAKO,gCACLY,EACVK,IACmC,MAA/BxB,KAAKQ,uBACCR,KAAKQ,4BACLW,EACVM,GAC+B,MAA3BzB,KAAKS,mBACCT,KAAKS,wBACLU,EACVO,IAC+B,MAA3B1B,KAAKU,mBACCV,KAAKU,wBACLS,EACVQ,KAC6B,MAAzB3B,KAAKW,iBACCX,KAAKW,sBACLQ,EAEtB,CAKI,OAAAU,GACI,OAAOd,EAAWC,MAAMnB,cAAciC,OAClC9B,KAAK4B,eACPG,QACV"}
package/lib/FeeData.cjs CHANGED
@@ -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 _FeeComponents = _interopRequireDefault(require("./FeeComponents.cjs"));
9
9
  var _FeeDataType = _interopRequireDefault(require("./FeeDataType.cjs"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
package/lib/FeeData.d.ts CHANGED
@@ -55,4 +55,4 @@ export default class FeeData {
55
55
  }
56
56
  import FeeComponents from "./FeeComponents.js";
57
57
  import FeeDataType from "./FeeDataType.js";
58
- import * as HieroProto from "@hashgraph/proto";
58
+ import * as HieroProto from "@hiero-ledger/proto";
package/lib/FeeData.js CHANGED
@@ -1,2 +1,2 @@
1
- import*as t from"@hashgraph/proto";import o from"./FeeComponents.js";import e from"./FeeDataType.js";class a{constructor(t={}){this.nodedata=t.nodedata,this.networkdata=t.networkdata,this.servicedata=t.servicedata,this.feeDataType=t.feeDataType}static fromBytes(o){return a._fromProtobuf(t.proto.FeeData.decode(o))}static _fromProtobuf(t){return new a({nodedata:null!=t.nodedata?o._fromProtobuf(t.nodedata):void 0,networkdata:null!=t.networkdata?o._fromProtobuf(t.networkdata):void 0,servicedata:null!=t.servicedata?o._fromProtobuf(t.servicedata):void 0,feeDataType:null!=t.subType?e._fromCode(t.subType):void 0})}_toProtobuf(){return{nodedata:null!=this.nodedata?this.nodedata._toProtobuf():void 0,networkdata:null!=this.networkdata?this.networkdata._toProtobuf():void 0,servicedata:null!=this.servicedata?this.servicedata._toProtobuf():void 0,subType:null!=this.feeDataType?this.feeDataType.valueOf():void 0}}toBytes(){return t.proto.FeeData.encode(this._toProtobuf()).finish()}}export{a as default};
1
+ import*as t from"@hiero-ledger/proto";import e from"./FeeComponents.js";import o from"./FeeDataType.js";class a{constructor(t={}){this.nodedata=t.nodedata,this.networkdata=t.networkdata,this.servicedata=t.servicedata,this.feeDataType=t.feeDataType}static fromBytes(e){return a._fromProtobuf(t.proto.FeeData.decode(e))}static _fromProtobuf(t){return new a({nodedata:null!=t.nodedata?e._fromProtobuf(t.nodedata):void 0,networkdata:null!=t.networkdata?e._fromProtobuf(t.networkdata):void 0,servicedata:null!=t.servicedata?e._fromProtobuf(t.servicedata):void 0,feeDataType:null!=t.subType?o._fromCode(t.subType):void 0})}_toProtobuf(){return{nodedata:null!=this.nodedata?this.nodedata._toProtobuf():void 0,networkdata:null!=this.networkdata?this.networkdata._toProtobuf():void 0,servicedata:null!=this.servicedata?this.servicedata._toProtobuf():void 0,subType:null!=this.feeDataType?this.feeDataType.valueOf():void 0}}toBytes(){return t.proto.FeeData.encode(this._toProtobuf()).finish()}}export{a as default};
2
2
  //# sourceMappingURL=FeeData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeeData.js","sources":["../src/FeeData.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hashgraph/proto\";\nimport FeeComponents from \"./FeeComponents.js\";\nimport FeeDataType from \"./FeeDataType.js\";\n\n/**\n * A total fee, in component amounts charged for a transaction.\n *\n * Total fees are composed of three sets of components.\n * - Node data, components that compensate the specific node that submitted\n * the transaction.\n * - Network data, components that compensate the Hedera network for gossiping\n * the transaction and determining the consensus timestamp.\n * - Service data, components that compensate the Hedera network for the ongoing\n * maintenance and operation of the network, as well as ongoing development\n * of network services.\n *\n * Fee components are recorded in thousandths of a tiny cent, and the network\n * exchange rate converts these to tinybar amounts, which are what the network\n * charges for transactions and what the network reports in the record stream.\n */\nexport default class FeeData {\n /**\n * @param {object} [props]\n * @param {FeeComponents} [props.nodedata]\n * @param {FeeComponents} [props.networkdata]\n * @param {FeeComponents} [props.servicedata]\n * @param {FeeDataType} [props.feeDataType]\n */\n constructor(props = {}) {\n /*\n * Fee paid to the submitting node\n *\n * @type {FeeComponents}\n */\n this.nodedata = props.nodedata;\n\n /*\n * Fee paid to the network for processing a transaction into consensus\n *\n * @type {FeeComponents}\n */\n this.networkdata = props.networkdata;\n\n /*\n * Fee paid to the network for providing the service associated with the transaction; for instance, storing a file\n *\n * @type {FeeComponents}\n */\n this.servicedata = props.servicedata;\n\n /*\n * SubType distinguishing between different types of FeeData, correlating to the same HederaFunctionality\n *\n * @type {SubType}\n */\n this.feeDataType = props.feeDataType;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeData}\n */\n static fromBytes(bytes) {\n return FeeData._fromProtobuf(HieroProto.proto.FeeData.decode(bytes));\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IFeeData} feeData\n * @returns {FeeData}\n */\n static _fromProtobuf(feeData) {\n return new FeeData({\n nodedata:\n feeData.nodedata != null\n ? FeeComponents._fromProtobuf(feeData.nodedata)\n : undefined,\n networkdata:\n feeData.networkdata != null\n ? FeeComponents._fromProtobuf(feeData.networkdata)\n : undefined,\n servicedata:\n feeData.servicedata != null\n ? FeeComponents._fromProtobuf(feeData.servicedata)\n : undefined,\n feeDataType:\n feeData.subType != null\n ? FeeDataType._fromCode(feeData.subType)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IFeeData}\n */\n _toProtobuf() {\n return {\n nodedata:\n this.nodedata != null ? this.nodedata._toProtobuf() : undefined,\n\n networkdata:\n this.networkdata != null\n ? this.networkdata._toProtobuf()\n : undefined,\n\n servicedata:\n this.servicedata != null\n ? this.servicedata._toProtobuf()\n : undefined,\n\n subType:\n this.feeDataType != null\n ? this.feeDataType.valueOf()\n : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.FeeData.encode(this._toProtobuf()).finish();\n }\n}\n"],"names":["FeeData","constructor","props","this","nodedata","networkdata","servicedata","feeDataType","fromBytes","bytes","_fromProtobuf","HieroProto","proto","decode","feeData","FeeComponents","undefined","subType","FeeDataType","_fromCode","_toProtobuf","valueOf","toBytes","encode","finish"],"mappings":"qGAsBe,MAAMA,EAQjB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,SAAWF,EAAME,SAOtBD,KAAKE,YAAcH,EAAMG,YAOzBF,KAAKG,YAAcJ,EAAMI,YAOzBH,KAAKI,YAAcL,EAAMK,WACjC,CAMI,gBAAOC,CAAUC,GACb,OAAOT,EAAQU,cAAcC,EAAWC,MAAMZ,QAAQa,OAAOJ,GACrE,CAOI,oBAAOC,CAAcI,GACjB,OAAO,IAAId,EAAQ,CACfI,SACwB,MAApBU,EAAQV,SACFW,EAAcL,cAAcI,EAAQV,eACpCY,EACVX,YAC2B,MAAvBS,EAAQT,YACFU,EAAcL,cAAcI,EAAQT,kBACpCW,EACVV,YAC2B,MAAvBQ,EAAQR,YACFS,EAAcL,cAAcI,EAAQR,kBACpCU,EACVT,YACuB,MAAnBO,EAAQG,QACFC,EAAYC,UAAUL,EAAQG,cAC9BD,GAEtB,CAMI,WAAAI,GACI,MAAO,CACHhB,SACqB,MAAjBD,KAAKC,SAAmBD,KAAKC,SAASgB,mBAAgBJ,EAE1DX,YACwB,MAApBF,KAAKE,YACCF,KAAKE,YAAYe,mBACjBJ,EAEVV,YACwB,MAApBH,KAAKG,YACCH,KAAKG,YAAYc,mBACjBJ,EAEVC,QACwB,MAApBd,KAAKI,YACCJ,KAAKI,YAAYc,eACjBL,EAEtB,CAKI,OAAAM,GACI,OAAOX,EAAWC,MAAMZ,QAAQuB,OAAOpB,KAAKiB,eAAeI,QACnE"}
1
+ {"version":3,"file":"FeeData.js","sources":["../src/FeeData.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hiero-ledger/proto\";\nimport FeeComponents from \"./FeeComponents.js\";\nimport FeeDataType from \"./FeeDataType.js\";\n\n/**\n * A total fee, in component amounts charged for a transaction.\n *\n * Total fees are composed of three sets of components.\n * - Node data, components that compensate the specific node that submitted\n * the transaction.\n * - Network data, components that compensate the Hedera network for gossiping\n * the transaction and determining the consensus timestamp.\n * - Service data, components that compensate the Hedera network for the ongoing\n * maintenance and operation of the network, as well as ongoing development\n * of network services.\n *\n * Fee components are recorded in thousandths of a tiny cent, and the network\n * exchange rate converts these to tinybar amounts, which are what the network\n * charges for transactions and what the network reports in the record stream.\n */\nexport default class FeeData {\n /**\n * @param {object} [props]\n * @param {FeeComponents} [props.nodedata]\n * @param {FeeComponents} [props.networkdata]\n * @param {FeeComponents} [props.servicedata]\n * @param {FeeDataType} [props.feeDataType]\n */\n constructor(props = {}) {\n /*\n * Fee paid to the submitting node\n *\n * @type {FeeComponents}\n */\n this.nodedata = props.nodedata;\n\n /*\n * Fee paid to the network for processing a transaction into consensus\n *\n * @type {FeeComponents}\n */\n this.networkdata = props.networkdata;\n\n /*\n * Fee paid to the network for providing the service associated with the transaction; for instance, storing a file\n *\n * @type {FeeComponents}\n */\n this.servicedata = props.servicedata;\n\n /*\n * SubType distinguishing between different types of FeeData, correlating to the same HederaFunctionality\n *\n * @type {SubType}\n */\n this.feeDataType = props.feeDataType;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeData}\n */\n static fromBytes(bytes) {\n return FeeData._fromProtobuf(HieroProto.proto.FeeData.decode(bytes));\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IFeeData} feeData\n * @returns {FeeData}\n */\n static _fromProtobuf(feeData) {\n return new FeeData({\n nodedata:\n feeData.nodedata != null\n ? FeeComponents._fromProtobuf(feeData.nodedata)\n : undefined,\n networkdata:\n feeData.networkdata != null\n ? FeeComponents._fromProtobuf(feeData.networkdata)\n : undefined,\n servicedata:\n feeData.servicedata != null\n ? FeeComponents._fromProtobuf(feeData.servicedata)\n : undefined,\n feeDataType:\n feeData.subType != null\n ? FeeDataType._fromCode(feeData.subType)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IFeeData}\n */\n _toProtobuf() {\n return {\n nodedata:\n this.nodedata != null ? this.nodedata._toProtobuf() : undefined,\n\n networkdata:\n this.networkdata != null\n ? this.networkdata._toProtobuf()\n : undefined,\n\n servicedata:\n this.servicedata != null\n ? this.servicedata._toProtobuf()\n : undefined,\n\n subType:\n this.feeDataType != null\n ? this.feeDataType.valueOf()\n : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.FeeData.encode(this._toProtobuf()).finish();\n }\n}\n"],"names":["FeeData","constructor","props","this","nodedata","networkdata","servicedata","feeDataType","fromBytes","bytes","_fromProtobuf","HieroProto","proto","decode","feeData","FeeComponents","undefined","subType","FeeDataType","_fromCode","_toProtobuf","valueOf","toBytes","encode","finish"],"mappings":"wGAsBe,MAAMA,EAQjB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,SAAWF,EAAME,SAOtBD,KAAKE,YAAcH,EAAMG,YAOzBF,KAAKG,YAAcJ,EAAMI,YAOzBH,KAAKI,YAAcL,EAAMK,WACjC,CAMI,gBAAOC,CAAUC,GACb,OAAOT,EAAQU,cAAcC,EAAWC,MAAMZ,QAAQa,OAAOJ,GACrE,CAOI,oBAAOC,CAAcI,GACjB,OAAO,IAAId,EAAQ,CACfI,SACwB,MAApBU,EAAQV,SACFW,EAAcL,cAAcI,EAAQV,eACpCY,EACVX,YAC2B,MAAvBS,EAAQT,YACFU,EAAcL,cAAcI,EAAQT,kBACpCW,EACVV,YAC2B,MAAvBQ,EAAQR,YACFS,EAAcL,cAAcI,EAAQR,kBACpCU,EACVT,YACuB,MAAnBO,EAAQG,QACFC,EAAYC,UAAUL,EAAQG,cAC9BD,GAEtB,CAMI,WAAAI,GACI,MAAO,CACHhB,SACqB,MAAjBD,KAAKC,SAAmBD,KAAKC,SAASgB,mBAAgBJ,EAE1DX,YACwB,MAApBF,KAAKE,YACCF,KAAKE,YAAYe,mBACjBJ,EAEVV,YACwB,MAApBH,KAAKG,YACCH,KAAKG,YAAYc,mBACjBJ,EAEVC,QACwB,MAApBd,KAAKI,YACCJ,KAAKI,YAAYc,eACjBL,EAEtB,CAKI,OAAAM,GACI,OAAOX,EAAWC,MAAMZ,QAAQuB,OAAOpB,KAAKiB,eAAeI,QACnE"}
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
 
9
9
  /**
10
10
  * @namespace proto
11
- * @typedef {import("@hashgraph/proto").proto.SubType} HieroProto.proto.SubType
11
+ * @typedef {import("@hiero-ledger/proto").proto.SubType} HieroProto.proto.SubType
12
12
  */
13
13
 
14
14
  class FeeDataType {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.SubType} HieroProto.proto.SubType
3
+ * @typedef {import("@hiero-ledger/proto").proto.SubType} HieroProto.proto.SubType
4
4
  */
5
5
  declare class FeeDataType {
6
6
  /**
@@ -39,6 +39,6 @@ declare namespace FeeDataType {
39
39
  export default FeeDataType;
40
40
  export namespace HieroProto {
41
41
  namespace proto {
42
- type SubType = import("@hashgraph/proto").proto.SubType;
42
+ type SubType = import("@hiero-ledger/proto").proto.SubType;
43
43
  }
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FeeDataType.js","sources":["../src/FeeDataType.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.SubType} HieroProto.proto.SubType\n */\n\nexport default class FeeDataType {\n /**\n * @hideconstructor\n * @internal\n * @param {number} code\n */\n constructor(code) {\n /** @readonly */\n this._code = code;\n\n Object.freeze(this);\n }\n\n /**\n * @returns {string}\n */\n toString() {\n switch (this) {\n case FeeDataType.Default:\n return \"DEFAULT\";\n case FeeDataType.TokenFungibleCommon:\n return \"TOKEN_FUNGIBLE_COMMON\";\n case FeeDataType.TokenNonFungibleUnique:\n return \"TOKEN_NON_FUNGIBLE_UNIQUE\";\n case FeeDataType.TokenFungibleCommonWithCustomFees:\n return \"TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES\";\n case FeeDataType.TokenNonFungibleUniqueWithCustomFees:\n return \"TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES\";\n case FeeDataType.ScheduleCreateContractCall:\n return \"SCHEDULE_CREATE_CONTRACT_CALL\";\n case FeeDataType.TopicCreateWithCustomFees:\n return \"TOPIC_CREATE_WITH_CUSTOM_FEES\";\n case FeeDataType.SubmitMessageWithCustomFees:\n return \"SUBMIT_MESSAGE_WITH_CUSTOM_FEES\";\n default:\n return `UNKNOWN (${this._code})`;\n }\n }\n\n /**\n * @internal\n * @param {number} code\n * @returns {FeeDataType}\n */\n static _fromCode(code) {\n switch (code) {\n case 0:\n return FeeDataType.Default;\n case 1:\n return FeeDataType.TokenFungibleCommon;\n case 2:\n return FeeDataType.TokenNonFungibleUnique;\n case 3:\n return FeeDataType.TokenFungibleCommonWithCustomFees;\n case 4:\n return FeeDataType.TokenNonFungibleUniqueWithCustomFees;\n case 5:\n return FeeDataType.ScheduleCreateContractCall;\n case 6:\n return FeeDataType.TopicCreateWithCustomFees;\n case 7:\n return FeeDataType.SubmitMessageWithCustomFees;\n }\n\n throw new Error(\n `(BUG) SubType.fromCode() does not handle code: ${code}`,\n );\n }\n\n /**\n * @returns {HieroProto.proto.SubType}\n */\n valueOf() {\n return this._code;\n }\n}\n\n/**\n * The resource prices have no special scope\n */\nFeeDataType.Default = new FeeDataType(0);\n\n/**\n * The resource prices are scoped to an operation on a fungible common token\n */\nFeeDataType.TokenFungibleCommon = new FeeDataType(1);\n\n/**\n * The resource prices are scoped to an operation on a non-fungible unique token\n */\nFeeDataType.TokenNonFungibleUnique = new FeeDataType(2);\n\n/**\n * The resource prices are scoped to an operation on a fungible common token with a custom fee schedule\n */\nFeeDataType.TokenFungibleCommonWithCustomFees = new FeeDataType(3);\n\n/**\n * The resource prices are scoped to an operation on a non-fungible unique token with a custom fee schedule\n */\nFeeDataType.TokenNonFungibleUniqueWithCustomFees = new FeeDataType(4);\n\n/**\n * The resource prices are scoped to a ScheduleCreate containing a ContractCall.\n */\nFeeDataType.ScheduleCreateContractCall = new FeeDataType(5);\n\n/**\n * The resource cost for the transaction type includes a TopicCreate\n * with custom fees.\n */\nFeeDataType.TopicCreateWithCustomFees = new FeeDataType(6);\n\n/**\n * The resource cost for the transaction type includes a ConsensusSubmitMessage\n * for a topic with custom fees.\n */\nFeeDataType.SubmitMessageWithCustomFees = new FeeDataType(7);\n"],"names":["FeeDataType","constructor","code","this","_code","Object","freeze","toString","Default","TokenFungibleCommon","TokenNonFungibleUnique","TokenFungibleCommonWithCustomFees","TokenNonFungibleUniqueWithCustomFees","ScheduleCreateContractCall","TopicCreateWithCustomFees","SubmitMessageWithCustomFees","_fromCode","Error","valueOf"],"mappings":"AAOe,MAAMA,EAMjB,WAAAC,CAAYC,GAERC,KAAKC,MAAQF,EAEbG,OAAOC,OAAOH,KACtB,CAKI,QAAAI,GACI,OAAQJ,MACJ,KAAKH,EAAYQ,QACb,MAAO,UACX,KAAKR,EAAYS,oBACb,MAAO,wBACX,KAAKT,EAAYU,uBACb,MAAO,4BACX,KAAKV,EAAYW,kCACb,MAAO,yCACX,KAAKX,EAAYY,qCACb,MAAO,6CACX,KAAKZ,EAAYa,2BACb,MAAO,gCACX,KAAKb,EAAYc,0BACb,MAAO,gCACX,KAAKd,EAAYe,4BACb,MAAO,kCACX,QACI,MAAO,YAAYZ,KAAKC,SAExC,CAOI,gBAAOY,CAAUd,GACb,OAAQA,GACJ,KAAK,EACD,OAAOF,EAAYQ,QACvB,KAAK,EACD,OAAOR,EAAYS,oBACvB,KAAK,EACD,OAAOT,EAAYU,uBACvB,KAAK,EACD,OAAOV,EAAYW,kCACvB,KAAK,EACD,OAAOX,EAAYY,qCACvB,KAAK,EACD,OAAOZ,EAAYa,2BACvB,KAAK,EACD,OAAOb,EAAYc,0BACvB,KAAK,EACD,OAAOd,EAAYe,4BAG3B,MAAM,IAAIE,MACN,kDAAkDf,IAE9D,CAKI,OAAAgB,GACI,OAAOf,KAAKC,KACpB,EAMAJ,EAAYQ,QAAU,IAAIR,EAAY,GAKtCA,EAAYS,oBAAsB,IAAIT,EAAY,GAKlDA,EAAYU,uBAAyB,IAAIV,EAAY,GAKrDA,EAAYW,kCAAoC,IAAIX,EAAY,GAKhEA,EAAYY,qCAAuC,IAAIZ,EAAY,GAKnEA,EAAYa,2BAA6B,IAAIb,EAAY,GAMzDA,EAAYc,0BAA4B,IAAId,EAAY,GAMxDA,EAAYe,4BAA8B,IAAIf,EAAY"}
1
+ {"version":3,"file":"FeeDataType.js","sources":["../src/FeeDataType.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.SubType} HieroProto.proto.SubType\n */\n\nexport default class FeeDataType {\n /**\n * @hideconstructor\n * @internal\n * @param {number} code\n */\n constructor(code) {\n /** @readonly */\n this._code = code;\n\n Object.freeze(this);\n }\n\n /**\n * @returns {string}\n */\n toString() {\n switch (this) {\n case FeeDataType.Default:\n return \"DEFAULT\";\n case FeeDataType.TokenFungibleCommon:\n return \"TOKEN_FUNGIBLE_COMMON\";\n case FeeDataType.TokenNonFungibleUnique:\n return \"TOKEN_NON_FUNGIBLE_UNIQUE\";\n case FeeDataType.TokenFungibleCommonWithCustomFees:\n return \"TOKEN_FUNGIBLE_COMMON_WITH_CUSTOM_FEES\";\n case FeeDataType.TokenNonFungibleUniqueWithCustomFees:\n return \"TOKEN_NON_FUNGIBLE_UNIQUE_WITH_CUSTOM_FEES\";\n case FeeDataType.ScheduleCreateContractCall:\n return \"SCHEDULE_CREATE_CONTRACT_CALL\";\n case FeeDataType.TopicCreateWithCustomFees:\n return \"TOPIC_CREATE_WITH_CUSTOM_FEES\";\n case FeeDataType.SubmitMessageWithCustomFees:\n return \"SUBMIT_MESSAGE_WITH_CUSTOM_FEES\";\n default:\n return `UNKNOWN (${this._code})`;\n }\n }\n\n /**\n * @internal\n * @param {number} code\n * @returns {FeeDataType}\n */\n static _fromCode(code) {\n switch (code) {\n case 0:\n return FeeDataType.Default;\n case 1:\n return FeeDataType.TokenFungibleCommon;\n case 2:\n return FeeDataType.TokenNonFungibleUnique;\n case 3:\n return FeeDataType.TokenFungibleCommonWithCustomFees;\n case 4:\n return FeeDataType.TokenNonFungibleUniqueWithCustomFees;\n case 5:\n return FeeDataType.ScheduleCreateContractCall;\n case 6:\n return FeeDataType.TopicCreateWithCustomFees;\n case 7:\n return FeeDataType.SubmitMessageWithCustomFees;\n }\n\n throw new Error(\n `(BUG) SubType.fromCode() does not handle code: ${code}`,\n );\n }\n\n /**\n * @returns {HieroProto.proto.SubType}\n */\n valueOf() {\n return this._code;\n }\n}\n\n/**\n * The resource prices have no special scope\n */\nFeeDataType.Default = new FeeDataType(0);\n\n/**\n * The resource prices are scoped to an operation on a fungible common token\n */\nFeeDataType.TokenFungibleCommon = new FeeDataType(1);\n\n/**\n * The resource prices are scoped to an operation on a non-fungible unique token\n */\nFeeDataType.TokenNonFungibleUnique = new FeeDataType(2);\n\n/**\n * The resource prices are scoped to an operation on a fungible common token with a custom fee schedule\n */\nFeeDataType.TokenFungibleCommonWithCustomFees = new FeeDataType(3);\n\n/**\n * The resource prices are scoped to an operation on a non-fungible unique token with a custom fee schedule\n */\nFeeDataType.TokenNonFungibleUniqueWithCustomFees = new FeeDataType(4);\n\n/**\n * The resource prices are scoped to a ScheduleCreate containing a ContractCall.\n */\nFeeDataType.ScheduleCreateContractCall = new FeeDataType(5);\n\n/**\n * The resource cost for the transaction type includes a TopicCreate\n * with custom fees.\n */\nFeeDataType.TopicCreateWithCustomFees = new FeeDataType(6);\n\n/**\n * The resource cost for the transaction type includes a ConsensusSubmitMessage\n * for a topic with custom fees.\n */\nFeeDataType.SubmitMessageWithCustomFees = new FeeDataType(7);\n"],"names":["FeeDataType","constructor","code","this","_code","Object","freeze","toString","Default","TokenFungibleCommon","TokenNonFungibleUnique","TokenFungibleCommonWithCustomFees","TokenNonFungibleUniqueWithCustomFees","ScheduleCreateContractCall","TopicCreateWithCustomFees","SubmitMessageWithCustomFees","_fromCode","Error","valueOf"],"mappings":"AAOe,MAAMA,EAMjB,WAAAC,CAAYC,GAERC,KAAKC,MAAQF,EAEbG,OAAOC,OAAOH,KACtB,CAKI,QAAAI,GACI,OAAQJ,MACJ,KAAKH,EAAYQ,QACb,MAAO,UACX,KAAKR,EAAYS,oBACb,MAAO,wBACX,KAAKT,EAAYU,uBACb,MAAO,4BACX,KAAKV,EAAYW,kCACb,MAAO,yCACX,KAAKX,EAAYY,qCACb,MAAO,6CACX,KAAKZ,EAAYa,2BACb,MAAO,gCACX,KAAKb,EAAYc,0BACb,MAAO,gCACX,KAAKd,EAAYe,4BACb,MAAO,kCACX,QACI,MAAO,YAAYZ,KAAKC,SAExC,CAOI,gBAAOY,CAAUd,GACb,OAAQA,GACJ,KAAK,EACD,OAAOF,EAAYQ,QACvB,KAAK,EACD,OAAOR,EAAYS,oBACvB,KAAK,EACD,OAAOT,EAAYU,uBACvB,KAAK,EACD,OAAOV,EAAYW,kCACvB,KAAK,EACD,OAAOX,EAAYY,qCACvB,KAAK,EACD,OAAOZ,EAAYa,2BACvB,KAAK,EACD,OAAOb,EAAYc,0BACvB,KAAK,EACD,OAAOd,EAAYe,4BAG3B,MAAM,IAAIE,MACN,kDAAkDf,IAE9D,CAKI,OAAAgB,GACI,OAAOf,KAAKC,KACpB,EAMAJ,EAAYQ,QAAU,IAAIR,EAAY,GAKtCA,EAAYS,oBAAsB,IAAIT,EAAY,GAKlDA,EAAYU,uBAAyB,IAAIV,EAAY,GAKrDA,EAAYW,kCAAoC,IAAIX,EAAY,GAKhEA,EAAYY,qCAAuC,IAAIZ,EAAY,GAKnEA,EAAYa,2BAA6B,IAAIb,EAAY,GAMzDA,EAAYc,0BAA4B,IAAId,EAAY,GAMxDA,EAAYe,4BAA8B,IAAIf,EAAY"}
@@ -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 _TransactionFeeSchedule = _interopRequireDefault(require("./TransactionFeeSchedule.cjs"));
9
9
  var _Timestamp = _interopRequireDefault(require("./Timestamp.cjs"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -37,4 +37,4 @@ export default class FeeSchedule {
37
37
  }
38
38
  import TransactionFeeSchedule from "./TransactionFeeSchedule.js";
39
39
  import Timestamp from "./Timestamp.js";
40
- import * as HieroProto from "@hashgraph/proto";
40
+ import * as HieroProto from "@hiero-ledger/proto";
@@ -1,2 +1,2 @@
1
- import*as e from"@hashgraph/proto";import t from"./TransactionFeeSchedule.js";import o from"./Timestamp.js";class r{constructor(e={}){this.transactionFeeSchedule=e.transactionFeeSchedule,this.expirationTime=e.expirationTime}static fromBytes(t){return r._fromProtobuf(e.proto.FeeSchedule.decode(t))}static _fromProtobuf(e){return new r({transactionFeeSchedule:null!=e.transactionFeeSchedule?e.transactionFeeSchedule.map(e=>t._fromProtobuf(e)):void 0,expirationTime:null!=e.expiryTime?o._fromProtobuf(e.expiryTime):void 0})}_toProtobuf(){return{transactionFeeSchedule:null!=this.transactionFeeSchedule?this.transactionFeeSchedule.map(e=>e._toProtobuf()):void 0,expiryTime:null!=this.expirationTime?this.expirationTime._toProtobuf():void 0}}toBytes(){return e.proto.FeeSchedule.encode(this._toProtobuf()).finish()}}export{r as default};
1
+ import*as e from"@hiero-ledger/proto";import t from"./TransactionFeeSchedule.js";import o from"./Timestamp.js";class r{constructor(e={}){this.transactionFeeSchedule=e.transactionFeeSchedule,this.expirationTime=e.expirationTime}static fromBytes(t){return r._fromProtobuf(e.proto.FeeSchedule.decode(t))}static _fromProtobuf(e){return new r({transactionFeeSchedule:null!=e.transactionFeeSchedule?e.transactionFeeSchedule.map(e=>t._fromProtobuf(e)):void 0,expirationTime:null!=e.expiryTime?o._fromProtobuf(e.expiryTime):void 0})}_toProtobuf(){return{transactionFeeSchedule:null!=this.transactionFeeSchedule?this.transactionFeeSchedule.map(e=>e._toProtobuf()):void 0,expiryTime:null!=this.expirationTime?this.expirationTime._toProtobuf():void 0}}toBytes(){return e.proto.FeeSchedule.encode(this._toProtobuf()).finish()}}export{r as default};
2
2
  //# sourceMappingURL=FeeSchedule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeeSchedule.js","sources":["../src/FeeSchedule.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hashgraph/proto\";\nimport TransactionFeeSchedule from \"./TransactionFeeSchedule.js\";\nimport Timestamp from \"./Timestamp.js\";\n\n/**\n * A set of fee schedules covering all transaction types and query types, along\n * with a specific time at which this fee schedule will expire.\n */\nexport default class FeeSchedule {\n /**\n * @param {object} [props]\n * @param {TransactionFeeSchedule[]} [props.transactionFeeSchedule]\n * @param {Timestamp} [props.expirationTime]\n */\n constructor(props = {}) {\n /*\n * List of price coefficients for network resources\n *\n * @type {TransactionFeeSchedule}\n */\n this.transactionFeeSchedule = props.transactionFeeSchedule;\n\n /*\n * FeeSchedule expiry time\n *\n * @type {Timestamp}\n */\n this.expirationTime = props.expirationTime;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeSchedule}\n */\n static fromBytes(bytes) {\n return FeeSchedule._fromProtobuf(\n HieroProto.proto.FeeSchedule.decode(bytes),\n );\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IFeeSchedule} feeSchedule\n * @returns {FeeSchedule}\n */\n static _fromProtobuf(feeSchedule) {\n return new FeeSchedule({\n transactionFeeSchedule:\n feeSchedule.transactionFeeSchedule != null\n ? feeSchedule.transactionFeeSchedule.map((schedule) =>\n TransactionFeeSchedule._fromProtobuf(schedule),\n )\n : undefined,\n expirationTime:\n feeSchedule.expiryTime != null\n ? Timestamp._fromProtobuf(feeSchedule.expiryTime)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IFeeSchedule}\n */\n _toProtobuf() {\n return {\n transactionFeeSchedule:\n this.transactionFeeSchedule != null\n ? this.transactionFeeSchedule.map((transaction) =>\n transaction._toProtobuf(),\n )\n : undefined,\n expiryTime:\n this.expirationTime != null\n ? this.expirationTime._toProtobuf()\n : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.FeeSchedule.encode(this._toProtobuf()).finish();\n }\n}\n"],"names":["FeeSchedule","constructor","props","this","transactionFeeSchedule","expirationTime","fromBytes","bytes","_fromProtobuf","HieroProto","proto","decode","feeSchedule","map","schedule","TransactionFeeSchedule","undefined","expiryTime","Timestamp","_toProtobuf","transaction","toBytes","encode","finish"],"mappings":"4GAUe,MAAMA,EAMjB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,uBAAyBF,EAAME,uBAOpCD,KAAKE,eAAiBH,EAAMG,cACpC,CAMI,gBAAOC,CAAUC,GACb,OAAOP,EAAYQ,cACfC,EAAWC,MAAMV,YAAYW,OAAOJ,GAEhD,CAOI,oBAAOC,CAAcI,GACjB,OAAO,IAAIZ,EAAY,CACnBI,uBAC0C,MAAtCQ,EAAYR,uBACNQ,EAAYR,uBAAuBS,IAAKC,GACpCC,EAAuBP,cAAcM,SAEzCE,EACVX,eAC8B,MAA1BO,EAAYK,WACNC,EAAUV,cAAcI,EAAYK,iBACpCD,GAEtB,CAMI,WAAAG,GACI,MAAO,CACHf,uBACmC,MAA/BD,KAAKC,uBACCD,KAAKC,uBAAuBS,IAAKO,GAC7BA,EAAYD,oBAEhBH,EACVC,WAC2B,MAAvBd,KAAKE,eACCF,KAAKE,eAAec,mBACpBH,EAEtB,CAKI,OAAAK,GACI,OAAOZ,EAAWC,MAAMV,YAAYsB,OAAOnB,KAAKgB,eAAeI,QACvE"}
1
+ {"version":3,"file":"FeeSchedule.js","sources":["../src/FeeSchedule.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hiero-ledger/proto\";\nimport TransactionFeeSchedule from \"./TransactionFeeSchedule.js\";\nimport Timestamp from \"./Timestamp.js\";\n\n/**\n * A set of fee schedules covering all transaction types and query types, along\n * with a specific time at which this fee schedule will expire.\n */\nexport default class FeeSchedule {\n /**\n * @param {object} [props]\n * @param {TransactionFeeSchedule[]} [props.transactionFeeSchedule]\n * @param {Timestamp} [props.expirationTime]\n */\n constructor(props = {}) {\n /*\n * List of price coefficients for network resources\n *\n * @type {TransactionFeeSchedule}\n */\n this.transactionFeeSchedule = props.transactionFeeSchedule;\n\n /*\n * FeeSchedule expiry time\n *\n * @type {Timestamp}\n */\n this.expirationTime = props.expirationTime;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeSchedule}\n */\n static fromBytes(bytes) {\n return FeeSchedule._fromProtobuf(\n HieroProto.proto.FeeSchedule.decode(bytes),\n );\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IFeeSchedule} feeSchedule\n * @returns {FeeSchedule}\n */\n static _fromProtobuf(feeSchedule) {\n return new FeeSchedule({\n transactionFeeSchedule:\n feeSchedule.transactionFeeSchedule != null\n ? feeSchedule.transactionFeeSchedule.map((schedule) =>\n TransactionFeeSchedule._fromProtobuf(schedule),\n )\n : undefined,\n expirationTime:\n feeSchedule.expiryTime != null\n ? Timestamp._fromProtobuf(feeSchedule.expiryTime)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.IFeeSchedule}\n */\n _toProtobuf() {\n return {\n transactionFeeSchedule:\n this.transactionFeeSchedule != null\n ? this.transactionFeeSchedule.map((transaction) =>\n transaction._toProtobuf(),\n )\n : undefined,\n expiryTime:\n this.expirationTime != null\n ? this.expirationTime._toProtobuf()\n : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.FeeSchedule.encode(this._toProtobuf()).finish();\n }\n}\n"],"names":["FeeSchedule","constructor","props","this","transactionFeeSchedule","expirationTime","fromBytes","bytes","_fromProtobuf","HieroProto","proto","decode","feeSchedule","map","schedule","TransactionFeeSchedule","undefined","expiryTime","Timestamp","_toProtobuf","transaction","toBytes","encode","finish"],"mappings":"+GAUe,MAAMA,EAMjB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,uBAAyBF,EAAME,uBAOpCD,KAAKE,eAAiBH,EAAMG,cACpC,CAMI,gBAAOC,CAAUC,GACb,OAAOP,EAAYQ,cACfC,EAAWC,MAAMV,YAAYW,OAAOJ,GAEhD,CAOI,oBAAOC,CAAcI,GACjB,OAAO,IAAIZ,EAAY,CACnBI,uBAC0C,MAAtCQ,EAAYR,uBACNQ,EAAYR,uBAAuBS,IAAKC,GACpCC,EAAuBP,cAAcM,SAEzCE,EACVX,eAC8B,MAA1BO,EAAYK,WACNC,EAAUV,cAAcI,EAAYK,iBACpCD,GAEtB,CAMI,WAAAG,GACI,MAAO,CACHf,uBACmC,MAA/BD,KAAKC,uBACCD,KAAKC,uBAAuBS,IAAKO,GAC7BA,EAAYD,oBAEhBH,EACVC,WAC2B,MAAvBd,KAAKE,eACCF,KAAKE,eAAec,mBACpBH,EAEtB,CAKI,OAAAK,GACI,OAAOZ,EAAWC,MAAMV,YAAYsB,OAAOnB,KAAKgB,eAAeI,QACvE"}
@@ -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 _FeeSchedule = _interopRequireDefault(require("./FeeSchedule.cjs"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -37,4 +37,4 @@ export default class FeeSchedules {
37
37
  toBytes(): Uint8Array;
38
38
  }
39
39
  import FeeSchedule from "./FeeSchedule.js";
40
- import * as HieroProto from "@hashgraph/proto";
40
+ import * as HieroProto from "@hiero-ledger/proto";
@@ -1,2 +1,2 @@
1
- import*as e from"@hashgraph/proto";import t from"./FeeSchedule.js";class r{constructor(e={}){this.current=e.currentFeeSchedule,this.next=e.nextFeeSchedule}static fromBytes(t){return r._fromProtobuf(e.proto.CurrentAndNextFeeSchedule.decode(t))}static _fromProtobuf(e){return new r({currentFeeSchedule:null!=e.currentFeeSchedule?t._fromProtobuf(e.currentFeeSchedule):void 0,nextFeeSchedule:null!=e.nextFeeSchedule?t._fromProtobuf(e.nextFeeSchedule):void 0})}_toProtobuf(){return{currentFeeSchedule:null!=this.current?this.current._toProtobuf():void 0,nextFeeSchedule:null!=this.next?this.next._toProtobuf():void 0}}toBytes(){return e.proto.CurrentAndNextFeeSchedule.encode(this._toProtobuf()).finish()}}export{r as default};
1
+ import*as e from"@hiero-ledger/proto";import t from"./FeeSchedule.js";class r{constructor(e={}){this.current=e.currentFeeSchedule,this.next=e.nextFeeSchedule}static fromBytes(t){return r._fromProtobuf(e.proto.CurrentAndNextFeeSchedule.decode(t))}static _fromProtobuf(e){return new r({currentFeeSchedule:null!=e.currentFeeSchedule?t._fromProtobuf(e.currentFeeSchedule):void 0,nextFeeSchedule:null!=e.nextFeeSchedule?t._fromProtobuf(e.nextFeeSchedule):void 0})}_toProtobuf(){return{currentFeeSchedule:null!=this.current?this.current._toProtobuf():void 0,nextFeeSchedule:null!=this.next?this.next._toProtobuf():void 0}}toBytes(){return e.proto.CurrentAndNextFeeSchedule.encode(this._toProtobuf()).finish()}}export{r as default};
2
2
  //# sourceMappingURL=FeeSchedules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeeSchedules.js","sources":["../src/FeeSchedules.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hashgraph/proto\";\nimport FeeSchedule from \"./FeeSchedule.js\";\n\n/**\n * Represents a pair of fee schedules on the Hedera network - the currently active fee schedule\n * and the next upcoming fee schedule. This structure allows for transparent fee updates by making\n * future fee changes visible before they take effect.\n */\nexport default class FeeSchedules {\n /**\n * @param {object} [props]\n * @param {FeeSchedule} [props.currentFeeSchedule]\n * @param {FeeSchedule} [props.nextFeeSchedule]\n */\n constructor(props = {}) {\n /*\n * Contains current Fee Schedule\n *\n * @type {FeeSchedule}\n */\n this.current = props.currentFeeSchedule;\n\n /*\n * Contains next Fee Schedule\n *\n * @type {FeeSchedule}\n */\n this.next = props.nextFeeSchedule;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeSchedules}\n */\n static fromBytes(bytes) {\n return FeeSchedules._fromProtobuf(\n HieroProto.proto.CurrentAndNextFeeSchedule.decode(bytes),\n );\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ICurrentAndNextFeeSchedule} feeSchedules\n * @returns {FeeSchedules}\n */\n static _fromProtobuf(feeSchedules) {\n return new FeeSchedules({\n currentFeeSchedule:\n feeSchedules.currentFeeSchedule != null\n ? FeeSchedule._fromProtobuf(feeSchedules.currentFeeSchedule)\n : undefined,\n nextFeeSchedule:\n feeSchedules.nextFeeSchedule != null\n ? FeeSchedule._fromProtobuf(feeSchedules.nextFeeSchedule)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.ICurrentAndNextFeeSchedule}\n */\n _toProtobuf() {\n return {\n currentFeeSchedule:\n this.current != null ? this.current._toProtobuf() : undefined,\n nextFeeSchedule:\n this.next != null ? this.next._toProtobuf() : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.CurrentAndNextFeeSchedule.encode(\n this._toProtobuf(),\n ).finish();\n }\n}\n"],"names":["FeeSchedules","constructor","props","this","current","currentFeeSchedule","next","nextFeeSchedule","fromBytes","bytes","_fromProtobuf","HieroProto","proto","CurrentAndNextFeeSchedule","decode","feeSchedules","FeeSchedule","undefined","_toProtobuf","toBytes","encode","finish"],"mappings":"mEAUe,MAAMA,EAMjB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,QAAUF,EAAMG,mBAOrBF,KAAKG,KAAOJ,EAAMK,eAC1B,CAMI,gBAAOC,CAAUC,GACb,OAAOT,EAAaU,cAChBC,EAAWC,MAAMC,0BAA0BC,OAAOL,GAE9D,CAOI,oBAAOC,CAAcK,GACjB,OAAO,IAAIf,EAAa,CACpBK,mBACuC,MAAnCU,EAAaV,mBACPW,EAAYN,cAAcK,EAAaV,yBACvCY,EACVV,gBACoC,MAAhCQ,EAAaR,gBACPS,EAAYN,cAAcK,EAAaR,sBACvCU,GAEtB,CAMI,WAAAC,GACI,MAAO,CACHb,mBACoB,MAAhBF,KAAKC,QAAkBD,KAAKC,QAAQc,mBAAgBD,EACxDV,gBACiB,MAAbJ,KAAKG,KAAeH,KAAKG,KAAKY,mBAAgBD,EAE9D,CAKI,OAAAE,GACI,OAAOR,EAAWC,MAAMC,0BAA0BO,OAC9CjB,KAAKe,eACPG,QACV"}
1
+ {"version":3,"file":"FeeSchedules.js","sources":["../src/FeeSchedules.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as HieroProto from \"@hiero-ledger/proto\";\nimport FeeSchedule from \"./FeeSchedule.js\";\n\n/**\n * Represents a pair of fee schedules on the Hedera network - the currently active fee schedule\n * and the next upcoming fee schedule. This structure allows for transparent fee updates by making\n * future fee changes visible before they take effect.\n */\nexport default class FeeSchedules {\n /**\n * @param {object} [props]\n * @param {FeeSchedule} [props.currentFeeSchedule]\n * @param {FeeSchedule} [props.nextFeeSchedule]\n */\n constructor(props = {}) {\n /*\n * Contains current Fee Schedule\n *\n * @type {FeeSchedule}\n */\n this.current = props.currentFeeSchedule;\n\n /*\n * Contains next Fee Schedule\n *\n * @type {FeeSchedule}\n */\n this.next = props.nextFeeSchedule;\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {FeeSchedules}\n */\n static fromBytes(bytes) {\n return FeeSchedules._fromProtobuf(\n HieroProto.proto.CurrentAndNextFeeSchedule.decode(bytes),\n );\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ICurrentAndNextFeeSchedule} feeSchedules\n * @returns {FeeSchedules}\n */\n static _fromProtobuf(feeSchedules) {\n return new FeeSchedules({\n currentFeeSchedule:\n feeSchedules.currentFeeSchedule != null\n ? FeeSchedule._fromProtobuf(feeSchedules.currentFeeSchedule)\n : undefined,\n nextFeeSchedule:\n feeSchedules.nextFeeSchedule != null\n ? FeeSchedule._fromProtobuf(feeSchedules.nextFeeSchedule)\n : undefined,\n });\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.ICurrentAndNextFeeSchedule}\n */\n _toProtobuf() {\n return {\n currentFeeSchedule:\n this.current != null ? this.current._toProtobuf() : undefined,\n nextFeeSchedule:\n this.next != null ? this.next._toProtobuf() : undefined,\n };\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.CurrentAndNextFeeSchedule.encode(\n this._toProtobuf(),\n ).finish();\n }\n}\n"],"names":["FeeSchedules","constructor","props","this","current","currentFeeSchedule","next","nextFeeSchedule","fromBytes","bytes","_fromProtobuf","HieroProto","proto","CurrentAndNextFeeSchedule","decode","feeSchedules","FeeSchedule","undefined","_toProtobuf","toBytes","encode","finish"],"mappings":"sEAUe,MAAMA,EAMjB,WAAAC,CAAYC,EAAQ,IAMhBC,KAAKC,QAAUF,EAAMG,mBAOrBF,KAAKG,KAAOJ,EAAMK,eAC1B,CAMI,gBAAOC,CAAUC,GACb,OAAOT,EAAaU,cAChBC,EAAWC,MAAMC,0BAA0BC,OAAOL,GAE9D,CAOI,oBAAOC,CAAcK,GACjB,OAAO,IAAIf,EAAa,CACpBK,mBACuC,MAAnCU,EAAaV,mBACPW,EAAYN,cAAcK,EAAaV,yBACvCY,EACVV,gBACoC,MAAhCQ,EAAaR,gBACPS,EAAYN,cAAcK,EAAaR,sBACvCU,GAEtB,CAMI,WAAAC,GACI,MAAO,CACHb,mBACoB,MAAhBF,KAAKC,QAAkBD,KAAKC,QAAQc,mBAAgBD,EACxDV,gBACiB,MAAbJ,KAAKG,KAAeH,KAAKG,KAAKY,mBAAgBD,EAE9D,CAKI,OAAAE,GACI,OAAOR,EAAWC,MAAMC,0BAA0BO,OAC9CjB,KAAKe,eACPG,QACV"}
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
 
9
9
  /**
10
10
  * @namespace proto
11
- * @typedef {import("@hashgraph/proto").proto.FreezeType} HieroProto.proto.FreezeType
11
+ * @typedef {import("@hiero-ledger/proto").proto.FreezeType} HieroProto.proto.FreezeType
12
12
  */
13
13
 
14
14
  class FreezeType {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.FreezeType} HieroProto.proto.FreezeType
3
+ * @typedef {import("@hiero-ledger/proto").proto.FreezeType} HieroProto.proto.FreezeType
4
4
  */
5
5
  declare class FreezeType {
6
6
  /**
@@ -37,6 +37,6 @@ declare namespace FreezeType {
37
37
  export default FreezeType;
38
38
  export namespace HieroProto {
39
39
  namespace proto {
40
- type FreezeType = import("@hashgraph/proto").proto.FreezeType;
40
+ type FreezeType = import("@hiero-ledger/proto").proto.FreezeType;
41
41
  }
42
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FreezeType.js","sources":["../src/FreezeType.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.FreezeType} HieroProto.proto.FreezeType\n */\n\nexport default class FreezeType {\n /**\n * @hideconstructor\n * @internal\n * @param {number} code\n */\n constructor(code) {\n /** @readonly */\n this._code = code;\n\n Object.freeze(this);\n }\n\n /**\n * @returns {string}\n */\n toString() {\n switch (this) {\n case FreezeType.UnknownFreezeType:\n return \"UNKNOWN_FREEZE_TYPE\";\n case FreezeType.FreezeOnly:\n return \"FREEZE_ONLY\";\n case FreezeType.PrepareUpgrade:\n return \"PREPARE_UPGRADE\";\n case FreezeType.FreezeUpgrade:\n return \"FREEZE_UPGRADE\";\n case FreezeType.FreezeAbort:\n return \"FREEZE_ABORT\";\n case FreezeType.TelemetryUpgrade:\n return \"TELEMETRY_UPGRADE\";\n default:\n return `UNKNOWN (${this._code})`;\n }\n }\n\n /**\n * @internal\n * @param {number} code\n * @returns {FreezeType}\n */\n static _fromCode(code) {\n switch (code) {\n case 0:\n return FreezeType.UnknownFreezeType;\n case 1:\n return FreezeType.FreezeOnly;\n case 2:\n return FreezeType.PrepareUpgrade;\n case 3:\n return FreezeType.FreezeUpgrade;\n case 4:\n return FreezeType.FreezeAbort;\n case 5:\n return FreezeType.TelemetryUpgrade;\n default:\n throw new Error(\n `(BUG) Status.fromCode() does not handle code: ${code}`,\n );\n }\n }\n\n /**\n * @returns {HieroProto.proto.FreezeType}\n */\n valueOf() {\n return this._code;\n }\n}\n\n/**\n * An (invalid) default value for this enum, to ensure the client explicitly sets\n * the intended type of freeze transaction.\n */\nFreezeType.UnknownFreezeType = new FreezeType(0);\n\n/**\n * Freezes the network at the specified time. The start_time field must be provided and\n * must reference a future time. Any values specified for the update_file and file_hash\n * fields will be ignored. This transaction does not perform any network changes or\n * upgrades and requires manual intervention to restart the network.\n */\nFreezeType.FreezeOnly = new FreezeType(1);\n\n/**\n * A non-freezing operation that initiates network wide preparation in advance of a\n * scheduled freeze upgrade. The update_file and file_hash fields must be provided and\n * valid. The start_time field may be omitted and any value present will be ignored.\n */\nFreezeType.PrepareUpgrade = new FreezeType(2);\n\n/**\n * Freezes the network at the specified time and performs the previously prepared\n * automatic upgrade across the entire network.\n */\nFreezeType.FreezeUpgrade = new FreezeType(3);\n\n/**\n * Aborts a pending network freeze operation.\n */\nFreezeType.FreezeAbort = new FreezeType(4);\n\n/**\n * Performs an immediate upgrade on auxilary services and containers providing\n * telemetry/metrics. Does not impact network operations.\n */\nFreezeType.TelemetryUpgrade = new FreezeType(5);\n"],"names":["FreezeType","constructor","code","this","_code","Object","freeze","toString","UnknownFreezeType","FreezeOnly","PrepareUpgrade","FreezeUpgrade","FreezeAbort","TelemetryUpgrade","_fromCode","Error","valueOf"],"mappings":"AAOe,MAAMA,EAMjB,WAAAC,CAAYC,GAERC,KAAKC,MAAQF,EAEbG,OAAOC,OAAOH,KACtB,CAKI,QAAAI,GACI,OAAQJ,MACJ,KAAKH,EAAWQ,kBACZ,MAAO,sBACX,KAAKR,EAAWS,WACZ,MAAO,cACX,KAAKT,EAAWU,eACZ,MAAO,kBACX,KAAKV,EAAWW,cACZ,MAAO,iBACX,KAAKX,EAAWY,YACZ,MAAO,eACX,KAAKZ,EAAWa,iBACZ,MAAO,oBACX,QACI,MAAO,YAAYV,KAAKC,SAExC,CAOI,gBAAOU,CAAUZ,GACb,OAAQA,GACJ,KAAK,EACD,OAAOF,EAAWQ,kBACtB,KAAK,EACD,OAAOR,EAAWS,WACtB,KAAK,EACD,OAAOT,EAAWU,eACtB,KAAK,EACD,OAAOV,EAAWW,cACtB,KAAK,EACD,OAAOX,EAAWY,YACtB,KAAK,EACD,OAAOZ,EAAWa,iBACtB,QACI,MAAM,IAAIE,MACN,iDAAiDb,KAGrE,CAKI,OAAAc,GACI,OAAOb,KAAKC,KACpB,EAOAJ,EAAWQ,kBAAoB,IAAIR,EAAW,GAQ9CA,EAAWS,WAAa,IAAIT,EAAW,GAOvCA,EAAWU,eAAiB,IAAIV,EAAW,GAM3CA,EAAWW,cAAgB,IAAIX,EAAW,GAK1CA,EAAWY,YAAc,IAAIZ,EAAW,GAMxCA,EAAWa,iBAAmB,IAAIb,EAAW"}
1
+ {"version":3,"file":"FreezeType.js","sources":["../src/FreezeType.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.FreezeType} HieroProto.proto.FreezeType\n */\n\nexport default class FreezeType {\n /**\n * @hideconstructor\n * @internal\n * @param {number} code\n */\n constructor(code) {\n /** @readonly */\n this._code = code;\n\n Object.freeze(this);\n }\n\n /**\n * @returns {string}\n */\n toString() {\n switch (this) {\n case FreezeType.UnknownFreezeType:\n return \"UNKNOWN_FREEZE_TYPE\";\n case FreezeType.FreezeOnly:\n return \"FREEZE_ONLY\";\n case FreezeType.PrepareUpgrade:\n return \"PREPARE_UPGRADE\";\n case FreezeType.FreezeUpgrade:\n return \"FREEZE_UPGRADE\";\n case FreezeType.FreezeAbort:\n return \"FREEZE_ABORT\";\n case FreezeType.TelemetryUpgrade:\n return \"TELEMETRY_UPGRADE\";\n default:\n return `UNKNOWN (${this._code})`;\n }\n }\n\n /**\n * @internal\n * @param {number} code\n * @returns {FreezeType}\n */\n static _fromCode(code) {\n switch (code) {\n case 0:\n return FreezeType.UnknownFreezeType;\n case 1:\n return FreezeType.FreezeOnly;\n case 2:\n return FreezeType.PrepareUpgrade;\n case 3:\n return FreezeType.FreezeUpgrade;\n case 4:\n return FreezeType.FreezeAbort;\n case 5:\n return FreezeType.TelemetryUpgrade;\n default:\n throw new Error(\n `(BUG) Status.fromCode() does not handle code: ${code}`,\n );\n }\n }\n\n /**\n * @returns {HieroProto.proto.FreezeType}\n */\n valueOf() {\n return this._code;\n }\n}\n\n/**\n * An (invalid) default value for this enum, to ensure the client explicitly sets\n * the intended type of freeze transaction.\n */\nFreezeType.UnknownFreezeType = new FreezeType(0);\n\n/**\n * Freezes the network at the specified time. The start_time field must be provided and\n * must reference a future time. Any values specified for the update_file and file_hash\n * fields will be ignored. This transaction does not perform any network changes or\n * upgrades and requires manual intervention to restart the network.\n */\nFreezeType.FreezeOnly = new FreezeType(1);\n\n/**\n * A non-freezing operation that initiates network wide preparation in advance of a\n * scheduled freeze upgrade. The update_file and file_hash fields must be provided and\n * valid. The start_time field may be omitted and any value present will be ignored.\n */\nFreezeType.PrepareUpgrade = new FreezeType(2);\n\n/**\n * Freezes the network at the specified time and performs the previously prepared\n * automatic upgrade across the entire network.\n */\nFreezeType.FreezeUpgrade = new FreezeType(3);\n\n/**\n * Aborts a pending network freeze operation.\n */\nFreezeType.FreezeAbort = new FreezeType(4);\n\n/**\n * Performs an immediate upgrade on auxilary services and containers providing\n * telemetry/metrics. Does not impact network operations.\n */\nFreezeType.TelemetryUpgrade = new FreezeType(5);\n"],"names":["FreezeType","constructor","code","this","_code","Object","freeze","toString","UnknownFreezeType","FreezeOnly","PrepareUpgrade","FreezeUpgrade","FreezeAbort","TelemetryUpgrade","_fromCode","Error","valueOf"],"mappings":"AAOe,MAAMA,EAMjB,WAAAC,CAAYC,GAERC,KAAKC,MAAQF,EAEbG,OAAOC,OAAOH,KACtB,CAKI,QAAAI,GACI,OAAQJ,MACJ,KAAKH,EAAWQ,kBACZ,MAAO,sBACX,KAAKR,EAAWS,WACZ,MAAO,cACX,KAAKT,EAAWU,eACZ,MAAO,kBACX,KAAKV,EAAWW,cACZ,MAAO,iBACX,KAAKX,EAAWY,YACZ,MAAO,eACX,KAAKZ,EAAWa,iBACZ,MAAO,oBACX,QACI,MAAO,YAAYV,KAAKC,SAExC,CAOI,gBAAOU,CAAUZ,GACb,OAAQA,GACJ,KAAK,EACD,OAAOF,EAAWQ,kBACtB,KAAK,EACD,OAAOR,EAAWS,WACtB,KAAK,EACD,OAAOT,EAAWU,eACtB,KAAK,EACD,OAAOV,EAAWW,cACtB,KAAK,EACD,OAAOX,EAAWY,YACtB,KAAK,EACD,OAAOZ,EAAWa,iBACtB,QACI,MAAM,IAAIE,MACN,iDAAiDb,KAGrE,CAKI,OAAAc,GACI,OAAOb,KAAKC,KACpB,EAOAJ,EAAWQ,kBAAoB,IAAIR,EAAW,GAQ9CA,EAAWS,WAAa,IAAIT,EAAW,GAOvCA,EAAWU,eAAiB,IAAIV,EAAW,GAM3CA,EAAWW,cAAgB,IAAIX,EAAW,GAK1CA,EAAWY,YAAc,IAAIZ,EAAW,GAMxCA,EAAWa,iBAAmB,IAAIb,EAAW"}
package/lib/Key.cjs CHANGED
@@ -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.IKey} HieroProto.proto.IKey
13
+ * @typedef {import("@hiero-ledger/proto").proto.IKey} HieroProto.proto.IKey
14
14
  */
15
15
 
16
16
  class Key {
package/lib/Key.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.IKey} HieroProto.proto.IKey
3
+ * @typedef {import("@hiero-ledger/proto").proto.IKey} HieroProto.proto.IKey
4
4
  */
5
5
  export default class Key {
6
6
  /**
@@ -18,6 +18,6 @@ export default class Key {
18
18
  }
19
19
  export namespace HieroProto {
20
20
  namespace proto {
21
- type IKey = import("@hashgraph/proto").proto.IKey;
21
+ type IKey = import("@hiero-ledger/proto").proto.IKey;
22
22
  }
23
23
  }