four-flap-meme-sdk 2.2.20 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/dist/abis/flap/portal-events.d.ts +1 -1
  2. package/dist/abis/flap/portal-events.js +1 -1
  3. package/dist/abis/flap/portal.d.ts +1 -1
  4. package/dist/abis/flap/portal.js +1 -1
  5. package/dist/abis/flap/vault.d.ts +1 -1
  6. package/dist/abis/flap/vault.js +1 -1
  7. package/dist/abis/index.d.ts +0 -2
  8. package/dist/abis/index.js +0 -2
  9. package/dist/{bundle-core → bundle}/config-helpers.d.ts +1 -1
  10. package/dist/{bundle-core → bundle}/config-helpers.js +1 -1
  11. package/dist/{bundle-core → bundle}/four-meme/approve-tokenmanager.js +3 -3
  12. package/dist/{bundle-core → bundle}/four-meme/core-helpers.d.ts +1 -1
  13. package/dist/{bundle-core → bundle}/four-meme/core-helpers.js +2 -2
  14. package/dist/{bundle-core → bundle}/four-meme/core.js +3 -3
  15. package/dist/{bundle-core → bundle}/four-meme/pancake-proxy.js +2 -2
  16. package/dist/{bundle-core → bundle}/four-meme/private.js +2 -2
  17. package/dist/{bundle-core → bundle}/four-meme/sign-context-helpers.d.ts +1 -1
  18. package/dist/{bundle-core → bundle}/four-meme/sign-context-helpers.js +1 -1
  19. package/dist/{bundle-core → bundle}/four-meme/swap-buy-first.js +3 -3
  20. package/dist/{bundle-core → bundle}/four-meme/swap-internal.js +1 -1
  21. package/dist/{bundle-core → bundle}/four-meme/swap-sign-helpers.js +2 -2
  22. package/dist/{bundle-core → bundle}/four-meme/types/index.d.ts +1 -1
  23. package/dist/{bundle-core → bundle}/four-meme/utils-disperse.js +1 -1
  24. package/dist/{bundle-core → bundle}/four-meme/utils-pairwise.js +1 -1
  25. package/dist/{bundle-core → bundle}/four-meme/utils-sweep.js +1 -1
  26. package/dist/{bundle-core → bundle}/internal.d.ts +1 -1
  27. package/dist/{bundle-core → bundle}/internal.js +2 -2
  28. package/dist/{bundle-core → bundle}/sign-context-helpers.js +1 -1
  29. package/dist/{bundle-core → bundle}/submit.js +4 -4
  30. package/dist/chains/bsc/constants.js +1 -1
  31. package/dist/chains/bsc/four/approve-tokenmanager.d.ts +1 -1
  32. package/dist/chains/bsc/four/approve-tokenmanager.js +1 -1
  33. package/dist/chains/bsc/four/config.d.ts +3 -3
  34. package/dist/chains/bsc/four/config.js +2 -2
  35. package/dist/chains/bsc/four/core.d.ts +1 -1
  36. package/dist/chains/bsc/four/core.js +1 -1
  37. package/dist/chains/bsc/four/internal.d.ts +2 -2
  38. package/dist/chains/bsc/four/internal.js +2 -2
  39. package/dist/chains/bsc/four/pancake-proxy.d.ts +1 -1
  40. package/dist/chains/bsc/four/pancake-proxy.js +1 -1
  41. package/dist/chains/bsc/four/private.d.ts +1 -1
  42. package/dist/chains/bsc/four/private.js +1 -1
  43. package/dist/chains/bsc/four/submit.d.ts +2 -2
  44. package/dist/chains/bsc/four/submit.js +2 -2
  45. package/dist/chains/bsc/four/swap-buy-first.d.ts +2 -2
  46. package/dist/chains/bsc/four/swap-buy-first.js +2 -2
  47. package/dist/chains/bsc/four/swap-internal.d.ts +1 -1
  48. package/dist/chains/bsc/four/swap-internal.js +1 -1
  49. package/dist/chains/bsc/four/swap.d.ts +2 -2
  50. package/dist/chains/bsc/four/swap.js +2 -2
  51. package/dist/chains/bsc/four/types.d.ts +1 -1
  52. package/dist/chains/bsc/four/utils-disperse.d.ts +1 -1
  53. package/dist/chains/bsc/four/utils-disperse.js +1 -1
  54. package/dist/chains/bsc/four/utils-pairwise.d.ts +1 -1
  55. package/dist/chains/bsc/four/utils-pairwise.js +1 -1
  56. package/dist/chains/bsc/four/utils-sweep.d.ts +1 -1
  57. package/dist/chains/bsc/four/utils-sweep.js +1 -1
  58. package/dist/chains/bsc/pancake/bundle-buy-first-helpers.d.ts +1 -1
  59. package/dist/chains/bsc/pancake/bundle-buy-first-helpers.js +3 -3
  60. package/dist/chains/bsc/pancake/bundle-buy-first.js +4 -4
  61. package/dist/chains/bsc/pancake/bundle-swap-helpers.d.ts +1 -1
  62. package/dist/chains/bsc/pancake/bundle-swap-helpers.js +5 -5
  63. package/dist/chains/bsc/pancake/bundle-swap.js +2 -2
  64. package/dist/chains/bsc/platforms/iro/constants.js +1 -1
  65. package/dist/chains/bsc/platforms/iro/token.js +1 -1
  66. package/dist/chains/eni/batch-router/transfer.js +2 -2
  67. package/dist/chains/eni/constants.js +1 -1
  68. package/dist/chains/eni/platforms/daoaas/create.js +1 -1
  69. package/dist/chains/eni/platforms/daoaas/portal-direct.js +1 -1
  70. package/dist/chains/eni/platforms/dswap/liquidity.js +1 -1
  71. package/dist/chains/eni/platforms/fair-launch/constants.js +1 -1
  72. package/dist/chains/eni/platforms/fair-launch/launcher.js +1 -1
  73. package/dist/chains/eni/platforms/fair-launch/pool.js +1 -1
  74. package/dist/chains/eni/platforms/iro/constants.d.ts +1 -1
  75. package/dist/chains/eni/platforms/iro/constants.js +2 -2
  76. package/dist/chains/eni/platforms/iro/token.js +1 -1
  77. package/dist/chains/eni/submit.js +2 -2
  78. package/dist/chains/monad/constants.js +1 -1
  79. package/dist/chains/xlayer/constants.js +1 -1
  80. package/dist/chains/xlayer/eip7702/bundle-create.js +1 -1
  81. package/dist/chains/xlayer/eip7702/bundle-sell.js +1 -1
  82. package/dist/chains/xlayer/eip7702/bundle-swap.js +1 -1
  83. package/dist/chains/xlayer/eip7702/constants.d.ts +1 -1
  84. package/dist/chains/xlayer/eip7702/constants.js +2 -2
  85. package/dist/chains/xlayer/eip7702/multi-hop-transfer.js +1 -1
  86. package/dist/chains/xlayer/eip7702/utils.js +1 -1
  87. package/dist/chains/xlayer/eip7702/volume.js +1 -1
  88. package/dist/chains/xlayer/eoa/constants.js +1 -1
  89. package/dist/chains/xlayer/eoa/dex-helpers.d.ts +1 -1
  90. package/dist/chains/xlayer/eoa/dex-helpers.js +2 -2
  91. package/dist/chains/xlayer/eoa/eoa-bundle-swap-helpers.d.ts +1 -1
  92. package/dist/chains/xlayer/eoa/eoa-bundle-swap-helpers.js +3 -3
  93. package/dist/chains/xlayer/eoa/eoa-bundle-swap.js +2 -2
  94. package/dist/chains/xlayer/eoa/eoa-wash-volume.d.ts +1 -1
  95. package/dist/chains/xlayer/eoa/eoa-wash-volume.js +2 -2
  96. package/dist/chains/xlayer/eoa/router-manager.js +1 -1
  97. package/dist/{shared → core}/clients/blockrazor.js +1 -1
  98. package/dist/{shared → core}/clients/four.js +1 -1
  99. package/dist/{shared → core}/clients/merkle.js +1 -1
  100. package/dist/{shared → core}/constants/index.d.ts +2 -2
  101. package/dist/{shared → core}/constants/index.js +1 -1
  102. package/dist/{shared/foundation → core}/dex/v3-path.js +1 -1
  103. package/dist/{utils → core}/erc20.d.ts +2 -2
  104. package/dist/{utils → core}/erc20.js +3 -3
  105. package/dist/{shared/foundation → core}/gas/profit-hop.js +1 -1
  106. package/dist/core/index.d.ts +5 -0
  107. package/dist/core/index.js +5 -0
  108. package/dist/{shared/foundation → core}/nonce/nonce-manager.js +1 -1
  109. package/dist/{shared/foundation → core}/types/airdrop-sweep.d.ts +1 -1
  110. package/dist/{shared/foundation → core}/types/holders-maker.d.ts +1 -1
  111. package/dist/{shared/foundation → core}/types/lp-inspect.d.ts +1 -1
  112. package/dist/{shared/foundation → core}/types/private-sale.d.ts +1 -1
  113. package/dist/{utils/types/erc20.d.ts → core/types-erc20.d.ts} +1 -1
  114. package/dist/{dex → domains/dex}/direct-router-helpers.d.ts +1 -1
  115. package/dist/{dex → domains/dex}/direct-router-helpers.js +4 -4
  116. package/dist/{dex → domains/dex}/direct-router.js +6 -6
  117. package/dist/{dex → domains/dex}/types.d.ts +1 -1
  118. package/dist/{shared → domains}/flap/constants.d.ts +1 -1
  119. package/dist/{shared → domains}/flap/constants.js +1 -1
  120. package/dist/{shared → domains}/flap/errors.js +1 -1
  121. package/dist/{flap → domains/flap}/index.d.ts +5 -9
  122. package/dist/domains/flap/index.js +5 -0
  123. package/dist/{shared → domains}/flap/meta.js +2 -2
  124. package/dist/{shared → domains}/flap/permit.js +2 -2
  125. package/dist/{shared → domains}/flap/portal-bundle-merkle/config.d.ts +2 -2
  126. package/dist/{shared → domains}/flap/portal-bundle-merkle/config.js +4 -4
  127. package/dist/{shared → domains}/flap/portal-bundle-merkle/core-helpers.js +3 -3
  128. package/dist/{shared → domains}/flap/portal-bundle-merkle/core.js +4 -4
  129. package/dist/{shared → domains}/flap/portal-bundle-merkle/create-to-dex.js +3 -3
  130. package/dist/{shared → domains}/flap/portal-bundle-merkle/curve-to-dex.js +4 -4
  131. package/dist/{shared → domains}/flap/portal-bundle-merkle/pancake-proxy.js +4 -4
  132. package/dist/{shared → domains}/flap/portal-bundle-merkle/private.js +3 -3
  133. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-batch.js +2 -2
  134. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first-helpers.js +3 -3
  135. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first.js +7 -7
  136. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-cross.js +1 -1
  137. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-helpers.js +3 -3
  138. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-planning.js +5 -5
  139. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-quick-batch.js +4 -4
  140. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-single.js +2 -2
  141. package/dist/{shared → domains}/flap/portal-bundle-merkle/utils.js +3 -3
  142. package/dist/{shared → domains}/flap/portal-bundle.d.ts +2 -2
  143. package/dist/{shared → domains}/flap/portal-bundle.js +3 -3
  144. package/dist/{shared → domains}/flap/portal-create-token.js +1 -1
  145. package/dist/{shared → domains}/flap/vault.js +1 -1
  146. package/dist/{flows → domains/flows}/create.js +2 -2
  147. package/dist/{contracts → domains/four/contracts}/helper3.js +2 -2
  148. package/dist/{contracts → domains/four/contracts}/tm-bundle-helpers.d.ts +4 -4
  149. package/dist/{contracts → domains/four/contracts}/tm-bundle-helpers.js +3 -3
  150. package/dist/{contracts → domains/four/contracts}/tm-bundle.d.ts +2 -2
  151. package/dist/{contracts → domains/four/contracts}/tm-bundle.js +7 -7
  152. package/dist/{contracts → domains/four/contracts}/tm.d.ts +1 -1
  153. package/dist/{contracts → domains/four/contracts}/tm.js +4 -4
  154. package/dist/{contracts → domains/four/contracts}/tm1.js +2 -2
  155. package/dist/{contracts → domains/four/contracts}/tm2.js +2 -2
  156. package/dist/domains/four/index.d.ts +7 -0
  157. package/dist/domains/four/index.js +7 -0
  158. package/dist/{shared → domains}/four/tax-token.js +1 -1
  159. package/dist/{utils → domains/holders}/holders-maker-helpers.d.ts +7 -7
  160. package/dist/{utils → domains/holders}/holders-maker-helpers.js +7 -7
  161. package/dist/{utils → domains/holders}/holders-maker.d.ts +2 -2
  162. package/dist/{utils → domains/holders}/holders-maker.js +4 -4
  163. package/dist/domains/holders/index.d.ts +1 -0
  164. package/dist/domains/holders/index.js +1 -0
  165. package/dist/{utils/holders-maker → domains/holders/internal}/addresses.js +1 -1
  166. package/dist/{utils/holders-maker → domains/holders/internal}/buy-tx.d.ts +1 -1
  167. package/dist/{utils/holders-maker → domains/holders/internal}/buy-tx.js +4 -4
  168. package/dist/{utils/holders-maker → domains/holders/internal}/constants.js +1 -1
  169. package/dist/{utils/holders-maker → domains/holders/internal}/disperse.d.ts +4 -4
  170. package/dist/{utils/holders-maker → domains/holders/internal}/disperse.js +2 -2
  171. package/dist/{utils/holders-maker → domains/holders/internal}/routing.d.ts +1 -1
  172. package/dist/{utils/holders-maker → domains/holders/internal}/routing.js +1 -1
  173. package/dist/{utils/holders-maker → domains/holders/internal}/transfer-tx.js +2 -2
  174. package/dist/{utils/types/holders-maker.d.ts → domains/holders/types.d.ts} +1 -1
  175. package/dist/domains/lp-inspect/index.d.ts +1 -0
  176. package/dist/domains/lp-inspect/index.js +1 -0
  177. package/dist/{utils → domains/lp-inspect}/lp-inspect-helpers.d.ts +1 -1
  178. package/dist/{utils → domains/lp-inspect}/lp-inspect-helpers.js +1 -1
  179. package/dist/{utils → domains/lp-inspect}/lp-inspect.d.ts +2 -2
  180. package/dist/{utils → domains/lp-inspect}/lp-inspect.js +6 -6
  181. package/dist/{utils/types/lp-inspect.d.ts → domains/lp-inspect/types.d.ts} +1 -1
  182. package/dist/{merkle → domains/merkle}/index.d.ts +7 -7
  183. package/dist/domains/merkle/index.js +11 -0
  184. package/dist/domains/private-sale/index.d.ts +1 -0
  185. package/dist/domains/private-sale/index.js +1 -0
  186. package/dist/{utils → domains/private-sale}/private-sale.d.ts +2 -2
  187. package/dist/{utils → domains/private-sale}/private-sale.js +2 -2
  188. package/dist/domains/private-sale/types.d.ts +1 -0
  189. package/dist/domains/quote/index.d.ts +1 -0
  190. package/dist/domains/quote/index.js +1 -0
  191. package/dist/{utils → domains/quote}/quote-helpers.d.ts +3 -3
  192. package/dist/{utils → domains/quote}/quote-helpers.js +2 -2
  193. package/dist/{utils/types/quote-helpers.d.ts → domains/quote/types.d.ts} +1 -1
  194. package/dist/domains/vanity/index.d.ts +5 -0
  195. package/dist/domains/vanity/index.js +5 -0
  196. package/dist/exports/root-bundle-and-tooling.d.ts +11 -11
  197. package/dist/exports/root-bundle-and-tooling.js +11 -11
  198. package/dist/exports/root-foundations.d.ts +21 -21
  199. package/dist/exports/root-foundations.js +21 -21
  200. package/dist/exports/root-swap-dex-and-xlayer.d.ts +10 -10
  201. package/dist/exports/root-swap-dex-and-xlayer.js +8 -8
  202. package/dist/index.d.ts +7 -10
  203. package/dist/index.js +7 -10
  204. package/dist/utils/airdrop-sweep.js +3 -3
  205. package/dist/utils/bundle-helpers.d.ts +7 -7
  206. package/dist/utils/bundle-helpers.js +7 -7
  207. package/dist/utils/constants.d.ts +2 -2
  208. package/dist/utils/constants.js +2 -2
  209. package/dist/utils/contract-factory.js +1 -1
  210. package/dist/utils/errors.d.ts +2 -2
  211. package/dist/utils/errors.js +3 -3
  212. package/dist/utils/hop-chains.d.ts +1 -1
  213. package/dist/utils/hop-chains.js +2 -2
  214. package/dist/utils/index.d.ts +5 -0
  215. package/dist/utils/index.js +5 -0
  216. package/dist/utils/mpcExclusive.js +1 -1
  217. package/dist/utils/stealth-transfer.js +2 -2
  218. package/dist/utils/swap-helpers.d.ts +1 -1
  219. package/dist/utils/swap-helpers.js +1 -1
  220. package/dist/utils/types/airdrop-sweep.d.ts +1 -1
  221. package/dist/utils/types/index.d.ts +6 -6
  222. package/dist/utils/types/stealth-transfer.d.ts +1 -1
  223. package/dist/utils/wallet.d.ts +2 -2
  224. package/dist/utils/wallet.js +3 -3
  225. package/package.json +52 -56
  226. package/dist/__tests__/subpath-exports.test.js +0 -64
  227. package/dist/bundle-core/__tests__/config-helpers.test.js +0 -28
  228. package/dist/bundle-core/__tests__/facade-parity.test.js +0 -33
  229. package/dist/bundle-core/__tests__/sign-context-helpers.test.js +0 -60
  230. package/dist/bundle-core/__tests__/sign-fixture.test.d.ts +0 -1
  231. package/dist/bundle-core/__tests__/sign-fixture.test.js +0 -220
  232. package/dist/bundle-core/__tests__/sign-fixtures.d.ts +0 -10
  233. package/dist/bundle-core/__tests__/sign-fixtures.js +0 -16
  234. package/dist/contracts/tm-bundle-merkle/approve-tokenmanager.d.ts +0 -1
  235. package/dist/contracts/tm-bundle-merkle/approve-tokenmanager.js +0 -1
  236. package/dist/contracts/tm-bundle-merkle/config.d.ts +0 -8
  237. package/dist/contracts/tm-bundle-merkle/config.js +0 -2
  238. package/dist/contracts/tm-bundle-merkle/core.d.ts +0 -1
  239. package/dist/contracts/tm-bundle-merkle/core.js +0 -1
  240. package/dist/contracts/tm-bundle-merkle/index.d.ts +0 -15
  241. package/dist/contracts/tm-bundle-merkle/index.js +0 -29
  242. package/dist/contracts/tm-bundle-merkle/internal.d.ts +0 -4
  243. package/dist/contracts/tm-bundle-merkle/internal.js +0 -4
  244. package/dist/contracts/tm-bundle-merkle/pancake-proxy.d.ts +0 -1
  245. package/dist/contracts/tm-bundle-merkle/pancake-proxy.js +0 -1
  246. package/dist/contracts/tm-bundle-merkle/private.d.ts +0 -1
  247. package/dist/contracts/tm-bundle-merkle/private.js +0 -1
  248. package/dist/contracts/tm-bundle-merkle/submit.d.ts +0 -3
  249. package/dist/contracts/tm-bundle-merkle/submit.js +0 -3
  250. package/dist/contracts/tm-bundle-merkle/swap-buy-first.d.ts +0 -4
  251. package/dist/contracts/tm-bundle-merkle/swap-buy-first.js +0 -4
  252. package/dist/contracts/tm-bundle-merkle/swap-internal.d.ts +0 -1
  253. package/dist/contracts/tm-bundle-merkle/swap-internal.js +0 -1
  254. package/dist/contracts/tm-bundle-merkle/swap.d.ts +0 -4
  255. package/dist/contracts/tm-bundle-merkle/swap.js +0 -4
  256. package/dist/contracts/tm-bundle-merkle/types.d.ts +0 -1
  257. package/dist/contracts/tm-bundle-merkle/utils-disperse.d.ts +0 -1
  258. package/dist/contracts/tm-bundle-merkle/utils-disperse.js +0 -1
  259. package/dist/contracts/tm-bundle-merkle/utils-pairwise.d.ts +0 -1
  260. package/dist/contracts/tm-bundle-merkle/utils-pairwise.js +0 -1
  261. package/dist/contracts/tm-bundle-merkle/utils-sweep.d.ts +0 -1
  262. package/dist/contracts/tm-bundle-merkle/utils-sweep.js +0 -1
  263. package/dist/contracts/tm-bundle-merkle/utils.d.ts +0 -8
  264. package/dist/contracts/tm-bundle-merkle/utils.js +0 -8
  265. package/dist/flap/index.js +0 -9
  266. package/dist/merkle/index.js +0 -11
  267. package/dist/shared/abis/TaxToken.json +0 -105
  268. package/dist/shared/abis/TokenManager.json +0 -836
  269. package/dist/shared/abis/TokenManager2.json +0 -60
  270. package/dist/shared/abis/TokenManagerHelper3.json +0 -993
  271. package/dist/shared/flap/graduated-dex.d.ts +0 -1
  272. package/dist/shared/flap/graduated-dex.js +0 -1
  273. package/dist/shared/flap/launch-v6.d.ts +0 -127
  274. package/dist/shared/flap/launch-v6.js +0 -123
  275. package/dist/shared/four/index.d.ts +0 -7
  276. package/dist/shared/four/index.js +0 -22
  277. package/dist/shared/index.d.ts +0 -16
  278. package/dist/shared/index.js +0 -14
  279. package/dist/utils/pcs-infinity-cl.d.ts +0 -65
  280. package/dist/utils/pcs-infinity-cl.js +0 -390
  281. package/dist/utils/types/erc20.js +0 -1
  282. package/dist/utils/types/holders-maker.js +0 -1
  283. package/dist/utils/types/lp-inspect.js +0 -1
  284. package/dist/utils/types/private-sale.d.ts +0 -1
  285. package/dist/utils/types/private-sale.js +0 -1
  286. package/dist/utils/types/quote-helpers.js +0 -1
  287. package/dist/vanity/index.d.ts +0 -5
  288. package/dist/vanity/index.js +0 -5
  289. /package/dist/{bundle-core → bundle}/errors.d.ts +0 -0
  290. /package/dist/{bundle-core → bundle}/errors.js +0 -0
  291. /package/dist/{bundle-core → bundle}/four-meme/approve-tokenmanager.d.ts +0 -0
  292. /package/dist/{bundle-core → bundle}/four-meme/core.d.ts +0 -0
  293. /package/dist/{bundle-core → bundle}/four-meme/pancake-proxy.d.ts +0 -0
  294. /package/dist/{bundle-core → bundle}/four-meme/private.d.ts +0 -0
  295. /package/dist/{bundle-core → bundle}/four-meme/swap-buy-first.d.ts +0 -0
  296. /package/dist/{bundle-core → bundle}/four-meme/swap-hop-helpers.d.ts +0 -0
  297. /package/dist/{bundle-core → bundle}/four-meme/swap-hop-helpers.js +0 -0
  298. /package/dist/{bundle-core → bundle}/four-meme/swap-internal.d.ts +0 -0
  299. /package/dist/{bundle-core → bundle}/four-meme/swap-sign-helpers.d.ts +0 -0
  300. /package/dist/{bundle-core → bundle}/four-meme/swap.d.ts +0 -0
  301. /package/dist/{bundle-core → bundle}/four-meme/swap.js +0 -0
  302. /package/dist/{bundle-core → bundle}/four-meme/types/buy-first.d.ts +0 -0
  303. /package/dist/{bundle-core → bundle}/four-meme/types/buy-first.js +0 -0
  304. /package/dist/{bundle-core → bundle}/four-meme/types/core-flow.d.ts +0 -0
  305. /package/dist/{bundle-core → bundle}/four-meme/types/core-flow.js +0 -0
  306. /package/dist/{bundle-core → bundle}/four-meme/types/index.js +0 -0
  307. /package/dist/{bundle-core → bundle}/four-meme/types/swap-internal.d.ts +0 -0
  308. /package/dist/{bundle-core → bundle}/four-meme/types/swap-internal.js +0 -0
  309. /package/dist/{bundle-core → bundle}/four-meme/types.d.ts +0 -0
  310. /package/dist/{bundle-core → bundle}/four-meme/types.js +0 -0
  311. /package/dist/{bundle-core → bundle}/four-meme/utils-disperse.d.ts +0 -0
  312. /package/dist/{bundle-core → bundle}/four-meme/utils-pairwise.d.ts +0 -0
  313. /package/dist/{bundle-core → bundle}/four-meme/utils-sweep.d.ts +0 -0
  314. /package/dist/{bundle-core → bundle}/index.d.ts +0 -0
  315. /package/dist/{bundle-core → bundle}/index.js +0 -0
  316. /package/dist/{bundle-core → bundle}/sign-context-helpers.d.ts +0 -0
  317. /package/dist/{bundle-core → bundle}/submit.d.ts +0 -0
  318. /package/dist/{bundle-core → bundle}/types/index.d.ts +0 -0
  319. /package/dist/{bundle-core → bundle}/types/index.js +0 -0
  320. /package/dist/{bundle-core → bundle}/types.d.ts +0 -0
  321. /package/dist/{bundle-core → bundle}/types.js +0 -0
  322. /package/dist/{shared/foundation → core}/amount/split-by-weight.d.ts +0 -0
  323. /package/dist/{shared/foundation → core}/amount/split-by-weight.js +0 -0
  324. /package/dist/{shared → core}/clients/blockrazor.d.ts +0 -0
  325. /package/dist/{shared → core}/clients/club48.d.ts +0 -0
  326. /package/dist/{shared → core}/clients/club48.js +0 -0
  327. /package/dist/{shared → core}/clients/emitservice.d.ts +0 -0
  328. /package/dist/{shared → core}/clients/emitservice.js +0 -0
  329. /package/dist/{shared → core}/clients/four.d.ts +0 -0
  330. /package/dist/{shared → core}/clients/index.d.ts +0 -0
  331. /package/dist/{shared → core}/clients/index.js +0 -0
  332. /package/dist/{shared → core}/clients/merkle.d.ts +0 -0
  333. /package/dist/{shared → core}/constants/addresses.d.ts +0 -0
  334. /package/dist/{shared → core}/constants/addresses.js +0 -0
  335. /package/dist/{shared → core}/constants/chains.d.ts +0 -0
  336. /package/dist/{shared → core}/constants/chains.js +0 -0
  337. /package/dist/{shared → core}/constants/gas.d.ts +0 -0
  338. /package/dist/{shared → core}/constants/gas.js +0 -0
  339. /package/dist/{shared → core}/constants/profit.d.ts +0 -0
  340. /package/dist/{shared → core}/constants/profit.js +0 -0
  341. /package/dist/{shared → core}/constants/quote.d.ts +0 -0
  342. /package/dist/{shared → core}/constants/quote.js +0 -0
  343. /package/dist/{shared/foundation → core}/dex/v3-path.d.ts +0 -0
  344. /package/dist/{shared/foundation → core}/erc20/decimals.d.ts +0 -0
  345. /package/dist/{shared/foundation → core}/erc20/decimals.js +0 -0
  346. /package/dist/{shared/foundation/index.d.ts → core/foundation.d.ts} +0 -0
  347. /package/dist/{shared/foundation/index.js → core/foundation.js} +0 -0
  348. /package/dist/{shared/foundation → core}/gas/bundle-gas.d.ts +0 -0
  349. /package/dist/{shared/foundation → core}/gas/bundle-gas.js +0 -0
  350. /package/dist/{shared/foundation → core}/gas/profit-hop.d.ts +0 -0
  351. /package/dist/{types → core/legacy-types}/errors.d.ts +0 -0
  352. /package/dist/{types → core/legacy-types}/errors.js +0 -0
  353. /package/dist/{shared/foundation → core}/nonce/nonce-manager.d.ts +0 -0
  354. /package/dist/{shared/foundation → core}/normalize-unknown.d.ts +0 -0
  355. /package/dist/{shared/foundation → core}/normalize-unknown.js +0 -0
  356. /package/dist/{shared/foundation → core}/sdk-logger.d.ts +0 -0
  357. /package/dist/{shared/foundation → core}/sdk-logger.js +0 -0
  358. /package/dist/{shared/abis → core/shared-abis}/common.d.ts +0 -0
  359. /package/dist/{shared/abis → core/shared-abis}/common.js +0 -0
  360. /package/dist/{shared/abis → core/shared-abis}/index.d.ts +0 -0
  361. /package/dist/{shared/abis → core/shared-abis}/index.js +0 -0
  362. /package/dist/{shared/foundation → core}/tx/build-request.d.ts +0 -0
  363. /package/dist/{shared/foundation → core}/tx/build-request.js +0 -0
  364. /package/dist/{shared/foundation → core}/tx/sign-batch.d.ts +0 -0
  365. /package/dist/{shared/foundation → core}/tx/sign-batch.js +0 -0
  366. /package/dist/{shared/foundation → core}/tx/wallet-sign-patch.d.ts +0 -0
  367. /package/dist/{shared/foundation → core}/tx/wallet-sign-patch.js +0 -0
  368. /package/dist/{shared/foundation → core}/types/airdrop-sweep.js +0 -0
  369. /package/dist/{shared/foundation → core}/types/erc20.d.ts +0 -0
  370. /package/dist/{shared/foundation → core}/types/erc20.js +0 -0
  371. /package/dist/{shared/foundation → core}/types/holders-maker.js +0 -0
  372. /package/dist/{shared/foundation → core}/types/index.d.ts +0 -0
  373. /package/dist/{shared/foundation → core}/types/index.js +0 -0
  374. /package/dist/{shared/foundation → core}/types/lp-inspect.js +0 -0
  375. /package/dist/{shared/foundation → core}/types/multicall.d.ts +0 -0
  376. /package/dist/{shared/foundation → core}/types/multicall.js +0 -0
  377. /package/dist/{shared/foundation → core}/types/private-sale.js +0 -0
  378. /package/dist/{shared/foundation → core}/types/quote-helpers.d.ts +0 -0
  379. /package/dist/{shared/foundation → core}/types/quote-helpers.js +0 -0
  380. /package/dist/{__tests__/subpath-exports.test.d.ts → core/types-erc20.js} +0 -0
  381. /package/dist/{shared/foundation → core}/wallet/generate.d.ts +0 -0
  382. /package/dist/{shared/foundation → core}/wallet/generate.js +0 -0
  383. /package/dist/{dex → domains/dex}/direct-router.d.ts +0 -0
  384. /package/dist/{dex → domains/dex}/index.d.ts +0 -0
  385. /package/dist/{dex → domains/dex}/index.js +0 -0
  386. /package/dist/{contracts/tm-bundle-merkle → domains/dex}/types.js +0 -0
  387. /package/dist/{shared → domains}/flap/abi.d.ts +0 -0
  388. /package/dist/{shared → domains}/flap/abi.js +0 -0
  389. /package/dist/{shared → domains}/flap/curve.d.ts +0 -0
  390. /package/dist/{shared → domains}/flap/curve.js +0 -0
  391. /package/dist/{shared → domains}/flap/errors.d.ts +0 -0
  392. /package/dist/{shared → domains}/flap/ipfs.d.ts +0 -0
  393. /package/dist/{shared → domains}/flap/ipfs.js +0 -0
  394. /package/dist/{shared → domains}/flap/meta.d.ts +0 -0
  395. /package/dist/{shared/flap/index.d.ts → domains/flap/module.d.ts} +0 -0
  396. /package/dist/{shared/flap/index.js → domains/flap/module.js} +0 -0
  397. /package/dist/{shared → domains}/flap/permit.d.ts +0 -0
  398. /package/dist/{shared → domains}/flap/pinata.d.ts +0 -0
  399. /package/dist/{shared → domains}/flap/pinata.js +0 -0
  400. /package/dist/{shared → domains}/flap/portal-bundle-merkle/core-helpers.d.ts +0 -0
  401. /package/dist/{shared → domains}/flap/portal-bundle-merkle/core.d.ts +0 -0
  402. /package/dist/{shared → domains}/flap/portal-bundle-merkle/create-to-dex.d.ts +0 -0
  403. /package/dist/{shared → domains}/flap/portal-bundle-merkle/curve-to-dex.d.ts +0 -0
  404. /package/dist/{shared → domains}/flap/portal-bundle-merkle/index.d.ts +0 -0
  405. /package/dist/{shared → domains}/flap/portal-bundle-merkle/index.js +0 -0
  406. /package/dist/{shared → domains}/flap/portal-bundle-merkle/pancake-proxy.d.ts +0 -0
  407. /package/dist/{shared → domains}/flap/portal-bundle-merkle/private.d.ts +0 -0
  408. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-batch.d.ts +0 -0
  409. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first-helpers.d.ts +0 -0
  410. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first.d.ts +0 -0
  411. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-cross.d.ts +0 -0
  412. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-helpers.d.ts +0 -0
  413. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-planning.d.ts +0 -0
  414. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-quick-batch.d.ts +0 -0
  415. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-single.d.ts +0 -0
  416. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-types.d.ts +0 -0
  417. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-types.js +0 -0
  418. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap.d.ts +0 -0
  419. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap.js +0 -0
  420. /package/dist/{shared → domains}/flap/portal-bundle-merkle/types.d.ts +0 -0
  421. /package/dist/{dex → domains/flap/portal-bundle-merkle}/types.js +0 -0
  422. /package/dist/{shared → domains}/flap/portal-bundle-merkle/utils.d.ts +0 -0
  423. /package/dist/{shared → domains}/flap/portal-create-token.d.ts +0 -0
  424. /package/dist/{shared → domains}/flap/portal.d.ts +0 -0
  425. /package/dist/{shared → domains}/flap/portal.js +0 -0
  426. /package/dist/{shared → domains}/flap/vanity.d.ts +0 -0
  427. /package/dist/{shared → domains}/flap/vanity.js +0 -0
  428. /package/dist/{shared → domains}/flap/vault.d.ts +0 -0
  429. /package/dist/{flows → domains/flows}/create.d.ts +0 -0
  430. /package/dist/{flows → domains/flows}/index.d.ts +0 -0
  431. /package/dist/{flows → domains/flows}/index.js +0 -0
  432. /package/dist/{contracts → domains/four/contracts}/helper3.d.ts +0 -0
  433. /package/dist/{contracts → domains/four/contracts}/tm1.d.ts +0 -0
  434. /package/dist/{contracts → domains/four/contracts}/tm2.d.ts +0 -0
  435. /package/dist/{shared → domains}/four/tax-token.d.ts +0 -0
  436. /package/dist/{utils/holders-maker → domains/holders/internal}/addresses.d.ts +0 -0
  437. /package/dist/{utils/holders-maker → domains/holders/internal}/constants.d.ts +0 -0
  438. /package/dist/{utils/holders-maker → domains/holders/internal}/transfer-tx.d.ts +0 -0
  439. /package/dist/{shared/flap/portal-bundle-merkle → domains/holders}/types.js +0 -0
  440. /package/dist/{bundle-core/__tests__/config-helpers.test.d.ts → domains/lp-inspect/types.js} +0 -0
  441. /package/dist/{bundle-core/__tests__/facade-parity.test.d.ts → domains/private-sale/types.js} +0 -0
  442. /package/dist/{bundle-core/__tests__/sign-context-helpers.test.d.ts → domains/quote/types.js} +0 -0
