four-flap-meme-sdk 2.2.20 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (446) 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/index.d.ts +1 -1
  59. package/dist/chains/bsc/index.js +2 -0
  60. package/dist/chains/bsc/pancake/bundle-buy-first-helpers.d.ts +1 -1
  61. package/dist/chains/bsc/pancake/bundle-buy-first-helpers.js +3 -3
  62. package/dist/chains/bsc/pancake/bundle-buy-first.js +4 -4
  63. package/dist/chains/bsc/pancake/bundle-swap-helpers.d.ts +1 -1
  64. package/dist/chains/bsc/pancake/bundle-swap-helpers.js +5 -5
  65. package/dist/chains/bsc/pancake/bundle-swap.js +2 -2
  66. package/dist/chains/bsc/platforms/iro/constants.js +1 -1
  67. package/dist/chains/bsc/platforms/iro/token.js +1 -1
  68. package/dist/chains/eni/batch-router/transfer.js +2 -2
  69. package/dist/chains/eni/constants.js +1 -1
  70. package/dist/chains/eni/index.d.ts +2 -0
  71. package/dist/chains/eni/index.js +4 -0
  72. package/dist/chains/eni/platforms/daoaas/create.js +1 -1
  73. package/dist/chains/eni/platforms/daoaas/portal-direct.js +1 -1
  74. package/dist/chains/eni/platforms/dswap/liquidity.js +1 -1
  75. package/dist/chains/eni/platforms/fair-launch/constants.js +1 -1
  76. package/dist/chains/eni/platforms/fair-launch/launcher.js +1 -1
  77. package/dist/chains/eni/platforms/fair-launch/pool.js +1 -1
  78. package/dist/chains/eni/platforms/iro/constants.d.ts +1 -1
  79. package/dist/chains/eni/platforms/iro/constants.js +2 -2
  80. package/dist/chains/eni/platforms/iro/token.js +1 -1
  81. package/dist/chains/eni/submit.js +2 -2
  82. package/dist/chains/monad/constants.js +1 -1
  83. package/dist/chains/xlayer/constants.js +1 -1
  84. package/dist/chains/xlayer/eip7702/bundle-create.js +1 -1
  85. package/dist/chains/xlayer/eip7702/bundle-sell.js +1 -1
  86. package/dist/chains/xlayer/eip7702/bundle-swap.js +1 -1
  87. package/dist/chains/xlayer/eip7702/constants.d.ts +1 -1
  88. package/dist/chains/xlayer/eip7702/constants.js +2 -2
  89. package/dist/chains/xlayer/eip7702/multi-hop-transfer.js +1 -1
  90. package/dist/chains/xlayer/eip7702/utils.js +1 -1
  91. package/dist/chains/xlayer/eip7702/volume.js +1 -1
  92. package/dist/chains/xlayer/eoa/constants.js +1 -1
  93. package/dist/chains/xlayer/eoa/dex-helpers.d.ts +1 -1
  94. package/dist/chains/xlayer/eoa/dex-helpers.js +2 -2
  95. package/dist/chains/xlayer/eoa/eoa-bundle-swap-helpers.d.ts +1 -1
  96. package/dist/chains/xlayer/eoa/eoa-bundle-swap-helpers.js +3 -3
  97. package/dist/chains/xlayer/eoa/eoa-bundle-swap.js +2 -2
  98. package/dist/chains/xlayer/eoa/eoa-wash-volume.d.ts +1 -1
  99. package/dist/chains/xlayer/eoa/eoa-wash-volume.js +2 -2
  100. package/dist/chains/xlayer/eoa/router-manager.js +1 -1
  101. package/dist/{shared → core}/clients/blockrazor.js +1 -1
  102. package/dist/{shared → core}/clients/four.js +1 -1
  103. package/dist/{shared → core}/clients/merkle.js +1 -1
  104. package/dist/{shared → core}/constants/index.d.ts +2 -2
  105. package/dist/{shared → core}/constants/index.js +1 -1
  106. package/dist/{shared/foundation → core}/dex/v3-path.js +1 -1
  107. package/dist/{utils → core}/erc20.d.ts +2 -2
  108. package/dist/{utils → core}/erc20.js +3 -3
  109. package/dist/{shared/foundation → core}/gas/profit-hop.js +1 -1
  110. package/dist/core/index.d.ts +5 -0
  111. package/dist/core/index.js +5 -0
  112. package/dist/{shared/foundation → core}/nonce/nonce-manager.js +1 -1
  113. package/dist/{shared/foundation → core}/types/airdrop-sweep.d.ts +1 -1
  114. package/dist/{shared/foundation → core}/types/holders-maker.d.ts +1 -1
  115. package/dist/{shared/foundation → core}/types/lp-inspect.d.ts +1 -1
  116. package/dist/{shared/foundation → core}/types/private-sale.d.ts +1 -1
  117. package/dist/{utils/types/erc20.d.ts → core/types-erc20.d.ts} +1 -1
  118. package/dist/{dex → domains/dex}/direct-router-helpers.d.ts +1 -1
  119. package/dist/{dex → domains/dex}/direct-router-helpers.js +4 -4
  120. package/dist/{dex → domains/dex}/direct-router.js +6 -6
  121. package/dist/{dex → domains/dex}/types.d.ts +1 -1
  122. package/dist/{shared → domains}/flap/constants.d.ts +1 -1
  123. package/dist/{shared → domains}/flap/constants.js +1 -1
  124. package/dist/{shared → domains}/flap/errors.js +1 -1
  125. package/dist/{flap → domains/flap}/index.d.ts +5 -9
  126. package/dist/domains/flap/index.js +5 -0
  127. package/dist/{shared → domains}/flap/meta.js +2 -2
  128. package/dist/{shared → domains}/flap/permit.js +2 -2
  129. package/dist/{shared → domains}/flap/portal-bundle-merkle/config.d.ts +2 -2
  130. package/dist/{shared → domains}/flap/portal-bundle-merkle/config.js +4 -4
  131. package/dist/{shared → domains}/flap/portal-bundle-merkle/core-helpers.js +3 -3
  132. package/dist/{shared → domains}/flap/portal-bundle-merkle/core.js +4 -4
  133. package/dist/{shared → domains}/flap/portal-bundle-merkle/create-to-dex.js +3 -3
  134. package/dist/{shared → domains}/flap/portal-bundle-merkle/curve-to-dex.js +4 -4
  135. package/dist/{shared → domains}/flap/portal-bundle-merkle/pancake-proxy.js +4 -4
  136. package/dist/{shared → domains}/flap/portal-bundle-merkle/private.js +3 -3
  137. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-batch.js +2 -2
  138. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first-helpers.js +3 -3
  139. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first.js +7 -7
  140. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-cross.js +1 -1
  141. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-helpers.js +3 -3
  142. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-planning.js +5 -5
  143. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-quick-batch.js +4 -4
  144. package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-single.js +2 -2
  145. package/dist/{shared → domains}/flap/portal-bundle-merkle/utils.js +3 -3
  146. package/dist/{shared → domains}/flap/portal-bundle.d.ts +2 -2
  147. package/dist/{shared → domains}/flap/portal-bundle.js +3 -3
  148. package/dist/{shared → domains}/flap/portal-create-token.js +1 -1
  149. package/dist/{shared → domains}/flap/vault.js +1 -1
  150. package/dist/{flows → domains/flows}/create.js +2 -2
  151. package/dist/{contracts → domains/four/contracts}/helper3.js +2 -2
  152. package/dist/{contracts → domains/four/contracts}/tm-bundle-helpers.d.ts +4 -4
  153. package/dist/{contracts → domains/four/contracts}/tm-bundle-helpers.js +3 -3
  154. package/dist/{contracts → domains/four/contracts}/tm-bundle.d.ts +2 -2
  155. package/dist/{contracts → domains/four/contracts}/tm-bundle.js +7 -7
  156. package/dist/{contracts → domains/four/contracts}/tm.d.ts +1 -1
  157. package/dist/{contracts → domains/four/contracts}/tm.js +4 -4
  158. package/dist/{contracts → domains/four/contracts}/tm1.js +2 -2
  159. package/dist/{contracts → domains/four/contracts}/tm2.js +2 -2
  160. package/dist/domains/four/index.d.ts +7 -0
  161. package/dist/domains/four/index.js +7 -0
  162. package/dist/{shared → domains}/four/tax-token.js +1 -1
  163. package/dist/{utils → domains/holders}/holders-maker-helpers.d.ts +7 -7
  164. package/dist/{utils → domains/holders}/holders-maker-helpers.js +7 -7
  165. package/dist/{utils → domains/holders}/holders-maker.d.ts +2 -2
  166. package/dist/{utils → domains/holders}/holders-maker.js +4 -4
  167. package/dist/domains/holders/index.d.ts +1 -0
  168. package/dist/domains/holders/index.js +1 -0
  169. package/dist/{utils/holders-maker → domains/holders/internal}/addresses.js +1 -1
  170. package/dist/{utils/holders-maker → domains/holders/internal}/buy-tx.d.ts +1 -1
  171. package/dist/{utils/holders-maker → domains/holders/internal}/buy-tx.js +4 -4
  172. package/dist/{utils/holders-maker → domains/holders/internal}/constants.js +1 -1
  173. package/dist/{utils/holders-maker → domains/holders/internal}/disperse.d.ts +4 -4
  174. package/dist/{utils/holders-maker → domains/holders/internal}/disperse.js +2 -2
  175. package/dist/{utils/holders-maker → domains/holders/internal}/routing.d.ts +1 -1
  176. package/dist/{utils/holders-maker → domains/holders/internal}/routing.js +1 -1
  177. package/dist/{utils/holders-maker → domains/holders/internal}/transfer-tx.js +2 -2
  178. package/dist/{utils/types/holders-maker.d.ts → domains/holders/types.d.ts} +1 -1
  179. package/dist/domains/lp-inspect/index.d.ts +1 -0
  180. package/dist/domains/lp-inspect/index.js +1 -0
  181. package/dist/{utils → domains/lp-inspect}/lp-inspect-helpers.d.ts +1 -1
  182. package/dist/{utils → domains/lp-inspect}/lp-inspect-helpers.js +1 -1
  183. package/dist/{utils → domains/lp-inspect}/lp-inspect.d.ts +2 -2
  184. package/dist/{utils → domains/lp-inspect}/lp-inspect.js +6 -6
  185. package/dist/{utils/types/lp-inspect.d.ts → domains/lp-inspect/types.d.ts} +1 -1
  186. package/dist/{merkle → domains/merkle}/index.d.ts +7 -7
  187. package/dist/domains/merkle/index.js +11 -0
  188. package/dist/domains/private-sale/index.d.ts +1 -0
  189. package/dist/domains/private-sale/index.js +1 -0
  190. package/dist/{utils → domains/private-sale}/private-sale.d.ts +2 -2
  191. package/dist/{utils → domains/private-sale}/private-sale.js +2 -2
  192. package/dist/domains/private-sale/types.d.ts +1 -0
  193. package/dist/domains/quote/index.d.ts +1 -0
  194. package/dist/domains/quote/index.js +1 -0
  195. package/dist/{utils → domains/quote}/quote-helpers.d.ts +3 -3
  196. package/dist/{utils → domains/quote}/quote-helpers.js +2 -2
  197. package/dist/{utils/types/quote-helpers.d.ts → domains/quote/types.d.ts} +1 -1
  198. package/dist/domains/vanity/index.d.ts +5 -0
  199. package/dist/domains/vanity/index.js +5 -0
  200. package/dist/exports/root-bundle-and-tooling.d.ts +11 -11
  201. package/dist/exports/root-bundle-and-tooling.js +11 -11
  202. package/dist/exports/root-foundations.d.ts +21 -21
  203. package/dist/exports/root-foundations.js +21 -21
  204. package/dist/exports/root-swap-dex-and-xlayer.d.ts +10 -10
  205. package/dist/exports/root-swap-dex-and-xlayer.js +8 -8
  206. package/dist/index.d.ts +7 -10
  207. package/dist/index.js +7 -10
  208. package/dist/utils/airdrop-sweep.js +3 -3
  209. package/dist/utils/bundle-helpers.d.ts +7 -7
  210. package/dist/utils/bundle-helpers.js +7 -7
  211. package/dist/utils/constants.d.ts +2 -2
  212. package/dist/utils/constants.js +2 -2
  213. package/dist/utils/contract-factory.js +1 -1
  214. package/dist/utils/errors.d.ts +2 -2
  215. package/dist/utils/errors.js +3 -3
  216. package/dist/utils/hop-chains.d.ts +1 -1
  217. package/dist/utils/hop-chains.js +2 -2
  218. package/dist/utils/index.d.ts +5 -0
  219. package/dist/utils/index.js +5 -0
  220. package/dist/utils/mpcExclusive.js +1 -1
  221. package/dist/utils/stealth-transfer.js +2 -2
  222. package/dist/utils/swap-helpers.d.ts +1 -1
  223. package/dist/utils/swap-helpers.js +1 -1
  224. package/dist/utils/types/airdrop-sweep.d.ts +1 -1
  225. package/dist/utils/types/index.d.ts +6 -6
  226. package/dist/utils/types/stealth-transfer.d.ts +1 -1
  227. package/dist/utils/wallet.d.ts +2 -2
  228. package/dist/utils/wallet.js +3 -3
  229. package/package.json +56 -56
  230. package/dist/__tests__/subpath-exports.test.js +0 -64
  231. package/dist/bundle-core/__tests__/config-helpers.test.js +0 -28
  232. package/dist/bundle-core/__tests__/facade-parity.test.js +0 -33
  233. package/dist/bundle-core/__tests__/sign-context-helpers.test.js +0 -60
  234. package/dist/bundle-core/__tests__/sign-fixture.test.d.ts +0 -1
  235. package/dist/bundle-core/__tests__/sign-fixture.test.js +0 -220
  236. package/dist/bundle-core/__tests__/sign-fixtures.d.ts +0 -10
  237. package/dist/bundle-core/__tests__/sign-fixtures.js +0 -16
  238. package/dist/contracts/tm-bundle-merkle/approve-tokenmanager.d.ts +0 -1
  239. package/dist/contracts/tm-bundle-merkle/approve-tokenmanager.js +0 -1
  240. package/dist/contracts/tm-bundle-merkle/config.d.ts +0 -8
  241. package/dist/contracts/tm-bundle-merkle/config.js +0 -2
  242. package/dist/contracts/tm-bundle-merkle/core.d.ts +0 -1
  243. package/dist/contracts/tm-bundle-merkle/core.js +0 -1
  244. package/dist/contracts/tm-bundle-merkle/index.d.ts +0 -15
  245. package/dist/contracts/tm-bundle-merkle/index.js +0 -29
  246. package/dist/contracts/tm-bundle-merkle/internal.d.ts +0 -4
  247. package/dist/contracts/tm-bundle-merkle/internal.js +0 -4
  248. package/dist/contracts/tm-bundle-merkle/pancake-proxy.d.ts +0 -1
  249. package/dist/contracts/tm-bundle-merkle/pancake-proxy.js +0 -1
  250. package/dist/contracts/tm-bundle-merkle/private.d.ts +0 -1
  251. package/dist/contracts/tm-bundle-merkle/private.js +0 -1
  252. package/dist/contracts/tm-bundle-merkle/submit.d.ts +0 -3
  253. package/dist/contracts/tm-bundle-merkle/submit.js +0 -3
  254. package/dist/contracts/tm-bundle-merkle/swap-buy-first.d.ts +0 -4
  255. package/dist/contracts/tm-bundle-merkle/swap-buy-first.js +0 -4
  256. package/dist/contracts/tm-bundle-merkle/swap-internal.d.ts +0 -1
  257. package/dist/contracts/tm-bundle-merkle/swap-internal.js +0 -1
  258. package/dist/contracts/tm-bundle-merkle/swap.d.ts +0 -4
  259. package/dist/contracts/tm-bundle-merkle/swap.js +0 -4
  260. package/dist/contracts/tm-bundle-merkle/types.d.ts +0 -1
  261. package/dist/contracts/tm-bundle-merkle/utils-disperse.d.ts +0 -1
  262. package/dist/contracts/tm-bundle-merkle/utils-disperse.js +0 -1
  263. package/dist/contracts/tm-bundle-merkle/utils-pairwise.d.ts +0 -1
  264. package/dist/contracts/tm-bundle-merkle/utils-pairwise.js +0 -1
  265. package/dist/contracts/tm-bundle-merkle/utils-sweep.d.ts +0 -1
  266. package/dist/contracts/tm-bundle-merkle/utils-sweep.js +0 -1
  267. package/dist/contracts/tm-bundle-merkle/utils.d.ts +0 -8
  268. package/dist/contracts/tm-bundle-merkle/utils.js +0 -8
  269. package/dist/flap/index.js +0 -9
  270. package/dist/merkle/index.js +0 -11
  271. package/dist/shared/abis/TaxToken.json +0 -105
  272. package/dist/shared/abis/TokenManager.json +0 -836
  273. package/dist/shared/abis/TokenManager2.json +0 -60
  274. package/dist/shared/abis/TokenManagerHelper3.json +0 -993
  275. package/dist/shared/flap/graduated-dex.d.ts +0 -1
  276. package/dist/shared/flap/graduated-dex.js +0 -1
  277. package/dist/shared/flap/launch-v6.d.ts +0 -127
  278. package/dist/shared/flap/launch-v6.js +0 -123
  279. package/dist/shared/four/index.d.ts +0 -7
  280. package/dist/shared/four/index.js +0 -22
  281. package/dist/shared/index.d.ts +0 -16
  282. package/dist/shared/index.js +0 -14
  283. package/dist/utils/pcs-infinity-cl.d.ts +0 -65
  284. package/dist/utils/pcs-infinity-cl.js +0 -390
  285. package/dist/utils/types/erc20.js +0 -1
  286. package/dist/utils/types/holders-maker.js +0 -1
  287. package/dist/utils/types/lp-inspect.js +0 -1
  288. package/dist/utils/types/private-sale.d.ts +0 -1
  289. package/dist/utils/types/private-sale.js +0 -1
  290. package/dist/utils/types/quote-helpers.js +0 -1
  291. package/dist/vanity/index.d.ts +0 -5
  292. package/dist/vanity/index.js +0 -5
  293. /package/dist/{bundle-core → bundle}/errors.d.ts +0 -0
  294. /package/dist/{bundle-core → bundle}/errors.js +0 -0
  295. /package/dist/{bundle-core → bundle}/four-meme/approve-tokenmanager.d.ts +0 -0
  296. /package/dist/{bundle-core → bundle}/four-meme/core.d.ts +0 -0
  297. /package/dist/{bundle-core → bundle}/four-meme/pancake-proxy.d.ts +0 -0
  298. /package/dist/{bundle-core → bundle}/four-meme/private.d.ts +0 -0
  299. /package/dist/{bundle-core → bundle}/four-meme/swap-buy-first.d.ts +0 -0
  300. /package/dist/{bundle-core → bundle}/four-meme/swap-hop-helpers.d.ts +0 -0
  301. /package/dist/{bundle-core → bundle}/four-meme/swap-hop-helpers.js +0 -0
  302. /package/dist/{bundle-core → bundle}/four-meme/swap-internal.d.ts +0 -0
  303. /package/dist/{bundle-core → bundle}/four-meme/swap-sign-helpers.d.ts +0 -0
  304. /package/dist/{bundle-core → bundle}/four-meme/swap.d.ts +0 -0
  305. /package/dist/{bundle-core → bundle}/four-meme/swap.js +0 -0
  306. /package/dist/{bundle-core → bundle}/four-meme/types/buy-first.d.ts +0 -0
  307. /package/dist/{bundle-core → bundle}/four-meme/types/buy-first.js +0 -0
  308. /package/dist/{bundle-core → bundle}/four-meme/types/core-flow.d.ts +0 -0
  309. /package/dist/{bundle-core → bundle}/four-meme/types/core-flow.js +0 -0
  310. /package/dist/{bundle-core → bundle}/four-meme/types/index.js +0 -0
  311. /package/dist/{bundle-core → bundle}/four-meme/types/swap-internal.d.ts +0 -0
  312. /package/dist/{bundle-core → bundle}/four-meme/types/swap-internal.js +0 -0
  313. /package/dist/{bundle-core → bundle}/four-meme/types.d.ts +0 -0
  314. /package/dist/{bundle-core → bundle}/four-meme/types.js +0 -0
  315. /package/dist/{bundle-core → bundle}/four-meme/utils-disperse.d.ts +0 -0
  316. /package/dist/{bundle-core → bundle}/four-meme/utils-pairwise.d.ts +0 -0
  317. /package/dist/{bundle-core → bundle}/four-meme/utils-sweep.d.ts +0 -0
  318. /package/dist/{bundle-core → bundle}/index.d.ts +0 -0
  319. /package/dist/{bundle-core → bundle}/index.js +0 -0
  320. /package/dist/{bundle-core → bundle}/sign-context-helpers.d.ts +0 -0
  321. /package/dist/{bundle-core → bundle}/submit.d.ts +0 -0
  322. /package/dist/{bundle-core → bundle}/types/index.d.ts +0 -0
  323. /package/dist/{bundle-core → bundle}/types/index.js +0 -0
  324. /package/dist/{bundle-core → bundle}/types.d.ts +0 -0
  325. /package/dist/{bundle-core → bundle}/types.js +0 -0
  326. /package/dist/{shared/foundation → core}/amount/split-by-weight.d.ts +0 -0
  327. /package/dist/{shared/foundation → core}/amount/split-by-weight.js +0 -0
  328. /package/dist/{shared → core}/clients/blockrazor.d.ts +0 -0
  329. /package/dist/{shared → core}/clients/club48.d.ts +0 -0
  330. /package/dist/{shared → core}/clients/club48.js +0 -0
  331. /package/dist/{shared → core}/clients/emitservice.d.ts +0 -0
  332. /package/dist/{shared → core}/clients/emitservice.js +0 -0
  333. /package/dist/{shared → core}/clients/four.d.ts +0 -0
  334. /package/dist/{shared → core}/clients/index.d.ts +0 -0
  335. /package/dist/{shared → core}/clients/index.js +0 -0
  336. /package/dist/{shared → core}/clients/merkle.d.ts +0 -0
  337. /package/dist/{shared → core}/constants/addresses.d.ts +0 -0
  338. /package/dist/{shared → core}/constants/addresses.js +0 -0
  339. /package/dist/{shared → core}/constants/chains.d.ts +0 -0
  340. /package/dist/{shared → core}/constants/chains.js +0 -0
  341. /package/dist/{shared → core}/constants/gas.d.ts +0 -0
  342. /package/dist/{shared → core}/constants/gas.js +0 -0
  343. /package/dist/{shared → core}/constants/profit.d.ts +0 -0
  344. /package/dist/{shared → core}/constants/profit.js +0 -0
  345. /package/dist/{shared → core}/constants/quote.d.ts +0 -0
  346. /package/dist/{shared → core}/constants/quote.js +0 -0
  347. /package/dist/{shared/foundation → core}/dex/v3-path.d.ts +0 -0
  348. /package/dist/{shared/foundation → core}/erc20/decimals.d.ts +0 -0
  349. /package/dist/{shared/foundation → core}/erc20/decimals.js +0 -0
  350. /package/dist/{shared/foundation/index.d.ts → core/foundation.d.ts} +0 -0
  351. /package/dist/{shared/foundation/index.js → core/foundation.js} +0 -0
  352. /package/dist/{shared/foundation → core}/gas/bundle-gas.d.ts +0 -0
  353. /package/dist/{shared/foundation → core}/gas/bundle-gas.js +0 -0
  354. /package/dist/{shared/foundation → core}/gas/profit-hop.d.ts +0 -0
  355. /package/dist/{types → core/legacy-types}/errors.d.ts +0 -0
  356. /package/dist/{types → core/legacy-types}/errors.js +0 -0
  357. /package/dist/{shared/foundation → core}/nonce/nonce-manager.d.ts +0 -0
  358. /package/dist/{shared/foundation → core}/normalize-unknown.d.ts +0 -0
  359. /package/dist/{shared/foundation → core}/normalize-unknown.js +0 -0
  360. /package/dist/{shared/foundation → core}/sdk-logger.d.ts +0 -0
  361. /package/dist/{shared/foundation → core}/sdk-logger.js +0 -0
  362. /package/dist/{shared/abis → core/shared-abis}/common.d.ts +0 -0
  363. /package/dist/{shared/abis → core/shared-abis}/common.js +0 -0
  364. /package/dist/{shared/abis → core/shared-abis}/index.d.ts +0 -0
  365. /package/dist/{shared/abis → core/shared-abis}/index.js +0 -0
  366. /package/dist/{shared/foundation → core}/tx/build-request.d.ts +0 -0
  367. /package/dist/{shared/foundation → core}/tx/build-request.js +0 -0
  368. /package/dist/{shared/foundation → core}/tx/sign-batch.d.ts +0 -0
  369. /package/dist/{shared/foundation → core}/tx/sign-batch.js +0 -0
  370. /package/dist/{shared/foundation → core}/tx/wallet-sign-patch.d.ts +0 -0
  371. /package/dist/{shared/foundation → core}/tx/wallet-sign-patch.js +0 -0
  372. /package/dist/{shared/foundation → core}/types/airdrop-sweep.js +0 -0
  373. /package/dist/{shared/foundation → core}/types/erc20.d.ts +0 -0
  374. /package/dist/{shared/foundation → core}/types/erc20.js +0 -0
  375. /package/dist/{shared/foundation → core}/types/holders-maker.js +0 -0
  376. /package/dist/{shared/foundation → core}/types/index.d.ts +0 -0
  377. /package/dist/{shared/foundation → core}/types/index.js +0 -0
  378. /package/dist/{shared/foundation → core}/types/lp-inspect.js +0 -0
  379. /package/dist/{shared/foundation → core}/types/multicall.d.ts +0 -0
  380. /package/dist/{shared/foundation → core}/types/multicall.js +0 -0
  381. /package/dist/{shared/foundation → core}/types/private-sale.js +0 -0
  382. /package/dist/{shared/foundation → core}/types/quote-helpers.d.ts +0 -0
  383. /package/dist/{shared/foundation → core}/types/quote-helpers.js +0 -0
  384. /package/dist/{__tests__/subpath-exports.test.d.ts → core/types-erc20.js} +0 -0
  385. /package/dist/{shared/foundation → core}/wallet/generate.d.ts +0 -0
  386. /package/dist/{shared/foundation → core}/wallet/generate.js +0 -0
  387. /package/dist/{dex → domains/dex}/direct-router.d.ts +0 -0
  388. /package/dist/{dex → domains/dex}/index.d.ts +0 -0
  389. /package/dist/{dex → domains/dex}/index.js +0 -0
  390. /package/dist/{contracts/tm-bundle-merkle → domains/dex}/types.js +0 -0
  391. /package/dist/{shared → domains}/flap/abi.d.ts +0 -0
  392. /package/dist/{shared → domains}/flap/abi.js +0 -0
  393. /package/dist/{shared → domains}/flap/curve.d.ts +0 -0
  394. /package/dist/{shared → domains}/flap/curve.js +0 -0
  395. /package/dist/{shared → domains}/flap/errors.d.ts +0 -0
  396. /package/dist/{shared → domains}/flap/ipfs.d.ts +0 -0
  397. /package/dist/{shared → domains}/flap/ipfs.js +0 -0
  398. /package/dist/{shared → domains}/flap/meta.d.ts +0 -0
  399. /package/dist/{shared/flap/index.d.ts → domains/flap/module.d.ts} +0 -0
  400. /package/dist/{shared/flap/index.js → domains/flap/module.js} +0 -0
  401. /package/dist/{shared → domains}/flap/permit.d.ts +0 -0
  402. /package/dist/{shared → domains}/flap/pinata.d.ts +0 -0
  403. /package/dist/{shared → domains}/flap/pinata.js +0 -0
  404. /package/dist/{shared → domains}/flap/portal-bundle-merkle/core-helpers.d.ts +0 -0
  405. /package/dist/{shared → domains}/flap/portal-bundle-merkle/core.d.ts +0 -0
  406. /package/dist/{shared → domains}/flap/portal-bundle-merkle/create-to-dex.d.ts +0 -0
  407. /package/dist/{shared → domains}/flap/portal-bundle-merkle/curve-to-dex.d.ts +0 -0
  408. /package/dist/{shared → domains}/flap/portal-bundle-merkle/index.d.ts +0 -0
  409. /package/dist/{shared → domains}/flap/portal-bundle-merkle/index.js +0 -0
  410. /package/dist/{shared → domains}/flap/portal-bundle-merkle/pancake-proxy.d.ts +0 -0
  411. /package/dist/{shared → domains}/flap/portal-bundle-merkle/private.d.ts +0 -0
  412. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-batch.d.ts +0 -0
  413. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first-helpers.d.ts +0 -0
  414. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first.d.ts +0 -0
  415. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-cross.d.ts +0 -0
  416. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-helpers.d.ts +0 -0
  417. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-planning.d.ts +0 -0
  418. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-quick-batch.d.ts +0 -0
  419. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-single.d.ts +0 -0
  420. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-types.d.ts +0 -0
  421. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-types.js +0 -0
  422. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap.d.ts +0 -0
  423. /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap.js +0 -0
  424. /package/dist/{shared → domains}/flap/portal-bundle-merkle/types.d.ts +0 -0
  425. /package/dist/{dex → domains/flap/portal-bundle-merkle}/types.js +0 -0
  426. /package/dist/{shared → domains}/flap/portal-bundle-merkle/utils.d.ts +0 -0
  427. /package/dist/{shared → domains}/flap/portal-create-token.d.ts +0 -0
  428. /package/dist/{shared → domains}/flap/portal.d.ts +0 -0
  429. /package/dist/{shared → domains}/flap/portal.js +0 -0
  430. /package/dist/{shared → domains}/flap/vanity.d.ts +0 -0
  431. /package/dist/{shared → domains}/flap/vanity.js +0 -0
  432. /package/dist/{shared → domains}/flap/vault.d.ts +0 -0
  433. /package/dist/{flows → domains/flows}/create.d.ts +0 -0
  434. /package/dist/{flows → domains/flows}/index.d.ts +0 -0
  435. /package/dist/{flows → domains/flows}/index.js +0 -0
  436. /package/dist/{contracts → domains/four/contracts}/helper3.d.ts +0 -0
  437. /package/dist/{contracts → domains/four/contracts}/tm1.d.ts +0 -0
  438. /package/dist/{contracts → domains/four/contracts}/tm2.d.ts +0 -0
  439. /package/dist/{shared → domains}/four/tax-token.d.ts +0 -0
  440. /package/dist/{utils/holders-maker → domains/holders/internal}/addresses.d.ts +0 -0
  441. /package/dist/{utils/holders-maker → domains/holders/internal}/constants.d.ts +0 -0
  442. /package/dist/{utils/holders-maker → domains/holders/internal}/transfer-tx.d.ts +0 -0
  443. /package/dist/{shared/flap/portal-bundle-merkle → domains/holders}/types.js +0 -0
  444. /package/dist/{bundle-core/__tests__/config-helpers.test.d.ts → domains/lp-inspect/types.js} +0 -0
  445. /package/dist/{bundle-core/__tests__/facade-parity.test.d.ts → domains/private-sale/types.js} +0 -0
  446. /package/dist/{bundle-core/__tests__/sign-context-helpers.test.d.ts → domains/quote/types.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Flap Portal 事件 ABI
3
3
  *
4
- * 提取自 src/shared/flap/abi.ts
4
+ * 提取自 src/domains/flap/abi.ts
5
5
  */
6
6
  export declare const PORTAL_EVENTS_ABI: string[];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flap Portal 事件 ABI
3
3
  *
4
- * 提取自 src/shared/flap/abi.ts
4
+ * 提取自 src/domains/flap/abi.ts
5
5
  */
6
6
  export const PORTAL_EVENTS_ABI = [
7
7
  'event TokenCreated(uint256 ts, address creator, uint256 nonce, address token, string name, string symbol, string meta)',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Flap Portal 合约 ABI(完整版)
3
3
  *
4
- * 提取自 src/shared/flap/portal.ts
4
+ * 提取自 src/domains/flap/portal.ts
5
5
  */
6
6
  export declare const PORTAL_ABI: string[];
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flap Portal 合约 ABI(完整版)
3
3
  *
4
- * 提取自 src/shared/flap/portal.ts
4
+ * 提取自 src/domains/flap/portal.ts
5
5
  */
6
6
  export const PORTAL_ABI = [
7
7
  // Token 状态查询
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Vault 相关 ABI
3
3
  *
4
- * 提取自 src/shared/flap/vault.ts
4
+ * 提取自 src/domains/flap/vault.ts
5
5
  */
6
6
  /** VaultPortal ABI(从 flap.sh 前端 JS 源码提取) */
7
7
  export declare const VAULT_PORTAL_ABI: readonly [{
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Vault 相关 ABI
3
3
  *
4
- * 提取自 src/shared/flap/vault.ts
4
+ * 提取自 src/domains/flap/vault.ts
5
5
  */
6
6
  /** VaultPortal ABI(从 flap.sh 前端 JS 源码提取) */
7
7
  export const VAULT_PORTAL_ABI = [
@@ -1,7 +1,5 @@
1
1
  /**
2
2
  * 统一 ABI 管理入口(唯一数据源)
3
- *
4
- * `src/shared/abis/` 保留为兼容 re-export facade。
5
3
  */
6
4
  export { TokenManager, TokenManager2, TokenManagerHelper3, TaxToken } from './contracts/index.js';
7
5
  export * from './common.js';
@@ -1,7 +1,5 @@
1
1
  /**
2
2
  * 统一 ABI 管理入口(唯一数据源)
3
- *
4
- * `src/shared/abis/` 保留为兼容 re-export facade。
5
3
  */
6
4
  // JSON ABI(编译后的合约接口)
7
5
  export { TokenManager, TokenManager2, TokenManagerHelper3, TaxToken } from './contracts/index.js';
@@ -1,4 +1,4 @@
1
- import type { GasPriceConfig } from '../shared/foundation/gas/bundle-gas.js';
1
+ import type { GasPriceConfig } from '../core/gas/bundle-gas.js';
2
2
  /** Gas / Tx 相关配置(各 bundle 模块 config 的公共字段) */
3
3
  export type BundleGasConfigInput = {
4
4
  txType?: 0 | 2;
@@ -1,5 +1,5 @@
1
1
  import { ethers } from 'ethers';
2
- import { getProfitRateBps as getSharedProfitRateBps, getProfitRecipient as pickRandomProfitRecipient, } from '../shared/constants/index.js';
2
+ import { getProfitRateBps as getSharedProfitRateBps, getProfitRecipient as pickRandomProfitRecipient, } from '../core/constants/index.js';
3
3
  export function getTxType(config) {
4
4
  return config.txType ?? 0;
5
5
  }
@@ -1,11 +1,11 @@
1
1
  import { ethers, Wallet } from 'ethers';
2
2
  import { NonceManager, getOptimizedGasPrice } from '../../utils/bundle-helpers.js';
3
- import { ADDRESSES, CHAINS } from '../../shared/constants/index.js';
3
+ import { ADDRESSES, CHAINS } from '../../core/constants/index.js';
4
4
  import { ERC20_ABI } from '../../abis/common.js';
5
- import { getErrorMessageFromUnknown } from '../../shared/foundation/index.js';
5
+ import { getErrorMessageFromUnknown } from '../../core/index.js';
6
6
  import { getTxType, getGasPriceConfig } from '../config-helpers.js';
7
7
  import { createSignProvider } from '../sign-context-helpers.js';
8
- import { batchCheckAllowances } from '../../utils/erc20.js';
8
+ import { batchCheckAllowances } from '../../core/erc20.js';
9
9
  const APPROVAL_THRESHOLD = ethers.MaxUint256 / 2n;
10
10
  function resolveApprovalGasLimit(config) {
11
11
  if (config.gasLimit)
@@ -1,5 +1,5 @@
1
1
  import { Wallet } from 'ethers';
2
- import { FourClient } from '../../shared/clients/four.js';
2
+ import { FourClient } from '../../core/clients/four.js';
3
3
  import type { ChainContext, FourCreateTokenInfo } from './types/core-flow.js';
4
4
  export declare const CORE_CHAIN_ID: 56;
5
5
  export declare function createChainContext(rpcUrl: string): ChainContext;
@@ -1,6 +1,6 @@
1
1
  import { Wallet } from 'ethers';
2
- import { CHAINS } from '../../shared/constants/index.js';
3
- import { buildLoginMessage } from '../../shared/clients/four.js';
2
+ import { CHAINS } from '../../core/constants/index.js';
3
+ import { buildLoginMessage } from '../../core/clients/four.js';
4
4
  import { createSignProvider } from '../sign-context-helpers.js';
5
5
  import { getBundleErrorMessage } from '../errors.js';
6
6
  export const CORE_CHAIN_ID = CHAINS.BSC.chainId;
@@ -1,12 +1,12 @@
1
1
  import { ethers, Wallet, Contract, Interface } from 'ethers';
2
2
  import { NonceManager, getOptimizedGasPrice, buildProfitHopTransactions, PROFIT_HOP_COUNT, } from '../../utils/bundle-helpers.js';
3
- import { ADDRESSES, ZERO_ADDRESS } from '../../shared/constants/index.js';
3
+ import { ADDRESSES, ZERO_ADDRESS } from '../../core/constants/index.js';
4
4
  import { MULTICALL3_ABI, ERC20_ABI } from '../../abis/common.js';
5
- import { FourClient } from '../../shared/clients/four.js';
5
+ import { FourClient } from '../../core/clients/four.js';
6
6
  import { getBundleErrorMessage } from '../errors.js';
7
7
  import { getTxType, getGasPriceConfig, shouldExtractProfit, calculateProfit, getProfitRecipient, getBribeAmount, } from '../config-helpers.js';
8
8
  import { createSignProvider, signBribeTransaction } from '../sign-context-helpers.js';
9
- import { trySell } from '../../contracts/tm.js';
9
+ import { trySell } from '../../domains/four/contracts/tm.js';
10
10
  import { createChainContext, createWallets, loginFourClient, resolveTokenImage } from './core-helpers.js';
11
11
  import { TokenManagerHelper3 as Helper3Abi } from '../../abis/contracts/index.js';
12
12
  // ✅ 常量
@@ -9,9 +9,9 @@
9
9
  import { ethers, Wallet, Contract, Interface } from 'ethers';
10
10
  import { createSignProvider } from '../sign-context-helpers.js';
11
11
  import { NonceManager, getOptimizedGasPrice, getDeadline, encodeV3Path, buildProfitHopTransactions, PROFIT_HOP_COUNT, } from '../../utils/bundle-helpers.js';
12
- import { ADDRESSES, BLOCKRAZOR_BUILDER_EOA, CHAINS } from '../../shared/constants/index.js';
12
+ import { ADDRESSES, BLOCKRAZOR_BUILDER_EOA, CHAINS } from '../../core/constants/index.js';
13
13
  import { MULTICALL3_ABI, V2_ROUTER_ABI, V3_ROUTER02_ABI, V3_QUOTER_ABI, ERC20_ABI } from '../../abis/common.js';
14
- import { getErrorMessageFromUnknown } from '../../shared/foundation/index.js';
14
+ import { getErrorMessageFromUnknown } from '../../core/index.js';
15
15
  import { getTxType, getGasPriceConfig, shouldExtractProfit, calculateProfit, calculateBatchProfit, getProfitRecipient, getBribeAmount, } from '../config-helpers.js';
16
16
  // ==================== 常量 ====================
17
17
  const MULTICALL3_ADDRESS = ADDRESSES.BSC.Multicall3;
@@ -1,9 +1,9 @@
1
1
  import { ethers, Wallet } from 'ethers';
2
2
  import { NonceManager, getOptimizedGasPrice, buildProfitHopTransactions, PROFIT_HOP_COUNT, } from '../../utils/bundle-helpers.js';
3
- import { ADDRESSES, BLOCKRAZOR_BUILDER_EOA, CHAINS } from '../../shared/constants/index.js';
3
+ import { ADDRESSES, BLOCKRAZOR_BUILDER_EOA, CHAINS } from '../../core/constants/index.js';
4
4
  import { TM2_ABI } from '../../abis/common.js';
5
5
  import { getTxType, getGasPriceConfig, shouldExtractProfit, calculateProfit, calculateBatchProfit, getProfitRecipient, getBribeAmount, } from '../config-helpers.js';
6
- import { trySell } from '../../contracts/tm.js';
6
+ import { trySell } from '../../domains/four/contracts/tm.js';
7
7
  import { createSignProvider } from '../sign-context-helpers.js';
8
8
  const CHAIN_ID = CHAINS.BSC.chainId;
9
9
  const DEFAULT_GAS_LIMIT = 800000;
@@ -1,2 +1,2 @@
1
- /** @deprecated 实现见 bundle-core/sign-context-helpers.ts */
1
+ /** @deprecated 实现见 bundle/sign-context-helpers.ts */
2
2
  export { resolveChainName, createSignProvider, createSignWallet, resolveSignContext, normalizeItemsOrRecipientsAmounts, resolveProvidedHops, resolveHopCountInput, signBribeTransaction, type SignConfigInput, type HopItem, } from '../sign-context-helpers.js';
@@ -1,2 +1,2 @@
1
- /** @deprecated 实现见 bundle-core/sign-context-helpers.ts */
1
+ /** @deprecated 实现见 bundle/sign-context-helpers.ts */
2
2
  export { resolveChainName, createSignProvider, createSignWallet, resolveSignContext, normalizeItemsOrRecipientsAmounts, resolveProvidedHops, resolveHopCountInput, signBribeTransaction, } from '../sign-context-helpers.js';
@@ -6,11 +6,11 @@
6
6
  import { ethers, Contract, Wallet } from 'ethers';
7
7
  import { createSignProvider } from '../sign-context-helpers.js';
8
8
  import { NonceManager, getOptimizedGasPrice, buildProfitHopTransactions, PROFIT_HOP_COUNT, } from '../../utils/bundle-helpers.js';
9
- import { ADDRESSES, BLOCKRAZOR_BUILDER_EOA, CHAINS, getProfitRateBps as getSharedProfitRateBps, } from '../../shared/constants/index.js';
9
+ import { ADDRESSES, BLOCKRAZOR_BUILDER_EOA, CHAINS, getProfitRateBps as getSharedProfitRateBps, } from '../../core/constants/index.js';
10
10
  import { TM_ABI, HELPER3_ABI, TM_ADDRESS } from './swap-internal.js';
11
11
  import { getTxType, getGasPriceConfig, getProfitRecipient, getBribeAmount, } from '../config-helpers.js';
12
- import { trySell } from '../../contracts/tm.js';
13
- import { splitAmountByWeight as splitAmount } from '../../shared/foundation/amount/split-by-weight.js';
12
+ import { trySell } from '../../domains/four/contracts/tm.js';
13
+ import { splitAmountByWeight as splitAmount } from '../../core/amount/split-by-weight.js';
14
14
  // ✅ 本地 getGasLimit(FourAnyConfig 支持 bigint gasLimit)
15
15
  function getGasLimit(config, defaultGas = 800000) {
16
16
  if (config.gasLimit !== undefined) {
@@ -1,7 +1,7 @@
1
1
  // 共享的 Swap 内部常量与 ABI
2
2
  // ✅ 从公共模块重新导出
3
3
  import { TM2_ABI, HELPER3_ABI as _HELPER3_ABI } from '../../abis/common.js';
4
- import { ADDRESSES } from '../../shared/constants/index.js';
4
+ import { ADDRESSES } from '../../core/constants/index.js';
5
5
  // ✅ Four.meme 内盘 ABI(与公共 TM2_ABI 扩展)
6
6
  export const TM_ABI = [
7
7
  ...TM2_ABI,
@@ -1,7 +1,7 @@
1
1
  import { ethers, Contract } from 'ethers';
2
2
  import { getGasLimit } from '../../utils/bundle-helpers.js';
3
- import { ADDRESSES, CHAINS } from '../../shared/constants/index.js';
4
- import { getProfitRateBps as getSharedProfitRateBps } from '../../shared/constants/index.js';
3
+ import { ADDRESSES, CHAINS } from '../../core/constants/index.js';
4
+ import { getProfitRateBps as getSharedProfitRateBps } from '../../core/constants/index.js';
5
5
  import { getTxType } from '../config-helpers.js';
6
6
  import { createSignProvider } from '../sign-context-helpers.js';
7
7
  import { HELPER3_ABI, TM_ADDRESS } from './swap-internal.js';
@@ -1,5 +1,5 @@
1
1
  import type { GeneratedWallet } from '../../../utils/wallet.js';
2
- import type { FourTokenTaxInfo } from '../../../shared/clients/four.js';
2
+ import type { FourTokenTaxInfo } from '../../../core/clients/four.js';
3
3
  import type { AmountLike } from '../../types.js';
4
4
  import type { CommonBundleConfig } from '../../../utils/bundle-helpers.js';
5
5
  export type { AmountLike };
@@ -1,6 +1,6 @@
1
1
  import { ethers, Wallet } from 'ethers';
2
2
  import { getOptimizedGasPrice, NonceManager, buildProfitHopTransactions, PROFIT_HOP_COUNT, } from '../../utils/bundle-helpers.js';
3
- import { calculateTransferFee, isBscChain } from '../../shared/constants/index.js';
3
+ import { calculateTransferFee, isBscChain } from '../../core/constants/index.js';
4
4
  import { getGasPriceConfig, shouldExtractProfit, getProfitRecipient, getBribeAmount } from '../config-helpers.js';
5
5
  import { getErc20Decimals as _getErc20Decimals, generateHopWallets as _generateHopWallets, normalizeAmounts as _normalizeAmounts, calculateGasLimit as _calculateGasLimit, isNativeTokenAddress as _isNativeTokenAddress, } from '../internal.js';
6
6
  import { normalizeItemsOrRecipientsAmounts, resolveHopCountInput, resolveProvidedHops, resolveSignContext, signBribeTransaction, } from '../sign-context-helpers.js';
@@ -1,6 +1,6 @@
1
1
  import { ethers, Wallet } from 'ethers';
2
2
  import { getOptimizedGasPrice, NonceManager, buildProfitHopTransactions, PROFIT_HOP_COUNT, buildGasFields, } from '../../utils/bundle-helpers.js';
3
- import { BLOCKRAZOR_BUILDER_EOA, calculateTransferFee, CHAINS, isBscChain } from '../../shared/constants/index.js';
3
+ import { BLOCKRAZOR_BUILDER_EOA, calculateTransferFee, CHAINS, isBscChain } from '../../core/constants/index.js';
4
4
  import { getTxType, getGasPriceConfig, shouldExtractProfit, getProfitRecipient, getBribeAmount, } from '../config-helpers.js';
5
5
  import { getErc20Decimals as _getErc20Decimals, generateHopWallets as _generateHopWallets, calculateGasLimit as _calculateGasLimit, isNativeTokenAddress as _isNativeTokenAddress, } from '../internal.js';
6
6
  import { createSignProvider, resolveProvidedHops } from '../sign-context-helpers.js';
@@ -1,6 +1,6 @@
1
1
  import { ethers, Wallet } from 'ethers';
2
2
  import { getOptimizedGasPrice, NonceManager, buildProfitHopTransactions, PROFIT_HOP_COUNT, } from '../../utils/bundle-helpers.js';
3
- import { calculateTransferFee, CHAINS, isBscChain } from '../../shared/constants/index.js';
3
+ import { calculateTransferFee, CHAINS, isBscChain } from '../../core/constants/index.js';
4
4
  import { getTxType, getGasPriceConfig, shouldExtractProfit, getProfitRecipient, getBribeAmount, } from '../config-helpers.js';
5
5
  import { getErc20Decimals as _getErc20Decimals, generateHopWallets as _generateHopWallets, batchGetBalances as _batchGetBalances, calculateGasLimit as _calculateGasLimit, isNativeTokenAddress as _isNativeTokenAddress, } from '../internal.js';
6
6
  import { createSignProvider, resolveHopCountInput, resolveProvidedHops, signBribeTransaction, } from '../sign-context-helpers.js';
@@ -1,7 +1,7 @@
1
1
  import { JsonRpcProvider } from 'ethers';
2
2
  import type { GeneratedWallet } from '../utils/wallet.js';
3
3
  import type { AmountLike, BundleGasConfig } from './types.js';
4
- export { getErc20Decimals, getErc20DecimalsMerkle } from '../shared/foundation/erc20/decimals.js';
4
+ export { getErc20Decimals, getErc20DecimalsMerkle } from '../core/erc20/decimals.js';
5
5
  /** 生成多跳中间钱包(地址 + 私钥) */
6
6
  export declare function generateHopWallets(recipientCount: number, hopCount: number | number[]): GeneratedWallet[][] | null;
7
7
  export declare function normalizeAmounts(recipients: string[], amount?: AmountLike, amounts?: AmountLike[]): string[];
@@ -1,7 +1,7 @@
1
1
  import { ethers, Wallet } from 'ethers';
2
2
  import { MULTICALL3_ABI, ERC20_BALANCE_ABI } from '../abis/common.js';
3
- import { CHAINS, GAS_LIMITS, getMulticall3Address } from '../shared/constants/index.js';
4
- export { getErc20Decimals, getErc20DecimalsMerkle } from '../shared/foundation/erc20/decimals.js';
3
+ import { CHAINS, GAS_LIMITS, getMulticall3Address } from '../core/constants/index.js';
4
+ export { getErc20Decimals, getErc20DecimalsMerkle } from '../core/erc20/decimals.js';
5
5
  function mapAggregate3Results(results, decode, fallback) {
6
6
  return results.map((result) => {
7
7
  if (result.success && result.returnData && result.returnData !== '0x') {
@@ -1,5 +1,5 @@
1
1
  import { ethers, Wallet } from 'ethers';
2
- import { BLOCKRAZOR_BUILDER_EOA, CHAINS, getChainName } from '../shared/constants/index.js';
2
+ import { BLOCKRAZOR_BUILDER_EOA, CHAINS, getChainName } from '../core/constants/index.js';
3
3
  import { getTxType } from './config-helpers.js';
4
4
  export function resolveChainName(chainIdNum) {
5
5
  return getChainName(chainIdNum);
@@ -4,11 +4,11 @@
4
4
  * 用于服务器端接收前端构建的签名交易后,提交到Merkle或BlockRazor
5
5
  * 以及 Monad 等不支持 Bundle 的链的逐笔广播
6
6
  */
7
- import { MerkleClient } from '../shared/clients/merkle.js';
8
- import { BlockRazorClient } from '../shared/clients/blockrazor.js';
7
+ import { MerkleClient } from '../core/clients/merkle.js';
8
+ import { BlockRazorClient } from '../core/clients/blockrazor.js';
9
9
  import { ethers } from 'ethers';
10
- import { getErrorMessageFromUnknown, consoleSdkLogger } from '../shared/foundation/index.js';
11
- import { CHAINS } from '../shared/constants/index.js';
10
+ import { getErrorMessageFromUnknown, consoleSdkLogger } from '../core/index.js';
11
+ import { CHAINS } from '../core/constants/index.js';
12
12
  import { createSignProvider } from './sign-context-helpers.js';
13
13
  const sdkLogger = consoleSdkLogger;
14
14
  // ✅ MerkleClient 缓存(复用连接,减少初始化开销)
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * 通用常量请使用 shared/constants
5
5
  */
6
- import { CHAINS, ADDRESSES, GAS_LIMITS } from '../../shared/constants/index.js';
6
+ import { CHAINS, ADDRESSES, GAS_LIMITS } from '../../core/constants/index.js';
7
7
  // ============================================================================
8
8
  // 链配置(从 shared 导出)
9
9
  // ============================================================================
@@ -1 +1 @@
1
- export { approveFourTokenManagerBatch, type ApproveFourTokenManagerBatchParams, type ApproveFourTokenManagerBatchResult, } from '../../../bundle-core/four-meme/approve-tokenmanager.js';
1
+ export { approveFourTokenManagerBatch, type ApproveFourTokenManagerBatchParams, type ApproveFourTokenManagerBatchResult, } from '../../../bundle/four-meme/approve-tokenmanager.js';
@@ -1 +1 @@
1
- export { approveFourTokenManagerBatch, } from '../../../bundle-core/four-meme/approve-tokenmanager.js';
1
+ export { approveFourTokenManagerBatch, } from '../../../bundle/four-meme/approve-tokenmanager.js';
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Four.meme bundle 配置 helper(实现见 bundle-core/)
2
+ * Four.meme bundle 配置 helper(实现见 bundle/)
3
3
  */
4
4
  import type { FourBundleMerkleConfig, FourSignConfig } from './types.js';
5
5
  export type { FourBundleMerkleConfig, FourSignConfig };
6
6
  export type FourAnyConfig = FourBundleMerkleConfig | FourSignConfig;
7
- export { BUNDLE_ERRORS as ERRORS, getBundleErrorMessage as getErrorMessage } from '../../../bundle-core/errors.js';
8
- export { getTxType, getGasPriceMultiplier, getBundleOptions, getGasPriceConfig, shouldExtractProfit, getProfitRateBps, getProfitRecipient, calculateProfit, calculateBatchProfit, getBribeAmount, } from '../../../bundle-core/config-helpers.js';
7
+ export { BUNDLE_ERRORS as ERRORS, getBundleErrorMessage as getErrorMessage } from '../../../bundle/errors.js';
8
+ export { getTxType, getGasPriceMultiplier, getBundleOptions, getGasPriceConfig, shouldExtractProfit, getProfitRateBps, getProfitRecipient, calculateProfit, calculateBatchProfit, getBribeAmount, } from '../../../bundle/config-helpers.js';
@@ -1,2 +1,2 @@
1
- export { BUNDLE_ERRORS as ERRORS, getBundleErrorMessage as getErrorMessage } from '../../../bundle-core/errors.js';
2
- export { getTxType, getGasPriceMultiplier, getBundleOptions, getGasPriceConfig, shouldExtractProfit, getProfitRateBps, getProfitRecipient, calculateProfit, calculateBatchProfit, getBribeAmount, } from '../../../bundle-core/config-helpers.js';
1
+ export { BUNDLE_ERRORS as ERRORS, getBundleErrorMessage as getErrorMessage } from '../../../bundle/errors.js';
2
+ export { getTxType, getGasPriceMultiplier, getBundleOptions, getGasPriceConfig, shouldExtractProfit, getProfitRateBps, getProfitRecipient, calculateProfit, calculateBatchProfit, getBribeAmount, } from '../../../bundle/config-helpers.js';
@@ -1 +1 @@
1
- export { createTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle, batchSellWithBundleMerkle, } from '../../../bundle-core/four-meme/core.js';
1
+ export { createTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle, batchSellWithBundleMerkle, } from '../../../bundle/four-meme/core.js';
@@ -1 +1 @@
1
- export { createTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle, batchSellWithBundleMerkle, } from '../../../bundle-core/four-meme/core.js';
1
+ export { createTokenWithBundleBuyMerkle, batchBuyWithBundleMerkle, batchSellWithBundleMerkle, } from '../../../bundle/four-meme/core.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @deprecated 实现已迁移至 bundle-core/internal.ts,此处仅 re-export 保持 import 路径不变。
2
+ * @deprecated 实现已迁移至 bundle/internal.ts,此处仅 re-export 保持 import 路径不变。
3
3
  */
4
- export { getErc20Decimals, getErc20DecimalsMerkle, generateHopWallets, normalizeAmounts, batchGetBalances, estimateErc20TransferGas, estimateMaxErc20TransferGas, calculateGasLimit, isNativeTokenAddress, } from '../../../bundle-core/internal.js';
4
+ export { getErc20Decimals, getErc20DecimalsMerkle, generateHopWallets, normalizeAmounts, batchGetBalances, estimateErc20TransferGas, estimateMaxErc20TransferGas, calculateGasLimit, isNativeTokenAddress, } from '../../../bundle/internal.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @deprecated 实现已迁移至 bundle-core/internal.ts,此处仅 re-export 保持 import 路径不变。
2
+ * @deprecated 实现已迁移至 bundle/internal.ts,此处仅 re-export 保持 import 路径不变。
3
3
  */
4
- export { getErc20Decimals, getErc20DecimalsMerkle, generateHopWallets, normalizeAmounts, batchGetBalances, estimateErc20TransferGas, estimateMaxErc20TransferGas, calculateGasLimit, isNativeTokenAddress, } from '../../../bundle-core/internal.js';
4
+ export { getErc20Decimals, getErc20DecimalsMerkle, generateHopWallets, normalizeAmounts, batchGetBalances, estimateErc20TransferGas, estimateMaxErc20TransferGas, calculateGasLimit, isNativeTokenAddress, } from '../../../bundle/internal.js';
@@ -1 +1 @@
1
- export { fourPancakeProxyBatchBuyMerkle, fourPancakeProxyBatchSellMerkle, approveFourPancakeProxy, approveFourPancakeProxyBatch, } from '../../../bundle-core/four-meme/pancake-proxy.js';
1
+ export { fourPancakeProxyBatchBuyMerkle, fourPancakeProxyBatchSellMerkle, approveFourPancakeProxy, approveFourPancakeProxyBatch, } from '../../../bundle/four-meme/pancake-proxy.js';
@@ -1 +1 @@
1
- export { fourPancakeProxyBatchBuyMerkle, fourPancakeProxyBatchSellMerkle, approveFourPancakeProxy, approveFourPancakeProxyBatch, } from '../../../bundle-core/four-meme/pancake-proxy.js';
1
+ export { fourPancakeProxyBatchBuyMerkle, fourPancakeProxyBatchSellMerkle, approveFourPancakeProxy, approveFourPancakeProxyBatch, } from '../../../bundle/four-meme/pancake-proxy.js';
@@ -1 +1 @@
1
- export { fourPrivateBuyMerkle, fourPrivateSellMerkle, fourBatchPrivateBuyMerkle, fourBatchPrivateSellMerkle, } from '../../../bundle-core/four-meme/private.js';
1
+ export { fourPrivateBuyMerkle, fourPrivateSellMerkle, fourBatchPrivateBuyMerkle, fourBatchPrivateSellMerkle, } from '../../../bundle/four-meme/private.js';
@@ -1 +1 @@
1
- export { fourPrivateBuyMerkle, fourPrivateSellMerkle, fourBatchPrivateBuyMerkle, fourBatchPrivateSellMerkle, } from '../../../bundle-core/four-meme/private.js';
1
+ export { fourPrivateBuyMerkle, fourPrivateSellMerkle, fourBatchPrivateBuyMerkle, fourBatchPrivateSellMerkle, } from '../../../bundle/four-meme/private.js';
@@ -1,2 +1,2 @@
1
- /** Bundle 提交(Merkle / BlockRazor / 逐笔 RPC)— 实现见 bundle-core/submit */
2
- export { submitBundleToMerkle, submitMultipleBundles, submitMultipleBundlesParallel, submitBundleToBlockRazor, submitMultipleBundlesToBlockRazor, submitMultipleBundlesToBlockRazorParallel, submitDirectToRpc, submitDirectToRpcSequential, submitDirectToRpcSequentialNoWait, submitDirectToRpcParallel, submitDirectToRpcSmart, type MerkleSubmitConfig, type SubmitBundleResult, type BlockRazorSubmitConfig, type BlockRazorSubmitResult, type DirectSubmitConfig, type DirectSubmitResult, type DirectTxResult, } from '../../../bundle-core/submit.js';
1
+ /** Bundle 提交(Merkle / BlockRazor / 逐笔 RPC)— 实现见 bundle/submit */
2
+ export { submitBundleToMerkle, submitMultipleBundles, submitMultipleBundlesParallel, submitBundleToBlockRazor, submitMultipleBundlesToBlockRazor, submitMultipleBundlesToBlockRazorParallel, submitDirectToRpc, submitDirectToRpcSequential, submitDirectToRpcSequentialNoWait, submitDirectToRpcParallel, submitDirectToRpcSmart, type MerkleSubmitConfig, type SubmitBundleResult, type BlockRazorSubmitConfig, type BlockRazorSubmitResult, type DirectSubmitConfig, type DirectSubmitResult, type DirectTxResult, } from '../../../bundle/submit.js';
@@ -1,2 +1,2 @@
1
- /** Bundle 提交(Merkle / BlockRazor / 逐笔 RPC)— 实现见 bundle-core/submit */
2
- export { submitBundleToMerkle, submitMultipleBundles, submitMultipleBundlesParallel, submitBundleToBlockRazor, submitMultipleBundlesToBlockRazor, submitMultipleBundlesToBlockRazorParallel, submitDirectToRpc, submitDirectToRpcSequential, submitDirectToRpcSequentialNoWait, submitDirectToRpcParallel, submitDirectToRpcSmart, } from '../../../bundle-core/submit.js';
1
+ /** Bundle 提交(Merkle / BlockRazor / 逐笔 RPC)— 实现见 bundle/submit */
2
+ export { submitBundleToMerkle, submitMultipleBundles, submitMultipleBundlesParallel, submitBundleToBlockRazor, submitMultipleBundlesToBlockRazor, submitMultipleBundlesToBlockRazorParallel, submitDirectToRpc, submitDirectToRpcSequential, submitDirectToRpcSequentialNoWait, submitDirectToRpcParallel, submitDirectToRpcSmart, } from '../../../bundle/submit.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Four.meme 内盘先买后卖 — 实现见 bundle-core/four-meme/
2
+ * Four.meme 内盘先买后卖 — 实现见 bundle/four-meme/
3
3
  */
4
- export { fourBundleBuyFirstMerkle, type FourBuyFirstSignConfig, type FourBuyFirstConfig, type FourBundleBuyFirstSignParams, type FourBundleBuyFirstParams, type FourBuyFirstResult, } from '../../../bundle-core/four-meme/swap-buy-first.js';
4
+ export { fourBundleBuyFirstMerkle, type FourBuyFirstSignConfig, type FourBuyFirstConfig, type FourBundleBuyFirstSignParams, type FourBundleBuyFirstParams, type FourBuyFirstResult, } from '../../../bundle/four-meme/swap-buy-first.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Four.meme 内盘先买后卖 — 实现见 bundle-core/four-meme/
2
+ * Four.meme 内盘先买后卖 — 实现见 bundle/four-meme/
3
3
  */
4
- export { fourBundleBuyFirstMerkle, } from '../../../bundle-core/four-meme/swap-buy-first.js';
4
+ export { fourBundleBuyFirstMerkle, } from '../../../bundle/four-meme/swap-buy-first.js';
@@ -1 +1 @@
1
- export { TM_ABI, HELPER3_ABI, TM_ADDRESS } from '../../../bundle-core/four-meme/swap-internal.js';
1
+ export { TM_ABI, HELPER3_ABI, TM_ADDRESS } from '../../../bundle/four-meme/swap-internal.js';
@@ -1 +1 @@
1
- export { TM_ABI, HELPER3_ABI, TM_ADDRESS } from '../../../bundle-core/four-meme/swap-internal.js';
1
+ export { TM_ABI, HELPER3_ABI, TM_ADDRESS } from '../../../bundle/four-meme/swap-internal.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Four.meme 内盘捆绑换手 — 实现见 bundle-core/four-meme/
2
+ * Four.meme 内盘捆绑换手 — 实现见 bundle/four-meme/
3
3
  */
4
- export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle, type UserType, type FourSwapSignConfig, type FourSwapConfig, type FourBundleSwapSignParams, type FourBundleSwapParams, type FourSwapResult, type FourBatchSwapSignParams, type FourBatchSwapResult, type FourQuickBatchSwapSignParams, type FourQuickBatchSwapResult, } from '../../../bundle-core/four-meme/swap.js';
4
+ export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle, type UserType, type FourSwapSignConfig, type FourSwapConfig, type FourBundleSwapSignParams, type FourBundleSwapParams, type FourSwapResult, type FourBatchSwapSignParams, type FourBatchSwapResult, type FourQuickBatchSwapSignParams, type FourQuickBatchSwapResult, } from '../../../bundle/four-meme/swap.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Four.meme 内盘捆绑换手 — 实现见 bundle-core/four-meme/
2
+ * Four.meme 内盘捆绑换手 — 实现见 bundle/four-meme/
3
3
  */
4
- export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle, } from '../../../bundle-core/four-meme/swap.js';
4
+ export { fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle, } from '../../../bundle/four-meme/swap.js';
@@ -1 +1 @@
1
- export type * from '../../../bundle-core/four-meme/types.js';
1
+ export type * from '../../../bundle/four-meme/types.js';
@@ -1 +1 @@
1
- export { disperseWithBundleMerkle } from '../../../bundle-core/four-meme/utils-disperse.js';
1
+ export { disperseWithBundleMerkle } from '../../../bundle/four-meme/utils-disperse.js';
@@ -1 +1 @@
1
- export { disperseWithBundleMerkle } from '../../../bundle-core/four-meme/utils-disperse.js';
1
+ export { disperseWithBundleMerkle } from '../../../bundle/four-meme/utils-disperse.js';
@@ -1 +1 @@
1
- export { pairwiseTransferWithBundleMerkle } from '../../../bundle-core/four-meme/utils-pairwise.js';
1
+ export { pairwiseTransferWithBundleMerkle } from '../../../bundle/four-meme/utils-pairwise.js';
@@ -1 +1 @@
1
- export { pairwiseTransferWithBundleMerkle } from '../../../bundle-core/four-meme/utils-pairwise.js';
1
+ export { pairwiseTransferWithBundleMerkle } from '../../../bundle/four-meme/utils-pairwise.js';
@@ -1 +1 @@
1
- export { sweepWithBundleMerkle } from '../../../bundle-core/four-meme/utils-sweep.js';
1
+ export { sweepWithBundleMerkle } from '../../../bundle/four-meme/utils-sweep.js';
@@ -1 +1 @@
1
- export { sweepWithBundleMerkle } from '../../../bundle-core/four-meme/utils-sweep.js';
1
+ export { sweepWithBundleMerkle } from '../../../bundle/four-meme/utils-sweep.js';
@@ -5,6 +5,6 @@
5
5
  */
6
6
  export * from './constants.js';
7
7
  export * as platforms from './platforms/index.js';
8
- export { disperseWithBundleMerkle, sweepWithBundleMerkle, pairwiseTransferWithBundleMerkle, fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle, fourBundleBuyFirstMerkle, submitBundleToMerkle, submitBundleToBlockRazor, submitDirectToRpc, submitDirectToRpcSmart, approveFourTokenManagerBatch, } from './platforms/four/index.js';
8
+ export { disperseWithBundleMerkle, sweepWithBundleMerkle, pairwiseTransferWithBundleMerkle, fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle, fourBundleBuyFirstMerkle, createTokenWithBundleBuyMerkle as fourCreateTokenWithBundleBuyMerkle, batchSellWithBundleMerkle as fourBatchSellWithBundleMerkle, fourBatchPrivateBuyMerkle, submitBundleToMerkle, submitBundleToBlockRazor, submitDirectToRpc, submitDirectToRpcSmart, approveFourTokenManagerBatch, } from './platforms/four/index.js';
9
9
  export { pancakeBundleSwapMerkle, pancakeBatchSwapMerkle, pancakeQuickBatchSwapMerkle, pancakeCrossSwapMerkle, pancakeBundleBuyFirstMerkle, } from './platforms/pancake/index.js';
10
10
  export { IroFactoryQuery, createProject as iroCreateProject, encodeCreateProjectCall as iroEncodeCreateProjectCall, parseCreateProjectEvent as iroParseCreateProjectEvent, IroTokenQuery, subscribe as iroSubscribe, pledge as iroPledge, batchSubscribe as iroBatchSubscribe, batchSubscribeForSubmit as iroBatchSubscribeForSubmit, IroPoolQuery, poolRemovePledge as iroPoolRemovePledge, poolExtract as iroPoolExtract, poolTransferAwards as iroPoolTransferAwards, batchExtract as iroBatchExtract, IRO_FACTORY_ADDRESS, IRO_FACTORY_ABI, IRO_TOKEN_ABI, IRO_POOL_ABI, CREATE_PROJECT_GAS_LIMIT as BSC_CREATE_PROJECT_GAS_LIMIT, IRO_PLATFORM_URL, IRO_TESTNET_PLATFORM_URL, setIroApiBase, setIroTestApiBase, iroApiCreateProject, iroApiUploadImage, } from './platforms/iro/index.js';
@@ -17,6 +17,8 @@ disperseWithBundleMerkle, sweepWithBundleMerkle, pairwiseTransferWithBundleMerkl
17
17
  fourBundleSwapMerkle, fourBatchSwapMerkle, fourQuickBatchSwapMerkle,
18
18
  // Buy First
19
19
  fourBundleBuyFirstMerkle,
20
+ // 发币 / 批量卖 / 私有买入(消费者白名单别名)
21
+ createTokenWithBundleBuyMerkle as fourCreateTokenWithBundleBuyMerkle, batchSellWithBundleMerkle as fourBatchSellWithBundleMerkle, fourBatchPrivateBuyMerkle,
20
22
  // 提交
21
23
  submitBundleToMerkle, submitBundleToBlockRazor, submitDirectToRpc, submitDirectToRpcSmart,
22
24
  // 授权
@@ -64,7 +64,7 @@ export declare function getProfitRatePerTxBps(userType?: UserType): number;
64
64
  * 验证买卖笔数
65
65
  */
66
66
  export declare function validateSwapCounts(buyCount: number, sellCount: number): void;
67
- export { splitAmountByWeight as splitAmount } from '../../../shared/foundation/amount/split-by-weight.js';
67
+ export { splitAmountByWeight as splitAmount } from '../../../core/amount/split-by-weight.js';
68
68
  /** 多笔买卖 nonce 规划(与 Flap 一致) */
69
69
  export type MultiNoncePlan = {
70
70
  buyerNonces: number[];
@@ -6,8 +6,8 @@
6
6
  import { ethers } from 'ethers';
7
7
  import { PROFIT_HOP_COUNT } from '../../../utils/bundle-helpers.js';
8
8
  import { V2_ROUTER_ABI, V3_ROUTER02_ABI, ERC20_BALANCE_ABI } from '../../../abis/common.js';
9
- import { getProfitRateBps } from '../../../shared/constants/index.js';
10
- import { ADDRESSES } from '../../../shared/constants/index.js';
9
+ import { getProfitRateBps } from '../../../core/constants/index.js';
10
+ import { ADDRESSES } from '../../../core/constants/index.js';
11
11
  /**
12
12
  * 获取 Gas Limit
13
13
  */
@@ -77,4 +77,4 @@ export function validateSwapCounts(buyCount, sellCount) {
77
77
  `最大签名数为 ${MAX_BUNDLE_SIGNATURES}(${BRIBE_TX_COUNT} 贿赂 + ${PROFIT_TX_COUNT} 利润 + ${MAX_SWAP_TX_COUNT} 买卖)`);
78
78
  }
79
79
  }
80
- export { splitAmountByWeight as splitAmount } from '../../../shared/foundation/amount/split-by-weight.js';
80
+ export { splitAmountByWeight as splitAmount } from '../../../core/amount/split-by-weight.js';
@@ -2,11 +2,11 @@
2
2
  * bundle-buy-first - 主函数
3
3
  */
4
4
  import { ethers, Contract, Wallet } from 'ethers';
5
- import { createSignProvider } from '../../../bundle-core/sign-context-helpers.js';
5
+ import { createSignProvider } from '../../../bundle/sign-context-helpers.js';
6
6
  import { NonceManager, getDeadline, buildProfitHopTransactions, PROFIT_HOP_COUNT, } from '../../../utils/bundle-helpers.js';
7
- import { BLOCKRAZOR_BUILDER_EOA, ZERO_ADDRESS, CHAINS } from '../../../shared/constants/index.js';
8
- import { GAS_LIMITS, getProfitRecipient } from '../../../shared/constants/index.js';
9
- import { quoteV2, quoteV3, getTokenToNativeQuote } from '../../../utils/quote-helpers.js';
7
+ import { BLOCKRAZOR_BUILDER_EOA, ZERO_ADDRESS, CHAINS } from '../../../core/constants/index.js';
8
+ import { GAS_LIMITS, getProfitRecipient } from '../../../core/constants/index.js';
9
+ import { quoteV2, quoteV3, getTokenToNativeQuote } from '../../../domains/quote/quote-helpers.js';
10
10
  import { ERC20_BALANCE_OF_ABI, FLAT_FEE, PANCAKE_V2_ROUTER_ABI, PANCAKE_V2_ROUTER_ADDRESS, PANCAKE_V3_ROUTER_ABI, PANCAKE_V3_ROUTER_ADDRESS, getGasLimit, getGasPrice, getProfitRatePerTxBps, splitAmount, validateSwapCounts, } from './bundle-buy-first-helpers.js';
11
11
  export async function pancakeBundleBuyFirstMerkle(params) {
12
12
  const { buyerPrivateKey, buyerPrivateKeys, sellerPrivateKey, sellerPrivateKeys, routeParams, buyerFunds, buyerFundsPercentage, config, quoteToken, quoteTokenDecimals = 18, buyCount: _buyCount, sellCount: _sellCount, taxRateBps = 0, // ✅ 税率(基点),用于计算实际可卖出代币数量
@@ -234,7 +234,7 @@ export type NoncePlan = {
234
234
  bribeNonce?: number;
235
235
  profitNonce?: number;
236
236
  };
237
- export { ZERO_ADDRESS } from '../../../shared/constants/index.js';
237
+ export { ZERO_ADDRESS } from '../../../core/constants/index.js';
238
238
  /**
239
239
  * PancakeSwap捆绑换手(V2/V3通用)
240
240
  * ✅ 支持 quoteToken:传入 USDT 等地址时,卖出得到该代币,买入使用该代币