@plutonlabs/sdk 0.0.1-beta

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 (331) hide show
  1. package/README.md +1 -0
  2. package/Readme.md +0 -0
  3. package/dist/common/consts/globalConst.d.ts +12 -0
  4. package/dist/common/consts/globalConst.d.ts.map +1 -0
  5. package/dist/common/consts/globalConst.js +15 -0
  6. package/dist/common/consts/globalConst.js.map +1 -0
  7. package/dist/common/enums/calc_mode.enum.d.ts +8 -0
  8. package/dist/common/enums/calc_mode.enum.d.ts.map +1 -0
  9. package/dist/common/enums/calc_mode.enum.js +32 -0
  10. package/dist/common/enums/calc_mode.enum.js.map +1 -0
  11. package/dist/common/enums/index.d.ts +3 -0
  12. package/dist/common/enums/index.d.ts.map +1 -0
  13. package/dist/common/enums/index.js +19 -0
  14. package/dist/common/enums/index.js.map +1 -0
  15. package/dist/common/enums/intent_type.enum.d.ts +6 -0
  16. package/dist/common/enums/intent_type.enum.d.ts.map +1 -0
  17. package/dist/common/enums/intent_type.enum.js +10 -0
  18. package/dist/common/enums/intent_type.enum.js.map +1 -0
  19. package/dist/common/index.d.ts +3 -0
  20. package/dist/common/index.d.ts.map +1 -0
  21. package/dist/common/index.js +19 -0
  22. package/dist/common/index.js.map +1 -0
  23. package/dist/common/interfaces/IChain.d.ts +20 -0
  24. package/dist/common/interfaces/IChain.d.ts.map +1 -0
  25. package/dist/common/interfaces/IChain.js +3 -0
  26. package/dist/common/interfaces/IChain.js.map +1 -0
  27. package/dist/common/interfaces/ILog.d.ts +8 -0
  28. package/dist/common/interfaces/ILog.d.ts.map +1 -0
  29. package/dist/common/interfaces/ILog.js +3 -0
  30. package/dist/common/interfaces/ILog.js.map +1 -0
  31. package/dist/common/utils/bignumber.column.transformer.d.ts +6 -0
  32. package/dist/common/utils/bignumber.column.transformer.d.ts.map +1 -0
  33. package/dist/common/utils/bignumber.column.transformer.js +17 -0
  34. package/dist/common/utils/bignumber.column.transformer.js.map +1 -0
  35. package/dist/common/utils/index.d.ts +3 -0
  36. package/dist/common/utils/index.d.ts.map +1 -0
  37. package/dist/common/utils/index.js +19 -0
  38. package/dist/common/utils/index.js.map +1 -0
  39. package/dist/common/utils/list.d.ts +3 -0
  40. package/dist/common/utils/list.d.ts.map +1 -0
  41. package/dist/common/utils/list.js +25 -0
  42. package/dist/common/utils/list.js.map +1 -0
  43. package/dist/index.d.ts +2 -0
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +18 -0
  46. package/dist/index.js.map +1 -0
  47. package/dist/modules/chainsync/domain/dto/chain_contract.dto.d.ts +35 -0
  48. package/dist/modules/chainsync/domain/dto/chain_contract.dto.d.ts.map +1 -0
  49. package/dist/modules/chainsync/domain/dto/chain_contract.dto.js +44 -0
  50. package/dist/modules/chainsync/domain/dto/chain_contract.dto.js.map +1 -0
  51. package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts +131 -0
  52. package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts.map +1 -0
  53. package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js +133 -0
  54. package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js.map +1 -0
  55. package/dist/modules/chainsync/domain/dto/chain_transaction_event_log.dto.d.ts +43 -0
  56. package/dist/modules/chainsync/domain/dto/chain_transaction_event_log.dto.d.ts.map +1 -0
  57. package/dist/modules/chainsync/domain/dto/chain_transaction_event_log.dto.js +51 -0
  58. package/dist/modules/chainsync/domain/dto/chain_transaction_event_log.dto.js.map +1 -0
  59. package/dist/modules/chainsync/domain/dto/index.d.ts +5 -0
  60. package/dist/modules/chainsync/domain/dto/index.d.ts.map +1 -0
  61. package/dist/modules/chainsync/domain/dto/index.js +21 -0
  62. package/dist/modules/chainsync/domain/dto/index.js.map +1 -0
  63. package/dist/modules/chainsync/domain/dto/pluton_request.dto.d.ts +10 -0
  64. package/dist/modules/chainsync/domain/dto/pluton_request.dto.d.ts.map +1 -0
  65. package/dist/modules/chainsync/domain/dto/pluton_request.dto.js +54 -0
  66. package/dist/modules/chainsync/domain/dto/pluton_request.dto.js.map +1 -0
  67. package/dist/modules/chainsync/domain/index.d.ts +2 -0
  68. package/dist/modules/chainsync/domain/index.d.ts.map +1 -0
  69. package/dist/modules/chainsync/domain/index.js +18 -0
  70. package/dist/modules/chainsync/domain/index.js.map +1 -0
  71. package/dist/modules/chainsync/index.d.ts +2 -0
  72. package/dist/modules/chainsync/index.d.ts.map +1 -0
  73. package/dist/modules/chainsync/index.js +18 -0
  74. package/dist/modules/chainsync/index.js.map +1 -0
  75. package/dist/modules/index.d.ts +6 -0
  76. package/dist/modules/index.d.ts.map +1 -0
  77. package/dist/modules/index.js +22 -0
  78. package/dist/modules/index.js.map +1 -0
  79. package/dist/modules/network/domain/dto/index.d.ts +5 -0
  80. package/dist/modules/network/domain/dto/index.d.ts.map +1 -0
  81. package/dist/modules/network/domain/dto/index.js +21 -0
  82. package/dist/modules/network/domain/dto/index.js.map +1 -0
  83. package/dist/modules/network/domain/dto/network.dto.d.ts +50 -0
  84. package/dist/modules/network/domain/dto/network.dto.d.ts.map +1 -0
  85. package/dist/modules/network/domain/dto/network.dto.js +66 -0
  86. package/dist/modules/network/domain/dto/network.dto.js.map +1 -0
  87. package/dist/modules/network/domain/dto/network.update.dto.d.ts +66 -0
  88. package/dist/modules/network/domain/dto/network.update.dto.d.ts.map +1 -0
  89. package/dist/modules/network/domain/dto/network.update.dto.js +87 -0
  90. package/dist/modules/network/domain/dto/network.update.dto.js.map +1 -0
  91. package/dist/modules/network/domain/dto/network_provider.dto.d.ts +42 -0
  92. package/dist/modules/network/domain/dto/network_provider.dto.d.ts.map +1 -0
  93. package/dist/modules/network/domain/dto/network_provider.dto.js +53 -0
  94. package/dist/modules/network/domain/dto/network_provider.dto.js.map +1 -0
  95. package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts +45 -0
  96. package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts.map +1 -0
  97. package/dist/modules/network/domain/dto/network_provider.update.dto.js +58 -0
  98. package/dist/modules/network/domain/dto/network_provider.update.dto.js.map +1 -0
  99. package/dist/modules/network/domain/enums/chain_type.enum.d.ts +8 -0
  100. package/dist/modules/network/domain/enums/chain_type.enum.d.ts.map +1 -0
  101. package/dist/modules/network/domain/enums/chain_type.enum.js +25 -0
  102. package/dist/modules/network/domain/enums/chain_type.enum.js.map +1 -0
  103. package/dist/modules/network/domain/enums/coin_type.enum.d.ts +8 -0
  104. package/dist/modules/network/domain/enums/coin_type.enum.d.ts.map +1 -0
  105. package/dist/modules/network/domain/enums/coin_type.enum.js +12 -0
  106. package/dist/modules/network/domain/enums/coin_type.enum.js.map +1 -0
  107. package/dist/modules/network/domain/enums/index.d.ts +4 -0
  108. package/dist/modules/network/domain/enums/index.d.ts.map +1 -0
  109. package/dist/modules/network/domain/enums/index.js +20 -0
  110. package/dist/modules/network/domain/enums/index.js.map +1 -0
  111. package/dist/modules/network/domain/enums/provider_protocol_type.enum.d.ts +7 -0
  112. package/dist/modules/network/domain/enums/provider_protocol_type.enum.d.ts.map +1 -0
  113. package/dist/modules/network/domain/enums/provider_protocol_type.enum.js +11 -0
  114. package/dist/modules/network/domain/enums/provider_protocol_type.enum.js.map +1 -0
  115. package/dist/modules/network/domain/index.d.ts +3 -0
  116. package/dist/modules/network/domain/index.d.ts.map +1 -0
  117. package/dist/modules/network/domain/index.js +19 -0
  118. package/dist/modules/network/domain/index.js.map +1 -0
  119. package/dist/modules/network/index.d.ts +2 -0
  120. package/dist/modules/network/index.d.ts.map +1 -0
  121. package/dist/modules/network/index.js +18 -0
  122. package/dist/modules/network/index.js.map +1 -0
  123. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_request.dto.d.ts +21 -0
  124. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_request.dto.d.ts.map +1 -0
  125. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_request.dto.js +35 -0
  126. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_request.dto.js.map +1 -0
  127. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.d.ts +24 -0
  128. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.d.ts.map +1 -0
  129. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.js +40 -0
  130. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.js.map +1 -0
  131. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.d.ts +28 -0
  132. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.d.ts.map +1 -0
  133. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.js +40 -0
  134. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.js.map +1 -0
  135. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts +35 -0
  136. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts.map +1 -0
  137. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js +19 -0
  138. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js.map +1 -0
  139. package/dist/modules/quote/domain/dto/affiliate/index.d.ts +5 -0
  140. package/dist/modules/quote/domain/dto/affiliate/index.d.ts.map +1 -0
  141. package/dist/modules/quote/domain/dto/affiliate/index.js +21 -0
  142. package/dist/modules/quote/domain/dto/affiliate/index.js.map +1 -0
  143. package/dist/modules/quote/domain/dto/index.d.ts +4 -0
  144. package/dist/modules/quote/domain/dto/index.d.ts.map +1 -0
  145. package/dist/modules/quote/domain/dto/index.js +20 -0
  146. package/dist/modules/quote/domain/dto/index.js.map +1 -0
  147. package/dist/modules/quote/domain/dto/quote/index.d.ts +16 -0
  148. package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -0
  149. package/dist/modules/quote/domain/dto/quote/index.js +32 -0
  150. package/dist/modules/quote/domain/dto/quote/index.js.map +1 -0
  151. package/dist/modules/quote/domain/dto/quote/quote.dto.d.ts +9 -0
  152. package/dist/modules/quote/domain/dto/quote/quote.dto.d.ts.map +1 -0
  153. package/dist/modules/quote/domain/dto/quote/quote.dto.js +21 -0
  154. package/dist/modules/quote/domain/dto/quote/quote.dto.js.map +1 -0
  155. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts +14 -0
  156. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts.map +1 -0
  157. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js +27 -0
  158. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js.map +1 -0
  159. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_request.dto.d.ts +14 -0
  160. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_request.dto.d.ts.map +1 -0
  161. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_request.dto.js +28 -0
  162. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_request.dto.js.map +1 -0
  163. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts +17 -0
  164. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts.map +1 -0
  165. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js +22 -0
  166. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -0
  167. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts +44 -0
  168. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map +1 -0
  169. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js +47 -0
  170. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js.map +1 -0
  171. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.d.ts +8 -0
  172. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.d.ts.map +1 -0
  173. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.js +22 -0
  174. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_response.dto.js.map +1 -0
  175. package/dist/modules/quote/domain/dto/quote/quote_intent.dto.d.ts +4 -0
  176. package/dist/modules/quote/domain/dto/quote/quote_intent.dto.d.ts.map +1 -0
  177. package/dist/modules/quote/domain/dto/quote/quote_intent.dto.js +3 -0
  178. package/dist/modules/quote/domain/dto/quote/quote_intent.dto.js.map +1 -0
  179. package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.d.ts +10 -0
  180. package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.d.ts.map +1 -0
  181. package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.js +3 -0
  182. package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.js.map +1 -0
  183. package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts +16 -0
  184. package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts.map +1 -0
  185. package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js +57 -0
  186. package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js.map +1 -0
  187. package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts +9 -0
  188. package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts.map +1 -0
  189. package/dist/modules/quote/domain/dto/quote/quote_request.dto.js +26 -0
  190. package/dist/modules/quote/domain/dto/quote/quote_request.dto.js.map +1 -0
  191. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +50 -0
  192. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts.map +1 -0
  193. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js +21 -0
  194. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +1 -0
  195. package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +24 -0
  196. package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts.map +1 -0
  197. package/dist/modules/quote/domain/dto/quote/quote_response.dto.js +41 -0
  198. package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -0
  199. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts +50 -0
  200. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts.map +1 -0
  201. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js +21 -0
  202. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js.map +1 -0
  203. package/dist/modules/quote/domain/dto/quote/quote_selected_intents_request.dto.d.ts +14 -0
  204. package/dist/modules/quote/domain/dto/quote/quote_selected_intents_request.dto.d.ts.map +1 -0
  205. package/dist/modules/quote/domain/dto/quote/quote_selected_intents_request.dto.js +31 -0
  206. package/dist/modules/quote/domain/dto/quote/quote_selected_intents_request.dto.js.map +1 -0
  207. package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto.d.ts +3 -0
  208. package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto.d.ts.map +1 -0
  209. package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto.js +7 -0
  210. package/dist/modules/quote/domain/dto/quote/quote_selected_intents_resposne.dto.js.map +1 -0
  211. package/dist/modules/quote/domain/dto/quote/quote_set_transaction_request.dto.d.ts +8 -0
  212. package/dist/modules/quote/domain/dto/quote/quote_set_transaction_request.dto.d.ts.map +1 -0
  213. package/dist/modules/quote/domain/dto/quote/quote_set_transaction_request.dto.js +21 -0
  214. package/dist/modules/quote/domain/dto/quote/quote_set_transaction_request.dto.js.map +1 -0
  215. package/dist/modules/quote/domain/dto/quote/quote_set_transaction_response.dto.d.ts +8 -0
  216. package/dist/modules/quote/domain/dto/quote/quote_set_transaction_response.dto.d.ts.map +1 -0
  217. package/dist/modules/quote/domain/dto/quote/quote_set_transaction_response.dto.js +21 -0
  218. package/dist/modules/quote/domain/dto/quote/quote_set_transaction_response.dto.js.map +1 -0
  219. package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.d.ts +18 -0
  220. package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.d.ts.map +1 -0
  221. package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.js +30 -0
  222. package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.js.map +1 -0
  223. package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.d.ts +23 -0
  224. package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.d.ts.map +1 -0
  225. package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js +7 -0
  226. package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js.map +1 -0
  227. package/dist/modules/quote/domain/dto/refund/index.d.ts +5 -0
  228. package/dist/modules/quote/domain/dto/refund/index.d.ts.map +1 -0
  229. package/dist/modules/quote/domain/dto/refund/index.js +21 -0
  230. package/dist/modules/quote/domain/dto/refund/index.js.map +1 -0
  231. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts +13 -0
  232. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts.map +1 -0
  233. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js +26 -0
  234. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js.map +1 -0
  235. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_response.dto.d.ts +8 -0
  236. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_response.dto.d.ts.map +1 -0
  237. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_response.dto.js +21 -0
  238. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_response.dto.js.map +1 -0
  239. package/dist/modules/quote/domain/enums/index.d.ts +9 -0
  240. package/dist/modules/quote/domain/enums/index.d.ts.map +1 -0
  241. package/dist/modules/quote/domain/enums/index.js +25 -0
  242. package/dist/modules/quote/domain/enums/index.js.map +1 -0
  243. package/dist/modules/quote/domain/enums/quote_affiliate_action.enum.d.ts +4 -0
  244. package/dist/modules/quote/domain/enums/quote_affiliate_action.enum.d.ts.map +1 -0
  245. package/dist/modules/quote/domain/enums/quote_affiliate_action.enum.js +8 -0
  246. package/dist/modules/quote/domain/enums/quote_affiliate_action.enum.js.map +1 -0
  247. package/dist/modules/quote/domain/enums/quote_affiliate_lifecycle.enum.d.ts +15 -0
  248. package/dist/modules/quote/domain/enums/quote_affiliate_lifecycle.enum.d.ts.map +1 -0
  249. package/dist/modules/quote/domain/enums/quote_affiliate_lifecycle.enum.js +22 -0
  250. package/dist/modules/quote/domain/enums/quote_affiliate_lifecycle.enum.js.map +1 -0
  251. package/dist/modules/quote/domain/enums/quote_intent_type.enum.d.ts +4 -0
  252. package/dist/modules/quote/domain/enums/quote_intent_type.enum.d.ts.map +1 -0
  253. package/dist/modules/quote/domain/enums/quote_intent_type.enum.js +8 -0
  254. package/dist/modules/quote/domain/enums/quote_intent_type.enum.js.map +1 -0
  255. package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts +16 -0
  256. package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts.map +1 -0
  257. package/dist/modules/quote/domain/enums/quote_request_action.enum.js +20 -0
  258. package/dist/modules/quote/domain/enums/quote_request_action.enum.js.map +1 -0
  259. package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.d.ts +31 -0
  260. package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.d.ts.map +1 -0
  261. package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.js +40 -0
  262. package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.js.map +1 -0
  263. package/dist/modules/quote/domain/enums/quote_response_action.enum.d.ts +12 -0
  264. package/dist/modules/quote/domain/enums/quote_response_action.enum.d.ts.map +1 -0
  265. package/dist/modules/quote/domain/enums/quote_response_action.enum.js +16 -0
  266. package/dist/modules/quote/domain/enums/quote_response_action.enum.js.map +1 -0
  267. package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.d.ts +26 -0
  268. package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.d.ts.map +1 -0
  269. package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.js +35 -0
  270. package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.js.map +1 -0
  271. package/dist/modules/quote/domain/enums/selection_status.enum.d.ts +5 -0
  272. package/dist/modules/quote/domain/enums/selection_status.enum.d.ts.map +1 -0
  273. package/dist/modules/quote/domain/enums/selection_status.enum.js +9 -0
  274. package/dist/modules/quote/domain/enums/selection_status.enum.js.map +1 -0
  275. package/dist/modules/quote/domain/index.d.ts +3 -0
  276. package/dist/modules/quote/domain/index.d.ts.map +1 -0
  277. package/dist/modules/quote/domain/index.js +19 -0
  278. package/dist/modules/quote/domain/index.js.map +1 -0
  279. package/dist/modules/quote/index.d.ts +2 -0
  280. package/dist/modules/quote/index.d.ts.map +1 -0
  281. package/dist/modules/quote/index.js +18 -0
  282. package/dist/modules/quote/index.js.map +1 -0
  283. package/dist/modules/swap/domain/dto/index.d.ts +4 -0
  284. package/dist/modules/swap/domain/dto/index.d.ts.map +1 -0
  285. package/dist/modules/swap/domain/dto/index.js +20 -0
  286. package/dist/modules/swap/domain/dto/index.js.map +1 -0
  287. package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.d.ts +9 -0
  288. package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.d.ts.map +1 -0
  289. package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.js +25 -0
  290. package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.js.map +1 -0
  291. package/dist/modules/swap/domain/dto/token_swap_request.dto.d.ts +18 -0
  292. package/dist/modules/swap/domain/dto/token_swap_request.dto.d.ts.map +1 -0
  293. package/dist/modules/swap/domain/dto/token_swap_request.dto.js +31 -0
  294. package/dist/modules/swap/domain/dto/token_swap_request.dto.js.map +1 -0
  295. package/dist/modules/swap/domain/dto/token_swap_response.dto.d.ts +18 -0
  296. package/dist/modules/swap/domain/dto/token_swap_response.dto.d.ts.map +1 -0
  297. package/dist/modules/swap/domain/dto/token_swap_response.dto.js +32 -0
  298. package/dist/modules/swap/domain/dto/token_swap_response.dto.js.map +1 -0
  299. package/dist/modules/swap/domain/index.d.ts +2 -0
  300. package/dist/modules/swap/domain/index.d.ts.map +1 -0
  301. package/dist/modules/swap/domain/index.js +18 -0
  302. package/dist/modules/swap/domain/index.js.map +1 -0
  303. package/dist/modules/swap/index.d.ts +2 -0
  304. package/dist/modules/swap/index.d.ts.map +1 -0
  305. package/dist/modules/swap/index.js +18 -0
  306. package/dist/modules/swap/index.js.map +1 -0
  307. package/dist/modules/token/domain/dto/index.d.ts +4 -0
  308. package/dist/modules/token/domain/dto/index.d.ts.map +1 -0
  309. package/dist/modules/token/domain/dto/index.js +20 -0
  310. package/dist/modules/token/domain/dto/index.js.map +1 -0
  311. package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts +27 -0
  312. package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts.map +1 -0
  313. package/dist/modules/token/domain/dto/network_contract_find_token.dto.js +46 -0
  314. package/dist/modules/token/domain/dto/network_contract_find_token.dto.js.map +1 -0
  315. package/dist/modules/token/domain/dto/token.dto.d.ts +59 -0
  316. package/dist/modules/token/domain/dto/token.dto.d.ts.map +1 -0
  317. package/dist/modules/token/domain/dto/token.dto.js +70 -0
  318. package/dist/modules/token/domain/dto/token.dto.js.map +1 -0
  319. package/dist/modules/token/domain/dto/token.update.dto.d.ts +66 -0
  320. package/dist/modules/token/domain/dto/token.update.dto.d.ts.map +1 -0
  321. package/dist/modules/token/domain/dto/token.update.dto.js +75 -0
  322. package/dist/modules/token/domain/dto/token.update.dto.js.map +1 -0
  323. package/dist/modules/token/domain/index.d.ts +2 -0
  324. package/dist/modules/token/domain/index.d.ts.map +1 -0
  325. package/dist/modules/token/domain/index.js +18 -0
  326. package/dist/modules/token/domain/index.js.map +1 -0
  327. package/dist/modules/token/index.d.ts +2 -0
  328. package/dist/modules/token/index.d.ts.map +1 -0
  329. package/dist/modules/token/index.js +18 -0
  330. package/dist/modules/token/index.js.map +1 -0
  331. package/package.json +22 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # pluton-sdk