@@ -5,25 +5,25 @@
5
5
  * v2:包根不再导出 `PROFIT_CONFIG` / 报价 `V3_FEE_TIERS`;迁移说明见 README.zh-CN.md。
6
6
  */
7
7
  export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle, type FourSwapSignConfig, type FourSwapConfig, type FourBundleSwapSignParams, type FourBundleSwapParams, type FourSwapResult, type FourBatchSwapSignParams, type FourBatchSwapResult, type FourQuickBatchSwapSignParams, type FourQuickBatchSwapResult, } from '../chains/bsc/four/swap.js';
8
- export { flapBundleSwapMerkle, flapBatchSwapMerkle, flapQuickBatchSwapMerkle, flapCrossSwapMerkle, } from '../shared/flap/portal-bundle-merkle/swap.js';
9
- export type { FlapSwapSignConfig, FlapSwapConfig, FlapBundleSwapSignParams, FlapBundleSwapParams, FlapSwapResult, } from '../shared/flap/portal-bundle-merkle/swap-helpers.js';
10
- export type { FlapBatchSwapSignParams, FlapBatchSwapResult, FlapQuickBatchSwapSignParams, FlapQuickBatchSwapResult, FlapCrossSwapParams, FlapCrossSwapResult, } from '../shared/flap/portal-bundle-merkle/swap.js';
8
+ export { flapBundleSwapMerkle, flapBatchSwapMerkle, flapQuickBatchSwapMerkle, flapCrossSwapMerkle, } from '../domains/flap/portal-bundle-merkle/swap.js';
9
+ export type { FlapSwapSignConfig, FlapSwapConfig, FlapBundleSwapSignParams, FlapBundleSwapParams, FlapSwapResult, } from '../domains/flap/portal-bundle-merkle/swap-helpers.js';
10
+ export type { FlapBatchSwapSignParams, FlapBatchSwapResult, FlapQuickBatchSwapSignParams, FlapQuickBatchSwapResult, FlapCrossSwapParams, FlapCrossSwapResult, } from '../domains/flap/portal-bundle-merkle/swap.js';
11
11
  export { pancakeBundleSwapMerkle, pancakeBatchSwapMerkle, pancakeQuickBatchSwapMerkle, pancakeCrossSwapMerkle, type PancakeBatchSwapSignParams, type PancakeBatchSwapResult, type PancakeQuickBatchSwapParams, type PancakeQuickBatchSwapResult, type PancakeCrossSwapParams, type PancakeCrossSwapResult, } from '../chains/bsc/pancake/bundle-swap.js';
