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.
- package/dist/abis/flap/portal-events.d.ts +1 -1
- package/dist/abis/flap/portal-events.js +1 -1
- package/dist/abis/flap/portal.d.ts +1 -1
- package/dist/abis/flap/portal.js +1 -1
- package/dist/abis/flap/vault.d.ts +1 -1
- package/dist/abis/flap/vault.js +1 -1
- package/dist/abis/index.d.ts +0 -2
- package/dist/abis/index.js +0 -2
- package/dist/{bundle-core → bundle}/config-helpers.d.ts +1 -1
- package/dist/{bundle-core → bundle}/config-helpers.js +1 -1
- package/dist/{bundle-core → bundle}/four-meme/approve-tokenmanager.js +3 -3
- package/dist/{bundle-core → bundle}/four-meme/core-helpers.d.ts +1 -1
- package/dist/{bundle-core → bundle}/four-meme/core-helpers.js +2 -2
- package/dist/{bundle-core → bundle}/four-meme/core.js +3 -3
- package/dist/{bundle-core → bundle}/four-meme/pancake-proxy.js +2 -2
- package/dist/{bundle-core → bundle}/four-meme/private.js +2 -2
- package/dist/{bundle-core → bundle}/four-meme/sign-context-helpers.d.ts +1 -1
- package/dist/{bundle-core → bundle}/four-meme/sign-context-helpers.js +1 -1
- package/dist/{bundle-core → bundle}/four-meme/swap-buy-first.js +3 -3
- package/dist/{bundle-core → bundle}/four-meme/swap-internal.js +1 -1
- package/dist/{bundle-core → bundle}/four-meme/swap-sign-helpers.js +2 -2
- package/dist/{bundle-core → bundle}/four-meme/types/index.d.ts +1 -1
- package/dist/{bundle-core → bundle}/four-meme/utils-disperse.js +1 -1
- package/dist/{bundle-core → bundle}/four-meme/utils-pairwise.js +1 -1
- package/dist/{bundle-core → bundle}/four-meme/utils-sweep.js +1 -1
- package/dist/{bundle-core → bundle}/internal.d.ts +1 -1
- package/dist/{bundle-core → bundle}/internal.js +2 -2
- package/dist/{bundle-core → bundle}/sign-context-helpers.js +1 -1
- package/dist/{bundle-core → bundle}/submit.js +4 -4
- package/dist/chains/bsc/constants.js +1 -1
- package/dist/chains/bsc/four/approve-tokenmanager.d.ts +1 -1
- package/dist/chains/bsc/four/approve-tokenmanager.js +1 -1
- package/dist/chains/bsc/four/config.d.ts +3 -3
- package/dist/chains/bsc/four/config.js +2 -2
- package/dist/chains/bsc/four/core.d.ts +1 -1
- package/dist/chains/bsc/four/core.js +1 -1
- package/dist/chains/bsc/four/internal.d.ts +2 -2
- package/dist/chains/bsc/four/internal.js +2 -2
- package/dist/chains/bsc/four/pancake-proxy.d.ts +1 -1
- package/dist/chains/bsc/four/pancake-proxy.js +1 -1
- package/dist/chains/bsc/four/private.d.ts +1 -1
- package/dist/chains/bsc/four/private.js +1 -1
- package/dist/chains/bsc/four/submit.d.ts +2 -2
- package/dist/chains/bsc/four/submit.js +2 -2
- package/dist/chains/bsc/four/swap-buy-first.d.ts +2 -2
- package/dist/chains/bsc/four/swap-buy-first.js +2 -2
- package/dist/chains/bsc/four/swap-internal.d.ts +1 -1
- package/dist/chains/bsc/four/swap-internal.js +1 -1
- package/dist/chains/bsc/four/swap.d.ts +2 -2
- package/dist/chains/bsc/four/swap.js +2 -2
- package/dist/chains/bsc/four/types.d.ts +1 -1
- package/dist/chains/bsc/four/utils-disperse.d.ts +1 -1
- package/dist/chains/bsc/four/utils-disperse.js +1 -1
- package/dist/chains/bsc/four/utils-pairwise.d.ts +1 -1
- package/dist/chains/bsc/four/utils-pairwise.js +1 -1
- package/dist/chains/bsc/four/utils-sweep.d.ts +1 -1
- package/dist/chains/bsc/four/utils-sweep.js +1 -1
- package/dist/chains/bsc/pancake/bundle-buy-first-helpers.d.ts +1 -1
- package/dist/chains/bsc/pancake/bundle-buy-first-helpers.js +3 -3
- package/dist/chains/bsc/pancake/bundle-buy-first.js +4 -4
- package/dist/chains/bsc/pancake/bundle-swap-helpers.d.ts +1 -1
- package/dist/chains/bsc/pancake/bundle-swap-helpers.js +5 -5
- package/dist/chains/bsc/pancake/bundle-swap.js +2 -2
- package/dist/chains/bsc/platforms/iro/constants.js +1 -1
- package/dist/chains/bsc/platforms/iro/token.js +1 -1
- package/dist/chains/eni/batch-router/transfer.js +2 -2
- package/dist/chains/eni/constants.js +1 -1
- package/dist/chains/eni/platforms/daoaas/create.js +1 -1
- package/dist/chains/eni/platforms/daoaas/portal-direct.js +1 -1
- package/dist/chains/eni/platforms/dswap/liquidity.js +1 -1
- package/dist/chains/eni/platforms/fair-launch/constants.js +1 -1
- package/dist/chains/eni/platforms/fair-launch/launcher.js +1 -1
- package/dist/chains/eni/platforms/fair-launch/pool.js +1 -1
- package/dist/chains/eni/platforms/iro/constants.d.ts +1 -1
- package/dist/chains/eni/platforms/iro/constants.js +2 -2
- package/dist/chains/eni/platforms/iro/token.js +1 -1
- package/dist/chains/eni/submit.js +2 -2
- package/dist/chains/monad/constants.js +1 -1
- package/dist/chains/xlayer/constants.js +1 -1
- package/dist/chains/xlayer/eip7702/bundle-create.js +1 -1
- package/dist/chains/xlayer/eip7702/bundle-sell.js +1 -1
- package/dist/chains/xlayer/eip7702/bundle-swap.js +1 -1
- package/dist/chains/xlayer/eip7702/constants.d.ts +1 -1
- package/dist/chains/xlayer/eip7702/constants.js +2 -2
- package/dist/chains/xlayer/eip7702/multi-hop-transfer.js +1 -1
- package/dist/chains/xlayer/eip7702/utils.js +1 -1
- package/dist/chains/xlayer/eip7702/volume.js +1 -1
- package/dist/chains/xlayer/eoa/constants.js +1 -1
- package/dist/chains/xlayer/eoa/dex-helpers.d.ts +1 -1
- package/dist/chains/xlayer/eoa/dex-helpers.js +2 -2
- package/dist/chains/xlayer/eoa/eoa-bundle-swap-helpers.d.ts +1 -1
- package/dist/chains/xlayer/eoa/eoa-bundle-swap-helpers.js +3 -3
- package/dist/chains/xlayer/eoa/eoa-bundle-swap.js +2 -2
- package/dist/chains/xlayer/eoa/eoa-wash-volume.d.ts +1 -1
- package/dist/chains/xlayer/eoa/eoa-wash-volume.js +2 -2
- package/dist/chains/xlayer/eoa/router-manager.js +1 -1
- package/dist/{shared → core}/clients/blockrazor.js +1 -1
- package/dist/{shared → core}/clients/four.js +1 -1
- package/dist/{shared → core}/clients/merkle.js +1 -1
- package/dist/{shared → core}/constants/index.d.ts +2 -2
- package/dist/{shared → core}/constants/index.js +1 -1
- package/dist/{shared/foundation → core}/dex/v3-path.js +1 -1
- package/dist/{utils → core}/erc20.d.ts +2 -2
- package/dist/{utils → core}/erc20.js +3 -3
- package/dist/{shared/foundation → core}/gas/profit-hop.js +1 -1
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.js +5 -0
- package/dist/{shared/foundation → core}/nonce/nonce-manager.js +1 -1
- package/dist/{shared/foundation → core}/types/airdrop-sweep.d.ts +1 -1
- package/dist/{shared/foundation → core}/types/holders-maker.d.ts +1 -1
- package/dist/{shared/foundation → core}/types/lp-inspect.d.ts +1 -1
- package/dist/{shared/foundation → core}/types/private-sale.d.ts +1 -1
- package/dist/{utils/types/erc20.d.ts → core/types-erc20.d.ts} +1 -1
- package/dist/{dex → domains/dex}/direct-router-helpers.d.ts +1 -1
- package/dist/{dex → domains/dex}/direct-router-helpers.js +4 -4
- package/dist/{dex → domains/dex}/direct-router.js +6 -6
- package/dist/{dex → domains/dex}/types.d.ts +1 -1
- package/dist/{shared → domains}/flap/constants.d.ts +1 -1
- package/dist/{shared → domains}/flap/constants.js +1 -1
- package/dist/{shared → domains}/flap/errors.js +1 -1
- package/dist/{flap → domains/flap}/index.d.ts +5 -9
- package/dist/domains/flap/index.js +5 -0
- package/dist/{shared → domains}/flap/meta.js +2 -2
- package/dist/{shared → domains}/flap/permit.js +2 -2
- package/dist/{shared → domains}/flap/portal-bundle-merkle/config.d.ts +2 -2
- package/dist/{shared → domains}/flap/portal-bundle-merkle/config.js +4 -4
- package/dist/{shared → domains}/flap/portal-bundle-merkle/core-helpers.js +3 -3
- package/dist/{shared → domains}/flap/portal-bundle-merkle/core.js +4 -4
- package/dist/{shared → domains}/flap/portal-bundle-merkle/create-to-dex.js +3 -3
- package/dist/{shared → domains}/flap/portal-bundle-merkle/curve-to-dex.js +4 -4
- package/dist/{shared → domains}/flap/portal-bundle-merkle/pancake-proxy.js +4 -4
- package/dist/{shared → domains}/flap/portal-bundle-merkle/private.js +3 -3
- package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-batch.js +2 -2
- package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first-helpers.js +3 -3
- package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first.js +7 -7
- package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-cross.js +1 -1
- package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-helpers.js +3 -3
- package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-planning.js +5 -5
- package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-quick-batch.js +4 -4
- package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-single.js +2 -2
- package/dist/{shared → domains}/flap/portal-bundle-merkle/utils.js +3 -3
- package/dist/{shared → domains}/flap/portal-bundle.d.ts +2 -2
- package/dist/{shared → domains}/flap/portal-bundle.js +3 -3
- package/dist/{shared → domains}/flap/portal-create-token.js +1 -1
- package/dist/{shared → domains}/flap/vault.js +1 -1
- package/dist/{flows → domains/flows}/create.js +2 -2
- package/dist/{contracts → domains/four/contracts}/helper3.js +2 -2
- package/dist/{contracts → domains/four/contracts}/tm-bundle-helpers.d.ts +4 -4
- package/dist/{contracts → domains/four/contracts}/tm-bundle-helpers.js +3 -3
- package/dist/{contracts → domains/four/contracts}/tm-bundle.d.ts +2 -2
- package/dist/{contracts → domains/four/contracts}/tm-bundle.js +7 -7
- package/dist/{contracts → domains/four/contracts}/tm.d.ts +1 -1
- package/dist/{contracts → domains/four/contracts}/tm.js +4 -4
- package/dist/{contracts → domains/four/contracts}/tm1.js +2 -2
- package/dist/{contracts → domains/four/contracts}/tm2.js +2 -2
- package/dist/domains/four/index.d.ts +7 -0
- package/dist/domains/four/index.js +7 -0
- package/dist/{shared → domains}/four/tax-token.js +1 -1
- package/dist/{utils → domains/holders}/holders-maker-helpers.d.ts +7 -7
- package/dist/{utils → domains/holders}/holders-maker-helpers.js +7 -7
- package/dist/{utils → domains/holders}/holders-maker.d.ts +2 -2
- package/dist/{utils → domains/holders}/holders-maker.js +4 -4
- package/dist/domains/holders/index.d.ts +1 -0
- package/dist/domains/holders/index.js +1 -0
- package/dist/{utils/holders-maker → domains/holders/internal}/addresses.js +1 -1
- package/dist/{utils/holders-maker → domains/holders/internal}/buy-tx.d.ts +1 -1
- package/dist/{utils/holders-maker → domains/holders/internal}/buy-tx.js +4 -4
- package/dist/{utils/holders-maker → domains/holders/internal}/constants.js +1 -1
- package/dist/{utils/holders-maker → domains/holders/internal}/disperse.d.ts +4 -4
- package/dist/{utils/holders-maker → domains/holders/internal}/disperse.js +2 -2
- package/dist/{utils/holders-maker → domains/holders/internal}/routing.d.ts +1 -1
- package/dist/{utils/holders-maker → domains/holders/internal}/routing.js +1 -1
- package/dist/{utils/holders-maker → domains/holders/internal}/transfer-tx.js +2 -2
- package/dist/{utils/types/holders-maker.d.ts → domains/holders/types.d.ts} +1 -1
- package/dist/domains/lp-inspect/index.d.ts +1 -0
- package/dist/domains/lp-inspect/index.js +1 -0
- package/dist/{utils → domains/lp-inspect}/lp-inspect-helpers.d.ts +1 -1
- package/dist/{utils → domains/lp-inspect}/lp-inspect-helpers.js +1 -1
- package/dist/{utils → domains/lp-inspect}/lp-inspect.d.ts +2 -2
- package/dist/{utils → domains/lp-inspect}/lp-inspect.js +6 -6
- package/dist/{utils/types/lp-inspect.d.ts → domains/lp-inspect/types.d.ts} +1 -1
- package/dist/{merkle → domains/merkle}/index.d.ts +7 -7
- package/dist/domains/merkle/index.js +11 -0
- package/dist/domains/private-sale/index.d.ts +1 -0
- package/dist/domains/private-sale/index.js +1 -0
- package/dist/{utils → domains/private-sale}/private-sale.d.ts +2 -2
- package/dist/{utils → domains/private-sale}/private-sale.js +2 -2
- package/dist/domains/private-sale/types.d.ts +1 -0
- package/dist/domains/quote/index.d.ts +1 -0
- package/dist/domains/quote/index.js +1 -0
- package/dist/{utils → domains/quote}/quote-helpers.d.ts +3 -3
- package/dist/{utils → domains/quote}/quote-helpers.js +2 -2
- package/dist/{utils/types/quote-helpers.d.ts → domains/quote/types.d.ts} +1 -1
- package/dist/domains/vanity/index.d.ts +5 -0
- package/dist/domains/vanity/index.js +5 -0
- package/dist/exports/root-bundle-and-tooling.d.ts +11 -11
- package/dist/exports/root-bundle-and-tooling.js +11 -11
- package/dist/exports/root-foundations.d.ts +21 -21
- package/dist/exports/root-foundations.js +21 -21
- package/dist/exports/root-swap-dex-and-xlayer.d.ts +10 -10
- package/dist/exports/root-swap-dex-and-xlayer.js +8 -8
- package/dist/index.d.ts +7 -10
- package/dist/index.js +7 -10
- package/dist/utils/airdrop-sweep.js +3 -3
- package/dist/utils/bundle-helpers.d.ts +7 -7
- package/dist/utils/bundle-helpers.js +7 -7
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +2 -2
- package/dist/utils/contract-factory.js +1 -1
- package/dist/utils/errors.d.ts +2 -2
- package/dist/utils/errors.js +3 -3
- package/dist/utils/hop-chains.d.ts +1 -1
- package/dist/utils/hop-chains.js +2 -2
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/mpcExclusive.js +1 -1
- package/dist/utils/stealth-transfer.js +2 -2
- package/dist/utils/swap-helpers.d.ts +1 -1
- package/dist/utils/swap-helpers.js +1 -1
- package/dist/utils/types/airdrop-sweep.d.ts +1 -1
- package/dist/utils/types/index.d.ts +6 -6
- package/dist/utils/types/stealth-transfer.d.ts +1 -1
- package/dist/utils/wallet.d.ts +2 -2
- package/dist/utils/wallet.js +3 -3
- package/package.json +52 -56
- package/dist/__tests__/subpath-exports.test.js +0 -64
- package/dist/bundle-core/__tests__/config-helpers.test.js +0 -28
- package/dist/bundle-core/__tests__/facade-parity.test.js +0 -33
- package/dist/bundle-core/__tests__/sign-context-helpers.test.js +0 -60
- package/dist/bundle-core/__tests__/sign-fixture.test.d.ts +0 -1
- package/dist/bundle-core/__tests__/sign-fixture.test.js +0 -220
- package/dist/bundle-core/__tests__/sign-fixtures.d.ts +0 -10
- package/dist/bundle-core/__tests__/sign-fixtures.js +0 -16
- package/dist/contracts/tm-bundle-merkle/approve-tokenmanager.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/approve-tokenmanager.js +0 -1
- package/dist/contracts/tm-bundle-merkle/config.d.ts +0 -8
- package/dist/contracts/tm-bundle-merkle/config.js +0 -2
- package/dist/contracts/tm-bundle-merkle/core.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/core.js +0 -1
- package/dist/contracts/tm-bundle-merkle/index.d.ts +0 -15
- package/dist/contracts/tm-bundle-merkle/index.js +0 -29
- package/dist/contracts/tm-bundle-merkle/internal.d.ts +0 -4
- package/dist/contracts/tm-bundle-merkle/internal.js +0 -4
- package/dist/contracts/tm-bundle-merkle/pancake-proxy.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/pancake-proxy.js +0 -1
- package/dist/contracts/tm-bundle-merkle/private.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/private.js +0 -1
- package/dist/contracts/tm-bundle-merkle/submit.d.ts +0 -3
- package/dist/contracts/tm-bundle-merkle/submit.js +0 -3
- package/dist/contracts/tm-bundle-merkle/swap-buy-first.d.ts +0 -4
- package/dist/contracts/tm-bundle-merkle/swap-buy-first.js +0 -4
- package/dist/contracts/tm-bundle-merkle/swap-internal.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/swap-internal.js +0 -1
- package/dist/contracts/tm-bundle-merkle/swap.d.ts +0 -4
- package/dist/contracts/tm-bundle-merkle/swap.js +0 -4
- package/dist/contracts/tm-bundle-merkle/types.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/utils-disperse.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/utils-disperse.js +0 -1
- package/dist/contracts/tm-bundle-merkle/utils-pairwise.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/utils-pairwise.js +0 -1
- package/dist/contracts/tm-bundle-merkle/utils-sweep.d.ts +0 -1
- package/dist/contracts/tm-bundle-merkle/utils-sweep.js +0 -1
- package/dist/contracts/tm-bundle-merkle/utils.d.ts +0 -8
- package/dist/contracts/tm-bundle-merkle/utils.js +0 -8
- package/dist/flap/index.js +0 -9
- package/dist/merkle/index.js +0 -11
- package/dist/shared/abis/TaxToken.json +0 -105
- package/dist/shared/abis/TokenManager.json +0 -836
- package/dist/shared/abis/TokenManager2.json +0 -60
- package/dist/shared/abis/TokenManagerHelper3.json +0 -993
- package/dist/shared/flap/graduated-dex.d.ts +0 -1
- package/dist/shared/flap/graduated-dex.js +0 -1
- package/dist/shared/flap/launch-v6.d.ts +0 -127
- package/dist/shared/flap/launch-v6.js +0 -123
- package/dist/shared/four/index.d.ts +0 -7
- package/dist/shared/four/index.js +0 -22
- package/dist/shared/index.d.ts +0 -16
- package/dist/shared/index.js +0 -14
- package/dist/utils/pcs-infinity-cl.d.ts +0 -65
- package/dist/utils/pcs-infinity-cl.js +0 -390
- package/dist/utils/types/erc20.js +0 -1
- package/dist/utils/types/holders-maker.js +0 -1
- package/dist/utils/types/lp-inspect.js +0 -1
- package/dist/utils/types/private-sale.d.ts +0 -1
- package/dist/utils/types/private-sale.js +0 -1
- package/dist/utils/types/quote-helpers.js +0 -1
- package/dist/vanity/index.d.ts +0 -5
- package/dist/vanity/index.js +0 -5
- /package/dist/{bundle-core → bundle}/errors.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/errors.js +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/approve-tokenmanager.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/core.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/pancake-proxy.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/private.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/swap-buy-first.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/swap-hop-helpers.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/swap-hop-helpers.js +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/swap-internal.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/swap-sign-helpers.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/swap.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/swap.js +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types/buy-first.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types/buy-first.js +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types/core-flow.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types/core-flow.js +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types/index.js +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types/swap-internal.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types/swap-internal.js +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/types.js +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/utils-disperse.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/utils-pairwise.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/four-meme/utils-sweep.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/index.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/index.js +0 -0
- /package/dist/{bundle-core → bundle}/sign-context-helpers.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/submit.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/types/index.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/types/index.js +0 -0
- /package/dist/{bundle-core → bundle}/types.d.ts +0 -0
- /package/dist/{bundle-core → bundle}/types.js +0 -0
- /package/dist/{shared/foundation → core}/amount/split-by-weight.d.ts +0 -0
- /package/dist/{shared/foundation → core}/amount/split-by-weight.js +0 -0
- /package/dist/{shared → core}/clients/blockrazor.d.ts +0 -0
- /package/dist/{shared → core}/clients/club48.d.ts +0 -0
- /package/dist/{shared → core}/clients/club48.js +0 -0
- /package/dist/{shared → core}/clients/emitservice.d.ts +0 -0
- /package/dist/{shared → core}/clients/emitservice.js +0 -0
- /package/dist/{shared → core}/clients/four.d.ts +0 -0
- /package/dist/{shared → core}/clients/index.d.ts +0 -0
- /package/dist/{shared → core}/clients/index.js +0 -0
- /package/dist/{shared → core}/clients/merkle.d.ts +0 -0
- /package/dist/{shared → core}/constants/addresses.d.ts +0 -0
- /package/dist/{shared → core}/constants/addresses.js +0 -0
- /package/dist/{shared → core}/constants/chains.d.ts +0 -0
- /package/dist/{shared → core}/constants/chains.js +0 -0
- /package/dist/{shared → core}/constants/gas.d.ts +0 -0
- /package/dist/{shared → core}/constants/gas.js +0 -0
- /package/dist/{shared → core}/constants/profit.d.ts +0 -0
- /package/dist/{shared → core}/constants/profit.js +0 -0
- /package/dist/{shared → core}/constants/quote.d.ts +0 -0
- /package/dist/{shared → core}/constants/quote.js +0 -0
- /package/dist/{shared/foundation → core}/dex/v3-path.d.ts +0 -0
- /package/dist/{shared/foundation → core}/erc20/decimals.d.ts +0 -0
- /package/dist/{shared/foundation → core}/erc20/decimals.js +0 -0
- /package/dist/{shared/foundation/index.d.ts → core/foundation.d.ts} +0 -0
- /package/dist/{shared/foundation/index.js → core/foundation.js} +0 -0
- /package/dist/{shared/foundation → core}/gas/bundle-gas.d.ts +0 -0
- /package/dist/{shared/foundation → core}/gas/bundle-gas.js +0 -0
- /package/dist/{shared/foundation → core}/gas/profit-hop.d.ts +0 -0
- /package/dist/{types → core/legacy-types}/errors.d.ts +0 -0
- /package/dist/{types → core/legacy-types}/errors.js +0 -0
- /package/dist/{shared/foundation → core}/nonce/nonce-manager.d.ts +0 -0
- /package/dist/{shared/foundation → core}/normalize-unknown.d.ts +0 -0
- /package/dist/{shared/foundation → core}/normalize-unknown.js +0 -0
- /package/dist/{shared/foundation → core}/sdk-logger.d.ts +0 -0
- /package/dist/{shared/foundation → core}/sdk-logger.js +0 -0
- /package/dist/{shared/abis → core/shared-abis}/common.d.ts +0 -0
- /package/dist/{shared/abis → core/shared-abis}/common.js +0 -0
- /package/dist/{shared/abis → core/shared-abis}/index.d.ts +0 -0
- /package/dist/{shared/abis → core/shared-abis}/index.js +0 -0
- /package/dist/{shared/foundation → core}/tx/build-request.d.ts +0 -0
- /package/dist/{shared/foundation → core}/tx/build-request.js +0 -0
- /package/dist/{shared/foundation → core}/tx/sign-batch.d.ts +0 -0
- /package/dist/{shared/foundation → core}/tx/sign-batch.js +0 -0
- /package/dist/{shared/foundation → core}/tx/wallet-sign-patch.d.ts +0 -0
- /package/dist/{shared/foundation → core}/tx/wallet-sign-patch.js +0 -0
- /package/dist/{shared/foundation → core}/types/airdrop-sweep.js +0 -0
- /package/dist/{shared/foundation → core}/types/erc20.d.ts +0 -0
- /package/dist/{shared/foundation → core}/types/erc20.js +0 -0
- /package/dist/{shared/foundation → core}/types/holders-maker.js +0 -0
- /package/dist/{shared/foundation → core}/types/index.d.ts +0 -0
- /package/dist/{shared/foundation → core}/types/index.js +0 -0
- /package/dist/{shared/foundation → core}/types/lp-inspect.js +0 -0
- /package/dist/{shared/foundation → core}/types/multicall.d.ts +0 -0
- /package/dist/{shared/foundation → core}/types/multicall.js +0 -0
- /package/dist/{shared/foundation → core}/types/private-sale.js +0 -0
- /package/dist/{shared/foundation → core}/types/quote-helpers.d.ts +0 -0
- /package/dist/{shared/foundation → core}/types/quote-helpers.js +0 -0
- /package/dist/{__tests__/subpath-exports.test.d.ts → core/types-erc20.js} +0 -0
- /package/dist/{shared/foundation → core}/wallet/generate.d.ts +0 -0
- /package/dist/{shared/foundation → core}/wallet/generate.js +0 -0
- /package/dist/{dex → domains/dex}/direct-router.d.ts +0 -0
- /package/dist/{dex → domains/dex}/index.d.ts +0 -0
- /package/dist/{dex → domains/dex}/index.js +0 -0
- /package/dist/{contracts/tm-bundle-merkle → domains/dex}/types.js +0 -0
- /package/dist/{shared → domains}/flap/abi.d.ts +0 -0
- /package/dist/{shared → domains}/flap/abi.js +0 -0
- /package/dist/{shared → domains}/flap/curve.d.ts +0 -0
- /package/dist/{shared → domains}/flap/curve.js +0 -0
- /package/dist/{shared → domains}/flap/errors.d.ts +0 -0
- /package/dist/{shared → domains}/flap/ipfs.d.ts +0 -0
- /package/dist/{shared → domains}/flap/ipfs.js +0 -0
- /package/dist/{shared → domains}/flap/meta.d.ts +0 -0
- /package/dist/{shared/flap/index.d.ts → domains/flap/module.d.ts} +0 -0
- /package/dist/{shared/flap/index.js → domains/flap/module.js} +0 -0
- /package/dist/{shared → domains}/flap/permit.d.ts +0 -0
- /package/dist/{shared → domains}/flap/pinata.d.ts +0 -0
- /package/dist/{shared → domains}/flap/pinata.js +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/core-helpers.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/core.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/create-to-dex.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/curve-to-dex.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/index.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/index.js +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/pancake-proxy.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/private.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-batch.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first-helpers.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-buy-first.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-cross.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-helpers.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-planning.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-quick-batch.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-single.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-types.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap-types.js +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/swap.js +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/types.d.ts +0 -0
- /package/dist/{dex → domains/flap/portal-bundle-merkle}/types.js +0 -0
- /package/dist/{shared → domains}/flap/portal-bundle-merkle/utils.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal-create-token.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal.d.ts +0 -0
- /package/dist/{shared → domains}/flap/portal.js +0 -0
- /package/dist/{shared → domains}/flap/vanity.d.ts +0 -0
- /package/dist/{shared → domains}/flap/vanity.js +0 -0
- /package/dist/{shared → domains}/flap/vault.d.ts +0 -0
- /package/dist/{flows → domains/flows}/create.d.ts +0 -0
- /package/dist/{flows → domains/flows}/index.d.ts +0 -0
- /package/dist/{flows → domains/flows}/index.js +0 -0
- /package/dist/{contracts → domains/four/contracts}/helper3.d.ts +0 -0
- /package/dist/{contracts → domains/four/contracts}/tm1.d.ts +0 -0
- /package/dist/{contracts → domains/four/contracts}/tm2.d.ts +0 -0
- /package/dist/{shared → domains}/four/tax-token.d.ts +0 -0
- /package/dist/{utils/holders-maker → domains/holders/internal}/addresses.d.ts +0 -0
- /package/dist/{utils/holders-maker → domains/holders/internal}/constants.d.ts +0 -0
- /package/dist/{utils/holders-maker → domains/holders/internal}/transfer-tx.d.ts +0 -0
- /package/dist/{shared/flap/portal-bundle-merkle → domains/holders}/types.js +0 -0
- /package/dist/{bundle-core/__tests__/config-helpers.test.d.ts → domains/lp-inspect/types.js} +0 -0
- /package/dist/{bundle-core/__tests__/facade-parity.test.d.ts → domains/private-sale/types.js} +0 -0
- /package/dist/{bundle-core/__tests__/sign-context-helpers.test.d.ts → domains/quote/types.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getFlapGraduatedDexMetrics, buildFlapInfinityPoolKey, computeInfinityPoolId, isInfinityCLPoolManagerAddress, isFlapInfinityCLGraduated, resolvePortalQuoteInputToken, PCS_INFINITY_CL_POOL_MANAGER_BSC, PCS_INFINITY_VAULT_BSC, FLAP_INFINITY_HOOKS_BSC, type GraduatedDexMetrics, type InfinityPoolKey, } from '../../utils/pcs-infinity-cl.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getFlapGraduatedDexMetrics, buildFlapInfinityPoolKey, computeInfinityPoolId, isInfinityCLPoolManagerAddress, isFlapInfinityCLGraduated, resolvePortalQuoteInputToken, PCS_INFINITY_CL_POOL_MANAGER_BSC, PCS_INFINITY_VAULT_BSC, FLAP_INFINITY_HOOKS_BSC, } from '../../utils/pcs-infinity-cl.js';
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flap Portal newTokenV6 参数构建(对齐官方文档)
|
|
3
|
-
* @see https://docs.flap.sh/flap/developers/token-launcher-developers/launch-token-through-portal
|
|
4
|
-
*/
|
|
5
|
-
import { TokenVersion } from './portal.js';
|
|
6
|
-
import type { TaxV2Config } from './portal-bundle-merkle/types.js';
|
|
7
|
-
export type NewTokenV6LaunchFields = {
|
|
8
|
-
name: string;
|
|
9
|
-
symbol: string;
|
|
10
|
-
meta: string;
|
|
11
|
-
dexThresh?: number;
|
|
12
|
-
salt?: string;
|
|
13
|
-
migratorType?: number;
|
|
14
|
-
quoteToken?: string;
|
|
15
|
-
quoteAmt?: bigint;
|
|
16
|
-
beneficiary: string;
|
|
17
|
-
permitData?: string;
|
|
18
|
-
extensionID?: string;
|
|
19
|
-
extensionData?: string;
|
|
20
|
-
dexId?: number;
|
|
21
|
-
lpFeeProfile?: number;
|
|
22
|
-
buyTaxRate?: number;
|
|
23
|
-
sellTaxRate?: number;
|
|
24
|
-
taxRate?: number;
|
|
25
|
-
taxDuration?: bigint | number;
|
|
26
|
-
antiFarmerDuration?: bigint | number;
|
|
27
|
-
mktBps?: number;
|
|
28
|
-
deflationBps?: number;
|
|
29
|
-
dividendBps?: number;
|
|
30
|
-
lpBps?: number;
|
|
31
|
-
minimumShareBalance?: bigint;
|
|
32
|
-
dividendToken?: string;
|
|
33
|
-
commissionReceiver?: string;
|
|
34
|
-
tokenVersion?: TokenVersion;
|
|
35
|
-
};
|
|
36
|
-
export type BuildNewTokenV6FromTaxV2Input = {
|
|
37
|
-
tokenInfo: {
|
|
38
|
-
name: string;
|
|
39
|
-
symbol: string;
|
|
40
|
-
meta: string;
|
|
41
|
-
};
|
|
42
|
-
taxV2: TaxV2Config;
|
|
43
|
-
beneficiary: string;
|
|
44
|
-
salt?: string;
|
|
45
|
-
taxRate?: number;
|
|
46
|
-
buyTaxRate?: number;
|
|
47
|
-
sellTaxRate?: number;
|
|
48
|
-
dexThresh?: number;
|
|
49
|
-
migratorType?: number;
|
|
50
|
-
quoteToken?: string;
|
|
51
|
-
quoteAmt?: bigint;
|
|
52
|
-
dexId?: number;
|
|
53
|
-
lpFeeProfile?: number;
|
|
54
|
-
extensionID?: string;
|
|
55
|
-
extensionData?: string;
|
|
56
|
-
commissionReceiver?: string;
|
|
57
|
-
dividendToken?: string;
|
|
58
|
-
};
|
|
59
|
-
/** Portal.newTokenV6 ABI(ethers 简写格式,供 Contract 使用) */
|
|
60
|
-
export declare const NEW_TOKEN_V6_ABI = "function newTokenV6((string name,string symbol,string meta,uint8 dexThresh,bytes32 salt,uint8 migratorType,address quoteToken,uint256 quoteAmt,address beneficiary,bytes permitData,bytes32 extensionID,bytes extensionData,uint8 dexId,uint8 lpFeeProfile,uint16 buyTaxRate,uint16 sellTaxRate,uint64 taxDuration,uint64 antiFarmerDuration,uint16 mktBps,uint16 deflationBps,uint16 dividendBps,uint16 lpBps,uint256 minimumShareBalance,address dividendToken,address commissionReceiver,uint8 tokenVersion)) external payable returns (address)";
|
|
61
|
-
export declare function normalizeTaxV2Fields(taxV2: TaxV2Config): (TaxV2Config & {
|
|
62
|
-
mktBps: number;
|
|
63
|
-
deflationBps: number;
|
|
64
|
-
dividendBps: number;
|
|
65
|
-
lpBps: number;
|
|
66
|
-
minimumShareBalance?: number;
|
|
67
|
-
}) | {
|
|
68
|
-
taxDuration: number;
|
|
69
|
-
antiFarmerDuration: number;
|
|
70
|
-
mktBps: number;
|
|
71
|
-
deflationBps: number;
|
|
72
|
-
dividendBps: number;
|
|
73
|
-
lpBps: number;
|
|
74
|
-
minimumShareBalance: number | undefined;
|
|
75
|
-
vaultConfig: import("./vault.js").TaxVaultConfig | undefined;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* 构建 Portal.newTokenV6 参数
|
|
79
|
-
* - 无税:tokenVersion = TOKEN_V2_PERMIT,税字段为 0
|
|
80
|
-
* - 高级税(无金库):tokenVersion = TOKEN_TAXED_V3
|
|
81
|
-
*/
|
|
82
|
-
export declare function buildNewTokenV6Params(input: BuildNewTokenV6FromTaxV2Input | NewTokenV6LaunchFields): {
|
|
83
|
-
name: string;
|
|
84
|
-
symbol: string;
|
|
85
|
-
meta: string;
|
|
86
|
-
dexThresh: number;
|
|
87
|
-
salt: string;
|
|
88
|
-
migratorType: number;
|
|
89
|
-
quoteToken: string;
|
|
90
|
-
quoteAmt: bigint;
|
|
91
|
-
beneficiary: string;
|
|
92
|
-
permitData: string;
|
|
93
|
-
extensionID: string;
|
|
94
|
-
extensionData: string;
|
|
95
|
-
dexId: number;
|
|
96
|
-
lpFeeProfile: number;
|
|
97
|
-
buyTaxRate: number;
|
|
98
|
-
sellTaxRate: number;
|
|
99
|
-
taxDuration: bigint;
|
|
100
|
-
antiFarmerDuration: bigint;
|
|
101
|
-
mktBps: number;
|
|
102
|
-
deflationBps: number;
|
|
103
|
-
dividendBps: number;
|
|
104
|
-
lpBps: number;
|
|
105
|
-
minimumShareBalance: bigint;
|
|
106
|
-
dividendToken: string;
|
|
107
|
-
commissionReceiver: string;
|
|
108
|
-
tokenVersion: TokenVersion;
|
|
109
|
-
};
|
|
110
|
-
/** 高级税(无金库)Vanity:TOKEN_TAXED_V3 + 后缀 7777 */
|
|
111
|
-
export declare function getTaxV3LaunchVanityOptions(chain: string): {
|
|
112
|
-
taxed: boolean;
|
|
113
|
-
taxedV3: boolean;
|
|
114
|
-
taxedV5: boolean;
|
|
115
|
-
useV3Permit: boolean;
|
|
116
|
-
suffix: string | undefined;
|
|
117
|
-
chain: "BSC" | "BASE" | "XLAYER" | "MORPH" | "MONAD";
|
|
118
|
-
};
|
|
119
|
-
/** 标准 V3 池 Vanity:TOKEN_V3_PERMIT / newTokenV7 + BSC_V3_PERMIT impl */
|
|
120
|
-
export declare function getV3PermitLaunchVanityOptions(chain: string): {
|
|
121
|
-
taxed: boolean;
|
|
122
|
-
taxedV3: boolean;
|
|
123
|
-
taxedV5: boolean;
|
|
124
|
-
useV3Permit: boolean;
|
|
125
|
-
suffix: string | undefined;
|
|
126
|
-
chain: "BSC" | "BASE" | "XLAYER" | "MORPH" | "MONAD";
|
|
127
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flap Portal newTokenV6 参数构建(对齐官方文档)
|
|
3
|
-
* @see https://docs.flap.sh/flap/developers/token-launcher-developers/launch-token-through-portal
|
|
4
|
-
*/
|
|
5
|
-
import { ZeroAddress } from 'ethers';
|
|
6
|
-
import { TokenVersion } from './portal.js';
|
|
7
|
-
const NONE_EXTENSION_ID = '0x' + '00'.repeat(32);
|
|
8
|
-
/** Portal.newTokenV6 ABI(ethers 简写格式,供 Contract 使用) */
|
|
9
|
-
export const NEW_TOKEN_V6_ABI = 'function newTokenV6((string name,string symbol,string meta,uint8 dexThresh,bytes32 salt,uint8 migratorType,address quoteToken,uint256 quoteAmt,address beneficiary,bytes permitData,bytes32 extensionID,bytes extensionData,uint8 dexId,uint8 lpFeeProfile,uint16 buyTaxRate,uint16 sellTaxRate,uint64 taxDuration,uint64 antiFarmerDuration,uint16 mktBps,uint16 deflationBps,uint16 dividendBps,uint16 lpBps,uint256 minimumShareBalance,address dividendToken,address commissionReceiver,uint8 tokenVersion)) external payable returns (address)';
|
|
10
|
-
export function normalizeTaxV2Fields(taxV2) {
|
|
11
|
-
if ('distribution' in taxV2) {
|
|
12
|
-
return {
|
|
13
|
-
taxDuration: taxV2.taxDuration,
|
|
14
|
-
antiFarmerDuration: taxV2.antiFarmerDuration,
|
|
15
|
-
mktBps: taxV2.distribution.mktBps,
|
|
16
|
-
deflationBps: taxV2.distribution.deflationBps,
|
|
17
|
-
dividendBps: taxV2.distribution.dividendBps,
|
|
18
|
-
lpBps: taxV2.distribution.lpBps,
|
|
19
|
-
minimumShareBalance: taxV2.distribution.minimumShareBalance,
|
|
20
|
-
vaultConfig: taxV2.vaultConfig,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return taxV2;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* 构建 Portal.newTokenV6 参数
|
|
27
|
-
* - 无税:tokenVersion = TOKEN_V2_PERMIT,税字段为 0
|
|
28
|
-
* - 高级税(无金库):tokenVersion = TOKEN_TAXED_V3
|
|
29
|
-
*/
|
|
30
|
-
export function buildNewTokenV6Params(input) {
|
|
31
|
-
if ('taxV2' in input && input.taxV2) {
|
|
32
|
-
const tv2 = normalizeTaxV2Fields(input.taxV2);
|
|
33
|
-
const total = tv2.mktBps + tv2.deflationBps + tv2.dividendBps + tv2.lpBps;
|
|
34
|
-
if (total !== 10000) {
|
|
35
|
-
throw new Error(`Tax distribution must sum to 10000 (100%), got ${total}`);
|
|
36
|
-
}
|
|
37
|
-
const buyTaxRate = (input.buyTaxRate ?? input.taxRate ?? 0) & 0xffff;
|
|
38
|
-
const sellTaxRate = (input.sellTaxRate ?? input.taxRate ?? 0) & 0xffff;
|
|
39
|
-
if (buyTaxRate <= 0 || sellTaxRate <= 0) {
|
|
40
|
-
throw new Error('Tax launch requires buyTaxRate and sellTaxRate > 0');
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
name: input.tokenInfo.name,
|
|
44
|
-
symbol: input.tokenInfo.symbol,
|
|
45
|
-
meta: input.tokenInfo.meta,
|
|
46
|
-
dexThresh: (input.dexThresh ?? 1) & 0xff,
|
|
47
|
-
salt: input.salt ?? ('0x' + '00'.repeat(32)),
|
|
48
|
-
migratorType: (input.migratorType ?? 0) & 0xff,
|
|
49
|
-
quoteToken: input.quoteToken || ZeroAddress,
|
|
50
|
-
quoteAmt: input.quoteAmt ?? 0n,
|
|
51
|
-
beneficiary: input.beneficiary,
|
|
52
|
-
permitData: '0x',
|
|
53
|
-
extensionID: input.extensionID ?? NONE_EXTENSION_ID,
|
|
54
|
-
extensionData: input.extensionData ?? '0x',
|
|
55
|
-
dexId: (input.dexId ?? 0) & 0xff,
|
|
56
|
-
lpFeeProfile: (input.lpFeeProfile ?? 0) & 0xff,
|
|
57
|
-
buyTaxRate,
|
|
58
|
-
sellTaxRate,
|
|
59
|
-
taxDuration: BigInt(tv2.taxDuration),
|
|
60
|
-
antiFarmerDuration: BigInt(tv2.antiFarmerDuration),
|
|
61
|
-
mktBps: tv2.mktBps & 0xffff,
|
|
62
|
-
deflationBps: tv2.deflationBps & 0xffff,
|
|
63
|
-
dividendBps: tv2.dividendBps & 0xffff,
|
|
64
|
-
lpBps: tv2.lpBps & 0xffff,
|
|
65
|
-
minimumShareBalance: BigInt(tv2.minimumShareBalance ?? 10000) * (10n ** 18n),
|
|
66
|
-
dividendToken: input.dividendToken ?? ZeroAddress,
|
|
67
|
-
commissionReceiver: input.commissionReceiver ?? ZeroAddress,
|
|
68
|
-
tokenVersion: TokenVersion.TOKEN_TAXED_V3,
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
const p = input;
|
|
72
|
-
const isStandard = (p.tokenVersion ?? TokenVersion.TOKEN_V2_PERMIT) === TokenVersion.TOKEN_V2_PERMIT;
|
|
73
|
-
return {
|
|
74
|
-
name: p.name,
|
|
75
|
-
symbol: p.symbol,
|
|
76
|
-
meta: p.meta,
|
|
77
|
-
dexThresh: (p.dexThresh ?? 1) & 0xff,
|
|
78
|
-
salt: p.salt ?? ('0x' + '00'.repeat(32)),
|
|
79
|
-
migratorType: (p.migratorType ?? 0) & 0xff,
|
|
80
|
-
quoteToken: p.quoteToken || ZeroAddress,
|
|
81
|
-
quoteAmt: p.quoteAmt ?? 0n,
|
|
82
|
-
beneficiary: p.beneficiary,
|
|
83
|
-
permitData: p.permitData ?? '0x',
|
|
84
|
-
extensionID: p.extensionID ?? NONE_EXTENSION_ID,
|
|
85
|
-
extensionData: p.extensionData ?? '0x',
|
|
86
|
-
dexId: (p.dexId ?? 0) & 0xff,
|
|
87
|
-
lpFeeProfile: (p.lpFeeProfile ?? 0) & 0xff,
|
|
88
|
-
buyTaxRate: isStandard ? 0 : ((p.buyTaxRate ?? p.taxRate ?? 0) & 0xffff),
|
|
89
|
-
sellTaxRate: isStandard ? 0 : ((p.sellTaxRate ?? p.taxRate ?? 0) & 0xffff),
|
|
90
|
-
taxDuration: BigInt(p.taxDuration ?? 0),
|
|
91
|
-
antiFarmerDuration: BigInt(p.antiFarmerDuration ?? 0),
|
|
92
|
-
mktBps: (p.mktBps ?? 0) & 0xffff,
|
|
93
|
-
deflationBps: (p.deflationBps ?? 0) & 0xffff,
|
|
94
|
-
dividendBps: (p.dividendBps ?? 0) & 0xffff,
|
|
95
|
-
lpBps: (p.lpBps ?? 0) & 0xffff,
|
|
96
|
-
minimumShareBalance: p.minimumShareBalance ?? 0n,
|
|
97
|
-
dividendToken: p.dividendToken ?? ZeroAddress,
|
|
98
|
-
commissionReceiver: isStandard ? ZeroAddress : (p.commissionReceiver ?? ZeroAddress),
|
|
99
|
-
tokenVersion: p.tokenVersion ?? TokenVersion.TOKEN_V2_PERMIT,
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
/** 高级税(无金库)Vanity:TOKEN_TAXED_V3 + 后缀 7777 */
|
|
103
|
-
export function getTaxV3LaunchVanityOptions(chain) {
|
|
104
|
-
return {
|
|
105
|
-
taxed: true,
|
|
106
|
-
taxedV3: true,
|
|
107
|
-
taxedV5: false,
|
|
108
|
-
useV3Permit: false,
|
|
109
|
-
suffix: undefined,
|
|
110
|
-
chain: chain.toUpperCase(),
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
/** 标准 V3 池 Vanity:TOKEN_V3_PERMIT / newTokenV7 + BSC_V3_PERMIT impl */
|
|
114
|
-
export function getV3PermitLaunchVanityOptions(chain) {
|
|
115
|
-
return {
|
|
116
|
-
taxed: false,
|
|
117
|
-
taxedV3: false,
|
|
118
|
-
taxedV5: false,
|
|
119
|
-
useV3Permit: true,
|
|
120
|
-
suffix: undefined,
|
|
121
|
-
chain: chain.toUpperCase(),
|
|
122
|
-
};
|
|
123
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Four.meme 工具模块
|
|
3
|
-
*
|
|
4
|
-
* 提供 Four.meme 平台相关的工具函数:
|
|
5
|
-
* - TaxToken:税币识别、状态查询、奖励领取
|
|
6
|
-
*/
|
|
7
|
-
export { isTaxToken, isAntiSniperFeeMode, getCreatorType, getTaxTokenInfo, getClaimableFee, getClaimedFee, getUserRewardInfo, buildClaimFeeTx, buildBatchClaimFeeTxs, validateFourTokenTaxInfo, TAX_TOKEN_ABI, TransferMode, type TaxTokenConfig, type TaxTokenRewardStats, type TaxTokenUserInfo, type TaxTokenInfo, } from './tax-token.js';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Four.meme 工具模块
|
|
3
|
-
*
|
|
4
|
-
* 提供 Four.meme 平台相关的工具函数:
|
|
5
|
-
* - TaxToken:税币识别、状态查询、奖励领取
|
|
6
|
-
*/
|
|
7
|
-
// TaxToken 工具
|
|
8
|
-
export {
|
|
9
|
-
// 识别方法
|
|
10
|
-
isTaxToken, isAntiSniperFeeMode, getCreatorType,
|
|
11
|
-
// 状态查询
|
|
12
|
-
getTaxTokenInfo,
|
|
13
|
-
// 用户奖励
|
|
14
|
-
getClaimableFee, getClaimedFee, getUserRewardInfo,
|
|
15
|
-
// 奖励领取
|
|
16
|
-
buildClaimFeeTx, buildBatchClaimFeeTxs,
|
|
17
|
-
// 校验工具
|
|
18
|
-
validateFourTokenTaxInfo,
|
|
19
|
-
// ABI
|
|
20
|
-
TAX_TOKEN_ABI,
|
|
21
|
-
// 类型
|
|
22
|
-
TransferMode, } from './tax-token.js';
|
package/dist/shared/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared 模块统一导出
|
|
3
|
-
*
|
|
4
|
-
* 包含所有跨链共享的功能:
|
|
5
|
-
* - constants: 常量定义
|
|
6
|
-
* - clients: API 客户端
|
|
7
|
-
* - four: Four.meme 工具(TaxToken 等)
|
|
8
|
-
*/
|
|
9
|
-
export * from './constants/index.js';
|
|
10
|
-
/** 错误规范化、可选 Logger(与根 `index` 导出同源) */
|
|
11
|
-
export * as foundation from './foundation/index.js';
|
|
12
|
-
/** HTTP / Bundle / BlockRazor 等(亦支持子路径 `four-flap-meme-sdk/clients`) */
|
|
13
|
-
export * as clients from './clients/index.js';
|
|
14
|
-
export * as FourUtils from './four/index.js';
|
|
15
|
-
/** Flap 链标识(与 `./constants` 同源) */
|
|
16
|
-
export type { FlapChain } from './flap/portal.js';
|
package/dist/shared/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared 模块统一导出
|
|
3
|
-
*
|
|
4
|
-
* 包含所有跨链共享的功能:
|
|
5
|
-
* - constants: 常量定义
|
|
6
|
-
* - clients: API 客户端
|
|
7
|
-
* - four: Four.meme 工具(TaxToken 等)
|
|
8
|
-
*/
|
|
9
|
-
export * from './constants/index.js';
|
|
10
|
-
/** 错误规范化、可选 Logger(与根 `index` 导出同源) */
|
|
11
|
-
export * as foundation from './foundation/index.js';
|
|
12
|
-
/** HTTP / Bundle / BlockRazor 等(亦支持子路径 `four-flap-meme-sdk/clients`) */
|
|
13
|
-
export * as clients from './clients/index.js';
|
|
14
|
-
export * as FourUtils from './four/index.js';
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { FlapPortal } from '../shared/flap/portal.js';
|
|
2
|
-
import type { TokenStateV7 } from '../shared/flap/portal.js';
|
|
3
|
-
/** PancakeSwap Infinity CL PoolManager(BSC / Base 同址) */
|
|
4
|
-
export declare const PCS_INFINITY_CL_POOL_MANAGER_BSC = "0xa0FfB9c1CE1Fe56963B0321B32E7A0302114058b";
|
|
5
|
-
/** PancakeSwap Infinity Vault(全池代币记账;BSC / Base 同址) */
|
|
6
|
-
export declare const PCS_INFINITY_VAULT_BSC = "0x238a358808379702088667322f80aC48bAd5e6c4";
|
|
7
|
-
/** Flap Portal 毕业到 Infinity CL 时使用的 hooks(BSC) */
|
|
8
|
-
export declare const FLAP_INFINITY_HOOKS_BSC = "0xF1A9aA042454b8553bE3896597ff11a0f011c1c1";
|
|
9
|
-
export type InfinityPoolKey = {
|
|
10
|
-
currency0: string;
|
|
11
|
-
currency1: string;
|
|
12
|
-
hooks: string;
|
|
13
|
-
poolManager: string;
|
|
14
|
-
fee: number;
|
|
15
|
-
parameters: string;
|
|
16
|
-
};
|
|
17
|
-
export type GraduatedDexMetrics = {
|
|
18
|
-
price: string;
|
|
19
|
-
progress: string;
|
|
20
|
-
poolBNBAmount: string;
|
|
21
|
-
poolTokenAmount: string;
|
|
22
|
-
poolId?: string;
|
|
23
|
-
infinityFee?: number;
|
|
24
|
-
dexKind?: 'PCS_INFINITY_CL' | 'PANCAKE_V3' | 'PORTAL_QUOTE';
|
|
25
|
-
};
|
|
26
|
-
export declare function sortInfinityCurrencies(a: string, b: string): [string, string];
|
|
27
|
-
export declare function computeInfinityPoolId(key: InfinityPoolKey): string;
|
|
28
|
-
export declare function buildFlapInfinityPoolKey(params: {
|
|
29
|
-
tokenAddress: string;
|
|
30
|
-
quoteTokenAddress: string;
|
|
31
|
-
chain: string;
|
|
32
|
-
lpFeeProfile?: number;
|
|
33
|
-
}): InfinityPoolKey | null;
|
|
34
|
-
/** 判断 getTokenV7.pool 是否为 Infinity CL PoolManager(而非 V3 pair) */
|
|
35
|
-
export declare function isInfinityCLPoolManagerAddress(pool: string, chain: string): boolean;
|
|
36
|
-
/** 仅 V7 + Infinity CL 才走 Infinity 专用逻辑 */
|
|
37
|
-
export declare function isFlapInfinityCLGraduated(state: {
|
|
38
|
-
pool?: string;
|
|
39
|
-
tokenVersion?: bigint | number;
|
|
40
|
-
}, chain: string): boolean;
|
|
41
|
-
/** Portal quoteExactInput:链上 quoteToken 为 0 时必须用 native(0),不能用 WBNB */
|
|
42
|
-
export declare function resolvePortalQuoteInputToken(quoteTokenAddress: string, wrappedNativeAddress: string): string;
|
|
43
|
-
export declare function infinitySpotPriceQuotePerToken(params: {
|
|
44
|
-
sqrtPriceX96: bigint;
|
|
45
|
-
tokenAddress: string;
|
|
46
|
-
currency0: string;
|
|
47
|
-
currency1: string;
|
|
48
|
-
quoteTokenAddress: string;
|
|
49
|
-
tokenDecimals?: number;
|
|
50
|
-
quoteDecimals?: number;
|
|
51
|
-
}): string | null;
|
|
52
|
-
/**
|
|
53
|
-
* Flap 毕业后(status=4)外盘统一入口:
|
|
54
|
-
* - V7 / Infinity CL → Infinity + Portal quote 深度
|
|
55
|
-
* - 旧版 V3/V2(pool 为 pair 地址)→ 读 pair 余额 + slot0
|
|
56
|
-
* - 否则仅 Portal quote
|
|
57
|
-
*/
|
|
58
|
-
export declare function getFlapGraduatedDexMetrics(params: {
|
|
59
|
-
portal: FlapPortal;
|
|
60
|
-
tokenAddress: string;
|
|
61
|
-
state: TokenStateV7;
|
|
62
|
-
rpcUrl: string;
|
|
63
|
-
wrappedNativeAddress?: string;
|
|
64
|
-
chain?: string;
|
|
65
|
-
}): Promise<GraduatedDexMetrics>;
|