@sravankumar02/sdk-core 1.0.0

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 (561) hide show
  1. package/LICENSE +11 -0
  2. package/README.md +94 -0
  3. package/out/abi/argSerializer.d.ts +45 -0
  4. package/out/abi/argSerializer.js +171 -0
  5. package/out/abi/argSerializer.js.map +1 -0
  6. package/out/abi/argumentErrorContext.d.ts +12 -0
  7. package/out/abi/argumentErrorContext.js +34 -0
  8. package/out/abi/argumentErrorContext.js.map +1 -0
  9. package/out/abi/code.d.ts +23 -0
  10. package/out/abi/code.js +41 -0
  11. package/out/abi/code.js.map +1 -0
  12. package/out/abi/codec/address.d.ts +24 -0
  13. package/out/abi/codec/address.js +41 -0
  14. package/out/abi/codec/address.js.map +1 -0
  15. package/out/abi/codec/arrayVec.d.ts +11 -0
  16. package/out/abi/codec/arrayVec.js +39 -0
  17. package/out/abi/codec/arrayVec.js.map +1 -0
  18. package/out/abi/codec/binary.d.ts +30 -0
  19. package/out/abi/codec/binary.js +134 -0
  20. package/out/abi/codec/binary.js.map +1 -0
  21. package/out/abi/codec/binaryCodecUtils.d.ts +6 -0
  22. package/out/abi/codec/binaryCodecUtils.js +35 -0
  23. package/out/abi/codec/binaryCodecUtils.js.map +1 -0
  24. package/out/abi/codec/boolean.d.ts +13 -0
  25. package/out/abi/codec/boolean.js +57 -0
  26. package/out/abi/codec/boolean.js.map +1 -0
  27. package/out/abi/codec/bytes.d.ts +11 -0
  28. package/out/abi/codec/bytes.js +30 -0
  29. package/out/abi/codec/bytes.js.map +1 -0
  30. package/out/abi/codec/codemetadata.d.ts +8 -0
  31. package/out/abi/codec/codemetadata.js +23 -0
  32. package/out/abi/codec/codemetadata.js.map +1 -0
  33. package/out/abi/codec/constants.d.ts +1 -0
  34. package/out/abi/codec/constants.js +5 -0
  35. package/out/abi/codec/constants.js.map +1 -0
  36. package/out/abi/codec/enum.d.ts +13 -0
  37. package/out/abi/codec/enum.js +49 -0
  38. package/out/abi/codec/enum.js.map +1 -0
  39. package/out/abi/codec/explicit-enum.d.ts +10 -0
  40. package/out/abi/codec/explicit-enum.js +30 -0
  41. package/out/abi/codec/explicit-enum.js.map +1 -0
  42. package/out/abi/codec/fields.d.ts +9 -0
  43. package/out/abi/codec/fields.js +31 -0
  44. package/out/abi/codec/fields.js.map +1 -0
  45. package/out/abi/codec/h256.d.ts +24 -0
  46. package/out/abi/codec/h256.js +39 -0
  47. package/out/abi/codec/h256.js.map +1 -0
  48. package/out/abi/codec/index.d.ts +6 -0
  49. package/out/abi/codec/index.js +19 -0
  50. package/out/abi/codec/index.js.map +1 -0
  51. package/out/abi/codec/list.d.ts +14 -0
  52. package/out/abi/codec/list.js +67 -0
  53. package/out/abi/codec/list.js.map +1 -0
  54. package/out/abi/codec/managedDecimal.d.ts +11 -0
  55. package/out/abi/codec/managedDecimal.js +53 -0
  56. package/out/abi/codec/managedDecimal.js.map +1 -0
  57. package/out/abi/codec/managedDecimalSigned.d.ts +11 -0
  58. package/out/abi/codec/managedDecimalSigned.js +53 -0
  59. package/out/abi/codec/managedDecimalSigned.js.map +1 -0
  60. package/out/abi/codec/nothing.d.ts +8 -0
  61. package/out/abi/codec/nothing.js +20 -0
  62. package/out/abi/codec/nothing.js.map +1 -0
  63. package/out/abi/codec/numerical.d.ts +13 -0
  64. package/out/abi/codec/numerical.js +122 -0
  65. package/out/abi/codec/numerical.js.map +1 -0
  66. package/out/abi/codec/option.d.ts +14 -0
  67. package/out/abi/codec/option.js +66 -0
  68. package/out/abi/codec/option.js.map +1 -0
  69. package/out/abi/codec/primitive.d.ts +20 -0
  70. package/out/abi/codec/primitive.js +81 -0
  71. package/out/abi/codec/primitive.js.map +1 -0
  72. package/out/abi/codec/string.d.ts +9 -0
  73. package/out/abi/codec/string.js +28 -0
  74. package/out/abi/codec/string.js.map +1 -0
  75. package/out/abi/codec/struct.d.ts +11 -0
  76. package/out/abi/codec/struct.js +30 -0
  77. package/out/abi/codec/struct.js.map +1 -0
  78. package/out/abi/codec/tokenIdentifier.d.ts +9 -0
  79. package/out/abi/codec/tokenIdentifier.js +28 -0
  80. package/out/abi/codec/tokenIdentifier.js.map +1 -0
  81. package/out/abi/codec/tuple.d.ts +11 -0
  82. package/out/abi/codec/tuple.js +23 -0
  83. package/out/abi/codec/tuple.js.map +1 -0
  84. package/out/abi/codec/utils.d.ts +20 -0
  85. package/out/abi/codec/utils.js +69 -0
  86. package/out/abi/codec/utils.js.map +1 -0
  87. package/out/abi/function.d.ts +24 -0
  88. package/out/abi/function.js +56 -0
  89. package/out/abi/function.js.map +1 -0
  90. package/out/abi/index.d.ts +12 -0
  91. package/out/abi/index.js +25 -0
  92. package/out/abi/index.js.map +1 -0
  93. package/out/abi/interaction.d.ts +67 -0
  94. package/out/abi/interaction.js +146 -0
  95. package/out/abi/interaction.js.map +1 -0
  96. package/out/abi/interface.d.ts +85 -0
  97. package/out/abi/interface.js +3 -0
  98. package/out/abi/interface.js.map +1 -0
  99. package/out/abi/nativeSerializer.d.ts +27 -0
  100. package/out/abi/nativeSerializer.js +343 -0
  101. package/out/abi/nativeSerializer.js.map +1 -0
  102. package/out/abi/query.d.ts +18 -0
  103. package/out/abi/query.js +19 -0
  104. package/out/abi/query.js.map +1 -0
  105. package/out/abi/returnCode.d.ts +26 -0
  106. package/out/abi/returnCode.js +45 -0
  107. package/out/abi/returnCode.js.map +1 -0
  108. package/out/abi/smartContract.d.ts +74 -0
  109. package/out/abi/smartContract.js +208 -0
  110. package/out/abi/smartContract.js.map +1 -0
  111. package/out/abi/typeFormula.d.ts +7 -0
  112. package/out/abi/typeFormula.js +20 -0
  113. package/out/abi/typeFormula.js.map +1 -0
  114. package/out/abi/typeFormulaParser.d.ts +14 -0
  115. package/out/abi/typeFormulaParser.js +126 -0
  116. package/out/abi/typeFormulaParser.js.map +1 -0
  117. package/out/abi/typesystem/abi.d.ts +64 -0
  118. package/out/abi/typesystem/abi.js +208 -0
  119. package/out/abi/typesystem/abi.js.map +1 -0
  120. package/out/abi/typesystem/address.d.ts +23 -0
  121. package/out/abi/typesystem/address.js +41 -0
  122. package/out/abi/typesystem/address.js.map +1 -0
  123. package/out/abi/typesystem/algebraic.d.ts +24 -0
  124. package/out/abi/typesystem/algebraic.js +59 -0
  125. package/out/abi/typesystem/algebraic.js.map +1 -0
  126. package/out/abi/typesystem/boolean.d.ts +24 -0
  127. package/out/abi/typesystem/boolean.js +46 -0
  128. package/out/abi/typesystem/boolean.js.map +1 -0
  129. package/out/abi/typesystem/bytes.d.ts +28 -0
  130. package/out/abi/typesystem/bytes.js +58 -0
  131. package/out/abi/typesystem/bytes.js.map +1 -0
  132. package/out/abi/typesystem/codeMetadata.d.ts +11 -0
  133. package/out/abi/typesystem/codeMetadata.js +24 -0
  134. package/out/abi/typesystem/codeMetadata.js.map +1 -0
  135. package/out/abi/typesystem/collections.d.ts +9 -0
  136. package/out/abi/typesystem/collections.js +32 -0
  137. package/out/abi/typesystem/collections.js.map +1 -0
  138. package/out/abi/typesystem/composite.d.ts +16 -0
  139. package/out/abi/typesystem/composite.js +53 -0
  140. package/out/abi/typesystem/composite.js.map +1 -0
  141. package/out/abi/typesystem/endpoint.d.ts +41 -0
  142. package/out/abi/typesystem/endpoint.js +78 -0
  143. package/out/abi/typesystem/endpoint.js.map +1 -0
  144. package/out/abi/typesystem/enum.d.ts +51 -0
  145. package/out/abi/typesystem/enum.js +137 -0
  146. package/out/abi/typesystem/enum.js.map +1 -0
  147. package/out/abi/typesystem/event.d.ts +25 -0
  148. package/out/abi/typesystem/event.js +36 -0
  149. package/out/abi/typesystem/event.js.map +1 -0
  150. package/out/abi/typesystem/explicit-enum.d.ts +33 -0
  151. package/out/abi/typesystem/explicit-enum.js +63 -0
  152. package/out/abi/typesystem/explicit-enum.js.map +1 -0
  153. package/out/abi/typesystem/factory.d.ts +4 -0
  154. package/out/abi/typesystem/factory.js +19 -0
  155. package/out/abi/typesystem/factory.js.map +1 -0
  156. package/out/abi/typesystem/fields.d.ts +24 -0
  157. package/out/abi/typesystem/fields.js +90 -0
  158. package/out/abi/typesystem/fields.js.map +1 -0
  159. package/out/abi/typesystem/generic.d.ts +47 -0
  160. package/out/abi/typesystem/generic.js +120 -0
  161. package/out/abi/typesystem/generic.js.map +1 -0
  162. package/out/abi/typesystem/genericArray.d.ts +17 -0
  163. package/out/abi/typesystem/genericArray.js +44 -0
  164. package/out/abi/typesystem/genericArray.js.map +1 -0
  165. package/out/abi/typesystem/h256.d.ts +18 -0
  166. package/out/abi/typesystem/h256.js +35 -0
  167. package/out/abi/typesystem/h256.js.map +1 -0
  168. package/out/abi/typesystem/index.d.ts +33 -0
  169. package/out/abi/typesystem/index.js +46 -0
  170. package/out/abi/typesystem/index.js.map +1 -0
  171. package/out/abi/typesystem/managedDecimal.d.ts +26 -0
  172. package/out/abi/typesystem/managedDecimal.js +62 -0
  173. package/out/abi/typesystem/managedDecimal.js.map +1 -0
  174. package/out/abi/typesystem/managedDecimalSigned.d.ts +26 -0
  175. package/out/abi/typesystem/managedDecimalSigned.js +62 -0
  176. package/out/abi/typesystem/managedDecimalSigned.js.map +1 -0
  177. package/out/abi/typesystem/matchers.d.ts +51 -0
  178. package/out/abi/typesystem/matchers.js +185 -0
  179. package/out/abi/typesystem/matchers.js.map +1 -0
  180. package/out/abi/typesystem/nothing.d.ts +13 -0
  181. package/out/abi/typesystem/nothing.js +31 -0
  182. package/out/abi/typesystem/nothing.js.map +1 -0
  183. package/out/abi/typesystem/numerical.d.ts +130 -0
  184. package/out/abi/typesystem/numerical.js +286 -0
  185. package/out/abi/typesystem/numerical.js.map +1 -0
  186. package/out/abi/typesystem/string.d.ts +26 -0
  187. package/out/abi/typesystem/string.js +51 -0
  188. package/out/abi/typesystem/string.js.map +1 -0
  189. package/out/abi/typesystem/struct.d.ts +30 -0
  190. package/out/abi/typesystem/struct.js +78 -0
  191. package/out/abi/typesystem/struct.js.map +1 -0
  192. package/out/abi/typesystem/tokenIdentifier.d.ts +21 -0
  193. package/out/abi/typesystem/tokenIdentifier.js +51 -0
  194. package/out/abi/typesystem/tokenIdentifier.js.map +1 -0
  195. package/out/abi/typesystem/tuple.d.ts +16 -0
  196. package/out/abi/typesystem/tuple.js +71 -0
  197. package/out/abi/typesystem/tuple.js.map +1 -0
  198. package/out/abi/typesystem/typeExpressionParser.d.ts +8 -0
  199. package/out/abi/typesystem/typeExpressionParser.js +30 -0
  200. package/out/abi/typesystem/typeExpressionParser.js.map +1 -0
  201. package/out/abi/typesystem/typeMapper.d.ts +20 -0
  202. package/out/abi/typesystem/typeMapper.js +215 -0
  203. package/out/abi/typesystem/typeMapper.js.map +1 -0
  204. package/out/abi/typesystem/types.d.ts +129 -0
  205. package/out/abi/typesystem/types.js +285 -0
  206. package/out/abi/typesystem/types.js.map +1 -0
  207. package/out/abi/typesystem/variadic.d.ts +35 -0
  208. package/out/abi/typesystem/variadic.js +81 -0
  209. package/out/abi/typesystem/variadic.js.map +1 -0
  210. package/out/accountManagement/accountController.d.ts +18 -0
  211. package/out/accountManagement/accountController.js +54 -0
  212. package/out/accountManagement/accountController.js.map +1 -0
  213. package/out/accountManagement/accountTransactionsFactory.d.ts +27 -0
  214. package/out/accountManagement/accountTransactionsFactory.js +78 -0
  215. package/out/accountManagement/accountTransactionsFactory.js.map +1 -0
  216. package/out/accountManagement/index.d.ts +3 -0
  217. package/out/accountManagement/index.js +16 -0
  218. package/out/accountManagement/index.js.map +1 -0
  219. package/out/accountManagement/resources.d.ts +8 -0
  220. package/out/accountManagement/resources.js +3 -0
  221. package/out/accountManagement/resources.js.map +1 -0
  222. package/out/accounts/account.d.ts +94 -0
  223. package/out/accounts/account.js +154 -0
  224. package/out/accounts/account.js.map +1 -0
  225. package/out/accounts/index.d.ts +1 -0
  226. package/out/accounts/index.js +14 -0
  227. package/out/accounts/index.js.map +1 -0
  228. package/out/core/address.d.ts +105 -0
  229. package/out/core/address.js +313 -0
  230. package/out/core/address.js.map +1 -0
  231. package/out/core/asyncTimer.d.ts +27 -0
  232. package/out/core/asyncTimer.js +91 -0
  233. package/out/core/asyncTimer.js.map +1 -0
  234. package/out/core/baseController.d.ts +16 -0
  235. package/out/core/baseController.js +34 -0
  236. package/out/core/baseController.js.map +1 -0
  237. package/out/core/codeMetadata.d.ts +74 -0
  238. package/out/core/codeMetadata.js +146 -0
  239. package/out/core/codeMetadata.js.map +1 -0
  240. package/out/core/compatibility.d.ts +10 -0
  241. package/out/core/compatibility.js +22 -0
  242. package/out/core/compatibility.js.map +1 -0
  243. package/out/core/config.d.ts +15 -0
  244. package/out/core/config.js +20 -0
  245. package/out/core/config.js.map +1 -0
  246. package/out/core/constants.d.ts +28 -0
  247. package/out/core/constants.js +32 -0
  248. package/out/core/constants.js.map +1 -0
  249. package/out/core/errors.d.ts +279 -0
  250. package/out/core/errors.js +437 -0
  251. package/out/core/errors.js.map +1 -0
  252. package/out/core/globals.d.ts +0 -0
  253. package/out/core/globals.js +5 -0
  254. package/out/core/globals.js.map +1 -0
  255. package/out/core/index.d.ts +21 -0
  256. package/out/core/index.js +35 -0
  257. package/out/core/index.js.map +1 -0
  258. package/out/core/interfaces.d.ts +40 -0
  259. package/out/core/interfaces.js +3 -0
  260. package/out/core/interfaces.js.map +1 -0
  261. package/out/core/logger.d.ts +17 -0
  262. package/out/core/logger.js +50 -0
  263. package/out/core/logger.js.map +1 -0
  264. package/out/core/message.d.ts +57 -0
  265. package/out/core/message.js +71 -0
  266. package/out/core/message.js.map +1 -0
  267. package/out/core/networkParams.d.ts +57 -0
  268. package/out/core/networkParams.js +112 -0
  269. package/out/core/networkParams.js.map +1 -0
  270. package/out/core/reflection.d.ts +1 -0
  271. package/out/core/reflection.js +14 -0
  272. package/out/core/reflection.js.map +1 -0
  273. package/out/core/signature.d.ts +17 -0
  274. package/out/core/signature.js +82 -0
  275. package/out/core/signature.js.map +1 -0
  276. package/out/core/smartContractQuery.d.ts +35 -0
  277. package/out/core/smartContractQuery.js +34 -0
  278. package/out/core/smartContractQuery.js.map +1 -0
  279. package/out/core/tokenTransfersDataBuilder.d.ts +10 -0
  280. package/out/core/tokenTransfersDataBuilder.js +44 -0
  281. package/out/core/tokenTransfersDataBuilder.js.map +1 -0
  282. package/out/core/tokens.d.ts +130 -0
  283. package/out/core/tokens.js +287 -0
  284. package/out/core/tokens.js.map +1 -0
  285. package/out/core/transaction.d.ts +263 -0
  286. package/out/core/transaction.js +323 -0
  287. package/out/core/transaction.js.map +1 -0
  288. package/out/core/transactionBuilder.d.ts +32 -0
  289. package/out/core/transactionBuilder.js +45 -0
  290. package/out/core/transactionBuilder.js.map +1 -0
  291. package/out/core/transactionComputer.d.ts +51 -0
  292. package/out/core/transactionComputer.js +163 -0
  293. package/out/core/transactionComputer.js.map +1 -0
  294. package/out/core/transactionEvents.d.ts +17 -0
  295. package/out/core/transactionEvents.js +27 -0
  296. package/out/core/transactionEvents.js.map +1 -0
  297. package/out/core/transactionLogs.d.ts +11 -0
  298. package/out/core/transactionLogs.js +38 -0
  299. package/out/core/transactionLogs.js.map +1 -0
  300. package/out/core/transactionOnNetwork.d.ts +40 -0
  301. package/out/core/transactionOnNetwork.js +164 -0
  302. package/out/core/transactionOnNetwork.js.map +1 -0
  303. package/out/core/transactionStatus.d.ts +45 -0
  304. package/out/core/transactionStatus.js +71 -0
  305. package/out/core/transactionStatus.js.map +1 -0
  306. package/out/core/transactionWatcher.d.ts +48 -0
  307. package/out/core/transactionWatcher.js +148 -0
  308. package/out/core/transactionWatcher.js.map +1 -0
  309. package/out/core/transactionsFactoryConfig.d.ts +54 -0
  310. package/out/core/transactionsFactoryConfig.js +66 -0
  311. package/out/core/transactionsFactoryConfig.js.map +1 -0
  312. package/out/core/utils.codec.d.ts +8 -0
  313. package/out/core/utils.codec.js +75 -0
  314. package/out/core/utils.codec.js.map +1 -0
  315. package/out/core/utils.d.ts +20 -0
  316. package/out/core/utils.js +86 -0
  317. package/out/core/utils.js.map +1 -0
  318. package/out/delegation/delegationController.d.ts +37 -0
  319. package/out/delegation/delegationController.js +215 -0
  320. package/out/delegation/delegationController.js.map +1 -0
  321. package/out/delegation/delegationTransactionsFactory.d.ts +48 -0
  322. package/out/delegation/delegationTransactionsFactory.js +311 -0
  323. package/out/delegation/delegationTransactionsFactory.js.map +1 -0
  324. package/out/delegation/delegationTransactionsOutcomeParser.d.ts +10 -0
  325. package/out/delegation/delegationTransactionsOutcomeParser.js +35 -0
  326. package/out/delegation/delegationTransactionsOutcomeParser.js.map +1 -0
  327. package/out/delegation/index.d.ts +4 -0
  328. package/out/delegation/index.js +17 -0
  329. package/out/delegation/index.js.map +1 -0
  330. package/out/delegation/resources.d.ts +38 -0
  331. package/out/delegation/resources.js +3 -0
  332. package/out/delegation/resources.js.map +1 -0
  333. package/out/entrypoints/config.d.ts +29 -0
  334. package/out/entrypoints/config.js +36 -0
  335. package/out/entrypoints/config.js.map +1 -0
  336. package/out/entrypoints/entrypoints.d.ts +92 -0
  337. package/out/entrypoints/entrypoints.js +203 -0
  338. package/out/entrypoints/entrypoints.js.map +1 -0
  339. package/out/entrypoints/index.d.ts +2 -0
  340. package/out/entrypoints/index.js +15 -0
  341. package/out/entrypoints/index.js.map +1 -0
  342. package/out/governance/governanceController.d.ts +33 -0
  343. package/out/governance/governanceController.js +205 -0
  344. package/out/governance/governanceController.js.map +1 -0
  345. package/out/governance/governanceTransactionsFactory.d.ts +16 -0
  346. package/out/governance/governanceTransactionsFactory.js +99 -0
  347. package/out/governance/governanceTransactionsFactory.js.map +1 -0
  348. package/out/governance/governanceTransactionsOutcomeParser.d.ts +15 -0
  349. package/out/governance/governanceTransactionsOutcomeParser.js +99 -0
  350. package/out/governance/governanceTransactionsOutcomeParser.js.map +1 -0
  351. package/out/governance/index.d.ts +4 -0
  352. package/out/governance/index.js +17 -0
  353. package/out/governance/index.js.map +1 -0
  354. package/out/governance/resources.d.ts +82 -0
  355. package/out/governance/resources.js +11 -0
  356. package/out/governance/resources.js.map +1 -0
  357. package/out/index.d.ts +19 -0
  358. package/out/index.js +32 -0
  359. package/out/index.js.map +1 -0
  360. package/out/multisig/index.d.ts +3 -0
  361. package/out/multisig/index.js +16 -0
  362. package/out/multisig/index.js.map +1 -0
  363. package/out/multisig/multisigController.d.ts +221 -0
  364. package/out/multisig/multisigController.js +540 -0
  365. package/out/multisig/multisigController.js.map +1 -0
  366. package/out/multisig/multisigTransactionsFactory.d.ts +110 -0
  367. package/out/multisig/multisigTransactionsFactory.js +355 -0
  368. package/out/multisig/multisigTransactionsFactory.js.map +1 -0
  369. package/out/multisig/multisigTransactionsOutcomeParser.d.ts +31 -0
  370. package/out/multisig/multisigTransactionsOutcomeParser.js +41 -0
  371. package/out/multisig/multisigTransactionsOutcomeParser.js.map +1 -0
  372. package/out/multisig/proposeTransferExecuteContractInput.d.ts +32 -0
  373. package/out/multisig/proposeTransferExecuteContractInput.js +65 -0
  374. package/out/multisig/proposeTransferExecuteContractInput.js.map +1 -0
  375. package/out/multisig/resources.d.ts +182 -0
  376. package/out/multisig/resources.js +125 -0
  377. package/out/multisig/resources.js.map +1 -0
  378. package/out/networkProviders/accountAwaiter.d.ts +35 -0
  379. package/out/networkProviders/accountAwaiter.js +67 -0
  380. package/out/networkProviders/accountAwaiter.js.map +1 -0
  381. package/out/networkProviders/accounts.d.ts +55 -0
  382. package/out/networkProviders/accounts.js +154 -0
  383. package/out/networkProviders/accounts.js.map +1 -0
  384. package/out/networkProviders/apiNetworkProvider.d.ts +48 -0
  385. package/out/networkProviders/apiNetworkProvider.js +235 -0
  386. package/out/networkProviders/apiNetworkProvider.js.map +1 -0
  387. package/out/networkProviders/blocks.d.ts +48 -0
  388. package/out/networkProviders/blocks.js +76 -0
  389. package/out/networkProviders/blocks.js.map +1 -0
  390. package/out/networkProviders/config.d.ts +6 -0
  391. package/out/networkProviders/config.js +18 -0
  392. package/out/networkProviders/config.js.map +1 -0
  393. package/out/networkProviders/constants.d.ts +9 -0
  394. package/out/networkProviders/constants.js +16 -0
  395. package/out/networkProviders/constants.js.map +1 -0
  396. package/out/networkProviders/contractQueryRequest.d.ts +6 -0
  397. package/out/networkProviders/contractQueryRequest.js +20 -0
  398. package/out/networkProviders/contractQueryRequest.js.map +1 -0
  399. package/out/networkProviders/index.d.ts +11 -0
  400. package/out/networkProviders/index.js +28 -0
  401. package/out/networkProviders/index.js.map +1 -0
  402. package/out/networkProviders/interface.d.ts +110 -0
  403. package/out/networkProviders/interface.js +3 -0
  404. package/out/networkProviders/interface.js.map +1 -0
  405. package/out/networkProviders/networkConfig.d.ts +48 -0
  406. package/out/networkProviders/networkConfig.js +41 -0
  407. package/out/networkProviders/networkConfig.js.map +1 -0
  408. package/out/networkProviders/networkProviderConfig.d.ts +4 -0
  409. package/out/networkProviders/networkProviderConfig.js +3 -0
  410. package/out/networkProviders/networkProviderConfig.js.map +1 -0
  411. package/out/networkProviders/networkStatus.d.ts +31 -0
  412. package/out/networkProviders/networkStatus.js +31 -0
  413. package/out/networkProviders/networkStatus.js.map +1 -0
  414. package/out/networkProviders/proxyNetworkProvider.d.ts +51 -0
  415. package/out/networkProviders/proxyNetworkProvider.js +261 -0
  416. package/out/networkProviders/proxyNetworkProvider.js.map +1 -0
  417. package/out/networkProviders/resources.d.ts +12 -0
  418. package/out/networkProviders/resources.js +29 -0
  419. package/out/networkProviders/resources.js.map +1 -0
  420. package/out/networkProviders/tokenDefinitions.d.ts +49 -0
  421. package/out/networkProviders/tokenDefinitions.js +152 -0
  422. package/out/networkProviders/tokenDefinitions.js.map +1 -0
  423. package/out/networkProviders/tokens.d.ts +40 -0
  424. package/out/networkProviders/tokens.js +106 -0
  425. package/out/networkProviders/tokens.js.map +1 -0
  426. package/out/networkProviders/userAgent.d.ts +2 -0
  427. package/out/networkProviders/userAgent.js +30 -0
  428. package/out/networkProviders/userAgent.js.map +1 -0
  429. package/out/proto/compiled.d.ts +2 -0
  430. package/out/proto/compiled.js +719 -0
  431. package/out/proto/compiled.js.map +1 -0
  432. package/out/proto/index.d.ts +5 -0
  433. package/out/proto/index.js +18 -0
  434. package/out/proto/index.js.map +1 -0
  435. package/out/proto/serializer.d.ts +22 -0
  436. package/out/proto/serializer.js +114 -0
  437. package/out/proto/serializer.js.map +1 -0
  438. package/out/smartContracts/index.d.ts +4 -0
  439. package/out/smartContracts/index.js +17 -0
  440. package/out/smartContracts/index.js.map +1 -0
  441. package/out/smartContracts/resources.d.ts +38 -0
  442. package/out/smartContracts/resources.js +3 -0
  443. package/out/smartContracts/resources.js.map +1 -0
  444. package/out/smartContracts/smartContractController.d.ts +32 -0
  445. package/out/smartContracts/smartContractController.js +128 -0
  446. package/out/smartContracts/smartContractController.js.map +1 -0
  447. package/out/smartContracts/smartContractTransactionsFactory.d.ts +42 -0
  448. package/out/smartContracts/smartContractTransactionsFactory.js +165 -0
  449. package/out/smartContracts/smartContractTransactionsFactory.js.map +1 -0
  450. package/out/smartContracts/smartContractTransactionsOutcomeParser.d.ts +28 -0
  451. package/out/smartContracts/smartContractTransactionsOutcomeParser.js +189 -0
  452. package/out/smartContracts/smartContractTransactionsOutcomeParser.js.map +1 -0
  453. package/out/tokenManagement/index.d.ts +4 -0
  454. package/out/tokenManagement/index.js +17 -0
  455. package/out/tokenManagement/index.js.map +1 -0
  456. package/out/tokenManagement/resources.d.ts +220 -0
  457. package/out/tokenManagement/resources.js +3 -0
  458. package/out/tokenManagement/resources.js.map +1 -0
  459. package/out/tokenManagement/tokenManagementController.d.ts +108 -0
  460. package/out/tokenManagement/tokenManagementController.js +582 -0
  461. package/out/tokenManagement/tokenManagementController.js.map +1 -0
  462. package/out/tokenManagement/tokenManagementTransactionsFactory.d.ts +82 -0
  463. package/out/tokenManagement/tokenManagementTransactionsFactory.js +684 -0
  464. package/out/tokenManagement/tokenManagementTransactionsFactory.js.map +1 -0
  465. package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.d.ts +109 -0
  466. package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.js +356 -0
  467. package/out/tokenManagement/tokenManagementTransactionsOutcomeParser.js.map +1 -0
  468. package/out/tokenOperations/codec.d.ts +7 -0
  469. package/out/tokenOperations/codec.js +55 -0
  470. package/out/tokenOperations/codec.js.map +1 -0
  471. package/out/transactionsOutcomeParsers/index.d.ts +4 -0
  472. package/out/transactionsOutcomeParsers/index.js +17 -0
  473. package/out/transactionsOutcomeParsers/index.js.map +1 -0
  474. package/out/transactionsOutcomeParsers/resources.d.ts +23 -0
  475. package/out/transactionsOutcomeParsers/resources.js +48 -0
  476. package/out/transactionsOutcomeParsers/resources.js.map +1 -0
  477. package/out/transactionsOutcomeParsers/transactionEventsParser.d.ts +16 -0
  478. package/out/transactionsOutcomeParsers/transactionEventsParser.js +48 -0
  479. package/out/transactionsOutcomeParsers/transactionEventsParser.js.map +1 -0
  480. package/out/transfers/index.d.ts +3 -0
  481. package/out/transfers/index.js +16 -0
  482. package/out/transfers/index.js.map +1 -0
  483. package/out/transfers/resources.d.ts +17 -0
  484. package/out/transfers/resources.js +3 -0
  485. package/out/transfers/resources.js.map +1 -0
  486. package/out/transfers/transferTransactionsFactory.d.ts +32 -0
  487. package/out/transfers/transferTransactionsFactory.js +131 -0
  488. package/out/transfers/transferTransactionsFactory.js.map +1 -0
  489. package/out/transfers/transfersControllers.d.ts +11 -0
  490. package/out/transfers/transfersControllers.js +43 -0
  491. package/out/transfers/transfersControllers.js.map +1 -0
  492. package/out/wallet/assertions.d.ts +3 -0
  493. package/out/wallet/assertions.js +12 -0
  494. package/out/wallet/assertions.js.map +1 -0
  495. package/out/wallet/crypto/constants.d.ts +6 -0
  496. package/out/wallet/crypto/constants.js +11 -0
  497. package/out/wallet/crypto/constants.js.map +1 -0
  498. package/out/wallet/crypto/decryptor.d.ts +5 -0
  499. package/out/wallet/crypto/decryptor.js +29 -0
  500. package/out/wallet/crypto/decryptor.js.map +1 -0
  501. package/out/wallet/crypto/derivationParams.d.ts +23 -0
  502. package/out/wallet/crypto/derivationParams.js +38 -0
  503. package/out/wallet/crypto/derivationParams.js.map +1 -0
  504. package/out/wallet/crypto/encryptedData.d.ts +15 -0
  505. package/out/wallet/crypto/encryptedData.js +52 -0
  506. package/out/wallet/crypto/encryptedData.js.map +1 -0
  507. package/out/wallet/crypto/encryptor.d.ts +14 -0
  508. package/out/wallet/crypto/encryptor.js +39 -0
  509. package/out/wallet/crypto/encryptor.js.map +1 -0
  510. package/out/wallet/crypto/index.d.ts +7 -0
  511. package/out/wallet/crypto/index.js +20 -0
  512. package/out/wallet/crypto/index.js.map +1 -0
  513. package/out/wallet/crypto/pubkeyDecryptor.d.ts +6 -0
  514. package/out/wallet/crypto/pubkeyDecryptor.js +38 -0
  515. package/out/wallet/crypto/pubkeyDecryptor.js.map +1 -0
  516. package/out/wallet/crypto/pubkeyEncryptor.d.ts +6 -0
  517. package/out/wallet/crypto/pubkeyEncryptor.js +54 -0
  518. package/out/wallet/crypto/pubkeyEncryptor.js.map +1 -0
  519. package/out/wallet/crypto/randomness.d.ts +7 -0
  520. package/out/wallet/crypto/randomness.js +15 -0
  521. package/out/wallet/crypto/randomness.js.map +1 -0
  522. package/out/wallet/crypto/x25519EncryptedData.d.ts +15 -0
  523. package/out/wallet/crypto/x25519EncryptedData.js +37 -0
  524. package/out/wallet/crypto/x25519EncryptedData.js.map +1 -0
  525. package/out/wallet/index.d.ts +11 -0
  526. package/out/wallet/index.js +24 -0
  527. package/out/wallet/index.js.map +1 -0
  528. package/out/wallet/keypair.d.ts +12 -0
  529. package/out/wallet/keypair.js +32 -0
  530. package/out/wallet/keypair.js.map +1 -0
  531. package/out/wallet/mnemonic.d.ts +13 -0
  532. package/out/wallet/mnemonic.js +74 -0
  533. package/out/wallet/mnemonic.js.map +1 -0
  534. package/out/wallet/pem.d.ts +8 -0
  535. package/out/wallet/pem.js +60 -0
  536. package/out/wallet/pem.js.map +1 -0
  537. package/out/wallet/pemEntry.d.ts +10 -0
  538. package/out/wallet/pemEntry.js +73 -0
  539. package/out/wallet/pemEntry.js.map +1 -0
  540. package/out/wallet/userKeys.d.ts +23 -0
  541. package/out/wallet/userKeys.js +99 -0
  542. package/out/wallet/userKeys.js.map +1 -0
  543. package/out/wallet/userPem.d.ts +15 -0
  544. package/out/wallet/userPem.js +51 -0
  545. package/out/wallet/userPem.js.map +1 -0
  546. package/out/wallet/userSigner.d.ts +16 -0
  547. package/out/wallet/userSigner.js +41 -0
  548. package/out/wallet/userSigner.js.map +1 -0
  549. package/out/wallet/userVerifier.d.ts +18 -0
  550. package/out/wallet/userVerifier.js +27 -0
  551. package/out/wallet/userVerifier.js.map +1 -0
  552. package/out/wallet/userWallet.d.ts +54 -0
  553. package/out/wallet/userWallet.js +206 -0
  554. package/out/wallet/userWallet.js.map +1 -0
  555. package/out/wallet/validatorKeys.d.ts +26 -0
  556. package/out/wallet/validatorKeys.js +77 -0
  557. package/out/wallet/validatorKeys.js.map +1 -0
  558. package/out/wallet/validatorSigner.d.ts +10 -0
  559. package/out/wallet/validatorSigner.js +25 -0
  560. package/out/wallet/validatorSigner.js.map +1 -0
  561. package/package.json +84 -0
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StringBinaryCodec = void 0;
4
+ const typesystem_1 = require("../typesystem");
5
+ const bytes_1 = require("../typesystem/bytes");
6
+ const bytes_2 = require("./bytes");
7
+ class StringBinaryCodec {
8
+ constructor() {
9
+ this.bytesBinaryCodec = new bytes_2.BytesBinaryCodec();
10
+ }
11
+ decodeNested(buffer) {
12
+ let [decoded, length] = this.bytesBinaryCodec.decodeNested(buffer);
13
+ let decodedAsString = new typesystem_1.StringValue(decoded.valueOf().toString());
14
+ return [decodedAsString, length];
15
+ }
16
+ decodeTopLevel(buffer) {
17
+ return new typesystem_1.StringValue(buffer.toString());
18
+ }
19
+ encodeNested(value) {
20
+ let valueAsBytes = bytes_1.BytesValue.fromUTF8(value.valueOf());
21
+ return this.bytesBinaryCodec.encodeNested(valueAsBytes);
22
+ }
23
+ encodeTopLevel(value) {
24
+ return Buffer.from(value.valueOf());
25
+ }
26
+ }
27
+ exports.StringBinaryCodec = StringBinaryCodec;
28
+ //# sourceMappingURL=string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.js","sourceRoot":"","sources":["../../../src/abi/codec/string.ts"],"names":[],"mappings":";;;AAAA,8CAA4C;AAC5C,+CAAiD;AACjD,mCAA2C;AAE3C,MAAa,iBAAiB;IAA9B;QACqB,qBAAgB,GAAG,IAAI,wBAAgB,EAAE,CAAC;IAoB/D,CAAC;IAlBG,YAAY,CAAC,MAAc;QACvB,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACnE,IAAI,eAAe,GAAG,IAAI,wBAAW,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QACpE,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACrC,CAAC;IAED,cAAc,CAAC,MAAc;QACzB,OAAO,IAAI,wBAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,YAAY,CAAC,KAAkB;QAC3B,IAAI,YAAY,GAAG,kBAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAC5D,CAAC;IAED,cAAc,CAAC,KAAkB;QAC7B,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IACxC,CAAC;CACJ;AArBD,8CAqBC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import { StructType, Struct } from "../typesystem";
3
+ import { BinaryCodec } from "./binary";
4
+ export declare class StructBinaryCodec {
5
+ private readonly fieldsCodec;
6
+ constructor(binaryCodec: BinaryCodec);
7
+ decodeTopLevel(buffer: Buffer, type: StructType): Struct;
8
+ decodeNested(buffer: Buffer, type: StructType): [Struct, number];
9
+ encodeNested(struct: Struct): Buffer;
10
+ encodeTopLevel(struct: Struct): Buffer;
11
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StructBinaryCodec = void 0;
4
+ const typesystem_1 = require("../typesystem");
5
+ const fields_1 = require("./fields");
6
+ class StructBinaryCodec {
7
+ constructor(binaryCodec) {
8
+ this.fieldsCodec = new fields_1.FieldsBinaryCodec(binaryCodec);
9
+ }
10
+ decodeTopLevel(buffer, type) {
11
+ let [decoded] = this.decodeNested(buffer, type);
12
+ return decoded;
13
+ }
14
+ decodeNested(buffer, type) {
15
+ let fieldDefinitions = type.getFieldsDefinitions();
16
+ let [fields, offset] = this.fieldsCodec.decodeNested(buffer, fieldDefinitions);
17
+ let struct = new typesystem_1.Struct(type, fields);
18
+ return [struct, offset];
19
+ }
20
+ encodeNested(struct) {
21
+ let fields = struct.getFields();
22
+ let buffer = this.fieldsCodec.encodeNested(fields);
23
+ return buffer;
24
+ }
25
+ encodeTopLevel(struct) {
26
+ return this.encodeNested(struct);
27
+ }
28
+ }
29
+ exports.StructBinaryCodec = StructBinaryCodec;
30
+ //# sourceMappingURL=struct.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../src/abi/codec/struct.ts"],"names":[],"mappings":";;;AAAA,8CAA0D;AAE1D,qCAA6C;AAE7C,MAAa,iBAAiB;IAG1B,YAAY,WAAwB;QAChC,IAAI,CAAC,WAAW,GAAG,IAAI,0BAAiB,CAAC,WAAW,CAAC,CAAC;IAC1D,CAAC;IAED,cAAc,CAAC,MAAc,EAAE,IAAgB;QAC3C,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAChD,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,MAAc,EAAE,IAAgB;QACzC,IAAI,gBAAgB,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QACnD,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GAAsB,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;QAClG,IAAI,MAAM,GAAG,IAAI,mBAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACtC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED,YAAY,CAAC,MAAc;QACvB,IAAI,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;QAChC,IAAI,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACnD,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,cAAc,CAAC,MAAc;QACzB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACJ;AA5BD,8CA4BC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="node" />
2
+ import { TokenIdentifierValue } from "../typesystem/tokenIdentifier";
3
+ export declare class TokenIdentifierCodec {
4
+ private readonly bytesCodec;
5
+ decodeNested(buffer: Buffer): [TokenIdentifierValue, number];
6
+ decodeTopLevel(buffer: Buffer): TokenIdentifierValue;
7
+ encodeNested(tokenIdentifier: TokenIdentifierValue): Buffer;
8
+ encodeTopLevel(tokenIdentifier: TokenIdentifierValue): Buffer;
9
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TokenIdentifierCodec = void 0;
4
+ const bytes_1 = require("../typesystem/bytes");
5
+ const tokenIdentifier_1 = require("../typesystem/tokenIdentifier");
6
+ const bytes_2 = require("./bytes");
7
+ class TokenIdentifierCodec {
8
+ constructor() {
9
+ this.bytesCodec = new bytes_2.BytesBinaryCodec();
10
+ }
11
+ decodeNested(buffer) {
12
+ let [bytesValue, length] = this.bytesCodec.decodeNested(buffer);
13
+ return [new tokenIdentifier_1.TokenIdentifierValue(bytesValue.toString()), length];
14
+ }
15
+ decodeTopLevel(buffer) {
16
+ let bytesValue = this.bytesCodec.decodeTopLevel(buffer);
17
+ return new tokenIdentifier_1.TokenIdentifierValue(bytesValue.toString());
18
+ }
19
+ encodeNested(tokenIdentifier) {
20
+ let bytesValue = bytes_1.BytesValue.fromUTF8(tokenIdentifier.valueOf());
21
+ return this.bytesCodec.encodeNested(bytesValue);
22
+ }
23
+ encodeTopLevel(tokenIdentifier) {
24
+ return Buffer.from(tokenIdentifier.valueOf());
25
+ }
26
+ }
27
+ exports.TokenIdentifierCodec = TokenIdentifierCodec;
28
+ //# sourceMappingURL=tokenIdentifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenIdentifier.js","sourceRoot":"","sources":["../../../src/abi/codec/tokenIdentifier.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,mEAAqE;AACrE,mCAA2C;AAE3C,MAAa,oBAAoB;IAAjC;QACqB,eAAU,GAAG,IAAI,wBAAgB,EAAE,CAAC;IAoBzD,CAAC;IAlBG,YAAY,CAAC,MAAc;QACvB,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAChE,OAAO,CAAC,IAAI,sCAAoB,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IAED,cAAc,CAAC,MAAc;QACzB,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACxD,OAAO,IAAI,sCAAoB,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,YAAY,CAAC,eAAqC;QAC9C,IAAI,UAAU,GAAG,kBAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC;IAED,cAAc,CAAC,eAAqC;QAChD,OAAO,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC;IAClD,CAAC;CACJ;AArBD,oDAqBC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import { Struct, TupleType, Tuple } from "../typesystem";
3
+ import { BinaryCodec } from "./binary";
4
+ export declare class TupleBinaryCodec {
5
+ private structCodec;
6
+ constructor(binaryCodec: BinaryCodec);
7
+ decodeTopLevel(buffer: Buffer, type: TupleType): Tuple;
8
+ decodeNested(buffer: Buffer, type: TupleType): [Tuple, number];
9
+ encodeNested(struct: Tuple): Buffer;
10
+ encodeTopLevel(struct: Struct): Buffer;
11
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TupleBinaryCodec = void 0;
4
+ const struct_1 = require("./struct");
5
+ class TupleBinaryCodec {
6
+ constructor(binaryCodec) {
7
+ this.structCodec = new struct_1.StructBinaryCodec(binaryCodec);
8
+ }
9
+ decodeTopLevel(buffer, type) {
10
+ return this.structCodec.decodeTopLevel(buffer, type);
11
+ }
12
+ decodeNested(buffer, type) {
13
+ return this.structCodec.decodeNested(buffer, type);
14
+ }
15
+ encodeNested(struct) {
16
+ return this.structCodec.encodeNested(struct);
17
+ }
18
+ encodeTopLevel(struct) {
19
+ return this.structCodec.encodeTopLevel(struct);
20
+ }
21
+ }
22
+ exports.TupleBinaryCodec = TupleBinaryCodec;
23
+ //# sourceMappingURL=tuple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tuple.js","sourceRoot":"","sources":["../../../src/abi/codec/tuple.ts"],"names":[],"mappings":";;;AAEA,qCAA6C;AAE7C,MAAa,gBAAgB;IAGzB,YAAY,WAAwB;QAChC,IAAI,CAAC,WAAW,GAAG,IAAI,0BAAiB,CAAC,WAAW,CAAC,CAAC;IAC1D,CAAC;IAED,cAAc,CAAC,MAAc,EAAE,IAAe;QAC1C,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,YAAY,CAAC,MAAc,EAAE,IAAe;QACxC,OAAO,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;IAED,YAAY,CAAC,MAAa;QACtB,OAAO,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,cAAc,CAAC,MAAc;QACzB,OAAO,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;CACJ;AAtBD,4CAsBC"}
@@ -0,0 +1,20 @@
1
+ /// <reference types="node" />
2
+ import BigNumber from "bignumber.js";
3
+ /**
4
+ * Returns whether the most significant bit of a given byte (within a buffer) is 1.
5
+ * @param buffer the buffer to test
6
+ * @param byteIndex the index of the byte to test
7
+ */
8
+ export declare function isMsbOne(buffer: Buffer, byteIndex?: number): boolean;
9
+ /**
10
+ * Returns whether the most significant bit of a given byte (within a buffer) is 0.
11
+ * @param buffer the buffer to test
12
+ * @param byteIndex the index of the byte to test
13
+ */
14
+ export declare function isMsbZero(buffer: Buffer, byteIndex?: number): boolean;
15
+ export declare function cloneBuffer(buffer: Buffer): Buffer;
16
+ export declare function bufferToBigInt(buffer: Buffer): BigNumber;
17
+ export declare function bigIntToBuffer(value: BigNumber.Value): Buffer;
18
+ export declare function getHexMagnitudeOfBigInt(value: BigNumber.Value): string;
19
+ export declare function flipBufferBitsInPlace(buffer: Buffer): void;
20
+ export declare function prependByteToBuffer(buffer: Buffer, byte: number): Buffer;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.prependByteToBuffer = exports.flipBufferBitsInPlace = exports.getHexMagnitudeOfBigInt = exports.bigIntToBuffer = exports.bufferToBigInt = exports.cloneBuffer = exports.isMsbZero = exports.isMsbOne = void 0;
7
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
8
+ const utils_codec_1 = require("../../core/utils.codec");
9
+ /**
10
+ * Returns whether the most significant bit of a given byte (within a buffer) is 1.
11
+ * @param buffer the buffer to test
12
+ * @param byteIndex the index of the byte to test
13
+ */
14
+ function isMsbOne(buffer, byteIndex = 0) {
15
+ let byte = buffer[byteIndex];
16
+ let bit = byte >> 7;
17
+ let isSet = bit == 1;
18
+ return isSet;
19
+ }
20
+ exports.isMsbOne = isMsbOne;
21
+ /**
22
+ * Returns whether the most significant bit of a given byte (within a buffer) is 0.
23
+ * @param buffer the buffer to test
24
+ * @param byteIndex the index of the byte to test
25
+ */
26
+ function isMsbZero(buffer, byteIndex = 0) {
27
+ return !isMsbOne(buffer, byteIndex);
28
+ }
29
+ exports.isMsbZero = isMsbZero;
30
+ function cloneBuffer(buffer) {
31
+ let clone = Buffer.alloc(buffer.length);
32
+ buffer.copy(clone);
33
+ return clone;
34
+ }
35
+ exports.cloneBuffer = cloneBuffer;
36
+ function bufferToBigInt(buffer) {
37
+ // Currently, in JavaScript, this is the feasible way to achieve reliable, arbitrary-size Buffer to BigInt conversion.
38
+ let hex = buffer.toString("hex");
39
+ return new bignumber_js_1.default(`0x${hex}`, 16);
40
+ }
41
+ exports.bufferToBigInt = bufferToBigInt;
42
+ function bigIntToBuffer(value) {
43
+ // Currently, in JavaScript, this is the feasible way to achieve reliable, arbitrary-size BigInt to Buffer conversion.
44
+ let hex = getHexMagnitudeOfBigInt(value);
45
+ return Buffer.from(hex, "hex");
46
+ }
47
+ exports.bigIntToBuffer = bigIntToBuffer;
48
+ function getHexMagnitudeOfBigInt(value) {
49
+ value = new bignumber_js_1.default(value);
50
+ if (!value) {
51
+ return "";
52
+ }
53
+ if (value.isNegative()) {
54
+ value = value.multipliedBy(new bignumber_js_1.default(-1));
55
+ }
56
+ return utils_codec_1.numberToPaddedHex(value);
57
+ }
58
+ exports.getHexMagnitudeOfBigInt = getHexMagnitudeOfBigInt;
59
+ function flipBufferBitsInPlace(buffer) {
60
+ for (let i = 0; i < buffer.length; i++) {
61
+ buffer[i] = ~buffer[i];
62
+ }
63
+ }
64
+ exports.flipBufferBitsInPlace = flipBufferBitsInPlace;
65
+ function prependByteToBuffer(buffer, byte) {
66
+ return Buffer.concat([Buffer.from([byte]), buffer]);
67
+ }
68
+ exports.prependByteToBuffer = prependByteToBuffer;
69
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/abi/codec/utils.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,wDAA2D;AAE3D;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,MAAc,EAAE,YAAoB,CAAC;IAC1D,IAAI,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAC7B,IAAI,GAAG,GAAG,IAAI,IAAI,CAAC,CAAC;IACpB,IAAI,KAAK,GAAG,GAAG,IAAI,CAAC,CAAC;IACrB,OAAO,KAAK,CAAC;AACjB,CAAC;AALD,4BAKC;AAED;;;;GAIG;AACH,SAAgB,SAAS,CAAC,MAAc,EAAE,YAAoB,CAAC;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AACxC,CAAC;AAFD,8BAEC;AAED,SAAgB,WAAW,CAAC,MAAc;IACtC,IAAI,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnB,OAAO,KAAK,CAAC;AACjB,CAAC;AAJD,kCAIC;AAED,SAAgB,cAAc,CAAC,MAAc;IACzC,sHAAsH;IACtH,IAAI,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjC,OAAO,IAAI,sBAAS,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;AACzC,CAAC;AAJD,wCAIC;AAED,SAAgB,cAAc,CAAC,KAAsB;IACjD,sHAAsH;IACtH,IAAI,GAAG,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AACnC,CAAC;AAJD,wCAIC;AAED,SAAgB,uBAAuB,CAAC,KAAsB;IAC1D,KAAK,GAAG,IAAI,sBAAS,CAAC,KAAK,CAAC,CAAC;IAE7B,IAAI,CAAC,KAAK,EAAE;QACR,OAAO,EAAE,CAAC;KACb;IAED,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE;QACpB,KAAK,GAAG,KAAK,CAAC,YAAY,CAAC,IAAI,sBAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACjD;IAED,OAAO,+BAAiB,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC;AAZD,0DAYC;AAED,SAAgB,qBAAqB,CAAC,MAAc;IAChD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC1B;AACL,CAAC;AAJD,sDAIC;AAED,SAAgB,mBAAmB,CAAC,MAAc,EAAE,IAAY;IAC5D,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACxD,CAAC;AAFD,kDAEC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * A function of a Smart Contract, as an abstraction.
3
+ */
4
+ export declare class ContractFunction {
5
+ /**
6
+ * The name of the function.
7
+ */
8
+ readonly name: string;
9
+ /**
10
+ * Creates a ContractFunction object, given its name.
11
+ *
12
+ * @param name the name of the function
13
+ */
14
+ constructor(name: string);
15
+ /**
16
+ * Null-object pattern: creates an empty ContractFunction object.
17
+ */
18
+ static none(): ContractFunction;
19
+ /**
20
+ * Returns the name of the function.
21
+ */
22
+ toString(): string;
23
+ valueOf(): string;
24
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.ContractFunction = void 0;
23
+ const errors = __importStar(require("../core/errors"));
24
+ /**
25
+ * A function of a Smart Contract, as an abstraction.
26
+ */
27
+ class ContractFunction {
28
+ /**
29
+ * Creates a ContractFunction object, given its name.
30
+ *
31
+ * @param name the name of the function
32
+ */
33
+ constructor(name) {
34
+ this.name = name;
35
+ if (name == null) {
36
+ throw new errors.ErrInvalidFunctionName();
37
+ }
38
+ }
39
+ /**
40
+ * Null-object pattern: creates an empty ContractFunction object.
41
+ */
42
+ static none() {
43
+ return new ContractFunction("untitled");
44
+ }
45
+ /**
46
+ * Returns the name of the function.
47
+ */
48
+ toString() {
49
+ return this.name;
50
+ }
51
+ valueOf() {
52
+ return this.name;
53
+ }
54
+ }
55
+ exports.ContractFunction = ContractFunction;
56
+ //# sourceMappingURL=function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.js","sourceRoot":"","sources":["../../src/abi/function.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAyC;AAEzC;;GAEG;AACH,MAAa,gBAAgB;IAMzB;;;;OAIG;IACH,YAAY,IAAY;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,IAAI,IAAI,IAAI,IAAI,EAAE;YACd,MAAM,IAAI,MAAM,CAAC,sBAAsB,EAAE,CAAC;SAC7C;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAI;QACP,OAAO,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,OAAO;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;CACJ;AApCD,4CAoCC"}
@@ -0,0 +1,12 @@
1
+ export * from "./argSerializer";
2
+ export * from "./argumentErrorContext";
3
+ export * from "./code";
4
+ export * from "./codec";
5
+ export * from "./function";
6
+ export * from "./interaction";
7
+ export * from "./interface";
8
+ export * from "./nativeSerializer";
9
+ export * from "./query";
10
+ export * from "./returnCode";
11
+ export * from "./smartContract";
12
+ export * from "./typesystem";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./argSerializer"), exports);
14
+ __exportStar(require("./argumentErrorContext"), exports);
15
+ __exportStar(require("./code"), exports);
16
+ __exportStar(require("./codec"), exports);
17
+ __exportStar(require("./function"), exports);
18
+ __exportStar(require("./interaction"), exports);
19
+ __exportStar(require("./interface"), exports);
20
+ __exportStar(require("./nativeSerializer"), exports);
21
+ __exportStar(require("./query"), exports);
22
+ __exportStar(require("./returnCode"), exports);
23
+ __exportStar(require("./smartContract"), exports);
24
+ __exportStar(require("./typesystem"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/abi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC;AAChC,yDAAuC;AACvC,yCAAuB;AACvB,0CAAwB;AACxB,6CAA2B;AAC3B,gDAA8B;AAC9B,8CAA4B;AAC5B,qDAAmC;AACnC,0CAAwB;AACxB,+CAA6B;AAC7B,kDAAgC;AAChC,+CAA6B"}
@@ -0,0 +1,67 @@
1
+ import { Account } from "../accounts";
2
+ import { Address } from "../core/address";
3
+ import { TokenTransfer } from "../core/tokens";
4
+ import { Transaction } from "../core/transaction";
5
+ import { ContractFunction } from "./function";
6
+ import { CallArguments } from "./interface";
7
+ import { Query } from "./query";
8
+ import { EndpointDefinition, TypedValue } from "./typesystem";
9
+ /**
10
+ * Internal interface: the smart contract, as seen from the perspective of an {@link Interaction}.
11
+ */
12
+ interface ISmartContractWithinInteraction {
13
+ call({ func, args, value, gasLimit, receiver }: CallArguments): Transaction;
14
+ getAddress(): Address;
15
+ getEndpoint(name: ContractFunction): EndpointDefinition;
16
+ }
17
+ /**
18
+ * @deprecated component. Use "SmartContractTransactionsFactory" or "SmartContractController", instead.
19
+ *
20
+ * Interactions can be seen as mutable transaction & query builders.
21
+ *
22
+ * Aside from building transactions and queries, the interactors are also responsible for interpreting
23
+ * the execution outcome for the objects they've built.
24
+ */
25
+ export declare class Interaction {
26
+ private readonly contract;
27
+ private readonly function;
28
+ private readonly args;
29
+ private nonce;
30
+ private value;
31
+ private gasLimit;
32
+ private gasPrice;
33
+ private chainID;
34
+ private querent;
35
+ private explicitReceiver?;
36
+ private sender;
37
+ private version;
38
+ private tokenTransfers;
39
+ constructor(contract: ISmartContractWithinInteraction, func: ContractFunction, args: TypedValue[]);
40
+ getContractAddress(): Address;
41
+ getFunction(): ContractFunction;
42
+ getEndpoint(): EndpointDefinition;
43
+ getArguments(): TypedValue[];
44
+ getValue(): bigint;
45
+ getTokenTransfers(): TokenTransfer[];
46
+ getGasLimit(): bigint;
47
+ getExplicitReceiver(): Address | undefined;
48
+ buildTransaction(): Transaction;
49
+ buildQuery(): Query;
50
+ withValue(value: bigint): Interaction;
51
+ withSingleDCDTTransfer(transfer: TokenTransfer): Interaction;
52
+ withSingleDCDTNFTTransfer(transfer: TokenTransfer): Interaction;
53
+ withMultiDCDTNFTTransfer(transfers: TokenTransfer[]): Interaction;
54
+ withGasLimit(gasLimit: bigint): Interaction;
55
+ withGasPrice(gasPrice: bigint): Interaction;
56
+ withNonce(nonce: bigint): Interaction;
57
+ useThenIncrementNonceOf(account: Account): Interaction;
58
+ withChainID(chainID: string): Interaction;
59
+ withSender(sender: Address): Interaction;
60
+ withVersion(version: number): Interaction;
61
+ /**
62
+ * Sets the "caller" field on contract queries.
63
+ */
64
+ withQuerent(querent: Address): Interaction;
65
+ withExplicitReceiver(receiver: Address): Interaction;
66
+ }
67
+ export {};
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Interaction = void 0;
4
+ const address_1 = require("../core/address");
5
+ const compatibility_1 = require("../core/compatibility");
6
+ const constants_1 = require("../core/constants");
7
+ const tokens_1 = require("../core/tokens");
8
+ const transactionsFactoryConfig_1 = require("../core/transactionsFactoryConfig");
9
+ const smartContracts_1 = require("../smartContracts");
10
+ const query_1 = require("./query");
11
+ /**
12
+ * @deprecated component. Use "SmartContractTransactionsFactory" or "SmartContractController", instead.
13
+ *
14
+ * Interactions can be seen as mutable transaction & query builders.
15
+ *
16
+ * Aside from building transactions and queries, the interactors are also responsible for interpreting
17
+ * the execution outcome for the objects they've built.
18
+ */
19
+ class Interaction {
20
+ constructor(contract, func, args) {
21
+ this.nonce = 0n;
22
+ this.value = 0n;
23
+ this.gasLimit = 0n;
24
+ this.gasPrice = undefined;
25
+ this.chainID = "";
26
+ this.querent = address_1.Address.empty();
27
+ this.sender = address_1.Address.empty();
28
+ this.version = constants_1.TRANSACTION_VERSION_DEFAULT;
29
+ this.contract = contract;
30
+ this.function = func;
31
+ this.args = args;
32
+ this.tokenTransfers = [];
33
+ }
34
+ getContractAddress() {
35
+ return this.contract.getAddress();
36
+ }
37
+ getFunction() {
38
+ return this.function;
39
+ }
40
+ getEndpoint() {
41
+ return this.contract.getEndpoint(this.function);
42
+ }
43
+ getArguments() {
44
+ return this.args;
45
+ }
46
+ getValue() {
47
+ return this.value;
48
+ }
49
+ getTokenTransfers() {
50
+ return this.tokenTransfers;
51
+ }
52
+ getGasLimit() {
53
+ return this.gasLimit;
54
+ }
55
+ getExplicitReceiver() {
56
+ return this.explicitReceiver;
57
+ }
58
+ buildTransaction() {
59
+ compatibility_1.Compatibility.guardAddressIsSetAndNonZero(this.sender, "'sender' of interaction", "use interaction.withSender()");
60
+ const factoryConfig = new transactionsFactoryConfig_1.TransactionsFactoryConfig({ chainID: this.chainID.valueOf() });
61
+ const factory = new smartContracts_1.SmartContractTransactionsFactory({
62
+ config: factoryConfig,
63
+ });
64
+ const transaction = factory.createTransactionForExecute(this.sender, {
65
+ contract: this.contract.getAddress(),
66
+ function: this.function.valueOf(),
67
+ gasLimit: BigInt(this.gasLimit.valueOf()),
68
+ arguments: this.args,
69
+ nativeTransferAmount: BigInt(this.value.toString()),
70
+ tokenTransfers: this.tokenTransfers,
71
+ });
72
+ transaction.chainID = this.chainID.valueOf();
73
+ transaction.nonce = BigInt(this.nonce.valueOf());
74
+ transaction.version = this.version;
75
+ if (this.gasPrice) {
76
+ transaction.gasPrice = BigInt(this.gasPrice.valueOf());
77
+ }
78
+ return transaction;
79
+ }
80
+ buildQuery() {
81
+ return new query_1.Query({
82
+ address: this.contract.getAddress(),
83
+ func: this.function,
84
+ args: this.args,
85
+ // Value will be set using "withValue()".
86
+ value: this.value,
87
+ caller: this.querent,
88
+ });
89
+ }
90
+ withValue(value) {
91
+ this.value = value;
92
+ return this;
93
+ }
94
+ withSingleDCDTTransfer(transfer) {
95
+ this.tokenTransfers = [transfer].map((transfer) => new tokens_1.TokenTransfer(transfer));
96
+ return this;
97
+ }
98
+ withSingleDCDTNFTTransfer(transfer) {
99
+ this.tokenTransfers = [transfer].map((transfer) => new tokens_1.TokenTransfer(transfer));
100
+ return this;
101
+ }
102
+ withMultiDCDTNFTTransfer(transfers) {
103
+ this.tokenTransfers = transfers.map((transfer) => new tokens_1.TokenTransfer(transfer));
104
+ return this;
105
+ }
106
+ withGasLimit(gasLimit) {
107
+ this.gasLimit = gasLimit;
108
+ return this;
109
+ }
110
+ withGasPrice(gasPrice) {
111
+ this.gasPrice = gasPrice;
112
+ return this;
113
+ }
114
+ withNonce(nonce) {
115
+ this.nonce = nonce;
116
+ return this;
117
+ }
118
+ useThenIncrementNonceOf(account) {
119
+ return this.withNonce(account.getNonceThenIncrement());
120
+ }
121
+ withChainID(chainID) {
122
+ this.chainID = chainID;
123
+ return this;
124
+ }
125
+ withSender(sender) {
126
+ this.sender = sender;
127
+ return this;
128
+ }
129
+ withVersion(version) {
130
+ this.version = version;
131
+ return this;
132
+ }
133
+ /**
134
+ * Sets the "caller" field on contract queries.
135
+ */
136
+ withQuerent(querent) {
137
+ this.querent = querent;
138
+ return this;
139
+ }
140
+ withExplicitReceiver(receiver) {
141
+ this.explicitReceiver = receiver;
142
+ return this;
143
+ }
144
+ }
145
+ exports.Interaction = Interaction;
146
+ //# sourceMappingURL=interaction.js.map
@@ -0,0 +1 @@
1
+ {"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