@shogun-sdk/intents-sdk 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/dist/{_esm → esm}/chains.js +12 -9
  2. package/dist/esm/chains.js.map +1 -0
  3. package/dist/{_esm → esm}/constants.js +12 -1
  4. package/dist/esm/constants.js.map +1 -0
  5. package/dist/esm/core/evm/abi/permit2.js +395 -0
  6. package/dist/esm/core/evm/abi/permit2.js.map +1 -0
  7. package/dist/{_esm → esm}/core/evm/abi/source-chain-guard.js +2 -1
  8. package/dist/esm/core/evm/abi/source-chain-guard.js.map +1 -0
  9. package/dist/{_esm → esm}/core/evm/intent-provider.js.map +1 -1
  10. package/dist/{_esm → esm}/core/evm/order-signature.js +11 -0
  11. package/dist/esm/core/evm/order-signature.js.map +1 -0
  12. package/dist/esm/core/evm/sdk.js +154 -0
  13. package/dist/esm/core/evm/sdk.js.map +1 -0
  14. package/dist/{_esm → esm}/core/evm/viem-provider.js +27 -0
  15. package/dist/esm/core/evm/viem-provider.js.map +1 -0
  16. package/dist/{_esm → esm}/core/sdk.js +31 -7
  17. package/dist/esm/core/sdk.js.map +1 -0
  18. package/dist/{_esm → esm}/core/solana/order-instructions.js +10 -0
  19. package/dist/esm/core/solana/order-instructions.js.map +1 -0
  20. package/dist/{_esm → esm}/core/solana/sdk.js +11 -1
  21. package/dist/esm/core/solana/sdk.js.map +1 -0
  22. package/dist/{_esm → esm}/core/sui/order-transaction.js +10 -0
  23. package/dist/esm/core/sui/order-transaction.js.map +1 -0
  24. package/dist/{_esm → esm}/core/sui/sdk.js +3 -0
  25. package/dist/esm/core/sui/sdk.js.map +1 -0
  26. package/dist/{_esm → esm}/errors/index.js +6 -0
  27. package/dist/{_esm → esm}/errors/index.js.map +1 -1
  28. package/dist/esm/index.js +11 -0
  29. package/dist/esm/index.js.map +1 -0
  30. package/dist/esm/types/api.js +2 -0
  31. package/dist/esm/types/api.js.map +1 -0
  32. package/dist/esm/types/user-order.js +16 -0
  33. package/dist/esm/types/user-order.js.map +1 -0
  34. package/dist/esm/utils/defillama.js +115 -0
  35. package/dist/esm/utils/defillama.js.map +1 -0
  36. package/dist/{_esm → esm}/utils/order-validator.js +1 -1
  37. package/dist/{_esm → esm}/utils/order-validator.js.map +1 -1
  38. package/dist/esm/utils/parsers.js +51 -0
  39. package/dist/esm/utils/parsers.js.map +1 -0
  40. package/dist/{_types → types}/chains.d.ts +12 -21
  41. package/dist/types/chains.d.ts.map +1 -0
  42. package/dist/{_types → types}/constants.d.ts +5 -0
  43. package/dist/types/constants.d.ts.map +1 -0
  44. package/dist/types/core/evm/abi/permit2.d.ts +304 -0
  45. package/dist/types/core/evm/abi/permit2.d.ts.map +1 -0
  46. package/dist/{_types → types}/core/evm/abi/source-chain-guard.d.ts +1 -1
  47. package/dist/{_types → types}/core/evm/abi/source-chain-guard.d.ts.map +1 -1
  48. package/dist/{_types → types}/core/evm/intent-provider.d.ts +2 -1
  49. package/dist/{_types → types}/core/evm/intent-provider.d.ts.map +1 -1
  50. package/dist/{_types → types}/core/evm/order-signature.d.ts +6 -0
  51. package/dist/types/core/evm/order-signature.d.ts.map +1 -0
  52. package/dist/{_types → types}/core/evm/sdk.d.ts +4 -0
  53. package/dist/types/core/evm/sdk.d.ts.map +1 -0
  54. package/dist/types/core/evm/viem-provider.d.ts +19304 -0
  55. package/dist/{_types → types}/core/evm/viem-provider.d.ts.map +1 -1
  56. package/dist/{_types → types}/core/sdk.d.ts +7 -4
  57. package/dist/types/core/sdk.d.ts.map +1 -0
  58. package/dist/{_types → types}/core/solana/order-instructions.d.ts +5 -0
  59. package/dist/types/core/solana/order-instructions.d.ts.map +1 -0
  60. package/dist/{_types → types}/core/solana/sdk.d.ts +1 -0
  61. package/dist/{_types → types}/core/solana/sdk.d.ts.map +1 -1
  62. package/dist/{_types → types}/core/sui/order-transaction.d.ts +5 -0
  63. package/dist/types/core/sui/order-transaction.d.ts.map +1 -0
  64. package/dist/{_types → types}/core/sui/sdk.d.ts +1 -0
  65. package/dist/types/core/sui/sdk.d.ts.map +1 -0
  66. package/dist/{_types → types}/errors/index.d.ts +3 -0
  67. package/dist/{_types → types}/errors/index.d.ts.map +1 -1
  68. package/dist/types/index.d.ts +15 -0
  69. package/dist/types/index.d.ts.map +1 -0
  70. package/dist/types/types/api.d.ts +8 -0
  71. package/dist/types/types/api.d.ts.map +1 -0
  72. package/dist/{_types → types}/types/intent.d.ts +2 -2
  73. package/dist/types/types/intent.d.ts.map +1 -0
  74. package/dist/types/types/user-order.d.ts +37 -0
  75. package/dist/types/types/user-order.d.ts.map +1 -0
  76. package/dist/types/utils/defillama.d.ts +61 -0
  77. package/dist/types/utils/defillama.d.ts.map +1 -0
  78. package/dist/types/utils/parsers.d.ts +19 -0
  79. package/dist/types/utils/parsers.d.ts.map +1 -0
  80. package/package.json +10 -11
  81. package/src/chains.ts +16 -23
  82. package/src/constants.ts +16 -1
  83. package/src/core/evm/abi/permit2.ts +394 -0
  84. package/src/core/evm/abi/source-chain-guard.ts +2 -1
  85. package/src/core/evm/intent-provider.ts +1 -1
  86. package/src/core/evm/order-signature.ts +23 -0
  87. package/src/core/evm/sdk.ts +96 -0
  88. package/src/core/evm/viem-provider.ts +29 -0
  89. package/src/core/sdk.ts +41 -9
  90. package/src/core/solana/order-instructions.ts +20 -0
  91. package/src/core/solana/sdk.ts +14 -0
  92. package/src/core/sui/order-transaction.ts +20 -0
  93. package/src/core/sui/sdk.ts +4 -0
  94. package/src/errors/index.ts +7 -0
  95. package/src/index.ts +13 -2
  96. package/src/types/api.ts +9 -0
  97. package/src/types/intent.ts +2 -2
  98. package/src/types/user-order.ts +74 -0
  99. package/src/utils/defillama.ts +179 -0
  100. package/src/utils/order-validator.ts +1 -1
  101. package/src/utils/parsers.ts +47 -0
  102. package/dist/_esm/chains.js.map +0 -1
  103. package/dist/_esm/constants.js.map +0 -1
  104. package/dist/_esm/core/evm/abi/source-chain-guard.js.map +0 -1
  105. package/dist/_esm/core/evm/order-signature.js.map +0 -1
  106. package/dist/_esm/core/evm/sdk.js +0 -79
  107. package/dist/_esm/core/evm/sdk.js.map +0 -1
  108. package/dist/_esm/core/evm/viem-provider.js.map +0 -1
  109. package/dist/_esm/core/sdk.js.map +0 -1
  110. package/dist/_esm/core/solana/order-instructions.js.map +0 -1
  111. package/dist/_esm/core/solana/sdk.js.map +0 -1
  112. package/dist/_esm/core/sui/order-transaction.js.map +0 -1
  113. package/dist/_esm/core/sui/sdk.js.map +0 -1
  114. package/dist/_esm/index.js +0 -7
  115. package/dist/_esm/index.js.map +0 -1
  116. package/dist/_esm/package.json +0 -1
  117. package/dist/_esm/utils/parsers.js +0 -10
  118. package/dist/_esm/utils/parsers.js.map +0 -1
  119. package/dist/_types/chains.d.ts.map +0 -1
  120. package/dist/_types/constants.d.ts.map +0 -1
  121. package/dist/_types/core/evm/order-signature.d.ts.map +0 -1
  122. package/dist/_types/core/evm/sdk.d.ts.map +0 -1
  123. package/dist/_types/core/evm/viem-provider.d.ts +0 -9657
  124. package/dist/_types/core/sdk.d.ts.map +0 -1
  125. package/dist/_types/core/solana/order-instructions.d.ts.map +0 -1
  126. package/dist/_types/core/sui/order-transaction.d.ts.map +0 -1
  127. package/dist/_types/core/sui/sdk.d.ts.map +0 -1
  128. package/dist/_types/index.d.ts +0 -10
  129. package/dist/_types/index.d.ts.map +0 -1
  130. package/dist/_types/types/intent.d.ts.map +0 -1
  131. package/dist/_types/utils/parsers.d.ts +0 -4
  132. package/dist/_types/utils/parsers.d.ts.map +0 -1
  133. /package/dist/{_esm → esm}/config.js +0 -0
  134. /package/dist/{_esm → esm}/config.js.map +0 -0
  135. /package/dist/{_esm → esm}/core/evm/abi/erc20.js +0 -0
  136. /package/dist/{_esm → esm}/core/evm/abi/erc20.js.map +0 -0
  137. /package/dist/{_esm → esm}/core/evm/intent-provider.js +0 -0
  138. /package/dist/{_esm → esm}/core/evm/permit2.js +0 -0
  139. /package/dist/{_esm → esm}/core/evm/permit2.js.map +0 -0
  140. /package/dist/{_esm → esm}/core/evm/validator.js +0 -0
  141. /package/dist/{_esm → esm}/core/evm/validator.js.map +0 -0
  142. /package/dist/{_esm → esm}/core/order.js +0 -0
  143. /package/dist/{_esm → esm}/core/order.js.map +0 -0
  144. /package/dist/{_esm → esm}/core/solana/client.js +0 -0
  145. /package/dist/{_esm → esm}/core/solana/client.js.map +0 -0
  146. /package/dist/{_esm → esm}/core/solana/generated/accounts/adminSingleton.js +0 -0
  147. /package/dist/{_esm → esm}/core/solana/generated/accounts/adminSingleton.js.map +0 -0
  148. /package/dist/{_esm → esm}/core/solana/generated/accounts/guard.js +0 -0
  149. /package/dist/{_esm → esm}/core/solana/generated/accounts/guard.js.map +0 -0
  150. /package/dist/{_esm → esm}/core/solana/generated/accounts/index.js +0 -0
  151. /package/dist/{_esm → esm}/core/solana/generated/accounts/index.js.map +0 -0
  152. /package/dist/{_esm → esm}/core/solana/generated/accounts/order.js +0 -0
  153. /package/dist/{_esm → esm}/core/solana/generated/accounts/order.js.map +0 -0
  154. /package/dist/{_esm → esm}/core/solana/generated/errors/index.js +0 -0
  155. /package/dist/{_esm → esm}/core/solana/generated/errors/index.js.map +0 -0
  156. /package/dist/{_esm → esm}/core/solana/generated/errors/sourceChainGuard.js +0 -0
  157. /package/dist/{_esm → esm}/core/solana/generated/errors/sourceChainGuard.js.map +0 -0
  158. /package/dist/{_esm → esm}/core/solana/generated/index.js +0 -0
  159. /package/dist/{_esm → esm}/core/solana/generated/index.js.map +0 -0
  160. /package/dist/{_esm → esm}/core/solana/generated/instructions/cancelOrder.js +0 -0
  161. /package/dist/{_esm → esm}/core/solana/generated/instructions/cancelOrder.js.map +0 -0
  162. /package/dist/{_esm → esm}/core/solana/generated/instructions/claimTokens.js +0 -0
  163. /package/dist/{_esm → esm}/core/solana/generated/instructions/claimTokens.js.map +0 -0
  164. /package/dist/{_esm → esm}/core/solana/generated/instructions/collectProtocolFees.js +0 -0
  165. /package/dist/{_esm → esm}/core/solana/generated/instructions/collectProtocolFees.js.map +0 -0
  166. /package/dist/{_esm → esm}/core/solana/generated/instructions/createGuard.js +0 -0
  167. /package/dist/{_esm → esm}/core/solana/generated/instructions/createGuard.js.map +0 -0
  168. /package/dist/{_esm → esm}/core/solana/generated/instructions/createOrder.js +0 -0
  169. /package/dist/{_esm → esm}/core/solana/generated/instructions/createOrder.js.map +0 -0
  170. /package/dist/{_esm → esm}/core/solana/generated/instructions/index.js +0 -0
  171. /package/dist/{_esm → esm}/core/solana/generated/instructions/index.js.map +0 -0
  172. /package/dist/{_esm → esm}/core/solana/generated/instructions/initialize.js +0 -0
  173. /package/dist/{_esm → esm}/core/solana/generated/instructions/initialize.js.map +0 -0
  174. /package/dist/{_esm → esm}/core/solana/generated/instructions/preStartOrderExecution.js +0 -0
  175. /package/dist/{_esm → esm}/core/solana/generated/instructions/preStartOrderExecution.js.map +0 -0
  176. /package/dist/{_esm → esm}/core/solana/generated/instructions/setAdmin.js +0 -0
  177. /package/dist/{_esm → esm}/core/solana/generated/instructions/setAdmin.js.map +0 -0
  178. /package/dist/{_esm → esm}/core/solana/generated/instructions/setAuctioneerPubKey.js +0 -0
  179. /package/dist/{_esm → esm}/core/solana/generated/instructions/setAuctioneerPubKey.js.map +0 -0
  180. /package/dist/{_esm → esm}/core/solana/generated/instructions/startOrderExecution.js +0 -0
  181. /package/dist/{_esm → esm}/core/solana/generated/instructions/startOrderExecution.js.map +0 -0
  182. /package/dist/{_esm → esm}/core/solana/generated/instructions/startOrderExecutionAfterSwap.js +0 -0
  183. /package/dist/{_esm → esm}/core/solana/generated/instructions/startOrderExecutionAfterSwap.js.map +0 -0
  184. /package/dist/{_esm → esm}/core/solana/generated/programs/index.js +0 -0
  185. /package/dist/{_esm → esm}/core/solana/generated/programs/index.js.map +0 -0
  186. /package/dist/{_esm → esm}/core/solana/generated/programs/sourceChainGuard.js +0 -0
  187. /package/dist/{_esm → esm}/core/solana/generated/programs/sourceChainGuard.js.map +0 -0
  188. /package/dist/{_esm → esm}/core/solana/generated/shared/index.js +0 -0
  189. /package/dist/{_esm → esm}/core/solana/generated/shared/index.js.map +0 -0
  190. /package/dist/{_esm → esm}/core/solana/generated/types/adminUpdated.js +0 -0
  191. /package/dist/{_esm → esm}/core/solana/generated/types/adminUpdated.js.map +0 -0
  192. /package/dist/{_esm → esm}/core/solana/generated/types/auctioneerPubkeyUpdated.js +0 -0
  193. /package/dist/{_esm → esm}/core/solana/generated/types/auctioneerPubkeyUpdated.js.map +0 -0
  194. /package/dist/{_esm → esm}/core/solana/generated/types/executionStarted.js +0 -0
  195. /package/dist/{_esm → esm}/core/solana/generated/types/executionStarted.js.map +0 -0
  196. /package/dist/{_esm → esm}/core/solana/generated/types/guardCreated.js +0 -0
  197. /package/dist/{_esm → esm}/core/solana/generated/types/guardCreated.js.map +0 -0
  198. /package/dist/{_esm → esm}/core/solana/generated/types/index.js +0 -0
  199. /package/dist/{_esm → esm}/core/solana/generated/types/index.js.map +0 -0
  200. /package/dist/{_esm → esm}/core/solana/generated/types/orderCancelled.js +0 -0
  201. /package/dist/{_esm → esm}/core/solana/generated/types/orderCancelled.js.map +0 -0
  202. /package/dist/{_esm → esm}/core/solana/generated/types/orderCreated.js +0 -0
  203. /package/dist/{_esm → esm}/core/solana/generated/types/orderCreated.js.map +0 -0
  204. /package/dist/{_esm → esm}/core/solana/generated/types/orderFulfilled.js +0 -0
  205. /package/dist/{_esm → esm}/core/solana/generated/types/orderFulfilled.js.map +0 -0
  206. /package/dist/{_esm → esm}/core/solana/generated/types/tokenInSwapped.js +0 -0
  207. /package/dist/{_esm → esm}/core/solana/generated/types/tokenInSwapped.js.map +0 -0
  208. /package/dist/{_esm → esm}/core/solana/validator.js +0 -0
  209. /package/dist/{_esm → esm}/core/solana/validator.js.map +0 -0
  210. /package/dist/{_esm → esm}/core/sui/client.js +0 -0
  211. /package/dist/{_esm → esm}/core/sui/client.js.map +0 -0
  212. /package/dist/{_esm → esm}/core/sui/validator.js +0 -0
  213. /package/dist/{_esm → esm}/core/sui/validator.js.map +0 -0
  214. /package/dist/{_esm → esm}/types/intent.js +0 -0
  215. /package/dist/{_esm → esm}/types/intent.js.map +0 -0
  216. /package/dist/{_esm → esm}/utils/base-validator.js +0 -0
  217. /package/dist/{_esm → esm}/utils/base-validator.js.map +0 -0
  218. /package/dist/{_esm → esm}/utils/logger.js +0 -0
  219. /package/dist/{_esm → esm}/utils/logger.js.map +0 -0
  220. /package/dist/{_esm → esm}/utils/type-utils.js +0 -0
  221. /package/dist/{_esm → esm}/utils/type-utils.js.map +0 -0
  222. /package/dist/{_types → types}/config.d.ts +0 -0
  223. /package/dist/{_types → types}/config.d.ts.map +0 -0
  224. /package/dist/{_types → types}/core/evm/abi/erc20.d.ts +0 -0
  225. /package/dist/{_types → types}/core/evm/abi/erc20.d.ts.map +0 -0
  226. /package/dist/{_types → types}/core/evm/permit2.d.ts +0 -0
  227. /package/dist/{_types → types}/core/evm/permit2.d.ts.map +0 -0
  228. /package/dist/{_types → types}/core/evm/validator.d.ts +0 -0
  229. /package/dist/{_types → types}/core/evm/validator.d.ts.map +0 -0
  230. /package/dist/{_types → types}/core/order.d.ts +0 -0
  231. /package/dist/{_types → types}/core/order.d.ts.map +0 -0
  232. /package/dist/{_types → types}/core/solana/client.d.ts +0 -0
  233. /package/dist/{_types → types}/core/solana/client.d.ts.map +0 -0
  234. /package/dist/{_types → types}/core/solana/generated/accounts/adminSingleton.d.ts +0 -0
  235. /package/dist/{_types → types}/core/solana/generated/accounts/adminSingleton.d.ts.map +0 -0
  236. /package/dist/{_types → types}/core/solana/generated/accounts/guard.d.ts +0 -0
  237. /package/dist/{_types → types}/core/solana/generated/accounts/guard.d.ts.map +0 -0
  238. /package/dist/{_types → types}/core/solana/generated/accounts/index.d.ts +0 -0
  239. /package/dist/{_types → types}/core/solana/generated/accounts/index.d.ts.map +0 -0
  240. /package/dist/{_types → types}/core/solana/generated/accounts/order.d.ts +0 -0
  241. /package/dist/{_types → types}/core/solana/generated/accounts/order.d.ts.map +0 -0
  242. /package/dist/{_types → types}/core/solana/generated/errors/index.d.ts +0 -0
  243. /package/dist/{_types → types}/core/solana/generated/errors/index.d.ts.map +0 -0
  244. /package/dist/{_types → types}/core/solana/generated/errors/sourceChainGuard.d.ts +0 -0
  245. /package/dist/{_types → types}/core/solana/generated/errors/sourceChainGuard.d.ts.map +0 -0
  246. /package/dist/{_types → types}/core/solana/generated/index.d.ts +0 -0
  247. /package/dist/{_types → types}/core/solana/generated/index.d.ts.map +0 -0
  248. /package/dist/{_types → types}/core/solana/generated/instructions/cancelOrder.d.ts +0 -0
  249. /package/dist/{_types → types}/core/solana/generated/instructions/cancelOrder.d.ts.map +0 -0
  250. /package/dist/{_types → types}/core/solana/generated/instructions/claimTokens.d.ts +0 -0
  251. /package/dist/{_types → types}/core/solana/generated/instructions/claimTokens.d.ts.map +0 -0
  252. /package/dist/{_types → types}/core/solana/generated/instructions/collectProtocolFees.d.ts +0 -0
  253. /package/dist/{_types → types}/core/solana/generated/instructions/collectProtocolFees.d.ts.map +0 -0
  254. /package/dist/{_types → types}/core/solana/generated/instructions/createGuard.d.ts +0 -0
  255. /package/dist/{_types → types}/core/solana/generated/instructions/createGuard.d.ts.map +0 -0
  256. /package/dist/{_types → types}/core/solana/generated/instructions/createOrder.d.ts +0 -0
  257. /package/dist/{_types → types}/core/solana/generated/instructions/createOrder.d.ts.map +0 -0
  258. /package/dist/{_types → types}/core/solana/generated/instructions/index.d.ts +0 -0
  259. /package/dist/{_types → types}/core/solana/generated/instructions/index.d.ts.map +0 -0
  260. /package/dist/{_types → types}/core/solana/generated/instructions/initialize.d.ts +0 -0
  261. /package/dist/{_types → types}/core/solana/generated/instructions/initialize.d.ts.map +0 -0
  262. /package/dist/{_types → types}/core/solana/generated/instructions/preStartOrderExecution.d.ts +0 -0
  263. /package/dist/{_types → types}/core/solana/generated/instructions/preStartOrderExecution.d.ts.map +0 -0
  264. /package/dist/{_types → types}/core/solana/generated/instructions/setAdmin.d.ts +0 -0
  265. /package/dist/{_types → types}/core/solana/generated/instructions/setAdmin.d.ts.map +0 -0
  266. /package/dist/{_types → types}/core/solana/generated/instructions/setAuctioneerPubKey.d.ts +0 -0
  267. /package/dist/{_types → types}/core/solana/generated/instructions/setAuctioneerPubKey.d.ts.map +0 -0
  268. /package/dist/{_types → types}/core/solana/generated/instructions/startOrderExecution.d.ts +0 -0
  269. /package/dist/{_types → types}/core/solana/generated/instructions/startOrderExecution.d.ts.map +0 -0
  270. /package/dist/{_types → types}/core/solana/generated/instructions/startOrderExecutionAfterSwap.d.ts +0 -0
  271. /package/dist/{_types → types}/core/solana/generated/instructions/startOrderExecutionAfterSwap.d.ts.map +0 -0
  272. /package/dist/{_types → types}/core/solana/generated/programs/index.d.ts +0 -0
  273. /package/dist/{_types → types}/core/solana/generated/programs/index.d.ts.map +0 -0
  274. /package/dist/{_types → types}/core/solana/generated/programs/sourceChainGuard.d.ts +0 -0
  275. /package/dist/{_types → types}/core/solana/generated/programs/sourceChainGuard.d.ts.map +0 -0
  276. /package/dist/{_types → types}/core/solana/generated/shared/index.d.ts +0 -0
  277. /package/dist/{_types → types}/core/solana/generated/shared/index.d.ts.map +0 -0
  278. /package/dist/{_types → types}/core/solana/generated/types/adminUpdated.d.ts +0 -0
  279. /package/dist/{_types → types}/core/solana/generated/types/adminUpdated.d.ts.map +0 -0
  280. /package/dist/{_types → types}/core/solana/generated/types/auctioneerPubkeyUpdated.d.ts +0 -0
  281. /package/dist/{_types → types}/core/solana/generated/types/auctioneerPubkeyUpdated.d.ts.map +0 -0
  282. /package/dist/{_types → types}/core/solana/generated/types/executionStarted.d.ts +0 -0
  283. /package/dist/{_types → types}/core/solana/generated/types/executionStarted.d.ts.map +0 -0
  284. /package/dist/{_types → types}/core/solana/generated/types/guardCreated.d.ts +0 -0
  285. /package/dist/{_types → types}/core/solana/generated/types/guardCreated.d.ts.map +0 -0
  286. /package/dist/{_types → types}/core/solana/generated/types/index.d.ts +0 -0
  287. /package/dist/{_types → types}/core/solana/generated/types/index.d.ts.map +0 -0
  288. /package/dist/{_types → types}/core/solana/generated/types/orderCancelled.d.ts +0 -0
  289. /package/dist/{_types → types}/core/solana/generated/types/orderCancelled.d.ts.map +0 -0
  290. /package/dist/{_types → types}/core/solana/generated/types/orderCreated.d.ts +0 -0
  291. /package/dist/{_types → types}/core/solana/generated/types/orderCreated.d.ts.map +0 -0
  292. /package/dist/{_types → types}/core/solana/generated/types/orderFulfilled.d.ts +0 -0
  293. /package/dist/{_types → types}/core/solana/generated/types/orderFulfilled.d.ts.map +0 -0
  294. /package/dist/{_types → types}/core/solana/generated/types/tokenInSwapped.d.ts +0 -0
  295. /package/dist/{_types → types}/core/solana/generated/types/tokenInSwapped.d.ts.map +0 -0
  296. /package/dist/{_types → types}/core/solana/validator.d.ts +0 -0
  297. /package/dist/{_types → types}/core/solana/validator.d.ts.map +0 -0
  298. /package/dist/{_types → types}/core/sui/client.d.ts +0 -0
  299. /package/dist/{_types → types}/core/sui/client.d.ts.map +0 -0
  300. /package/dist/{_types → types}/core/sui/validator.d.ts +0 -0
  301. /package/dist/{_types → types}/core/sui/validator.d.ts.map +0 -0
  302. /package/dist/{_types → types}/utils/base-validator.d.ts +0 -0
  303. /package/dist/{_types → types}/utils/base-validator.d.ts.map +0 -0
  304. /package/dist/{_types → types}/utils/logger.d.ts +0 -0
  305. /package/dist/{_types → types}/utils/logger.d.ts.map +0 -0
  306. /package/dist/{_types → types}/utils/order-validator.d.ts +0 -0
  307. /package/dist/{_types → types}/utils/order-validator.d.ts.map +0 -0
  308. /package/dist/{_types → types}/utils/type-utils.d.ts +0 -0
  309. /package/dist/{_types → types}/utils/type-utils.d.ts.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"viem-provider.d.ts","sourceRoot":"","sources":["../../../../src/core/evm/viem-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYvC"}
