@shogun-sdk/intents-sdk 1.3.0 → 1.4.1

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 (670) hide show
  1. package/README.md +15 -22
  2. package/dist/index.cjs +9008 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +1654 -0
  5. package/dist/index.d.ts +1654 -0
  6. package/dist/index.js +9257 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +28 -15
  9. package/src/auth/siwe.ts +8 -3
  10. package/src/chains.ts +24 -0
  11. package/src/constants.ts +67 -13
  12. package/src/core/evm/chain-provider.ts +4 -1
  13. package/src/core/evm/connectors/monad.ts +27 -0
  14. package/src/core/evm/cross-chain-limit-order.ts +14 -14
  15. package/src/core/evm/intent-helpers.ts +153 -19
  16. package/src/core/evm/intent-provider.ts +5 -4
  17. package/src/core/evm/permit2.ts +36 -0
  18. package/src/core/evm/single-chain-dca-order.ts +18 -18
  19. package/src/core/evm/single-chain-limit-order.ts +15 -15
  20. package/src/core/evm/types.ts +4 -4
  21. package/src/core/evm/validator.ts +1 -1
  22. package/src/core/orders/api/fetch.ts +33 -16
  23. package/src/core/orders/api/index.ts +41 -8
  24. package/src/core/orders/common.ts +2 -0
  25. package/src/core/orders/cross-chain.ts +15 -8
  26. package/src/core/orders/single-chain.ts +30 -13
  27. package/src/core/sdk.ts +11 -0
  28. package/src/core/solana/cancel-order.ts +4 -2
  29. package/src/core/solana/client.ts +1 -1
  30. package/src/core/solana/dca/cancel-order.ts +2 -1
  31. package/src/core/solana/dca/single-chain-dca-order.ts +19 -22
  32. package/src/core/solana/dca/single-chain-limit-order.ts +20 -22
  33. package/src/core/solana/generated/cross-chain/accounts/dcaOrder.ts +2 -2
  34. package/src/core/solana/generated/cross-chain/accounts/guard.ts +22 -10
  35. package/src/core/solana/generated/cross-chain/errors/sourceChainGuard.ts +37 -33
  36. package/src/core/solana/generated/cross-chain/instructions/cancelDcaOrder.ts +36 -22
  37. package/src/core/solana/generated/cross-chain/instructions/cancelOrder.ts +32 -18
  38. package/src/core/solana/generated/cross-chain/instructions/claimTokensForDcaInterval.ts +396 -0
  39. package/src/core/solana/generated/cross-chain/instructions/index.ts +5 -0
  40. package/src/core/solana/generated/cross-chain/instructions/preStartDcaOrderExecution.ts +504 -0
  41. package/src/core/solana/generated/cross-chain/instructions/setCancelAuthorities.ts +326 -0
  42. package/src/core/solana/generated/cross-chain/instructions/startDcaOrderExecution.ts +440 -0
  43. package/src/core/solana/generated/cross-chain/instructions/startDcaOrderExecutionAfterSwap.ts +322 -0
  44. package/src/core/solana/generated/cross-chain/programs/sourceChainGuard.ts +80 -0
  45. package/src/core/solana/generated/cross-chain/types/cancelAuthoritiesUpdated.ts +40 -0
  46. package/src/core/solana/generated/cross-chain/types/index.ts +1 -0
  47. package/src/core/solana/generated/single-chain/accounts/guard.ts +22 -10
  48. package/src/core/solana/generated/single-chain/errors/singleChainGuard.ts +24 -20
  49. package/src/core/solana/generated/single-chain/instructions/cancelDcaOrder.ts +28 -14
  50. package/src/core/solana/generated/single-chain/instructions/cancelLimitOrder.ts +28 -14
  51. package/src/core/solana/generated/single-chain/instructions/fulfillDcaOrderInterval.ts +30 -4
  52. package/src/core/solana/generated/single-chain/instructions/fulfillLimitOrder.ts +30 -4
  53. package/src/core/solana/generated/single-chain/instructions/index.ts +1 -0
  54. package/src/core/solana/generated/single-chain/instructions/setCancelAuthorities.ts +326 -0
  55. package/src/core/solana/generated/single-chain/programs/singleChainGuard.ts +17 -1
  56. package/src/core/solana/generated/single-chain/types/cancelAuthoritiesUpdated.ts +40 -0
  57. package/src/core/solana/generated/single-chain/types/index.ts +1 -0
  58. package/src/core/solana/intent-helpers.ts +31 -23
  59. package/src/core/solana/sdk.ts +1 -1
  60. package/src/core/solana/utils.ts +10 -1
  61. package/src/core/sui/cross-chain-limit-order.ts +1 -4
  62. package/src/core/sui/intent-helpers.ts +28 -31
  63. package/src/core/sui/order-transaction.ts +1 -1
  64. package/src/core/sui/single-chain-dca-order.ts +19 -32
  65. package/src/core/sui/single-chain-limit-order.ts +19 -34
  66. package/src/index.ts +8 -2
  67. package/src/types/api.ts +22 -2
  68. package/src/types/intent.ts +40 -4
  69. package/src/types/token-list.ts +2 -2
  70. package/src/utils/base-validator.ts +0 -4
  71. package/src/utils/defillama.ts +2 -0
  72. package/src/utils/generate-execution-details-hash.ts +11 -32
  73. package/src/utils/quote/address.ts +4 -0
  74. package/src/utils/quote/aggregator.ts +266 -106
  75. package/src/utils/quote/liquidswap.ts +42 -13
  76. package/src/utils/quote/paraswap.ts +2 -0
  77. package/src/utils/quote/pricing/constants.ts +33 -0
  78. package/src/utils/quote/pricing/decimals.ts +11 -0
  79. package/src/utils/quote/pricing/estimate-amount-out.ts +36 -0
  80. package/src/utils/quote/pricing/expenses.ts +62 -0
  81. package/src/utils/quote/pricing/gas.ts +28 -0
  82. package/src/utils/quote/pumpfun/estimations.ts +206 -0
  83. package/src/utils/quote/pumpfun/estimations_amm.ts +165 -0
  84. package/src/utils/quote/pumpfun/index.ts +266 -0
  85. package/src/utils/quote/pumpfun/models.ts +163 -0
  86. package/src/utils/quote/pumpfun/utils.ts +343 -0
  87. package/src/utils/quote/raydium.ts +350 -9
  88. package/src/utils/quote/relay.ts +99 -0
  89. package/src/utils/quote/stablecoins-tokens.ts +35 -8
  90. package/src/utils/quote/utils.ts +8 -0
  91. package/dist/esm/auth/siwe.js +0 -26
  92. package/dist/esm/auth/siwe.js.map +0 -1
  93. package/dist/esm/chains.js +0 -62
  94. package/dist/esm/chains.js.map +0 -1
  95. package/dist/esm/config.js +0 -2
  96. package/dist/esm/config.js.map +0 -1
  97. package/dist/esm/constants.js +0 -107
  98. package/dist/esm/constants.js.map +0 -1
  99. package/dist/esm/core/evm/abi/erc20.js +0 -313
  100. package/dist/esm/core/evm/abi/erc20.js.map +0 -1
  101. package/dist/esm/core/evm/abi/permit2.js +0 -395
  102. package/dist/esm/core/evm/abi/permit2.js.map +0 -1
  103. package/dist/esm/core/evm/abi/single-chain-guard-limit.js +0 -768
  104. package/dist/esm/core/evm/abi/single-chain-guard-limit.js.map +0 -1
  105. package/dist/esm/core/evm/abi/source-chain-guard.js +0 -1121
  106. package/dist/esm/core/evm/abi/source-chain-guard.js.map +0 -1
  107. package/dist/esm/core/evm/cancel-order.js +0 -130
  108. package/dist/esm/core/evm/cancel-order.js.map +0 -1
  109. package/dist/esm/core/evm/chain-provider.js +0 -118
  110. package/dist/esm/core/evm/chain-provider.js.map +0 -1
  111. package/dist/esm/core/evm/connectors/hyperevm.js +0 -23
  112. package/dist/esm/core/evm/connectors/hyperevm.js.map +0 -1
  113. package/dist/esm/core/evm/cross-chain-limit-order.js +0 -43
  114. package/dist/esm/core/evm/cross-chain-limit-order.js.map +0 -1
  115. package/dist/esm/core/evm/intent-helpers.js +0 -135
  116. package/dist/esm/core/evm/intent-helpers.js.map +0 -1
  117. package/dist/esm/core/evm/intent-provider.js +0 -162
  118. package/dist/esm/core/evm/intent-provider.js.map +0 -1
  119. package/dist/esm/core/evm/order-signature.js +0 -41
  120. package/dist/esm/core/evm/order-signature.js.map +0 -1
  121. package/dist/esm/core/evm/permit2.js +0 -82
  122. package/dist/esm/core/evm/permit2.js.map +0 -1
  123. package/dist/esm/core/evm/sdk.js +0 -175
  124. package/dist/esm/core/evm/sdk.js.map +0 -1
  125. package/dist/esm/core/evm/single-chain-dca-order.js +0 -49
  126. package/dist/esm/core/evm/single-chain-dca-order.js.map +0 -1
  127. package/dist/esm/core/evm/single-chain-limit-order.js +0 -45
  128. package/dist/esm/core/evm/single-chain-limit-order.js.map +0 -1
  129. package/dist/esm/core/evm/types.js +0 -8
  130. package/dist/esm/core/evm/types.js.map +0 -1
  131. package/dist/esm/core/evm/validator.js +0 -111
  132. package/dist/esm/core/evm/validator.js.map +0 -1
  133. package/dist/esm/core/orders/api/fetch.js +0 -17
  134. package/dist/esm/core/orders/api/fetch.js.map +0 -1
  135. package/dist/esm/core/orders/api/index.js +0 -31
  136. package/dist/esm/core/orders/api/index.js.map +0 -1
  137. package/dist/esm/core/orders/common.js +0 -8
  138. package/dist/esm/core/orders/common.js.map +0 -1
  139. package/dist/esm/core/orders/cross-chain.js +0 -311
  140. package/dist/esm/core/orders/cross-chain.js.map +0 -1
  141. package/dist/esm/core/orders/dca-single-chain.js +0 -172
  142. package/dist/esm/core/orders/dca-single-chain.js.map +0 -1
  143. package/dist/esm/core/orders/single-chain.js +0 -197
  144. package/dist/esm/core/orders/single-chain.js.map +0 -1
  145. package/dist/esm/core/sdk.js +0 -86
  146. package/dist/esm/core/sdk.js.map +0 -1
  147. package/dist/esm/core/solana/cancel-order.js +0 -176
  148. package/dist/esm/core/solana/cancel-order.js.map +0 -1
  149. package/dist/esm/core/solana/client.js +0 -19
  150. package/dist/esm/core/solana/client.js.map +0 -1
  151. package/dist/esm/core/solana/dca/cancel-order.js +0 -61
  152. package/dist/esm/core/solana/dca/cancel-order.js.map +0 -1
  153. package/dist/esm/core/solana/dca/create-order.js +0 -82
  154. package/dist/esm/core/solana/dca/create-order.js.map +0 -1
  155. package/dist/esm/core/solana/dca/single-chain-dca-order.js +0 -23
  156. package/dist/esm/core/solana/dca/single-chain-dca-order.js.map +0 -1
  157. package/dist/esm/core/solana/dca/single-chain-limit-order.js +0 -29
  158. package/dist/esm/core/solana/dca/single-chain-limit-order.js.map +0 -1
  159. package/dist/esm/core/solana/generated/cross-chain/accounts/adminSingleton.js +0 -60
  160. package/dist/esm/core/solana/generated/cross-chain/accounts/adminSingleton.js.map +0 -1
  161. package/dist/esm/core/solana/generated/cross-chain/accounts/dcaOrder.js +0 -90
  162. package/dist/esm/core/solana/generated/cross-chain/accounts/dcaOrder.js.map +0 -1
  163. package/dist/esm/core/solana/generated/cross-chain/accounts/guard.js +0 -64
  164. package/dist/esm/core/solana/generated/cross-chain/accounts/guard.js.map +0 -1
  165. package/dist/esm/core/solana/generated/cross-chain/accounts/index.js +0 -12
  166. package/dist/esm/core/solana/generated/cross-chain/accounts/index.js.map +0 -1
  167. package/dist/esm/core/solana/generated/cross-chain/accounts/order.js +0 -78
  168. package/dist/esm/core/solana/generated/cross-chain/accounts/order.js.map +0 -1
  169. package/dist/esm/core/solana/generated/cross-chain/errors/index.js +0 -9
  170. package/dist/esm/core/solana/generated/cross-chain/errors/index.js.map +0 -1
  171. package/dist/esm/core/solana/generated/cross-chain/errors/sourceChainGuard.js +0 -140
  172. package/dist/esm/core/solana/generated/cross-chain/errors/sourceChainGuard.js.map +0 -1
  173. package/dist/esm/core/solana/generated/cross-chain/index.js +0 -13
  174. package/dist/esm/core/solana/generated/cross-chain/index.js.map +0 -1
  175. package/dist/esm/core/solana/generated/cross-chain/instructions/acceptAdmin.js +0 -88
  176. package/dist/esm/core/solana/generated/cross-chain/instructions/acceptAdmin.js.map +0 -1
  177. package/dist/esm/core/solana/generated/cross-chain/instructions/cancelDcaOrder.js +0 -118
  178. package/dist/esm/core/solana/generated/cross-chain/instructions/cancelDcaOrder.js.map +0 -1
  179. package/dist/esm/core/solana/generated/cross-chain/instructions/cancelOrder.js +0 -107
  180. package/dist/esm/core/solana/generated/cross-chain/instructions/cancelOrder.js.map +0 -1
  181. package/dist/esm/core/solana/generated/cross-chain/instructions/claimTokens.js +0 -127
  182. package/dist/esm/core/solana/generated/cross-chain/instructions/claimTokens.js.map +0 -1
  183. package/dist/esm/core/solana/generated/cross-chain/instructions/collectProtocolFees.js +0 -133
  184. package/dist/esm/core/solana/generated/cross-chain/instructions/collectProtocolFees.js.map +0 -1
  185. package/dist/esm/core/solana/generated/cross-chain/instructions/createDcaOrder.js +0 -170
  186. package/dist/esm/core/solana/generated/cross-chain/instructions/createDcaOrder.js.map +0 -1
  187. package/dist/esm/core/solana/generated/cross-chain/instructions/createGuard.js +0 -188
  188. package/dist/esm/core/solana/generated/cross-chain/instructions/createGuard.js.map +0 -1
  189. package/dist/esm/core/solana/generated/cross-chain/instructions/createOrder.js +0 -166
  190. package/dist/esm/core/solana/generated/cross-chain/instructions/createOrder.js.map +0 -1
  191. package/dist/esm/core/solana/generated/cross-chain/instructions/index.js +0 -22
  192. package/dist/esm/core/solana/generated/cross-chain/instructions/index.js.map +0 -1
  193. package/dist/esm/core/solana/generated/cross-chain/instructions/initialize.js +0 -126
  194. package/dist/esm/core/solana/generated/cross-chain/instructions/initialize.js.map +0 -1
  195. package/dist/esm/core/solana/generated/cross-chain/instructions/preStartOrderExecution.js +0 -110
  196. package/dist/esm/core/solana/generated/cross-chain/instructions/preStartOrderExecution.js.map +0 -1
  197. package/dist/esm/core/solana/generated/cross-chain/instructions/setAdmin.js +0 -98
  198. package/dist/esm/core/solana/generated/cross-chain/instructions/setAdmin.js.map +0 -1
  199. package/dist/esm/core/solana/generated/cross-chain/instructions/setAuctioneerPubKey.js +0 -111
  200. package/dist/esm/core/solana/generated/cross-chain/instructions/setAuctioneerPubKey.js.map +0 -1
  201. package/dist/esm/core/solana/generated/cross-chain/instructions/startOrderExecution.js +0 -98
  202. package/dist/esm/core/solana/generated/cross-chain/instructions/startOrderExecution.js.map +0 -1
  203. package/dist/esm/core/solana/generated/cross-chain/instructions/startOrderExecutionAfterSwap.js +0 -106
  204. package/dist/esm/core/solana/generated/cross-chain/instructions/startOrderExecutionAfterSwap.js.map +0 -1
  205. package/dist/esm/core/solana/generated/cross-chain/programs/index.js +0 -9
  206. package/dist/esm/core/solana/generated/cross-chain/programs/index.js.map +0 -1
  207. package/dist/esm/core/solana/generated/cross-chain/programs/sourceChainGuard.js +0 -98
  208. package/dist/esm/core/solana/generated/cross-chain/programs/sourceChainGuard.js.map +0 -1
  209. package/dist/esm/core/solana/generated/cross-chain/shared/index.js +0 -79
  210. package/dist/esm/core/solana/generated/cross-chain/shared/index.js.map +0 -1
  211. package/dist/esm/core/solana/generated/cross-chain/types/adminUpdateStarted.js +0 -18
  212. package/dist/esm/core/solana/generated/cross-chain/types/adminUpdateStarted.js.map +0 -1
  213. package/dist/esm/core/solana/generated/cross-chain/types/adminUpdated.js +0 -18
  214. package/dist/esm/core/solana/generated/cross-chain/types/adminUpdated.js.map +0 -1
  215. package/dist/esm/core/solana/generated/cross-chain/types/auctioneerPubkeyUpdated.js +0 -24
  216. package/dist/esm/core/solana/generated/cross-chain/types/auctioneerPubkeyUpdated.js.map +0 -1
  217. package/dist/esm/core/solana/generated/cross-chain/types/dcaExecutionStarted.js +0 -32
  218. package/dist/esm/core/solana/generated/cross-chain/types/dcaExecutionStarted.js.map +0 -1
  219. package/dist/esm/core/solana/generated/cross-chain/types/dcaOrderCreated.js +0 -42
  220. package/dist/esm/core/solana/generated/cross-chain/types/dcaOrderCreated.js.map +0 -1
  221. package/dist/esm/core/solana/generated/cross-chain/types/dcaOrderIntervalFulfilled.js +0 -26
  222. package/dist/esm/core/solana/generated/cross-chain/types/dcaOrderIntervalFulfilled.js.map +0 -1
  223. package/dist/esm/core/solana/generated/cross-chain/types/dcaTokenInSwapped.js +0 -28
  224. package/dist/esm/core/solana/generated/cross-chain/types/dcaTokenInSwapped.js.map +0 -1
  225. package/dist/esm/core/solana/generated/cross-chain/types/executionStarted.js +0 -30
  226. package/dist/esm/core/solana/generated/cross-chain/types/executionStarted.js.map +0 -1
  227. package/dist/esm/core/solana/generated/cross-chain/types/failedDcaIntervalExecution.js +0 -26
  228. package/dist/esm/core/solana/generated/cross-chain/types/failedDcaIntervalExecution.js.map +0 -1
  229. package/dist/esm/core/solana/generated/cross-chain/types/guardCreated.js +0 -28
  230. package/dist/esm/core/solana/generated/cross-chain/types/guardCreated.js.map +0 -1
  231. package/dist/esm/core/solana/generated/cross-chain/types/index.js +0 -22
  232. package/dist/esm/core/solana/generated/cross-chain/types/index.js.map +0 -1
  233. package/dist/esm/core/solana/generated/cross-chain/types/orderCancelled.js +0 -18
  234. package/dist/esm/core/solana/generated/cross-chain/types/orderCancelled.js.map +0 -1
  235. package/dist/esm/core/solana/generated/cross-chain/types/orderCreated.js +0 -36
  236. package/dist/esm/core/solana/generated/cross-chain/types/orderCreated.js.map +0 -1
  237. package/dist/esm/core/solana/generated/cross-chain/types/orderFulfilled.js +0 -18
  238. package/dist/esm/core/solana/generated/cross-chain/types/orderFulfilled.js.map +0 -1
  239. package/dist/esm/core/solana/generated/cross-chain/types/tokenInSwapped.js +0 -26
  240. package/dist/esm/core/solana/generated/cross-chain/types/tokenInSwapped.js.map +0 -1
  241. package/dist/esm/core/solana/generated/single-chain/accounts/adminSingleton.js +0 -60
  242. package/dist/esm/core/solana/generated/single-chain/accounts/adminSingleton.js.map +0 -1
  243. package/dist/esm/core/solana/generated/single-chain/accounts/dcaOrder.js +0 -75
  244. package/dist/esm/core/solana/generated/single-chain/accounts/dcaOrder.js.map +0 -1
  245. package/dist/esm/core/solana/generated/single-chain/accounts/guard.js +0 -62
  246. package/dist/esm/core/solana/generated/single-chain/accounts/guard.js.map +0 -1
  247. package/dist/esm/core/solana/generated/single-chain/accounts/index.js +0 -12
  248. package/dist/esm/core/solana/generated/single-chain/accounts/index.js.map +0 -1
  249. package/dist/esm/core/solana/generated/single-chain/accounts/limitOrder.js +0 -65
  250. package/dist/esm/core/solana/generated/single-chain/accounts/limitOrder.js.map +0 -1
  251. package/dist/esm/core/solana/generated/single-chain/errors/index.js +0 -9
  252. package/dist/esm/core/solana/generated/single-chain/errors/index.js.map +0 -1
  253. package/dist/esm/core/solana/generated/single-chain/errors/singleChainGuard.js +0 -101
  254. package/dist/esm/core/solana/generated/single-chain/errors/singleChainGuard.js.map +0 -1
  255. package/dist/esm/core/solana/generated/single-chain/index.js +0 -13
  256. package/dist/esm/core/solana/generated/single-chain/index.js.map +0 -1
  257. package/dist/esm/core/solana/generated/single-chain/instructions/acceptAdmin.js +0 -88
  258. package/dist/esm/core/solana/generated/single-chain/instructions/acceptAdmin.js.map +0 -1
  259. package/dist/esm/core/solana/generated/single-chain/instructions/cancelDcaOrder.js +0 -84
  260. package/dist/esm/core/solana/generated/single-chain/instructions/cancelDcaOrder.js.map +0 -1
  261. package/dist/esm/core/solana/generated/single-chain/instructions/cancelLimitOrder.js +0 -84
  262. package/dist/esm/core/solana/generated/single-chain/instructions/cancelLimitOrder.js.map +0 -1
  263. package/dist/esm/core/solana/generated/single-chain/instructions/collectProtocolFees.js +0 -121
  264. package/dist/esm/core/solana/generated/single-chain/instructions/collectProtocolFees.js.map +0 -1
  265. package/dist/esm/core/solana/generated/single-chain/instructions/createDcaOrder.js +0 -172
  266. package/dist/esm/core/solana/generated/single-chain/instructions/createDcaOrder.js.map +0 -1
  267. package/dist/esm/core/solana/generated/single-chain/instructions/createGuard.js +0 -163
  268. package/dist/esm/core/solana/generated/single-chain/instructions/createGuard.js.map +0 -1
  269. package/dist/esm/core/solana/generated/single-chain/instructions/createLimitOrder.js +0 -168
  270. package/dist/esm/core/solana/generated/single-chain/instructions/createLimitOrder.js.map +0 -1
  271. package/dist/esm/core/solana/generated/single-chain/instructions/fulfillDcaOrderInterval.js +0 -146
  272. package/dist/esm/core/solana/generated/single-chain/instructions/fulfillDcaOrderInterval.js.map +0 -1
  273. package/dist/esm/core/solana/generated/single-chain/instructions/fulfillLimitOrder.js +0 -146
  274. package/dist/esm/core/solana/generated/single-chain/instructions/fulfillLimitOrder.js.map +0 -1
  275. package/dist/esm/core/solana/generated/single-chain/instructions/index.js +0 -20
  276. package/dist/esm/core/solana/generated/single-chain/instructions/index.js.map +0 -1
  277. package/dist/esm/core/solana/generated/single-chain/instructions/initialize.js +0 -126
  278. package/dist/esm/core/solana/generated/single-chain/instructions/initialize.js.map +0 -1
  279. package/dist/esm/core/solana/generated/single-chain/instructions/setAdmin.js +0 -98
  280. package/dist/esm/core/solana/generated/single-chain/instructions/setAdmin.js.map +0 -1
  281. package/dist/esm/core/solana/generated/single-chain/instructions/setAuctioneerPubKey.js +0 -111
  282. package/dist/esm/core/solana/generated/single-chain/instructions/setAuctioneerPubKey.js.map +0 -1
  283. package/dist/esm/core/solana/generated/single-chain/programs/index.js +0 -9
  284. package/dist/esm/core/solana/generated/single-chain/programs/index.js.map +0 -1
  285. package/dist/esm/core/solana/generated/single-chain/programs/singleChainGuard.js +0 -90
  286. package/dist/esm/core/solana/generated/single-chain/programs/singleChainGuard.js.map +0 -1
  287. package/dist/esm/core/solana/generated/single-chain/shared/index.js +0 -79
  288. package/dist/esm/core/solana/generated/single-chain/shared/index.js.map +0 -1
  289. package/dist/esm/core/solana/generated/single-chain/types/adminUpdateStarted.js +0 -18
  290. package/dist/esm/core/solana/generated/single-chain/types/adminUpdateStarted.js.map +0 -1
  291. package/dist/esm/core/solana/generated/single-chain/types/adminUpdated.js +0 -18
  292. package/dist/esm/core/solana/generated/single-chain/types/adminUpdated.js.map +0 -1
  293. package/dist/esm/core/solana/generated/single-chain/types/auctioneerPubkeyUpdated.js +0 -24
  294. package/dist/esm/core/solana/generated/single-chain/types/auctioneerPubkeyUpdated.js.map +0 -1
  295. package/dist/esm/core/solana/generated/single-chain/types/dcaOrderCreated.js +0 -42
  296. package/dist/esm/core/solana/generated/single-chain/types/dcaOrderCreated.js.map +0 -1
  297. package/dist/esm/core/solana/generated/single-chain/types/dcaOrderFulfilled.js +0 -18
  298. package/dist/esm/core/solana/generated/single-chain/types/dcaOrderFulfilled.js.map +0 -1
  299. package/dist/esm/core/solana/generated/single-chain/types/dcaOrderIntervalFulfilled.js +0 -30
  300. package/dist/esm/core/solana/generated/single-chain/types/dcaOrderIntervalFulfilled.js.map +0 -1
  301. package/dist/esm/core/solana/generated/single-chain/types/guardCreated.js +0 -26
  302. package/dist/esm/core/solana/generated/single-chain/types/guardCreated.js.map +0 -1
  303. package/dist/esm/core/solana/generated/single-chain/types/index.js +0 -18
  304. package/dist/esm/core/solana/generated/single-chain/types/index.js.map +0 -1
  305. package/dist/esm/core/solana/generated/single-chain/types/limitOrderCreated.js +0 -36
  306. package/dist/esm/core/solana/generated/single-chain/types/limitOrderCreated.js.map +0 -1
  307. package/dist/esm/core/solana/generated/single-chain/types/limitOrderFulfilled.js +0 -24
  308. package/dist/esm/core/solana/generated/single-chain/types/limitOrderFulfilled.js.map +0 -1
  309. package/dist/esm/core/solana/generated/single-chain/types/orderCancelled.js +0 -18
  310. package/dist/esm/core/solana/generated/single-chain/types/orderCancelled.js.map +0 -1
  311. package/dist/esm/core/solana/inspect.js +0 -43
  312. package/dist/esm/core/solana/inspect.js.map +0 -1
  313. package/dist/esm/core/solana/intent-helpers.js +0 -180
  314. package/dist/esm/core/solana/intent-helpers.js.map +0 -1
  315. package/dist/esm/core/solana/order-instructions.js +0 -163
  316. package/dist/esm/core/solana/order-instructions.js.map +0 -1
  317. package/dist/esm/core/solana/sdk.js +0 -220
  318. package/dist/esm/core/solana/sdk.js.map +0 -1
  319. package/dist/esm/core/solana/utils.js +0 -19
  320. package/dist/esm/core/solana/utils.js.map +0 -1
  321. package/dist/esm/core/solana/validator.js +0 -28
  322. package/dist/esm/core/solana/validator.js.map +0 -1
  323. package/dist/esm/core/sui/cancel.js +0 -36
  324. package/dist/esm/core/sui/cancel.js.map +0 -1
  325. package/dist/esm/core/sui/client.js +0 -3
  326. package/dist/esm/core/sui/client.js.map +0 -1
  327. package/dist/esm/core/sui/cross-chain-limit-order.js +0 -9
  328. package/dist/esm/core/sui/cross-chain-limit-order.js.map +0 -1
  329. package/dist/esm/core/sui/intent-helpers.js +0 -140
  330. package/dist/esm/core/sui/intent-helpers.js.map +0 -1
  331. package/dist/esm/core/sui/order-transaction.js +0 -58
  332. package/dist/esm/core/sui/order-transaction.js.map +0 -1
  333. package/dist/esm/core/sui/sdk.js +0 -119
  334. package/dist/esm/core/sui/sdk.js.map +0 -1
  335. package/dist/esm/core/sui/single-chain-dca-order.js +0 -99
  336. package/dist/esm/core/sui/single-chain-dca-order.js.map +0 -1
  337. package/dist/esm/core/sui/single-chain-limit-order.js +0 -103
  338. package/dist/esm/core/sui/single-chain-limit-order.js.map +0 -1
  339. package/dist/esm/core/sui/validator.js +0 -31
  340. package/dist/esm/core/sui/validator.js.map +0 -1
  341. package/dist/esm/errors/index.js +0 -68
  342. package/dist/esm/errors/index.js.map +0 -1
  343. package/dist/esm/index.js +0 -41
  344. package/dist/esm/index.js.map +0 -1
  345. package/dist/esm/types/api.js +0 -7
  346. package/dist/esm/types/api.js.map +0 -1
  347. package/dist/esm/types/intent.js +0 -2
  348. package/dist/esm/types/intent.js.map +0 -1
  349. package/dist/esm/types/token-list.js +0 -2
  350. package/dist/esm/types/token-list.js.map +0 -1
  351. package/dist/esm/utils/base-validator.js +0 -91
  352. package/dist/esm/utils/base-validator.js.map +0 -1
  353. package/dist/esm/utils/defillama.js +0 -104
  354. package/dist/esm/utils/defillama.js.map +0 -1
  355. package/dist/esm/utils/generate-execution-details-hash.js +0 -15
  356. package/dist/esm/utils/generate-execution-details-hash.js.map +0 -1
  357. package/dist/esm/utils/logger.js +0 -109
  358. package/dist/esm/utils/logger.js.map +0 -1
  359. package/dist/esm/utils/order-validator.js +0 -112
  360. package/dist/esm/utils/order-validator.js.map +0 -1
  361. package/dist/esm/utils/parsers.js +0 -28
  362. package/dist/esm/utils/parsers.js.map +0 -1
  363. package/dist/esm/utils/quote/aftermath.js +0 -15
  364. package/dist/esm/utils/quote/aftermath.js.map +0 -1
  365. package/dist/esm/utils/quote/aggregator.js +0 -329
  366. package/dist/esm/utils/quote/aggregator.js.map +0 -1
  367. package/dist/esm/utils/quote/jupiter.js +0 -31
  368. package/dist/esm/utils/quote/jupiter.js.map +0 -1
  369. package/dist/esm/utils/quote/liquidswap.js +0 -22
  370. package/dist/esm/utils/quote/liquidswap.js.map +0 -1
  371. package/dist/esm/utils/quote/paraswap.js +0 -67
  372. package/dist/esm/utils/quote/paraswap.js.map +0 -1
  373. package/dist/esm/utils/quote/raydium.js +0 -82
  374. package/dist/esm/utils/quote/raydium.js.map +0 -1
  375. package/dist/esm/utils/quote/stablecoins-tokens.js +0 -13
  376. package/dist/esm/utils/quote/stablecoins-tokens.js.map +0 -1
  377. package/dist/esm/utils/tokens/index.js +0 -37
  378. package/dist/esm/utils/tokens/index.js.map +0 -1
  379. package/dist/esm/utils/type-utils.js +0 -2
  380. package/dist/esm/utils/type-utils.js.map +0 -1
  381. package/dist/types/auth/siwe.d.ts +0 -13
  382. package/dist/types/auth/siwe.d.ts.map +0 -1
  383. package/dist/types/chains.d.ts +0 -62
  384. package/dist/types/chains.d.ts.map +0 -1
  385. package/dist/types/config.d.ts +0 -21
  386. package/dist/types/config.d.ts.map +0 -1
  387. package/dist/types/constants.d.ts +0 -44
  388. package/dist/types/constants.d.ts.map +0 -1
  389. package/dist/types/core/evm/abi/erc20.d.ts +0 -240
  390. package/dist/types/core/evm/abi/erc20.d.ts.map +0 -1
  391. package/dist/types/core/evm/abi/permit2.d.ts +0 -304
  392. package/dist/types/core/evm/abi/permit2.d.ts.map +0 -1
  393. package/dist/types/core/evm/abi/single-chain-guard-limit.d.ts +0 -596
  394. package/dist/types/core/evm/abi/single-chain-guard-limit.d.ts.map +0 -1
  395. package/dist/types/core/evm/abi/source-chain-guard.d.ts +0 -877
  396. package/dist/types/core/evm/abi/source-chain-guard.d.ts.map +0 -1
  397. package/dist/types/core/evm/cancel-order.d.ts +0 -28
  398. package/dist/types/core/evm/cancel-order.d.ts.map +0 -1
  399. package/dist/types/core/evm/chain-provider.d.ts +0 -62338
  400. package/dist/types/core/evm/chain-provider.d.ts.map +0 -1
  401. package/dist/types/core/evm/connectors/hyperevm.d.ts +0 -38
  402. package/dist/types/core/evm/connectors/hyperevm.d.ts.map +0 -1
  403. package/dist/types/core/evm/cross-chain-limit-order.d.ts +0 -22
  404. package/dist/types/core/evm/cross-chain-limit-order.d.ts.map +0 -1
  405. package/dist/types/core/evm/intent-helpers.d.ts +0 -105
  406. package/dist/types/core/evm/intent-helpers.d.ts.map +0 -1
  407. package/dist/types/core/evm/intent-provider.d.ts +0 -19
  408. package/dist/types/core/evm/intent-provider.d.ts.map +0 -1
  409. package/dist/types/core/evm/order-signature.d.ts +0 -22
  410. package/dist/types/core/evm/order-signature.d.ts.map +0 -1
  411. package/dist/types/core/evm/permit2.d.ts +0 -261
  412. package/dist/types/core/evm/permit2.d.ts.map +0 -1
  413. package/dist/types/core/evm/sdk.d.ts +0 -63
  414. package/dist/types/core/evm/sdk.d.ts.map +0 -1
  415. package/dist/types/core/evm/single-chain-dca-order.d.ts +0 -26
  416. package/dist/types/core/evm/single-chain-dca-order.d.ts.map +0 -1
  417. package/dist/types/core/evm/single-chain-limit-order.d.ts +0 -23
  418. package/dist/types/core/evm/single-chain-limit-order.d.ts.map +0 -1
  419. package/dist/types/core/evm/types.d.ts +0 -8
  420. package/dist/types/core/evm/types.d.ts.map +0 -1
  421. package/dist/types/core/evm/validator.d.ts +0 -23
  422. package/dist/types/core/evm/validator.d.ts.map +0 -1
  423. package/dist/types/core/orders/api/fetch.d.ts +0 -3
  424. package/dist/types/core/orders/api/fetch.d.ts.map +0 -1
  425. package/dist/types/core/orders/api/index.d.ts +0 -8
  426. package/dist/types/core/orders/api/index.d.ts.map +0 -1
  427. package/dist/types/core/orders/common.d.ts +0 -12
  428. package/dist/types/core/orders/common.d.ts.map +0 -1
  429. package/dist/types/core/orders/cross-chain.d.ts +0 -123
  430. package/dist/types/core/orders/cross-chain.d.ts.map +0 -1
  431. package/dist/types/core/orders/dca-single-chain.d.ts +0 -47
  432. package/dist/types/core/orders/dca-single-chain.d.ts.map +0 -1
  433. package/dist/types/core/orders/single-chain.d.ts +0 -47
  434. package/dist/types/core/orders/single-chain.d.ts.map +0 -1
  435. package/dist/types/core/sdk.d.ts +0 -30
  436. package/dist/types/core/sdk.d.ts.map +0 -1
  437. package/dist/types/core/solana/cancel-order.d.ts +0 -18
  438. package/dist/types/core/solana/cancel-order.d.ts.map +0 -1
  439. package/dist/types/core/solana/client.d.ts +0 -11
  440. package/dist/types/core/solana/client.d.ts.map +0 -1
  441. package/dist/types/core/solana/dca/cancel-order.d.ts +0 -5
  442. package/dist/types/core/solana/dca/cancel-order.d.ts.map +0 -1
  443. package/dist/types/core/solana/dca/create-order.d.ts +0 -8
  444. package/dist/types/core/solana/dca/create-order.d.ts.map +0 -1
  445. package/dist/types/core/solana/dca/single-chain-dca-order.d.ts +0 -14
  446. package/dist/types/core/solana/dca/single-chain-dca-order.d.ts.map +0 -1
  447. package/dist/types/core/solana/dca/single-chain-limit-order.d.ts +0 -19
  448. package/dist/types/core/solana/dca/single-chain-limit-order.d.ts.map +0 -1
  449. package/dist/types/core/solana/generated/cross-chain/accounts/adminSingleton.d.ts +0 -40
  450. package/dist/types/core/solana/generated/cross-chain/accounts/adminSingleton.d.ts.map +0 -1
  451. package/dist/types/core/solana/generated/cross-chain/accounts/dcaOrder.d.ts +0 -110
  452. package/dist/types/core/solana/generated/cross-chain/accounts/dcaOrder.d.ts.map +0 -1
  453. package/dist/types/core/solana/generated/cross-chain/accounts/guard.d.ts +0 -52
  454. package/dist/types/core/solana/generated/cross-chain/accounts/guard.d.ts.map +0 -1
  455. package/dist/types/core/solana/generated/cross-chain/accounts/index.d.ts +0 -12
  456. package/dist/types/core/solana/generated/cross-chain/accounts/index.d.ts.map +0 -1
  457. package/dist/types/core/solana/generated/cross-chain/accounts/order.d.ts +0 -92
  458. package/dist/types/core/solana/generated/cross-chain/accounts/order.d.ts.map +0 -1
  459. package/dist/types/core/solana/generated/cross-chain/errors/index.d.ts +0 -9
  460. package/dist/types/core/solana/generated/cross-chain/errors/index.d.ts.map +0 -1
  461. package/dist/types/core/solana/generated/cross-chain/errors/sourceChainGuard.d.ts +0 -97
  462. package/dist/types/core/solana/generated/cross-chain/errors/sourceChainGuard.d.ts.map +0 -1
  463. package/dist/types/core/solana/generated/cross-chain/index.d.ts +0 -13
  464. package/dist/types/core/solana/generated/cross-chain/index.d.ts.map +0 -1
  465. package/dist/types/core/solana/generated/cross-chain/instructions/acceptAdmin.d.ts +0 -56
  466. package/dist/types/core/solana/generated/cross-chain/instructions/acceptAdmin.d.ts.map +0 -1
  467. package/dist/types/core/solana/generated/cross-chain/instructions/cancelDcaOrder.d.ts +0 -124
  468. package/dist/types/core/solana/generated/cross-chain/instructions/cancelDcaOrder.d.ts.map +0 -1
  469. package/dist/types/core/solana/generated/cross-chain/instructions/cancelOrder.d.ts +0 -108
  470. package/dist/types/core/solana/generated/cross-chain/instructions/cancelOrder.d.ts.map +0 -1
  471. package/dist/types/core/solana/generated/cross-chain/instructions/claimTokens.d.ts +0 -131
  472. package/dist/types/core/solana/generated/cross-chain/instructions/claimTokens.d.ts.map +0 -1
  473. package/dist/types/core/solana/generated/cross-chain/instructions/collectProtocolFees.d.ts +0 -91
  474. package/dist/types/core/solana/generated/cross-chain/instructions/collectProtocolFees.d.ts.map +0 -1
  475. package/dist/types/core/solana/generated/cross-chain/instructions/createDcaOrder.d.ts +0 -130
  476. package/dist/types/core/solana/generated/cross-chain/instructions/createDcaOrder.d.ts.map +0 -1
  477. package/dist/types/core/solana/generated/cross-chain/instructions/createGuard.d.ts +0 -137
  478. package/dist/types/core/solana/generated/cross-chain/instructions/createGuard.d.ts.map +0 -1
  479. package/dist/types/core/solana/generated/cross-chain/instructions/createOrder.d.ts +0 -122
  480. package/dist/types/core/solana/generated/cross-chain/instructions/createOrder.d.ts.map +0 -1
  481. package/dist/types/core/solana/generated/cross-chain/instructions/index.d.ts +0 -22
  482. package/dist/types/core/solana/generated/cross-chain/instructions/index.d.ts.map +0 -1
  483. package/dist/types/core/solana/generated/cross-chain/instructions/initialize.d.ts +0 -86
  484. package/dist/types/core/solana/generated/cross-chain/instructions/initialize.d.ts.map +0 -1
  485. package/dist/types/core/solana/generated/cross-chain/instructions/preStartOrderExecution.d.ts +0 -105
  486. package/dist/types/core/solana/generated/cross-chain/instructions/preStartOrderExecution.d.ts.map +0 -1
  487. package/dist/types/core/solana/generated/cross-chain/instructions/setAdmin.d.ts +0 -61
  488. package/dist/types/core/solana/generated/cross-chain/instructions/setAdmin.d.ts.map +0 -1
  489. package/dist/types/core/solana/generated/cross-chain/instructions/setAuctioneerPubKey.d.ts +0 -68
  490. package/dist/types/core/solana/generated/cross-chain/instructions/setAuctioneerPubKey.d.ts.map +0 -1
  491. package/dist/types/core/solana/generated/cross-chain/instructions/startOrderExecution.d.ts +0 -85
  492. package/dist/types/core/solana/generated/cross-chain/instructions/startOrderExecution.d.ts.map +0 -1
  493. package/dist/types/core/solana/generated/cross-chain/instructions/startOrderExecutionAfterSwap.d.ts +0 -95
  494. package/dist/types/core/solana/generated/cross-chain/instructions/startOrderExecutionAfterSwap.d.ts.map +0 -1
  495. package/dist/types/core/solana/generated/cross-chain/programs/index.d.ts +0 -9
  496. package/dist/types/core/solana/generated/cross-chain/programs/index.d.ts.map +0 -1
  497. package/dist/types/core/solana/generated/cross-chain/programs/sourceChainGuard.d.ts +0 -69
  498. package/dist/types/core/solana/generated/cross-chain/programs/sourceChainGuard.d.ts.map +0 -1
  499. package/dist/types/core/solana/generated/cross-chain/shared/index.d.ts +0 -52
  500. package/dist/types/core/solana/generated/cross-chain/shared/index.d.ts.map +0 -1
  501. package/dist/types/core/solana/generated/cross-chain/types/adminUpdateStarted.d.ts +0 -16
  502. package/dist/types/core/solana/generated/cross-chain/types/adminUpdateStarted.d.ts.map +0 -1
  503. package/dist/types/core/solana/generated/cross-chain/types/adminUpdated.d.ts +0 -16
  504. package/dist/types/core/solana/generated/cross-chain/types/adminUpdated.d.ts.map +0 -1
  505. package/dist/types/core/solana/generated/cross-chain/types/auctioneerPubkeyUpdated.d.ts +0 -17
  506. package/dist/types/core/solana/generated/cross-chain/types/auctioneerPubkeyUpdated.d.ts.map +0 -1
  507. package/dist/types/core/solana/generated/cross-chain/types/dcaExecutionStarted.d.ts +0 -28
  508. package/dist/types/core/solana/generated/cross-chain/types/dcaExecutionStarted.d.ts.map +0 -1
  509. package/dist/types/core/solana/generated/cross-chain/types/dcaOrderCreated.d.ts +0 -38
  510. package/dist/types/core/solana/generated/cross-chain/types/dcaOrderCreated.d.ts.map +0 -1
  511. package/dist/types/core/solana/generated/cross-chain/types/dcaOrderIntervalFulfilled.d.ts +0 -18
  512. package/dist/types/core/solana/generated/cross-chain/types/dcaOrderIntervalFulfilled.d.ts.map +0 -1
  513. package/dist/types/core/solana/generated/cross-chain/types/dcaTokenInSwapped.d.ts +0 -24
  514. package/dist/types/core/solana/generated/cross-chain/types/dcaTokenInSwapped.d.ts.map +0 -1
  515. package/dist/types/core/solana/generated/cross-chain/types/executionStarted.d.ts +0 -26
  516. package/dist/types/core/solana/generated/cross-chain/types/executionStarted.d.ts.map +0 -1
  517. package/dist/types/core/solana/generated/cross-chain/types/failedDcaIntervalExecution.d.ts +0 -18
  518. package/dist/types/core/solana/generated/cross-chain/types/failedDcaIntervalExecution.d.ts.map +0 -1
  519. package/dist/types/core/solana/generated/cross-chain/types/guardCreated.d.ts +0 -19
  520. package/dist/types/core/solana/generated/cross-chain/types/guardCreated.d.ts.map +0 -1
  521. package/dist/types/core/solana/generated/cross-chain/types/index.d.ts +0 -22
  522. package/dist/types/core/solana/generated/cross-chain/types/index.d.ts.map +0 -1
  523. package/dist/types/core/solana/generated/cross-chain/types/orderCancelled.d.ts +0 -16
  524. package/dist/types/core/solana/generated/cross-chain/types/orderCancelled.d.ts.map +0 -1
  525. package/dist/types/core/solana/generated/cross-chain/types/orderCreated.d.ts +0 -32
  526. package/dist/types/core/solana/generated/cross-chain/types/orderCreated.d.ts.map +0 -1
  527. package/dist/types/core/solana/generated/cross-chain/types/orderFulfilled.d.ts +0 -16
  528. package/dist/types/core/solana/generated/cross-chain/types/orderFulfilled.d.ts.map +0 -1
  529. package/dist/types/core/solana/generated/cross-chain/types/tokenInSwapped.d.ts +0 -22
  530. package/dist/types/core/solana/generated/cross-chain/types/tokenInSwapped.d.ts.map +0 -1
  531. package/dist/types/core/solana/generated/single-chain/accounts/adminSingleton.d.ts +0 -40
  532. package/dist/types/core/solana/generated/single-chain/accounts/adminSingleton.d.ts.map +0 -1
  533. package/dist/types/core/solana/generated/single-chain/accounts/dcaOrder.d.ts +0 -99
  534. package/dist/types/core/solana/generated/single-chain/accounts/dcaOrder.d.ts.map +0 -1
  535. package/dist/types/core/solana/generated/single-chain/accounts/guard.d.ts +0 -48
  536. package/dist/types/core/solana/generated/single-chain/accounts/guard.d.ts.map +0 -1
  537. package/dist/types/core/solana/generated/single-chain/accounts/index.d.ts +0 -12
  538. package/dist/types/core/solana/generated/single-chain/accounts/index.d.ts.map +0 -1
  539. package/dist/types/core/solana/generated/single-chain/accounts/limitOrder.d.ts +0 -79
  540. package/dist/types/core/solana/generated/single-chain/accounts/limitOrder.d.ts.map +0 -1
  541. package/dist/types/core/solana/generated/single-chain/errors/index.d.ts +0 -9
  542. package/dist/types/core/solana/generated/single-chain/errors/index.d.ts.map +0 -1
  543. package/dist/types/core/solana/generated/single-chain/errors/singleChainGuard.d.ts +0 -71
  544. package/dist/types/core/solana/generated/single-chain/errors/singleChainGuard.d.ts.map +0 -1
  545. package/dist/types/core/solana/generated/single-chain/index.d.ts +0 -13
  546. package/dist/types/core/solana/generated/single-chain/index.d.ts.map +0 -1
  547. package/dist/types/core/solana/generated/single-chain/instructions/acceptAdmin.d.ts +0 -56
  548. package/dist/types/core/solana/generated/single-chain/instructions/acceptAdmin.d.ts.map +0 -1
  549. package/dist/types/core/solana/generated/single-chain/instructions/cancelDcaOrder.d.ts +0 -72
  550. package/dist/types/core/solana/generated/single-chain/instructions/cancelDcaOrder.d.ts.map +0 -1
  551. package/dist/types/core/solana/generated/single-chain/instructions/cancelLimitOrder.d.ts +0 -72
  552. package/dist/types/core/solana/generated/single-chain/instructions/cancelLimitOrder.d.ts.map +0 -1
  553. package/dist/types/core/solana/generated/single-chain/instructions/collectProtocolFees.d.ts +0 -91
  554. package/dist/types/core/solana/generated/single-chain/instructions/collectProtocolFees.d.ts.map +0 -1
  555. package/dist/types/core/solana/generated/single-chain/instructions/createDcaOrder.d.ts +0 -134
  556. package/dist/types/core/solana/generated/single-chain/instructions/createDcaOrder.d.ts.map +0 -1
  557. package/dist/types/core/solana/generated/single-chain/instructions/createGuard.d.ts +0 -107
  558. package/dist/types/core/solana/generated/single-chain/instructions/createGuard.d.ts.map +0 -1
  559. package/dist/types/core/solana/generated/single-chain/instructions/createLimitOrder.d.ts +0 -126
  560. package/dist/types/core/solana/generated/single-chain/instructions/createLimitOrder.d.ts.map +0 -1
  561. package/dist/types/core/solana/generated/single-chain/instructions/fulfillDcaOrderInterval.d.ts +0 -179
  562. package/dist/types/core/solana/generated/single-chain/instructions/fulfillDcaOrderInterval.d.ts.map +0 -1
  563. package/dist/types/core/solana/generated/single-chain/instructions/fulfillLimitOrder.d.ts +0 -179
  564. package/dist/types/core/solana/generated/single-chain/instructions/fulfillLimitOrder.d.ts.map +0 -1
  565. package/dist/types/core/solana/generated/single-chain/instructions/index.d.ts +0 -20
  566. package/dist/types/core/solana/generated/single-chain/instructions/index.d.ts.map +0 -1
  567. package/dist/types/core/solana/generated/single-chain/instructions/initialize.d.ts +0 -86
  568. package/dist/types/core/solana/generated/single-chain/instructions/initialize.d.ts.map +0 -1
  569. package/dist/types/core/solana/generated/single-chain/instructions/setAdmin.d.ts +0 -61
  570. package/dist/types/core/solana/generated/single-chain/instructions/setAdmin.d.ts.map +0 -1
  571. package/dist/types/core/solana/generated/single-chain/instructions/setAuctioneerPubKey.d.ts +0 -68
  572. package/dist/types/core/solana/generated/single-chain/instructions/setAuctioneerPubKey.d.ts.map +0 -1
  573. package/dist/types/core/solana/generated/single-chain/programs/index.d.ts +0 -9
  574. package/dist/types/core/solana/generated/single-chain/programs/index.d.ts.map +0 -1
  575. package/dist/types/core/solana/generated/single-chain/programs/singleChainGuard.d.ts +0 -63
  576. package/dist/types/core/solana/generated/single-chain/programs/singleChainGuard.d.ts.map +0 -1
  577. package/dist/types/core/solana/generated/single-chain/shared/index.d.ts +0 -52
  578. package/dist/types/core/solana/generated/single-chain/shared/index.d.ts.map +0 -1
  579. package/dist/types/core/solana/generated/single-chain/types/adminUpdateStarted.d.ts +0 -16
  580. package/dist/types/core/solana/generated/single-chain/types/adminUpdateStarted.d.ts.map +0 -1
  581. package/dist/types/core/solana/generated/single-chain/types/adminUpdated.d.ts +0 -16
  582. package/dist/types/core/solana/generated/single-chain/types/adminUpdated.d.ts.map +0 -1
  583. package/dist/types/core/solana/generated/single-chain/types/auctioneerPubkeyUpdated.d.ts +0 -17
  584. package/dist/types/core/solana/generated/single-chain/types/auctioneerPubkeyUpdated.d.ts.map +0 -1
  585. package/dist/types/core/solana/generated/single-chain/types/dcaOrderCreated.d.ts +0 -38
  586. package/dist/types/core/solana/generated/single-chain/types/dcaOrderCreated.d.ts.map +0 -1
  587. package/dist/types/core/solana/generated/single-chain/types/dcaOrderFulfilled.d.ts +0 -16
  588. package/dist/types/core/solana/generated/single-chain/types/dcaOrderFulfilled.d.ts.map +0 -1
  589. package/dist/types/core/solana/generated/single-chain/types/dcaOrderIntervalFulfilled.d.ts +0 -26
  590. package/dist/types/core/solana/generated/single-chain/types/dcaOrderIntervalFulfilled.d.ts.map +0 -1
  591. package/dist/types/core/solana/generated/single-chain/types/guardCreated.d.ts +0 -18
  592. package/dist/types/core/solana/generated/single-chain/types/guardCreated.d.ts.map +0 -1
  593. package/dist/types/core/solana/generated/single-chain/types/index.d.ts +0 -18
  594. package/dist/types/core/solana/generated/single-chain/types/index.d.ts.map +0 -1
  595. package/dist/types/core/solana/generated/single-chain/types/limitOrderCreated.d.ts +0 -32
  596. package/dist/types/core/solana/generated/single-chain/types/limitOrderCreated.d.ts.map +0 -1
  597. package/dist/types/core/solana/generated/single-chain/types/limitOrderFulfilled.d.ts +0 -20
  598. package/dist/types/core/solana/generated/single-chain/types/limitOrderFulfilled.d.ts.map +0 -1
  599. package/dist/types/core/solana/generated/single-chain/types/orderCancelled.d.ts +0 -16
  600. package/dist/types/core/solana/generated/single-chain/types/orderCancelled.d.ts.map +0 -1
  601. package/dist/types/core/solana/inspect.d.ts +0 -14
  602. package/dist/types/core/solana/inspect.d.ts.map +0 -1
  603. package/dist/types/core/solana/intent-helpers.d.ts +0 -120
  604. package/dist/types/core/solana/intent-helpers.d.ts.map +0 -1
  605. package/dist/types/core/solana/order-instructions.d.ts +0 -16
  606. package/dist/types/core/solana/order-instructions.d.ts.map +0 -1
  607. package/dist/types/core/solana/sdk.d.ts +0 -73
  608. package/dist/types/core/solana/sdk.d.ts.map +0 -1
  609. package/dist/types/core/solana/utils.d.ts +0 -7
  610. package/dist/types/core/solana/utils.d.ts.map +0 -1
  611. package/dist/types/core/solana/validator.d.ts +0 -11
  612. package/dist/types/core/solana/validator.d.ts.map +0 -1
  613. package/dist/types/core/sui/cancel.d.ts +0 -3
  614. package/dist/types/core/sui/cancel.d.ts.map +0 -1
  615. package/dist/types/core/sui/client.d.ts +0 -3
  616. package/dist/types/core/sui/client.d.ts.map +0 -1
  617. package/dist/types/core/sui/cross-chain-limit-order.d.ts +0 -5
  618. package/dist/types/core/sui/cross-chain-limit-order.d.ts.map +0 -1
  619. package/dist/types/core/sui/intent-helpers.d.ts +0 -90
  620. package/dist/types/core/sui/intent-helpers.d.ts.map +0 -1
  621. package/dist/types/core/sui/order-transaction.d.ts +0 -11
  622. package/dist/types/core/sui/order-transaction.d.ts.map +0 -1
  623. package/dist/types/core/sui/sdk.d.ts +0 -57
  624. package/dist/types/core/sui/sdk.d.ts.map +0 -1
  625. package/dist/types/core/sui/single-chain-dca-order.d.ts +0 -22
  626. package/dist/types/core/sui/single-chain-dca-order.d.ts.map +0 -1
  627. package/dist/types/core/sui/single-chain-limit-order.d.ts +0 -26
  628. package/dist/types/core/sui/single-chain-limit-order.d.ts.map +0 -1
  629. package/dist/types/core/sui/validator.d.ts +0 -11
  630. package/dist/types/core/sui/validator.d.ts.map +0 -1
  631. package/dist/types/errors/index.d.ts +0 -20
  632. package/dist/types/errors/index.d.ts.map +0 -1
  633. package/dist/types/index.d.ts +0 -43
  634. package/dist/types/index.d.ts.map +0 -1
  635. package/dist/types/types/api.d.ts +0 -65
  636. package/dist/types/types/api.d.ts.map +0 -1
  637. package/dist/types/types/intent.d.ts +0 -136
  638. package/dist/types/types/intent.d.ts.map +0 -1
  639. package/dist/types/types/token-list.d.ts +0 -30
  640. package/dist/types/types/token-list.d.ts.map +0 -1
  641. package/dist/types/utils/base-validator.d.ts +0 -46
  642. package/dist/types/utils/base-validator.d.ts.map +0 -1
  643. package/dist/types/utils/defillama.d.ts +0 -61
  644. package/dist/types/utils/defillama.d.ts.map +0 -1
  645. package/dist/types/utils/generate-execution-details-hash.d.ts +0 -11
  646. package/dist/types/utils/generate-execution-details-hash.d.ts.map +0 -1
  647. package/dist/types/utils/logger.d.ts +0 -35
  648. package/dist/types/utils/logger.d.ts.map +0 -1
  649. package/dist/types/utils/order-validator.d.ts +0 -64
  650. package/dist/types/utils/order-validator.d.ts.map +0 -1
  651. package/dist/types/utils/parsers.d.ts +0 -6
  652. package/dist/types/utils/parsers.d.ts.map +0 -1
  653. package/dist/types/utils/quote/aftermath.d.ts +0 -9
  654. package/dist/types/utils/quote/aftermath.d.ts.map +0 -1
  655. package/dist/types/utils/quote/aggregator.d.ts +0 -80
  656. package/dist/types/utils/quote/aggregator.d.ts.map +0 -1
  657. package/dist/types/utils/quote/jupiter.d.ts +0 -16
  658. package/dist/types/utils/quote/jupiter.d.ts.map +0 -1
  659. package/dist/types/utils/quote/liquidswap.d.ts +0 -16
  660. package/dist/types/utils/quote/liquidswap.d.ts.map +0 -1
  661. package/dist/types/utils/quote/paraswap.d.ts +0 -23
  662. package/dist/types/utils/quote/paraswap.d.ts.map +0 -1
  663. package/dist/types/utils/quote/raydium.d.ts +0 -79
  664. package/dist/types/utils/quote/raydium.d.ts.map +0 -1
  665. package/dist/types/utils/quote/stablecoins-tokens.d.ts +0 -11
  666. package/dist/types/utils/quote/stablecoins-tokens.d.ts.map +0 -1
  667. package/dist/types/utils/tokens/index.d.ts +0 -20
  668. package/dist/types/utils/tokens/index.d.ts.map +0 -1
  669. package/dist/types/utils/type-utils.d.ts +0 -2
  670. package/dist/types/utils/type-utils.d.ts.map +0 -1