12
12
  export type { PancakeSwapSignConfig, PancakeSwapConfig, PancakeBundleSwapSignParams, PancakeBundleSwapParams, PancakeSwapResult, SwapRouteType, RouteParams, V2RouteParams, V3SingleRouteParams, V3MultiRouteParams, } from '../chains/bsc/pancake/bundle-swap-helpers.js';
13
13
  export { fourBundleBuyFirstMerkle, type FourBuyFirstConfig, type FourBundleBuyFirstParams, type FourBuyFirstSignConfig, type FourBundleBuyFirstSignParams, type FourBuyFirstResult, } from '../chains/bsc/four/swap-buy-first.js';
14
- export { flapBundleBuyFirstMerkle } from '../shared/flap/portal-bundle-merkle/swap-buy-first.js';
15
- export type { FlapBuyFirstSignConfig, FlapBuyFirstConfig, FlapBundleBuyFirstSignParams, FlapBundleBuyFirstParams, FlapBuyFirstResult, } from '../shared/flap/portal-bundle-merkle/swap-buy-first-helpers.js';
14
+ export { flapBundleBuyFirstMerkle } from '../domains/flap/portal-bundle-merkle/swap-buy-first.js';
15
+ export type { FlapBuyFirstSignConfig, FlapBuyFirstConfig, FlapBundleBuyFirstSignParams, FlapBundleBuyFirstParams, FlapBuyFirstResult, } from '../domains/flap/portal-bundle-merkle/swap-buy-first-helpers.js';
16
16
  export { pancakeBundleBuyFirstMerkle } from '../chains/bsc/pancake/bundle-buy-first.js';