@@ -1,4 +1,5 @@
1
- import type { CreateOrderParams, PreparedOrder } from '../types/intent.js';
1
+ import type { ApiResponse } from '../types/api.js';
2
+ import type { CreateOrderParams, PreparedOrder, UserIntentRequest } from '../types/intent.js';
2
3
  import { Order } from './order.js';
3
4
  /**
4
5
  * Base SDK providing common functionality for all blockchain implementations
@@ -15,6 +16,7 @@ export declare abstract class BaseSDK {
15
16
  * @abstract Must be implemented by each chain-specific SDK
16
17
  */
17
18
  abstract getUserAddress(): Promise<string>;
19
+ protected abstract cancelOrderInternal(orderId: string): Promise<string>;
18
20
  /**
19
21
  * Prepares an order for submission with chain-specific logic
20
22
  *
@@ -43,6 +45,7 @@ export declare abstract class BaseSDK {
43
45
  * @throws {OrderCreationError} If order creation fails
44
46
  */
45
47
  createOrder(params: CreateOrderParams): Promise<PreparedOrder>;
48
+ cancelOrder(orderId: string): Promise<string>;
46
49
  /**
47
50
  * Creates an order and sends it to the auctioneer in a single call
48
51
  *
@@ -54,7 +57,7 @@ export declare abstract class BaseSDK {
54
57
  * @throws {OrderCreationError} If order creation fails
55
58
  * @throws {NetworkError} If order submission fails
56
59
  */
