@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":"TokenCreateTransaction.js","sources":["../../src/token/TokenCreateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Hbar from \"../Hbar.js\";\nimport Transaction, {\n DEFAULT_AUTO_RENEW_PERIOD,\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport Long from \"long\";\nimport AccountId from \"../account/AccountId.js\";\nimport { convertAmountToLong } from \"../util.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport Duration from \"../Duration.js\";\nimport CustomFixedFee from \"./CustomFixedFee.js\";\nimport CustomFractionalFee from \"./CustomFractionalFee.js\";\nimport CustomRoyaltyFee from \"./CustomRoyaltyFee.js\";\nimport TokenType from \"./TokenType.js\";\nimport TokenSupplyType from \"./TokenSupplyType.js\";\nimport Key from \"../Key.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.ITokenCreateTransactionBody} HieroProto.proto.ITokenCreateTransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"./CustomFee.js\").default} CustomFee\n */\n\n/**\n * Create a new Hedera™ crypto-currency token.\n */\nexport default class TokenCreateTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {string} [props.tokenName]\n * @param {string} [props.tokenSymbol]\n * @param {Long | number} [props.decimals]\n * @param {Long | number | BigNumber | bigint} [props.initialSupply]\n * @param {AccountId | string} [props.treasuryAccountId]\n * @param {Key} [props.adminKey]\n * @param {Key} [props.kycKey]\n * @param {Key} [props.freezeKey]\n * @param {Key} [props.pauseKey]\n * @param {Key} [props.wipeKey]\n * @param {Key} [props.supplyKey]\n * @param {Key} [props.feeScheduleKey]\n * @param {boolean} [props.freezeDefault]\n * @param {AccountId | string} [props.autoRenewAccountId]\n * @param {Timestamp | Date} [props.expirationTime]\n * @param {Duration | Long | number} [props.autoRenewPeriod]\n * @param {string} [props.tokenMemo]\n * @param {CustomFee[]} [props.customFees]\n * @param {TokenType} [props.tokenType]\n * @param {TokenSupplyType} [props.supplyType]\n * @param {Long | number | BigNumber | bigint} [props.maxSupply]\n * @param {Key} [props.metadataKey]\n * @param {Uint8Array} [props.metadata]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?string}\n */\n this._tokenName = null;\n\n /**\n * @private\n * @type {?string}\n */\n this._tokenSymbol = null;\n\n /**\n * @private\n * @type {?Long}\n */\n this._decimals = null;\n\n /**\n * @private\n * @type {?Long}\n */\n this._initialSupply = null;\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._treasuryAccountId = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._adminKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._kycKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._freezeKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._pauseKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._wipeKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._supplyKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._feeScheduleKey = null;\n\n /**\n * @private\n * @type {?boolean}\n */\n this._freezeDefault = null;\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._autoRenewAccountId = null;\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._expirationTime = new Timestamp(\n Math.floor(\n Date.now() / 1000 + DEFAULT_AUTO_RENEW_PERIOD.toNumber(),\n ),\n 0,\n );\n\n /**\n * @private\n * @type {?Duration}\n */\n this._autoRenewPeriod = new Duration(DEFAULT_AUTO_RENEW_PERIOD);\n\n /**\n * @private\n * @type {?string}\n */\n this._tokenMemo = null;\n\n /**\n * @private\n * @type {CustomFee[]}\n */\n this._customFees = [];\n\n /**\n * @private\n * @type {?TokenType}\n */\n this._tokenType = null;\n\n /**\n * @private\n * @type {?TokenSupplyType}\n */\n this._supplyType = null;\n\n /**\n * @private\n * @type {?Long}\n */\n this._maxSupply = null;\n\n this._defaultMaxTransactionFee = new Hbar(30);\n\n /**\n * @private\n * @type {?Key}\n */\n this._metadataKey = null;\n\n /**\n * @private\n * @description Metadata of the created token definition.\n * @type {?Uint8Array}\n */\n this._metadata = null;\n\n if (props.tokenName != null) {\n this.setTokenName(props.tokenName);\n }\n\n if (props.tokenSymbol != null) {\n this.setTokenSymbol(props.tokenSymbol);\n }\n\n if (props.decimals != null) {\n this.setDecimals(props.decimals);\n }\n\n if (props.initialSupply != null) {\n this.setInitialSupply(props.initialSupply);\n }\n\n if (props.treasuryAccountId != null) {\n this.setTreasuryAccountId(props.treasuryAccountId);\n }\n\n if (props.adminKey != null) {\n this.setAdminKey(props.adminKey);\n }\n\n if (props.kycKey != null) {\n this.setKycKey(props.kycKey);\n }\n\n if (props.freezeKey != null) {\n this.setFreezeKey(props.freezeKey);\n }\n\n if (props.pauseKey != null) {\n this.setPauseKey(props.pauseKey);\n }\n\n if (props.wipeKey != null) {\n this.setWipeKey(props.wipeKey);\n }\n\n if (props.supplyKey != null) {\n this.setSupplyKey(props.supplyKey);\n }\n\n if (props.feeScheduleKey != null) {\n this.setFeeScheduleKey(props.feeScheduleKey);\n }\n\n if (props.freezeDefault != null) {\n this.setFreezeDefault(props.freezeDefault);\n }\n\n if (props.autoRenewAccountId != null) {\n this.setAutoRenewAccountId(props.autoRenewAccountId);\n }\n\n if (props.expirationTime != null) {\n this.setExpirationTime(props.expirationTime);\n }\n\n if (props.autoRenewPeriod != null) {\n this.setAutoRenewPeriod(props.autoRenewPeriod);\n }\n\n if (props.tokenMemo != null) {\n this.setTokenMemo(props.tokenMemo);\n }\n\n if (props.customFees != null) {\n this.setCustomFees(props.customFees);\n }\n\n if (props.tokenType != null) {\n this.setTokenType(props.tokenType);\n }\n\n if (props.supplyType != null) {\n this.setSupplyType(props.supplyType);\n }\n\n if (props.maxSupply != null) {\n this.setMaxSupply(props.maxSupply);\n }\n\n if (props.metadataKey != null) {\n this.setMetadataKey(props.metadataKey);\n }\n\n if (props.metadata != null) {\n this.setMetadata(props.metadata);\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 {TokenCreateTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const create =\n /** @type {HieroProto.proto.ITokenCreateTransactionBody} */ (\n body.tokenCreation\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenCreateTransaction({\n tokenName: create.name != null ? create.name : undefined,\n tokenSymbol: create.symbol != null ? create.symbol : undefined,\n decimals: create.decimals != null ? create.decimals : undefined,\n initialSupply:\n create.initialSupply != null\n ? create.initialSupply\n : undefined,\n treasuryAccountId:\n create.treasury != null\n ? AccountId._fromProtobuf(create.treasury)\n : undefined,\n adminKey:\n create.adminKey != null\n ? Key._fromProtobufKey(create.adminKey)\n : undefined,\n kycKey:\n create.kycKey != null\n ? Key._fromProtobufKey(create.kycKey)\n : undefined,\n freezeKey:\n create.freezeKey != null\n ? Key._fromProtobufKey(create.freezeKey)\n : undefined,\n pauseKey:\n create.pauseKey != null\n ? Key._fromProtobufKey(create.pauseKey)\n : undefined,\n wipeKey:\n create.wipeKey != null\n ? Key._fromProtobufKey(create.wipeKey)\n : undefined,\n supplyKey:\n create.supplyKey != null\n ? Key._fromProtobufKey(create.supplyKey)\n : undefined,\n feeScheduleKey:\n create.feeScheduleKey != null\n ? Key._fromProtobufKey(create.feeScheduleKey)\n : undefined,\n freezeDefault:\n create.freezeDefault != null\n ? create.freezeDefault\n : undefined,\n autoRenewAccountId:\n create.autoRenewAccount != null\n ? AccountId._fromProtobuf(create.autoRenewAccount)\n : undefined,\n expirationTime:\n create.expiry != null\n ? Timestamp._fromProtobuf(create.expiry)\n : undefined,\n autoRenewPeriod:\n create.autoRenewPeriod != null\n ? Duration._fromProtobuf(create.autoRenewPeriod)\n : undefined,\n tokenMemo: create.memo != null ? create.memo : undefined,\n customFees:\n create.customFees != null\n ? create.customFees.map((fee) => {\n if (fee.fixedFee != null) {\n return CustomFixedFee._fromProtobuf(fee);\n } else if (fee.fractionalFee != null) {\n return CustomFractionalFee._fromProtobuf(fee);\n } else {\n return CustomRoyaltyFee._fromProtobuf(fee);\n }\n })\n : undefined,\n tokenType:\n create.tokenType != null\n ? TokenType._fromCode(create.tokenType)\n : undefined,\n supplyType:\n create.supplyType != null\n ? TokenSupplyType._fromCode(create.supplyType)\n : undefined,\n maxSupply:\n create.maxSupply != null ? create.maxSupply : undefined,\n metadataKey:\n create.metadataKey != null\n ? Key._fromProtobufKey(create.metadataKey)\n : undefined,\n metadata: create.metadata != null ? create.metadata : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?string}\n */\n get tokenName() {\n return this._tokenName;\n }\n\n /**\n * @param {string} name\n * @returns {this}\n */\n setTokenName(name) {\n this._requireNotFrozen();\n this._tokenName = name;\n\n return this;\n }\n\n /**\n * @returns {?string}\n */\n get tokenSymbol() {\n return this._tokenSymbol;\n }\n\n /**\n * @param {string} symbol\n * @returns {this}\n */\n setTokenSymbol(symbol) {\n this._requireNotFrozen();\n this._tokenSymbol = symbol;\n\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get decimals() {\n return this._decimals;\n }\n\n /**\n * @param {Long | number} decimals\n * @returns {this}\n */\n setDecimals(decimals) {\n this._requireNotFrozen();\n this._decimals =\n decimals instanceof Long ? decimals : Long.fromValue(decimals);\n\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get initialSupply() {\n return this._initialSupply;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} initialSupply\n * @returns {this}\n */\n setInitialSupply(initialSupply) {\n this._requireNotFrozen();\n this._initialSupply = convertAmountToLong(initialSupply);\n\n return this;\n }\n\n /**\n * @returns {?AccountId}\n */\n get treasuryAccountId() {\n return this._treasuryAccountId;\n }\n\n /**\n * @param {AccountId | string} id\n * @returns {this}\n */\n setTreasuryAccountId(id) {\n this._requireNotFrozen();\n this._treasuryAccountId =\n typeof id === \"string\" ? AccountId.fromString(id) : id.clone();\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get adminKey() {\n return this._adminKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setAdminKey(key) {\n this._requireNotFrozen();\n this._adminKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get kycKey() {\n return this._kycKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setKycKey(key) {\n this._requireNotFrozen();\n this._kycKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get freezeKey() {\n return this._freezeKey;\n }\n\n /**\n * @override\n * @param {?import(\"../client/Client.js\").default<Channel, *>} client\n * @returns {this}\n */\n freezeWith(client) {\n if (\n !this._autoRenewAccountId &&\n this.transactionId?.accountId &&\n this.autoRenewPeriod != null\n ) {\n this.setAutoRenewAccountId(this.transactionId?.accountId);\n } else if (\n !this._autoRenewAccountId &&\n client?.operatorAccountId &&\n this.autoRenewPeriod != null\n ) {\n this.setAutoRenewAccountId(client.operatorAccountId);\n }\n return super.freezeWith(client);\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setFreezeKey(key) {\n this._requireNotFrozen();\n this._freezeKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get pauseKey() {\n return this._pauseKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setPauseKey(key) {\n this._requireNotFrozen();\n this._pauseKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get wipeKey() {\n return this._wipeKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setWipeKey(key) {\n this._requireNotFrozen();\n this._wipeKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get supplyKey() {\n return this._supplyKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setSupplyKey(key) {\n this._requireNotFrozen();\n this._supplyKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get feeScheduleKey() {\n return this._feeScheduleKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setFeeScheduleKey(key) {\n this._requireNotFrozen();\n this._feeScheduleKey = key;\n\n return this;\n }\n\n /**\n * @returns {?boolean}\n */\n get freezeDefault() {\n return this._freezeDefault;\n }\n\n /**\n * @param {boolean} freeze\n * @returns {this}\n */\n setFreezeDefault(freeze) {\n this._requireNotFrozen();\n this._freezeDefault = freeze;\n\n return this;\n }\n\n /**\n * @returns {?Timestamp}\n */\n get expirationTime() {\n return this._expirationTime;\n }\n\n /**\n * If autoRenewPeriod is set - this value will be ignored and the expiration time will be calculated based on the autoRenewPeriod + time.now()\n * Setting this value will clear the autoRenewPeriod as the autoRenewPeriod period has default value of 7890000 seconds and leaving it set will override the expiration time\n * @param {Timestamp | Date} time\n * @returns {this}\n */\n setExpirationTime(time) {\n this._requireNotFrozen();\n this._expirationTime =\n time instanceof Timestamp ? time : Timestamp.fromDate(time);\n this._autoRenewPeriod = null;\n\n return this;\n }\n\n /**\n * @returns {?AccountId}\n */\n get autoRenewAccountId() {\n return this._autoRenewAccountId;\n }\n\n /**\n * @param {AccountId | string} id\n * @returns {this}\n */\n setAutoRenewAccountId(id) {\n this._requireNotFrozen();\n this._autoRenewAccountId =\n id instanceof AccountId ? id : AccountId.fromString(id);\n\n return this;\n }\n\n /**\n * @returns {?Duration}\n */\n get autoRenewPeriod() {\n return this._autoRenewPeriod;\n }\n\n /**\n * If expirationTime is set - autoRenewPeriod will be effectively ignored and it's effect will be replaced by expirationTime\n *\n * @param {Duration | Long | number} autoRenewPeriod\n * @returns {this}\n */\n setAutoRenewPeriod(autoRenewPeriod) {\n this._requireNotFrozen();\n this._autoRenewPeriod =\n autoRenewPeriod instanceof Duration\n ? autoRenewPeriod\n : new Duration(autoRenewPeriod);\n\n return this;\n }\n\n /**\n * @returns {?string}\n */\n get tokenMemo() {\n return this._tokenMemo;\n }\n\n /**\n * @param {string} memo\n * @returns {this}\n */\n setTokenMemo(memo) {\n this._requireNotFrozen();\n this._tokenMemo = memo;\n\n return this;\n }\n\n /**\n * @returns {CustomFee[]}\n */\n get customFees() {\n return this._customFees;\n }\n\n /**\n * @param {CustomFee[]} customFees\n * @returns {this}\n */\n setCustomFees(customFees) {\n this._customFees = customFees;\n return this;\n }\n\n /**\n * @returns {?TokenType}\n */\n get tokenType() {\n return this._tokenType;\n }\n\n /**\n * @param {TokenType} tokenType\n * @returns {this}\n */\n setTokenType(tokenType) {\n this._tokenType = tokenType;\n return this;\n }\n\n /**\n * @returns {?TokenSupplyType}\n */\n get supplyType() {\n return this._supplyType;\n }\n\n /**\n * @param {TokenSupplyType} supplyType\n * @returns {this}\n */\n setSupplyType(supplyType) {\n this._supplyType = supplyType;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get maxSupply() {\n return this._maxSupply;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} maxSupply\n * @returns {this}\n */\n setMaxSupply(maxSupply) {\n this._maxSupply = convertAmountToLong(maxSupply);\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get metadataKey() {\n return this._metadataKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setMetadataKey(key) {\n this._requireNotFrozen();\n this._metadataKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Uint8Array}\n */\n get metadata() {\n return this._metadata;\n }\n\n /**\n * @param {Uint8Array} metadata\n * @returns {this}\n */\n setMetadata(metadata) {\n this._requireNotFrozen();\n this._metadata = metadata;\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._treasuryAccountId != null) {\n this._treasuryAccountId.validateChecksum(client);\n }\n\n if (this._autoRenewAccountId != null) {\n this._autoRenewAccountId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.token.createToken(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenCreation\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenCreateTransactionBody}\n */\n _makeTransactionData() {\n return {\n name: this._tokenName,\n symbol: this._tokenSymbol,\n decimals: this._decimals != null ? this._decimals.toInt() : null,\n initialSupply: this._initialSupply,\n treasury:\n this._treasuryAccountId != null\n ? this._treasuryAccountId._toProtobuf()\n : null,\n adminKey:\n this._adminKey != null ? this._adminKey._toProtobufKey() : null,\n kycKey: this._kycKey != null ? this._kycKey._toProtobufKey() : null,\n freezeKey:\n this._freezeKey != null\n ? this._freezeKey._toProtobufKey()\n : null,\n pauseKey:\n this._pauseKey != null ? this._pauseKey._toProtobufKey() : null,\n wipeKey:\n this._wipeKey != null ? this._wipeKey._toProtobufKey() : null,\n supplyKey:\n this._supplyKey != null\n ? this._supplyKey._toProtobufKey()\n : null,\n feeScheduleKey:\n this._feeScheduleKey != null\n ? this._feeScheduleKey._toProtobufKey()\n : null,\n freezeDefault: this._freezeDefault,\n autoRenewAccount:\n this._autoRenewAccountId != null\n ? this._autoRenewAccountId._toProtobuf()\n : null,\n expiry:\n this._expirationTime != null\n ? this._expirationTime._toProtobuf()\n : null,\n autoRenewPeriod:\n this._autoRenewPeriod != null\n ? this._autoRenewPeriod._toProtobuf()\n : null,\n memo: this._tokenMemo,\n customFees: this.customFees.map((fee) => fee._toProtobuf()),\n tokenType: this._tokenType != null ? this._tokenType._code : null,\n supplyType:\n this._supplyType != null ? this._supplyType._code : null,\n maxSupply: this.maxSupply,\n metadataKey:\n this._metadataKey != null\n ? this._metadataKey._toProtobufKey()\n : null,\n metadata: this._metadata != null ? this._metadata : undefined,\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 `TokenCreateTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenCreation\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenCreateTransaction._fromProtobuf,\n);\n"],"names":["TokenCreateTransaction","Transaction","constructor","props","super","this","_tokenName","_tokenSymbol","_decimals","_initialSupply","_treasuryAccountId","_adminKey","_kycKey","_freezeKey","_pauseKey","_wipeKey","_supplyKey","_feeScheduleKey","_freezeDefault","_autoRenewAccountId","_expirationTime","Timestamp","Math","floor","Date","now","DEFAULT_AUTO_RENEW_PERIOD","toNumber","_autoRenewPeriod","Duration","_tokenMemo","_customFees","_tokenType","_supplyType","_maxSupply","_defaultMaxTransactionFee","Hbar","_metadataKey","_metadata","tokenName","setTokenName","tokenSymbol","setTokenSymbol","decimals","setDecimals","initialSupply","setInitialSupply","treasuryAccountId","setTreasuryAccountId","adminKey","setAdminKey","kycKey","setKycKey","freezeKey","setFreezeKey","pauseKey","setPauseKey","wipeKey","setWipeKey","supplyKey","setSupplyKey","feeScheduleKey","setFeeScheduleKey","freezeDefault","setFreezeDefault","autoRenewAccountId","setAutoRenewAccountId","expirationTime","setExpirationTime","autoRenewPeriod","setAutoRenewPeriod","tokenMemo","setTokenMemo","customFees","setCustomFees","tokenType","setTokenType","supplyType","setSupplyType","maxSupply","setMaxSupply","metadataKey","setMetadataKey","metadata","setMetadata","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","create","_fromProtobufTransactions","name","undefined","symbol","treasury","AccountId","Key","_fromProtobufKey","autoRenewAccount","expiry","memo","map","fee","fixedFee","CustomFixedFee","fractionalFee","CustomFractionalFee","CustomRoyaltyFee","TokenType","_fromCode","TokenSupplyType","_requireNotFrozen","Long","fromValue","convertAmountToLong","id","fromString","clone","key","freezeWith","client","transactionId","accountId","operatorAccountId","freeze","time","fromDate","_validateChecksums","validateChecksum","_execute","channel","request","token","createToken","_getTransactionDataCase","_makeTransactionData","toInt","_toProtobuf","_toProtobufKey","_code","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"qfAyCe,MAAMA,UAA+BC,EA2BhD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,WAAa,KAMlBD,KAAKE,aAAe,KAMpBF,KAAKG,UAAY,KAMjBH,KAAKI,eAAiB,KAMtBJ,KAAKK,mBAAqB,KAM1BL,KAAKM,UAAY,KAMjBN,KAAKO,QAAU,KAMfP,KAAKQ,WAAa,KAMlBR,KAAKS,UAAY,KAMjBT,KAAKU,SAAW,KAMhBV,KAAKW,WAAa,KAMlBX,KAAKY,gBAAkB,KAMvBZ,KAAKa,eAAiB,KAMtBb,KAAKc,oBAAsB,KAM3Bd,KAAKe,gBAAkB,IAAIC,EACvBC,KAAKC,MACDC,KAAKC,MAAQ,IAAOC,EAA0BC,YAElD,GAOJtB,KAAKuB,iBAAmB,IAAIC,EAASH,GAMrCrB,KAAKyB,WAAa,KAMlBzB,KAAK0B,YAAc,GAMnB1B,KAAK2B,WAAa,KAMlB3B,KAAK4B,YAAc,KAMnB5B,KAAK6B,WAAa,KAElB7B,KAAK8B,0BAA4B,IAAIC,EAAK,IAM1C/B,KAAKgC,aAAe,KAOpBhC,KAAKiC,UAAY,KAEM,MAAnBnC,EAAMoC,WACNlC,KAAKmC,aAAarC,EAAMoC,WAGH,MAArBpC,EAAMsC,aACNpC,KAAKqC,eAAevC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BuH,cACrB,KACVtE,gBAC6B,MAAzBhE,KAAKuB,iBACCvB,KAAKuB,iBAAiB+G,cACtB,KACVrC,KAAMjG,KAAKyB,WACX2C,WAAYpE,KAAKoE,WAAW8B,IAAKC,GAAQA,EAAImC,eAC7ChE,UAA8B,MAAnBtE,KAAK2B,WAAqB3B,KAAK2B,WAAW6G,MAAQ,KAC7DhE,WACwB,MAApBxE,KAAK4B,YAAsB5B,KAAK4B,YAAY4G,MAAQ,KACxD9D,UAAW1E,KAAK0E,UAChBE,YACyB,MAArB5E,KAAKgC,aACChC,KAAKgC,aAAauG,iBAClB,KACVzD,SAA4B,MAAlB9E,KAAKiC,UAAoBjC,KAAKiC,eAAYwD,EAEhE,CAKI,SAAAgD,GAII,MAAO,0BAFHzI,KAAK0I,gBAAgBC,QACxB,WAC0CC,YACnD,EAGAC,EAAqBC,IACjB,gBAEAnJ,EAAuBqF"}
1
+ {"version":3,"file":"TokenCreateTransaction.js","sources":["../../src/token/TokenCreateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Hbar from \"../Hbar.js\";\nimport Transaction, {\n DEFAULT_AUTO_RENEW_PERIOD,\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport Long from \"long\";\nimport AccountId from \"../account/AccountId.js\";\nimport { convertAmountToLong } from \"../util.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport Duration from \"../Duration.js\";\nimport CustomFixedFee from \"./CustomFixedFee.js\";\nimport CustomFractionalFee from \"./CustomFractionalFee.js\";\nimport CustomRoyaltyFee from \"./CustomRoyaltyFee.js\";\nimport TokenType from \"./TokenType.js\";\nimport TokenSupplyType from \"./TokenSupplyType.js\";\nimport Key from \"../Key.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.ITokenCreateTransactionBody} HieroProto.proto.ITokenCreateTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"./CustomFee.js\").default} CustomFee\n */\n\n/**\n * Create a new Hedera™ crypto-currency token.\n */\nexport default class TokenCreateTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {string} [props.tokenName]\n * @param {string} [props.tokenSymbol]\n * @param {Long | number} [props.decimals]\n * @param {Long | number | BigNumber | bigint} [props.initialSupply]\n * @param {AccountId | string} [props.treasuryAccountId]\n * @param {Key} [props.adminKey]\n * @param {Key} [props.kycKey]\n * @param {Key} [props.freezeKey]\n * @param {Key} [props.pauseKey]\n * @param {Key} [props.wipeKey]\n * @param {Key} [props.supplyKey]\n * @param {Key} [props.feeScheduleKey]\n * @param {boolean} [props.freezeDefault]\n * @param {AccountId | string} [props.autoRenewAccountId]\n * @param {Timestamp | Date} [props.expirationTime]\n * @param {Duration | Long | number} [props.autoRenewPeriod]\n * @param {string} [props.tokenMemo]\n * @param {CustomFee[]} [props.customFees]\n * @param {TokenType} [props.tokenType]\n * @param {TokenSupplyType} [props.supplyType]\n * @param {Long | number | BigNumber | bigint} [props.maxSupply]\n * @param {Key} [props.metadataKey]\n * @param {Uint8Array} [props.metadata]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?string}\n */\n this._tokenName = null;\n\n /**\n * @private\n * @type {?string}\n */\n this._tokenSymbol = null;\n\n /**\n * @private\n * @type {?Long}\n */\n this._decimals = null;\n\n /**\n * @private\n * @type {?Long}\n */\n this._initialSupply = null;\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._treasuryAccountId = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._adminKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._kycKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._freezeKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._pauseKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._wipeKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._supplyKey = null;\n\n /**\n * @private\n * @type {?Key}\n */\n this._feeScheduleKey = null;\n\n /**\n * @private\n * @type {?boolean}\n */\n this._freezeDefault = null;\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._autoRenewAccountId = null;\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._expirationTime = new Timestamp(\n Math.floor(\n Date.now() / 1000 + DEFAULT_AUTO_RENEW_PERIOD.toNumber(),\n ),\n 0,\n );\n\n /**\n * @private\n * @type {?Duration}\n */\n this._autoRenewPeriod = new Duration(DEFAULT_AUTO_RENEW_PERIOD);\n\n /**\n * @private\n * @type {?string}\n */\n this._tokenMemo = null;\n\n /**\n * @private\n * @type {CustomFee[]}\n */\n this._customFees = [];\n\n /**\n * @private\n * @type {?TokenType}\n */\n this._tokenType = null;\n\n /**\n * @private\n * @type {?TokenSupplyType}\n */\n this._supplyType = null;\n\n /**\n * @private\n * @type {?Long}\n */\n this._maxSupply = null;\n\n this._defaultMaxTransactionFee = new Hbar(30);\n\n /**\n * @private\n * @type {?Key}\n */\n this._metadataKey = null;\n\n /**\n * @private\n * @description Metadata of the created token definition.\n * @type {?Uint8Array}\n */\n this._metadata = null;\n\n if (props.tokenName != null) {\n this.setTokenName(props.tokenName);\n }\n\n if (props.tokenSymbol != null) {\n this.setTokenSymbol(props.tokenSymbol);\n }\n\n if (props.decimals != null) {\n this.setDecimals(props.decimals);\n }\n\n if (props.initialSupply != null) {\n this.setInitialSupply(props.initialSupply);\n }\n\n if (props.treasuryAccountId != null) {\n this.setTreasuryAccountId(props.treasuryAccountId);\n }\n\n if (props.adminKey != null) {\n this.setAdminKey(props.adminKey);\n }\n\n if (props.kycKey != null) {\n this.setKycKey(props.kycKey);\n }\n\n if (props.freezeKey != null) {\n this.setFreezeKey(props.freezeKey);\n }\n\n if (props.pauseKey != null) {\n this.setPauseKey(props.pauseKey);\n }\n\n if (props.wipeKey != null) {\n this.setWipeKey(props.wipeKey);\n }\n\n if (props.supplyKey != null) {\n this.setSupplyKey(props.supplyKey);\n }\n\n if (props.feeScheduleKey != null) {\n this.setFeeScheduleKey(props.feeScheduleKey);\n }\n\n if (props.freezeDefault != null) {\n this.setFreezeDefault(props.freezeDefault);\n }\n\n if (props.autoRenewAccountId != null) {\n this.setAutoRenewAccountId(props.autoRenewAccountId);\n }\n\n if (props.expirationTime != null) {\n this.setExpirationTime(props.expirationTime);\n }\n\n if (props.autoRenewPeriod != null) {\n this.setAutoRenewPeriod(props.autoRenewPeriod);\n }\n\n if (props.tokenMemo != null) {\n this.setTokenMemo(props.tokenMemo);\n }\n\n if (props.customFees != null) {\n this.setCustomFees(props.customFees);\n }\n\n if (props.tokenType != null) {\n this.setTokenType(props.tokenType);\n }\n\n if (props.supplyType != null) {\n this.setSupplyType(props.supplyType);\n }\n\n if (props.maxSupply != null) {\n this.setMaxSupply(props.maxSupply);\n }\n\n if (props.metadataKey != null) {\n this.setMetadataKey(props.metadataKey);\n }\n\n if (props.metadata != null) {\n this.setMetadata(props.metadata);\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 {TokenCreateTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const create =\n /** @type {HieroProto.proto.ITokenCreateTransactionBody} */ (\n body.tokenCreation\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenCreateTransaction({\n tokenName: create.name != null ? create.name : undefined,\n tokenSymbol: create.symbol != null ? create.symbol : undefined,\n decimals: create.decimals != null ? create.decimals : undefined,\n initialSupply:\n create.initialSupply != null\n ? create.initialSupply\n : undefined,\n treasuryAccountId:\n create.treasury != null\n ? AccountId._fromProtobuf(create.treasury)\n : undefined,\n adminKey:\n create.adminKey != null\n ? Key._fromProtobufKey(create.adminKey)\n : undefined,\n kycKey:\n create.kycKey != null\n ? Key._fromProtobufKey(create.kycKey)\n : undefined,\n freezeKey:\n create.freezeKey != null\n ? Key._fromProtobufKey(create.freezeKey)\n : undefined,\n pauseKey:\n create.pauseKey != null\n ? Key._fromProtobufKey(create.pauseKey)\n : undefined,\n wipeKey:\n create.wipeKey != null\n ? Key._fromProtobufKey(create.wipeKey)\n : undefined,\n supplyKey:\n create.supplyKey != null\n ? Key._fromProtobufKey(create.supplyKey)\n : undefined,\n feeScheduleKey:\n create.feeScheduleKey != null\n ? Key._fromProtobufKey(create.feeScheduleKey)\n : undefined,\n freezeDefault:\n create.freezeDefault != null\n ? create.freezeDefault\n : undefined,\n autoRenewAccountId:\n create.autoRenewAccount != null\n ? AccountId._fromProtobuf(create.autoRenewAccount)\n : undefined,\n expirationTime:\n create.expiry != null\n ? Timestamp._fromProtobuf(create.expiry)\n : undefined,\n autoRenewPeriod:\n create.autoRenewPeriod != null\n ? Duration._fromProtobuf(create.autoRenewPeriod)\n : undefined,\n tokenMemo: create.memo != null ? create.memo : undefined,\n customFees:\n create.customFees != null\n ? create.customFees.map((fee) => {\n if (fee.fixedFee != null) {\n return CustomFixedFee._fromProtobuf(fee);\n } else if (fee.fractionalFee != null) {\n return CustomFractionalFee._fromProtobuf(fee);\n } else {\n return CustomRoyaltyFee._fromProtobuf(fee);\n }\n })\n : undefined,\n tokenType:\n create.tokenType != null\n ? TokenType._fromCode(create.tokenType)\n : undefined,\n supplyType:\n create.supplyType != null\n ? TokenSupplyType._fromCode(create.supplyType)\n : undefined,\n maxSupply:\n create.maxSupply != null ? create.maxSupply : undefined,\n metadataKey:\n create.metadataKey != null\n ? Key._fromProtobufKey(create.metadataKey)\n : undefined,\n metadata: create.metadata != null ? create.metadata : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?string}\n */\n get tokenName() {\n return this._tokenName;\n }\n\n /**\n * @param {string} name\n * @returns {this}\n */\n setTokenName(name) {\n this._requireNotFrozen();\n this._tokenName = name;\n\n return this;\n }\n\n /**\n * @returns {?string}\n */\n get tokenSymbol() {\n return this._tokenSymbol;\n }\n\n /**\n * @param {string} symbol\n * @returns {this}\n */\n setTokenSymbol(symbol) {\n this._requireNotFrozen();\n this._tokenSymbol = symbol;\n\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get decimals() {\n return this._decimals;\n }\n\n /**\n * @param {Long | number} decimals\n * @returns {this}\n */\n setDecimals(decimals) {\n this._requireNotFrozen();\n this._decimals =\n decimals instanceof Long ? decimals : Long.fromValue(decimals);\n\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get initialSupply() {\n return this._initialSupply;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} initialSupply\n * @returns {this}\n */\n setInitialSupply(initialSupply) {\n this._requireNotFrozen();\n this._initialSupply = convertAmountToLong(initialSupply);\n\n return this;\n }\n\n /**\n * @returns {?AccountId}\n */\n get treasuryAccountId() {\n return this._treasuryAccountId;\n }\n\n /**\n * @param {AccountId | string} id\n * @returns {this}\n */\n setTreasuryAccountId(id) {\n this._requireNotFrozen();\n this._treasuryAccountId =\n typeof id === \"string\" ? AccountId.fromString(id) : id.clone();\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get adminKey() {\n return this._adminKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setAdminKey(key) {\n this._requireNotFrozen();\n this._adminKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get kycKey() {\n return this._kycKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setKycKey(key) {\n this._requireNotFrozen();\n this._kycKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get freezeKey() {\n return this._freezeKey;\n }\n\n /**\n * @override\n * @param {?import(\"../client/Client.js\").default<Channel, *>} client\n * @returns {this}\n */\n freezeWith(client) {\n if (\n !this._autoRenewAccountId &&\n this.transactionId?.accountId &&\n this.autoRenewPeriod != null\n ) {\n this.setAutoRenewAccountId(this.transactionId?.accountId);\n } else if (\n !this._autoRenewAccountId &&\n client?.operatorAccountId &&\n this.autoRenewPeriod != null\n ) {\n this.setAutoRenewAccountId(client.operatorAccountId);\n }\n return super.freezeWith(client);\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setFreezeKey(key) {\n this._requireNotFrozen();\n this._freezeKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get pauseKey() {\n return this._pauseKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setPauseKey(key) {\n this._requireNotFrozen();\n this._pauseKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get wipeKey() {\n return this._wipeKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setWipeKey(key) {\n this._requireNotFrozen();\n this._wipeKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get supplyKey() {\n return this._supplyKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setSupplyKey(key) {\n this._requireNotFrozen();\n this._supplyKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get feeScheduleKey() {\n return this._feeScheduleKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setFeeScheduleKey(key) {\n this._requireNotFrozen();\n this._feeScheduleKey = key;\n\n return this;\n }\n\n /**\n * @returns {?boolean}\n */\n get freezeDefault() {\n return this._freezeDefault;\n }\n\n /**\n * @param {boolean} freeze\n * @returns {this}\n */\n setFreezeDefault(freeze) {\n this._requireNotFrozen();\n this._freezeDefault = freeze;\n\n return this;\n }\n\n /**\n * @returns {?Timestamp}\n */\n get expirationTime() {\n return this._expirationTime;\n }\n\n /**\n * If autoRenewPeriod is set - this value will be ignored and the expiration time will be calculated based on the autoRenewPeriod + time.now()\n * Setting this value will clear the autoRenewPeriod as the autoRenewPeriod period has default value of 7890000 seconds and leaving it set will override the expiration time\n * @param {Timestamp | Date} time\n * @returns {this}\n */\n setExpirationTime(time) {\n this._requireNotFrozen();\n this._expirationTime =\n time instanceof Timestamp ? time : Timestamp.fromDate(time);\n this._autoRenewPeriod = null;\n\n return this;\n }\n\n /**\n * @returns {?AccountId}\n */\n get autoRenewAccountId() {\n return this._autoRenewAccountId;\n }\n\n /**\n * @param {AccountId | string} id\n * @returns {this}\n */\n setAutoRenewAccountId(id) {\n this._requireNotFrozen();\n this._autoRenewAccountId =\n id instanceof AccountId ? id : AccountId.fromString(id);\n\n return this;\n }\n\n /**\n * @returns {?Duration}\n */\n get autoRenewPeriod() {\n return this._autoRenewPeriod;\n }\n\n /**\n * If expirationTime is set - autoRenewPeriod will be effectively ignored and it's effect will be replaced by expirationTime\n *\n * @param {Duration | Long | number} autoRenewPeriod\n * @returns {this}\n */\n setAutoRenewPeriod(autoRenewPeriod) {\n this._requireNotFrozen();\n this._autoRenewPeriod =\n autoRenewPeriod instanceof Duration\n ? autoRenewPeriod\n : new Duration(autoRenewPeriod);\n\n return this;\n }\n\n /**\n * @returns {?string}\n */\n get tokenMemo() {\n return this._tokenMemo;\n }\n\n /**\n * @param {string} memo\n * @returns {this}\n */\n setTokenMemo(memo) {\n this._requireNotFrozen();\n this._tokenMemo = memo;\n\n return this;\n }\n\n /**\n * @returns {CustomFee[]}\n */\n get customFees() {\n return this._customFees;\n }\n\n /**\n * @param {CustomFee[]} customFees\n * @returns {this}\n */\n setCustomFees(customFees) {\n this._customFees = customFees;\n return this;\n }\n\n /**\n * @returns {?TokenType}\n */\n get tokenType() {\n return this._tokenType;\n }\n\n /**\n * @param {TokenType} tokenType\n * @returns {this}\n */\n setTokenType(tokenType) {\n this._tokenType = tokenType;\n return this;\n }\n\n /**\n * @returns {?TokenSupplyType}\n */\n get supplyType() {\n return this._supplyType;\n }\n\n /**\n * @param {TokenSupplyType} supplyType\n * @returns {this}\n */\n setSupplyType(supplyType) {\n this._supplyType = supplyType;\n return this;\n }\n\n /**\n * @returns {?Long}\n */\n get maxSupply() {\n return this._maxSupply;\n }\n\n /**\n * @param {Long | number | BigNumber | bigint} maxSupply\n * @returns {this}\n */\n setMaxSupply(maxSupply) {\n this._maxSupply = convertAmountToLong(maxSupply);\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get metadataKey() {\n return this._metadataKey;\n }\n\n /**\n * @param {Key} key\n * @returns {this}\n */\n setMetadataKey(key) {\n this._requireNotFrozen();\n this._metadataKey = key;\n\n return this;\n }\n\n /**\n * @returns {?Uint8Array}\n */\n get metadata() {\n return this._metadata;\n }\n\n /**\n * @param {Uint8Array} metadata\n * @returns {this}\n */\n setMetadata(metadata) {\n this._requireNotFrozen();\n this._metadata = metadata;\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._treasuryAccountId != null) {\n this._treasuryAccountId.validateChecksum(client);\n }\n\n if (this._autoRenewAccountId != null) {\n this._autoRenewAccountId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.token.createToken(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenCreation\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenCreateTransactionBody}\n */\n _makeTransactionData() {\n return {\n name: this._tokenName,\n symbol: this._tokenSymbol,\n decimals: this._decimals != null ? this._decimals.toInt() : null,\n initialSupply: this._initialSupply,\n treasury:\n this._treasuryAccountId != null\n ? this._treasuryAccountId._toProtobuf()\n : null,\n adminKey:\n this._adminKey != null ? this._adminKey._toProtobufKey() : null,\n kycKey: this._kycKey != null ? this._kycKey._toProtobufKey() : null,\n freezeKey:\n this._freezeKey != null\n ? this._freezeKey._toProtobufKey()\n : null,\n pauseKey:\n this._pauseKey != null ? this._pauseKey._toProtobufKey() : null,\n wipeKey:\n this._wipeKey != null ? this._wipeKey._toProtobufKey() : null,\n supplyKey:\n this._supplyKey != null\n ? this._supplyKey._toProtobufKey()\n : null,\n feeScheduleKey:\n this._feeScheduleKey != null\n ? this._feeScheduleKey._toProtobufKey()\n : null,\n freezeDefault: this._freezeDefault,\n autoRenewAccount:\n this._autoRenewAccountId != null\n ? this._autoRenewAccountId._toProtobuf()\n : null,\n expiry:\n this._expirationTime != null\n ? this._expirationTime._toProtobuf()\n : null,\n autoRenewPeriod:\n this._autoRenewPeriod != null\n ? this._autoRenewPeriod._toProtobuf()\n : null,\n memo: this._tokenMemo,\n customFees: this.customFees.map((fee) => fee._toProtobuf()),\n tokenType: this._tokenType != null ? this._tokenType._code : null,\n supplyType:\n this._supplyType != null ? this._supplyType._code : null,\n maxSupply: this.maxSupply,\n metadataKey:\n this._metadataKey != null\n ? this._metadataKey._toProtobufKey()\n : null,\n metadata: this._metadata != null ? this._metadata : undefined,\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 `TokenCreateTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenCreation\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenCreateTransaction._fromProtobuf,\n);\n"],"names":["TokenCreateTransaction","Transaction","constructor","props","super","this","_tokenName","_tokenSymbol","_decimals","_initialSupply","_treasuryAccountId","_adminKey","_kycKey","_freezeKey","_pauseKey","_wipeKey","_supplyKey","_feeScheduleKey","_freezeDefault","_autoRenewAccountId","_expirationTime","Timestamp","Math","floor","Date","now","DEFAULT_AUTO_RENEW_PERIOD","toNumber","_autoRenewPeriod","Duration","_tokenMemo","_customFees","_tokenType","_supplyType","_maxSupply","_defaultMaxTransactionFee","Hbar","_metadataKey","_metadata","tokenName","setTokenName","tokenSymbol","setTokenSymbol","decimals","setDecimals","initialSupply","setInitialSupply","treasuryAccountId","setTreasuryAccountId","adminKey","setAdminKey","kycKey","setKycKey","freezeKey","setFreezeKey","pauseKey","setPauseKey","wipeKey","setWipeKey","supplyKey","setSupplyKey","feeScheduleKey","setFeeScheduleKey","freezeDefault","setFreezeDefault","autoRenewAccountId","setAutoRenewAccountId","expirationTime","setExpirationTime","autoRenewPeriod","setAutoRenewPeriod","tokenMemo","setTokenMemo","customFees","setCustomFees","tokenType","setTokenType","supplyType","setSupplyType","maxSupply","setMaxSupply","metadataKey","setMetadataKey","metadata","setMetadata","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","create","_fromProtobufTransactions","name","undefined","symbol","treasury","AccountId","Key","_fromProtobufKey","autoRenewAccount","expiry","memo","map","fee","fixedFee","CustomFixedFee","fractionalFee","CustomFractionalFee","CustomRoyaltyFee","TokenType","_fromCode","TokenSupplyType","_requireNotFrozen","Long","fromValue","convertAmountToLong","id","fromString","clone","key","freezeWith","client","transactionId","accountId","operatorAccountId","freeze","time","fromDate","_validateChecksums","validateChecksum","_execute","channel","request","token","createToken","_getTransactionDataCase","_makeTransactionData","toInt","_toProtobuf","_toProtobufKey","_code","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"qfAyCe,MAAMA,UAA+BC,EA2BhD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC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xB,WAC0CC,YACnD,EAGAC,EAAqBC,IACjB,gBAEAnJ,EAAuBqF"}
@@ -12,13 +12,13 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
12
12
 
13
13
  /**
14
14
  * @namespace proto
15
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
16
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
17
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
18
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
19
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
20
- * @typedef {import("@hashgraph/proto").proto.ITokenDeleteTransactionBody} HieroProto.proto.ITokenDeleteTransactionBody
21
- * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID
15
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
16
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
17
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
18
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
19
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
20
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenDeleteTransactionBody} HieroProto.proto.ITokenDeleteTransactionBody
21
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
22
22
  */
23
23
 
24
24
  /**
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
5
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
7
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
8
- * @typedef {import("@hashgraph/proto").proto.ITokenDeleteTransactionBody} HieroProto.proto.ITokenDeleteTransactionBody
9
- * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID
3
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
5
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
7
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
8
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenDeleteTransactionBody} HieroProto.proto.ITokenDeleteTransactionBody
9
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
10
10
  */
11
11
  /**
12
12
  * @typedef {import("../channel/Channel.js").default} Channel
@@ -58,13 +58,13 @@ export default class TokenDeleteTransaction extends Transaction {
58
58
  }
59
59
  export namespace HieroProto {
60
60
  namespace proto {
61
- type ITransaction = import("@hashgraph/proto").proto.ITransaction;
62
- type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
63
- type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
64
- type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
65
- type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
66
- type ITokenDeleteTransactionBody = import("@hashgraph/proto").proto.ITokenDeleteTransactionBody;
67
- type ITokenID = import("@hashgraph/proto").proto.ITokenID;
61
+ type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
62
+ type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
63
+ type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
64
+ type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
65
+ type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
66
+ type ITokenDeleteTransactionBody = import("@hiero-ledger/proto").proto.ITokenDeleteTransactionBody;
67
+ type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
68
68
  }
69
69
  }
70
70
  export type Channel = import("../channel/Channel.js").default;
@@ -1 +1 @@
1
- {"version":3,"file":"TokenDeleteTransaction.js","sources":["../../src/token/TokenDeleteTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.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.ITokenDeleteTransactionBody} HieroProto.proto.ITokenDeleteTransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Delete a new Hedera™ crypto-currency token.\n */\nexport default class TokenDeleteTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {TokenId | string} [props.tokenId]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TokenId}\n */\n this._tokenId = null;\n\n if (props.tokenId != null) {\n this.setTokenId(props.tokenId);\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 {TokenDeleteTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const deleteToken =\n /** @type {HieroProto.proto.ITokenDeleteTransactionBody} */ (\n body.tokenDeletion\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenDeleteTransaction({\n tokenId:\n deleteToken.token != null\n ? TokenId._fromProtobuf(deleteToken.token)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?TokenId}\n */\n get tokenId() {\n return this._tokenId;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @returns {this}\n */\n setTokenId(tokenId) {\n this._requireNotFrozen();\n this._tokenId =\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : tokenId.clone();\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._tokenId != null) {\n this._tokenId.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.token.deleteToken(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenDeletion\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenDeleteTransactionBody}\n */\n _makeTransactionData() {\n return {\n token: this._tokenId != null ? this._tokenId._toProtobuf() : 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 `TokenDeleteTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenDeletion\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenDeleteTransaction._fromProtobuf,\n);\n"],"names":["TokenDeleteTransaction","Transaction","constructor","props","super","this","_tokenId","tokenId","setTokenId","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","deleteToken","_fromProtobufTransactions","token","TokenId","undefined","_requireNotFrozen","fromString","clone","_validateChecksums","client","validateChecksum","_execute","channel","request","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"oGA4Be,MAAMA,UAA+BC,EAKhD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,SAAW,KAEK,MAAjBH,EAAMI,SACNF,KAAKG,WAAWL,EAAMI,QAElC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,cAEL,OAAOb,EAAYe,0BACf,IAAIhB,EAAuB,CACvBO,QACyB,MAArBQ,EAAYE,MACNC,EAAQT,cAAcM,EAAYE,YAClCE,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,WAAIP,GACA,OAAOF,KAAKC,QACpB,CAMI,UAAAE,CAAWD,GAOP,OANAF,KAAKe,oBACLf,KAAKC,SACkB,iBAAZC,EACDW,EAAQG,WAAWd,GACnBA,EAAQe,QAEXjB,IACf,CAKI,kBAAAkB,CAAmBC,GACM,MAAjBnB,KAAKC,UACLD,KAAKC,SAASmB,iBAAiBD,EAE3C,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQV,MAAMF,YAAYa,EACzC,CAOI,uBAAAC,GACI,MAAO,eACf,CAOI,oBAAAC,GACI,MAAO,CACHb,MAAwB,MAAjBZ,KAAKC,SAAmBD,KAAKC,SAASyB,cAAgB,KAEzE,CAKI,SAAAC,GAII,MAAO,0BAFH3B,KAAK4B,gBAAgBC,QACxB,WAC0CC,YACnD,EAGAC,EAAqBC,IACjB,gBAEArC,EAAuBS"}
1
+ {"version":3,"file":"TokenDeleteTransaction.js","sources":["../../src/token/TokenDeleteTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.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.ITokenDeleteTransactionBody} HieroProto.proto.ITokenDeleteTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Delete a new Hedera™ crypto-currency token.\n */\nexport default class TokenDeleteTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {TokenId | string} [props.tokenId]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TokenId}\n */\n this._tokenId = null;\n\n if (props.tokenId != null) {\n this.setTokenId(props.tokenId);\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 {TokenDeleteTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const deleteToken =\n /** @type {HieroProto.proto.ITokenDeleteTransactionBody} */ (\n body.tokenDeletion\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenDeleteTransaction({\n tokenId:\n deleteToken.token != null\n ? TokenId._fromProtobuf(deleteToken.token)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?TokenId}\n */\n get tokenId() {\n return this._tokenId;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @returns {this}\n */\n setTokenId(tokenId) {\n this._requireNotFrozen();\n this._tokenId =\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : tokenId.clone();\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._tokenId != null) {\n this._tokenId.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.token.deleteToken(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenDeletion\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenDeleteTransactionBody}\n */\n _makeTransactionData() {\n return {\n token: this._tokenId != null ? this._tokenId._toProtobuf() : 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 `TokenDeleteTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenDeletion\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenDeleteTransaction._fromProtobuf,\n);\n"],"names":["TokenDeleteTransaction","Transaction","constructor","props","super","this","_tokenId","tokenId","setTokenId","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","deleteToken","_fromProtobufTransactions","token","TokenId","undefined","_requireNotFrozen","fromString","clone","_validateChecksums","client","validateChecksum","_execute","channel","request","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"oGA4Be,MAAMA,UAA+BC,EAKhD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,SAAW,KAEK,MAAjBH,EAAMI,SACNF,KAAKG,WAAWL,EAAMI,QAElC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,cAEL,OAAOb,EAAYe,0BACf,IAAIhB,EAAuB,CACvBO,QACyB,MAArBQ,EAAYE,MACNC,EAAQT,cAAcM,EAAYE,YAClCE,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,WAAIP,GACA,OAAOF,KAAKC,QACpB,CAMI,UAAAE,CAAWD,GAOP,OANAF,KAAKe,oBACLf,KAAKC,SACkB,iBAAZC,EACDW,EAAQG,WAAWd,GACnBA,EAAQe,QAEXjB,IACf,CAKI,kBAAAkB,CAAmBC,GACM,MAAjBnB,KAAKC,UACLD,KAAKC,SAASmB,iBAAiBD,EAE3C,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQV,MAAMF,YAAYa,EACzC,CAOI,uBAAAC,GACI,MAAO,eACf,CAOI,oBAAAC,GACI,MAAO,CACHb,MAAwB,MAAjBZ,KAAKC,SAAmBD,KAAKC,SAASyB,cAAgB,KAEzE,CAKI,SAAAC,GAII,MAAO,0BAFH3B,KAAK4B,gBAAgBC,QACxB,WAC0CC,YACnD,EAGAC,EAAqBC,IACjB,gBAEArC,EAAuBS"}
@@ -14,13 +14,13 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
14
14
 
15
15
  /**
16
16
  * @namespace proto
17
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
18
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
19
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
20
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
21
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
22
- * @typedef {import("@hashgraph/proto").proto.ITokenDissociateTransactionBody} HieroProto.proto.ITokenDissociateTransactionBody
23
- * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID
17
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
18
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
19
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
20
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
21
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
22
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenDissociateTransactionBody} HieroProto.proto.ITokenDissociateTransactionBody
23
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
24
24
  */
25
25
 
26
26
  /**
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
5
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
7
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
8
- * @typedef {import("@hashgraph/proto").proto.ITokenDissociateTransactionBody} HieroProto.proto.ITokenDissociateTransactionBody
9
- * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID
3
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
5
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
7
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
8
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenDissociateTransactionBody} HieroProto.proto.ITokenDissociateTransactionBody
9
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
10
10
  */
11
11
  /**
12
12
  * @typedef {import("../channel/Channel.js").default} Channel
@@ -73,13 +73,13 @@ export default class TokenDissociateTransaction extends Transaction {
73
73
  }
74
74
  export namespace HieroProto {
75
75
  namespace proto {
76
- type ITransaction = import("@hashgraph/proto").proto.ITransaction;
77
- type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
78
- type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
79
- type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
80
- type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
81
- type ITokenDissociateTransactionBody = import("@hashgraph/proto").proto.ITokenDissociateTransactionBody;
82
- type ITokenID = import("@hashgraph/proto").proto.ITokenID;
76
+ type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
77
+ type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
78
+ type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
79
+ type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
80
+ type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
81
+ type ITokenDissociateTransactionBody = import("@hiero-ledger/proto").proto.ITokenDissociateTransactionBody;
82
+ type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
83
83
  }
84
84
  }
85
85
  export type Channel = import("../channel/Channel.js").default;
@@ -1 +1 @@
1
- {"version":3,"file":"TokenDissociateTransaction.js","sources":["../../src/token/TokenDissociateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Hbar from \"../Hbar.js\";\nimport TokenId from \"./TokenId.js\";\nimport AccountId from \"../account/AccountId.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.ITokenDissociateTransactionBody} HieroProto.proto.ITokenDissociateTransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Dissociate a new Hedera™ crypto-currency token.\n */\nexport default class TokenDissociateTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {(TokenId | string)[]} [props.tokenIds]\n * @param {AccountId | string} [props.accountId]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TokenId[]}\n */\n this._tokenIds = null;\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._accountId = null;\n\n this._defaultMaxTransactionFee = new Hbar(5);\n\n if (props.tokenIds != null) {\n this.setTokenIds(props.tokenIds);\n }\n\n if (props.accountId != null) {\n this.setAccountId(props.accountId);\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 {TokenDissociateTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const dissociateToken =\n /** @type {HieroProto.proto.ITokenDissociateTransactionBody} */ (\n body.tokenDissociate\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenDissociateTransaction({\n tokenIds:\n dissociateToken.tokens != null\n ? dissociateToken.tokens.map((token) =>\n TokenId._fromProtobuf(token),\n )\n : undefined,\n accountId:\n dissociateToken.account != null\n ? AccountId._fromProtobuf(dissociateToken.account)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?TokenId[]}\n */\n get tokenIds() {\n return this._tokenIds;\n }\n\n /**\n * @param {(TokenId | string)[]} tokenIds\n * @returns {this}\n */\n setTokenIds(tokenIds) {\n this._requireNotFrozen();\n this._tokenIds = tokenIds.map((tokenId) =>\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : tokenId.clone(),\n );\n\n return this;\n }\n\n /**\n * @returns {?AccountId}\n */\n get accountId() {\n return this._accountId;\n }\n\n /**\n * @param {AccountId | string} accountId\n * @returns {this}\n */\n setAccountId(accountId) {\n this._requireNotFrozen();\n this._accountId =\n typeof accountId === \"string\"\n ? AccountId.fromString(accountId)\n : accountId.clone();\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._accountId != null) {\n this._accountId.validateChecksum(client);\n }\n\n for (const tokenId of this._tokenIds != null ? this._tokenIds : []) {\n if (tokenId != null) {\n tokenId.validateChecksum(client);\n }\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.token.dissociateTokens(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenDissociate\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenDissociateTransactionBody}\n */\n _makeTransactionData() {\n return {\n tokens:\n this._tokenIds != null\n ? this._tokenIds.map((tokenId) => tokenId._toProtobuf())\n : null,\n account:\n this._accountId != null ? this._accountId._toProtobuf() : 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 `TokenDissociateTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenDissociate\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenDissociateTransaction._fromProtobuf,\n);\n"],"names":["TokenDissociateTransaction","Transaction","constructor","props","super","this","_tokenIds","_accountId","_defaultMaxTransactionFee","Hbar","tokenIds","setTokenIds","accountId","setAccountId","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","dissociateToken","_fromProtobufTransactions","tokens","map","token","TokenId","undefined","account","AccountId","_requireNotFrozen","tokenId","fromString","clone","_validateChecksums","client","validateChecksum","_execute","channel","request","dissociateTokens","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"qKA6Be,MAAMA,UAAmCC,EAMpD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,UAAY,KAMjBD,KAAKE,WAAa,KAElBF,KAAKG,0BAA4B,IAAIC,EAAK,GAEpB,MAAlBN,EAAMO,UACNL,KAAKM,YAAYR,EAAMO,UAGJ,MAAnBP,EAAMS,WACNP,KAAKQ,aAAaV,EAAMS,UAEpC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,gBAEL,OAAOlB,EAAYoB,0BACf,IAAIrB,EAA2B,CAC3BU,SAC8B,MAA1BU,EAAgBE,OACVF,EAAgBE,OAAOC,IAAKC,GACxBC,EAAQX,cAAcU,SAE1BE,EACVd,UAC+B,MAA3BQ,EAAgBO,QACVC,EAAUd,cAAcM,EAAgBO,cACxCD,IAEdX,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,YAAIT,GACA,OAAOL,KAAKC,SACpB,CAMI,WAAAK,CAAYD,GAQR,OAPAL,KAAKwB,oBACLxB,KAAKC,UAAYI,EAASa,IAAKO,GACR,iBAAZA,EACDL,EAAQM,WAAWD,GACnBA,EAAQE,SAGX3B,IACf,CAKI,aAAIO,GACA,OAAOP,KAAKE,UACpB,CAMI,YAAAM,CAAaD,GAOT,OANAP,KAAKwB,oBACLxB,KAAKE,WACoB,iBAAdK,EACDgB,EAAUG,WAAWnB,GACrBA,EAAUoB,QAEb3B,IACf,CAKI,kBAAA4B,CAAmBC,GACQ,MAAnB7B,KAAKE,YACLF,KAAKE,WAAW4B,iBAAiBD,GAGrC,IAAK,MAAMJ,KAA6B,MAAlBzB,KAAKC,UAAoBD,KAAKC,UAAY,GAC7C,MAAXwB,GACAA,EAAQK,iBAAiBD,EAGzC,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQb,MAAMe,iBAAiBD,EAC9C,CAOI,uBAAAE,GACI,MAAO,iBACf,CAOI,oBAAAC,GACI,MAAO,CACHnB,OACsB,MAAlBjB,KAAKC,UACCD,KAAKC,UAAUiB,IAAKO,GAAYA,EAAQY,eACxC,KACVf,QACuB,MAAnBtB,KAAKE,WAAqBF,KAAKE,WAAWmC,cAAgB,KAE1E,CAKI,SAAAC,GAII,MAAO,8BAFHtC,KAAKuC,gBAAgBC,QACxB,WAC8CC,YACvD,EAGAC,EAAqBC,IACjB,kBAEAhD,EAA2Bc"}
1
+ {"version":3,"file":"TokenDissociateTransaction.js","sources":["../../src/token/TokenDissociateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Hbar from \"../Hbar.js\";\nimport TokenId from \"./TokenId.js\";\nimport AccountId from \"../account/AccountId.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.ITokenDissociateTransactionBody} HieroProto.proto.ITokenDissociateTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n */\n\n/**\n * Dissociate a new Hedera™ crypto-currency token.\n */\nexport default class TokenDissociateTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {(TokenId | string)[]} [props.tokenIds]\n * @param {AccountId | string} [props.accountId]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TokenId[]}\n */\n this._tokenIds = null;\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._accountId = null;\n\n this._defaultMaxTransactionFee = new Hbar(5);\n\n if (props.tokenIds != null) {\n this.setTokenIds(props.tokenIds);\n }\n\n if (props.accountId != null) {\n this.setAccountId(props.accountId);\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 {TokenDissociateTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const dissociateToken =\n /** @type {HieroProto.proto.ITokenDissociateTransactionBody} */ (\n body.tokenDissociate\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenDissociateTransaction({\n tokenIds:\n dissociateToken.tokens != null\n ? dissociateToken.tokens.map((token) =>\n TokenId._fromProtobuf(token),\n )\n : undefined,\n accountId:\n dissociateToken.account != null\n ? AccountId._fromProtobuf(dissociateToken.account)\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?TokenId[]}\n */\n get tokenIds() {\n return this._tokenIds;\n }\n\n /**\n * @param {(TokenId | string)[]} tokenIds\n * @returns {this}\n */\n setTokenIds(tokenIds) {\n this._requireNotFrozen();\n this._tokenIds = tokenIds.map((tokenId) =>\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : tokenId.clone(),\n );\n\n return this;\n }\n\n /**\n * @returns {?AccountId}\n */\n get accountId() {\n return this._accountId;\n }\n\n /**\n * @param {AccountId | string} accountId\n * @returns {this}\n */\n setAccountId(accountId) {\n this._requireNotFrozen();\n this._accountId =\n typeof accountId === \"string\"\n ? AccountId.fromString(accountId)\n : accountId.clone();\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._accountId != null) {\n this._accountId.validateChecksum(client);\n }\n\n for (const tokenId of this._tokenIds != null ? this._tokenIds : []) {\n if (tokenId != null) {\n tokenId.validateChecksum(client);\n }\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.token.dissociateTokens(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenDissociate\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenDissociateTransactionBody}\n */\n _makeTransactionData() {\n return {\n tokens:\n this._tokenIds != null\n ? this._tokenIds.map((tokenId) => tokenId._toProtobuf())\n : null,\n account:\n this._accountId != null ? this._accountId._toProtobuf() : 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 `TokenDissociateTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenDissociate\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenDissociateTransaction._fromProtobuf,\n);\n"],"names":["TokenDissociateTransaction","Transaction","constructor","props","super","this","_tokenIds","_accountId","_defaultMaxTransactionFee","Hbar","tokenIds","setTokenIds","accountId","setAccountId","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","dissociateToken","_fromProtobufTransactions","tokens","map","token","TokenId","undefined","account","AccountId","_requireNotFrozen","tokenId","fromString","clone","_validateChecksums","client","validateChecksum","_execute","channel","request","dissociateTokens","_getTransactionDataCase","_makeTrans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I,uBAAAE,GACI,MAAO,iBACf,CAOI,oBAAAC,GACI,MAAO,CACHnB,OACsB,MAAlBjB,KAAKC,UACCD,KAAKC,UAAUiB,IAAKO,GAAYA,EAAQY,eACxC,KACVf,QACuB,MAAnBtB,KAAKE,WAAqBF,KAAKE,WAAWmC,cAAgB,KAE1E,CAKI,SAAAC,GAII,MAAO,8BAFHtC,KAAKuC,gBAAgBC,QACxB,WAC8CC,YACvD,EAGAC,EAAqBC,IACjB,kBAEAhD,EAA2Bc"}
@@ -15,13 +15,13 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
15
15
 
16
16
  /**
17
17
  * @namespace proto
18
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
19
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
20
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
21
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
22
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
23
- * @typedef {import("@hashgraph/proto").proto.ITokenFeeScheduleUpdateTransactionBody} HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody
24
- * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID
18
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
19
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
20
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
21
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
22
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
23
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenFeeScheduleUpdateTransactionBody} HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody
24
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
25
25
  */
26
26
 
27
27
  /**
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
5
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
7
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
8
- * @typedef {import("@hashgraph/proto").proto.ITokenFeeScheduleUpdateTransactionBody} HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody
9
- * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID
3
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
5
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
7
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
8
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenFeeScheduleUpdateTransactionBody} HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody
9
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
10
10
  */
11
11
  /**
12
12
  * @typedef {import("bignumber.js").default} BigNumber
@@ -75,13 +75,13 @@ export default class TokenFeeScheduleUpdateTransaction extends Transaction {
75
75
  }
76
76
  export namespace HieroProto {
77
77
  namespace proto {
78
- type ITransaction = import("@hashgraph/proto").proto.ITransaction;
79
- type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
80
- type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
81
- type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
82
- type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
83
- type ITokenFeeScheduleUpdateTransactionBody = import("@hashgraph/proto").proto.ITokenFeeScheduleUpdateTransactionBody;
84
- type ITokenID = import("@hashgraph/proto").proto.ITokenID;
78
+ type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
79
+ type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
80
+ type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
81
+ type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
82
+ type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
83
+ type ITokenFeeScheduleUpdateTransactionBody = import("@hiero-ledger/proto").proto.ITokenFeeScheduleUpdateTransactionBody;
84
+ type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
85
85
  }
86
86
  }
87
87
  export type BigNumber = import("bignumber.js").default;
@@ -1 +1 @@
1
- {"version":3,"file":"TokenFeeScheduleUpdateTransaction.js","sources":["../../src/token/TokenFeeScheduleUpdateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport CustomFixedFee from \"./CustomFixedFee.js\";\nimport CustomFractionalFee from \"./CustomFractionalFee.js\";\nimport CustomRoyaltyFee from \"./CustomRoyaltyFee.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.ITokenFeeScheduleUpdateTransactionBody} HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"./CustomFee.js\").default} CustomFee\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n */\n\n/**\n * FeeScheduleUpdate a new Hedera™ crypto-currency token.\n */\nexport default class TokenFeeScheduleUpdateTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {TokenId | string} [props.tokenId]\n * @param {CustomFee[]} [props.customFees]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TokenId}\n */\n this._tokenId = null;\n\n /**\n * @private\n * @type {CustomFee[]}\n */\n this._customFees = [];\n\n if (props.tokenId != null) {\n this.setTokenId(props.tokenId);\n }\n\n if (props.customFees != null) {\n this.setCustomFees(props.customFees);\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 {TokenFeeScheduleUpdateTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const feeScheduleUpdate =\n /** @type {HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody} */ (\n body.tokenFeeScheduleUpdate\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenFeeScheduleUpdateTransaction({\n tokenId:\n feeScheduleUpdate.tokenId != null\n ? TokenId._fromProtobuf(feeScheduleUpdate.tokenId)\n : undefined,\n customFees:\n feeScheduleUpdate.customFees != null\n ? feeScheduleUpdate.customFees.map((fee) => {\n if (fee.fixedFee != null) {\n return CustomFixedFee._fromProtobuf(fee);\n } else if (fee.fractionalFee != null) {\n return CustomFractionalFee._fromProtobuf(fee);\n } else {\n return CustomRoyaltyFee._fromProtobuf(fee);\n }\n })\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?TokenId}\n */\n get tokenId() {\n return this._tokenId;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @returns {this}\n */\n setTokenId(tokenId) {\n this._requireNotFrozen();\n this._tokenId =\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : TokenId._fromProtobuf(tokenId._toProtobuf());\n\n return this;\n }\n\n /**\n * @returns {CustomFee[]}\n */\n get customFees() {\n return this._customFees;\n }\n\n /**\n * @param {CustomFee[]} fees\n * @returns {this}\n */\n setCustomFees(fees) {\n this._requireNotFrozen();\n this._customFees = fees;\n\n return this;\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.token.updateTokenFeeSchedule(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenFeeScheduleUpdate\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody}\n */\n _makeTransactionData() {\n return {\n tokenId: this._tokenId != null ? this._tokenId._toProtobuf() : null,\n customFees: this._customFees.map((fee) => fee._toProtobuf()),\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 `TokenFeeScheduleUpdateTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenFeeScheduleUpdate\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenFeeScheduleUpdateTransaction._fromProtobuf,\n);\n"],"names":["TokenFeeScheduleUpdateTransaction","Transaction","constructor","props","super","this","_tokenId","_customFees","tokenId","setTokenId","customFees","setCustomFees","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","feeScheduleUpdate","_fromProtobufTransactions","TokenId","undefined","map","fee","fixedFee","CustomFixedFee","fractionalFee","CustomFractionalFee","CustomRoyaltyFee","_requireNotFrozen","fromString","_toProtobuf","fees","_execute","channel","request","token","updateTokenFeeSchedule","_getTransactionDataCase","_makeTransactionData","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"oNAgCe,MAAMA,UAA0CC,EAM3D,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,SAAW,KAMhBD,KAAKE,YAAc,GAEE,MAAjBJ,EAAMK,SACNH,KAAKI,WAAWN,EAAMK,SAGF,MAApBL,EAAMO,YACNL,KAAKM,cAAcR,EAAMO,WAErC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,uBAEL,OAAOhB,EAAYkB,0BACf,IAAInB,EAAkC,CAClCQ,QACiC,MAA7BU,EAAkBV,QACZY,EAAQR,cAAcM,EAAkBV,cACxCa,EACVX,WACoC,MAAhCQ,EAAkBR,WACZQ,EAAkBR,WAAWY,IAAKC,GACV,MAAhBA,EAAIC,SACGC,EAAeb,cAAcW,GACR,MAArBA,EAAIG,cACJC,EAAoBf,cAAcW,GAElCK,EAAiBhB,cAAcW,SAG9CF,IAEdR,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,WAAIT,GACA,OAAOH,KAAKC,QACpB,CAMI,UAAAG,CAAWD,GAOP,OANAH,KAAKwB,oBACLxB,KAAKC,SACkB,iBAAZE,EACDY,EAAQU,WAAWtB,GACnBY,EAAQR,cAAcJ,EAAQuB,eAEjC1B,IACf,CAKI,cAAIK,GACA,OAAOL,KAAKE,WACpB,CAMI,aAAAI,CAAcqB,GAIV,OAHA3B,KAAKwB,oBACLxB,KAAKE,YAAcyB,EAEZ3B,IACf,CASI,QAAA4B,CAASC,EAASC,GACd,OAAOD,EAAQE,MAAMC,uBAAuBF,EACpD,CAOI,uBAAAG,GACI,MAAO,wBACf,CAOI,oBAAAC,GACI,MAAO,CACH/B,QAA0B,MAAjBH,KAAKC,SAAmBD,KAAKC,SAASyB,cAAgB,KAC/DrB,WAAYL,KAAKE,YAAYe,IAAKC,GAAQA,EAAIQ,eAE1D,CAKI,SAAAS,GAII,MAAO,qCAFHnC,KAAKoC,gBAAgBC,QACxB,WACqDC,YAC9D,EAGAC,EAAqBC,IACjB,yBAEA7C,EAAkCY"}
1
+ {"version":3,"file":"TokenFeeScheduleUpdateTransaction.js","sources":["../../src/token/TokenFeeScheduleUpdateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport TokenId from \"./TokenId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport CustomFixedFee from \"./CustomFixedFee.js\";\nimport CustomFractionalFee from \"./CustomFractionalFee.js\";\nimport CustomRoyaltyFee from \"./CustomRoyaltyFee.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.ITokenFeeScheduleUpdateTransactionBody} HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.ITokenID} HieroProto.proto.ITokenID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"./CustomFee.js\").default} CustomFee\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n */\n\n/**\n * FeeScheduleUpdate a new Hedera™ crypto-currency token.\n */\nexport default class TokenFeeScheduleUpdateTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {TokenId | string} [props.tokenId]\n * @param {CustomFee[]} [props.customFees]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?TokenId}\n */\n this._tokenId = null;\n\n /**\n * @private\n * @type {CustomFee[]}\n */\n this._customFees = [];\n\n if (props.tokenId != null) {\n this.setTokenId(props.tokenId);\n }\n\n if (props.customFees != null) {\n this.setCustomFees(props.customFees);\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 {TokenFeeScheduleUpdateTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const feeScheduleUpdate =\n /** @type {HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody} */ (\n body.tokenFeeScheduleUpdate\n );\n\n return Transaction._fromProtobufTransactions(\n new TokenFeeScheduleUpdateTransaction({\n tokenId:\n feeScheduleUpdate.tokenId != null\n ? TokenId._fromProtobuf(feeScheduleUpdate.tokenId)\n : undefined,\n customFees:\n feeScheduleUpdate.customFees != null\n ? feeScheduleUpdate.customFees.map((fee) => {\n if (fee.fixedFee != null) {\n return CustomFixedFee._fromProtobuf(fee);\n } else if (fee.fractionalFee != null) {\n return CustomFractionalFee._fromProtobuf(fee);\n } else {\n return CustomRoyaltyFee._fromProtobuf(fee);\n }\n })\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?TokenId}\n */\n get tokenId() {\n return this._tokenId;\n }\n\n /**\n * @param {TokenId | string} tokenId\n * @returns {this}\n */\n setTokenId(tokenId) {\n this._requireNotFrozen();\n this._tokenId =\n typeof tokenId === \"string\"\n ? TokenId.fromString(tokenId)\n : TokenId._fromProtobuf(tokenId._toProtobuf());\n\n return this;\n }\n\n /**\n * @returns {CustomFee[]}\n */\n get customFees() {\n return this._customFees;\n }\n\n /**\n * @param {CustomFee[]} fees\n * @returns {this}\n */\n setCustomFees(fees) {\n this._requireNotFrozen();\n this._customFees = fees;\n\n return this;\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.token.updateTokenFeeSchedule(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"tokenFeeScheduleUpdate\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.ITokenFeeScheduleUpdateTransactionBody}\n */\n _makeTransactionData() {\n return {\n tokenId: this._tokenId != null ? this._tokenId._toProtobuf() : null,\n customFees: this._customFees.map((fee) => fee._toProtobuf()),\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 `TokenFeeScheduleUpdateTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"tokenFeeScheduleUpdate\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n TokenFeeScheduleUpdateTransaction._fromProtobuf,\n);\n"],"names":["TokenFeeScheduleUpdateTransaction","Transaction","constructor","props","super","this","_tokenId","_customFees","tokenId","setTokenId","customFees","setCustomFees","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","feeScheduleUpdate","_fromProtobufTransactions","TokenId","undefined","map","fee","fixedFee","CustomFixedFee","fractionalFee","CustomFractionalFee","CustomRoyaltyFee","_requireNotFrozen","fromString","_toProtobuf","fees","_execute","channel","request","token","updateTokenFeeSchedule","_getTransactionDataCase","_makeTransactionData","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"oNAgCe,MAAMA,UAA0CC,EAM3D,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,SAAW,KAMhBD,KAAKE,YAAc,GAEE,MAAjBJ,EAAMK,SACNH,KAAKI,WAAWN,EAAMK,SAGF,MAApBL,EAAMO,YACNL,KAAKM,cAAcR,EAAMO,WAErC,CAWI,oBAAOE,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,uBAEL,OAAOhB,EAAYkB,0BACf,IAAInB,EAAkC,CAClCQ,QACiC,MAA7BU,EAAkBV,QACZY,EAAQR,cAAcM,EAAkBV,cACxCa,EACVX,WACoC,MAAhCQ,EAAkBR,WACZQ,EAAkBR,WAAWY,IAAKC,GACV,MAAhBA,EAAIC,SACGC,EAAeb,cAAcW,GACR,MAArBA,EAAIG,cACJC,EAAoBf,cAAcW,GAElCK,EAAiBhB,cAAcW,SAG9CF,IAEdR,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,WAAIT,GACA,OAAOH,KAAKC,QACpB,CAMI,UAAAG,CAAWD,GAOP,OANAH,KAAKwB,oBACLxB,KAAKC,SACkB,iBAAZE,EACDY,EAAQU,WAAWtB,GACnBY,EAAQR,cAAcJ,EAAQuB,eAEjC1B,IACf,CAKI,cAAIK,GACA,OAAOL,KAAKE,WACpB,CAMI,aAAAI,CAAcqB,GAIV,OAHA3B,KAAKwB,oBACLxB,KAAKE,YAAcyB,EAEZ3B,IACf,CASI,QAAA4B,CAASC,EAASC,GACd,OAAOD,EAAQE,MAAMC,uBAAuBF,EACpD,CAOI,uBAAAG,GACI,MAAO,wBACf,CAOI,oBAAAC,GACI,MAAO,CACH/B,QAA0B,MAAjBH,KAAKC,SAAmBD,KAAKC,SAASyB,cAAgB,KAC/DrB,WAAYL,KAAKE,YAAYe,IAAKC,GAAQA,EAAIQ,eAE1D,CAKI,SAAAS,GAII,MAAO,qCAFHnC,KAAKoC,gBAAgBC,QACxB,WACqDC,YAC9D,EAGAC,EAAqBC,IACjB,yBAEA7C,EAAkCY"}
@@ -13,13 +13,13 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
13
 
14
14
  /**
15
15
  * @namespace proto
16
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
17
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
18
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
19
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
20
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
21
- * @typedef {import("@hashgraph/proto").proto.ITokenFreezeAccountTransactionBody} HieroProto.proto.ITokenFreezeAccountTransactionBody
22
- * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID
16
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
17
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
18
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
19
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
20
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
21
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenFreezeAccountTransactionBody} HieroProto.proto.ITokenFreezeAccountTransactionBody
22
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
23
23
  */
24
24
 
25
25
  /**
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
5
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
7
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
8
- * @typedef {import("@hashgraph/proto").proto.ITokenFreezeAccountTransactionBody} HieroProto.proto.ITokenFreezeAccountTransactionBody
9
- * @typedef {import("@hashgraph/proto").proto.ITokenID} HieroProto.proto.ITokenID
3
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
4
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
5
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
6
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
7
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
8
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenFreezeAccountTransactionBody} HieroProto.proto.ITokenFreezeAccountTransactionBody
9
+ * @typedef {import("@hiero-ledger/proto").proto.ITokenID} HieroProto.proto.ITokenID
10
10
  */
11
11
  /**
12
12
  * @typedef {import("../channel/Channel.js").default} Channel
@@ -73,13 +73,13 @@ export default class TokenFreezeTransaction extends Transaction {
73
73
  }
74
74
  export namespace HieroProto {
75
75
  namespace proto {
76
- type ITransaction = import("@hashgraph/proto").proto.ITransaction;
77
- type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
78
- type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
79
- type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
80
- type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
81
- type ITokenFreezeAccountTransactionBody = import("@hashgraph/proto").proto.ITokenFreezeAccountTransactionBody;
82
- type ITokenID = import("@hashgraph/proto").proto.ITokenID;
76
+ type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
77
+ type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
78
+ type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
79
+ type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
80
+ type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
81
+ type ITokenFreezeAccountTransactionBody = import("@hiero-ledger/proto").proto.ITokenFreezeAccountTransactionBody;
82
+ type ITokenID = import("@hiero-ledger/proto").proto.ITokenID;
83
83
  }
84
84
  }
85
85
  export type Channel = import("../channel/Channel.js").default;