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
@@ -1,4 +1,4 @@
1
- import type { BaseTokenType, HoldersMakerParams, HoldersMakerResult } from './types/holders-maker.js';
1
+ import type { BaseTokenType, HoldersMakerParams, HoldersMakerResult } from './types.js';
2
2
  export declare function holdersMaker(params: HoldersMakerParams): Promise<HoldersMakerResult>;
3
3
  /**
4
4
  * 获取刷持有人预估费用
@@ -15,4 +15,4 @@ export declare function estimateHoldersMakerCost(params: {
15
15
  gasEstimate: string;
16
16
  batchCount: number;
17
17
  };
18
- export type { HoldersMakerChain, HoldersMakerTradeType, BaseTokenType, HoldersMakerConfig, HoldersMakerParams, TransactionLayer, BatchResult, HoldersMakerResult, } from './types/holders-maker.js';
18
+ export type { HoldersMakerChain, HoldersMakerTradeType, BaseTokenType, HoldersMakerConfig, HoldersMakerParams, TransactionLayer, BatchResult, HoldersMakerResult, } from './types.js';
@@ -2,10 +2,10 @@
2
2
  * holders-maker - 主函数
3
3
  */
4
4
  import { ethers, JsonRpcProvider, Wallet } from 'ethers';
5
- import { generateWallets } from './wallet.js';
6
- import { NonceManager, getOptimizedGasPrice, buildProfitHopTransactions, PROFIT_HOP_COUNT } from './bundle-helpers.js';
7
- import { BLOCKRAZOR_BUILDER_EOA, getProfitRecipient, getProfitRateBps as getSharedProfitRateBps, } from '../shared/constants/index.js';
8
- import { getErrorMessageFromUnknown } from '../shared/foundation/index.js';
5
+ import { generateWallets } from '../../utils/wallet.js';
6
+ import { NonceManager, getOptimizedGasPrice, buildProfitHopTransactions, PROFIT_HOP_COUNT } from '../../utils/bundle-helpers.js';
7
+ import { BLOCKRAZOR_BUILDER_EOA, getProfitRecipient, getProfitRateBps as getSharedProfitRateBps, } from '../../core/constants/index.js';
8
+ import { getErrorMessageFromUnknown } from '../../core/index.js';
9
9
  import { DEFAULT_GAS_LIMIT, DEFAULT_GAS_PRICE_GWEI, DEFAULT_MAX_WALLETS_PER_BATCH_ERC20, DEFAULT_MAX_WALLETS_PER_BATCH_NATIVE, GAS_BUFFER_MULTIPLIER, NATIVE_TRANSFER_GAS_LIMIT, buildDaoaasBuyTx, buildDisperseHopChainERC20, buildDisperseHopChainNative, buildERC20ApproveTx, buildFlapBuyTx, buildFourBuyTx, buildNativeTransferTx, buildV2BuyTx, buildV2BuyTxWithERC20, buildV3BuyTx, buildV3BuyTxWithERC20, calculateMaxWalletsPerBatch, chunkArray, generateDisperseHopPaths, getBaseTokenAddress, getRouterAddress, } from './holders-maker-helpers.js';