57
- createAndSendOrder(params: CreateOrderParams): Promise<Response>;
60
+ createAndSendOrder(params: CreateOrderParams): Promise<ApiResponse>;
58
61
  /**
59
62
  * Converts a prepared order into a user intent request format for the auctioneer
60
63
  *
@@ -67,7 +70,7 @@ export declare abstract class BaseSDK {
67
70
  * @returns User intent request object ready for submission to the auctioneer
68
71
  * @throws {BaseError} If conversion fails
69
72
  */
70
- private getUserIntentRequest;
73
+ static getUserIntentRequest(preparedOrder: PreparedOrder): UserIntentRequest;
71
74
  /**
72
75
  * Sends a prepared order to the auctioneer service
73
76
  *
@@ -81,6 +84,6 @@ export declare abstract class BaseSDK {
81
84
  * @returns Promise resolving to the specific-chain tx hash
82
85
  * @throws {NetworkError} If the network request fails or returns an error
83
86
  */
84
- sendOrder(preparedOrder: PreparedOrder): Promise<Response>;
87
+ static sendOrder(preparedOrder: PreparedOrder): Promise<ApiResponse>;
85
88
  }
86
89
  //# sourceMappingURL=sdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/core/sdk.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAG9F,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;GAMG;AACH,8BAAsB,OAAO;IAC3B;;;;;OAKG;aACa,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAEjD,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAExE;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC;IAErE;;;;;;;;;;;;OAYG;IACU,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IA6C9D,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1D;;;;;;;;;;OAUG;IACU,kBAAkB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC;IAKhF;;;;;;;;;;;OAWG;WACW,oBAAoB,CAAC,aAAa,EAAE,aAAa,GAAG,iBAAiB;IAcnF;;;;;;;;;;;;OAYG;WACiB,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;CA0BlF"}
