four-flap-meme-sdk 4.1.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/chains/index.d.ts +3 -0
  2. package/dist/chains/index.js +4 -0
  3. package/dist/chains/robinhood/constants.d.ts +48 -0
  4. package/dist/chains/robinhood/constants.js +55 -0
  5. package/dist/chains/robinhood/index.d.ts +11 -0
  6. package/dist/chains/robinhood/index.js +9 -0
  7. package/dist/chains/robinhood/longetf/assets.d.ts +11 -0
  8. package/dist/chains/robinhood/longetf/assets.js +4 -0
  9. package/dist/chains/robinhood/longetf/encode.d.ts +41 -0
  10. package/dist/chains/robinhood/longetf/encode.js +116 -0
  11. package/dist/chains/robinhood/longetf/index.d.ts +3 -0
  12. package/dist/chains/robinhood/longetf/index.js +3 -0
  13. package/dist/chains/robinhood/longetf/launch.d.ts +49 -0
  14. package/dist/chains/robinhood/longetf/launch.js +64 -0
  15. package/dist/chains/robinhood/pons-v2/encode.d.ts +62 -0
  16. package/dist/chains/robinhood/pons-v2/encode.js +115 -0
  17. package/dist/chains/robinhood/pons-v2/index.d.ts +2 -0
  18. package/dist/chains/robinhood/pons-v2/index.js +2 -0
  19. package/dist/chains/robinhood/pons-v2/launch.d.ts +48 -0
  20. package/dist/chains/robinhood/pons-v2/launch.js +107 -0
  21. package/dist/chains/robinhood/robinhood.test.d.ts +1 -0
  22. package/dist/chains/robinhood/robinhood.test.js +103 -0
  23. package/dist/chains/robinhood/sign.d.ts +20 -0
  24. package/dist/chains/robinhood/sign.js +31 -0
  25. package/dist/core/constants/addresses.d.ts +18 -0
  26. package/dist/core/constants/addresses.js +23 -0
  27. package/dist/core/constants/chains.d.ts +16 -0
  28. package/dist/core/constants/chains.js +20 -0
  29. package/dist/core/constants/gas.d.ts +8 -0
  30. package/dist/core/constants/gas.js +9 -0
  31. package/dist/core/constants/index.d.ts +1 -1
  32. package/dist/core/constants/index.js +1 -1
  33. package/dist/exports/root-foundations.d.ts +1 -1
  34. package/dist/exports/root-foundations.js +1 -1
  35. package/dist/exports/root-robinhood.d.ts +9 -0
  36. package/dist/exports/root-robinhood.js +7 -0
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.js +1 -0
  39. package/dist/utils/constants.d.ts +1 -1
  40. package/dist/utils/constants.js +1 -1
  41. package/package.json +1 -1
@@ -8,7 +8,7 @@
8
8
  * const gasLimit = GAS_LIMITS.NATIVE_TRANSFER;
9
9
  * const wbnb = ADDRESSES.BSC.WBNB;
10
10
  */
11
- export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, type ChainKey, type ChainConfig, } from './chains.js';
11
+ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, isRobinhoodChain, getConfirmationTimeout, type ChainKey, type ChainConfig, } from './chains.js';
12
12
  export { GAS_LIMITS, GAS_CONFIG, V3_FEE_TIERS, calculateGasLimit, getTransferGasLimit, type GasLimitKey, type V3FeeTier, } from './gas.js';
13
13
  export { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, getQuoteChainKey, type QuoteConfigChain } from './quote.js';
14
14
  export { applySlippageBps, reverseSlippageBps } from './slippage.js';
@@ -11,7 +11,7 @@
11
11
  // ============================================================================
12
12
  // 链配置
13
13
  // ============================================================================
14
- export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, } from './chains.js';
14
+ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, isRobinhoodChain, getConfirmationTimeout, } from './chains.js';
15
15
  // ============================================================================
16
16
  // Gas 常量
17
17
  // ============================================================================
@@ -8,7 +8,7 @@ export * as chains from '../chains/index.js';
8
8
  export * as Abis from '../abis/index.js';
9
9
  export { getErrorMessageFromUnknown, normalizeUnknownError, noopSdkLogger, consoleSdkLogger, buildTransactionRequest, type NormalizedErrorShape, type SdkLogger, type Aggregate3CallResult, type EnsureAllowanceResult, type EnsureAllowanceBatchItemResult, type BuildTxRequestParams, type HoldersMakerChain, type HoldersMakerTradeType, type BaseTokenType, type HoldersMakerConfig, type HoldersMakerParams, type TransactionLayer, type BatchResult, type BatchResult as HoldersMakerBatchResult, type HoldersMakerResult, type DexConfig, type ChainDexConfig, type PoolPairInfo, type V3PoolInfo, type DexPoolInfo, type BestPoolInfo, type LPPlatform, type LPInfo, type InspectOptions, type BundleSubmitResult, type SignedTransactionsResult, type DisperseParams, type AirdropDisperseSignParams, type SweepParams, type AirdropSweepSignParams, type PrivateSaleSignConfig, type PrivateSaleTransferParams, type BatchPrivateSaleParams, type PrivateSaleResult, type ApproveTokenBatchParams, type ApproveTokenBatchRawParams, type ApproveTokenBatchResult, type ApproveTokenBatchSignResult, type SupportedChain, type QuoteParams, type QuoteResult, } from '../core/index.js';