10
10
  function formatUnitsFixed(value, decimals, precision = 6) {
11
11
  const raw = ethers.formatUnits(value, decimals);
@@ -0,0 +1 @@
1
+ export * from './holders-maker.js';
@@ -0,0 +1 @@
1
+ export * from './holders-maker.js';
@@ -1,4 +1,4 @@
1
- import { ADDRESSES } from '../constants.js';
1
+ import { ADDRESSES } from '../../../utils/constants.js';
2
2
  export const FOUR_TM2_ABI = [
3
3
  'function buyTokenAMAP(uint256 origin, address token, address to, uint256 funds, uint256 minAmount) payable',
4
4
  ];
@@ -1,5 +1,5 @@
1
1
  import { Wallet } from 'ethers';
2
- import type { HoldersMakerChain } from '../../shared/foundation/types/holders-maker.js';
2
+ import type { HoldersMakerChain } from '../../../core/types/holders-maker.js';
3
3
  /**
4
4
  * 构建 Flap 买入交易
5
5
  * 使用 swapExactInput 方法
@@ -1,8 +1,8 @@
1
1
  import { ethers, Contract } from 'ethers';
2
- import { getDeadline } from '../bundle-helpers.js';
3
- import { ADDRESSES } from '../constants.js';
4
- import { FLAP_PORTAL_ADDRESSES } from '../../shared/flap/constants.js';
5
- import { V2_ROUTER_ABI, V3_ROUTER02_ABI, V3_ROUTER_LEGACY_ABI } from '../../abis/common.js';
2
+ import { getDeadline } from '../../../utils/bundle-helpers.js';
3
+ import { ADDRESSES } from '../../../utils/constants.js';
4
+ import { FLAP_PORTAL_ADDRESSES } from '../../flap/constants.js';
5
+ import { V2_ROUTER_ABI, V3_ROUTER02_ABI, V3_ROUTER_LEGACY_ABI } from '../../../abis/common.js';
6
6
  import { ENI_DAOAAS_PORTAL_ADDRESS, FOUR_TM2_ABI, PANCAKE_V3_ROUTER_ADDRESS, XLAYER_V3_ROUTER_ADDRESS, } from './addresses.js';
7
7
  import { getRouterAddress, getWrappedNativeAddress } from './routing.js';
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { GAS_LIMITS } from '../../shared/constants/index.js';
1
+ import { GAS_LIMITS } from '../../../core/constants/index.js';
2
2
  export const ERC20_TRANSFER_GAS_LIMIT = GAS_LIMITS.ERC20_TRANSFER;
3
3
  export const ERC20_APPROVE_GAS_LIMIT = 50000n;
4
4
  export const DEFAULT_GAS_LIMIT = 800000;
@@ -1,8 +1,8 @@
1
1
  import { JsonRpcProvider, Wallet } from 'ethers';
2
- import type { GeneratedWallet } from '../types/wallet.js';
3
- import type { DisperseHopPath } from '../types/hop-chains.js';
4
- import type { HoldersMakerChain } from '../../shared/foundation/types/holders-maker.js';
5
- export type { DisperseHopPath } from '../types/hop-chains.js';
2
+ import type { GeneratedWallet } from '../../../utils/types/wallet.js';
3
+ import type { DisperseHopPath } from '../../../utils/types/hop-chains.js';
4
+ import type { HoldersMakerChain } from '../../../core/types/holders-maker.js';
5
+ export type { DisperseHopPath } from '../../../utils/types/hop-chains.js';
6
6
  export declare function generateDisperseHopPaths(targetWallets: GeneratedWallet[], hopCount: number, provider: JsonRpcProvider): DisperseHopPath[];
7
7
  export declare function buildDisperseHopChainNative(payer: Wallet, path: DisperseHopPath, finalAmount: bigint, gasPrice: bigint, chainId: number, txType: 0 | 2, payerNonce: number, isERC20Mode?: boolean): Promise<{
8
8
  signedTxs: string[];
@@ -1,6 +1,6 @@
1
1
  import { Wallet } from 'ethers';
2
- import { generateWallets } from '../wallet.js';
3
- import { PROFIT_HOP_COUNT } from '../bundle-helpers.js';
2
+ import { generateWallets } from '../../../utils/wallet.js';
3
+ import { PROFIT_HOP_COUNT } from '../../../utils/bundle-helpers.js';
4
4
  import { ERC20_TRANSFER_GAS_LIMIT, NATIVE_TRANSFER_GAS_LIMIT } from './constants.js';
5
5
  import { buildERC20TransferTx, buildNativeTransferTx } from './transfer-tx.js';
6
6
  export function generateDisperseHopPaths(targetWallets, hopCount, provider) {
@@ -1,4 +1,4 @@
1
- import type { BaseTokenType, HoldersMakerChain, HoldersMakerTradeType } from '../../shared/foundation/types/holders-maker.js';
1
+ import type { BaseTokenType, HoldersMakerChain, HoldersMakerTradeType } from '../../../core/types/holders-maker.js';
2
2
  export declare function getBaseTokenAddress(baseToken: BaseTokenType, chain: HoldersMakerChain, customAddress?: string): string;
3
3
  export declare function getRouterAddress(tradeType: HoldersMakerTradeType, chain?: HoldersMakerChain, v2RouterOverride?: string): string;
4
4
  export declare function getWrappedNativeAddress(chain?: HoldersMakerChain): string;
@@ -1,4 +1,4 @@
1
- import { ADDRESSES } from '../constants.js';
1
+ import { ADDRESSES } from '../../../utils/constants.js';
2
2
  import { ENI_DAOAAS_PORTAL_ADDRESS, ENI_V2_ROUTER_ADDRESS, PANCAKE_V2_ROUTER_ADDRESS, PANCAKE_V3_ROUTER_ADDRESS, USDC_ADDRESS, USDT_ADDRESS, WBNB_ADDRESS, WEGAS_ADDRESS, WOKB_ADDRESS, XLAYER_V2_ROUTER_ADDRESS, XLAYER_V3_ROUTER_ADDRESS, } from './addresses.js';
3
3
  export function getBaseTokenAddress(baseToken, chain, customAddress) {
4
4
  if (customAddress)
@@ -1,6 +1,6 @@
1
1
  import { ethers } from 'ethers';
2
- import { ERC20_ABI } from '../../abis/common.js';
3
- import { GAS_LIMITS } from '../../shared/constants/index.js';
2
+ import { ERC20_ABI } from '../../../abis/common.js';
3
+ import { GAS_LIMITS } from '../../../core/constants/index.js';
4
4
  import { ERC20_APPROVE_GAS_LIMIT, ERC20_TRANSFER_GAS_LIMIT } from './constants.js';
5
5
  export async function buildERC20TransferTx(wallet, tokenAddress, to, amount, nonce, gasPrice, chainId, txType) {
6
6
  const iface = new ethers.Interface(ERC20_ABI);
@@ -1 +1 @@
1
- export type { HoldersMakerChain, HoldersMakerTradeType, BaseTokenType, HoldersMakerConfig, HoldersMakerParams, TransactionLayer, BatchResult, HoldersMakerResult, } from '../../shared/foundation/types/holders-maker.js';
1
+ export type { HoldersMakerChain, HoldersMakerTradeType, BaseTokenType, HoldersMakerConfig, HoldersMakerParams, TransactionLayer, BatchResult, HoldersMakerResult, } from '../../core/types/holders-maker.js';
@@ -0,0 +1 @@
1
+ export * from './lp-inspect.js';
@@ -0,0 +1 @@
1
+ export * from './lp-inspect.js';
@@ -1,5 +1,5 @@
1
1
  export declare const DEFAULT_V3_FEE_TIERS: number[];
2
- import type { ChainDexConfig } from '../shared/foundation/types/lp-inspect.js';
2
+ import type { ChainDexConfig } from '../../core/types/lp-inspect.js';
3
3
  export declare const CHAIN_DEX_CONFIGS: Record<string, ChainDexConfig>;
4
4
  /** 运行时配置存储(内存) */
5
5
  export declare const runtimeConfigs: Record<string, ChainDexConfig>;
@@ -1,5 +1,5 @@
1
1
  export const DEFAULT_V3_FEE_TIERS = [100, 500, 2500, 3000, 10000];
2
- import { ADDRESSES } from '../shared/constants/index.js';
2
+ import { ADDRESSES } from '../../core/constants/index.js';
3
3
  export const CHAIN_DEX_CONFIGS = {
4
4
  BSC: {
5
5
  wrappedNative: ADDRESSES.BSC.WBNB,
@@ -1,4 +1,4 @@
1
- import type { ChainDexConfig, DexConfig, InspectOptions, LPInfo } from './types/lp-inspect.js';
1
+ import type { ChainDexConfig, DexConfig, InspectOptions, LPInfo } from './types.js';
2
2
  export declare function getFactoryFromRouter(routerAddress: string, rpcUrl: string, routerType?: 'v2' | 'v3'): Promise<{
3
3
  v2Factory?: string;
4
4
  v3Factory?: string;
@@ -37,4 +37,4 @@ export declare function getQuoteTokens(chain: string): Array<{
37
37
  isNative: boolean;
38
38
  }>;
39
39
  export declare function inspectTokenLP(token: string, opts: InspectOptions): Promise<LPInfo>;
40
- export type { LPInfo, LPPlatform, InspectOptions, DexConfig, ChainDexConfig } from './types/lp-inspect.js';
40
+ export type { LPInfo, LPPlatform, InspectOptions, DexConfig, ChainDexConfig } from './types.js';
@@ -2,12 +2,12 @@
2
2
  * lp-inspect - 主函数
3
3
  */
4
4
  import { Contract, Interface, formatUnits, formatEther } from 'ethers';
5
- import { createProvider } from './provider-factory.js';
6
- import { ADDRESSES, ZERO_ADDRESS } from '../shared/constants/index.js';
7
- import { getErrorMessageFromUnknown } from '../shared/foundation/index.js';
8
- import { MULTICALL3_ABI, V2_FACTORY_ABI, V2_PAIR_ABI, V3_FACTORY_ABI, ERC20_ABI } from '../abis/common.js';
9
- import { Helper3 } from '../contracts/helper3.js';
10
- import { FlapPortal } from '../shared/flap/portal.js';
5
+ import { createProvider } from '../../utils/provider-factory.js';
6
+ import { ADDRESSES, ZERO_ADDRESS } from '../../core/constants/index.js';
7
+ import { getErrorMessageFromUnknown } from '../../core/index.js';
8
+ import { MULTICALL3_ABI, V2_FACTORY_ABI, V2_PAIR_ABI, V3_FACTORY_ABI, ERC20_ABI } from '../../abis/common.js';
9
+ import { Helper3 } from '../four/contracts/helper3.js';
10
+ import { FlapPortal } from '../flap/portal.js';
11
11
  import { CHAIN_DEX_CONFIGS, DEFAULT_V3_FEE_TIERS, runtimeConfigs } from './lp-inspect-helpers.js';
12
12
  export async function getFactoryFromRouter(routerAddress, rpcUrl, routerType = 'v2') {
13
13
  const provider = createProvider(rpcUrl);
@@ -1 +1 @@
1
- export type { DexConfig, ChainDexConfig, PoolPairInfo, V3PoolInfo, DexPoolInfo, BestPoolInfo, LPPlatform, LPInfo, InspectOptions, } from '../../shared/foundation/types/lp-inspect.js';
1
+ export type { DexConfig, ChainDexConfig, PoolPairInfo, V3PoolInfo, DexPoolInfo, BestPoolInfo, LPPlatform, LPInfo, InspectOptions, } from '../../core/types/lp-inspect.js';
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * memeweb 分发 / 换手 / 提交可统一走 `four-flap-meme-sdk/merkle`,避免拉包根。
5
5
  */
6
- export { disperseWithBundleMerkle } from '../bundle-core/four-meme/utils-disperse.js';
7
- export { sweepWithBundleMerkle } from '../bundle-core/four-meme/utils-sweep.js';
8
- export { pairwiseTransferWithBundleMerkle } from '../bundle-core/four-meme/utils-pairwise.js';
9
- export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle } from '../bundle-core/four-meme/swap.js';
10
- export { fourBundleBuyFirstMerkle } from '../bundle-core/four-meme/swap-buy-first.js';
11
- export { submitBundleToMerkle, submitBundleToBlockRazor, submitDirectToRpc, submitDirectToRpcSmart, type MerkleSubmitConfig, type SubmitBundleResult, type BlockRazorSubmitConfig, type DirectSubmitConfig, } from '../bundle-core/submit.js';
12
- export type { DisperseSignParams, DisperseMerkleResult, SweepSignParams, SweepMerkleResult, FourBundleSwapSignParams, FourSwapResult, FourBatchSwapSignParams, FourBatchSwapResult, FourQuickBatchSwapSignParams, FourQuickBatchSwapResult, PairwiseTransferSignParams, PairwiseTransferMerkleResult, } from '../bundle-core/four-meme/types.js';
6
+ export { disperseWithBundleMerkle } from '../../bundle/four-meme/utils-disperse.js';
7
+ export { sweepWithBundleMerkle } from '../../bundle/four-meme/utils-sweep.js';
8
+ export { pairwiseTransferWithBundleMerkle } from '../../bundle/four-meme/utils-pairwise.js';
9
+ export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle } from '../../bundle/four-meme/swap.js';
10
+ export { fourBundleBuyFirstMerkle } from '../../bundle/four-meme/swap-buy-first.js';
11
+ export { submitBundleToMerkle, submitBundleToBlockRazor, submitDirectToRpc, submitDirectToRpcSmart, type MerkleSubmitConfig, type SubmitBundleResult, type BlockRazorSubmitConfig, type DirectSubmitConfig, } from '../../bundle/submit.js';
12
+ export type { DisperseSignParams, DisperseMerkleResult, SweepSignParams, SweepMerkleResult, FourBundleSwapSignParams, FourSwapResult, FourBatchSwapSignParams, FourBatchSwapResult, FourQuickBatchSwapSignParams, FourQuickBatchSwapResult, PairwiseTransferSignParams, PairwiseTransferMerkleResult, } from '../../bundle/four-meme/types.js';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * BSC Four.meme Merkle Bundle 横向入口
3
+ *
4
+ * memeweb 分发 / 换手 / 提交可统一走 `four-flap-meme-sdk/merkle`,避免拉包根。
5
+ */
6
+ export { disperseWithBundleMerkle } from '../../bundle/four-meme/utils-disperse.js';
7
+ export { sweepWithBundleMerkle } from '../../bundle/four-meme/utils-sweep.js';
8
+ export { pairwiseTransferWithBundleMerkle } from '../../bundle/four-meme/utils-pairwise.js';
9
+ export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle } from '../../bundle/four-meme/swap.js';
10
+ export { fourBundleBuyFirstMerkle } from '../../bundle/four-meme/swap-buy-first.js';
11
+ export { submitBundleToMerkle, submitBundleToBlockRazor, submitDirectToRpc, submitDirectToRpcSmart, } from '../../bundle/submit.js';
@@ -0,0 +1 @@
1
+ export * from './private-sale.js';
@@ -0,0 +1 @@
1
+ export * from './private-sale.js';
@@ -5,7 +5,7 @@
5
5
  * - 贿赂交易:向 BlockRazor Builder EOA 转账 BNB 提高优先级
6
6
  * - 利润提取:千分之三(30 bps)
7
7
  */
8
- import type { BatchPrivateSaleParams, PrivateSaleResult, PrivateSaleSignConfig, PrivateSaleTransferParams } from './types/private-sale.js';
8
+ import type { BatchPrivateSaleParams, PrivateSaleResult, PrivateSaleSignConfig, PrivateSaleTransferParams } from './types.js';
9
9
  /**
10
10
  * 生成私募转账签名交易(带贿赂和利润提取)
11
11
  *
@@ -31,4 +31,4 @@ export declare function batchPrivateSaleMerkle(params: BatchPrivateSaleParams):
31
31
  * @returns 签名交易结果
32
32
  */
33
33
  export declare function privateSaleMerkle(transfer: PrivateSaleTransferParams, config: PrivateSaleSignConfig): Promise<PrivateSaleResult>;
34
- export type { PrivateSaleSignConfig, PrivateSaleTransferParams, BatchPrivateSaleParams, PrivateSaleResult, } from './types/private-sale.js';
34
+ export type { PrivateSaleSignConfig, PrivateSaleTransferParams, BatchPrivateSaleParams, PrivateSaleResult, } from './types.js';
@@ -6,8 +6,8 @@
6
6
  * - 利润提取:千分之三(30 bps)
7
7
  */
8
8
  import { ethers, Wallet, JsonRpcProvider } from 'ethers';
9
- import { getProfitRecipient, getProfitRateBps, BLOCKRAZOR_BUILDER_EOA } from '../shared/constants/index.js';
10
- import { NonceManager, buildProfitHopTransactions, PROFIT_HOP_COUNT } from './bundle-helpers.js';
9
+ import { getProfitRecipient, getProfitRateBps, BLOCKRAZOR_BUILDER_EOA } from '../../core/constants/index.js';
10
+ import { NonceManager, buildProfitHopTransactions, PROFIT_HOP_COUNT } from '../../utils/bundle-helpers.js';
11
11
  /**
12
12
  * 生成私募转账签名交易(带贿赂和利润提取)
13
13
  *
@@ -0,0 +1 @@
1
+ export type { PrivateSaleSignConfig, PrivateSaleTransferParams, BatchPrivateSaleParams, PrivateSaleResult, } from '../../core/types/private-sale.js';
@@ -0,0 +1 @@
1
+ export * from './quote-helpers.js';
@@ -0,0 +1 @@
1
+ export * from './quote-helpers.js';
@@ -7,8 +7,8 @@
7
7
  * - ERC20 → 原生代币转换报价
8
8
  */
9
9
  import { JsonRpcProvider } from 'ethers';
10
- import { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS } from '../shared/constants/quote.js';
11
- import type { QuoteParams, QuoteResult } from './types/quote-helpers.js';
10
+ import { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS } from '../../core/constants/quote.js';
11
+ import type { QuoteParams, QuoteResult } from './types.js';
12
12
  export { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS };
13
13
  /**
14
14
  * V2 报价(直接路径 + 多跳路径)
@@ -75,4 +75,4 @@ export declare function getWrappedNativeAddress(chain: string): string;
75
75
  * 获取链的稳定币列表
76
76
  */
77
77
  export declare function getStableCoins(chain: string): string[];
78
- export type { SupportedChain, QuoteParams, QuoteResult } from './types/quote-helpers.js';
78
+ export type { SupportedChain, QuoteParams, QuoteResult } from './types.js';
@@ -7,8 +7,8 @@
7
7
  * - ERC20 → 原生代币转换报价
8
8
  */
9
9
  import { Contract } from 'ethers';
10
- import { V2_ROUTER_QUOTE_ABI, V3_QUOTER_ABI } from '../abis/common.js';
11
- import { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS } from '../shared/constants/quote.js';
10
+ import { V2_ROUTER_QUOTE_ABI, V3_QUOTER_ABI } from '../../abis/common.js';
11
+ import { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS } from '../../core/constants/quote.js';
12
12
  const V2_ROUTER_ABI = V2_ROUTER_QUOTE_ABI;
13
13
  export { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS };
14
14
  /**
@@ -1 +1 @@
1
- export type { SupportedChain, QuoteParams, QuoteResult } from '../../shared/foundation/types/quote-helpers.js';
1
+ export type { SupportedChain, QuoteParams, QuoteResult } from '../../core/types/quote-helpers.js';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Flap vanity / CREATE2 子路径
3
+ */
4
+ export { findSaltEndingByChain, predictVanityTokenAddress, predictVanityTokenAddressByChain, } from '../flap/vanity.js';
5
+ export { getVanitySuffix } from '../flap/constants.js';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Flap vanity / CREATE2 子路径
3
+ */
4
+ export { findSaltEndingByChain, predictVanityTokenAddress, predictVanityTokenAddressByChain, } from '../flap/vanity.js';
5
+ export { getVanitySuffix } from '../flap/constants.js';
@@ -8,20 +8,20 @@
8
8
  * Merkle 提交函数亦见 `root-swap-dex-and-xlayer` / `bundle-core` 子路径。
9
9
  * 详见 README.zh-CN.md(导出迁移说明)。
10
10
  */
11
- export { createTokenWithBundleBuy as fourCreateTokenWithBundleBuy, batchBuyWithBundle as fourBatchBuyWithBundle, batchSellWithBundle as fourBatchSellWithBundle, type FourBundleConfig, type FourCreateWithBundleBuyParams, type FourCreateWithBundleBuyResult, type FourBatchBuyParams, type FourBatchBuyResult, type FourBatchSellParams, type FourBatchSellResult, } from '../contracts/tm-bundle.js';
12
- export { createTokenWithBundleBuy as flapCreateTokenWithBundleBuy, batchBuyWithBundle as flapBatchBuyWithBundle, batchSellWithBundle as flapBatchSellWithBundle, type FlapBundleConfig, type FlapChainForBundle, type FlapCreateWithBundleBuyParams, type FlapCreateWithBundleBuyResult, type FlapBatchBuyParams, type FlapBatchBuyResult, type FlapBatchSellParams, type FlapBatchSellResult, } from '../shared/flap/portal-bundle.js';
13
- export { fourPrivateBuy, fourPrivateSell, fourBatchPrivateBuy, fourBatchPrivateSell, type FourPrivateBuyParams, type FourPrivateSellParams, type FourBatchPrivateBuyParams, type FourBatchPrivateSellParams, } from '../contracts/tm-bundle.js';
14
- export { flapPrivateBuy, flapPrivateSell, flapBatchPrivateBuy, flapBatchPrivateSell, type FlapPrivateBuyParams, type FlapPrivateSellParams, type FlapBatchPrivateBuyParams, type FlapBatchPrivateSellParams, type FlapBatchPrivateSellResult, } from '../shared/flap/portal-bundle.js';
15
- export { createTokenWithBundleBuyMerkle as flapCreateTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle as flapBatchBuyWithBundleMerkle, batchSellWithBundleMerkle as flapBatchSellWithBundleMerkle, flapPrivateBuyMerkle, flapPrivateSellMerkle, flapBatchPrivateBuyMerkle, flapBatchPrivateSellMerkle, pancakeProxyBatchBuyMerkle, pancakeProxyBatchSellMerkle, approvePancakeProxy, approvePancakeProxyBatch, flapDisperseWithBundleMerkle, flapSweepWithBundleMerkle, type FlapBundleMerkleConfig, type FlapSignConfig, type FlapProfitMode, type FlapChainForMerkleBundle, type FlapCreateWithBundleBuySignParams, type FlapCreateWithBundleBuyMerkleParams, type FlapCreateWithBundleBuyMerkleResult, type FlapBatchBuySignParams, type FlapBatchBuyMerkleParams, type FlapBatchBuyMerkleResult, type FlapBatchSellSignParams, type FlapBatchSellMerkleParams, type FlapBatchSellMerkleResult, type MerkleTransactionStatus, type MerkleBundleStatus, type FlapPrivateBuyMerkleParams, type FlapPrivateSellMerkleParams, type FlapBatchPrivateBuyMerkleParams, type FlapBatchPrivateSellMerkleParams, type FlapBatchPrivateMerkleResult, type FlapPrivateTransactionResult, type PancakeProxyBatchBuyParams, type PancakeProxyBatchBuyResult, type PancakeProxyBatchSellParams, type PancakeProxyBatchSellResult, type PancakeProxyApprovalParams, type PancakeProxyApprovalBatchParams, type PancakeProxyApprovalBatchResult, type FlapDisperseSignParams, type FlapDisperseMerkleResult, type FlapSweepSignParams, type FlapSweepMerkleResult, } from '../shared/flap/portal-bundle-merkle/index.js';
11
+ export { createTokenWithBundleBuy as fourCreateTokenWithBundleBuy, batchBuyWithBundle as fourBatchBuyWithBundle, batchSellWithBundle as fourBatchSellWithBundle, type FourBundleConfig, type FourCreateWithBundleBuyParams, type FourCreateWithBundleBuyResult, type FourBatchBuyParams, type FourBatchBuyResult, type FourBatchSellParams, type FourBatchSellResult, } from '../domains/four/contracts/tm-bundle.js';
12
+ export { createTokenWithBundleBuy as flapCreateTokenWithBundleBuy, batchBuyWithBundle as flapBatchBuyWithBundle, batchSellWithBundle as flapBatchSellWithBundle, type FlapBundleConfig, type FlapChainForBundle, type FlapCreateWithBundleBuyParams, type FlapCreateWithBundleBuyResult, type FlapBatchBuyParams, type FlapBatchBuyResult, type FlapBatchSellParams, type FlapBatchSellResult, } from '../domains/flap/portal-bundle.js';
13
+ export { fourPrivateBuy, fourPrivateSell, fourBatchPrivateBuy, fourBatchPrivateSell, type FourPrivateBuyParams, type FourPrivateSellParams, type FourBatchPrivateBuyParams, type FourBatchPrivateSellParams, } from '../domains/four/contracts/tm-bundle.js';
14
+ export { flapPrivateBuy, flapPrivateSell, flapBatchPrivateBuy, flapBatchPrivateSell, type FlapPrivateBuyParams, type FlapPrivateSellParams, type FlapBatchPrivateBuyParams, type FlapBatchPrivateSellParams, type FlapBatchPrivateSellResult, } from '../domains/flap/portal-bundle.js';
15
+ export { createTokenWithBundleBuyMerkle as flapCreateTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle as flapBatchBuyWithBundleMerkle, batchSellWithBundleMerkle as flapBatchSellWithBundleMerkle, flapPrivateBuyMerkle, flapPrivateSellMerkle, flapBatchPrivateBuyMerkle, flapBatchPrivateSellMerkle, pancakeProxyBatchBuyMerkle, pancakeProxyBatchSellMerkle, approvePancakeProxy, approvePancakeProxyBatch, flapDisperseWithBundleMerkle, flapSweepWithBundleMerkle, type FlapBundleMerkleConfig, type FlapSignConfig, type FlapProfitMode, type FlapChainForMerkleBundle, type FlapCreateWithBundleBuySignParams, type FlapCreateWithBundleBuyMerkleParams, type FlapCreateWithBundleBuyMerkleResult, type FlapBatchBuySignParams, type FlapBatchBuyMerkleParams, type FlapBatchBuyMerkleResult, type FlapBatchSellSignParams, type FlapBatchSellMerkleParams, type FlapBatchSellMerkleResult, type MerkleTransactionStatus, type MerkleBundleStatus, type FlapPrivateBuyMerkleParams, type FlapPrivateSellMerkleParams, type FlapBatchPrivateBuyMerkleParams, type FlapBatchPrivateSellMerkleParams, type FlapBatchPrivateMerkleResult, type FlapPrivateTransactionResult, type PancakeProxyBatchBuyParams, type PancakeProxyBatchBuyResult, type PancakeProxyBatchSellParams, type PancakeProxyBatchSellResult, type PancakeProxyApprovalParams, type PancakeProxyApprovalBatchParams, type PancakeProxyApprovalBatchResult, type FlapDisperseSignParams, type FlapDisperseMerkleResult, type FlapSweepSignParams, type FlapSweepMerkleResult, } from '../domains/flap/portal-bundle-merkle/index.js';
16
16
  export { createTokenWithBundleBuyMerkle as fourCreateTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle as fourBatchBuyWithBundleMerkle, batchSellWithBundleMerkle as fourBatchSellWithBundleMerkle, fourPrivateBuyMerkle, fourPrivateSellMerkle, fourBatchPrivateBuyMerkle, fourBatchPrivateSellMerkle, disperseWithBundleMerkle, sweepWithBundleMerkle, pairwiseTransferWithBundleMerkle, fourPancakeProxyBatchBuyMerkle, fourPancakeProxyBatchSellMerkle, approveFourPancakeProxy, approveFourPancakeProxyBatch, approveFourTokenManagerBatch, submitBundleToMerkle, submitMultipleBundles, submitMultipleBundlesParallel, submitBundleToBlockRazor, submitMultipleBundlesToBlockRazor, submitMultipleBundlesToBlockRazorParallel, type MerkleSubmitConfig, type SubmitBundleResult, type BlockRazorSubmitConfig, type BlockRazorSubmitResult, type FourBundleMerkleConfig, type FourSignConfig, type FourCreateWithBundleBuySignParams, type FourBatchBuySignParams, type FourBatchSellSignParams, type FourPrivateBuySignParams, type FourPrivateSellSignParams, type FourBatchPrivateBuySignParams, type FourBatchPrivateSellSignParams, type FourPancakeProxyBatchBuySignParams, type FourPancakeProxyBatchSellSignParams, type DisperseSignParams as FourDisperseSignParams, type SweepSignParams as FourSweepSignParams, type FourCreateWithBundleBuyMerkleParams, type FourCreateWithBundleBuyMerkleResult, type FourBatchBuyMerkleParams, type FourBatchBuyMerkleResult, type FourBatchSellMerkleParams, type FourBatchSellMerkleResult, type FourPrivateBuyMerkleParams, type FourPrivateSellMerkleParams, type FourBatchPrivateBuyMerkleParams, type FourBatchPrivateSellMerkleParams, type FourBatchPrivateMerkleResult, type FourPrivateTransactionResult, type DisperseMerkleParams, type DisperseMerkleResult, type SweepMerkleParams, type SweepMerkleResult, type FourPancakeProxyBatchBuyParams, type FourPancakeProxyBatchBuyResult, type FourPancakeProxyBatchSellParams, type FourPancakeProxyBatchSellResult, type FourPancakeProxyApprovalParams, type FourPancakeProxyApprovalBatchParams, type FourPancakeProxyApprovalBatchResult, type ApproveFourTokenManagerBatchParams, type ApproveFourTokenManagerBatchResult, } from '../chains/bsc/four/index.js';
17
- export { isTaxToken as fourIsTaxToken, isAntiSniperFeeMode as fourIsAntiSniperFeeMode, getCreatorType as fourGetCreatorType, getTaxTokenInfo as fourGetTaxTokenInfo, getClaimableFee as fourGetClaimableFee, getClaimedFee as fourGetClaimedFee, getUserRewardInfo as fourGetUserRewardInfo, buildClaimFeeTx as fourBuildClaimFeeTx, buildBatchClaimFeeTxs as fourBuildBatchClaimFeeTxs, validateFourTokenTaxInfo, TAX_TOKEN_ABI, TransferMode as FourTransferMode, type TaxTokenConfig as FourTaxTokenConfig, type TaxTokenRewardStats as FourTaxTokenRewardStats, type TaxTokenUserInfo as FourTaxTokenUserInfo, type TaxTokenInfo as FourTaxTokenInfo, } from '../shared/four/index.js';
18
- export { PinataClient, type PinataConfig } from '../shared/flap/pinata.js';
19
- export { pinFileToIPFSWithJWT, pinImageByPath, pinFileToIPFSWithJWTWeb, pinDataURLWithJWTWeb, dataURLToBlob, type PinataPinResp, } from '../shared/flap/pinata.js';
17
+ export { isTaxToken as fourIsTaxToken, isAntiSniperFeeMode as fourIsAntiSniperFeeMode, getCreatorType as fourGetCreatorType, getTaxTokenInfo as fourGetTaxTokenInfo, getClaimableFee as fourGetClaimableFee, getClaimedFee as fourGetClaimedFee, getUserRewardInfo as fourGetUserRewardInfo, buildClaimFeeTx as fourBuildClaimFeeTx, buildBatchClaimFeeTxs as fourBuildBatchClaimFeeTxs, validateFourTokenTaxInfo, TAX_TOKEN_ABI, TransferMode as FourTransferMode, type TaxTokenConfig as FourTaxTokenConfig, type TaxTokenRewardStats as FourTaxTokenRewardStats, type TaxTokenUserInfo as FourTaxTokenUserInfo, type TaxTokenInfo as FourTaxTokenInfo, } from '../domains/four/index.js';
18
+ export { PinataClient, type PinataConfig } from '../domains/flap/pinata.js';
19
+ export { pinFileToIPFSWithJWT, pinImageByPath, pinFileToIPFSWithJWTWeb, pinDataURLWithJWTWeb, dataURLToBlob, type PinataPinResp, } from '../domains/flap/pinata.js';
20
20
  export { generateWallets, type GeneratedWallet } from '../utils/wallet.js';
21
21
  export { getTokenBalancesWithMulticall, type MulticallResult, type MultiTokenBalancesResult } from '../utils/wallet.js';
22
22
  export { validatePrivateKeys, type PrivateKeyValidation } from '../utils/wallet.js';
23
23
  export { stealthTransfer, type StealthTransferResult, type StealthTransferSimpleParams, } from '../utils/stealth-transfer.js';
24
- export { holdersMaker, estimateHoldersMakerCost } from '../utils/holders-maker.js';
25
- export { privateSaleMerkle, batchPrivateSaleMerkle } from '../utils/private-sale.js';
26
- export { inspectTokenLP, getFactoryFromRouter, registerDYORSwap, registerDex, getChainConfig, } from '../utils/lp-inspect.js';
24
+ export { holdersMaker, estimateHoldersMakerCost } from '../domains/holders/holders-maker.js';
25
+ export { privateSaleMerkle, batchPrivateSaleMerkle } from '../domains/private-sale/private-sale.js';
26
+ export { inspectTokenLP, getFactoryFromRouter, registerDYORSwap, registerDex, getChainConfig, } from '../domains/lp-inspect/lp-inspect.js';
27
27
  export { disperseWithBundle, sweepWithBundle, type AirdropDisperseParams, type AirdropDisperseSignParams, type AirdropSweepParams, type AirdropSweepSignParams, } from '../utils/airdrop-sweep.js';
@@ -8,23 +8,23 @@
8
8
  * Merkle 提交函数亦见 `root-swap-dex-and-xlayer` / `bundle-core` 子路径。
9
9
  * 详见 README.zh-CN.md(导出迁移说明)。
10
10
  */
11
- export { createTokenWithBundleBuy as fourCreateTokenWithBundleBuy, batchBuyWithBundle as fourBatchBuyWithBundle, batchSellWithBundle as fourBatchSellWithBundle, } from '../contracts/tm-bundle.js';
12
- export { createTokenWithBundleBuy as flapCreateTokenWithBundleBuy, batchBuyWithBundle as flapBatchBuyWithBundle, batchSellWithBundle as flapBatchSellWithBundle, } from '../shared/flap/portal-bundle.js';
13
- export { fourPrivateBuy, fourPrivateSell, fourBatchPrivateBuy, fourBatchPrivateSell, } from '../contracts/tm-bundle.js';
14
- export { flapPrivateBuy, flapPrivateSell, flapBatchPrivateBuy, flapBatchPrivateSell, } from '../shared/flap/portal-bundle.js';
15
- export { createTokenWithBundleBuyMerkle as flapCreateTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle as flapBatchBuyWithBundleMerkle, batchSellWithBundleMerkle as flapBatchSellWithBundleMerkle, flapPrivateBuyMerkle, flapPrivateSellMerkle, flapBatchPrivateBuyMerkle, flapBatchPrivateSellMerkle, pancakeProxyBatchBuyMerkle, pancakeProxyBatchSellMerkle, approvePancakeProxy, approvePancakeProxyBatch, flapDisperseWithBundleMerkle, flapSweepWithBundleMerkle, } from '../shared/flap/portal-bundle-merkle/index.js';
11
+ export { createTokenWithBundleBuy as fourCreateTokenWithBundleBuy, batchBuyWithBundle as fourBatchBuyWithBundle, batchSellWithBundle as fourBatchSellWithBundle, } from '../domains/four/contracts/tm-bundle.js';
12
+ export { createTokenWithBundleBuy as flapCreateTokenWithBundleBuy, batchBuyWithBundle as flapBatchBuyWithBundle, batchSellWithBundle as flapBatchSellWithBundle, } from '../domains/flap/portal-bundle.js';
13
+ export { fourPrivateBuy, fourPrivateSell, fourBatchPrivateBuy, fourBatchPrivateSell, } from '../domains/four/contracts/tm-bundle.js';
14
+ export { flapPrivateBuy, flapPrivateSell, flapBatchPrivateBuy, flapBatchPrivateSell, } from '../domains/flap/portal-bundle.js';
15
+ export { createTokenWithBundleBuyMerkle as flapCreateTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle as flapBatchBuyWithBundleMerkle, batchSellWithBundleMerkle as flapBatchSellWithBundleMerkle, flapPrivateBuyMerkle, flapPrivateSellMerkle, flapBatchPrivateBuyMerkle, flapBatchPrivateSellMerkle, pancakeProxyBatchBuyMerkle, pancakeProxyBatchSellMerkle, approvePancakeProxy, approvePancakeProxyBatch, flapDisperseWithBundleMerkle, flapSweepWithBundleMerkle, } from '../domains/flap/portal-bundle-merkle/index.js';
16
16
  export { createTokenWithBundleBuyMerkle as fourCreateTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle as fourBatchBuyWithBundleMerkle, batchSellWithBundleMerkle as fourBatchSellWithBundleMerkle, fourPrivateBuyMerkle, fourPrivateSellMerkle, fourBatchPrivateBuyMerkle, fourBatchPrivateSellMerkle, disperseWithBundleMerkle, sweepWithBundleMerkle, pairwiseTransferWithBundleMerkle, fourPancakeProxyBatchBuyMerkle, fourPancakeProxyBatchSellMerkle, approveFourPancakeProxy, approveFourPancakeProxyBatch, approveFourTokenManagerBatch, submitBundleToMerkle, submitMultipleBundles, submitMultipleBundlesParallel, submitBundleToBlockRazor, submitMultipleBundlesToBlockRazor, submitMultipleBundlesToBlockRazorParallel, } from '../chains/bsc/four/index.js';
17
17
  // ✅ Four.meme TaxToken 工具(税币识别/查询/领取奖励)
18
- export { isTaxToken as fourIsTaxToken, isAntiSniperFeeMode as fourIsAntiSniperFeeMode, getCreatorType as fourGetCreatorType, getTaxTokenInfo as fourGetTaxTokenInfo, getClaimableFee as fourGetClaimableFee, getClaimedFee as fourGetClaimedFee, getUserRewardInfo as fourGetUserRewardInfo, buildClaimFeeTx as fourBuildClaimFeeTx, buildBatchClaimFeeTxs as fourBuildBatchClaimFeeTxs, validateFourTokenTaxInfo, TAX_TOKEN_ABI, TransferMode as FourTransferMode, } from '../shared/four/index.js';
19
- export { PinataClient } from '../shared/flap/pinata.js';
20
- export { pinFileToIPFSWithJWT, pinImageByPath, pinFileToIPFSWithJWTWeb, pinDataURLWithJWTWeb, dataURLToBlob, } from '../shared/flap/pinata.js';
18
+ export { isTaxToken as fourIsTaxToken, isAntiSniperFeeMode as fourIsAntiSniperFeeMode, getCreatorType as fourGetCreatorType, getTaxTokenInfo as fourGetTaxTokenInfo, getClaimableFee as fourGetClaimableFee, getClaimedFee as fourGetClaimedFee, getUserRewardInfo as fourGetUserRewardInfo, buildClaimFeeTx as fourBuildClaimFeeTx, buildBatchClaimFeeTxs as fourBuildBatchClaimFeeTxs, validateFourTokenTaxInfo, TAX_TOKEN_ABI, TransferMode as FourTransferMode, } from '../domains/four/index.js';
19
+ export { PinataClient } from '../domains/flap/pinata.js';
20
+ export { pinFileToIPFSWithJWT, pinImageByPath, pinFileToIPFSWithJWTWeb, pinDataURLWithJWTWeb, dataURLToBlob, } from '../domains/flap/pinata.js';
21
21
  export { generateWallets } from '../utils/wallet.js';
22
22
  export { getTokenBalancesWithMulticall } from '../utils/wallet.js';
23
23
  export { validatePrivateKeys } from '../utils/wallet.js';
24
24
  export { stealthTransfer, } from '../utils/stealth-transfer.js';
25
25
  // ✅ 刷持有人(类型见 root-foundations / foundation.types;此处仅导出函数)
26
- export { holdersMaker, estimateHoldersMakerCost } from '../utils/holders-maker.js';
26
+ export { holdersMaker, estimateHoldersMakerCost } from '../domains/holders/holders-maker.js';
27
27
  // ✅ 私募转账签名(带贿赂和利润提取)
28
- export { privateSaleMerkle, batchPrivateSaleMerkle } from '../utils/private-sale.js';
29
- export { inspectTokenLP, getFactoryFromRouter, registerDYORSwap, registerDex, getChainConfig, } from '../utils/lp-inspect.js';
28
+ export { privateSaleMerkle, batchPrivateSaleMerkle } from '../domains/private-sale/private-sale.js';
29
+ export { inspectTokenLP, getFactoryFromRouter, registerDYORSwap, registerDex, getChainConfig, } from '../domains/lp-inspect/lp-inspect.js';
30
30
  export { disperseWithBundle, sweepWithBundle, } from '../utils/airdrop-sweep.js';
@@ -6,30 +6,30 @@
6
6
  */
7
7
  export * as chains from '../chains/index.js';
8
8
  export * as Abis from '../abis/index.js';
9
- export { getErrorMessageFromUnknown, normalizeUnknownError, noopSdkLogger, consoleSdkLogger, buildTransactionRequest, type NormalizedErrorShape, type SdkLogger, type Aggregate3CallResult, type EnsureAllowanceResult, type EnsureAllowanceBatchItemResult, type BuildTxRequestParams, type HoldersMakerChain, type HoldersMakerTradeType, type BaseTokenType, type HoldersMakerConfig, type HoldersMakerParams, type TransactionLayer, type BatchResult, type BatchResult as HoldersMakerBatchResult, type HoldersMakerResult, type DexConfig, type ChainDexConfig, type PoolPairInfo, type V3PoolInfo, type DexPoolInfo, type BestPoolInfo, type LPPlatform, type LPInfo, type InspectOptions, type BundleSubmitResult, type SignedTransactionsResult, type DisperseParams, type AirdropDisperseSignParams, type SweepParams, type AirdropSweepSignParams, type PrivateSaleSignConfig, type PrivateSaleTransferParams, type BatchPrivateSaleParams, type PrivateSaleResult, type ApproveTokenBatchParams, type ApproveTokenBatchRawParams, type ApproveTokenBatchResult, type ApproveTokenBatchSignResult, type SupportedChain, type QuoteParams, type QuoteResult, } from '../shared/foundation/index.js';
9
+ export { getErrorMessageFromUnknown, normalizeUnknownError, noopSdkLogger, consoleSdkLogger, buildTransactionRequest, type NormalizedErrorShape, type SdkLogger, type Aggregate3CallResult, type EnsureAllowanceResult, type EnsureAllowanceBatchItemResult, type BuildTxRequestParams, type HoldersMakerChain, type HoldersMakerTradeType, type BaseTokenType, type HoldersMakerConfig, type HoldersMakerParams, type TransactionLayer, type BatchResult, type BatchResult as HoldersMakerBatchResult, type HoldersMakerResult, type DexConfig, type ChainDexConfig, type PoolPairInfo, type V3PoolInfo, type DexPoolInfo, type BestPoolInfo, type LPPlatform, type LPInfo, type InspectOptions, type BundleSubmitResult, type SignedTransactionsResult, type DisperseParams, type AirdropDisperseSignParams, type SweepParams, type AirdropSweepSignParams, type PrivateSaleSignConfig, type PrivateSaleTransferParams, type BatchPrivateSaleParams, type PrivateSaleResult, type ApproveTokenBatchParams, type ApproveTokenBatchRawParams, type ApproveTokenBatchResult, type ApproveTokenBatchSignResult, type SupportedChain, type QuoteParams, type QuoteResult, } from '../core/index.js';
10
10
  export { ERC20_ABI, ERC20_BALANCE_ABI, ERC20_ALLOWANCE_ABI, MULTICALL3_ABI, V2_ROUTER_ABI, V2_ROUTER_QUOTE_ABI, V3_ROUTER02_ABI, V3_ROUTER_LEGACY_ABI, V3_QUOTER_ABI, V2_FACTORY_ABI, V2_PAIR_ABI, V3_FACTORY_ABI, V3_POOL_ABI, FLAP_PORTAL_ABI, TM2_ABI, HELPER3_ABI, } from '../abis/common.js';
11
- export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ADDRESSES, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, ENI_SPENDERS, getEniSpenders, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateProfitHopGasCost, getTransferFeePerAddress, TRANSFER_FEE_PER_ADDRESS, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../shared/constants/index.js';
11
+ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ADDRESSES, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, ENI_SPENDERS, getEniSpenders, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateProfitHopGasCost, getTransferFeePerAddress, TRANSFER_FEE_PER_ADDRESS, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
12
12
  export { buildProfitHopTransactions, PROFIT_HOP_COUNT } from '../utils/bundle-helpers.js';
13
13
  export { isExclusiveOnChain, isExclusiveOffChain } from '../utils/mpcExclusive.js';
14
- export { ensureSellApprovalV1, checkSellApprovalV1, ensureSellApprovalV2, checkSellApprovalV2, ensureSellApproval, checkSellApproval, ensureFlapSellApproval, checkFlapSellApproval, ensureFlapSellApprovalBatch, checkFlapSellApprovalBatch, checkAllowance, approveToken, checkAllowanceBatch, approveTokenBatch, checkAllowanceRaw, approveTokenRaw, checkAllowanceBatchRaw, approveTokenBatchRaw, } from '../utils/erc20.js';
14
+ export { ensureSellApprovalV1, checkSellApprovalV1, ensureSellApprovalV2, checkSellApprovalV2, ensureSellApproval, checkSellApproval, ensureFlapSellApproval, checkFlapSellApproval, ensureFlapSellApprovalBatch, checkFlapSellApprovalBatch, checkAllowance, approveToken, checkAllowanceBatch, approveTokenBatch, checkAllowanceRaw, approveTokenRaw, checkAllowanceBatchRaw, approveTokenBatchRaw, } from '../core/erc20.js';
15
15
  export { parseFourError, type FourErrorCode } from '../utils/errors.js';
16
16
  export { getTokenManagerV1, getTokenManagerV2, getTokenManagerHelper3, getTokenManagerV1Writer, getTokenManagerV2Writer, getTokenManagerHelper3Writer, getTokenManagerAddress, type ChainName, } from '../utils/contract-factory.js';
17
- export { FourClient, buildLoginMessage, type FourConfig, type GenerateNonceReq, type LoginReq, type CreateTokenReq, type CreateTokenResp, type FourTokenTaxInfo, } from '../shared/clients/four.js';
18
- export { createTokenOnChain, tryBuy, trySell, buyTokenWithFunds, sellToken, tradeBuy, tradeSell, type CreateOnChainParams, type TryBuyResult, type TrySellResult, } from '../contracts/tm.js';
19
- export { TM1, type FourChainV1 } from '../contracts/tm1.js';
20
- export { TM2, type FourChainV2 } from '../contracts/tm2.js';
21
- export { Helper3, Helper3Writer } from '../contracts/helper3.js';
22
- export { CDPV2 } from '../shared/flap/curve.js';
23
- export { FlapPortal, FlapPortalWriter, type FlapChain, type PortalConfig, type TokenStateV2, type TokenStateV3, type TokenStateV4, type TokenStateV5, type TokenStateV7, type QuoteExactInputParams, type ExactInputParams, type ExactInputV3Params, type NewTokenV3Params, type NewTokenV4Params, type NewTokenV5Params, type TaxDistributionConfig, validateTaxDistribution, TokenStatus, TokenVersion, DexThreshType, MigratorType, V3LPFeeProfile, lpFeeProfileToV3Fee, DEXId, } from '../shared/flap/portal.js';
24
- export { uploadTokenMeta, type TokenMetaInput } from '../shared/flap/ipfs.js';
25
- export { buildPermitPiggybackAuto } from '../shared/flap/permit.js';
26
- export { predictVanityTokenAddressByChain, findSaltEndingByChain } from '../shared/flap/vanity.js';
27
- export { FLAP_DEFAULT_FEE_RATES, FLAP_IPFS_API_URL, FLAP_VANITY_SUFFIX, FLAP_DEX_THRESHOLDS, FLAP_TOTAL_SUPPLY, ZERO_ADDRESS, CHAIN_TAX_SUPPORT, getVanitySuffix, isChainSupportTax, } from '../shared/flap/constants.js';
28
- export { parseFlapError, getFlapErrorMessage, getFlapErrorMessageEn, type FlapErrorCode, } from '../shared/flap/errors.js';
29
- export { getFlapMetaByAddress, getFlapMetasByAddresses } from '../shared/flap/meta.js';
30
- export { createTokenFlow, type CreateTokenFlowInput, type CreateTokenFlowOutput } from '../flows/create.js';
31
- export { Club48Client, sendBatchPrivateTransactions, sendBackrunBundle, type BundleParams, type BundleStatus, type Club48Config, } from '../shared/clients/club48.js';
32
- export { MerkleClient, createMerkleClient, type MerkleConfig, type BundleParams as MerkleBundleParams, type SendBundleOptions, type BundleResult, type TransactionResult, } from '../shared/clients/merkle.js';
33
- export { BlockRazorClient, createBlockRazorClient, BLOCKRAZOR_BUILDER_EOA, type BlockRazorConfig, type BlockRazorBundleParams, type SendBundleOptions as BlockRazorSendBundleOptions, type BundleResult as BlockRazorBundleResult, type TransactionResult as BlockRazorTransactionResult, type IncentiveTransactionParams, } from '../shared/clients/blockrazor.js';
34
- export { EmitServiceClient, submitToEmitServiceBlockRazor, type EmitServiceClientConfig, type EmitServiceSubmitRequest, type EmitServiceSubmitResponse, type EmitServiceSubmitResponseData, type EmitServiceRouteConfigResponse, } from '../shared/clients/emitservice.js';
17
+ export { FourClient, buildLoginMessage, type FourConfig, type GenerateNonceReq, type LoginReq, type CreateTokenReq, type CreateTokenResp, type FourTokenTaxInfo, } from '../core/clients/four.js';
18
+ export { createTokenOnChain, tryBuy, trySell, buyTokenWithFunds, sellToken, tradeBuy, tradeSell, type CreateOnChainParams, type TryBuyResult, type TrySellResult, } from '../domains/four/contracts/tm.js';
19
+ export { TM1, type FourChainV1 } from '../domains/four/contracts/tm1.js';
20
+ export { TM2, type FourChainV2 } from '../domains/four/contracts/tm2.js';
21
+ export { Helper3, Helper3Writer } from '../domains/four/contracts/helper3.js';
22
+ export { CDPV2 } from '../domains/flap/curve.js';
23
+ export { FlapPortal, FlapPortalWriter, type FlapChain, type PortalConfig, type TokenStateV2, type TokenStateV3, type TokenStateV4, type TokenStateV5, type TokenStateV7, type QuoteExactInputParams, type ExactInputParams, type ExactInputV3Params, type NewTokenV3Params, type NewTokenV4Params, type NewTokenV5Params, type TaxDistributionConfig, validateTaxDistribution, TokenStatus, TokenVersion, DexThreshType, MigratorType, V3LPFeeProfile, lpFeeProfileToV3Fee, DEXId, } from '../domains/flap/portal.js';
24
+ export { uploadTokenMeta, type TokenMetaInput } from '../domains/flap/ipfs.js';
25
+ export { buildPermitPiggybackAuto } from '../domains/flap/permit.js';
26
+ export { predictVanityTokenAddressByChain, findSaltEndingByChain } from '../domains/flap/vanity.js';
27
+ export { FLAP_DEFAULT_FEE_RATES, FLAP_IPFS_API_URL, FLAP_VANITY_SUFFIX, FLAP_DEX_THRESHOLDS, FLAP_TOTAL_SUPPLY, ZERO_ADDRESS, CHAIN_TAX_SUPPORT, getVanitySuffix, isChainSupportTax, } from '../domains/flap/constants.js';
28
+ export { parseFlapError, getFlapErrorMessage, getFlapErrorMessageEn, type FlapErrorCode, } from '../domains/flap/errors.js';
29
+ export { getFlapMetaByAddress, getFlapMetasByAddresses } from '../domains/flap/meta.js';
30
+ export { createTokenFlow, type CreateTokenFlowInput, type CreateTokenFlowOutput } from '../domains/flows/create.js';
31
+ export { Club48Client, sendBatchPrivateTransactions, sendBackrunBundle, type BundleParams, type BundleStatus, type Club48Config, } from '../core/clients/club48.js';
32
+ export { MerkleClient, createMerkleClient, type MerkleConfig, type BundleParams as MerkleBundleParams, type SendBundleOptions, type BundleResult, type TransactionResult, } from '../core/clients/merkle.js';
33
+ export { BlockRazorClient, createBlockRazorClient, BLOCKRAZOR_BUILDER_EOA, type BlockRazorConfig, type BlockRazorBundleParams, type SendBundleOptions as BlockRazorSendBundleOptions, type BundleResult as BlockRazorBundleResult, type TransactionResult as BlockRazorTransactionResult, type IncentiveTransactionParams, } from '../core/clients/blockrazor.js';
34
+ export { EmitServiceClient, submitToEmitServiceBlockRazor, type EmitServiceClientConfig, type EmitServiceSubmitRequest, type EmitServiceSubmitResponse, type EmitServiceSubmitResponseData, type EmitServiceRouteConfigResponse, } from '../core/clients/emitservice.js';
35
35
  export { NonceManager, getOptimizedGasPrice, estimateGasWithSafety, estimateGasBatch, buildTransaction, signTransactionsBatch, signTransactionsBatchMultiWallet, validateSignedTransactions, getDeadline, encodeV3Path, decodeV3Path, getGasLimit, getGasPriceConfig, getTxType, getChainId, type GasPriceConfig, type GasEstimateConfig, type BuildTransactionOptions, type CommonBundleConfig, } from '../utils/bundle-helpers.js';
@@ -15,7 +15,7 @@ export * as Abis from '../abis/index.js';
15
15
  // ============================================================================
16
16
  // SDK 基础(unknown 收口 / 可选 Logger;审计 P1)
17
17
  // ============================================================================
18
- export { getErrorMessageFromUnknown, normalizeUnknownError, noopSdkLogger, consoleSdkLogger, buildTransactionRequest, } from '../shared/foundation/index.js';
18
+ export { getErrorMessageFromUnknown, normalizeUnknownError, noopSdkLogger, consoleSdkLogger, buildTransactionRequest, } from '../core/index.js';
19
19
  // export * as Sol from '../sol/index.js';
20
20
  export { ERC20_ABI, ERC20_BALANCE_ABI, ERC20_ALLOWANCE_ABI, MULTICALL3_ABI, V2_ROUTER_ABI, V2_ROUTER_QUOTE_ABI, V3_ROUTER02_ABI, V3_ROUTER_LEGACY_ABI, V3_QUOTER_ABI, V2_FACTORY_ABI, V2_PAIR_ABI, V3_FACTORY_ABI, V3_POOL_ABI, FLAP_PORTAL_ABI, TM2_ABI, HELPER3_ABI, } from '../abis/common.js';
21
21
  // ============================================================================
@@ -31,7 +31,7 @@ ADDRESSES, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeTo
31
31
  // 利润配置
32
32
  getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateProfitHopGasCost, getTransferFeePerAddress, TRANSFER_FEE_PER_ADDRESS,
33
33
  // DEX 报价配置
34
- QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../shared/constants/index.js';
34
+ QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
35
35
  export { buildProfitHopTransactions, PROFIT_HOP_COUNT } from '../utils/bundle-helpers.js';
36
36
  export { isExclusiveOnChain, isExclusiveOffChain } from '../utils/mpcExclusive.js';
37
37
  export {
@@ -46,25 +46,25 @@ ensureFlapSellApproval, checkFlapSellApproval, ensureFlapSellApprovalBatch, chec
46
46
  // ✅ 智能路由授权方法(自动选择 spender,适用于 Flap、Four、V2、V3)
47
47
  checkAllowance, approveToken, checkAllowanceBatch, approveTokenBatch,
48
48
  // ✅ 底层授权方法(手动指定 spender,适用于任意合约)
49
- checkAllowanceRaw, approveTokenRaw, checkAllowanceBatchRaw, approveTokenBatchRaw, } from '../utils/erc20.js';
49
+ checkAllowanceRaw, approveTokenRaw, checkAllowanceBatchRaw, approveTokenBatchRaw, } from '../core/erc20.js';
50
50
  export { parseFourError } from '../utils/errors.js';
51
51
  export { getTokenManagerV1, getTokenManagerV2, getTokenManagerHelper3, getTokenManagerV1Writer, getTokenManagerV2Writer, getTokenManagerHelper3Writer, getTokenManagerAddress, } from '../utils/contract-factory.js';
52
- export { FourClient, buildLoginMessage, } from '../shared/clients/four.js';
53
- export { createTokenOnChain, tryBuy, trySell, buyTokenWithFunds, sellToken, tradeBuy, tradeSell, } from '../contracts/tm.js';
54
- export { TM1 } from '../contracts/tm1.js';
55
- export { TM2 } from '../contracts/tm2.js';
56
- export { Helper3, Helper3Writer } from '../contracts/helper3.js';
57
- export { CDPV2 } from '../shared/flap/curve.js';
58
- export { FlapPortal, FlapPortalWriter, validateTaxDistribution, TokenStatus, TokenVersion, DexThreshType, MigratorType, V3LPFeeProfile, lpFeeProfileToV3Fee, DEXId, } from '../shared/flap/portal.js';
59
- export { uploadTokenMeta } from '../shared/flap/ipfs.js';
60
- export { buildPermitPiggybackAuto } from '../shared/flap/permit.js';
61
- export { predictVanityTokenAddressByChain, findSaltEndingByChain } from '../shared/flap/vanity.js';
62
- export { FLAP_DEFAULT_FEE_RATES, FLAP_IPFS_API_URL, FLAP_VANITY_SUFFIX, FLAP_DEX_THRESHOLDS, FLAP_TOTAL_SUPPLY, ZERO_ADDRESS, CHAIN_TAX_SUPPORT, getVanitySuffix, isChainSupportTax, } from '../shared/flap/constants.js';
63
- export { parseFlapError, getFlapErrorMessage, getFlapErrorMessageEn, } from '../shared/flap/errors.js';
64
- export { getFlapMetaByAddress, getFlapMetasByAddresses } from '../shared/flap/meta.js';
65
- export { createTokenFlow } from '../flows/create.js';
66
- export { Club48Client, sendBatchPrivateTransactions, sendBackrunBundle, } from '../shared/clients/club48.js';
67
- export { MerkleClient, createMerkleClient, } from '../shared/clients/merkle.js';
68
- export { BlockRazorClient, createBlockRazorClient, BLOCKRAZOR_BUILDER_EOA, } from '../shared/clients/blockrazor.js';
69
- export { EmitServiceClient, submitToEmitServiceBlockRazor, } from '../shared/clients/emitservice.js';
52
+ export { FourClient, buildLoginMessage, } from '../core/clients/four.js';
53
+ export { createTokenOnChain, tryBuy, trySell, buyTokenWithFunds, sellToken, tradeBuy, tradeSell, } from '../domains/four/contracts/tm.js';
54
+ export { TM1 } from '../domains/four/contracts/tm1.js';
55
+ export { TM2 } from '../domains/four/contracts/tm2.js';
56
+ export { Helper3, Helper3Writer } from '../domains/four/contracts/helper3.js';
57
+ export { CDPV2 } from '../domains/flap/curve.js';
58
+ export { FlapPortal, FlapPortalWriter, validateTaxDistribution, TokenStatus, TokenVersion, DexThreshType, MigratorType, V3LPFeeProfile, lpFeeProfileToV3Fee, DEXId, } from '../domains/flap/portal.js';
59
+ export { uploadTokenMeta } from '../domains/flap/ipfs.js';
60
+ export { buildPermitPiggybackAuto } from '../domains/flap/permit.js';
61
+ export { predictVanityTokenAddressByChain, findSaltEndingByChain } from '../domains/flap/vanity.js';
62
+ export { FLAP_DEFAULT_FEE_RATES, FLAP_IPFS_API_URL, FLAP_VANITY_SUFFIX, FLAP_DEX_THRESHOLDS, FLAP_TOTAL_SUPPLY, ZERO_ADDRESS, CHAIN_TAX_SUPPORT, getVanitySuffix, isChainSupportTax, } from '../domains/flap/constants.js';
63
+ export { parseFlapError, getFlapErrorMessage, getFlapErrorMessageEn, } from '../domains/flap/errors.js';
64
+ export { getFlapMetaByAddress, getFlapMetasByAddresses } from '../domains/flap/meta.js';
65
+ export { createTokenFlow } from '../domains/flows/create.js';
66
+ export { Club48Client, sendBatchPrivateTransactions, sendBackrunBundle, } from '../core/clients/club48.js';
67
+ export { MerkleClient, createMerkleClient, } from '../core/clients/merkle.js';
68
+ export { BlockRazorClient, createBlockRazorClient, BLOCKRAZOR_BUILDER_EOA, } from '../core/clients/blockrazor.js';
69
+ export { EmitServiceClient, submitToEmitServiceBlockRazor, } from '../core/clients/emitservice.js';
70
70
  export { NonceManager, getOptimizedGasPrice, estimateGasWithSafety, estimateGasBatch, buildTransaction, signTransactionsBatch, signTransactionsBatchMultiWallet, validateSignedTransactions, getDeadline, encodeV3Path, decodeV3Path, getGasLimit, getGasPriceConfig, getTxType, getChainId, } from '../utils/bundle-helpers.js';