@@ -1,5 +1,6 @@
1
1
  import { type IInstruction, type KeyPairSigner } from '@solana/kit';
2
2
  import type { Order } from '../order.js';
3
+ import type { ApiResponse } from '../../types/api.js';
3
4
  /**
4
5
  * Generates Solana order instructions for creating an order
5
6
  * @param order The order to generate instructions
@@ -9,4 +10,8 @@ export declare function getSolanaOrderInstructions(order: Order): Promise<{
9
10
  orderKeyPair: KeyPairSigner<string>;
10
11
  instructions: IInstruction[];
11
12
  }>;
13
+ export declare function sendSolanaRequest({ order, orderPubkey, }: {
14
+ order: Order;
15
+ orderPubkey: string;
16
+ }): Promise<ApiResponse>;
12
17
  //# sourceMappingURL=order-instructions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-instructions.d.ts","sourceRoot":"","sources":["../../../../src/core/solana/order-instructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,YAAY,EACjB,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAUrB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAItD;;;;GAIG;AACH,wBAAsB,0BAA0B,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC;IACtE,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,EAAE,YAAY,EAAE,CAAC;CAC9B,CAAC,CAkGD;AAED,wBAAsB,iBAAiB,CAAC,EACtC,KAAK,EACL,WAAW,GACZ,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,WAAW,CAAC,CASvB"}
@@ -29,6 +29,7 @@ export declare class SolanaSDK extends BaseSDK {
29
29
  * @throws {SolanaError} If address derivation fails
30
30
  */