17
17
  export type { PancakeBuyFirstSignConfig, PancakeBuyFirstConfig, PancakeBundleBuyFirstSignParams, PancakeBundleBuyFirstParams, PancakeBuyFirstResult, } from '../chains/bsc/pancake/bundle-buy-first-helpers.js';
18
- export { flapBundleCurveToDex, type CurveToDexChain, type DexPoolType, type CurveToDexSignConfig, type CurveBuyerConfig, type DexBuyerConfig, type FlapCurveToDexParams, type FlapCurveToDexResult, } from '../shared/flap/portal-bundle-merkle/curve-to-dex.js';
19
- export { flapBundleCreateToDex, type CreateToDexChain, type CreateToDexSignConfig, type CreateTokenInfo, type FlapCreateToDexParams, type FlapCreateToDexResult, } from '../shared/flap/portal-bundle-merkle/create-to-dex.js';
20
- export { NONE_EXTENSION_ID, VAULT_TYPE_LABELS, VAULT_TYPE_CATEGORIES, VAULT_FACTORY_ADDRESSES, VAULT_PORTAL_ADDRESSES, VAULT_PORTAL_ABI, VAULT_EXTRA_CONFIG, FLAP_GUARDIAN_ADDRESSES, VAULT_FACTORY_ABI, VAULT_FACTORY_V2_ABI, VAULT_BASE_ABI, VAULT_BASE_V2_ABI, type VaultType, type TaxVaultConfig, type VaultInfo, type FieldDescriptor, type VaultDataSchema, type ApproveAction, type VaultMethodSchema, type VaultUISchema, encodeVaultData, buildVaultParams, buildVaultExtensionParams, getVaultFactoryAddress, getVaultPortalAddress, queryVaultDataSchema, queryVaultUISchema, queryVaultDescription, validateVaultFactory, getVaultInfo, isValidContract, } from '../shared/flap/vault.js';
18
+ export { flapBundleCurveToDex, type CurveToDexChain, type DexPoolType, type CurveToDexSignConfig, type CurveBuyerConfig, type DexBuyerConfig, type FlapCurveToDexParams, type FlapCurveToDexResult, } from '../domains/flap/portal-bundle-merkle/curve-to-dex.js';
19
+ export { flapBundleCreateToDex, type CreateToDexChain, type CreateToDexSignConfig, type CreateTokenInfo, type FlapCreateToDexParams, type FlapCreateToDexResult, } from '../domains/flap/portal-bundle-merkle/create-to-dex.js';
20
+ export { NONE_EXTENSION_ID, VAULT_TYPE_LABELS, VAULT_TYPE_CATEGORIES, VAULT_FACTORY_ADDRESSES, VAULT_PORTAL_ADDRESSES, VAULT_PORTAL_ABI, VAULT_EXTRA_CONFIG, FLAP_GUARDIAN_ADDRESSES, VAULT_FACTORY_ABI, VAULT_FACTORY_V2_ABI, VAULT_BASE_ABI, VAULT_BASE_V2_ABI, type VaultType, type TaxVaultConfig, type VaultInfo, type FieldDescriptor, type VaultDataSchema, type ApproveAction, type VaultMethodSchema, type VaultUISchema, encodeVaultData, buildVaultParams, buildVaultExtensionParams, getVaultFactoryAddress, getVaultPortalAddress, queryVaultDataSchema, queryVaultUISchema, queryVaultDescription, validateVaultFactory, getVaultInfo, isValidContract, } from '../domains/flap/vault.js';
21
21
  export { quoteV2, quoteV3, quote, getTokenToNativeQuote, getNativeToTokenQuote,
22
22
  /** 链名字符串版 WETH/WBNB 地址(与 shared/constants.getWrappedNativeAddress(chainId) 签名不同) */
23
- getWrappedNativeAddress, getStableCoins, } from '../utils/quote-helpers.js';
23
+ getWrappedNativeAddress, getStableCoins, } from '../domains/quote/quote-helpers.js';
24
24
  export { submitDirectToRpc, submitDirectToRpcSequential, submitDirectToRpcSequentialNoWait, submitDirectToRpcParallel, submitDirectToRpcSmart, submitDirectToRpcSmart as xlayerBundleSubmit, type DirectSubmitConfig, type DirectSubmitResult, type DirectTxResult, } from '../chains/bsc/four/submit.js';
