@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":"ScheduleCreateTransaction.js","sources":["../../src/schedule/ScheduleCreateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Timestamp from \"../Timestamp.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n SCHEDULE_CREATE_TRANSACTION,\n} from \"../transaction/Transaction.js\";\nimport Key from \"../Key.js\";\nimport Hbar from \"../Hbar.js\";\nimport * as HieroProto from \"@hashgraph/proto\";\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(\"../PublicKey.js\").default} PublicKey\n * @typedef {import(\"../PrivateKey.js\").default} PrivateKey\n */\n\n/**\n * Create a new Hedera™ crypto-currency account.\n */\nexport default class ScheduleCreateTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {Key} [props.adminKey]\n * @param {AccountId} [props.payerAccountID]\n * @param {string} [props.scheduleMemo]\n * @param {Timestamp} [props.expirationTime]\n * @param {boolean} [props.waitForExpiry]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?Key}\n */\n this._adminKey = null;\n\n /**\n * @private\n * @type {?Transaction}\n */\n this._scheduledTransaction = null;\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._payerAccountId = null;\n\n /**\n * @private\n * @type {?string}\n */\n this._scheduleMemo = null;\n\n /**\n * @private\n * @type {Set<string>}\n */\n this._scheduledSignerPublicKeys = new Set();\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._expirationTime = null;\n\n /**\n * @private\n * @type {?boolean}\n */\n this._waitForExpiry = null;\n\n if (props.adminKey != null) {\n this.setAdminKey(props.adminKey);\n }\n\n if (props.payerAccountID != null) {\n this.setPayerAccountId(props.payerAccountID);\n }\n\n if (props.scheduleMemo != null) {\n this.setScheduleMemo(props.scheduleMemo);\n }\n\n this._defaultMaxTransactionFee = new Hbar(5);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {ScheduleCreateTransaction}\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.IScheduleCreateTransactionBody} */ (\n body.scheduleCreate\n );\n\n const scheduledTransaction = new ScheduleCreateTransaction({\n adminKey:\n create.adminKey != null\n ? Key._fromProtobufKey(create.adminKey)\n : undefined,\n payerAccountID:\n create.payerAccountID != null\n ? AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n create.payerAccountID\n ),\n )\n : undefined,\n scheduleMemo: create.memo != null ? create.memo : undefined,\n waitForExpiry:\n create.waitForExpiry != null ? create.waitForExpiry : undefined,\n expirationTime:\n create.expirationTime != null\n ? Timestamp._fromProtobuf(create.expirationTime)\n : undefined,\n });\n if (body.scheduleCreate != null) {\n const scheduleCreateBody =\n body.scheduleCreate.scheduledTransactionBody;\n\n const scheduleCreateBodyBytes =\n HieroProto.proto.TransactionBody.encode(\n // @ts-ignore\n scheduleCreateBody,\n ).finish();\n\n const signedScheduledCreateTransaction =\n HieroProto.proto.SignedTransaction.encode({\n bodyBytes: scheduleCreateBodyBytes,\n }).finish();\n\n const scheduleCreatetransaction = {\n signedTransactionBytes: signedScheduledCreateTransaction,\n };\n\n const txlist = HieroProto.proto.TransactionList.encode({\n transactionList: [scheduleCreatetransaction],\n }).finish();\n\n const finalScheduledDecodedTx = Transaction.fromBytes(txlist);\n\n scheduledTransaction._setScheduledTransaction(\n finalScheduledDecodedTx,\n );\n }\n\n return Transaction._fromProtobufTransactions(\n scheduledTransaction,\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @internal\n * @param {Transaction} tx\n * @returns {this}\n */\n _setScheduledTransaction(tx) {\n this._scheduledTransaction = tx;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get adminKey() {\n return this._adminKey;\n }\n\n /**\n * Set the key for this account.\n *\n * This is the key that must sign each transfer out of the account.\n *\n * If `receiverSignatureRequired` is true, then the key must also sign\n * any transfer into the account.\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 {?AccountId}\n */\n get payerAccountId() {\n return this._payerAccountId;\n }\n\n /**\n * @param {AccountId} account\n * @returns {this}\n */\n setPayerAccountId(account) {\n this._requireNotFrozen();\n this._payerAccountId = account;\n\n return this;\n }\n\n /**\n * @param {string} memo\n * @returns {this}\n */\n setScheduleMemo(memo) {\n this._requireNotFrozen();\n this._scheduleMemo = memo;\n\n return this;\n }\n\n /**\n * @returns {?string}\n */\n get getScheduleMemo() {\n this._requireNotFrozen();\n return this._scheduleMemo;\n }\n\n /**\n * @param {Transaction} transaction\n * @returns {this}\n */\n setScheduledTransaction(transaction) {\n this._requireNotFrozen();\n transaction._requireNotFrozen();\n\n this._scheduledTransaction =\n transaction.schedule()._scheduledTransaction;\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._payerAccountId != null) {\n this._payerAccountId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.schedule.createSchedule(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"scheduleCreate\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IScheduleCreateTransactionBody}\n */\n _makeTransactionData() {\n return {\n adminKey:\n this._adminKey != null ? this._adminKey._toProtobufKey() : null,\n payerAccountID:\n this._payerAccountId != null\n ? this._payerAccountId._toProtobuf()\n : null,\n scheduledTransactionBody:\n this._scheduledTransaction != null\n ? this._scheduledTransaction._getScheduledTransactionBody()\n : null,\n memo: this._scheduleMemo,\n waitForExpiry: this._waitForExpiry,\n expirationTime:\n this._expirationTime != null\n ? this._expirationTime._toProtobuf()\n : null,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `ScheduleCreateTransaction:${timestamp.toString()}`;\n }\n\n /**\n * @param {?Timestamp} expirationTime\n * @returns {this}\n */\n setExpirationTime(expirationTime) {\n this._expirationTime = expirationTime;\n return this;\n }\n\n /**\n * @returns {?Timestamp}\n */\n get expirationTime() {\n this._requireNotFrozen();\n return this._expirationTime;\n }\n\n /**\n * @param {boolean} waitForExpiry\n * @returns {this}\n */\n setWaitForExpiry(waitForExpiry) {\n this._waitForExpiry = waitForExpiry;\n\n return this;\n }\n\n /**\n * @returns {?boolean}\n */\n get waitForExpiry() {\n this._requireNotFrozen();\n return this._waitForExpiry;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"scheduleCreate\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n ScheduleCreateTransaction._fromProtobuf,\n);\n\nSCHEDULE_CREATE_TRANSACTION.push(() => new ScheduleCreateTransaction());\n"],"names":["ScheduleCreateTransaction","Transaction","constructor","props","super","this","_adminKey","_scheduledTransaction","_payerAccountId","_scheduleMemo","_scheduledSignerPublicKeys","Set","_expirationTime","_waitForExpiry","adminKey","setAdminKey","payerAccountID","setPayerAccountId","scheduleMemo","setScheduleMemo","_defaultMaxTransactionFee","Hbar","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","body","create","scheduledTransaction","Key","_fromProtobufKey","undefined","AccountId","memo","waitForExpiry","expirationTime","Timestamp","scheduleCreate","scheduleCreateBody","scheduledTransactionBody","scheduleCreateBodyBytes","HieroProto","proto","TransactionBody","encode","finish","scheduleCreatetransaction","signedTransactionBytes","SignedTransaction","bodyBytes","txlist","TransactionList","transactionList","finalScheduledDecodedTx","fromBytes","_setScheduledTransaction","_fromProtobufTransactions","tx","key","_requireNotFrozen","payerAccountId","account","getScheduleMemo","setScheduledTransaction","transaction","schedule","_validateChecksums","client","validateChecksum","_execute","channel","request","createSchedule","_getTransactionDataCase","_makeTransactionData","_toProtobufKey","_toProtobuf","_getScheduledTransactionBody","_getLogId","_transactionIds","current","toString","setExpirationTime","setWaitForExpiry","TRANSACTION_REGISTRY","set","SCHEDULE_CREATE_TRANSACTION","push"],"mappings":"qQAwBe,MAAMA,UAAkCC,EASnD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,UAAY,KAMjBD,KAAKE,sBAAwB,KAM7BF,KAAKG,gBAAkB,KAMvBH,KAAKI,cAAgB,KAMrBJ,KAAKK,2BAA6B,IAAIC,IAMtCN,KAAKO,gBAAkB,KAMvBP,KAAKQ,eAAiB,KAEA,MAAlBV,EAAMW,UACNT,KAAKU,YAAYZ,EAAMW,UAGC,MAAxBX,EAAMa,gBACNX,KAAKY,kBAAkBd,EAAMa,gBAGP,MAAtBb,EAAMe,cACNb,KAAKc,gBAAgBhB,EAAMe,cAG/Bb,KAAKe,0BAA4B,IAAIC,EAAK,EAClD,CAWI,oBAAOC,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOD,EAAO,GACdE,EAEED,EACH,eAECE,EAAuB,IAAI9B,EAA0B,CACvDc,SACuB,MAAnBe,EAAOf,SACDiB,EAAIC,iBAAiBH,EAAOf,eAC5BmB,EACVjB,eAC6B,MAAzBa,EAAOb,eACDkB,EAAUZ,cAEFO,EAC9B,qBAEsBI,EACVf,aAA6B,MAAfW,EAAOM,KAAeN,EAAOM,UAAOF,EAClDG,cAC4B,MAAxBP,EAAOO,cAAwBP,EAAOO,mBAAgBH,EAC1DI,eAC6B,MAAzBR,EAAOQ,eACDC,EAAUhB,cAAcO,EAAOQ,qBAC/BJ,IAEd,GAA2B,MAAvBL,EAAKW,eAAwB,CAC7B,MAAMC,EACFZ,EAAKW,eAAeE,yBAElBC,EACFC,EAAWC,MAAMC,gBAAgBC,OAE7BN,GACFO,SAOAC,EAA4B,CAC9BC,uBALAN,EAAWC,MAAMM,kBAAkBJ,OAAO,CACtCK,UAAWT,IACZK,UAMDK,EAAST,EAAWC,MAAMS,gBAAgBP,OAAO,CACnDQ,gBAAiB,CAACN,KACnBD,SAEGQ,EAA0BtD,EAAYuD,UAAUJ,GAEtDtB,EAAqB2B,yBACjBF,EAEhB,CAEQ,OAAOtD,EAAYyD,0BACf5B,EACAP,EACAC,EACAC,EACAC,EACAC,EAEZ,CAOI,wBAAA8B,CAAyBE,GAGrB,OAFAtD,KAAKE,sBAAwBoD,EAEtBtD,IACf,CAKI,YAAIS,GACA,OAAOT,KAAKC,SACpB,CAaI,WAAAS,CAAY6C,GAIR,OAHAvD,KAAKwD,oBACLxD,KAAKC,UAAYsD,EAEVvD,IACf,CAKI,kBAAIyD,GACA,OAAOzD,KAAKG,eACpB,CAMI,iBAAAS,CAAkB8C,GAId,OAHA1D,KAAKwD,oBACLxD,KAAKG,gBAAkBuD,EAEhB1D,IACf,CAMI,eAAAc,CAAgBgB,GAIZ,OAHA9B,KAAKwD,oBACLxD,KAAKI,cAAgB0B,EAEd9B,IACf,CAKI,mBAAI2D,GAEA,OADA3D,KAAKwD,oBACExD,KAAKI,aACpB,CAMI,uBAAAwD,CAAwBC,GAOpB,OANA7D,KAAKwD,oBACLK,EAAYL,oBAEZxD,KAAKE,sBACD2D,EAAYC,WAAW5D,sBAEpBF,IACf,CAKI,kBAAA+D,CAAmBC,GACa,MAAxBhE,KAAKG,iBACLH,KAAKG,gBAAgB8D,iBAAiBD,EAElD,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQL,SAASO,eAAeD,EAC/C,CAOI,uBAAAE,GACI,MAAO,gBACf,CAOI,oBAAAC,GACI,MAAO,CACH9D,SACsB,MAAlBT,KAAKC,UAAoBD,KAAKC,UAAUuE,iBAAmB,KAC/D7D,eAC4B,MAAxBX,KAAKG,gBACCH,KAAKG,gBAAgBsE,cACrB,KACVrC,yBACkC,MAA9BpC,KAAKE,sBACCF,KAAKE,sBAAsBwE,+BAC3B,KACV5C,KAAM9B,KAAKI,cACX2B,cAAe/B,KAAKQ,eACpBwB,eAC4B,MAAxBhC,KAAKO,gBACCP,KAAKO,gBAAgBkE,cACrB,KAEtB,CAKI,SAAAE,GAII,MAAO,6BAFH3E,KAAK4E,gBAAgBC,QACxB,WAC6CC,YACtD,CAMI,iBAAAC,CAAkB/C,GAEd,OADAhC,KAAKO,gBAAkByB,EAChBhC,IACf,CAKI,kBAAIgC,GAEA,OADAhC,KAAKwD,oBACExD,KAAKO,eACpB,CAMI,gBAAAyE,CAAiBjD,GAGb,OAFA/B,KAAKQ,eAAiBuB,EAEf/B,IACf,CAKI,iBAAI+B,GAEA,OADA/B,KAAKwD,oBACExD,KAAKQ,cACpB,EAGAyE,EAAqBC,IACjB,iBAEAvF,EAA0BsB,eAG9BkE,EAA4BC,KAAK,IAAM,IAAIzF"}
1
+ {"version":3,"file":"ScheduleCreateTransaction.js","sources":["../../src/schedule/ScheduleCreateTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Timestamp from \"../Timestamp.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n SCHEDULE_CREATE_TRANSACTION,\n} from \"../transaction/Transaction.js\";\nimport Key from \"../Key.js\";\nimport Hbar from \"../Hbar.js\";\nimport * as HieroProto from \"@hiero-ledger/proto\";\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(\"../PublicKey.js\").default} PublicKey\n * @typedef {import(\"../PrivateKey.js\").default} PrivateKey\n */\n\n/**\n * Create a new Hedera™ crypto-currency account.\n */\nexport default class ScheduleCreateTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {Key} [props.adminKey]\n * @param {AccountId} [props.payerAccountID]\n * @param {string} [props.scheduleMemo]\n * @param {Timestamp} [props.expirationTime]\n * @param {boolean} [props.waitForExpiry]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?Key}\n */\n this._adminKey = null;\n\n /**\n * @private\n * @type {?Transaction}\n */\n this._scheduledTransaction = null;\n\n /**\n * @private\n * @type {?AccountId}\n */\n this._payerAccountId = null;\n\n /**\n * @private\n * @type {?string}\n */\n this._scheduleMemo = null;\n\n /**\n * @private\n * @type {Set<string>}\n */\n this._scheduledSignerPublicKeys = new Set();\n\n /**\n * @private\n * @type {?Timestamp}\n */\n this._expirationTime = null;\n\n /**\n * @private\n * @type {?boolean}\n */\n this._waitForExpiry = null;\n\n if (props.adminKey != null) {\n this.setAdminKey(props.adminKey);\n }\n\n if (props.payerAccountID != null) {\n this.setPayerAccountId(props.payerAccountID);\n }\n\n if (props.scheduleMemo != null) {\n this.setScheduleMemo(props.scheduleMemo);\n }\n\n this._defaultMaxTransactionFee = new Hbar(5);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {ScheduleCreateTransaction}\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.IScheduleCreateTransactionBody} */ (\n body.scheduleCreate\n );\n\n const scheduledTransaction = new ScheduleCreateTransaction({\n adminKey:\n create.adminKey != null\n ? Key._fromProtobufKey(create.adminKey)\n : undefined,\n payerAccountID:\n create.payerAccountID != null\n ? AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n create.payerAccountID\n ),\n )\n : undefined,\n scheduleMemo: create.memo != null ? create.memo : undefined,\n waitForExpiry:\n create.waitForExpiry != null ? create.waitForExpiry : undefined,\n expirationTime:\n create.expirationTime != null\n ? Timestamp._fromProtobuf(create.expirationTime)\n : undefined,\n });\n if (body.scheduleCreate != null) {\n const scheduleCreateBody =\n body.scheduleCreate.scheduledTransactionBody;\n\n const scheduleCreateBodyBytes =\n HieroProto.proto.TransactionBody.encode(\n // @ts-ignore\n scheduleCreateBody,\n ).finish();\n\n const signedScheduledCreateTransaction =\n HieroProto.proto.SignedTransaction.encode({\n bodyBytes: scheduleCreateBodyBytes,\n }).finish();\n\n const scheduleCreatetransaction = {\n signedTransactionBytes: signedScheduledCreateTransaction,\n };\n\n const txlist = HieroProto.proto.TransactionList.encode({\n transactionList: [scheduleCreatetransaction],\n }).finish();\n\n const finalScheduledDecodedTx = Transaction.fromBytes(txlist);\n\n scheduledTransaction._setScheduledTransaction(\n finalScheduledDecodedTx,\n );\n }\n\n return Transaction._fromProtobufTransactions(\n scheduledTransaction,\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @internal\n * @param {Transaction} tx\n * @returns {this}\n */\n _setScheduledTransaction(tx) {\n this._scheduledTransaction = tx;\n\n return this;\n }\n\n /**\n * @returns {?Key}\n */\n get adminKey() {\n return this._adminKey;\n }\n\n /**\n * Set the key for this account.\n *\n * This is the key that must sign each transfer out of the account.\n *\n * If `receiverSignatureRequired` is true, then the key must also sign\n * any transfer into the account.\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 {?AccountId}\n */\n get payerAccountId() {\n return this._payerAccountId;\n }\n\n /**\n * @param {AccountId} account\n * @returns {this}\n */\n setPayerAccountId(account) {\n this._requireNotFrozen();\n this._payerAccountId = account;\n\n return this;\n }\n\n /**\n * @param {string} memo\n * @returns {this}\n */\n setScheduleMemo(memo) {\n this._requireNotFrozen();\n this._scheduleMemo = memo;\n\n return this;\n }\n\n /**\n * @returns {?string}\n */\n get getScheduleMemo() {\n this._requireNotFrozen();\n return this._scheduleMemo;\n }\n\n /**\n * @param {Transaction} transaction\n * @returns {this}\n */\n setScheduledTransaction(transaction) {\n this._requireNotFrozen();\n transaction._requireNotFrozen();\n\n this._scheduledTransaction =\n transaction.schedule()._scheduledTransaction;\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._payerAccountId != null) {\n this._payerAccountId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.schedule.createSchedule(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"scheduleCreate\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IScheduleCreateTransactionBody}\n */\n _makeTransactionData() {\n return {\n adminKey:\n this._adminKey != null ? this._adminKey._toProtobufKey() : null,\n payerAccountID:\n this._payerAccountId != null\n ? this._payerAccountId._toProtobuf()\n : null,\n scheduledTransactionBody:\n this._scheduledTransaction != null\n ? this._scheduledTransaction._getScheduledTransactionBody()\n : null,\n memo: this._scheduleMemo,\n waitForExpiry: this._waitForExpiry,\n expirationTime:\n this._expirationTime != null\n ? this._expirationTime._toProtobuf()\n : null,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `ScheduleCreateTransaction:${timestamp.toString()}`;\n }\n\n /**\n * @param {?Timestamp} expirationTime\n * @returns {this}\n */\n setExpirationTime(expirationTime) {\n this._expirationTime = expirationTime;\n return this;\n }\n\n /**\n * @returns {?Timestamp}\n */\n get expirationTime() {\n this._requireNotFrozen();\n return this._expirationTime;\n }\n\n /**\n * @param {boolean} waitForExpiry\n * @returns {this}\n */\n setWaitForExpiry(waitForExpiry) {\n this._waitForExpiry = waitForExpiry;\n\n return this;\n }\n\n /**\n * @returns {?boolean}\n */\n get waitForExpiry() {\n this._requireNotFrozen();\n return this._waitForExpiry;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"scheduleCreate\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n ScheduleCreateTransaction._fromProtobuf,\n);\n\nSCHEDULE_CREATE_TRANSACTION.push(() => new ScheduleCreateTransaction());\n"],"names":["ScheduleCreateTransaction","Transaction","constructor","props","super","this","_adminKey","_scheduledTransaction","_payerAccountId","_scheduleMemo","_scheduledSignerPublicKeys","Set","_expirationTime","_waitForExpiry","adminKey","setAdminKey","payerAccountID","setPayerAccountId","scheduleMemo","setScheduleMemo","_defaultMaxTransactionFee","Hbar","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","body","create","scheduledTransaction","Key","_fromProtobufKey","undefined","AccountId","memo","waitForExpiry","expirationTime","Timestamp","scheduleCreate","scheduleCreateBody","scheduledTransactionBody","scheduleCreateBodyBytes","HieroProto","proto","TransactionBody","encode","finish","scheduleCreatetransaction","signedTransactionBytes","SignedTransaction","bodyBytes","txlist","TransactionList","transactionList","finalScheduledDecodedTx","fromBytes","_setScheduledTransaction","_fromProtobufTransactions","tx","key","_requireNotFrozen","payerAccountId","account","getScheduleMemo","setScheduledTransaction","transaction","schedule","_validateChecksums","client","validateChecksum","_execute","channel","request","createSchedule","_getTransactionDataCase","_makeTransactionData","_toProtobufKey","_toProtobuf","_getScheduledTransactionBody","_getLogId","_transactionIds","current","toString","setExpirationTime","setWaitForExpiry","TRANSACTION_REGISTRY","set","SCHEDULE_CREATE_TRANSACTION","push"],"mappings":"wQAwBe,MAAMA,UAAkCC,EASnD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,UAAY,KAMjBD,KAAKE,sBAAwB,KAM7BF,KAAKG,gBAAkB,KAMvBH,KAAKI,cAAgB,KAMrBJ,KAAKK,2BAA6B,IAAIC,IAMtCN,KAAKO,gBAAkB,KAMvBP,KAAKQ,eAAiB,KAEA,MAAlBV,EAAMW,UACNT,KAAKU,YAAYZ,EAAMW,UAGC,MAAxBX,EAAMa,gBACNX,KAAKY,kBAAkBd,EAAMa,gBAGP,MAAtBb,EAAMe,cACNb,KAAKc,gBAAgBhB,EAAMe,cAG/Bb,KAAKe,0BAA4B,IAAIC,EAAK,EAClD,CAWI,oBAAOC,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAOD,EAAO,GACdE,EAEED,EACH,eAECE,EAAuB,IAAI9B,EAA0B,CACvDc,SACuB,MAAnBe,EAAOf,SACDiB,EAAIC,iBAAiBH,EAAOf,eAC5BmB,EACVjB,eAC6B,MAAzBa,EAAOb,eACDkB,EAAUZ,cAEFO,EAC9B,qBAEsBI,EACVf,aAA6B,MAAfW,EAAOM,KAAeN,EAAOM,UAAOF,EAClDG,cAC4B,MAAxBP,EAAOO,cAAwBP,EAAOO,mBAAgBH,EAC1DI,eAC6B,MAAzBR,EAAOQ,eACDC,EAAUhB,cAAcO,EAAOQ,qBAC/BJ,IAEd,GAA2B,MAAvBL,EAAKW,eAAwB,CAC7B,MAAMC,EACFZ,EAAKW,eAAeE,yBAElBC,EACFC,EAAWC,MAAMC,gBAAgBC,OAE7BN,GACFO,SAOAC,EAA4B,CAC9BC,uBALAN,EAAWC,MAAMM,kBAAkBJ,OAAO,CACtCK,UAAWT,IACZK,UAMDK,EAAST,EAAWC,MAAMS,gBAAgBP,OAAO,CACnDQ,gBAAiB,CAACN,KACnBD,SAEGQ,EAA0BtD,EAAYuD,UAAUJ,GAEtDtB,EAAqB2B,yBACjBF,EAEhB,CAEQ,OAAOtD,EAAYyD,0BACf5B,EACAP,EACAC,EACAC,EACAC,EACAC,EAEZ,CAOI,wBAAA8B,CAAyBE,GAGrB,OAFAtD,KAAKE,sBAAwBoD,EAEtBtD,IACf,CAKI,YAAIS,GACA,OAAOT,KAAKC,SACpB,CAaI,WAAAS,CAAY6C,GAIR,OAHAvD,KAAKwD,oBACLxD,KAAKC,UAAYsD,EAEVvD,IACf,CAKI,kBAAIyD,GACA,OAAOzD,KAAKG,eACpB,CAMI,iBAAAS,CAAkB8C,GAId,OAHA1D,KAAKwD,oBACLxD,KAAKG,gBAAkBuD,EAEhB1D,IACf,CAMI,eAAAc,CAAgBgB,GAIZ,OAHA9B,KAAKwD,oBACLxD,KAAKI,cAAgB0B,EAEd9B,IACf,CAKI,mBAAI2D,GAEA,OADA3D,KAAKwD,oBACExD,KAAKI,aACpB,CAMI,uBAAAwD,CAAwBC,GAOpB,OANA7D,KAAKwD,oBACLK,EAAYL,oBAEZxD,KAAKE,sBACD2D,EAAYC,WAAW5D,sBAEpBF,IACf,CAKI,kBAAA+D,CAAmBC,GACa,MAAxBhE,KAAKG,iBACLH,KAAKG,gBAAgB8D,iBAAiBD,EAElD,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQL,SAASO,eAAeD,EAC/C,CAOI,uBAAAE,GACI,MAAO,gBACf,CAOI,oBAAAC,GACI,MAAO,CACH9D,SACsB,MAAlBT,KAAKC,UAAoBD,KAAKC,UAAUuE,iBAAmB,KAC/D7D,eAC4B,MAAxBX,KAAKG,gBACCH,KAAKG,gBAAgBsE,cACrB,KACVrC,yBACkC,MAA9BpC,KAAKE,sBACCF,KAAKE,sBAAsBwE,+BAC3B,KACV5C,KAAM9B,KAAKI,cACX2B,cAAe/B,KAAKQ,eACpBwB,eAC4B,MAAxBhC,KAAKO,gBACCP,KAAKO,gBAAgBkE,cACrB,KAEtB,CAKI,SAAAE,GAII,MAAO,6BAFH3E,KAAK4E,gBAAgBC,QACxB,WAC6CC,YACtD,CAMI,iBAAAC,CAAkB/C,GAEd,OADAhC,KAAKO,gBAAkByB,EAChBhC,IACf,CAKI,kBAAIgC,GAEA,OADAhC,KAAKwD,oBACExD,KAAKO,eACpB,CAMI,gBAAAyE,CAAiBjD,GAGb,OAFA/B,KAAKQ,eAAiBuB,EAEf/B,IACf,CAKI,iBAAI+B,GAEA,OADA/B,KAAKwD,oBACExD,KAAKQ,cACpB,EAGAyE,EAAqBC,IACjB,iBAEAvF,EAA0BsB,eAG9BkE,EAA4BC,KAAK,IAAM,IAAIzF"}
@@ -13,18 +13,18 @@ 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.IScheduleDeleteTransactionBody} HieroProto.proto.IScheduleDeleteTransactionBody
22
- * @typedef {import("@hashgraph/proto").proto.IScheduleID} HieroProto.proto.IScheduleID
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.IScheduleDeleteTransactionBody} HieroProto.proto.IScheduleDeleteTransactionBody
22
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleID} HieroProto.proto.IScheduleID
23
23
  */