31
31
  getUserAddress(): Promise<string>;
32
+ protected cancelOrderInternal(orderId: string): Promise<string>;
32
33
  /**
33
34
  * Creates a CryptoKeyPair from the user's private key
34
35
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../../src/core/solana/sdk.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;GAMG;AACH,qBAAa,SAAU,SAAQ,OAAO;IACpC,6DAA6D;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,kEAAkE;IAClE,OAAO,CAAC,MAAM,CAAe;IAE7B;;;;OAIG;gBACS,MAAM,EAAE,YAAY;IAMhC;;;;;;;OAOG;IACU,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAM9C;;;;;;;OAOG;YACW,oBAAoB;IAMlC;;;;;;;OAOG;YACW,aAAa;IAK3B;;;;;;;;;;;;OAYG;cACa,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC;CAmCnE"}
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../../src/core/solana/sdk.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;;;;;GAMG;AACH,qBAAa,SAAU,SAAQ,OAAO;IACpC,6DAA6D;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;IACtC,kEAAkE;IAClE,OAAO,CAAC,MAAM,CAAe;IAE7B;;;;OAIG;gBACS,MAAM,EAAE,YAAY;IAMhC;;;;;;;OAOG;IACU,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;cAMrB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAY9E;;;;;;;OAOG;YACW,oBAAoB;IAMlC;;;;;;;OAOG;YACW,aAAa;IAK3B;;;;;;;;;;;;OAYG;cACa,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC;CAmCnE"}
@@ -1,9 +1,14 @@
1
1
  import { Transaction } from '@mysten/sui/transactions';
2
2
  import type { Order } from '../order.js';
3
+ import type { ApiResponse } from '../../types/api.js';
3
4
  /**
4
5
  * Generates Sui order transaction for creating an order
5
6
  * @param order The order to generate transaction for
6
7
  * @returns Object containing the transaction
7
8
  */