25
25
  export { submitBundleToEni, submitEniParallelThenProfit, type EniBundleSubmitConfig, type EniBundleSubmitResult, } from '../chains/eni/submit.js';
26
- export { directV2BatchBuy, directV2BatchSell, directV3BatchBuy, directV3BatchSell, getRouterAddress, DIRECT_ROUTERS, type DirectV2BuyParams, type DirectV2SellParams, type DirectV3BuyParams, type DirectV3SellParams, type DirectRouterResult, type DirectRouterSignConfig, type DexKey, type RouterVersion, } from '../dex/index.js';
26
+ export { directV2BatchBuy, directV2BatchSell, directV3BatchBuy, directV3BatchSell, getRouterAddress, DIRECT_ROUTERS, type DirectV2BuyParams, type DirectV2SellParams, type DirectV3BuyParams, type DirectV3SellParams, type DirectRouterResult, type DirectRouterSignConfig, type DexKey, type RouterVersion, } from '../domains/dex/index.js';
27
27
  export * as XLayer from '../chains/xlayer/eoa/index.js';
28
28
  export { createPortalQuery as xlayerCreatePortalQuery, PortalQuery as XLayerPortalQuery, encodeBuyCall as xlayerEncodeBuyCall, encodeSellCall as xlayerEncodeSellCall, encodeApproveCall as xlayerEncodeApproveCall, parseOkb as xlayerParseOkb, formatOkb as xlayerFormatOkb, XLAYER_CHAIN_ID, FLAP_PORTAL as XLAYER_FLAP_PORTAL, ENTRYPOINT_V06 as XLAYER_ENTRYPOINT, SIMPLE_ACCOUNT_FACTORY as XLAYER_FACTORY, PARTICLE_BUNDLER_URL as XLAYER_BUNDLER_URL, WOKB as XLAYER_WOKB, POTATOSWAP_V2_ROUTER as XLAYER_POTATOSWAP_ROUTER, signEoaWashBuyTransactions as xlayerSignEoaWashBuyTransactions, signEoaWashSellTransactions as xlayerSignEoaWashSellTransactions, signEoaWashVolumeTransactions as xlayerSignEoaWashVolumeTransactions, type EoaWashPoolType as XLayerEoaWashPoolType, type EoaWashVolumeParams as XLayerEoaWashVolumeParams, type EoaWashVolumeResult as XLayerEoaWashVolumeResult, xlayerQuickBatchSwapMerkle, xlayerCrossSwapMerkle, xlayerPureCrossSwapMerkle, type XLayerEoaSwapConfig, type XLayerQuickBatchSwapParams, type XLayerQuickBatchSwapResult, type XLayerCrossSwapParams, type XLayerCrossSwapResult, type XLayerPureCrossSwapParams, type XLayerPureCrossSwapResult, type BundleSwapParams as XLayerBundleSwapParams, type BundleSwapSignParams as XLayerBundleSwapSignParams, type BundleBatchSwapParams as XLayerBundleBatchSwapParams, type BundleBatchSwapSignParams as XLayerBundleBatchSwapSignParams, type BuyFirstParams as XLayerBuyFirstParams, type BuyFirstResult as XLayerBuyFirstResult, } from '../chains/xlayer/eoa/index.js';
29
29
  export * as XLayerEIP7702 from '../chains/xlayer/eip7702/index.js';
@@ -10,23 +10,23 @@
10
10
  // Four内盘换手
11
11
  export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle, } from '../chains/bsc/four/swap.js';
12
12
  // Flap内盘换手
13
- export { flapBundleSwapMerkle, flapBatchSwapMerkle, flapQuickBatchSwapMerkle, flapCrossSwapMerkle, } from '../shared/flap/portal-bundle-merkle/swap.js';
13
+ export { flapBundleSwapMerkle, flapBatchSwapMerkle, flapQuickBatchSwapMerkle, flapCrossSwapMerkle, } from '../domains/flap/portal-bundle-merkle/swap.js';
14
14
  // PancakeSwap V2/V3通用换手
15
15
  export { pancakeBundleSwapMerkle, pancakeBatchSwapMerkle, pancakeQuickBatchSwapMerkle, pancakeCrossSwapMerkle, } from '../chains/bsc/pancake/bundle-swap.js';
16
16
  // 先买后卖(Buy-First)入口
17
17
  export { fourBundleBuyFirstMerkle, } from '../chains/bsc/four/swap-buy-first.js';
18
- export { flapBundleBuyFirstMerkle } from '../shared/flap/portal-bundle-merkle/swap-buy-first.js';
18
+ export { flapBundleBuyFirstMerkle } from '../domains/flap/portal-bundle-merkle/swap-buy-first.js';
19
19
  export { pancakeBundleBuyFirstMerkle } from '../chains/bsc/pancake/bundle-buy-first.js';
20
20
  // ✅ 内盘买到外盘(Bonding Curve → DEX)- 已存在代币
21
- export { flapBundleCurveToDex, } from '../shared/flap/portal-bundle-merkle/curve-to-dex.js';
21
+ export { flapBundleCurveToDex, } from '../domains/flap/portal-bundle-merkle/curve-to-dex.js';
22
22
  // ✅ 发币 + 一键买到外盘(Create → Curve → DEX)- 新代币
23
- export { flapBundleCreateToDex, } from '../shared/flap/portal-bundle-merkle/create-to-dex.js';
23
+ export { flapBundleCreateToDex, } from '../domains/flap/portal-bundle-merkle/create-to-dex.js';
24
24
  // ✅ Tax Vault 金库模块(基于 VaultPortal + VaultFactory 规范)
25
- export { NONE_EXTENSION_ID, VAULT_TYPE_LABELS, VAULT_TYPE_CATEGORIES, VAULT_FACTORY_ADDRESSES, VAULT_PORTAL_ADDRESSES, VAULT_PORTAL_ABI, VAULT_EXTRA_CONFIG, FLAP_GUARDIAN_ADDRESSES, VAULT_FACTORY_ABI, VAULT_FACTORY_V2_ABI, VAULT_BASE_ABI, VAULT_BASE_V2_ABI, encodeVaultData, buildVaultParams, buildVaultExtensionParams, getVaultFactoryAddress, getVaultPortalAddress, queryVaultDataSchema, queryVaultUISchema, queryVaultDescription, validateVaultFactory, getVaultInfo, isValidContract, } from '../shared/flap/vault.js';
26
- // ✅ V2/V3 报价工具(QUOTE_CONFIG / QUOTE_V3_FEE_TIERS 见 root-foundations / shared/constants/quote)
25
+ export { NONE_EXTENSION_ID, VAULT_TYPE_LABELS, VAULT_TYPE_CATEGORIES, VAULT_FACTORY_ADDRESSES, VAULT_PORTAL_ADDRESSES, VAULT_PORTAL_ABI, VAULT_EXTRA_CONFIG, FLAP_GUARDIAN_ADDRESSES, VAULT_FACTORY_ABI, VAULT_FACTORY_V2_ABI, VAULT_BASE_ABI, VAULT_BASE_V2_ABI, encodeVaultData, buildVaultParams, buildVaultExtensionParams, getVaultFactoryAddress, getVaultPortalAddress, queryVaultDataSchema, queryVaultUISchema, queryVaultDescription, validateVaultFactory, getVaultInfo, isValidContract, } from '../domains/flap/vault.js';
26
+ // ✅ V2/V3 报价工具(QUOTE_CONFIG / QUOTE_V3_FEE_TIERS 见 root-foundations / core/constants/quote)
27
27
  export { quoteV2, quoteV3, quote, getTokenToNativeQuote, getNativeToTokenQuote,
28
28
  /** 链名字符串版 WETH/WBNB 地址(与 shared/constants.getWrappedNativeAddress(chainId) 签名不同) */
29
- getWrappedNativeAddress, getStableCoins, } from '../utils/quote-helpers.js';
29
+ getWrappedNativeAddress, getStableCoins, } from '../domains/quote/quote-helpers.js';
30
30
  // ✅ Monad 等不支持 Bundle 的链:逐笔 RPC 广播方法(服务器端使用)