package/Readme.md ADDED
File without changes
@@ -0,0 +1,12 @@
1
+ import { BigNumberColumnTransformer } from '../utils/bignumber.column.transformer';
2
+ export declare const transformer: BigNumberColumnTransformer;
3
+ export declare const AUTH_BASE_CODE = 19901;
4
+ export declare const NETWORK_BASE_CODE = 21001;
5
+ export declare const TOKEN_BASE_CODE = 22001;
6
+ export declare const LISTENER_BASE_CODE = 23001;
7
+ export declare const SOLVER_BASE_CODE = 24001;
8
+ export declare const QUOTE_BASE_CODE = 25001;
9
+ export declare const PROTOCOL_BASE_CODE = 27001;
10
+ export declare const CHAIN_SYNC_BASE_CODE = 28001;
11
+ export declare const SWAP_BASE_CODE = 29001;
12
+ //# sourceMappingURL=globalConst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globalConst.d.ts","sourceRoot":"","sources":["../../../src/common/consts/globalConst.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,eAAO,MAAM,WAAW,4BAAmC,CAAC;AAE5D,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AACtC,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAC1C,eAAO,MAAM,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SWAP_BASE_CODE = exports.CHAIN_SYNC_BASE_CODE = exports.PROTOCOL_BASE_CODE = exports.QUOTE_BASE_CODE = exports.SOLVER_BASE_CODE = exports.LISTENER_BASE_CODE = exports.TOKEN_BASE_CODE = exports.NETWORK_BASE_CODE = exports.AUTH_BASE_CODE = exports.transformer = void 0;
4
+ const bignumber_column_transformer_1 = require("../utils/bignumber.column.transformer");
5
+ exports.transformer = new bignumber_column_transformer_1.BigNumberColumnTransformer();
6
+ exports.AUTH_BASE_CODE = 19901;
7
+ exports.NETWORK_BASE_CODE = 21001;
8
+ exports.TOKEN_BASE_CODE = 22001;
9
+ exports.LISTENER_BASE_CODE = 23001;
10
+ exports.SOLVER_BASE_CODE = 24001;
11
+ exports.QUOTE_BASE_CODE = 25001;
12
+ exports.PROTOCOL_BASE_CODE = 27001;
13
+ exports.CHAIN_SYNC_BASE_CODE = 28001;
14
+ exports.SWAP_BASE_CODE = 29001;
15
+ //# sourceMappingURL=globalConst.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globalConst.js","sourceRoot":"","sources":["../../../src/common/consts/globalConst.ts"],"names":[],"mappings":";;;AAAA,wFAAmF;AAEtE,QAAA,WAAW,GAAG,IAAI,yDAA0B,EAAE,CAAC;AAE/C,QAAA,cAAc,GAAG,KAAK,CAAC;AACvB,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAC1B,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,kBAAkB,GAAG,KAAK,CAAC;AAC3B,QAAA,gBAAgB,GAAG,KAAK,CAAC;AACzB,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,kBAAkB,GAAG,KAAK,CAAC;AAC3B,QAAA,oBAAoB,GAAG,KAAK,CAAC;AAC7B,QAAA,cAAc,GAAG,KAAK,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare enum CalcMode {
2
+ NONE = "none",
3
+ EXACT_IN = "exact_in",
4
+ EXACT_OUT = "exact_out"
5
+ }
6
+ export declare function toCalcMode(value: string): CalcMode;
7
+ export declare function toString(value: CalcMode): string;
8
+ //# sourceMappingURL=calc_mode.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calc_mode.enum.d.ts","sourceRoot":"","sources":["../../../src/common/enums/calc_mode.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CASlD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAShD"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CalcMode = void 0;
4
+ exports.toCalcMode = toCalcMode;
5
+ exports.toString = toString;
6
+ var CalcMode;
7
+ (function (CalcMode) {
8
+ CalcMode["NONE"] = "none";
9
+ CalcMode["EXACT_IN"] = "exact_in";
10
+ CalcMode["EXACT_OUT"] = "exact_out";
11
+ })(CalcMode || (exports.CalcMode = CalcMode = {}));
12
+ function toCalcMode(value) {
13
+ switch (value) {
14
+ case 'exact_in':
15
+ return CalcMode.EXACT_IN;
16
+ case 'exact_out':
17
+ return CalcMode.EXACT_OUT;
18
+ default:
19
+ return CalcMode.NONE;
20
+ }
21
+ }
22
+ function toString(value) {
23
+ switch (value) {
24
+ case CalcMode.EXACT_IN:
25
+ return 'exact_in';
26
+ case CalcMode.EXACT_OUT:
27
+ return 'exact_out';
28
+ default:
29
+ return 'none';
30
+ }
31
+ }
32
+ //# sourceMappingURL=calc_mode.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calc_mode.enum.js","sourceRoot":"","sources":["../../../src/common/enums/calc_mode.enum.ts"],"names":[],"mappings":";;;AAMA,gCASC;AAED,4BASC;AA1BD,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,iCAAqB,CAAA;IACrB,mCAAuB,CAAA;AACzB,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,SAAgB,UAAU,CAAC,KAAa;IACtC,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,UAAU;YACb,OAAO,QAAQ,CAAC,QAAQ,CAAC;QAC3B,KAAK,WAAW;YACd,OAAO,QAAQ,CAAC,SAAS,CAAC;QAC5B;YACE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;AACH,CAAC;AAED,SAAgB,QAAQ,CAAC,KAAe;IACtC,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,QAAQ,CAAC,QAAQ;YACpB,OAAO,UAAU,CAAC;QACpB,KAAK,QAAQ,CAAC,SAAS;YACrB,OAAO,WAAW,CAAC;QACrB;YACE,OAAO,MAAM,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./calc_mode.enum";
2
+ export * from "./intent_type.enum";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./calc_mode.enum"), exports);
18
+ __exportStar(require("./intent_type.enum"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qDAAmC"}
@@ -0,0 +1,6 @@
1
+ export declare enum IntentType {
2
+ NONE = "none",
3
+ BRIDGE = "bridge",
4
+ BRIDGE_ESTIMATE = "bridge-estimate"
5
+ }
6
+ //# sourceMappingURL=intent_type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent_type.enum.d.ts","sourceRoot":"","sources":["../../../src/common/enums/intent_type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,eAAe,oBAAoB;CACpC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntentType = void 0;
4
+ var IntentType;
5
+ (function (IntentType) {
6
+ IntentType["NONE"] = "none";
7
+ IntentType["BRIDGE"] = "bridge";
8
+ IntentType["BRIDGE_ESTIMATE"] = "bridge-estimate";
9
+ })(IntentType || (exports.IntentType = IntentType = {}));
10
+ //# sourceMappingURL=intent_type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent_type.enum.js","sourceRoot":"","sources":["../../../src/common/enums/intent_type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,iDAAmC,CAAA;AACrC,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
@@ -0,0 +1,3 @@
1
+ export * from "./enums";
2
+ export * from "./utils";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
18
+ __exportStar(require("./utils"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB"}
@@ -0,0 +1,20 @@
1
+ import BigNumber from "bignumber.js";
2
+ export interface IChainRpcProvider {
3
+ init(): any;
4
+ getGasPrice(): Promise<BigNumber>;
5
+ estimateTransactionFee(chainTransaction: any): Promise<BigNumber>;
6
+ }
7
+ export interface IEVMChainProvider extends IChainRpcProvider {
8
+ startListerner(): any;
9
+ blockListener(): any;
10
+ eventQueryEmmiter(start: any, end: number): any;
11
+ reconnectWebSocket(startListener: () => void): any;
12
+ getWalletBalance(address: string, token: any): Promise<BigNumber>;
13
+ getTransactionByHash(hash: string): Promise<any>;
14
+ }
15
+ export interface ITONChainProvider extends IChainRpcProvider {
16
+ getWalletBalance(address: string, token: any): Promise<BigNumber>;
17
+ getTransactionByHash(hash: string): Promise<any>;
18
+ }
19
+ export type ChainProvider = IEVMChainProvider | ITONChainProvider;
20
+ //# sourceMappingURL=IChain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IChain.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/IChain.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,MAAM,WAAW,iBAAiB;IAChC,IAAI,QAAG;IACP,WAAW,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC,sBAAsB,CAAC,gBAAgB,EAAE,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,cAAc,QAAG;IAEjB,aAAa,QAAG;IAEhB,iBAAiB,CAAC,KAAK,KAAA,EAAE,GAAG,EAAE,MAAM,OAAE;IAEtC,kBAAkB,CAAC,aAAa,EAAE,MAAM,IAAI,OAAE;IAE9C,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAElE,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CAClD;AACD,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAElE,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CAClD;AAED,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IChain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IChain.js","sourceRoot":"","sources":["../../../src/common/interfaces/IChain.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface ILogger {
2
+ trace(msg: string, meta?: Record<string, unknown>): void;
3
+ info(msg: string, meta?: Record<string, unknown>): void;
4
+ log(msg: string, meta?: Record<string, unknown>): void;
5
+ warn(msg: string, meta?: Record<string, unknown>): void;
6
+ err(err: Error, msg?: string, meta?: Record<string, unknown>): void;
7
+ }
8
+ //# sourceMappingURL=ILog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILog.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/ILog.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACzD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACxD,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACxD,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACrE"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ILog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILog.js","sourceRoot":"","sources":["../../../src/common/interfaces/ILog.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import BigNumber from 'bignumber.js';
2
+ export declare class BigNumberColumnTransformer {
3
+ to(data: BigNumber): string;
4
+ from(data: string): BigNumber;
5
+ }
6
+ //# sourceMappingURL=bignumber.column.transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bignumber.column.transformer.d.ts","sourceRoot":"","sources":["../../../src/common/utils/bignumber.column.transformer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,qBAAa,0BAA0B;IACrC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAG3B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;CAG9B"}
@@ -0,0 +1,17 @@
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.BigNumberColumnTransformer = void 0;
7
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
8
+ class BigNumberColumnTransformer {
9
+ to(data) {
10
+ return data.toString();
11
+ }
12
+ from(data) {
13
+ return new bignumber_js_1.default(data);
14
+ }
15
+ }
16
+ exports.BigNumberColumnTransformer = BigNumberColumnTransformer;
17
+ //# sourceMappingURL=bignumber.column.transformer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bignumber.column.transformer.js","sourceRoot":"","sources":["../../../src/common/utils/bignumber.column.transformer.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAErC,MAAa,0BAA0B;IACrC,EAAE,CAAC,IAAe;QAChB,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IACD,IAAI,CAAC,IAAY;QACf,OAAO,IAAI,sBAAS,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AAPD,gEAOC"}
@@ -0,0 +1,3 @@
1
+ export * from "./list";
2
+ export * from "./bignumber.column.transformer";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./list"), exports);
18
+ __exportStar(require("./bignumber.column.transformer"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,iEAA+C"}
@@ -0,0 +1,3 @@
1
+ export declare function makeList<NewClass, DtoClass>(entities: NewClass[], gen: (entity: NewClass) => DtoClass): DtoClass[];
2
+ export declare function makeEntityList<DtoClass, NewClass>(objs: DtoClass[], gen: (dto: DtoClass) => NewClass): NewClass[];
3
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/common/utils/list.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,EACzC,QAAQ,EAAE,QAAQ,EAAE,EACpB,GAAG,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,QAAQ,GAClC,QAAQ,EAAE,CASZ;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAC/C,IAAI,EAAE,QAAQ,EAAE,EAChB,GAAG,EAAE,CAAC,GAAG,EAAE,QAAQ,KAAK,QAAQ,GAC/B,QAAQ,EAAE,CASZ"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeList = makeList;
4
+ exports.makeEntityList = makeEntityList;
5
+ function makeList(entities, gen) {
6
+ const list = [];
7
+ for (const entity of entities) {
8
+ if (entity == undefined) {
9
+ continue;
10
+ }
11
+ list.push(gen(entity));
12
+ }
13
+ return list;
14
+ }
15
+ function makeEntityList(objs, gen) {
16
+ const list = [];
17
+ for (const obj of objs) {
18
+ if (obj == undefined) {
19
+ continue;
20
+ }
21
+ list.push(gen(obj));
22
+ }
23
+ return list;
24
+ }
25
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/common/utils/list.ts"],"names":[],"mappings":";;AAAA,4BAYC;AAED,wCAYC;AA1BD,SAAgB,QAAQ,CACtB,QAAoB,EACpB,GAAmC;IAEnC,MAAM,IAAI,GAAe,EAAE,CAAC;IAC5B,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE,CAAC;QAC9B,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;YACxB,SAAS;QACX,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,cAAc,CAC5B,IAAgB,EAChB,GAAgC;IAEhC,MAAM,IAAI,GAAe,EAAE,CAAC;IAC5B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC;YACrB,SAAS;QACX,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./modules";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./modules"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
@@ -0,0 +1,35 @@
1
+ export declare class ChainContractDto {
2
+ static from<T extends {
3
+ id: string;
4
+ networkId: string;
5
+ contractAddress: string;
6
+ proxyAddress: string;
7
+ }>(obj: T): ChainContractDto;
8
+ static listFrom<T extends {
9
+ id: string;
10
+ networkId: string;
11
+ contractAddress: string;
12
+ proxyAddress: string;
13
+ }>(objs: T[]): ChainContractDto[];
14
+ /**
15
+ * Unique identifier for the contract
16
+ * @example '12345'
17
+ */
18
+ id: string;
19
+ /**
20
+ * The contract's address in the blockchain
21
+ * @example '0x2ce98643a10abc814031704769957099b6074e32'
22
+ */
23
+ contractAddress: string;
24
+ /**
25
+ * The proxy address associated with the contract
26
+ * @example '0x2ce98643a10abc814031704769957099b6074e32'
27
+ */
28
+ proxyAddress: string;
29
+ /**
30
+ * Network identifier where the contract is deployed
31
+ * @example '1'
32
+ */
33
+ networkId: string;
34
+ }
35
+ //# sourceMappingURL=chain_contract.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain_contract.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_contract.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;WACb,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;KACtB,EACD,GAAG,EAAE,CAAC,GAAG,gBAAgB;IAS3B,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;KACtB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,gBAAgB,EAAE;IAIhC;;;OAGG;IACH,EAAE,EAAG,MAAM,CAAC;IAEZ;;;OAGG;IAGH,eAAe,EAAG,MAAM,CAAC;IAEzB;;;OAGG;IAGH,YAAY,EAAG,MAAM,CAAC;IAEtB;;;OAGG;IAGH,SAAS,EAAG,MAAM,CAAC;CACpB"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ChainContractDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const list_1 = require("../../../../common/utils/list");
15
+ class ChainContractDto {
16
+ static from(obj) {
17
+ const dto = new ChainContractDto();
18
+ dto.id = obj.id;
19
+ dto.networkId = obj.networkId;
20
+ dto.contractAddress = obj.contractAddress;
21
+ dto.proxyAddress = obj.proxyAddress;
22
+ return dto;
23
+ }
24
+ static listFrom(objs) {
25
+ return (0, list_1.makeList)(objs, ChainContractDto.from);
26
+ }
27
+ }
28
+ exports.ChainContractDto = ChainContractDto;
29
+ __decorate([
30
+ (0, class_validator_1.IsNotEmpty)(),
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], ChainContractDto.prototype, "contractAddress", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsNotEmpty)(),
36
+ (0, class_validator_1.IsString)(),
37
+ __metadata("design:type", String)
38
+ ], ChainContractDto.prototype, "proxyAddress", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsUUID)(),
41
+ (0, class_validator_1.IsNotEmpty)(),
42
+ __metadata("design:type", String)
43
+ ], ChainContractDto.prototype, "networkId", void 0);
44
+ //# sourceMappingURL=chain_contract.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain_contract.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_contract.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,wDAAyD;AAEzD,MAAa,gBAAgB;IACpB,MAAM,CAAC,IAAI,CAOhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,gBAAgB,EAAE,CAAC;QACnC,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC;QAChB,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC9B,GAAG,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;QAC1C,GAAG,CAAC,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;QACpC,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CAOb,IAAS;QACT,OAAO,IAAA,eAAQ,EAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;CA+BF;AAzDD,4CAyDC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACc;AAQzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACW;AAQtB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;mDACM"}
@@ -0,0 +1,131 @@
1
+ export declare class ChainTransactionDto {
2
+ static from<T extends {
3
+ id: string;
4
+ requestQuoteId: string;
5
+ responseQuoteId: string;
6
+ blockNumber?: number;
7
+ blockHash?: string;
8
+ hash: string;
9
+ from: string;
10
+ toId: string;
11
+ index?: number;
12
+ type?: number;
13
+ gasLimit: string;
14
+ gasPrice: string;
15
+ maxFeePerGas?: string;
16
+ data: string;
17
+ value: string;
18
+ chainId?: number;
19
+ signature?: string;
20
+ }>(tx: T): ChainTransactionDto;
21
+ static listFrom<T extends {
22
+ id: string;
23
+ requestQuoteId: string;
24
+ responseQuoteId: string;
25
+ blockNumber?: number;
26
+ blockHash?: string;
27
+ hash: string;
28
+ from: string;
29
+ toId: string;
30
+ index?: number;
31
+ type?: number;
32
+ gasLimit: string;
33
+ gasPrice: string;
34
+ maxFeePerGas?: string;
35
+ data: string;
36
+ value: string;
37
+ chainId?: number;
38
+ signature?: string;
39
+ }>(entities: T[]): ChainTransactionDto[];
40
+ /**
41
+ * Unique identifier of the transaction
42
+ * @example '12345'
43
+ */
44
+ id: string;
45
+ /**
46
+ * UUID of the request quote
47
+ * @example 'a1b2c3d4-e5f6-7890-1234-56789abcdef0'
48
+ */
49
+ requestQuoteId: string;
50
+ /**
51
+ * UUID of the response quote
52
+ * @example 'f0e1d2c3-b4a5-6789-0123-456789abcdef'
53
+ */
54
+ responseQuoteId: string;
55
+ /**
56
+ * Block number where the transaction was mined
57
+ * @example 123456
58
+ */
59
+ blockNumber?: number;
60
+ /**
61
+ * Block hash
62
+ * @example '0xabcdef1234567890...'
63
+ */
64
+ blockHash?: string;
65
+ /**
66
+ * Transaction hash
67
+ * @example '0xabcdef1234567890...'
68
+ */
69
+ hash: string;
70
+ /**
71
+ * Sender address
72
+ * @example '0xabc123...'
73
+ */
74
+ from: string;
75
+ /**
76
+ * UUID of the destination chain contract
77
+ * @example 'd1e2f3a4-b5c6-7890-1234-56789abcdef0'
78
+ */
79
+ toId: string;
80
+ /**
81
+ * Transaction index
82
+ * @example 0
83
+ */
84
+ index?: number;
85
+ /**
86
+ * Transaction type
87
+ * @example 1
88
+ */
89
+ type?: number;
90
+ /**
91
+ * Gas limit as string
92
+ * @example '21000'
93
+ */
94
+ gasLimit: string;
95
+ /**
96
+ * Gas price as string
97
+ * @example '20000000000'
98
+ */
99
+ gasPrice: string;
100
+ /**
101
+ * Max fee per gas as string
102
+ * @example '25000000000'
103
+ */
104
+ maxFeePerGas?: string;
105
+ /**
106
+ * Transaction data
107
+ * @example '0xdata'
108
+ */
109
+ data: string;
110
+ /**
111
+ * Transaction value as string
112
+ * @example '1000000000000000000'
113
+ */
114
+ value: string;
115
+ /**
116
+ * Chain ID as number
117
+ * @example 1
118
+ */
119
+ chainId?: number;
120
+ /**
121
+ * Transaction signature
122
+ * @example '0xsignature'
123
+ */
124
+ signature?: string;
125
+ /**
126
+ * Confirmation Status of Transaction
127
+ * @example false
128
+ */
129
+ confirmation: boolean;
130
+ }
131
+ //# sourceMappingURL=chain_transaction.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain_transaction.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_transaction.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,mBAAmB;WAChB,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EACD,EAAE,EAAE,CAAC,GAAG,mBAAmB;IAuB7B,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS;QACxB,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,mBAAmB,EAAE;IAIxC;;;OAGG;IACH,EAAE,EAAG,MAAM,CAAC;IAEZ;;;OAGG;IAGH,cAAc,EAAG,MAAM,CAAC;IAExB;;;OAGG;IAGH,eAAe,EAAG,MAAM,CAAC;IAEzB;;;OAGG;IAGH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IAGH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IAGH,IAAI,EAAG,MAAM,CAAC;IAEd;;;OAGG;IAGH,IAAI,EAAG,MAAM,CAAC;IAEd;;;OAGG;IAGH,IAAI,EAAG,MAAM,CAAC;IAEd;;;OAGG;IAGH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAGH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IAGH,QAAQ,EAAG,MAAM,CAAC;IAElB;;;OAGG;IAGH,QAAQ,EAAG,MAAM,CAAC;IAElB;;;OAGG;IAGH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IAGH,IAAI,EAAG,MAAM,CAAC;IAEd;;;OAGG;IAGH,KAAK,EAAG,MAAM,CAAC;IAEf;;;OAGG;IAGH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IAEH,YAAY,EAAE,OAAO,CAAS;CAC/B"}