10
10
  export { ERC20_ABI, ERC20_BALANCE_ABI, ERC20_ALLOWANCE_ABI, MULTICALL3_ABI, V2_ROUTER_ABI, V2_ROUTER_QUOTE_ABI, V3_ROUTER02_ABI, V3_ROUTER_LEGACY_ABI, V3_QUOTER_ABI, V2_FACTORY_ABI, V2_PAIR_ABI, V3_FACTORY_ABI, V3_POOL_ABI, FLAP_PORTAL_ABI, TM2_ABI, HELPER3_ABI, } from '../abis/common.js';
11
- export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ADDRESSES, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, ENI_SPENDERS, getEniSpenders, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateBundleSwapRoundTripProfit, calculateProfitHopGasCost, getTransferFeePerAddress, TRANSFER_FEE_PER_ADDRESS, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
11
+ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, isRobinhoodChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ADDRESSES, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, ENI_SPENDERS, getEniSpenders, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateBundleSwapRoundTripProfit, calculateProfitHopGasCost, getTransferFeePerAddress, TRANSFER_FEE_PER_ADDRESS, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
12
12
  export { buildProfitHopTransactions, PROFIT_HOP_COUNT } from '../utils/bundle-helpers.js';
13
13
  export { isExclusiveOnChain, isExclusiveOffChain } from '../utils/mpcExclusive.js';
14
14
  export { ensureSellApprovalV1, checkSellApprovalV1, ensureSellApprovalV2, checkSellApprovalV2, ensureSellApproval, checkSellApproval, ensureFlapSellApproval, checkFlapSellApproval, ensureFlapSellApprovalBatch, checkFlapSellApprovalBatch, checkAllowance, approveToken, checkAllowanceBatch, approveTokenBatch, checkAllowanceRaw, approveTokenRaw, checkAllowanceBatchRaw, approveTokenBatchRaw, } from '../core/erc20/index.js';