31
31
  export { submitDirectToRpc, submitDirectToRpcSequential, submitDirectToRpcSequentialNoWait, submitDirectToRpcParallel, submitDirectToRpcSmart, submitDirectToRpcSmart as xlayerBundleSubmit, } from '../chains/bsc/four/submit.js';
32
32
  // ✅ ENI Bundle 提交
@@ -42,7 +42,7 @@ directV3BatchBuy, directV3BatchSell,
42
42
  // 辅助函数
43
43
  getRouterAddress,
44
44
  // 常量
45
- DIRECT_ROUTERS, } from '../dex/index.js';
45
+ DIRECT_ROUTERS, } from '../domains/dex/index.js';
46
46
  // ============================================================
47
47
  // ✅ XLayer SDK(EOA 模式 + EIP-7702)
48
48
  // ============================================================
package/dist/index.d.ts CHANGED
@@ -1,20 +1,17 @@
1
1
  /**
2
- * SDK 公共 API 聚合入口
2
+ * SDK 公共 API 聚合入口(3.0 · 不推荐作默认消费入口)
3
3
  *
4
- * - **实现代码**分布于 `chains/`、`contracts/`、`shared/`、`utils/`、`dex/` 等目录。
5
- * - **扁平再导出**按域拆分至 `exports/root-*.ts`,避免单文件维护成本过高;修改导出时请编辑对应分片。
6
- * - **命名空间导出**(`foundation` / `bundleCore` / `flows`)供新代码按层引用;`chains` 见 `root-foundations`。
7
- *
8
- * @see README.zh-CN.md · README.md
9
- * @see 子路径:`four-flap-meme-sdk/foundation` · `four-flap-meme-sdk/bundle-core` · `four-flap-meme-sdk/flows` · `four-flap-meme-sdk/constants`
4
+ * - **实现**:`core/` · `domains/*` · `chains/` · `bundle/` · 瘦 `utils/`
5
+ * - **扁平再导出**:`exports/root-*.ts`
6
+ * - **具名 facade**:见 `package.json#exports` / docs/PUBLIC_API.md §2
10
7
  */
11
8
  export * from './exports/root-foundations.js';
12
9
  export * from './exports/root-bundle-and-tooling.js';
13
10
  export * from './exports/root-swap-dex-and-xlayer.js';
14
11
  export * from './exports/root-eni-and-bsc-iro.js';
15
12
  /** 横向基础:错误收口、Logger、共享类型、Nonce/Gas/Tx 工具 */
16
- export * as foundation from './shared/foundation/index.js';
13
+ export * as foundation from './core/foundation.js';
17
14
  /** Bundle 共享核心:internal、submit、config-helpers、four-meme 实现 */
18
- export * as bundleCore from './bundle-core/index.js';
15
+ export * as bundleCore from './bundle/index.js';
19
16
  /** 高层业务流程 */
20
- export * as flows from './flows/index.js';
17
+ export * as flows from './domains/flows/index.js';
package/dist/index.js CHANGED
@@ -1,20 +1,17 @@
1
1
  /**
2
- * SDK 公共 API 聚合入口
2
+ * SDK 公共 API 聚合入口(3.0 · 不推荐作默认消费入口)
3
3
  *
4
- * - **实现代码**分布于 `chains/`、`contracts/`、`shared/`、`utils/`、`dex/` 等目录。
5
- * - **扁平再导出**按域拆分至 `exports/root-*.ts`,避免单文件维护成本过高;修改导出时请编辑对应分片。
6
- * - **命名空间导出**(`foundation` / `bundleCore` / `flows`)供新代码按层引用;`chains` 见 `root-foundations`。
7
- *
8
- * @see README.zh-CN.md · README.md
9
- * @see 子路径:`four-flap-meme-sdk/foundation` · `four-flap-meme-sdk/bundle-core` · `four-flap-meme-sdk/flows` · `four-flap-meme-sdk/constants`
4
+ * - **实现**:`core/` · `domains/*` · `chains/` · `bundle/` · 瘦 `utils/`
5
+ * - **扁平再导出**:`exports/root-*.ts`
6
+ * - **具名 facade**:见 `package.json#exports` / docs/PUBLIC_API.md §2
10
7
  */
11
8
  export * from './exports/root-foundations.js';
12
9
  export * from './exports/root-bundle-and-tooling.js';
13
10
  export * from './exports/root-swap-dex-and-xlayer.js';
14
11
  export * from './exports/root-eni-and-bsc-iro.js';
15
12
  /** 横向基础:错误收口、Logger、共享类型、Nonce/Gas/Tx 工具 */
16
- export * as foundation from './shared/foundation/index.js';
13
+ export * as foundation from './core/foundation.js';
17
14
  /** Bundle 共享核心:internal、submit、config-helpers、four-meme 实现 */
18
- export * as bundleCore from './bundle-core/index.js';
15
+ export * as bundleCore from './bundle/index.js';
19
16
  /** 高层业务流程 */
20
- export * as flows from './flows/index.js';
17
+ export * as flows from './domains/flows/index.js';
@@ -1,7 +1,7 @@
1
1
  import { ethers, JsonRpcProvider } from 'ethers';
2
- import { GAS_LIMITS, isEniChain } from '../shared/constants/index.js';
3
- import { buildGasFields } from '../shared/foundation/gas/bundle-gas.js';
4
- import { getErc20Decimals } from '../shared/foundation/erc20/decimals.js';
2
+ import { GAS_LIMITS, isEniChain } from '../core/constants/index.js';
3
+ import { buildGasFields } from '../core/gas/bundle-gas.js';
4
+ import { getErc20Decimals } from '../core/erc20/decimals.js';
5
5
  function getTxTypeForChain(chainId) {
6
6
  return isEniChain(chainId) ? 2 : 0;
7
7
  }
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Bundle 交易辅助工具 — 实现已迁至 shared/foundation/
2
+ * Bundle 交易辅助工具 — 实现已迁至 core/
3
3
  * 本文件保留 re-export,兼容现有 import 路径。
4
4
  */
5
- export { NonceManager } from '../shared/foundation/nonce/nonce-manager.js';
6
- export { type GasPriceConfig, type GasEstimateConfig, type BuildTransactionOptions, type CommonBundleConfig, getOptimizedGasPrice, estimateGasWithSafety, estimateGasBatch, buildTransaction, getGasLimit, getGasPriceConfig, getTxType, buildGasFields, } from '../shared/foundation/gas/bundle-gas.js';
7
- export { type ProfitHopConfig, type ProfitHopResult, PROFIT_HOP_COUNT, buildProfitHopTransactions, } from '../shared/foundation/gas/profit-hop.js';
8
- export { getChainId, signTransactionsBatch, signTransactionsBatchMultiWallet, validateSignedTransactions, } from '../shared/foundation/tx/sign-batch.js';
9
- export { getDeadline, encodeV3Path, decodeV3Path } from '../shared/foundation/dex/v3-path.js';
10
- import '../shared/foundation/tx/wallet-sign-patch.js';
5
+ export { NonceManager } from '../core/nonce/nonce-manager.js';
6
+ export { type GasPriceConfig, type GasEstimateConfig, type BuildTransactionOptions, type CommonBundleConfig, getOptimizedGasPrice, estimateGasWithSafety, estimateGasBatch, buildTransaction, getGasLimit, getGasPriceConfig, getTxType, buildGasFields, } from '../core/gas/bundle-gas.js';
7
+ export { type ProfitHopConfig, type ProfitHopResult, PROFIT_HOP_COUNT, buildProfitHopTransactions, } from '../core/gas/profit-hop.js';
8
+ export { getChainId, signTransactionsBatch, signTransactionsBatchMultiWallet, validateSignedTransactions, } from '../core/tx/sign-batch.js';
9
+ export { getDeadline, encodeV3Path, decodeV3Path } from '../core/dex/v3-path.js';
10
+ import '../core/tx/wallet-sign-patch.js';
@@ -1,11 +1,11 @@
1
1
  /**
2
- * Bundle 交易辅助工具 — 实现已迁至 shared/foundation/
2
+ * Bundle 交易辅助工具 — 实现已迁至 core/
3
3
  * 本文件保留 re-export,兼容现有 import 路径。
4
4
  */
5
- export { NonceManager } from '../shared/foundation/nonce/nonce-manager.js';
6
- export { getOptimizedGasPrice, estimateGasWithSafety, estimateGasBatch, buildTransaction, getGasLimit, getGasPriceConfig, getTxType, buildGasFields, } from '../shared/foundation/gas/bundle-gas.js';
7
- export { PROFIT_HOP_COUNT, buildProfitHopTransactions, } from '../shared/foundation/gas/profit-hop.js';
8
- export { getChainId, signTransactionsBatch, signTransactionsBatchMultiWallet, validateSignedTransactions, } from '../shared/foundation/tx/sign-batch.js';
9
- export { getDeadline, encodeV3Path, decodeV3Path } from '../shared/foundation/dex/v3-path.js';
5
+ export { NonceManager } from '../core/nonce/nonce-manager.js';
6
+ export { getOptimizedGasPrice, estimateGasWithSafety, estimateGasBatch, buildTransaction, getGasLimit, getGasPriceConfig, getTxType, buildGasFields, } from '../core/gas/bundle-gas.js';
7
+ export { PROFIT_HOP_COUNT, buildProfitHopTransactions, } from '../core/gas/profit-hop.js';
8
+ export { getChainId, signTransactionsBatch, signTransactionsBatchMultiWallet, validateSignedTransactions, } from '../core/tx/sign-batch.js';
9
+ export { getDeadline, encodeV3Path, decodeV3Path } from '../core/dex/v3-path.js';
10
10
  // 加载 Wallet EIP-1559 patch(NonceManager 模块也会加载,此处确保从 bundle-helpers 导入时生效)