24
24
 
25
25
  /**
26
26
  * @typedef {import("bignumber.js").default} BigNumber
27
- * @typedef {import("@hashgraph/cryptography").Key} Key
27
+ * @typedef {import("@hiero-ledger/cryptography").Key} Key
28
28
  * @typedef {import("../channel/Channel.js").default} Channel
29
29
  * @typedef {import("../client/Client.js").default<*, *>} Client
30
30
  * @typedef {import("../Timestamp.js").default} Timestamp
@@ -1,16 +1,16 @@
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.IScheduleDeleteTransactionBody} HieroProto.proto.IScheduleDeleteTransactionBody
9
- * @typedef {import("@hashgraph/proto").proto.IScheduleID} HieroProto.proto.IScheduleID
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.IScheduleDeleteTransactionBody} HieroProto.proto.IScheduleDeleteTransactionBody
9
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleID} HieroProto.proto.IScheduleID
10
10
  */
11
11
  /**
12
12
  * @typedef {import("bignumber.js").default} BigNumber
13
- * @typedef {import("@hashgraph/cryptography").Key} Key
13
+ * @typedef {import("@hiero-ledger/cryptography").Key} Key
14
14
  * @typedef {import("../channel/Channel.js").default} Channel
15
15
  * @typedef {import("../client/Client.js").default<*, *>} Client
16
16
  * @typedef {import("../Timestamp.js").default} Timestamp
@@ -61,17 +61,17 @@ export default class ScheduleDeleteTransaction extends Transaction {
61
61
  }
62
62
  export namespace HieroProto {
63
63
  namespace proto {
64
- type ITransaction = import("@hashgraph/proto").proto.ITransaction;
65
- type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
66
- type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
67
- type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
68
- type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
69
- type IScheduleDeleteTransactionBody = import("@hashgraph/proto").proto.IScheduleDeleteTransactionBody;
70
- type IScheduleID = import("@hashgraph/proto").proto.IScheduleID;
64
+ type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
65
+ type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
66
+ type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
67
+ type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
68
+ type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
69
+ type IScheduleDeleteTransactionBody = import("@hiero-ledger/proto").proto.IScheduleDeleteTransactionBody;
70
+ type IScheduleID = import("@hiero-ledger/proto").proto.IScheduleID;
71
71
  }
72
72
  }
73
73
  export type BigNumber = import("bignumber.js").default;
74
- export type Key = import("@hashgraph/cryptography").Key;
74
+ export type Key = import("@hiero-ledger/cryptography").Key;
75
75
  export type Channel = import("../channel/Channel.js").default;
76
76
  export type Client = import("../client/Client.js").default<any, any>;
77
77
  export type Timestamp = import("../Timestamp.js").default;
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduleDeleteTransaction.js","sources":["../../src/schedule/ScheduleDeleteTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ScheduleId from \"./ScheduleId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport Hbar from \"../Hbar.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.IScheduleDeleteTransactionBody} HieroProto.proto.IScheduleDeleteTransactionBody\n * @typedef {import(\"@hashgraph/proto\").proto.IScheduleID} HieroProto.proto.IScheduleID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"@hashgraph/cryptography\").Key} Key\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../Timestamp.js\").default} Timestamp\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n */\n\n/**\n * Create a new Hedera™ crypto-currency account.\n */\nexport default class ScheduleDeleteTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {ScheduleId | string} [props.scheduleId]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?ScheduleId}\n */\n this._scheduleId = null;\n\n if (props.scheduleId != null) {\n this.setScheduleId(props.scheduleId);\n }\n\n this._defaultMaxTransactionFee = new Hbar(5);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {ScheduleDeleteTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const scheduleDelete =\n /** @type {HieroProto.proto.IScheduleDeleteTransactionBody} */ (\n body.scheduleDelete\n );\n\n return Transaction._fromProtobufTransactions(\n new ScheduleDeleteTransaction({\n scheduleId:\n scheduleDelete.scheduleID != null\n ? ScheduleId._fromProtobuf(\n /** @type {HieroProto.proto.IScheduleID} */ (\n scheduleDelete.scheduleID\n ),\n )\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?ScheduleId}\n */\n get scheduleId() {\n return this._scheduleId;\n }\n\n /**\n * @param {ScheduleId | string} scheduleId\n * @returns {this}\n */\n setScheduleId(scheduleId) {\n this._requireNotFrozen();\n this._scheduleId =\n typeof scheduleId === \"string\"\n ? ScheduleId.fromString(scheduleId)\n : scheduleId.clone();\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._scheduleId != null) {\n this._scheduleId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.schedule.deleteSchedule(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"scheduleDelete\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IScheduleDeleteTransactionBody}\n */\n _makeTransactionData() {\n return {\n scheduleID:\n this._scheduleId != null\n ? this._scheduleId._toProtobuf()\n : null,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `ScheduleDeleteTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"scheduleDelete\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n ScheduleDeleteTransaction._fromProtobuf,\n);\n"],"names":["ScheduleDeleteTransaction","Transaction","constructor","props","super","this","_scheduleId","scheduleId","setScheduleId","_defaultMaxTransactionFee","Hbar","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","scheduleDelete","_fromProtobufTransactions","scheduleID","ScheduleId","undefined","_requireNotFrozen","fromString","clone","_validateChecksums","client","validateChecksum","_execute","channel","request","schedule","deleteSchedule","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"iIAgCe,MAAMA,UAAkCC,EAKnD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,YAAc,KAEK,MAApBH,EAAMI,YACNF,KAAKG,cAAcL,EAAMI,YAG7BF,KAAKI,0BAA4B,IAAIC,EAAK,EAClD,CAWI,oBAAOC,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,eAEL,OAAOf,EAAYiB,0BACf,IAAIlB,EAA0B,CAC1BO,WACiC,MAA7BU,EAAeE,WACTC,EAAWT,cAEHM,EAClC,iBAE0BI,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,cAAIT,GACA,OAAOF,KAAKC,WACpB,CAMI,aAAAE,CAAcD,GAOV,OANAF,KAAKiB,oBACLjB,KAAKC,YACqB,iBAAfC,EACDa,EAAWG,WAAWhB,GACtBA,EAAWiB,QAEdnB,IACf,CAKI,kBAAAoB,CAAmBC,GACS,MAApBrB,KAAKC,aACLD,KAAKC,YAAYqB,iBAAiBD,EAE9C,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQE,SAASC,eAAeF,EAC/C,CAOI,uBAAAG,GACI,MAAO,gBACf,CAOI,oBAAAC,GACI,MAAO,CACHf,WACwB,MAApBd,KAAKC,YACCD,KAAKC,YAAY6B,cACjB,KAEtB,CAKI,SAAAC,GAII,MAAO,6BAFH/B,KAAKgC,gBAAgBC,QACxB,WAC6CC,YACtD,EAGAC,EAAqBC,IACjB,iBAEAzC,EAA0BW"}
1
+ {"version":3,"file":"ScheduleDeleteTransaction.js","sources":["../../src/schedule/ScheduleDeleteTransaction.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ScheduleId from \"./ScheduleId.js\";\nimport Transaction, {\n TRANSACTION_REGISTRY,\n} from \"../transaction/Transaction.js\";\nimport Hbar from \"../Hbar.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.IScheduleDeleteTransactionBody} HieroProto.proto.IScheduleDeleteTransactionBody\n * @typedef {import(\"@hiero-ledger/proto\").proto.IScheduleID} HieroProto.proto.IScheduleID\n */\n\n/**\n * @typedef {import(\"bignumber.js\").default} BigNumber\n * @typedef {import(\"@hiero-ledger/cryptography\").Key} Key\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../Timestamp.js\").default} Timestamp\n * @typedef {import(\"../transaction/TransactionId.js\").default} TransactionId\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n */\n\n/**\n * Create a new Hedera™ crypto-currency account.\n */\nexport default class ScheduleDeleteTransaction extends Transaction {\n /**\n * @param {object} [props]\n * @param {ScheduleId | string} [props.scheduleId]\n */\n constructor(props = {}) {\n super();\n\n /**\n * @private\n * @type {?ScheduleId}\n */\n this._scheduleId = null;\n\n if (props.scheduleId != null) {\n this.setScheduleId(props.scheduleId);\n }\n\n this._defaultMaxTransactionFee = new Hbar(5);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.ITransaction[]} transactions\n * @param {HieroProto.proto.ISignedTransaction[]} signedTransactions\n * @param {TransactionId[]} transactionIds\n * @param {AccountId[]} nodeIds\n * @param {HieroProto.proto.ITransactionBody[]} bodies\n * @returns {ScheduleDeleteTransaction}\n */\n static _fromProtobuf(\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n ) {\n const body = bodies[0];\n const scheduleDelete =\n /** @type {HieroProto.proto.IScheduleDeleteTransactionBody} */ (\n body.scheduleDelete\n );\n\n return Transaction._fromProtobufTransactions(\n new ScheduleDeleteTransaction({\n scheduleId:\n scheduleDelete.scheduleID != null\n ? ScheduleId._fromProtobuf(\n /** @type {HieroProto.proto.IScheduleID} */ (\n scheduleDelete.scheduleID\n ),\n )\n : undefined,\n }),\n transactions,\n signedTransactions,\n transactionIds,\n nodeIds,\n bodies,\n );\n }\n\n /**\n * @returns {?ScheduleId}\n */\n get scheduleId() {\n return this._scheduleId;\n }\n\n /**\n * @param {ScheduleId | string} scheduleId\n * @returns {this}\n */\n setScheduleId(scheduleId) {\n this._requireNotFrozen();\n this._scheduleId =\n typeof scheduleId === \"string\"\n ? ScheduleId.fromString(scheduleId)\n : scheduleId.clone();\n\n return this;\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._scheduleId != null) {\n this._scheduleId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.ITransaction} request\n * @returns {Promise<HieroProto.proto.ITransactionResponse>}\n */\n _execute(channel, request) {\n return channel.schedule.deleteSchedule(request);\n }\n\n /**\n * @override\n * @protected\n * @returns {NonNullable<HieroProto.proto.TransactionBody[\"data\"]>}\n */\n _getTransactionDataCase() {\n return \"scheduleDelete\";\n }\n\n /**\n * @override\n * @protected\n * @returns {HieroProto.proto.IScheduleDeleteTransactionBody}\n */\n _makeTransactionData() {\n return {\n scheduleID:\n this._scheduleId != null\n ? this._scheduleId._toProtobuf()\n : null,\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp = /** @type {import(\"../Timestamp.js\").default} */ (\n this._transactionIds.current.validStart\n );\n return `ScheduleDeleteTransaction:${timestamp.toString()}`;\n }\n}\n\nTRANSACTION_REGISTRY.set(\n \"scheduleDelete\",\n // eslint-disable-next-line @typescript-eslint/unbound-method\n ScheduleDeleteTransaction._fromProtobuf,\n);\n"],"names":["ScheduleDeleteTransaction","Transaction","constructor","props","super","this","_scheduleId","scheduleId","setScheduleId","_defaultMaxTransactionFee","Hbar","_fromProtobuf","transactions","signedTransactions","transactionIds","nodeIds","bodies","scheduleDelete","_fromProtobufTransactions","scheduleID","ScheduleId","undefined","_requireNotFrozen","fromString","clone","_validateChecksums","client","validateChecksum","_execute","channel","request","schedule","deleteSchedule","_getTransactionDataCase","_makeTransactionData","_toProtobuf","_getLogId","_transactionIds","current","toString","TRANSACTION_REGISTRY","set"],"mappings":"iIAgCe,MAAMA,UAAkCC,EAKnD,WAAAC,CAAYC,EAAQ,IAChBC,QAMAC,KAAKC,YAAc,KAEK,MAApBH,EAAMI,YACNF,KAAKG,cAAcL,EAAMI,YAG7BF,KAAKI,0BAA4B,IAAIC,EAAK,EAClD,CAWI,oBAAOC,CACHC,EACAC,EACAC,EACAC,EACAC,GAEA,MACMC,EADOD,EAAO,GAIf,eAEL,OAAOf,EAAYiB,0BACf,IAAIlB,EAA0B,CAC1BO,WACiC,MAA7BU,EAAeE,WACTC,EAAWT,cAEHM,EAClC,iBAE0BI,IAEdT,EACAC,EACAC,EACAC,EACAC,EAEZ,CAKI,cAAIT,GACA,OAAOF,KAAKC,WACpB,CAMI,aAAAE,CAAcD,GAOV,OANAF,KAAKiB,oBACLjB,KAAKC,YACqB,iBAAfC,EACDa,EAAWG,WAAWhB,GACtBA,EAAWiB,QAEdnB,IACf,CAKI,kBAAAoB,CAAmBC,GACS,MAApBrB,KAAKC,aACLD,KAAKC,YAAYqB,iBAAiBD,EAE9C,CASI,QAAAE,CAASC,EAASC,GACd,OAAOD,EAAQE,SAASC,eAAeF,EAC/C,CAOI,uBAAAG,GACI,MAAO,gBACf,CAOI,oBAAAC,GACI,MAAO,CACHf,WACwB,MAApBd,KAAKC,YACCD,KAAKC,YAAY6B,cACjB,KAEtB,CAKI,SAAAC,GAII,MAAO,6BAFH/B,KAAKgC,gBAAgBC,QACxB,WAC6CC,YACtD,EAGAC,EAAqBC,IACjB,iBAEAzC,EAA0BW"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var entity_id = _interopRequireWildcard(require("../EntityIdHelper.cjs"));
8
- var HieroProto = _interopRequireWildcard(require("@hashgraph/proto"));
8
+ var HieroProto = _interopRequireWildcard(require("@hiero-ledger/proto"));
9
9
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
10
  // SPDX-License-Identifier: Apache-2.0
11
11
 
@@ -93,4 +93,4 @@ export default class ScheduleId {
93
93
  }
94
94
  export type Long = import("long");
95
95
  export type Client = import("../client/Client.js").default<any, any>;
96
- import * as HieroProto from "@hashgraph/proto";
96
+ import * as HieroProto from "@hiero-ledger/proto";
@@ -1,2 +1,2 @@
1
- import{constructor as t,fromString as r,validateChecksum as s,fromSolidityAddress as e,toSolidityAddress as h,toStringWithChecksum as u,compare as i}from"../EntityIdHelper.js";import*as m from"@hashgraph/proto";class o{constructor(r,s,e){const h=t(r,s,e);this.shard=h.shard,this.realm=h.realm,this.num=h.num,this._checksum=null}static fromString(t){const s=r(t),e=new o(s);return e._checksum=s.checksum,e}static _fromProtobuf(t){return new o(null!=t.shardNum?t.shardNum:0,null!=t.realmNum?t.realmNum:0,null!=t.scheduleNum?t.scheduleNum:0)}get checksum(){return this._checksum}validate(t){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(t)}validateChecksum(t){s(this.shard,this.realm,this.num,this._checksum,t)}static fromBytes(t){return o._fromProtobuf(m.proto.ScheduleID.decode(t))}static fromSolidityAddress(t){return new o(...e(t))}toSolidityAddress(){return h([this.shard,this.realm,this.num])}_toProtobuf(){return{scheduleNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(t){return u(this.toString(),t)}toBytes(){return m.proto.ScheduleID.encode(this._toProtobuf()).finish()}clone(){const t=new o(this);return t._checksum=this._checksum,t}compare(t){return i([this.shard,this.realm,this.num],[t.shard,t.realm,t.num])}}export{o as default};
1
+ import{constructor as t,fromString as r,validateChecksum as e,fromSolidityAddress as s,toSolidityAddress as h,toStringWithChecksum as u,compare as i}from"../EntityIdHelper.js";import*as m from"@hiero-ledger/proto";class o{constructor(r,e,s){const h=t(r,e,s);this.shard=h.shard,this.realm=h.realm,this.num=h.num,this._checksum=null}static fromString(t){const e=r(t),s=new o(e);return s._checksum=e.checksum,s}static _fromProtobuf(t){return new o(null!=t.shardNum?t.shardNum:0,null!=t.realmNum?t.realmNum:0,null!=t.scheduleNum?t.scheduleNum:0)}get checksum(){return this._checksum}validate(t){console.warn("Deprecated: Use `validateChecksum` instead"),this.validateChecksum(t)}validateChecksum(t){e(this.shard,this.realm,this.num,this._checksum,t)}static fromBytes(t){return o._fromProtobuf(m.proto.ScheduleID.decode(t))}static fromSolidityAddress(t){return new o(...s(t))}toSolidityAddress(){return h([this.shard,this.realm,this.num])}_toProtobuf(){return{scheduleNum:this.num,shardNum:this.shard,realmNum:this.realm}}toString(){return`${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`}toStringWithChecksum(t){return u(this.toString(),t)}toBytes(){return m.proto.ScheduleID.encode(this._toProtobuf()).finish()}clone(){const t=new o(this);return t._checksum=this._checksum,t}compare(t){return i([this.shard,this.realm,this.num],[t.shard,t.realm,t.num])}}export{o as default};
2
2
  //# sourceMappingURL=ScheduleId.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduleId.js","sources":["../../src/schedule/ScheduleId.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as entity_id from \"../EntityIdHelper.js\";\nimport * as HieroProto from \"@hashgraph/proto\";\n\n/**\n * @typedef {import(\"long\")} Long\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n */\n\n/**\n * Class representing a unique identifier for a scheduled transaction on the Hedera network.\n *\n * A ScheduleId consists of three components:\n * Shard ID: The shard number where the schedule exists\n * Realm ID: The realm number within the shard\n * Schedule Number: The unique number identifying the schedule\n * @augments {EntityId<HieroProto.proto.IScheduleID>}\n */\n\nexport default class ScheduleId {\n /**\n * @param {number | Long | import(\"../EntityIdHelper\").IEntityId} props\n * @param {(number | Long)=} realm\n * @param {(number | Long)=} num\n */\n constructor(props, realm, num) {\n const result = entity_id.constructor(props, realm, num);\n\n this.shard = result.shard;\n this.realm = result.realm;\n this.num = result.num;\n\n /**\n * @type {string | null}\n */\n this._checksum = null;\n }\n\n /**\n * @param {string} text\n * @returns {ScheduleId}\n */\n static fromString(text) {\n const result = entity_id.fromString(text);\n const id = new ScheduleId(result);\n id._checksum = result.checksum;\n return id;\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IScheduleID} id\n * @returns {ScheduleId}\n */\n static _fromProtobuf(id) {\n const scheduleId = new ScheduleId(\n id.shardNum != null ? id.shardNum : 0,\n id.realmNum != null ? id.realmNum : 0,\n id.scheduleNum != null ? id.scheduleNum : 0,\n );\n\n return scheduleId;\n }\n\n /**\n * @returns {string | null}\n */\n get checksum() {\n return this._checksum;\n }\n\n /**\n * @deprecated - Use `validateChecksum` instead\n * @param {Client} client\n */\n validate(client) {\n console.warn(\"Deprecated: Use `validateChecksum` instead\");\n this.validateChecksum(client);\n }\n\n /**\n * @param {Client} client\n */\n validateChecksum(client) {\n entity_id.validateChecksum(\n this.shard,\n this.realm,\n this.num,\n this._checksum,\n client,\n );\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {ScheduleId}\n */\n static fromBytes(bytes) {\n return ScheduleId._fromProtobuf(\n HieroProto.proto.ScheduleID.decode(bytes),\n );\n }\n\n /**\n * @param {string} address\n * @returns {ScheduleId}\n */\n static fromSolidityAddress(address) {\n return new ScheduleId(...entity_id.fromSolidityAddress(address));\n }\n\n /**\n * @returns {string}\n */\n toSolidityAddress() {\n return entity_id.toSolidityAddress([this.shard, this.realm, this.num]);\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.ScheduleID}\n */\n _toProtobuf() {\n return {\n scheduleNum: this.num,\n shardNum: this.shard,\n realmNum: this.realm,\n };\n }\n\n /**\n * @returns {string}\n */\n toString() {\n return `${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`;\n }\n\n /**\n * @param {Client} client\n * @returns {string}\n */\n toStringWithChecksum(client) {\n return entity_id.toStringWithChecksum(this.toString(), client);\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.ScheduleID.encode(this._toProtobuf()).finish();\n }\n\n /**\n * @returns {ScheduleId}\n */\n clone() {\n const id = new ScheduleId(this);\n id._checksum = this._checksum;\n return id;\n }\n\n /**\n * @param {ScheduleId} other\n * @returns {number}\n */\n compare(other) {\n return entity_id.compare(\n [this.shard, this.realm, this.num],\n [other.shard, other.realm, other.num],\n );\n }\n}\n"],"names":["ScheduleId","constructor","props","realm","num","result","entity_id.constructor","this","shard","_checksum","fromString","text","entity_id.fromString","id","checksum","_fromProtobuf","shardNum","realmNum","scheduleNum","validate","client","console","warn","validateChecksum","entity_id.validateChecksum","fromBytes","bytes","HieroProto","proto","ScheduleID","decode","fromSolidityAddress","address","entity_id.fromSolidityAddress","toSolidityAddress","entity_id.toSolidityAddress","_toProtobuf","toString","toStringWithChecksum","entity_id.toStringWithChecksum","toBytes","encode","finish","clone","compare","other","entity_id.compare"],"mappings":"mNAoBe,MAAMA,EAMjB,WAAAC,CAAYC,EAAOC,EAAOC,GACtB,MAAMC,EAASC,EAAsBJ,EAAOC,EAAOC,GAEnDG,KAAKC,MAAQH,EAAOG,MACpBD,KAAKJ,MAAQE,EAAOF,MACpBI,KAAKH,IAAMC,EAAOD,IAKlBG,KAAKE,UAAY,IACzB,CAMI,iBAAOC,CAAWC,GACd,MAAMN,EAASO,EAAqBD,GAC9BE,EAAK,IAAIb,EAAWK,GAE1B,OADAQ,EAAGJ,UAAYJ,EAAOS,SACfD,CACf,CAOI,oBAAOE,CAAcF,GAOjB,OANmB,IAAIb,EACJ,MAAfa,EAAGG,SAAmBH,EAAGG,SAAW,EACrB,MAAfH,EAAGI,SAAmBJ,EAAGI,SAAW,EAClB,MAAlBJ,EAAGK,YAAsBL,EAAGK,YAAc,EAItD,CAKI,YAAIJ,GACA,OAAOP,KAAKE,SACpB,CAMI,QAAAU,CAASC,GACLC,QAAQC,KAAK,8CACbf,KAAKgB,iBAAiBH,EAC9B,CAKI,gBAAAG,CAAiBH,GACbI,EACIjB,KAAKC,MACLD,KAAKJ,MACLI,KAAKH,IACLG,KAAKE,UACLW,EAEZ,CAMI,gBAAOK,CAAUC,GACb,OAAO1B,EAAWe,cACdY,EAAWC,MAAMC,WAAWC,OAAOJ,GAE/C,CAMI,0BAAOK,CAAoBC,GACvB,OAAO,IAAIhC,KAAciC,EAA8BD,GAC/D,CAKI,iBAAAE,GACI,OAAOC,EAA4B,CAAC5B,KAAKC,MAAOD,KAAKJ,MAAOI,KAAKH,KACzE,CAMI,WAAAgC,GACI,MAAO,CACHlB,YAAaX,KAAKH,IAClBY,SAAUT,KAAKC,MACfS,SAAUV,KAAKJ,MAE3B,CAKI,QAAAkC,GACI,MAAO,GAAG9B,KAAKC,MAAM6B,cAAc9B,KAAKJ,MAAMkC,cAAc9B,KAAKH,IAAIiC,YAC7E,CAMI,oBAAAC,CAAqBlB,GACjB,OAAOmB,EAA+BhC,KAAK8B,WAAYjB,EAC/D,CAKI,OAAAoB,GACI,OAAOb,EAAWC,MAAMC,WAAWY,OAAOlC,KAAK6B,eAAeM,QACtE,CAKI,KAAAC,GACI,MAAM9B,EAAK,IAAIb,EAAWO,MAE1B,OADAM,EAAGJ,UAAYF,KAAKE,UACbI,CACf,CAMI,OAAA+B,CAAQC,GACJ,OAAOC,EACH,CAACvC,KAAKC,MAAOD,KAAKJ,MAAOI,KAAKH,KAC9B,CAACyC,EAAMrC,MAAOqC,EAAM1C,MAAO0C,EAAMzC,KAE7C"}
1
+ {"version":3,"file":"ScheduleId.js","sources":["../../src/schedule/ScheduleId.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport * as entity_id from \"../EntityIdHelper.js\";\nimport * as HieroProto from \"@hiero-ledger/proto\";\n\n/**\n * @typedef {import(\"long\")} Long\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n */\n\n/**\n * Class representing a unique identifier for a scheduled transaction on the Hedera network.\n *\n * A ScheduleId consists of three components:\n * Shard ID: The shard number where the schedule exists\n * Realm ID: The realm number within the shard\n * Schedule Number: The unique number identifying the schedule\n * @augments {EntityId<HieroProto.proto.IScheduleID>}\n */\n\nexport default class ScheduleId {\n /**\n * @param {number | Long | import(\"../EntityIdHelper\").IEntityId} props\n * @param {(number | Long)=} realm\n * @param {(number | Long)=} num\n */\n constructor(props, realm, num) {\n const result = entity_id.constructor(props, realm, num);\n\n this.shard = result.shard;\n this.realm = result.realm;\n this.num = result.num;\n\n /**\n * @type {string | null}\n */\n this._checksum = null;\n }\n\n /**\n * @param {string} text\n * @returns {ScheduleId}\n */\n static fromString(text) {\n const result = entity_id.fromString(text);\n const id = new ScheduleId(result);\n id._checksum = result.checksum;\n return id;\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IScheduleID} id\n * @returns {ScheduleId}\n */\n static _fromProtobuf(id) {\n const scheduleId = new ScheduleId(\n id.shardNum != null ? id.shardNum : 0,\n id.realmNum != null ? id.realmNum : 0,\n id.scheduleNum != null ? id.scheduleNum : 0,\n );\n\n return scheduleId;\n }\n\n /**\n * @returns {string | null}\n */\n get checksum() {\n return this._checksum;\n }\n\n /**\n * @deprecated - Use `validateChecksum` instead\n * @param {Client} client\n */\n validate(client) {\n console.warn(\"Deprecated: Use `validateChecksum` instead\");\n this.validateChecksum(client);\n }\n\n /**\n * @param {Client} client\n */\n validateChecksum(client) {\n entity_id.validateChecksum(\n this.shard,\n this.realm,\n this.num,\n this._checksum,\n client,\n );\n }\n\n /**\n * @param {Uint8Array} bytes\n * @returns {ScheduleId}\n */\n static fromBytes(bytes) {\n return ScheduleId._fromProtobuf(\n HieroProto.proto.ScheduleID.decode(bytes),\n );\n }\n\n /**\n * @param {string} address\n * @returns {ScheduleId}\n */\n static fromSolidityAddress(address) {\n return new ScheduleId(...entity_id.fromSolidityAddress(address));\n }\n\n /**\n * @returns {string}\n */\n toSolidityAddress() {\n return entity_id.toSolidityAddress([this.shard, this.realm, this.num]);\n }\n\n /**\n * @internal\n * @returns {HieroProto.proto.ScheduleID}\n */\n _toProtobuf() {\n return {\n scheduleNum: this.num,\n shardNum: this.shard,\n realmNum: this.realm,\n };\n }\n\n /**\n * @returns {string}\n */\n toString() {\n return `${this.shard.toString()}.${this.realm.toString()}.${this.num.toString()}`;\n }\n\n /**\n * @param {Client} client\n * @returns {string}\n */\n toStringWithChecksum(client) {\n return entity_id.toStringWithChecksum(this.toString(), client);\n }\n\n /**\n * @returns {Uint8Array}\n */\n toBytes() {\n return HieroProto.proto.ScheduleID.encode(this._toProtobuf()).finish();\n }\n\n /**\n * @returns {ScheduleId}\n */\n clone() {\n const id = new ScheduleId(this);\n id._checksum = this._checksum;\n return id;\n }\n\n /**\n * @param {ScheduleId} other\n * @returns {number}\n */\n compare(other) {\n return entity_id.compare(\n [this.shard, this.realm, this.num],\n [other.shard, other.realm, other.num],\n );\n }\n}\n"],"names":["ScheduleId","constructor","props","realm","num","result","entity_id.constructor","this","shard","_checksum","fromString","text","entity_id.fromString","id","checksum","_fromProtobuf","shardNum","realmNum","scheduleNum","validate","client","console","warn","validateChecksum","entity_id.validateChecksum","fromBytes","bytes","HieroProto","proto","ScheduleID","decode","fromSolidityAddress","address","entity_id.fromSolidityAddress","toSolidityAddress","entity_id.toSolidityAddress","_toProtobuf","toString","toStringWithChecksum","entity_id.toStringWithChecksum","toBytes","encode","finish","clone","compare","other","entity_id.compare"],"mappings":"sNAoBe,MAAMA,EAMjB,WAAAC,CAAYC,EAAOC,EAAOC,GACtB,MAAMC,EAASC,EAAsBJ,EAAOC,EAAOC,GAEnDG,KAAKC,MAAQH,EAAOG,MACpBD,KAAKJ,MAAQE,EAAOF,MACpBI,KAAKH,IAAMC,EAAOD,IAKlBG,KAAKE,UAAY,IACzB,CAMI,iBAAOC,CAAWC,GACd,MAAMN,EAASO,EAAqBD,GAC9BE,EAAK,IAAIb,EAAWK,GAE1B,OADAQ,EAAGJ,UAAYJ,EAAOS,SACfD,CACf,CAOI,oBAAOE,CAAcF,GAOjB,OANmB,IAAIb,EACJ,MAAfa,EAAGG,SAAmBH,EAAGG,SAAW,EACrB,MAAfH,EAAGI,SAAmBJ,EAAGI,SAAW,EAClB,MAAlBJ,EAAGK,YAAsBL,EAAGK,YAAc,EAItD,CAKI,YAAIJ,GACA,OAAOP,KAAKE,SACpB,CAMI,QAAAU,CAASC,GACLC,QAAQC,KAAK,8CACbf,KAAKgB,iBAAiBH,EAC9B,CAKI,gBAAAG,CAAiBH,GACbI,EACIjB,KAAKC,MACLD,KAAKJ,MACLI,KAAKH,IACLG,KAAKE,UACLW,EAEZ,CAMI,gBAAOK,CAAUC,GACb,OAAO1B,EAAWe,cACdY,EAAWC,MAAMC,WAAWC,OAAOJ,GAE/C,CAMI,0BAAOK,CAAoBC,GACvB,OAAO,IAAIhC,KAAciC,EAA8BD,GAC/D,CAKI,iBAAAE,GACI,OAAOC,EAA4B,CAAC5B,KAAKC,MAAOD,KAAKJ,MAAOI,KAAKH,KACzE,CAMI,WAAAgC,GACI,MAAO,CACHlB,YAAaX,KAAKH,IAClBY,SAAUT,KAAKC,MACfS,SAAUV,KAAKJ,MAE3B,CAKI,QAAAkC,GACI,MAAO,GAAG9B,KAAKC,MAAM6B,cAAc9B,KAAKJ,MAAMkC,cAAc9B,KAAKH,IAAIiC,YAC7E,CAMI,oBAAAC,CAAqBlB,GACjB,OAAOmB,EAA+BhC,KAAK8B,WAAYjB,EAC/D,CAKI,OAAAoB,GACI,OAAOb,EAAWC,MAAMC,WAAWY,OAAOlC,KAAK6B,eAAeM,QACtE,CAKI,KAAAC,GACI,MAAM9B,EAAK,IAAIb,EAAWO,MAE1B,OADAM,EAAGJ,UAAYF,KAAKE,UACbI,CACf,CAMI,OAAA+B,CAAQC,GACJ,OAAOC,EACH,CAACvC,KAAKC,MAAOD,KAAKJ,MAAOI,KAAKH,KAC9B,CAACyC,EAAMrC,MAAOqC,EAAM1C,MAAO0C,EAAMzC,KAE7C"}
@@ -8,7 +8,7 @@ var _ScheduleId = _interopRequireDefault(require("./ScheduleId.cjs"));
8
8
  var _AccountId = _interopRequireDefault(require("../account/AccountId.cjs"));
9
9
  var _Timestamp = _interopRequireDefault(require("../Timestamp.cjs"));
10
10
  var _Transaction = _interopRequireDefault(require("../transaction/Transaction.cjs"));
11
- var HieroProto = _interopRequireWildcard(require("@hashgraph/proto"));
11
+ var HieroProto = _interopRequireWildcard(require("@hiero-ledger/proto"));
12
12
  var _TransactionId = _interopRequireDefault(require("../transaction/TransactionId.cjs"));
13
13
  var _Key = _interopRequireDefault(require("../Key.cjs"));
14
14
  var _KeyList = _interopRequireDefault(require("../KeyList.cjs"));
@@ -85,7 +85,7 @@ export default class ScheduleInfo {
85
85
  }
86
86
  import ScheduleId from "./ScheduleId.js";
87
87
  import AccountId from "../account/AccountId.js";
88
- import * as HieroProto from "@hashgraph/proto";
88
+ import * as HieroProto from "@hiero-ledger/proto";
89
89
  import KeyList from "../KeyList.js";
90
90
  import Key from "../Key.js";
91
91
  import Timestamp from "../Timestamp.js";
@@ -1,2 +1,2 @@
1
- import e from"./ScheduleId.js";import o from"../account/AccountId.js";import t from"../Timestamp.js";import n from"../transaction/Transaction.js";import*as i from"@hashgraph/proto";import r from"../transaction/TransactionId.js";import s from"../Key.js";import l from"../KeyList.js";const{proto:a}=i;class c{constructor(e){this.scheduleId=e.scheduleId,this.creatorAccountId=e.creatorAccountID,this.payerAccountId=e.payerAccountID,this.schedulableTransactionBody=e.schedulableTransactionBody,this.signers=e.signers,this.scheduleMemo=e.scheduleMemo,this.adminKey=null!=e.adminKey?e.adminKey:null,this.expirationTime=e.expirationTime,this.executed=e.executed,this.deleted=e.deleted,this.scheduledTransactionId=e.scheduledTransactionId,this.waitForExpiry=e.waitForExpiry,Object.freeze(this)}static _fromProtobuf(n){return new c({scheduleId:e._fromProtobuf(n.scheduleID),creatorAccountID:null!=n.creatorAccountID?o._fromProtobuf(n.creatorAccountID):null,payerAccountID:null!=n.payerAccountID?o._fromProtobuf(n.payerAccountID):null,schedulableTransactionBody:null!=n.scheduledTransactionBody?n.scheduledTransactionBody:null,adminKey:null!=n.adminKey?s._fromProtobufKey(n.adminKey):null,signers:null!=n.signers?l.__fromProtobufKeyList(n.signers):null,scheduleMemo:null!=n.memo?n.memo:null,expirationTime:null!=n.expirationTime?t._fromProtobuf(n.expirationTime):null,executed:null!=n.executionTime?t._fromProtobuf(n.executionTime):null,deleted:null!=n.deletionTime?t._fromProtobuf(n.deletionTime):null,scheduledTransactionId:null!=n.scheduledTransactionID?r._fromProtobuf(n.scheduledTransactionID):null,waitForExpiry:null!=n.waitForExpiry&&n.waitForExpiry})}_toProtobuf(){return{scheduleID:null!=this.scheduleId?this.scheduleId._toProtobuf():null,creatorAccountID:null!=this.creatorAccountId?this.creatorAccountId._toProtobuf():null,payerAccountID:null!=this.payerAccountId?this.payerAccountId._toProtobuf():null,scheduledTransactionBody:null!=this.schedulableTransactionBody?this.schedulableTransactionBody:null,adminKey:null!=this.adminKey?this.adminKey._toProtobufKey():null,signers:null!=this.signers?this.signers._toProtobufKey().keyList:null,memo:null!=this.scheduleMemo?this.scheduleMemo:"",expirationTime:null!=this.expirationTime?this.expirationTime._toProtobuf():null,scheduledTransactionID:null!=this.scheduledTransactionId?this.scheduledTransactionId._toProtobuf():null,waitForExpiry:this.waitForExpiry}}get scheduledTransaction(){if(null==this.schedulableTransactionBody)throw new Error("Scheduled transaction body is empty");const e=new a.SchedulableTransactionBody(this.schedulableTransactionBody),o=e.data;return n.fromBytes(a.TransactionList.encode({transactionList:[{signedTransactionBytes:a.SignedTransaction.encode({bodyBytes:a.TransactionBody.encode({transactionFee:this.schedulableTransactionBody.transactionFee,memo:this.schedulableTransactionBody.memo,[o]:e[o]}).finish()}).finish()}]}).finish())}}export{c as default};
1
+ import e from"./ScheduleId.js";import o from"../account/AccountId.js";import t from"../Timestamp.js";import n from"../transaction/Transaction.js";import*as i from"@hiero-ledger/proto";import r from"../transaction/TransactionId.js";import s from"../Key.js";import l from"../KeyList.js";const{proto:c}=i;class a{constructor(e){this.scheduleId=e.scheduleId,this.creatorAccountId=e.creatorAccountID,this.payerAccountId=e.payerAccountID,this.schedulableTransactionBody=e.schedulableTransactionBody,this.signers=e.signers,this.scheduleMemo=e.scheduleMemo,this.adminKey=null!=e.adminKey?e.adminKey:null,this.expirationTime=e.expirationTime,this.executed=e.executed,this.deleted=e.deleted,this.scheduledTransactionId=e.scheduledTransactionId,this.waitForExpiry=e.waitForExpiry,Object.freeze(this)}static _fromProtobuf(n){return new a({scheduleId:e._fromProtobuf(n.scheduleID),creatorAccountID:null!=n.creatorAccountID?o._fromProtobuf(n.creatorAccountID):null,payerAccountID:null!=n.payerAccountID?o._fromProtobuf(n.payerAccountID):null,schedulableTransactionBody:null!=n.scheduledTransactionBody?n.scheduledTransactionBody:null,adminKey:null!=n.adminKey?s._fromProtobufKey(n.adminKey):null,signers:null!=n.signers?l.__fromProtobufKeyList(n.signers):null,scheduleMemo:null!=n.memo?n.memo:null,expirationTime:null!=n.expirationTime?t._fromProtobuf(n.expirationTime):null,executed:null!=n.executionTime?t._fromProtobuf(n.executionTime):null,deleted:null!=n.deletionTime?t._fromProtobuf(n.deletionTime):null,scheduledTransactionId:null!=n.scheduledTransactionID?r._fromProtobuf(n.scheduledTransactionID):null,waitForExpiry:null!=n.waitForExpiry&&n.waitForExpiry})}_toProtobuf(){return{scheduleID:null!=this.scheduleId?this.scheduleId._toProtobuf():null,creatorAccountID:null!=this.creatorAccountId?this.creatorAccountId._toProtobuf():null,payerAccountID:null!=this.payerAccountId?this.payerAccountId._toProtobuf():null,scheduledTransactionBody:null!=this.schedulableTransactionBody?this.schedulableTransactionBody:null,adminKey:null!=this.adminKey?this.adminKey._toProtobufKey():null,signers:null!=this.signers?this.signers._toProtobufKey().keyList:null,memo:null!=this.scheduleMemo?this.scheduleMemo:"",expirationTime:null!=this.expirationTime?this.expirationTime._toProtobuf():null,scheduledTransactionID:null!=this.scheduledTransactionId?this.scheduledTransactionId._toProtobuf():null,waitForExpiry:this.waitForExpiry}}get scheduledTransaction(){if(null==this.schedulableTransactionBody)throw new Error("Scheduled transaction body is empty");const e=new c.SchedulableTransactionBody(this.schedulableTransactionBody),o=e.data;return n.fromBytes(c.TransactionList.encode({transactionList:[{signedTransactionBytes:c.SignedTransaction.encode({bodyBytes:c.TransactionBody.encode({transactionFee:this.schedulableTransactionBody.transactionFee,memo:this.schedulableTransactionBody.memo,[o]:e[o]}).finish()}).finish()}]}).finish())}}export{a as default};
2
2
  //# sourceMappingURL=ScheduleInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduleInfo.js","sources":["../../src/schedule/ScheduleInfo.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ScheduleId from \"./ScheduleId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport Transaction from \"../transaction/Transaction.js\";\nimport * as HieroProto from \"@hashgraph/proto\";\nimport TransactionId from \"../transaction/TransactionId.js\";\nimport Key from \"../Key.js\";\nimport KeyList from \"../KeyList.js\";\n\nconst { proto } = HieroProto;\n\n/**\n * Response when the client sends the node ScheduleGetInfoQuery.\n */\nexport default class ScheduleInfo {\n /**\n * @private\n * @param {object} props\n * @param {ScheduleId} props.scheduleId;\n * @param {?AccountId} props.creatorAccountID;\n * @param {?AccountId} props.payerAccountID;\n * @param {?HieroProto.proto.ISchedulableTransactionBody} props.schedulableTransactionBody;\n * @param {?Key} props.adminKey\n * @param {?KeyList} props.signers;\n * @param {?string} props.scheduleMemo;\n * @param {?Timestamp} props.expirationTime;\n * @param {?Timestamp} props.executed;\n * @param {?Timestamp} props.deleted;\n * @param {?TransactionId} props.scheduledTransactionId;\n * @param {boolean} props.waitForExpiry;\n */\n constructor(props) {\n /**\n * @readonly\n */\n this.scheduleId = props.scheduleId;\n\n /**\n * @readonly\n */\n this.creatorAccountId = props.creatorAccountID;\n\n /**\n * @readonly\n */\n this.payerAccountId = props.payerAccountID;\n\n /**\n * @readonly\n */\n this.schedulableTransactionBody = props.schedulableTransactionBody;\n\n /**\n * @readonly\n */\n this.signers = props.signers;\n\n /**\n * @readonly\n */\n this.scheduleMemo = props.scheduleMemo;\n\n /**\n * @readonly\n */\n this.adminKey = props.adminKey != null ? props.adminKey : null;\n\n /**\n * @readonly\n */\n this.expirationTime = props.expirationTime;\n\n /**\n * @readonly\n */\n this.executed = props.executed;\n\n /**\n * @readonly\n */\n this.deleted = props.deleted;\n\n /**\n * @readonly\n */\n this.scheduledTransactionId = props.scheduledTransactionId;\n\n /**\n *\n * @readonly\n */\n this.waitForExpiry = props.waitForExpiry;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IScheduleInfo} info\n * @returns {ScheduleInfo}\n */\n static _fromProtobuf(info) {\n return new ScheduleInfo({\n scheduleId: ScheduleId._fromProtobuf(\n /** @type {HieroProto.proto.IScheduleID} */ (info.scheduleID),\n ),\n creatorAccountID:\n info.creatorAccountID != null\n ? AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n info.creatorAccountID\n ),\n )\n : null,\n payerAccountID:\n info.payerAccountID != null\n ? AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n info.payerAccountID\n ),\n )\n : null,\n schedulableTransactionBody:\n info.scheduledTransactionBody != null\n ? info.scheduledTransactionBody\n : null,\n adminKey:\n info.adminKey != null\n ? Key._fromProtobufKey(info.adminKey)\n : null,\n signers:\n info.signers != null\n ? KeyList.__fromProtobufKeyList(info.signers)\n : null,\n scheduleMemo: info.memo != null ? info.memo : null,\n expirationTime:\n info.expirationTime != null\n ? Timestamp._fromProtobuf(\n /** @type {HieroProto.proto.ITimestamp} */ (\n info.expirationTime\n ),\n )\n : null,\n executed:\n info.executionTime != null\n ? Timestamp._fromProtobuf(\n /** @type {HieroProto.proto.ITimestamp} */ (\n info.executionTime\n ),\n )\n : null,\n deleted:\n info.deletionTime != null\n ? Timestamp._fromProtobuf(\n /** @type {HieroProto.proto.ITimestamp} */ (\n info.deletionTime\n ),\n )\n : null,\n scheduledTransactionId:\n info.scheduledTransactionID != null\n ? TransactionId._fromProtobuf(info.scheduledTransactionID)\n : null,\n waitForExpiry:\n info.waitForExpiry != null ? info.waitForExpiry : false,\n });\n }\n\n /**\n * @returns {HieroProto.proto.IScheduleInfo}\n */\n _toProtobuf() {\n return {\n scheduleID:\n this.scheduleId != null ? this.scheduleId._toProtobuf() : null,\n creatorAccountID:\n this.creatorAccountId != null\n ? this.creatorAccountId._toProtobuf()\n : null,\n payerAccountID:\n this.payerAccountId != null\n ? this.payerAccountId._toProtobuf()\n : null,\n scheduledTransactionBody:\n this.schedulableTransactionBody != null\n ? this.schedulableTransactionBody\n : null,\n adminKey:\n this.adminKey != null ? this.adminKey._toProtobufKey() : null,\n signers:\n this.signers != null\n ? this.signers._toProtobufKey().keyList\n : null,\n memo: this.scheduleMemo != null ? this.scheduleMemo : \"\",\n expirationTime:\n this.expirationTime != null\n ? this.expirationTime._toProtobuf()\n : null,\n scheduledTransactionID:\n this.scheduledTransactionId != null\n ? this.scheduledTransactionId._toProtobuf()\n : null,\n waitForExpiry: this.waitForExpiry,\n };\n }\n\n /**\n * @returns {Transaction}\n */\n get scheduledTransaction() {\n if (this.schedulableTransactionBody == null) {\n throw new Error(\"Scheduled transaction body is empty\");\n }\n\n const scheduled = new proto.SchedulableTransactionBody(\n this.schedulableTransactionBody,\n );\n const data =\n /** @type {NonNullable<HieroProto.proto.SchedulableTransactionBody[\"data\"]>} */ (\n scheduled.data\n );\n\n return Transaction.fromBytes(\n proto.TransactionList.encode({\n transactionList: [\n {\n signedTransactionBytes: proto.SignedTransaction.encode({\n bodyBytes: proto.TransactionBody.encode({\n transactionFee:\n this.schedulableTransactionBody\n .transactionFee,\n memo: this.schedulableTransactionBody.memo,\n [data]: scheduled[data],\n }).finish(),\n }).finish(),\n },\n ],\n }).finish(),\n );\n }\n}\n"],"names":["proto","HieroProto","ScheduleInfo","constructor","props","this","scheduleId","creatorAccountId","creatorAccountID","payerAccountId","payerAccountID","schedulableTransactionBody","signers","scheduleMemo","adminKey","expirationTime","executed","deleted","scheduledTransactionId","waitForExpiry","Object","freeze","_fromProtobuf","info","ScheduleId","AccountId","scheduledTransactionBody","Key","_fromProtobufKey","KeyList","__fromProtobufKeyList","memo","Timestamp","executionTime","deletionTime","scheduledTransactionID","TransactionId","_toProtobuf","scheduleID","_toProtobufKey","keyList","scheduledTransaction","Error","scheduled","SchedulableTransactionBody","data","Transaction","fromBytes","TransactionList","encode","transactionList","signedTransactionBytes","SignedTransaction","bodyBytes","TransactionBody","transactionFee","finish"],"mappings":"0RAWA,MAAMA,MAAEA,GAAUC,EAKH,MAAMC,EAiBjB,WAAAC,CAAYC,GAIRC,KAAKC,WAAaF,EAAME,WAKxBD,KAAKE,iBAAmBH,EAAMI,iBAK9BH,KAAKI,eAAiBL,EAAMM,eAK5BL,KAAKM,2BAA6BP,EAAMO,2BAKxCN,KAAKO,QAAUR,EAAMQ,QAKrBP,KAAKQ,aAAeT,EAAMS,aAK1BR,KAAKS,SAA6B,MAAlBV,EAAMU,SAAmBV,EAAMU,SAAW,KAK1DT,KAAKU,eAAiBX,EAAMW,eAK5BV,KAAKW,SAAWZ,EAAMY,SAKtBX,KAAKY,QAAUb,EAAMa,QAKrBZ,KAAKa,uBAAyBd,EAAMc,uBAMpCb,KAAKc,cAAgBf,EAAMe,cAE3BC,OAAOC,OAAOhB,KACtB,CAOI,oBAAOiB,CAAcC,GACjB,OAAO,IAAIrB,EAAa,CACpBI,WAAYkB,EAAWF,cAC0BC,EAAe,YAEhEf,iBAC6B,MAAzBe,EAAKf,iBACCiB,EAAUH,cAEFC,EAC9B,kBAEsB,KACVb,eAC2B,MAAvBa,EAAKb,eACCe,EAAUH,cAEFC,EAC9B,gBAEsB,KACVZ,2BACqC,MAAjCY,EAAKG,yBACCH,EAAKG,yBACL,KACVZ,SACqB,MAAjBS,EAAKT,SACCa,EAAIC,iBAAiBL,EAAKT,UAC1B,KACVF,QACoB,MAAhBW,EAAKX,QACCiB,EAAQC,sBAAsBP,EAAKX,SACnC,KACVC,aAA2B,MAAbU,EAAKQ,KAAeR,EAAKQ,KAAO,KAC9ChB,eAC2B,MAAvBQ,EAAKR,eACCiB,EAAUV,cAEFC,EAC9B,gBAEsB,KACVP,SAC0B,MAAtBO,EAAKU,cACCD,EAAUV,cAEFC,EAC9B,eAEsB,KACVN,QACyB,MAArBM,EAAKW,aACCF,EAAUV,cAEFC,EAC9B,cAEsB,KACVL,uBACmC,MAA/BK,EAAKY,uBACCC,EAAcd,cAAcC,EAAKY,wBACjC,KACVhB,cAC0B,MAAtBI,EAAKJ,eAAwBI,EAAKJ,eAElD,CAKI,WAAAkB,GACI,MAAO,CACHC,WACuB,MAAnBjC,KAAKC,WAAqBD,KAAKC,WAAW+B,cAAgB,KAC9D7B,iBAC6B,MAAzBH,KAAKE,iBACCF,KAAKE,iBAAiB8B,cACtB,KACV3B,eAC2B,MAAvBL,KAAKI,eACCJ,KAAKI,eAAe4B,cACpB,KACVX,yBACuC,MAAnCrB,KAAKM,2BACCN,KAAKM,2BACL,KACVG,SACqB,MAAjBT,KAAKS,SAAmBT,KAAKS,SAASyB,iBAAmB,KAC7D3B,QACoB,MAAhBP,KAAKO,QACCP,KAAKO,QAAQ2B,iBAAiBC,QAC9B,KACVT,KAA2B,MAArB1B,KAAKQ,aAAuBR,KAAKQ,aAAe,GACtDE,eAC2B,MAAvBV,KAAKU,eACCV,KAAKU,eAAesB,cACpB,KACVF,uBACmC,MAA/B9B,KAAKa,uBACCb,KAAKa,uBAAuBmB,cAC5B,KACVlB,cAAed,KAAKc,cAEhC,CAKI,wBAAIsB,GACA,GAAuC,MAAnCpC,KAAKM,2BACL,MAAM,IAAI+B,MAAM,uCAGpB,MAAMC,EAAY,IAAI3C,EAAM4C,2BACxBvC,KAAKM,4BAEHkC,EAEEF,EACH,KAEL,OAAOG,EAAYC,UACf/C,EAAMgD,gBAAgBC,OAAO,CACzBC,gBAAiB,CACb,CACIC,uBAAwBnD,EAAMoD,kBAAkBH,OAAO,CACnDI,UAAWrD,EAAMsD,gBAAgBL,OAAO,CACpCM,eACIlD,KAAKM,2BACA4C,eACTxB,KAAM1B,KAAKM,2BAA2BoB,KACtCc,CAACA,GAAOF,EAAUE,KACnBW,WACJA,aAGZA,SAEf"}
1
+ {"version":3,"file":"ScheduleInfo.js","sources":["../../src/schedule/ScheduleInfo.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport ScheduleId from \"./ScheduleId.js\";\nimport AccountId from \"../account/AccountId.js\";\nimport Timestamp from \"../Timestamp.js\";\nimport Transaction from \"../transaction/Transaction.js\";\nimport * as HieroProto from \"@hiero-ledger/proto\";\nimport TransactionId from \"../transaction/TransactionId.js\";\nimport Key from \"../Key.js\";\nimport KeyList from \"../KeyList.js\";\n\nconst { proto } = HieroProto;\n\n/**\n * Response when the client sends the node ScheduleGetInfoQuery.\n */\nexport default class ScheduleInfo {\n /**\n * @private\n * @param {object} props\n * @param {ScheduleId} props.scheduleId;\n * @param {?AccountId} props.creatorAccountID;\n * @param {?AccountId} props.payerAccountID;\n * @param {?HieroProto.proto.ISchedulableTransactionBody} props.schedulableTransactionBody;\n * @param {?Key} props.adminKey\n * @param {?KeyList} props.signers;\n * @param {?string} props.scheduleMemo;\n * @param {?Timestamp} props.expirationTime;\n * @param {?Timestamp} props.executed;\n * @param {?Timestamp} props.deleted;\n * @param {?TransactionId} props.scheduledTransactionId;\n * @param {boolean} props.waitForExpiry;\n */\n constructor(props) {\n /**\n * @readonly\n */\n this.scheduleId = props.scheduleId;\n\n /**\n * @readonly\n */\n this.creatorAccountId = props.creatorAccountID;\n\n /**\n * @readonly\n */\n this.payerAccountId = props.payerAccountID;\n\n /**\n * @readonly\n */\n this.schedulableTransactionBody = props.schedulableTransactionBody;\n\n /**\n * @readonly\n */\n this.signers = props.signers;\n\n /**\n * @readonly\n */\n this.scheduleMemo = props.scheduleMemo;\n\n /**\n * @readonly\n */\n this.adminKey = props.adminKey != null ? props.adminKey : null;\n\n /**\n * @readonly\n */\n this.expirationTime = props.expirationTime;\n\n /**\n * @readonly\n */\n this.executed = props.executed;\n\n /**\n * @readonly\n */\n this.deleted = props.deleted;\n\n /**\n * @readonly\n */\n this.scheduledTransactionId = props.scheduledTransactionId;\n\n /**\n *\n * @readonly\n */\n this.waitForExpiry = props.waitForExpiry;\n\n Object.freeze(this);\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IScheduleInfo} info\n * @returns {ScheduleInfo}\n */\n static _fromProtobuf(info) {\n return new ScheduleInfo({\n scheduleId: ScheduleId._fromProtobuf(\n /** @type {HieroProto.proto.IScheduleID} */ (info.scheduleID),\n ),\n creatorAccountID:\n info.creatorAccountID != null\n ? AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n info.creatorAccountID\n ),\n )\n : null,\n payerAccountID:\n info.payerAccountID != null\n ? AccountId._fromProtobuf(\n /** @type {HieroProto.proto.IAccountID} */ (\n info.payerAccountID\n ),\n )\n : null,\n schedulableTransactionBody:\n info.scheduledTransactionBody != null\n ? info.scheduledTransactionBody\n : null,\n adminKey:\n info.adminKey != null\n ? Key._fromProtobufKey(info.adminKey)\n : null,\n signers:\n info.signers != null\n ? KeyList.__fromProtobufKeyList(info.signers)\n : null,\n scheduleMemo: info.memo != null ? info.memo : null,\n expirationTime:\n info.expirationTime != null\n ? Timestamp._fromProtobuf(\n /** @type {HieroProto.proto.ITimestamp} */ (\n info.expirationTime\n ),\n )\n : null,\n executed:\n info.executionTime != null\n ? Timestamp._fromProtobuf(\n /** @type {HieroProto.proto.ITimestamp} */ (\n info.executionTime\n ),\n )\n : null,\n deleted:\n info.deletionTime != null\n ? Timestamp._fromProtobuf(\n /** @type {HieroProto.proto.ITimestamp} */ (\n info.deletionTime\n ),\n )\n : null,\n scheduledTransactionId:\n info.scheduledTransactionID != null\n ? TransactionId._fromProtobuf(info.scheduledTransactionID)\n : null,\n waitForExpiry:\n info.waitForExpiry != null ? info.waitForExpiry : false,\n });\n }\n\n /**\n * @returns {HieroProto.proto.IScheduleInfo}\n */\n _toProtobuf() {\n return {\n scheduleID:\n this.scheduleId != null ? this.scheduleId._toProtobuf() : null,\n creatorAccountID:\n this.creatorAccountId != null\n ? this.creatorAccountId._toProtobuf()\n : null,\n payerAccountID:\n this.payerAccountId != null\n ? this.payerAccountId._toProtobuf()\n : null,\n scheduledTransactionBody:\n this.schedulableTransactionBody != null\n ? this.schedulableTransactionBody\n : null,\n adminKey:\n this.adminKey != null ? this.adminKey._toProtobufKey() : null,\n signers:\n this.signers != null\n ? this.signers._toProtobufKey().keyList\n : null,\n memo: this.scheduleMemo != null ? this.scheduleMemo : \"\",\n expirationTime:\n this.expirationTime != null\n ? this.expirationTime._toProtobuf()\n : null,\n scheduledTransactionID:\n this.scheduledTransactionId != null\n ? this.scheduledTransactionId._toProtobuf()\n : null,\n waitForExpiry: this.waitForExpiry,\n };\n }\n\n /**\n * @returns {Transaction}\n */\n get scheduledTransaction() {\n if (this.schedulableTransactionBody == null) {\n throw new Error(\"Scheduled transaction body is empty\");\n }\n\n const scheduled = new proto.SchedulableTransactionBody(\n this.schedulableTransactionBody,\n );\n const data =\n /** @type {NonNullable<HieroProto.proto.SchedulableTransactionBody[\"data\"]>} */ (\n scheduled.data\n );\n\n return Transaction.fromBytes(\n proto.TransactionList.encode({\n transactionList: [\n {\n signedTransactionBytes: proto.SignedTransaction.encode({\n bodyBytes: proto.TransactionBody.encode({\n transactionFee:\n this.schedulableTransactionBody\n .transactionFee,\n memo: this.schedulableTransactionBody.memo,\n [data]: scheduled[data],\n }).finish(),\n }).finish(),\n },\n ],\n }).finish(),\n );\n }\n}\n"],"names":["proto","HieroProto","ScheduleInfo","constructor","props","this","scheduleId","creatorAccountId","creatorAccountID","payerAccountId","payerAccountID","schedulableTransactionBody","signers","scheduleMemo","adminKey","expirationTime","executed","deleted","scheduledTransactionId","waitForExpiry","Object","freeze","_fromProtobuf","info","ScheduleId","AccountId","scheduledTransactionBody","Key","_fromProtobufKey","KeyList","__fromProtobufKeyList","memo","Timestamp","executionTime","deletionTime","scheduledTransactionID","TransactionId","_toProtobuf","scheduleID","_toProtobufKey","keyList","scheduledTransaction","Error","scheduled","SchedulableTransactionBody","data","Transaction","fromBytes","TransactionList","encode","transactionList","signedTransactionBytes","SignedTransaction","bodyBytes","TransactionBody","transactionFee","finish"],"mappings":"6RAWA,MAAMA,MAAEA,GAAUC,EAKH,MAAMC,EAiBjB,WAAAC,CAAYC,GAIRC,KAAKC,WAAaF,EAAME,WAKxBD,KAAKE,iBAAmBH,EAAMI,iBAK9BH,KAAKI,eAAiBL,EAAMM,eAK5BL,KAAKM,2BAA6BP,EAAMO,2BAKxCN,KAAKO,QAAUR,EAAMQ,QAKrBP,KAAKQ,aAAeT,EAAMS,aAK1BR,KAAKS,SAA6B,MAAlBV,EAAMU,SAAmBV,EAAMU,SAAW,KAK1DT,KAAKU,eAAiBX,EAAMW,eAK5BV,KAAKW,SAAWZ,EAAMY,SAKtBX,KAAKY,QAAUb,EAAMa,QAKrBZ,KAAKa,uBAAyBd,EAAMc,uBAMpCb,KAAKc,cAAgBf,EAAMe,cAE3BC,OAAOC,OAAOhB,KACtB,CAOI,oBAAOiB,CAAcC,GACjB,OAAO,IAAIrB,EAAa,CACpBI,WAAYkB,EAAWF,cAC0BC,EAAe,YAEhEf,iBAC6B,MAAzBe,EAAKf,iBACCiB,EAAUH,cAEFC,EAC9B,kBAEsB,KACVb,eAC2B,MAAvBa,EAAKb,eACCe,EAAUH,cAEFC,EAC9B,gBAEsB,KACVZ,2BACqC,MAAjCY,EAAKG,yBACCH,EAAKG,yBACL,KACVZ,SACqB,MAAjBS,EAAKT,SACCa,EAAIC,iBAAiBL,EAAKT,UAC1B,KACVF,QACoB,MAAhBW,EAAKX,QACCiB,EAAQC,sBAAsBP,EAAKX,SACnC,KACVC,aAA2B,MAAbU,EAAKQ,KAAeR,EAAKQ,KAAO,KAC9ChB,eAC2B,MAAvBQ,EAAKR,eACCiB,EAAUV,cAEFC,EAC9B,gBAEsB,KACVP,SAC0B,MAAtBO,EAAKU,cACCD,EAAUV,cAEFC,EAC9B,eAEsB,KACVN,QACyB,MAArBM,EAAKW,aACCF,EAAUV,cAEFC,EAC9B,cAEsB,KACVL,uBACmC,MAA/BK,EAAKY,uBACCC,EAAcd,cAAcC,EAAKY,wBACjC,KACVhB,cAC0B,MAAtBI,EAAKJ,eAAwBI,EAAKJ,eAElD,CAKI,WAAAkB,GACI,MAAO,CACHC,WACuB,MAAnBjC,KAAKC,WAAqBD,KAAKC,WAAW+B,cAAgB,KAC9D7B,iBAC6B,MAAzBH,KAAKE,iBACCF,KAAKE,iBAAiB8B,cACtB,KACV3B,eAC2B,MAAvBL,KAAKI,eACCJ,KAAKI,eAAe4B,cACpB,KACVX,yBACuC,MAAnCrB,KAAKM,2BACCN,KAAKM,2BACL,KACVG,SACqB,MAAjBT,KAAKS,SAAmBT,KAAKS,SAASyB,iBAAmB,KAC7D3B,QACoB,MAAhBP,KAAKO,QACCP,KAAKO,QAAQ2B,iBAAiBC,QAC9B,KACVT,KAA2B,MAArB1B,KAAKQ,aAAuBR,KAAKQ,aAAe,GACtDE,eAC2B,MAAvBV,KAAKU,eACCV,KAAKU,eAAesB,cACpB,KACVF,uBACmC,MAA/B9B,KAAKa,uBACCb,KAAKa,uBAAuBmB,cAC5B,KACVlB,cAAed,KAAKc,cAEhC,CAKI,wBAAIsB,GACA,GAAuC,MAAnCpC,KAAKM,2BACL,MAAM,IAAI+B,MAAM,uCAGpB,MAAMC,EAAY,IAAI3C,EAAM4C,2BACxBvC,KAAKM,4BAEHkC,EAEEF,EACH,KAEL,OAAOG,EAAYC,UACf/C,EAAMgD,gBAAgBC,OAAO,CACzBC,gBAAiB,CACb,CACIC,uBAAwBnD,EAAMoD,kBAAkBH,OAAO,CACnDI,UAAWrD,EAAMsD,gBAAgBL,OAAO,CACpCM,eACIlD,KAAKM,2BACA4C,eACTxB,KAAM1B,KAAKM,2BAA2BoB,KACtCc,CAACA,GAAOF,EAAUE,KACnBW,WACJA,aAGZA,SAEf"}
@@ -16,13 +16,13 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
16
16
 
17
17
  /**
18
18
  * @namespace proto
19
- * @typedef {import("@hashgraph/proto").proto.IQuery} HieroProto.proto.IQuery
20
- * @typedef {import("@hashgraph/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
21
- * @typedef {import("@hashgraph/proto").proto.IResponse} HieroProto.proto.IResponse
22
- * @typedef {import("@hashgraph/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
23
- * @typedef {import("@hashgraph/proto").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo
24
- * @typedef {import("@hashgraph/proto").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery
25
- * @typedef {import("@hashgraph/proto").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse
19
+ * @typedef {import("@hiero-ledger/proto").proto.IQuery} HieroProto.proto.IQuery
20
+ * @typedef {import("@hiero-ledger/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
21
+ * @typedef {import("@hiero-ledger/proto").proto.IResponse} HieroProto.proto.IResponse
22
+ * @typedef {import("@hiero-ledger/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
23
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo
24
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery
25
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse
26
26
  */
27
27
 
28
28
  /**
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * @namespace proto
3
- * @typedef {import("@hashgraph/proto").proto.IQuery} HieroProto.proto.IQuery
4
- * @typedef {import("@hashgraph/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
5
- * @typedef {import("@hashgraph/proto").proto.IResponse} HieroProto.proto.IResponse
6
- * @typedef {import("@hashgraph/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
7
- * @typedef {import("@hashgraph/proto").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo
8
- * @typedef {import("@hashgraph/proto").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery
9
- * @typedef {import("@hashgraph/proto").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse
3
+ * @typedef {import("@hiero-ledger/proto").proto.IQuery} HieroProto.proto.IQuery
4
+ * @typedef {import("@hiero-ledger/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
5
+ * @typedef {import("@hiero-ledger/proto").proto.IResponse} HieroProto.proto.IResponse
6
+ * @typedef {import("@hiero-ledger/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
7
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo
8
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery
9
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse
10
10
  */
11
11
  /**
12
12
  * @typedef {import("../channel/Channel.js").default} Channel
@@ -49,13 +49,13 @@ export default class ScheduleInfoQuery extends Query<ScheduleInfo> {
49
49
  }
50
50
  export namespace HieroProto {
51
51
  namespace proto {
52
- type IQuery = import("@hashgraph/proto").proto.IQuery;
53
- type IQueryHeader = import("@hashgraph/proto").proto.IQueryHeader;
54
- type IResponse = import("@hashgraph/proto").proto.IResponse;
55
- type IResponseHeader = import("@hashgraph/proto").proto.IResponseHeader;
56
- type IScheduleInfo = import("@hashgraph/proto").proto.IScheduleInfo;
57
- type IScheduleGetInfoQuery = import("@hashgraph/proto").proto.IScheduleGetInfoQuery;
58
- type IScheduleGetInfoResponse = import("@hashgraph/proto").proto.IScheduleGetInfoResponse;
52
+ type IQuery = import("@hiero-ledger/proto").proto.IQuery;
53
+ type IQueryHeader = import("@hiero-ledger/proto").proto.IQueryHeader;
54
+ type IResponse = import("@hiero-ledger/proto").proto.IResponse;
55
+ type IResponseHeader = import("@hiero-ledger/proto").proto.IResponseHeader;
56
+ type IScheduleInfo = import("@hiero-ledger/proto").proto.IScheduleInfo;
57
+ type IScheduleGetInfoQuery = import("@hiero-ledger/proto").proto.IScheduleGetInfoQuery;
58
+ type IScheduleGetInfoResponse = import("@hiero-ledger/proto").proto.IScheduleGetInfoResponse;
59
59
  }
60
60
  }
61
61
  export type Channel = import("../channel/Channel.js").default;
@@ -1 +1 @@
1
- {"version":3,"file":"ScheduleInfoQuery.js","sources":["../../src/schedule/ScheduleInfoQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport ScheduleId from \"./ScheduleId.js\";\nimport ScheduleInfo from \"./ScheduleInfo.js\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Hbar from \"../Hbar.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hashgraph/proto\").proto.IQuery} HieroProto.proto.IQuery\n * @typedef {import(\"@hashgraph/proto\").proto.IQueryHeader} HieroProto.proto.IQueryHeader\n * @typedef {import(\"@hashgraph/proto\").proto.IResponse} HieroProto.proto.IResponse\n * @typedef {import(\"@hashgraph/proto\").proto.IResponseHeader} HieroProto.proto.IResponseHeader\n * @typedef {import(\"@hashgraph/proto\").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo\n * @typedef {import(\"@hashgraph/proto\").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery\n * @typedef {import(\"@hashgraph/proto\").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n */\n\n/**\n * Retrieve the metadata for a schedule.\n * @augments {Query<ScheduleInfo>}\n */\nexport default class ScheduleInfoQuery extends Query {\n /**\n * @param {object} properties\n * @param {ScheduleId | string} [properties.scheduleId]\n */\n constructor(properties = {}) {\n super();\n\n /**\n * @private\n * @type {?ScheduleId}\n */\n this._scheduleId = null;\n\n if (properties.scheduleId != null) {\n this.setScheduleId(properties.scheduleId);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IQuery} query\n * @returns {ScheduleInfoQuery}\n */\n static _fromProtobuf(query) {\n const info = /** @type {HieroProto.proto.IScheduleGetInfoQuery} */ (\n query.scheduleGetInfo\n );\n\n return new ScheduleInfoQuery({\n scheduleId:\n info.scheduleID != null\n ? ScheduleId._fromProtobuf(info.scheduleID)\n : undefined,\n });\n }\n\n /**\n * @returns {?ScheduleId}\n */\n get scheduleId() {\n return this._scheduleId;\n }\n\n /**\n *\n * @param {ScheduleId | string} scheduleId\n * @returns {ScheduleInfoQuery}\n */\n setScheduleId(scheduleId) {\n this._scheduleId =\n typeof scheduleId === \"string\"\n ? ScheduleId.fromString(scheduleId)\n : scheduleId.clone();\n\n return this;\n }\n\n /**\n * @override\n * @param {import(\"../client/Client.js\").default<Channel, *>} client\n * @returns {Promise<Hbar>}\n */\n async getCost(client) {\n return super.getCost(client);\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._scheduleId != null) {\n this._scheduleId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<HieroProto.proto.IResponse>}\n */\n _execute(channel, request) {\n return channel.schedule.getScheduleInfo(request);\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @returns {HieroProto.proto.IResponseHeader}\n */\n _mapResponseHeader(response) {\n const scheduleGetInfo =\n /** @type {HieroProto.proto.IScheduleGetInfoResponse} */ (\n response.scheduleGetInfo\n );\n return /** @type {HieroProto.proto.IResponseHeader} */ (\n scheduleGetInfo.header\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @param {AccountId} nodeAccountId\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<ScheduleInfo>}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _mapResponse(response, nodeAccountId, request) {\n const info = /** @type {HieroProto.proto.IScheduleGetInfoResponse} */ (\n response.scheduleGetInfo\n );\n\n return Promise.resolve(\n ScheduleInfo._fromProtobuf(\n /** @type {HieroProto.proto.IScheduleInfo} */ (\n info.scheduleInfo\n ),\n ),\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IQueryHeader} header\n * @returns {HieroProto.proto.IQuery}\n */\n _onMakeRequest(header) {\n return {\n scheduleGetInfo: {\n header,\n scheduleID:\n this._scheduleId != null\n ? this._scheduleId._toProtobuf()\n : null,\n },\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp =\n this._paymentTransactionId != null &&\n this._paymentTransactionId.validStart != null\n ? this._paymentTransactionId.validStart\n : this._timestamp;\n\n return `ScheduleInfoQuery:${timestamp.toString()}`;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nQUERY_REGISTRY.set(\"scheduleGetInfo\", ScheduleInfoQuery._fromProtobuf);\n"],"names":["ScheduleInfoQuery","Query","constructor","properties","super","this","_scheduleId","scheduleId","setScheduleId","_fromProtobuf","query","info","scheduleID","ScheduleId","undefined","fromString","clone","getCost","client","_validateChecksums","validateChecksum","_execute","channel","request","schedule","getScheduleInfo","_mapResponseHeader","response","_mapResponse","nodeAccountId","Promise","resolve","ScheduleInfo","_onMakeRequest","header","scheduleGetInfo","_toProtobuf","_getLogId","_paymentTransactionId","validStart","_timestamp","toString","QUERY_REGISTRY","set"],"mappings":"+KA6Be,MAAMA,UAA0BC,EAK3C,WAAAC,CAAYC,EAAa,IACrBC,QAMAC,KAAKC,YAAc,KAEU,MAAzBH,EAAWI,YACXF,KAAKG,cAAcL,EAAWI,WAE1C,CAOI,oBAAOE,CAAcC,GACjB,MAAMC,EACFD,EACH,gBAED,OAAO,IAAIV,EAAkB,CACzBO,WACuB,MAAnBI,EAAKC,WACCC,EAAWJ,cAAcE,EAAKC,iBAC9BE,GAEtB,CAKI,cAAIP,GACA,OAAOF,KAAKC,WACpB,CAOI,aAAAE,CAAcD,GAMV,OALAF,KAAKC,YACqB,iBAAfC,EACDM,EAAWE,WAAWR,GACtBA,EAAWS,QAEdX,IACf,CAOI,aAAMY,CAAQC,GACV,OAAOd,MAAMa,QAAQC,EAC7B,CAKI,kBAAAC,CAAmBD,GACS,MAApBb,KAAKC,aACLD,KAAKC,YAAYc,iBAAiBF,EAE9C,CASI,QAAAG,CAASC,EAASC,GACd,OAAOD,EAAQE,SAASC,gBAAgBF,EAChD,CAQI,kBAAAG,CAAmBC,GAKf,OAFQA,EACH,gBAGb,MACA,CAWI,YAAAC,CAAaD,EAAUE,EAAeN,GAClC,MAAMZ,EACFgB,EACH,gBAED,OAAOG,QAAQC,QACXC,EAAavB,cAELE,EACpB,cAGA,CAQI,cAAAsB,CAAeC,GACX,MAAO,CACHC,gBAAiB,CACbD,SACAtB,WACwB,MAApBP,KAAKC,YACCD,KAAKC,YAAY8B,cACjB,MAG1B,CAKI,SAAAC,GAOI,MAAO,sBAL2B,MAA9BhC,KAAKiC,uBACoC,MAAzCjC,KAAKiC,sBAAsBC,WACrBlC,KAAKiC,sBAAsBC,WAC3BlC,KAAKmC,YAEuBC,YAC9C,EAIAC,EAAeC,IAAI,kBAAmB3C,EAAkBS"}
1
+ {"version":3,"file":"ScheduleInfoQuery.js","sources":["../../src/schedule/ScheduleInfoQuery.js"],"sourcesContent":["// SPDX-License-Identifier: Apache-2.0\n\nimport Query, { QUERY_REGISTRY } from \"../query/Query.js\";\nimport ScheduleId from \"./ScheduleId.js\";\nimport ScheduleInfo from \"./ScheduleInfo.js\";\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport Hbar from \"../Hbar.js\";\n\n/**\n * @namespace proto\n * @typedef {import(\"@hiero-ledger/proto\").proto.IQuery} HieroProto.proto.IQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.IQueryHeader} HieroProto.proto.IQueryHeader\n * @typedef {import(\"@hiero-ledger/proto\").proto.IResponse} HieroProto.proto.IResponse\n * @typedef {import(\"@hiero-ledger/proto\").proto.IResponseHeader} HieroProto.proto.IResponseHeader\n * @typedef {import(\"@hiero-ledger/proto\").proto.IScheduleInfo} HieroProto.proto.IScheduleInfo\n * @typedef {import(\"@hiero-ledger/proto\").proto.IScheduleGetInfoQuery} HieroProto.proto.IScheduleGetInfoQuery\n * @typedef {import(\"@hiero-ledger/proto\").proto.IScheduleGetInfoResponse} HieroProto.proto.IScheduleGetInfoResponse\n */\n\n/**\n * @typedef {import(\"../channel/Channel.js\").default} Channel\n * @typedef {import(\"../client/Client.js\").default<*, *>} Client\n * @typedef {import(\"../account/AccountId.js\").default} AccountId\n */\n\n/**\n * Retrieve the metadata for a schedule.\n * @augments {Query<ScheduleInfo>}\n */\nexport default class ScheduleInfoQuery extends Query {\n /**\n * @param {object} properties\n * @param {ScheduleId | string} [properties.scheduleId]\n */\n constructor(properties = {}) {\n super();\n\n /**\n * @private\n * @type {?ScheduleId}\n */\n this._scheduleId = null;\n\n if (properties.scheduleId != null) {\n this.setScheduleId(properties.scheduleId);\n }\n }\n\n /**\n * @internal\n * @param {HieroProto.proto.IQuery} query\n * @returns {ScheduleInfoQuery}\n */\n static _fromProtobuf(query) {\n const info = /** @type {HieroProto.proto.IScheduleGetInfoQuery} */ (\n query.scheduleGetInfo\n );\n\n return new ScheduleInfoQuery({\n scheduleId:\n info.scheduleID != null\n ? ScheduleId._fromProtobuf(info.scheduleID)\n : undefined,\n });\n }\n\n /**\n * @returns {?ScheduleId}\n */\n get scheduleId() {\n return this._scheduleId;\n }\n\n /**\n *\n * @param {ScheduleId | string} scheduleId\n * @returns {ScheduleInfoQuery}\n */\n setScheduleId(scheduleId) {\n this._scheduleId =\n typeof scheduleId === \"string\"\n ? ScheduleId.fromString(scheduleId)\n : scheduleId.clone();\n\n return this;\n }\n\n /**\n * @override\n * @param {import(\"../client/Client.js\").default<Channel, *>} client\n * @returns {Promise<Hbar>}\n */\n async getCost(client) {\n return super.getCost(client);\n }\n\n /**\n * @param {Client} client\n */\n _validateChecksums(client) {\n if (this._scheduleId != null) {\n this._scheduleId.validateChecksum(client);\n }\n }\n\n /**\n * @override\n * @internal\n * @param {Channel} channel\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<HieroProto.proto.IResponse>}\n */\n _execute(channel, request) {\n return channel.schedule.getScheduleInfo(request);\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @returns {HieroProto.proto.IResponseHeader}\n */\n _mapResponseHeader(response) {\n const scheduleGetInfo =\n /** @type {HieroProto.proto.IScheduleGetInfoResponse} */ (\n response.scheduleGetInfo\n );\n return /** @type {HieroProto.proto.IResponseHeader} */ (\n scheduleGetInfo.header\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IResponse} response\n * @param {AccountId} nodeAccountId\n * @param {HieroProto.proto.IQuery} request\n * @returns {Promise<ScheduleInfo>}\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _mapResponse(response, nodeAccountId, request) {\n const info = /** @type {HieroProto.proto.IScheduleGetInfoResponse} */ (\n response.scheduleGetInfo\n );\n\n return Promise.resolve(\n ScheduleInfo._fromProtobuf(\n /** @type {HieroProto.proto.IScheduleInfo} */ (\n info.scheduleInfo\n ),\n ),\n );\n }\n\n /**\n * @override\n * @internal\n * @param {HieroProto.proto.IQueryHeader} header\n * @returns {HieroProto.proto.IQuery}\n */\n _onMakeRequest(header) {\n return {\n scheduleGetInfo: {\n header,\n scheduleID:\n this._scheduleId != null\n ? this._scheduleId._toProtobuf()\n : null,\n },\n };\n }\n\n /**\n * @returns {string}\n */\n _getLogId() {\n const timestamp =\n this._paymentTransactionId != null &&\n this._paymentTransactionId.validStart != null\n ? this._paymentTransactionId.validStart\n : this._timestamp;\n\n return `ScheduleInfoQuery:${timestamp.toString()}`;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nQUERY_REGISTRY.set(\"scheduleGetInfo\", ScheduleInfoQuery._fromProtobuf);\n"],"names":["ScheduleInfoQuery","Query","constructor","properties","super","this","_scheduleId","scheduleId","setScheduleId","_fromProtobuf","query","info","scheduleID","ScheduleId","undefined","fromString","clone","getCost","client","_validateChecksums","validateChecksum","_execute","channel","request","schedule","getScheduleInfo","_mapResponseHeader","response","_mapResponse","nodeAccountId","Promise","resolve","ScheduleInfo","_onMakeRequest","header","scheduleGetInfo","_toProtobuf","_getLogId","_paymentTransactionId","validStart","_timestamp","toString","QUERY_REGISTRY","set"],"mappings":"+KA6Be,MAAMA,UAA0BC,EAK3C,WAAAC,CAAYC,EAAa,IACrBC,QAMAC,KAAKC,YAAc,KAEU,MAAzBH,EAAWI,YACXF,KAAKG,cAAcL,EAAWI,WAE1C,CAOI,oBAAOE,CAAcC,GACjB,MAAMC,EACFD,EACH,gBAED,OAAO,IAAIV,EAAkB,CACzBO,WACuB,MAAnBI,EAAKC,WACCC,EAAWJ,cAAcE,EAAKC,iBAC9BE,GAEtB,CAKI,cAAIP,GACA,OAAOF,KAAKC,WACpB,CAOI,aAAAE,CAAcD,GAMV,OALAF,KAAKC,YACqB,iBAAfC,EACDM,EAAWE,WAAWR,GACtBA,EAAWS,QAEdX,IACf,CAOI,aAAMY,CAAQC,GACV,OAAOd,MAAMa,QAAQC,EAC7B,CAKI,kBAAAC,CAAmBD,GACS,MAApBb,KAAKC,aACLD,KAAKC,YAAYc,iBAAiBF,EAE9C,CASI,QAAAG,CAASC,EAASC,GACd,OAAOD,EAAQE,SAASC,gBAAgBF,EAChD,CAQI,kBAAAG,CAAmBC,GAKf,OAFQA,EACH,gBAGb,MACA,CAWI,YAAAC,CAAaD,EAAUE,EAAeN,GAClC,MAAMZ,EACFgB,EACH,gBAED,OAAOG,QAAQC,QACXC,EAAavB,cAELE,EACpB,cAGA,CAQI,cAAAsB,CAAeC,GACX,MAAO,CACHC,gBAAiB,CACbD,SACAtB,WACwB,MAApBP,KAAKC,YACCD,KAAKC,YAAY8B,cACjB,MAG1B,CAKI,SAAAC,GAOI,MAAO,sBAL2B,MAA9BhC,KAAKiC,uBACoC,MAAzCjC,KAAKiC,sBAAsBC,WACrBlC,KAAKiC,sBAAsBC,WAC3BlC,KAAKmC,YAEuBC,YAC9C,EAIAC,EAAeC,IAAI,kBAAmB3C,EAAkBS"}
@@ -30,25 +30,25 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
30
30
 
31
31
  /**
32
32
  * @namespace proto
33
- * @typedef {import("@hashgraph/proto").proto.ITransaction} HieroProto.proto.ITransaction
34
- * @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
35
- * @typedef {import("@hashgraph/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
36
- * @typedef {import("@hashgraph/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
37
- * @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
38
- * @typedef {import("@hashgraph/proto").proto.IScheduleSignTransactionBody} HieroProto.proto.IScheduleSignTransactionBody
39
- * @typedef {import("@hashgraph/proto").proto.IAccountID} HieroProto.proto.IAccountID
40
- * @typedef {import("@hashgraph/proto").proto.ISignatureMap} HieroProto.proto.ISignatureMap
33
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
34
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
35
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
36
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
37
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
38
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleSignTransactionBody} HieroProto.proto.IScheduleSignTransactionBody
39
+ * @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
40
+ * @typedef {import("@hiero-ledger/proto").proto.ISignatureMap} HieroProto.proto.ISignatureMap
41
41
  */
42
42
 
43
43
  /**
44
44
  * @typedef {import("bignumber.js").default} BigNumber
45
- * @typedef {import("@hashgraph/cryptography").Key} Key
45
+ * @typedef {import("@hiero-ledger/cryptography").Key} Key
46
46
  * @typedef {import("../channel/Channel.js").default} Channel
47
47
  * @typedef {import("../client/Client.js").default<*, *>} Client
48
48
  * @typedef {import("../Timestamp.js").default} Timestamp
49
49
  * @typedef {import("../transaction/TransactionId.js").default} TransactionId
50
50
  * @typedef {import("../account/AccountId.js").default} AccountId
51
- * @typedef {import("@hashgraph/cryptography").PublicKey} PublicKey
51
+ * @typedef {import("@hiero-ledger/cryptography").PublicKey} PublicKey
52
52
  */
53
53
 
54
54
  /**
@@ -14,24 +14,24 @@
14
14
  */
15
15
  /**
16
16
  * @namespace proto
17
- * @typedef {import("@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.IScheduleSignTransactionBody} HieroProto.proto.IScheduleSignTransactionBody
23
- * @typedef {import("@hashgraph/proto").proto.IAccountID} HieroProto.proto.IAccountID
24
- * @typedef {import("@hashgraph/proto").proto.ISignatureMap} HieroProto.proto.ISignatureMap
17
+ * @typedef {import("@hiero-ledger/proto").proto.ITransaction} HieroProto.proto.ITransaction
18
+ * @typedef {import("@hiero-ledger/proto").proto.ISignedTransaction} HieroProto.proto.ISignedTransaction
19
+ * @typedef {import("@hiero-ledger/proto").proto.TransactionBody} HieroProto.proto.TransactionBody
20
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionBody} HieroProto.proto.ITransactionBody
21
+ * @typedef {import("@hiero-ledger/proto").proto.ITransactionResponse} HieroProto.proto.ITransactionResponse
22
+ * @typedef {import("@hiero-ledger/proto").proto.IScheduleSignTransactionBody} HieroProto.proto.IScheduleSignTransactionBody
23
+ * @typedef {import("@hiero-ledger/proto").proto.IAccountID} HieroProto.proto.IAccountID
24
+ * @typedef {import("@hiero-ledger/proto").proto.ISignatureMap} HieroProto.proto.ISignatureMap
25
25
  */
26
26
  /**
27
27
  * @typedef {import("bignumber.js").default} BigNumber
28
- * @typedef {import("@hashgraph/cryptography").Key} Key
28
+ * @typedef {import("@hiero-ledger/cryptography").Key} Key
29
29
  * @typedef {import("../channel/Channel.js").default} Channel
30
30
  * @typedef {import("../client/Client.js").default<*, *>} Client
31
31
  * @typedef {import("../Timestamp.js").default} Timestamp
32
32
  * @typedef {import("../transaction/TransactionId.js").default} TransactionId
33
33
  * @typedef {import("../account/AccountId.js").default} AccountId
34
- * @typedef {import("@hashgraph/cryptography").PublicKey} PublicKey
34
+ * @typedef {import("@hiero-ledger/cryptography").PublicKey} PublicKey
35
35
  */
36
36
  /**
37
37
  * Create a new Hedera™ crypto-currency account.
@@ -88,23 +88,23 @@ export type ProtoSignedTransaction = {
88
88
  };
89
89
  export namespace HieroProto {
90
90
  namespace proto {
91
- type ITransaction = import("@hashgraph/proto").proto.ITransaction;
92
- type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
93
- type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
94
- type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
95
- type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
96
- type IScheduleSignTransactionBody = import("@hashgraph/proto").proto.IScheduleSignTransactionBody;
97
- type IAccountID = import("@hashgraph/proto").proto.IAccountID;
98
- type ISignatureMap = import("@hashgraph/proto").proto.ISignatureMap;
91
+ type ITransaction = import("@hiero-ledger/proto").proto.ITransaction;
92
+ type ISignedTransaction = import("@hiero-ledger/proto").proto.ISignedTransaction;
93
+ type TransactionBody = import("@hiero-ledger/proto").proto.TransactionBody;
94
+ type ITransactionBody = import("@hiero-ledger/proto").proto.ITransactionBody;
95
+ type ITransactionResponse = import("@hiero-ledger/proto").proto.ITransactionResponse;
96
+ type IScheduleSignTransactionBody = import("@hiero-ledger/proto").proto.IScheduleSignTransactionBody;
97
+ type IAccountID = import("@hiero-ledger/proto").proto.IAccountID;
98
+ type ISignatureMap = import("@hiero-ledger/proto").proto.ISignatureMap;
99
99
  }
100
100
  }
101
101
  export type BigNumber = import("bignumber.js").default;
102
- export type Key = import("@hashgraph/cryptography").Key;
102
+ export type Key = import("@hiero-ledger/cryptography").Key;
103
103
  export type Channel = import("../channel/Channel.js").default;
104
104
  export type Client = import("../client/Client.js").default<any, any>;
105
105
  export type Timestamp = import("../Timestamp.js").default;
106
106
  export type TransactionId = import("../transaction/TransactionId.js").default;
107
107
  export type AccountId = import("../account/AccountId.js").default;
108
- export type PublicKey = import("@hashgraph/cryptography").PublicKey;
108
+ export type PublicKey = import("@hiero-ledger/cryptography").PublicKey;
109
109
  import Transaction from "../transaction/Transaction.js";
110
110
  import ScheduleId from "./ScheduleId.js";