8
9
  export declare function getSuiOrderTransaction(order: Order): Promise<Transaction>;
10
+ export declare function sendSuiRequest({ order, transactionDigest, }: {
11
+ order: Order;
12
+ transactionDigest: string;
13
+ }): Promise<ApiResponse>;
9
14
  //# sourceMappingURL=order-transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-transaction.d.ts","sourceRoot":"","sources":["../../../../src/core/sui/order-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAWvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CA0D/E;AAED,wBAAsB,cAAc,CAAC,EACnC,KAAK,EACL,iBAAiB,GAClB,EAAE;IACD,KAAK,EAAE,KAAK,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GAAG,OAAO,CAAC,WAAW,CAAC,CASvB"}
@@ -10,6 +10,7 @@ import { BaseSDK } from '../sdk.js';
10
10
  * Supports cross-chain swaps from Sui to other supported chains.
11
11
  */
12
12
  export declare class SuiSDK extends BaseSDK {
13
+ protected cancelOrderInternal(): Promise<string>;
13
14
  /** Configuration for Sui connection and authentication */
14
15
  private readonly config;
15
16
  /** Client for Sui RPC interactions and transaction handling */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../../src/core/sui/sdk.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;;GAMG;AACH,qBAAa,MAAO,SAAQ,OAAO;cACd,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzD,0DAA0D;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAY;IACnC,+DAA+D;IAC/D,OAAO,CAAC,MAAM,CAAY;IAE1B;;;;OAIG;gBACS,MAAM,EAAE,SAAS;IAM7B;;;;;;OAMG;IACU,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAI9C;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU;IAIlB;;;;;;;;;;;;OAYG;cACa,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC;CAuBnE"}
@@ -25,6 +25,9 @@ export declare class NetworkError extends BaseError {
25
25
  export declare class InsufficientBalanceError extends BaseError {
26
26
  constructor(message: string, cause?: unknown);
27
27
  }
28
+ export declare class CalculateAmountError extends BaseError {
29
+ constructor(message: string, cause?: unknown);
30
+ }
28
31
  export declare class InsufficientAllowanceError extends BaseError {
29
32
  constructor(message: string, cause?: unknown);
30
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAU,SAAQ,KAAK;aAGP,KAAK,CAAC,EAAE,OAAO;gBADxC,OAAO,EAAE,MAAM,EACU,KAAK,CAAC,EAAE,OAAO,YAAA;IAQnC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQxC,OAAO,CAAC,WAAW;CAapB;AAGD,qBAAa,QAAS,SAAQ,SAAS;gBACzB,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAI7C;AAED,qBAAa,WAAY,SAAQ,SAAS;gBAC5B,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAI7C;AAED,qBAAa,QAAS,SAAQ,SAAS;gBACzB,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAI7C;AAGD,qBAAa,eAAgB,SAAQ,SAAS;gBAChC,OAAO,EAAE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EAAE,OAAO;CAI7C;AAED,qBAAa,YAAa,SAAQ,SAAS;gBAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAI7C;AAED,qBAAa,wBAAyB,SAAQ,SAAS;gBACzC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAI7C;AAED,qBAAa,oBAAqB,SAAQ,SAAS;gBACrC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAI7C;AAED,qBAAa,0BAA2B,SAAQ,SAAS;gBAC3C,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAI7C;AACD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,CAcrD"}
@@ -0,0 +1,15 @@
1
+ export { ChainID, ChainType, SupportedChains } from './chains.js';
2
+ export type { SupportedEvmChain } from './chains.js';
3
+ export type { EVMConfig, SolanaConfig, SuiConfig } from './config.js';
4
+ export { EVMSDK } from './core/evm/sdk.js';
5
+ export { Order } from './core/order.js';
6
+ export { SolanaSDK } from './core/solana/sdk.js';
7
+ export { SuiSDK } from './core/sui/sdk.js';
8
+ export { ValidationError } from './errors/index.js';
9
+ export { calculateAmounts, chainIdToDefiLlamaChainMap, createDefiLlamaCoinKey, getCoinFromResponse, getTokensData, } from './utils/defillama.js';
10
+ export type { DefiLlamaCoinData, DefiLlamaTokensResponse } from './utils/defillama.js';
11
+ export type { CreateOrderParams } from './types/intent.js';
12
+ export { getEvmOrderTypedData, sendEvmRequest } from './core/evm/order-signature.js';
13
+ export { getSolanaOrderInstructions, sendSolanaRequest } from './core/solana/order-instructions.js';
14
+ export { getSuiOrderTransaction, sendSuiRequest } from './core/sui/order-transaction.js';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAClE,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACvF,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export type ApiResponse = {
2
+ success: boolean;
3
+ code: number;
4
+ data?: unknown;
5
+ error?: unknown;
6
+ extra_error_data?: unknown;
7
+ };
8
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/types/api.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC"}
@@ -16,11 +16,11 @@ export type CreateOrderParams = {
16
16
  /** Token address on the destination chain to receive */
17
17
  destinationTokenAddress: string;
18
18
  /** Minimum amount of destination tokens to receive, in smallest units */
19
- destinationTokenMinAmount: bigint;
19
+ destinationTokenMinAmount?: bigint;
20
20
  /** Recipient wallet address on the destination chain */
21
21
  destinationAddress: string;
22
22
  /** Minimum amount of stablecoins in the intermediate swap, in smallest units */
23
- minStablecoinAmount: bigint;
23
+ minStablecoinAmount?: bigint;
24
24
  /** Timestamp (in seconds) after which the order expires */
25
25
  deadline: number;
26
26
  /** Extra Transfers */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../src/types/intent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,8CAA8C;IAC9C,aAAa,EAAE,cAAc,CAAC;IAC9B,sDAAsD;IACtD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,6EAA6E;IAC7E,iBAAiB,EAAE,MAAM,CAAC;IAE1B,6CAA6C;IAC7C,kBAAkB,EAAE,cAAc,CAAC;IACnC,wDAAwD;IACxD,uBAAuB,EAAE,MAAM,CAAC;IAChC,yEAAyE;IACzE,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wDAAwD;IACxD,kBAAkB,EAAE,MAAM,CAAC;IAE3B,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IAEjB,sBAAsB;IACtB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,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B,mEAAmE;IACnE,gBAAgB,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,iBAAiB,EAAE;QACjB,iEAAiE;QACjE,GAAG,CAAC,EAAE,eAAe,CAAC;QACtB,2BAA2B;QAC3B,MAAM,CAAC,EAAE,kBAAkB,CAAC;QAC5B,wBAAwB;QACxB,GAAG,CAAC,EAAE,kBAAkB,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG,eAAe,GAAG,kBAAkB,CAAC;AAEvF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,sDAAsD;IACtD,KAAK,EAAE,KAAK,CAAC;IACb,qDAAqD;IACrD,YAAY,EAAE,iBAAiB,CAAC;CAGjC,CAAC"}
@@ -0,0 +1,37 @@
1
+ export declare enum OrderStatus {
2
+ Auction = "Auction",
3
+ NoBids = "NoBids",
4
+ Executing = "Executing",
5
+ Fulfilled = "Fulfilled",
6
+ Cancelled = "Cancelled",
7
+ Outdated = "Outdated"
8
+ }
9
+ export type UserOrder = {
10
+ orderId: string;
11
+ orderStatus: OrderStatus;
12
+ user: string;
13
+ destinationAddress: string;
14
+ srcChainId: number;
15
+ destChainId: number;
16
+ tokenIn: string;
17
+ tokenOut: string;
18
+ amountIn: string;
19
+ amountOutMin: string;
20
+ minStablecoinsAmount: string;
21
+ lockedStablecoins: string;
22
+ tokensInWereSwappedToStablecoins: false;
23
+ executionDetails: string;
24
+ executionDetailsHash: string;
25
+ deadline: number;
26
+ orderCreationTime: number;
27
+ extraTransfers?: {
28
+ amount: string;
29
+ receiver: string;
30
+ token: string;
31
+ }[];
32
+ nonce?: string;
33
+ orderFulfillmentTimestamp?: number;
34
+ transactionHash?: string;
35
+ amountOut?: string;
36
+ };
37
+ //# sourceMappingURL=user-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-order.d.ts","sourceRoot":"","sources":["../../../src/types/user-order.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IAErB,OAAO,YAAY;IAEnB,MAAM,WAAW;IAEjB,SAAS,cAAc;IAEvB,SAAS,cAAc;IAEvB,SAAS,cAAc;IAEvB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,SAAS,GAAG;IAEtB,OAAO,EAAE,MAAM,CAAC;IAEhB,WAAW,EAAE,WAAW,CAAC;IAGzB,IAAI,EAAE,MAAM,CAAC;IAEb,kBAAkB,EAAE,MAAM,CAAC;IAG3B,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAGpB,OAAO,EAAE,MAAM,CAAC;IAEhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,YAAY,EAAE,MAAM,CAAC;IAErB,oBAAoB,EAAE,MAAM,CAAC;IAE7B,iBAAiB,EAAE,MAAM,CAAC;IAG1B,gCAAgC,EAAE,KAAK,CAAC;IAGxC,gBAAgB,EAAE,MAAM,CAAC;IAEzB,oBAAoB,EAAE,MAAM,CAAC;IAG7B,QAAQ,EAAE,MAAM,CAAC;IAEjB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,cAAc,CAAC,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IAGJ,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { ChainID, type SupportedChain } from '../chains.js';
2
+ /**
3
+ * Response structure from DefiLlama API for token prices
4
+ */
5
+ export interface DefiLlamaTokensResponse {
6
+ coins: Record<string, DefiLlamaCoinData>;
7
+ }
8
+ /**
9
+ * Individual token data from DefiLlama API
10
+ */
11
+ export interface DefiLlamaCoinData {
12
+ /** Number of decimal places for the token */
13
+ decimals: number;
14
+ /** Token symbol (e.g., "ETH", "USDC") */
15
+ symbol: string;
16
+ /** Current price in USD */
17
+ price: number;
18
+ /** Unix timestamp of the price data */
19
+ timestamp: number;
20
+ /** Confidence level of the price data (0-1) */
21
+ confidence: number;
22
+ }
23
+ /**
24
+ * Maps chain IDs to their corresponding chain types
25
+ * Used to determine which SDK implementation to use for a given chain
26
+ */
27
+ export declare const chainIdToDefiLlamaChainMap: {
28
+ readonly 42161: "arbitrum";
29
+ readonly 8453: "base";
30
+ readonly 10: "optimism";
31
+ readonly 7565164: "solana";
32
+ readonly 101: "sui";
33
+ };
34
+ /**
35
+ * Creates DefiLlama coin key from chain ID and token address
36
+ * Format: "chainName:tokenAddress"
37
+ */
38
+ export declare const createDefiLlamaCoinKey: (chainId: ChainID, tokenAddress: string) => string;
39
+ /**
40
+ * Retrieves token data from DefiLlama response by chain and address
41
+ */
42
+ export declare const getCoinFromResponse: (response: DefiLlamaTokensResponse, chainId: ChainID, tokenAddress: string) => DefiLlamaCoinData;
43
+ /**
44
+ * Fetch tokens data for array of coins
45
+ *
46
+ * @param tokens Array of [ChainID, Token Address] tuples
47
+ * @returns Promise resolving to DefiLlama tokens response
48
+ * @throws {CalculateAmountError} If the request fails or response is invalid
49
+ */
50
+ export declare function getTokensData(tokens: Array<[ChainID, string]>): Promise<DefiLlamaTokensResponse>;
51
+ export declare function calculateAmounts({ srcChainId, tokenIn, amountIn, destChainId, tokenOut, }: {
52
+ srcChainId: SupportedChain;
53
+ tokenIn: string;
54
+ amountIn: bigint;
55
+ destChainId: SupportedChain;
56
+ tokenOut: string;
57
+ }): Promise<{
58
+ amountOut: bigint;
59
+ minStablecoinsAmount: bigint;
60
+ }>;
61
+ //# sourceMappingURL=defillama.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defillama.d.ts","sourceRoot":"","sources":["../../../src/utils/defillama.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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parsers {
2
+ function bigIntReplacer(_key: string, value: any): any;
3
+ /**
4
+ * Converts a bigint amount to a floating point USD value
5
+ * @param amount Amount in token's smallest unit
6
+ * @param decimals Number of decimal places for the token
7
+ * @returns USD value as number
8
+ */
9
+ function bigintToFloat(amount: bigint, decimals: number): number;
10
+ /**
11
+ * Converts a floating point USD value to bigint amount
12
+ * Uses viem's parseUnits for consistency and reliability
13
+ * @param usdValue USD value as number
14
+ * @param decimals Number of decimal places for the token
15
+ * @returns Amount in token's smallest unit
16
+ */
17
+ function floatToBigint(usdValue: number, decimals: number): bigint;
18
+ }
19
+ //# sourceMappingURL=parsers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/utils/parsers.ts"],"names":[],"mappings":"AAIA,yBAAiB,OAAO,CAAC;IAEvB,SAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,GAAG,CAE5D;IAED;;;;;OAKG;IACH,SAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAStE;IAED;;;;;;OAMG;IACH,SAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAmBxE;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shogun-sdk/intents-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "Shogun Network Intent-based cross-chain swaps SDK",
6
6
  "author": "Shogun network",
@@ -12,16 +12,16 @@
12
12
  "type": "git",
13
13
  "url": "https://github.com/shogun-network/shogun-sdk.git"
14
14
  },
15
+ "main": "./dist/esm/index.js",
16
+ "types": "./dist/types/index.d.ts",
17
+ "typings": "./dist/types/index.d.ts",
15
18
  "exports": {
16
19
  ".": {
17
- "types": "./dist/_types/index.d.ts",
18
- "default": "./dist/_esm/index.js"
20
+ "types": "./dist/types/index.d.ts",
21
+ "default": "./dist/esm/index.js"
19
22
  },
20
23
  "./package.json": "./package.json"
21
24
  },
22
- "module": "./dist/_esm/index.js",
23
- "types": "./dist/_types/index.d.ts",
24
- "typings": "./dist/_types/index.d.ts",
25
25
  "sideEffects": false,
26
26
  "files": [
27
27
  "dist/**",
@@ -47,14 +47,13 @@
47
47
  "@solana-program/system": "^0.7.0",
48
48
  "@solana-program/token": "^0.5.1",
49
49
  "@solana/kit": "^2.1.0",
50
- "viem": "^2.26.2"
50
+ "viem": "2.31.0"
51
51
  },
52
52
  "scripts": {
53
- "build": "pnpm clean && pnpm build:esm && pnpm build:types",
54
- "build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./dist/_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/_esm/package.json",
55
- "build:types": "tsc --project ./tsconfig.build.json --module esnext --declarationDir ./dist/_types --emitDeclarationOnly --declaration --declarationMap",
53
+ "build": "pnpm clean && pnpm build:esm+types",
54
+ "build:esm+types": "tsc --project ./tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
56
55
  "clean": "rm -rf ./dist",
57
- "check:types": "tsc --noEmit",
56
+ "check:types": "tsc --noEmit --project ./tsconfig.build.json",
58
57
  "lint": "npx eslint --fix --ext .ts ./src",
59
58
  "format": "prettier --write ./src",
60
59
  "pre-publish": "pnpm node ./scripts/prePublish.js"
package/src/chains.ts CHANGED
@@ -15,13 +15,15 @@ export enum ChainType {
15
15
  * EVM chains use their standard chain IDs
16
16
  * Non-EVM chains use custom assigned IDs
17
17
  */
18
- export enum ChainID {
19
- Arbitrum = 42161,
20
- Optimism = 10,
21
- Base = 8453,
22
- Solana = 7565164,
23
- Sui = 101,
24
- }
18
+ export const ChainID = {
19
+ Arbitrum: 42161,
20
+ Optimism: 10,
21
+ Base: 8453,
22
+ Solana: 7565164,
23
+ Sui: 101,
24
+ } as const;
25
+
26
+ export type ChainID = (typeof ChainID)[keyof typeof ChainID];
25
27
 
26
28
  /**
27
29
  * Array of chain IDs that are supported by the SDK
@@ -41,28 +43,19 @@ type UnsupportedChain = Exclude<ChainID, TupleToUnion<typeof SupportedChains>>;
41
43
  */
42
44
  export type SupportedChain = Exclude<ChainID, UnsupportedChain>;
43
45
 
44
- /**
45
- * Type representing EVM chains that are supported by the SDK
46
- * Includes Arbitrum, Base, and Optimism
47
- */
48
- export type SupportedEvmChain = Exclude<ChainID, TupleToUnion<[ChainID.Solana, ChainID.Sui]>>;
49
-
50
- /**
51
- * Type alias for Solana chain ID
52
- */
53
- export type SupportedSolanaChain = ChainID.Solana;
54
-
55
- /**
56
- * Type alias for Sui chain ID
57
- */
58
- export type SupportedSuiChain = ChainID.Sui;
46
+ export type SupportedSolanaChain = 7565164;
47
+ export type SupportedSuiChain = 101;
48
+ export type SupportedEvmChain = Exclude<ChainID, SupportedSolanaChain | SupportedSuiChain>;
59
49
 
60
50
  /**
61
51
  * Type guard that checks if a chain ID is among the supported chains
62
52
  * @param chain - The chain ID to check
63
53
  * @returns Boolean indicating if the chain is supported
64
54
  */
65
- export const isSupportedChain = (chain: unknown): chain is SupportedChain => SupportedChains.includes(chain as number);
55
+ export const isSupportedChain = (chain: unknown): chain is SupportedChain => {
56
+ if (typeof chain !== 'number') return false;
57
+ return (SupportedChains as readonly number[]).includes(chain);
58
+ };
66
59
 
67
60
  /**
68
61
  * Maps chain IDs to their corresponding chain types
package/src/constants.ts CHANGED
@@ -36,13 +36,24 @@ export const SRC_CHAIN_GUARD: Record<SupportedChain, SolanaAddress | Hex> = {
36
36
  // '0xd5057237ba5fe3d9aa00bb2a1555c3d3de77fd5653e72ce70f4aa0561fa9f04d',
37
37
  // }
38
38
 
39
+ export const NATIVE_EVM_ETH_ADDRESSES = [
40
+ '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
41
+ '0x0000000000000000000000000000000000000000',
42
+ ];
43
+
44
+ export function isNativeTokenEvmAddress(tokenAddress: string): boolean {
45
+ const normalizedAddress = tokenAddress.toLowerCase();
46
+
47
+ return NATIVE_EVM_ETH_ADDRESSES.some((addr) => addr.toLowerCase() === normalizedAddress);
48
+ }
49
+
39
50
  export const NATIVE_SOLANA_TOKEN_ADDRESS = address('So11111111111111111111111111111111111111111');
40
51
 
41
52
  export const WRAPPED_SOL_MINT_ADDRESS = address('So11111111111111111111111111111111111111112');
42
53
 
43
54
  export const SUI_PACKAGE_ID = '0x6273e29f803ff5851f89ec17d40d5b1f367476e1677ad0a52ca408f64c4473fe';
44
55
 
45
- // export const TEST_SUI_PACKAGE_ID = '0x6273e29f803ff5851f89ec17d40d5b1f367476e1677ad0a52ca408f64c4473fe'
56
+ export const TEST_SUI_PACKAGE_ID = '0x6273e29f803ff5851f89ec17d40d5b1f367476e1677ad0a52ca408f64c4473fe';
46
57
 
47
58
  export const SUI_GUARD_COLLATERAL_TYPE =
48
59
  '0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC';
@@ -59,3 +70,7 @@ export const AUCTIONEER_URL = 'http://127.0.0.1:8080';
59
70
  export const MAX_UINT_64 = 2n ** 64n - 1n;
60
71
  export const MAX_UINT_128 = 2n ** 128n - 1n;
61
72
  export const MAX_UINT_256 = 2n ** 256n - 1n;
73
+
74
+ // Amount Calculation constants
75
+ export const REDUCTION_FACTOR = 0.8; // 80% of the input value
76
+ export const STABLECOIN_DECIMALS = 6; // USDC/USDT typically use 6 decimals