11
- import '../shared/foundation/tx/wallet-sign-patch.js';
11
+ import '../core/tx/wallet-sign-patch.js';
@@ -2,8 +2,8 @@
2
2
  * 公共常量 - 向后兼容 re-export 层
3
3
  *
4
4
  * 新代码请直接使用 `shared/constants`:
5
- * `import { CHAINS, ADDRESSES, getProfitRateBps } from '../shared/constants/index.js'`
5
+ * `import { CHAINS, ADDRESSES, getProfitRateBps } from '../core/constants/index.js'`
6
6
  *
7
7
  * v2:不再导出 `CHAIN` / `DEFAULT_DEADLINE_MINUTES` / `PROFIT_CONFIG` / 报价 `V3_FEE_TIERS`。
8
8
  */
9
- export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateProfitHopGasCost, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../shared/constants/index.js';
9
+ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateProfitHopGasCost, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
@@ -2,8 +2,8 @@
2
2
  * 公共常量 - 向后兼容 re-export 层
3
3
  *
4
4
  * 新代码请直接使用 `shared/constants`:
5
- * `import { CHAINS, ADDRESSES, getProfitRateBps } from '../shared/constants/index.js'`
5
+ * `import { CHAINS, ADDRESSES, getProfitRateBps } from '../core/constants/index.js'`
6
6
  *
7
7
  * v2:不再导出 `CHAIN` / `DEFAULT_DEADLINE_MINUTES` / `PROFIT_CONFIG` / 报价 `V3_FEE_TIERS`。
8
8
  */
9
- export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateProfitHopGasCost, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../shared/constants/index.js';
9
+ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateProfitHopGasCost, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
@@ -1,6 +1,6 @@
1
1
  import { Contract, Wallet } from 'ethers';
2
2
  import { TokenManager, TokenManager2, TokenManagerHelper3 } from '../abis/index.js';
3
- import { ADDRESSES } from '../shared/constants/index.js';
3
+ import { ADDRESSES } from '../core/constants/index.js';
4
4
  import { createProvider } from './provider-factory.js';
5
5
  const TOKEN_MANAGER_ABI = TokenManager;
6
6
  const TOKEN_MANAGER2_ABI = TokenManager2;
@@ -1,6 +1,6 @@
1
- import { SdkErrorCode } from '../types/errors.js';
1
+ import { SdkErrorCode } from '../core/legacy-types/errors.js';
2
2
  import type { FourErrorCode } from './types/errors.js';
3
- export { SdkErrorCode } from '../types/errors.js';
3
+ export { SdkErrorCode } from '../core/legacy-types/errors.js';
4
4
  export type { FourErrorCode } from './types/errors.js';