@@ -23,7 +23,7 @@ export { ERC20_ABI, ERC20_BALANCE_ABI, ERC20_ALLOWANCE_ABI, MULTICALL3_ABI, V2_R
23
23
  // ============================================================================
24
24
  export {
25
25
  // 链配置
26
- CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout,
26
+ CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, isRobinhoodChain, getConfirmationTimeout,
27
27
  // Gas 常量
28
28
  GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit,
29
29
  // 合约地址
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 根包 API · Robinhood Chain LONGETF / pons v2 发币
3
+ *
4
+ * 由 src/index.ts 聚合引用,请勿在本目录写实现逻辑。
5
+ */
6
+ export * as ROBINHOOD from '../chains/robinhood/index.js';
7
+ export { ROBINHOOD_CHAIN_ID, ROBINHOOD_RPC_URL, ROBINHOOD_EXPLORER, ROBINHOOD_ADDRESSES, LONGETF_FACTORY, LONG_XYZ_LAUNCHER, LONG_XYZ_HOOK, LONG_XYZ_PROTOCOL_BENEFICIARY, PONS_V2_FACTORY, PONS_V2_LAUNCH_AND_BUY, signRobinhoodTx, LONGETF_VAULT_INITCODE, LONGETF_LAUNCH_TEMPLATE, LONGETF_DEFAULT_ANCHORS, longetfVaultInitCodeHash, longetfEffectiveSalt, predictLongetfVault, mineLongetfVaultSalt, encodeLongetfDeployVault, encodeLongetfRegister, encodeLongetfIsTickerAvailable, patchLongetfLaunchCalldata, parseLongetfTokenFromLogs, isLongetfTickerAvailable, prepareLongetfVault, signLongetfDeployVault, signLongetfLaunch, signLongetfRegister, getLongetfVaultCode, PONS_V2_TOKEN_LAUNCHED_TOPIC, randomPonsV2Salt, encodePonsV2LaunchToken, encodePonsV2LaunchAndBuy, parsePonsV2TokenFromLogs, buildPonsV2LaunchCall, getPonsV2LaunchFee, previewPonsV2LaunchEconomics, canPonsV2Launch, listOpenPonsV2LaunchConfigs, signPonsV2Launch, } from '../chains/robinhood/index.js';
8
+ export type { RobinhoodSignParams, RobinhoodSignedTx, } from '../chains/robinhood/sign.js';
9
+ export type { LongetfAnchor, LongetfMinedSalt, LongetfLaunchPatch, LongetfLaunchInput, PonsV2Socials, PonsV2TokenParams, PonsV2LaunchCall, PonsV2LaunchConfig, PonsV2LaunchParams, PonsV2LaunchSignResult, } from '../chains/robinhood/index.js';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 根包 API · Robinhood Chain LONGETF / pons v2 发币
3
+ *
4
+ * 由 src/index.ts 聚合引用,请勿在本目录写实现逻辑。
5
+ */
6
+ export * as ROBINHOOD from '../chains/robinhood/index.js';
7
+ export { ROBINHOOD_CHAIN_ID, ROBINHOOD_RPC_URL, ROBINHOOD_EXPLORER, ROBINHOOD_ADDRESSES, LONGETF_FACTORY, LONG_XYZ_LAUNCHER, LONG_XYZ_HOOK, LONG_XYZ_PROTOCOL_BENEFICIARY, PONS_V2_FACTORY, PONS_V2_LAUNCH_AND_BUY, signRobinhoodTx, LONGETF_VAULT_INITCODE, LONGETF_LAUNCH_TEMPLATE, LONGETF_DEFAULT_ANCHORS, longetfVaultInitCodeHash, longetfEffectiveSalt, predictLongetfVault, mineLongetfVaultSalt, encodeLongetfDeployVault, encodeLongetfRegister, encodeLongetfIsTickerAvailable, patchLongetfLaunchCalldata, parseLongetfTokenFromLogs, isLongetfTickerAvailable, prepareLongetfVault, signLongetfDeployVault, signLongetfLaunch, signLongetfRegister, getLongetfVaultCode, PONS_V2_TOKEN_LAUNCHED_TOPIC, randomPonsV2Salt, encodePonsV2LaunchToken, encodePonsV2LaunchAndBuy, parsePonsV2TokenFromLogs, buildPonsV2LaunchCall, getPonsV2LaunchFee, previewPonsV2LaunchEconomics, canPonsV2Launch, listOpenPonsV2LaunchConfigs, signPonsV2Launch, } from '../chains/robinhood/index.js';
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './exports/root-foundations.js';
9
9
  export * from './exports/root-bundle-and-tooling.js';
10
10
  export * from './exports/root-swap-dex-and-xlayer.js';
11
11
  export * from './exports/root-eni-and-bsc-iro.js';
12
+ export * from './exports/root-robinhood.js';
12
13
  /** 横向基础:错误收口、Logger、共享类型、Nonce/Gas/Tx 工具 */
13
14
  export * as foundation from './core/foundation.js';
14
15
  /** Bundle 共享核心:internal、submit、config-helpers、four-meme 实现 */
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ export * from './exports/root-foundations.js';
9
9
  export * from './exports/root-bundle-and-tooling.js';
10
10
  export * from './exports/root-swap-dex-and-xlayer.js';
11
11
  export * from './exports/root-eni-and-bsc-iro.js';
12
+ export * from './exports/root-robinhood.js';
12
13
  /** 横向基础:错误收口、Logger、共享类型、Nonce/Gas/Tx 工具 */
13
14
  export * as foundation from './core/foundation.js';
14
15
  /** Bundle 共享核心:internal、submit、config-helpers、four-meme 实现 */
@@ -6,4 +6,4 @@
6
6
  *
7
7
  * v2:不再导出 `CHAIN` / `DEFAULT_DEADLINE_MINUTES` / `PROFIT_CONFIG` / 报价 `V3_FEE_TIERS`。
8
8
  */
9
- export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateBundleSwapRoundTripProfit, calculateProfitHopGasCost, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
9
+ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, isRobinhoodChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateBundleSwapRoundTripProfit, calculateProfitHopGasCost, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
@@ -6,4 +6,4 @@
6
6
  *
7
7
  * v2:不再导出 `CHAIN` / `DEFAULT_DEADLINE_MINUTES` / `PROFIT_CONFIG` / 报价 `V3_FEE_TIERS`。
8
8
  */
9
- export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateBundleSwapRoundTripProfit, calculateProfitHopGasCost, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
9
+ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, isRobinhoodChain, getConfirmationTimeout, GAS_LIMITS, GAS_CONFIG, calculateGasLimit, getTransferGasLimit, ZERO_ADDRESS, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, getProfitRecipient, getAllProfitRecipients, getProfitRateBps, calculateProfitAmount, calculateBundleSwapRoundTripProfit, calculateProfitHopGasCost, TRANSFER_FEE_PER_ADDRESS, getTransferFeePerAddress, calculateTransferFee, QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, } from '../core/constants/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",