@@ -1,179 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { type Address } from '@solana/addresses';
9
- import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from '@solana/codecs';
10
- import { type AccountMeta, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type WritableAccount, type WritableSignerAccount } from '@solana/instructions';
11
- import { type AccountSignerMeta, type TransactionSigner } from '@solana/signers';
12
- import { SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS } from '../programs/index.js';
13
- export declare const FULFILL_DCA_ORDER_INTERVAL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
14
- export declare function getFulfillDcaOrderIntervalDiscriminatorBytes(): ReadonlyUint8Array;
15
- export type FulfillDcaOrderIntervalInstruction<TProgram extends string = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountOrder extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountGuard extends string | AccountMeta<string> = string, TAccountIxSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountTokenInMint extends string | AccountMeta<string> = string, TAccountSolverTokenInAccount extends string | AccountMeta<string> = string, TAccountGuardTokenInAccount extends string | AccountMeta<string> = string, TAccountTokenInProgram extends string | AccountMeta<string> = string, TAccountFeeTokenMint extends string | AccountMeta<string> = string, TAccountSolverFeeTokenAccount extends string | AccountMeta<string> = string, TAccountGuardFeeTokenAccount extends string | AccountMeta<string> = string, TAccountFeeTokenProgram extends string | AccountMeta<string> = string, TAccountNativeTokenOutReceiver extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenOutMint extends string | AccountMeta<string> = string, TAccountSolverTokenOutAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenOutAccount extends string | AccountMeta<string> = string, TAccountTokenOutProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
16
- TAccountSolver extends string ? WritableSignerAccount<TAccountSolver> & AccountSignerMeta<TAccountSolver> : TAccountSolver,
17
- TAccountOrder extends string ? WritableAccount<TAccountOrder> : TAccountOrder,
18
- TAccountUser extends string ? WritableAccount<TAccountUser> : TAccountUser,
19
- TAccountGuard extends string ? WritableAccount<TAccountGuard> : TAccountGuard,
20
- TAccountIxSysvar extends string ? ReadonlyAccount<TAccountIxSysvar> : TAccountIxSysvar,
21
- TAccountTokenInMint extends string ? ReadonlyAccount<TAccountTokenInMint> : TAccountTokenInMint,
22
- TAccountSolverTokenInAccount extends string ? WritableAccount<TAccountSolverTokenInAccount> : TAccountSolverTokenInAccount,
23
- TAccountGuardTokenInAccount extends string ? WritableAccount<TAccountGuardTokenInAccount> : TAccountGuardTokenInAccount,
24
- TAccountTokenInProgram extends string ? ReadonlyAccount<TAccountTokenInProgram> : TAccountTokenInProgram,
25
- TAccountFeeTokenMint extends string ? ReadonlyAccount<TAccountFeeTokenMint> : TAccountFeeTokenMint,
26
- TAccountSolverFeeTokenAccount extends string ? WritableAccount<TAccountSolverFeeTokenAccount> : TAccountSolverFeeTokenAccount,
27
- TAccountGuardFeeTokenAccount extends string ? WritableAccount<TAccountGuardFeeTokenAccount> : TAccountGuardFeeTokenAccount,
28
- TAccountFeeTokenProgram extends string ? ReadonlyAccount<TAccountFeeTokenProgram> : TAccountFeeTokenProgram,
29
- TAccountNativeTokenOutReceiver extends string ? ReadonlyAccount<TAccountNativeTokenOutReceiver> : TAccountNativeTokenOutReceiver,
30
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
31
- TAccountTokenOutMint extends string ? ReadonlyAccount<TAccountTokenOutMint> : TAccountTokenOutMint,
32
- TAccountSolverTokenOutAccount extends string ? WritableAccount<TAccountSolverTokenOutAccount> : TAccountSolverTokenOutAccount,
33
- TAccountDestinationTokenOutAccount extends string ? WritableAccount<TAccountDestinationTokenOutAccount> : TAccountDestinationTokenOutAccount,
34
- TAccountTokenOutProgram extends string ? ReadonlyAccount<TAccountTokenOutProgram> : TAccountTokenOutProgram,
35
- ...TRemainingAccounts
36
- ]>;
37
- export type FulfillDcaOrderIntervalInstructionData = {
38
- discriminator: ReadonlyUint8Array;
39
- promisedMainAmountOut: bigint;
40
- mainAmountOutToTransfer: bigint;
41
- };
42
- export type FulfillDcaOrderIntervalInstructionDataArgs = {
43
- promisedMainAmountOut: number | bigint;
44
- mainAmountOutToTransfer: number | bigint;
45
- };
46
- export declare function getFulfillDcaOrderIntervalInstructionDataEncoder(): FixedSizeEncoder<FulfillDcaOrderIntervalInstructionDataArgs>;
47
- export declare function getFulfillDcaOrderIntervalInstructionDataDecoder(): FixedSizeDecoder<FulfillDcaOrderIntervalInstructionData>;
48
- export declare function getFulfillDcaOrderIntervalInstructionDataCodec(): FixedSizeCodec<FulfillDcaOrderIntervalInstructionDataArgs, FulfillDcaOrderIntervalInstructionData>;
49
- export type FulfillDcaOrderIntervalInput<TAccountSolver extends string = string, TAccountOrder extends string = string, TAccountUser extends string = string, TAccountGuard extends string = string, TAccountIxSysvar extends string = string, TAccountTokenInMint extends string = string, TAccountSolverTokenInAccount extends string = string, TAccountGuardTokenInAccount extends string = string, TAccountTokenInProgram extends string = string, TAccountFeeTokenMint extends string = string, TAccountSolverFeeTokenAccount extends string = string, TAccountGuardFeeTokenAccount extends string = string, TAccountFeeTokenProgram extends string = string, TAccountNativeTokenOutReceiver extends string = string, TAccountSystemProgram extends string = string, TAccountTokenOutMint extends string = string, TAccountSolverTokenOutAccount extends string = string, TAccountDestinationTokenOutAccount extends string = string, TAccountTokenOutProgram extends string = string> = {
50
- /** Solver that fulfills the order */
51
- solver: TransactionSigner<TAccountSolver>;
52
- /** DCA order data */
53
- order: Address<TAccountOrder>;
54
- /** User account that will receive lamports after closing Order account */
55
- user: Address<TAccountUser>;
56
- /** Guard address, that protects this DCA order execution */
57
- guard: Address<TAccountGuard>;
58
- /**
59
- * the supplied Sysvar could be anything else.
60
- * The Instruction Sysvar has not been implemented
61
- * in the Anchor framework yet, so this is the safe approach.
62
- */
63
- ixSysvar?: Address<TAccountIxSysvar>;
64
- /** Token IN mint */
65
- tokenInMint: Address<TAccountTokenInMint>;
66
- /** Solver token IN account, to which solver will receive tokens IN */
67
- solverTokenInAccount: Address<TAccountSolverTokenInAccount>;
68
- /** Guard token IN account, where tokens IN are locked */
69
- guardTokenInAccount: Address<TAccountGuardTokenInAccount>;
70
- /** Solana token program */
71
- tokenInProgram: Address<TAccountTokenInProgram>;
72
- /** Fee token mint */
73
- feeTokenMint: Address<TAccountFeeTokenMint>;
74
- /** Solver fee token account, from which solver is paying fees */
75
- solverFeeTokenAccount: Address<TAccountSolverFeeTokenAccount>;
76
- /** Guard fee token account, where Guard is collecting fees */
77
- guardFeeTokenAccount: Address<TAccountGuardFeeTokenAccount>;
78
- /** Solana token program */
79
- feeTokenProgram: Address<TAccountFeeTokenProgram>;
80
- /**
81
- * If token OUT is native - receiver account is required
82
- * Pubkey is checked against `secret_hash`
83
- */
84
- nativeTokenOutReceiver?: Address<TAccountNativeTokenOutReceiver>;
85
- /** Solana System program. Must be Some if token OUT or any of extra transfers tokens is native */
86
- systemProgram?: Address<TAccountSystemProgram>;
87
- /**
88
- * Token OUT mint
89
- * None if token OUT is native
90
- */
91
- tokenOutMint?: Address<TAccountTokenOutMint>;
92
- /**
93
- * Solver token OUT account, from which solver will send tokens OUT
94
- * None if token OUT is native
95
- */
96
- solverTokenOutAccount?: Address<TAccountSolverTokenOutAccount>;
97
- /**
98
- * Destination token OUT account, to which tokens OUT will be sent
99
- * Authority is checked against `secret_hash`
100
- * None if token OUT is native
101
- */
102
- destinationTokenOutAccount?: Address<TAccountDestinationTokenOutAccount>;
103
- /**
104
- * Solana token program
105
- * None if token OUT is native
106
- */
107
- tokenOutProgram?: Address<TAccountTokenOutProgram>;
108
- promisedMainAmountOut: FulfillDcaOrderIntervalInstructionDataArgs['promisedMainAmountOut'];
109
- mainAmountOutToTransfer: FulfillDcaOrderIntervalInstructionDataArgs['mainAmountOutToTransfer'];
110
- };
111
- export declare function getFulfillDcaOrderIntervalInstruction<TAccountSolver extends string, TAccountOrder extends string, TAccountUser extends string, TAccountGuard extends string, TAccountIxSysvar extends string, TAccountTokenInMint extends string, TAccountSolverTokenInAccount extends string, TAccountGuardTokenInAccount extends string, TAccountTokenInProgram extends string, TAccountFeeTokenMint extends string, TAccountSolverFeeTokenAccount extends string, TAccountGuardFeeTokenAccount extends string, TAccountFeeTokenProgram extends string, TAccountNativeTokenOutReceiver extends string, TAccountSystemProgram extends string, TAccountTokenOutMint extends string, TAccountSolverTokenOutAccount extends string, TAccountDestinationTokenOutAccount extends string, TAccountTokenOutProgram extends string, TProgramAddress extends Address = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS>(input: FulfillDcaOrderIntervalInput<TAccountSolver, TAccountOrder, TAccountUser, TAccountGuard, TAccountIxSysvar, TAccountTokenInMint, TAccountSolverTokenInAccount, TAccountGuardTokenInAccount, TAccountTokenInProgram, TAccountFeeTokenMint, TAccountSolverFeeTokenAccount, TAccountGuardFeeTokenAccount, TAccountFeeTokenProgram, TAccountNativeTokenOutReceiver, TAccountSystemProgram, TAccountTokenOutMint, TAccountSolverTokenOutAccount, TAccountDestinationTokenOutAccount, TAccountTokenOutProgram>, config?: {
112
- programAddress?: TProgramAddress;
113
- }): FulfillDcaOrderIntervalInstruction<TProgramAddress, TAccountSolver, TAccountOrder, TAccountUser, TAccountGuard, TAccountIxSysvar, TAccountTokenInMint, TAccountSolverTokenInAccount, TAccountGuardTokenInAccount, TAccountTokenInProgram, TAccountFeeTokenMint, TAccountSolverFeeTokenAccount, TAccountGuardFeeTokenAccount, TAccountFeeTokenProgram, TAccountNativeTokenOutReceiver, TAccountSystemProgram, TAccountTokenOutMint, TAccountSolverTokenOutAccount, TAccountDestinationTokenOutAccount, TAccountTokenOutProgram>;
114
- export type ParsedFulfillDcaOrderIntervalInstruction<TProgram extends string = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
115
- programAddress: Address<TProgram>;
116
- accounts: {
117
- /** Solver that fulfills the order */
118
- solver: TAccountMetas[0];
119
- /** DCA order data */
120
- order: TAccountMetas[1];
121
- /** User account that will receive lamports after closing Order account */
122
- user: TAccountMetas[2];
123
- /** Guard address, that protects this DCA order execution */
124
- guard: TAccountMetas[3];
125
- /**
126
- * the supplied Sysvar could be anything else.
127
- * The Instruction Sysvar has not been implemented
128
- * in the Anchor framework yet, so this is the safe approach.
129
- */
130
- ixSysvar: TAccountMetas[4];
131
- /** Token IN mint */
132
- tokenInMint: TAccountMetas[5];
133
- /** Solver token IN account, to which solver will receive tokens IN */
134
- solverTokenInAccount: TAccountMetas[6];
135
- /** Guard token IN account, where tokens IN are locked */
136
- guardTokenInAccount: TAccountMetas[7];
137
- /** Solana token program */
138
- tokenInProgram: TAccountMetas[8];
139
- /** Fee token mint */
140
- feeTokenMint: TAccountMetas[9];
141
- /** Solver fee token account, from which solver is paying fees */
142
- solverFeeTokenAccount: TAccountMetas[10];
143
- /** Guard fee token account, where Guard is collecting fees */
144
- guardFeeTokenAccount: TAccountMetas[11];
145
- /** Solana token program */
146
- feeTokenProgram: TAccountMetas[12];
147
- /**
148
- * If token OUT is native - receiver account is required
149
- * Pubkey is checked against `secret_hash`
150
- */
151
- nativeTokenOutReceiver?: TAccountMetas[13] | undefined;
152
- /** Solana System program. Must be Some if token OUT or any of extra transfers tokens is native */
153
- systemProgram?: TAccountMetas[14] | undefined;
154
- /**
155
- * Token OUT mint
156
- * None if token OUT is native
157
- */
158
- tokenOutMint?: TAccountMetas[15] | undefined;
159
- /**
160
- * Solver token OUT account, from which solver will send tokens OUT
161
- * None if token OUT is native
162
- */
163
- solverTokenOutAccount?: TAccountMetas[16] | undefined;
164
- /**
165
- * Destination token OUT account, to which tokens OUT will be sent
166
- * Authority is checked against `secret_hash`
167
- * None if token OUT is native
168
- */
169
- destinationTokenOutAccount?: TAccountMetas[17] | undefined;
170
- /**
171
- * Solana token program
172
- * None if token OUT is native
173
- */
174
- tokenOutProgram?: TAccountMetas[18] | undefined;
175
- };
176
- data: FulfillDcaOrderIntervalInstructionData;
177
- };
178
- export declare function parseFulfillDcaOrderIntervalInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFulfillDcaOrderIntervalInstruction<TProgram, TAccountMetas>;
179
- //# sourceMappingURL=fulfillDcaOrderInterval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fulfillDcaOrderInterval.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/solana/generated/single-chain/instructions/fulfillDcaOrderInterval.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAWL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sBAAsB,CAAC;AAG1E,eAAO,MAAM,wCAAwC,yBAEnD,CAAC;AAEH,wBAAgB,4CAA4C,uBAE3D;AAED,MAAM,MAAM,kCAAkC,CAC5C,QAAQ,SAAS,MAAM,GAAG,OAAO,kCAAkC,EACnE,cAAc,SAAS,MAAM,GAAG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QAAQ,EAAE,aAAa,CAAC,CAwCnE"}
@@ -1,179 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { type Address } from '@solana/addresses';
9
- import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from '@solana/codecs';
10
- import { type AccountMeta, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type WritableAccount, type WritableSignerAccount } from '@solana/instructions';
11
- import { type AccountSignerMeta, type TransactionSigner } from '@solana/signers';
12
- import { SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS } from '../programs/index.js';
13
- export declare const FULFILL_LIMIT_ORDER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
14
- export declare function getFulfillLimitOrderDiscriminatorBytes(): ReadonlyUint8Array;
15
- export type FulfillLimitOrderInstruction<TProgram extends string = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS, TAccountSolver extends string | AccountMeta<string> = string, TAccountOrder extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountGuard extends string | AccountMeta<string> = string, TAccountIxSysvar extends string | AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111', TAccountTokenInMint extends string | AccountMeta<string> = string, TAccountSolverTokenInAccount extends string | AccountMeta<string> = string, TAccountGuardTokenInAccount extends string | AccountMeta<string> = string, TAccountTokenInProgram extends string | AccountMeta<string> = string, TAccountFeeTokenMint extends string | AccountMeta<string> = string, TAccountSolverFeeTokenAccount extends string | AccountMeta<string> = string, TAccountGuardFeeTokenAccount extends string | AccountMeta<string> = string, TAccountFeeTokenProgram extends string | AccountMeta<string> = string, TAccountNativeTokenOutReceiver extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenOutMint extends string | AccountMeta<string> = string, TAccountSolverTokenOutAccount extends string | AccountMeta<string> = string, TAccountDestinationTokenOutAccount extends string | AccountMeta<string> = string, TAccountTokenOutProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
16
- TAccountSolver extends string ? WritableSignerAccount<TAccountSolver> & AccountSignerMeta<TAccountSolver> : TAccountSolver,
17
- TAccountOrder extends string ? WritableAccount<TAccountOrder> : TAccountOrder,
18
- TAccountUser extends string ? WritableAccount<TAccountUser> : TAccountUser,
19
- TAccountGuard extends string ? WritableAccount<TAccountGuard> : TAccountGuard,
20
- TAccountIxSysvar extends string ? ReadonlyAccount<TAccountIxSysvar> : TAccountIxSysvar,
21
- TAccountTokenInMint extends string ? ReadonlyAccount<TAccountTokenInMint> : TAccountTokenInMint,
22
- TAccountSolverTokenInAccount extends string ? WritableAccount<TAccountSolverTokenInAccount> : TAccountSolverTokenInAccount,
23
- TAccountGuardTokenInAccount extends string ? WritableAccount<TAccountGuardTokenInAccount> : TAccountGuardTokenInAccount,
24
- TAccountTokenInProgram extends string ? ReadonlyAccount<TAccountTokenInProgram> : TAccountTokenInProgram,
25
- TAccountFeeTokenMint extends string ? ReadonlyAccount<TAccountFeeTokenMint> : TAccountFeeTokenMint,
26
- TAccountSolverFeeTokenAccount extends string ? WritableAccount<TAccountSolverFeeTokenAccount> : TAccountSolverFeeTokenAccount,
27
- TAccountGuardFeeTokenAccount extends string ? WritableAccount<TAccountGuardFeeTokenAccount> : TAccountGuardFeeTokenAccount,
28
- TAccountFeeTokenProgram extends string ? ReadonlyAccount<TAccountFeeTokenProgram> : TAccountFeeTokenProgram,
29
- TAccountNativeTokenOutReceiver extends string ? ReadonlyAccount<TAccountNativeTokenOutReceiver> : TAccountNativeTokenOutReceiver,
30
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
31
- TAccountTokenOutMint extends string ? ReadonlyAccount<TAccountTokenOutMint> : TAccountTokenOutMint,
32
- TAccountSolverTokenOutAccount extends string ? WritableAccount<TAccountSolverTokenOutAccount> : TAccountSolverTokenOutAccount,
33
- TAccountDestinationTokenOutAccount extends string ? WritableAccount<TAccountDestinationTokenOutAccount> : TAccountDestinationTokenOutAccount,
34
- TAccountTokenOutProgram extends string ? ReadonlyAccount<TAccountTokenOutProgram> : TAccountTokenOutProgram,
35
- ...TRemainingAccounts
36
- ]>;
37
- export type FulfillLimitOrderInstructionData = {
38
- discriminator: ReadonlyUint8Array;
39
- promisedMainAmountOut: bigint;
40
- mainAmountOutToTransfer: bigint;
41
- };
42
- export type FulfillLimitOrderInstructionDataArgs = {
43
- promisedMainAmountOut: number | bigint;
44
- mainAmountOutToTransfer: number | bigint;
45
- };
46
- export declare function getFulfillLimitOrderInstructionDataEncoder(): FixedSizeEncoder<FulfillLimitOrderInstructionDataArgs>;
47
- export declare function getFulfillLimitOrderInstructionDataDecoder(): FixedSizeDecoder<FulfillLimitOrderInstructionData>;
48
- export declare function getFulfillLimitOrderInstructionDataCodec(): FixedSizeCodec<FulfillLimitOrderInstructionDataArgs, FulfillLimitOrderInstructionData>;
49
- export type FulfillLimitOrderInput<TAccountSolver extends string = string, TAccountOrder extends string = string, TAccountUser extends string = string, TAccountGuard extends string = string, TAccountIxSysvar extends string = string, TAccountTokenInMint extends string = string, TAccountSolverTokenInAccount extends string = string, TAccountGuardTokenInAccount extends string = string, TAccountTokenInProgram extends string = string, TAccountFeeTokenMint extends string = string, TAccountSolverFeeTokenAccount extends string = string, TAccountGuardFeeTokenAccount extends string = string, TAccountFeeTokenProgram extends string = string, TAccountNativeTokenOutReceiver extends string = string, TAccountSystemProgram extends string = string, TAccountTokenOutMint extends string = string, TAccountSolverTokenOutAccount extends string = string, TAccountDestinationTokenOutAccount extends string = string, TAccountTokenOutProgram extends string = string> = {
50
- /** Solver that fulfills the order */
51
- solver: TransactionSigner<TAccountSolver>;
52
- /** Order data */
53
- order: Address<TAccountOrder>;
54
- /** User account that will receive lamports after closing Order account */
55
- user: Address<TAccountUser>;
56
- /** Guard address, that protects this order execution */
57
- guard: Address<TAccountGuard>;
58
- /**
59
- * the supplied Sysvar could be anything else.
60
- * The Instruction Sysvar has not been implemented
61
- * in the Anchor framework yet, so this is the safe approach.
62
- */
63
- ixSysvar?: Address<TAccountIxSysvar>;
64
- /** Token IN mint */
65
- tokenInMint: Address<TAccountTokenInMint>;
66
- /** Solver token IN account, to which solver will receive tokens IN */
67
- solverTokenInAccount: Address<TAccountSolverTokenInAccount>;
68
- /** Guard token IN account, where tokens IN are locked */
69
- guardTokenInAccount: Address<TAccountGuardTokenInAccount>;
70
- /** Solana token program */
71
- tokenInProgram: Address<TAccountTokenInProgram>;
72
- /** Fee token mint */
73
- feeTokenMint: Address<TAccountFeeTokenMint>;
74
- /** Solver fee token account, from which solver is paying fees */
75
- solverFeeTokenAccount: Address<TAccountSolverFeeTokenAccount>;
76
- /** Guard fee token account, where Guard is collecting fees */
77
- guardFeeTokenAccount: Address<TAccountGuardFeeTokenAccount>;
78
- /** Solana token program */
79
- feeTokenProgram: Address<TAccountFeeTokenProgram>;
80
- /**
81
- * If token OUT is native - receiver account is required
82
- * Pubkey is checked against `secret_hash`
83
- */
84
- nativeTokenOutReceiver?: Address<TAccountNativeTokenOutReceiver>;
85
- /** Solana System program. Must be Some if token OUT or any of extra transfers tokens is native */
86
- systemProgram?: Address<TAccountSystemProgram>;
87
- /**
88
- * Token OUT mint
89
- * None if token OUT is native
90
- */
91
- tokenOutMint?: Address<TAccountTokenOutMint>;
92
- /**
93
- * Solver token OUT account, from which solver will send tokens OUT
94
- * None if token OUT is native
95
- */
96
- solverTokenOutAccount?: Address<TAccountSolverTokenOutAccount>;
97
- /**
98
- * Destination token OUT account, to which tokens OUT will be sent
99
- * Authority is checked against `secret_hash`
100
- * None if token OUT is native
101
- */
102
- destinationTokenOutAccount?: Address<TAccountDestinationTokenOutAccount>;
103
- /**
104
- * Solana token program
105
- * None if token OUT is native
106
- */
107
- tokenOutProgram?: Address<TAccountTokenOutProgram>;
108
- promisedMainAmountOut: FulfillLimitOrderInstructionDataArgs['promisedMainAmountOut'];
109
- mainAmountOutToTransfer: FulfillLimitOrderInstructionDataArgs['mainAmountOutToTransfer'];
110
- };
111
- export declare function getFulfillLimitOrderInstruction<TAccountSolver extends string, TAccountOrder extends string, TAccountUser extends string, TAccountGuard extends string, TAccountIxSysvar extends string, TAccountTokenInMint extends string, TAccountSolverTokenInAccount extends string, TAccountGuardTokenInAccount extends string, TAccountTokenInProgram extends string, TAccountFeeTokenMint extends string, TAccountSolverFeeTokenAccount extends string, TAccountGuardFeeTokenAccount extends string, TAccountFeeTokenProgram extends string, TAccountNativeTokenOutReceiver extends string, TAccountSystemProgram extends string, TAccountTokenOutMint extends string, TAccountSolverTokenOutAccount extends string, TAccountDestinationTokenOutAccount extends string, TAccountTokenOutProgram extends string, TProgramAddress extends Address = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS>(input: FulfillLimitOrderInput<TAccountSolver, TAccountOrder, TAccountUser, TAccountGuard, TAccountIxSysvar, TAccountTokenInMint, TAccountSolverTokenInAccount, TAccountGuardTokenInAccount, TAccountTokenInProgram, TAccountFeeTokenMint, TAccountSolverFeeTokenAccount, TAccountGuardFeeTokenAccount, TAccountFeeTokenProgram, TAccountNativeTokenOutReceiver, TAccountSystemProgram, TAccountTokenOutMint, TAccountSolverTokenOutAccount, TAccountDestinationTokenOutAccount, TAccountTokenOutProgram>, config?: {
112
- programAddress?: TProgramAddress;
113
- }): FulfillLimitOrderInstruction<TProgramAddress, TAccountSolver, TAccountOrder, TAccountUser, TAccountGuard, TAccountIxSysvar, TAccountTokenInMint, TAccountSolverTokenInAccount, TAccountGuardTokenInAccount, TAccountTokenInProgram, TAccountFeeTokenMint, TAccountSolverFeeTokenAccount, TAccountGuardFeeTokenAccount, TAccountFeeTokenProgram, TAccountNativeTokenOutReceiver, TAccountSystemProgram, TAccountTokenOutMint, TAccountSolverTokenOutAccount, TAccountDestinationTokenOutAccount, TAccountTokenOutProgram>;
114
- export type ParsedFulfillLimitOrderInstruction<TProgram extends string = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
115
- programAddress: Address<TProgram>;
116
- accounts: {
117
- /** Solver that fulfills the order */
118
- solver: TAccountMetas[0];
119
- /** Order data */
120
- order: TAccountMetas[1];
121
- /** User account that will receive lamports after closing Order account */
122
- user: TAccountMetas[2];
123
- /** Guard address, that protects this order execution */
124
- guard: TAccountMetas[3];
125
- /**
126
- * the supplied Sysvar could be anything else.
127
- * The Instruction Sysvar has not been implemented
128
- * in the Anchor framework yet, so this is the safe approach.
129
- */
130
- ixSysvar: TAccountMetas[4];
131
- /** Token IN mint */
132
- tokenInMint: TAccountMetas[5];
133
- /** Solver token IN account, to which solver will receive tokens IN */
134
- solverTokenInAccount: TAccountMetas[6];
135
- /** Guard token IN account, where tokens IN are locked */
136
- guardTokenInAccount: TAccountMetas[7];
137
- /** Solana token program */
138
- tokenInProgram: TAccountMetas[8];
139
- /** Fee token mint */
140
- feeTokenMint: TAccountMetas[9];
141
- /** Solver fee token account, from which solver is paying fees */
142
- solverFeeTokenAccount: TAccountMetas[10];
143
- /** Guard fee token account, where Guard is collecting fees */
144
- guardFeeTokenAccount: TAccountMetas[11];
145
- /** Solana token program */
146
- feeTokenProgram: TAccountMetas[12];
147
- /**
148
- * If token OUT is native - receiver account is required
149
- * Pubkey is checked against `secret_hash`
150
- */
151
- nativeTokenOutReceiver?: TAccountMetas[13] | undefined;
152
- /** Solana System program. Must be Some if token OUT or any of extra transfers tokens is native */
153
- systemProgram?: TAccountMetas[14] | undefined;
154
- /**
155
- * Token OUT mint
156
- * None if token OUT is native
157
- */
158
- tokenOutMint?: TAccountMetas[15] | undefined;
159
- /**
160
- * Solver token OUT account, from which solver will send tokens OUT
161
- * None if token OUT is native
162
- */
163
- solverTokenOutAccount?: TAccountMetas[16] | undefined;
164
- /**
165
- * Destination token OUT account, to which tokens OUT will be sent
166
- * Authority is checked against `secret_hash`
167
- * None if token OUT is native
168
- */
169
- destinationTokenOutAccount?: TAccountMetas[17] | undefined;
170
- /**
171
- * Solana token program
172
- * None if token OUT is native
173
- */
174
- tokenOutProgram?: TAccountMetas[18] | undefined;
175
- };
176
- data: FulfillLimitOrderInstructionData;
177
- };
178
- export declare function parseFulfillLimitOrderInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFulfillLimitOrderInstruction<TProgram, TAccountMetas>;
179
- //# sourceMappingURL=fulfillLimitOrder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fulfillLimitOrder.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/solana/generated/single-chain/instructions/fulfillLimitOrder.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAWL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sBAAsB,CAAC;AAG1E,eAAO,MAAM,iCAAiC,yBAE5C,CAAC;AAEH,wBAAgB,sCAAsC,uBAErD;AAED,MAAM,MAAM,4BAA4B,CACtC,QAAQ,SAAS,MAAM,GAAG,OAAO,kC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kBAAkB,CAAC,GACxC,kCAAkC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAwC7D"}
@@ -1,20 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- export * from './acceptAdmin.js';
9
- export * from './cancelDcaOrder.js';
10
- export * from './cancelLimitOrder.js';
11
- export * from './collectProtocolFees.js';
12
- export * from './createDcaOrder.js';
13
- export * from './createGuard.js';
14
- export * from './createLimitOrder.js';
15
- export * from './fulfillDcaOrderInterval.js';
16
- export * from './fulfillLimitOrder.js';
17
- export * from './initialize.js';
18
- export * from './setAdmin.js';
19
- export * from './setAuctioneerPubKey.js';
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/solana/generated/single-chain/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC"}
@@ -1,86 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { type Address } from '@solana/addresses';
9
- import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from '@solana/codecs';
10
- import { type AccountMeta, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type WritableAccount, type WritableSignerAccount } from '@solana/instructions';
11
- import { type AccountSignerMeta, type TransactionSigner } from '@solana/signers';
12
- import { SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS } from '../programs/index.js';
13
- export declare const INITIALIZE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
14
- export declare function getInitializeDiscriminatorBytes(): ReadonlyUint8Array;
15
- export type InitializeInstruction<TProgram extends string = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS, TAccountInitialAdmin extends string | AccountMeta<string> = string, TAccountAdminSingleton extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountProgram extends string | AccountMeta<string> = 'EaSKMioKTLtbFXVaMEmHjSdZDEoZHpSmQBu6NfsND87n', TAccountProgramData extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
16
- TAccountInitialAdmin extends string ? WritableSignerAccount<TAccountInitialAdmin> & AccountSignerMeta<TAccountInitialAdmin> : TAccountInitialAdmin,
17
- TAccountAdminSingleton extends string ? WritableAccount<TAccountAdminSingleton> : TAccountAdminSingleton,
18
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
19
- TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
20
- TAccountProgramData extends string ? ReadonlyAccount<TAccountProgramData> : TAccountProgramData,
21
- ...TRemainingAccounts
22
- ]>;
23
- export type InitializeInstructionData = {
24
- discriminator: ReadonlyUint8Array;
25
- };
26
- export type InitializeInstructionDataArgs = Object;
27
- export declare function getInitializeInstructionDataEncoder(): FixedSizeEncoder<InitializeInstructionDataArgs>;
28
- export declare function getInitializeInstructionDataDecoder(): FixedSizeDecoder<InitializeInstructionData>;
29
- export declare function getInitializeInstructionDataCodec(): FixedSizeCodec<InitializeInstructionDataArgs, InitializeInstructionData>;
30
- export type InitializeAsyncInput<TAccountInitialAdmin extends string = string, TAccountAdminSingleton extends string = string, TAccountSystemProgram extends string = string, TAccountProgram extends string = string, TAccountProgramData extends string = string> = {
31
- /** Admin, creating Guard */
32
- initialAdmin: TransactionSigner<TAccountInitialAdmin>;
33
- /** Account that will store guard data */
34
- adminSingleton?: Address<TAccountAdminSingleton>;
35
- /** Solana System program */
36
- systemProgram?: Address<TAccountSystemProgram>;
37
- /** This program */
38
- program?: Address<TAccountProgram>;
39
- /**
40
- * This program ProgramData account to check that only current upgrade authority
41
- * can initialize Admin
42
- */
43
- programData: Address<TAccountProgramData>;
44
- };
45
- export declare function getInitializeInstructionAsync<TAccountInitialAdmin extends string, TAccountAdminSingleton extends string, TAccountSystemProgram extends string, TAccountProgram extends string, TAccountProgramData extends string, TProgramAddress extends Address = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS>(input: InitializeAsyncInput<TAccountInitialAdmin, TAccountAdminSingleton, TAccountSystemProgram, TAccountProgram, TAccountProgramData>, config?: {
46
- programAddress?: TProgramAddress;
47
- }): Promise<InitializeInstruction<TProgramAddress, TAccountInitialAdmin, TAccountAdminSingleton, TAccountSystemProgram, TAccountProgram, TAccountProgramData>>;
48
- export type InitializeInput<TAccountInitialAdmin extends string = string, TAccountAdminSingleton extends string = string, TAccountSystemProgram extends string = string, TAccountProgram extends string = string, TAccountProgramData extends string = string> = {
49
- /** Admin, creating Guard */
50
- initialAdmin: TransactionSigner<TAccountInitialAdmin>;
51
- /** Account that will store guard data */
52
- adminSingleton: Address<TAccountAdminSingleton>;
53
- /** Solana System program */
54
- systemProgram?: Address<TAccountSystemProgram>;
55
- /** This program */
56
- program?: Address<TAccountProgram>;
57
- /**
58
- * This program ProgramData account to check that only current upgrade authority
59
- * can initialize Admin
60
- */
61
- programData: Address<TAccountProgramData>;
62
- };
63
- export declare function getInitializeInstruction<TAccountInitialAdmin extends string, TAccountAdminSingleton extends string, TAccountSystemProgram extends string, TAccountProgram extends string, TAccountProgramData extends string, TProgramAddress extends Address = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS>(input: InitializeInput<TAccountInitialAdmin, TAccountAdminSingleton, TAccountSystemProgram, TAccountProgram, TAccountProgramData>, config?: {
64
- programAddress?: TProgramAddress;
65
- }): InitializeInstruction<TProgramAddress, TAccountInitialAdmin, TAccountAdminSingleton, TAccountSystemProgram, TAccountProgram, TAccountProgramData>;
66
- export type ParsedInitializeInstruction<TProgram extends string = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
67
- programAddress: Address<TProgram>;
68
- accounts: {
69
- /** Admin, creating Guard */
70
- initialAdmin: TAccountMetas[0];
71
- /** Account that will store guard data */
72
- adminSingleton: TAccountMetas[1];
73
- /** Solana System program */
74
- systemProgram: TAccountMetas[2];
75
- /** This program */
76
- program: TAccountMetas[3];
77
- /**
78
- * This program ProgramData account to check that only current upgrade authority
79
- * can initialize Admin
80
- */
81
- programData: TAccountMetas[4];
82
- };
83
- data: InitializeInstructionData;
84
- };
85
- export declare function parseInitializeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeInstruction<TProgram, TAccountMetas>;
86
- //# sourceMappingURL=initialize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/solana/generated/single-chain/instructions/initialize.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAA4B,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,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,CAAA;CAAE,GAC5C,qBAAqB,CACtB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,CACpB,CA6CA;AAED,MAAM,MAAM,2BAA2B,CACrC,QAAQ,SAAS,MAAM,GAAG,OAAO,kCAAkC,EACnE,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACnE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,4BAA4B;QAC5B,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,yCAAyC;QACzC,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QACjC,4BAA4B;QAC5B,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAChC,mBAAmB;QACnB,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC1B;;;WAGG;QAEH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC/B,CAAC;IACF,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,2BAA2B,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsBtD"}
@@ -1,61 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { type Address } from '@solana/addresses';
9
- import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from '@solana/codecs';
10
- import { type AccountMeta, type Instruction, type InstructionWithAccounts, type InstructionWithData, type WritableAccount, type WritableSignerAccount } from '@solana/instructions';
11
- import { type AccountSignerMeta, type TransactionSigner } from '@solana/signers';
12
- import { SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS } from '../programs/index.js';
13
- export declare const SET_ADMIN_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
14
- export declare function getSetAdminDiscriminatorBytes(): ReadonlyUint8Array;
15
- export type SetAdminInstruction<TProgram extends string = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS, TAccountAdmin extends string | AccountMeta<string> = string, TAccountAdminSingleton extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
16
- TAccountAdmin extends string ? WritableSignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
17
- TAccountAdminSingleton extends string ? WritableAccount<TAccountAdminSingleton> : TAccountAdminSingleton,
18
- ...TRemainingAccounts
19
- ]>;
20
- export type SetAdminInstructionData = {
21
- discriminator: ReadonlyUint8Array;
22
- newAdmin: Address;
23
- };
24
- export type SetAdminInstructionDataArgs = {
25
- newAdmin: Address;
26
- };
27
- export declare function getSetAdminInstructionDataEncoder(): FixedSizeEncoder<SetAdminInstructionDataArgs>;
28
- export declare function getSetAdminInstructionDataDecoder(): FixedSizeDecoder<SetAdminInstructionData>;
29
- export declare function getSetAdminInstructionDataCodec(): FixedSizeCodec<SetAdminInstructionDataArgs, SetAdminInstructionData>;
30
- export type SetAdminAsyncInput<TAccountAdmin extends string = string, TAccountAdminSingleton extends string = string> = {
31
- /** Admin signer */
32
- admin: TransactionSigner<TAccountAdmin>;
33
- /** Admin singleton account that grants access to admin functions */
34
- adminSingleton?: Address<TAccountAdminSingleton>;
35
- newAdmin: SetAdminInstructionDataArgs['newAdmin'];
36
- };
37
- export declare function getSetAdminInstructionAsync<TAccountAdmin extends string, TAccountAdminSingleton extends string, TProgramAddress extends Address = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS>(input: SetAdminAsyncInput<TAccountAdmin, TAccountAdminSingleton>, config?: {
38
- programAddress?: TProgramAddress;
39
- }): Promise<SetAdminInstruction<TProgramAddress, TAccountAdmin, TAccountAdminSingleton>>;
40
- export type SetAdminInput<TAccountAdmin extends string = string, TAccountAdminSingleton extends string = string> = {
41
- /** Admin signer */
42
- admin: TransactionSigner<TAccountAdmin>;
43
- /** Admin singleton account that grants access to admin functions */
44
- adminSingleton: Address<TAccountAdminSingleton>;
45
- newAdmin: SetAdminInstructionDataArgs['newAdmin'];
46
- };
47
- export declare function getSetAdminInstruction<TAccountAdmin extends string, TAccountAdminSingleton extends string, TProgramAddress extends Address = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS>(input: SetAdminInput<TAccountAdmin, TAccountAdminSingleton>, config?: {
48
- programAddress?: TProgramAddress;
49
- }): SetAdminInstruction<TProgramAddress, TAccountAdmin, TAccountAdminSingleton>;
50
- export type ParsedSetAdminInstruction<TProgram extends string = typeof SINGLE_CHAIN_GUARD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
51
- programAddress: Address<TProgram>;
52
- accounts: {
53
- /** Admin signer */
54
- admin: TAccountMetas[0];
55
- /** Admin singleton account that grants access to admin functions */
56
- adminSingleton: TAccountMetas[1];
57
- };
58
- data: SetAdminInstructionData;
59
- };
60
- export declare function parseSetAdminInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetAdminInstruction<TProgram, TAccountMetas>;
61
- //# sourceMappingURL=setAdmin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setAdmin.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/solana/generated/single-chain/instructions/setAdmin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,E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