5
5
  export declare function parseFourError(err: unknown): {
6
6
  code?: FourErrorCode;
@@ -1,6 +1,6 @@
1
- import { getErrorMessageFromUnknown } from '../shared/foundation/normalize-unknown.js';
2
- import { SdkErrorCode } from '../types/errors.js';
3
- export { SdkErrorCode } from '../types/errors.js';
1
+ import { getErrorMessageFromUnknown } from '../core/normalize-unknown.js';
2
+ import { SdkErrorCode } from '../core/legacy-types/errors.js';
3
+ export { SdkErrorCode } from '../core/legacy-types/errors.js';
4
4
  const MESSAGES = {
5
5
  GW: 'Amount precision is not aligned to GWEI',
6
6
  ZA: "The 'to' address should not be address(0)",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 多跳(Hop Chain)转账链生成工具
3
3
  *
4
- * 提取自 chains/bsc/four/swap.ts、chains/bsc/pancake/bundle-swap.ts、shared/flap/portal-bundle-merkle/swap.ts
4
+ * 提取自 chains/bsc/four/swap.ts、chains/bsc/pancake/bundle-swap.ts、domains/flap/portal-bundle-merkle/swap.ts
5
5
  * 消除三个文件之间的复制代码
6
6
  */
7
7
  import { ethers, Wallet, JsonRpcProvider } from 'ethers';
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * 多跳(Hop Chain)转账链生成工具
3
3
  *
4
- * 提取自 chains/bsc/four/swap.ts、chains/bsc/pancake/bundle-swap.ts、shared/flap/portal-bundle-merkle/swap.ts
4
+ * 提取自 chains/bsc/four/swap.ts、chains/bsc/pancake/bundle-swap.ts、domains/flap/portal-bundle-merkle/swap.ts
5
5
  * 消除三个文件之间的复制代码
6
6
  */
7
7
  import { ethers, Wallet } from 'ethers';
8
- import { GAS_LIMITS } from '../shared/constants/index.js';
8
+ import { GAS_LIMITS } from '../core/constants/index.js';
9
9
  import { ERC20_ABI } from '../abis/common.js';
10
10
  import { generateWallets } from './wallet.js';
11
11
  export const NATIVE_TRANSFER_GAS_LIMIT = GAS_LIMITS.NATIVE_TRANSFER;
@@ -0,0 +1,5 @@
1
+ /** pure utils barrel */
2
+ export * from './wallet.js';
3
+ export * from './concurrency.js';
4
+ export * from './provider-factory.js';
5
+ export * from './bundle-helpers.js';
@@ -0,0 +1,5 @@
1
+ /** pure utils barrel */
2
+ export * from './wallet.js';
3
+ export * from './concurrency.js';
4
+ export * from './provider-factory.js';
5
+ export * from './bundle-helpers.js';
@@ -1,6 +1,6 @@
1
1
  import { Contract, JsonRpcProvider } from 'ethers';
2
2
  import TokenManager2Abi from '../abis/contracts/TokenManager2.json' with { type: 'json' };
3
- import { ADDRESSES } from '../shared/constants/index.js';
3
+ import { ADDRESSES } from '../core/constants/index.js';
4
4
  const TOKEN_MANAGER2_ABI = TokenManager2Abi;
5
5
  // 链上识别:template & 0x10000 > 0
6
6
  export async function isExclusiveOnChain(params) {
@@ -1,6 +1,6 @@
1
1
  import { ethers, JsonRpcProvider } from 'ethers';
2
- import { Club48Client } from '../shared/clients/club48.js';
3
- import { GAS_LIMITS } from '../shared/constants/index.js';
2
+ import { Club48Client } from '../core/clients/club48.js';
3
+ import { GAS_LIMITS } from '../core/constants/index.js';
4
4
  /**
5
5
  * 隐秘转账(原生币,多跳)
6
6
  * - 生成 hopCount 个中转地址
@@ -2,7 +2,7 @@
2
2
  * 换手交易通用工具函数
3
3
  */
4
4
  import { Wallet, JsonRpcProvider } from 'ethers';
5
- import type { MerkleClient } from '../shared/clients/merkle.js';
5
+ import type { MerkleClient } from '../core/clients/merkle.js';
6
6
  /**
7
7
  * 检查并执行代币授权(如果需要)
8
8
  * ✅ 与 pancake-proxy.ts 的授权逻辑一致
@@ -2,7 +2,7 @@
2
2
  * 换手交易通用工具函数
3
3
  */
4
4
  import { ethers, Contract } from 'ethers';
5
- import { batchCheckAllowances } from './erc20.js';
5
+ import { batchCheckAllowances } from '../core/erc20.js';
6
6
  import { ERC20_ABI } from '../abis/common.js';
7
7
  import { NonceManager, getOptimizedGasPrice } from './bundle-helpers.js';
8
8
  const APPROVAL_THRESHOLD = ethers.MaxUint256 / 2n;
@@ -1 +1 @@
1
- export type { BundleSubmitResult, SignedTransactionsResult, AirdropDisperseParams, AirdropDisperseSignParams, AirdropSweepParams, AirdropSweepSignParams, DisperseParams, DisperseSignParams, SweepParams, SweepSignParams, } from '../../shared/foundation/types/airdrop-sweep.js';
1
+ export type { BundleSubmitResult, SignedTransactionsResult, AirdropDisperseParams, AirdropDisperseSignParams, AirdropSweepParams, AirdropSweepSignParams, DisperseParams, DisperseSignParams, SweepParams, SweepSignParams, } from '../../core/types/airdrop-sweep.js';
@@ -1,10 +1,10 @@
1
- /** utils 层类型 facade(唯一源见 `shared/foundation/types/` 或同目录模块专用类型) */
2
- export type * from './holders-maker.js';
3
- export type * from './lp-inspect.js';
1
+ /** utils 层类型 facade(业务类型源在 core/types;utils 不得依赖 domains) */
2
+ export type * from '../../core/types/holders-maker.js';
3
+ export type * from '../../core/types/lp-inspect.js';
4
4
  export type * from './airdrop-sweep.js';
5
- export type * from './private-sale.js';
6
- export type * from './quote-helpers.js';
7
- export type * from './erc20.js';
5
+ export type * from '../../core/types/private-sale.js';
6
+ export type * from '../../core/types/quote-helpers.js';
7
+ export type * from '../../core/types/erc20.js';
8
8
  export type * from './wallet.js';
9
9
  export type * from './stealth-transfer.js';
10
10
  export type * from './errors.js';
@@ -1,4 +1,4 @@
1
- import type { SoulPointSignatureMode, VNormalizationMode } from '../../shared/clients/club48.js';
1
+ import type { SoulPointSignatureMode, VNormalizationMode } from '../../core/clients/club48.js';
2
2
  export type StealthTransferResult = {
3
3
  bundleUuid: string;
4
4
  txs: string[];
@@ -1,7 +1,7 @@
1
- import { type GeneratedWallet } from '../shared/foundation/wallet/generate.js';
1
+ import { type GeneratedWallet } from '../core/wallet/generate.js';
2
2
  import type { MultiTokenBalancesResult, MulticallResult, PrivateKeyValidation } from './types/wallet.js';
3
3
  export type { PrivateKeyValidation, MulticallResult, MultiTokenBalancesResult, } from './types/wallet.js';
4
- export type { GeneratedWallet } from '../shared/foundation/wallet/generate.js';
4
+ export type { GeneratedWallet } from '../core/wallet/generate.js';
5
5
  /**
6
6
  * 批量生成钱包(并行优化)
7
7
  */
@@ -1,8 +1,8 @@
1
1
  import { Wallet, Interface, JsonRpcProvider, formatEther, formatUnits, isHexString } from 'ethers';
2
- import { CHAIN_ID_MAP, ADDRESSES } from '../shared/constants/index.js';
2
+ import { CHAIN_ID_MAP, ADDRESSES } from '../core/constants/index.js';
3
3
  import { ERC20_ABI, MULTICALL3_ABI } from '../abis/common.js';
4
- import { getErrorMessageFromUnknown } from '../shared/foundation/index.js';
5
- import { generateWallets as generateWalletsFromFoundation, } from '../shared/foundation/wallet/generate.js';
4
+ import { getErrorMessageFromUnknown } from '../core/index.js';
5
+ import { generateWallets as generateWalletsFromFoundation, } from '../core/wallet/generate.js';
6
6
  // ============================================================================
7
7
  // 常量
8
8
  // ============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "2.2.20",
3
+ "version": "3.0.0",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -13,6 +13,7 @@
13
13
  "build": "tsc -p tsconfig.json",
14
14
  "clean": "rm -rf dist",
15
15
  "test": "vitest run",
16
+ "lint": "eslint \"src/**/*.{ts,tsx}\"",
16
17
  "check:export-types": "node scripts/check-export-return-types.mjs",
17
18
  "prepublishOnly": "npm run build"
18
19
  },
@@ -21,21 +22,53 @@
21
22
  "types": "./dist/index.d.ts",
22
23
  "default": "./dist/index.js"
23
24
  },
24
- "./foundation": {
25
- "types": "./dist/shared/foundation/index.d.ts",
26
- "default": "./dist/shared/foundation/index.js"
25
+ "./core": {
26
+ "types": "./dist/core/index.d.ts",
27
+ "default": "./dist/core/index.js"
27
28
  },
28
- "./bundle-core": {
29
- "types": "./dist/bundle-core/index.d.ts",
30
- "default": "./dist/bundle-core/index.js"
29
+ "./flap": {
30
+ "types": "./dist/domains/flap/index.d.ts",
31
+ "default": "./dist/domains/flap/index.js"
31
32
  },
32
- "./flows": {
33
- "types": "./dist/flows/index.d.ts",
34
- "default": "./dist/flows/index.js"
33
+ "./four": {
34
+ "types": "./dist/domains/four/index.d.ts",
35
+ "default": "./dist/domains/four/index.js"
36
+ },
37
+ "./dex": {
38
+ "types": "./dist/domains/dex/index.d.ts",
39
+ "default": "./dist/domains/dex/index.js"
40
+ },
41
+ "./merkle": {
42
+ "types": "./dist/domains/merkle/index.d.ts",
43
+ "default": "./dist/domains/merkle/index.js"
44
+ },
45
+ "./vanity": {
46
+ "types": "./dist/domains/vanity/index.d.ts",
47
+ "default": "./dist/domains/vanity/index.js"
35
48
  },
36
- "./constants": {
37
- "types": "./dist/shared/constants/index.d.ts",
38
- "default": "./dist/shared/constants/index.js"
49
+ "./quote": {
50
+ "types": "./dist/domains/quote/index.d.ts",
51
+ "default": "./dist/domains/quote/index.js"
52
+ },
53
+ "./lp-inspect": {
54
+ "types": "./dist/domains/lp-inspect/index.d.ts",
55
+ "default": "./dist/domains/lp-inspect/index.js"
56
+ },
57
+ "./holders": {
58
+ "types": "./dist/domains/holders/index.d.ts",
59
+ "default": "./dist/domains/holders/index.js"
60
+ },
61
+ "./private-sale": {
62
+ "types": "./dist/domains/private-sale/index.d.ts",
63
+ "default": "./dist/domains/private-sale/index.js"
64
+ },
65
+ "./bundle": {
66
+ "types": "./dist/bundle/index.d.ts",
67
+ "default": "./dist/bundle/index.js"
68
+ },
69
+ "./flows": {
70
+ "types": "./dist/domains/flows/index.d.ts",
71
+ "default": "./dist/domains/flows/index.js"
39
72
  },
40
73
  "./chains": {
41
74
  "types": "./dist/chains/index.d.ts",
@@ -65,49 +98,9 @@
65
98
  "types": "./dist/chains/monad/index.d.ts",
66
99
  "default": "./dist/chains/monad/index.js"
67
100
  },
68
- "./flap": {
69
- "types": "./dist/flap/index.d.ts",
70
- "default": "./dist/flap/index.js"
71
- },
72
- "./shared/flap": {
73
- "types": "./dist/flap/index.d.ts",
74
- "default": "./dist/flap/index.js"
75
- },
76
- "./dex": {
77
- "types": "./dist/dex/index.d.ts",
78
- "default": "./dist/dex/index.js"
79
- },
80
- "./merkle": {
81
- "types": "./dist/merkle/index.d.ts",
82
- "default": "./dist/merkle/index.js"
83
- },
84
- "./quote": {
85
- "types": "./dist/utils/quote-helpers.d.ts",
86
- "default": "./dist/utils/quote-helpers.js"
87
- },
88
- "./vanity": {
89
- "types": "./dist/vanity/index.d.ts",
90
- "default": "./dist/vanity/index.js"
91
- },
92
- "./utils/wallet": {
93
- "types": "./dist/utils/wallet.d.ts",
94
- "default": "./dist/utils/wallet.js"
95
- },
96
- "./utils/erc20": {
97
- "types": "./dist/utils/erc20.d.ts",
98
- "default": "./dist/utils/erc20.js"
99
- },
100
- "./utils/lp-inspect": {
101
- "types": "./dist/utils/lp-inspect.d.ts",
102
- "default": "./dist/utils/lp-inspect.js"
103
- },
104
- "./utils/holders-maker": {
105
- "types": "./dist/utils/holders-maker.d.ts",
106
- "default": "./dist/utils/holders-maker.js"
107
- },
108
- "./utils/private-sale": {
109
- "types": "./dist/utils/private-sale.d.ts",
110
- "default": "./dist/utils/private-sale.js"
101
+ "./utils": {
102
+ "types": "./dist/utils/index.d.ts",
103
+ "default": "./dist/utils/index.js"
111
104
  },
112
105
  "./package.json": "./package.json"
113
106
  },
@@ -132,8 +125,11 @@
132
125
  "pinata": "^1.10.1"
133
126
  },
134
127
  "devDependencies": {
128
+ "@eslint/js": "^10.0.1",
129
+ "eslint": "^10.7.0",
135
130
  "solc": "^0.8.33",
136
131
  "typescript": "^5.6.3",
132
+ "typescript-eslint": "^8.65.0",
137
133
  "vitest": "^3.2.6"
138
134
  }
139
135
  }
@@ -1,64 +0,0 @@
1
- import { describe, expect, it } from 'vitest';
2
- describe('subpath exports (package.json exports map)', () => {
3
- it('chains subpath exposes chains namespace', async () => {
4
- const mod = await import('../chains/index.js');
5
- expect(mod.chains).toBeDefined();
6
- expect(mod.chains.bsc).toBeDefined();
7
- expect(mod.chains.xlayer).toBeDefined();
8
- expect(mod.chains.eni).toBeDefined();
9
- expect(mod.bsc).toBe(mod.chains.bsc);
10
- });
11
- it('flap subpath exposes Merkle swap entrypoints', async () => {
12
- const mod = await import('../flap/index.js');
13
- expect(typeof mod.flapBundleSwapMerkle).toBe('function');
14
- expect(typeof mod.flapBatchSwapMerkle).toBe('function');
15
- expect(typeof mod.flapQuickBatchSwapMerkle).toBe('function');
16
- expect(typeof mod.flapCrossSwapMerkle).toBe('function');
17
- });
18
- it('utils/wallet subpath exports GeneratedWallet type surface', async () => {
19
- const mod = await import('../utils/wallet.js');
20
- expect(typeof mod.generateWallets).toBe('function');
21
- expect(typeof mod.validatePrivateKeys).toBe('function');
22
- expect(typeof mod.getTokenBalancesWithMulticall).toBe('function');
23
- });
24
- it('constants subpath exports FlapChain type re-export', async () => {
25
- const mod = await import('../shared/constants/index.js');
26
- expect(mod.CHAINS).toBeDefined();
27
- expect(mod.PROFIT_CONFIG).toBeDefined();
28
- });
29
- it('quote subpath exports quoteV2/quoteV3', async () => {
30
- const mod = await import('../utils/quote-helpers.js');
31
- expect(typeof mod.quoteV2).toBe('function');
32
- expect(typeof mod.quoteV3).toBe('function');
33
- });
34
- it('merkle subpath exports Four Merkle swap and disperse', async () => {
35
- const mod = await import('../merkle/index.js');
36
- expect(typeof mod.disperseWithBundleMerkle).toBe('function');
37
- expect(typeof mod.fourBundleSwapMerkle).toBe('function');
38
- expect(typeof mod.submitBundleToMerkle).toBe('function');
39
- });
40
- it('vanity subpath exports findSaltEndingByChain', async () => {
41
- const mod = await import('../vanity/index.js');
42
- expect(typeof mod.findSaltEndingByChain).toBe('function');
43
- expect(typeof mod.getVanitySuffix).toBe('function');
44
- });
45
- it('chains/bsc/iro subpath exports bscIroCreateProject', async () => {
46
- const mod = await import('../chains/bsc/iro.js');
47
- expect(typeof mod.bscIroCreateProject).toBe('function');
48
- });
49
- it('chains/eni flat aliases on eni subpath', async () => {
50
- const mod = await import('../chains/eni/index.js');
51
- expect(typeof mod.eniCreatePortalQuery).toBe('function');
52
- expect(typeof mod.eniDisperseForSubmit).toBe('function');
53
- });
54
- it('chains/xlayer/eip7702 flat aliases', async () => {
55
- const mod = await import('../chains/xlayer/eip7702/index.js');
56
- expect(typeof mod.xlayerEip7702BundleSwap).toBe('function');
57
- expect(typeof mod.xlayerEip7702CheckApprovalStatus).toBe('function');
58
- });
59
- it('chains/xlayer re-exports eip7702 flat aliases', async () => {
60
- const mod = await import('../chains/xlayer/index.js');
61
- expect(typeof mod.xlayerEip7702Disperse).toBe('function');
62
- expect(mod.XLayer).toBeDefined();
63
- });
64
- });