four-flap-meme-sdk 4.5.2 → 4.5.3

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.
@@ -27,6 +27,8 @@ export declare const BSC_ADDRESSES: {
27
27
  readonly BlockRazorBuilder: "0x1266C6bE60392A8Ff346E8d5ECCd3E69dD9c5F20";
28
28
  readonly IroSwapV2Factory: "0x637D87a4165C5fF8f6cdDa8EC8cA394b1f0CEcdf";
29
29
  readonly IroSwapV2Router: "0xe90fb729E458092592a79EdaFefB3404ecb3C463";
30
+ readonly UniswapV2Factory: "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6";
31
+ readonly UniswapV2Router: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24";
30
32
  readonly IroFactory: "0x421D0B1a848E0f71E0bBa79275E4aB0A1fA0cc8b";
31
33
  };
32
34
  export declare const WBNB: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
@@ -44,6 +46,8 @@ export declare const PANCAKE_V3_QUOTER: "0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25
44
46
  export declare const BLOCKRAZOR_BUILDER: "0x1266C6bE60392A8Ff346E8d5ECCd3E69dD9c5F20";
45
47
  export declare const IROSWAP_V2_FACTORY: "0x637D87a4165C5fF8f6cdDa8EC8cA394b1f0CEcdf";
46
48
  export declare const IROSWAP_V2_ROUTER: "0xe90fb729E458092592a79EdaFefB3404ecb3C463";
49
+ export declare const UNISWAP_V2_FACTORY: "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6";
50
+ export declare const UNISWAP_V2_ROUTER: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24";
47
51
  export declare const IRO_FACTORY: "0x421D0B1a848E0f71E0bBa79275E4aB0A1fA0cc8b";
48
52
  /** BSC 原生代币转账 Gas Limit */
49
53
  export declare const NATIVE_TRANSFER_GAS_LIMIT: 21055n;
@@ -36,6 +36,9 @@ export const BLOCKRAZOR_BUILDER = ADDRESSES.BSC.BlockRazorBuilder;
36
36
  // IROSwap
37
37
  export const IROSWAP_V2_FACTORY = ADDRESSES.BSC.IroSwapV2Factory;
38
38
  export const IROSWAP_V2_ROUTER = ADDRESSES.BSC.IroSwapV2Router;
39
+ // Uniswap V2
40
+ export const UNISWAP_V2_FACTORY = ADDRESSES.BSC.UniswapV2Factory;
41
+ export const UNISWAP_V2_ROUTER = ADDRESSES.BSC.UniswapV2Router;
39
42
  // IRO 发币平台
40
43
  export const IRO_FACTORY = ADDRESSES.BSC.IroFactory;
41
44
  // ============================================================================
@@ -34,6 +34,8 @@ export declare const ADDRESSES: {
34
34
  readonly BlockRazorBuilder: "0x1266C6bE60392A8Ff346E8d5ECCd3E69dD9c5F20";
35
35
  readonly IroSwapV2Factory: "0x637D87a4165C5fF8f6cdDa8EC8cA394b1f0CEcdf";
36
36
  readonly IroSwapV2Router: "0xe90fb729E458092592a79EdaFefB3404ecb3C463";
37
+ readonly UniswapV2Factory: "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6";
38
+ readonly UniswapV2Router: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24";
37
39
  /** IRO 工厂合约 (IROFactory — 已验证源码) */
38
40
  readonly IroFactory: "0x421D0B1a848E0f71E0bBa79275E4aB0A1fA0cc8b";
39
41
  };
@@ -51,6 +51,9 @@ export const ADDRESSES = {
51
51
  // ---------- IRO Swap (UniswapV2 fork) ----------
52
52
  IroSwapV2Factory: '0x637D87a4165C5fF8f6cdDa8EC8cA394b1f0CEcdf',
53
53
  IroSwapV2Router: '0xe90fb729E458092592a79EdaFefB3404ecb3C463',
54
+ // ---------- Uniswap V2 官方部署 ----------
55
+ UniswapV2Factory: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6',
56
+ UniswapV2Router: '0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24',
54
57
  // ---------- IRO 发币平台 ----------
55
58
  /** IRO 工厂合约 (IROFactory — 已验证源码) */
56
59
  IroFactory: '0x421D0B1a848E0f71E0bBa79275E4aB0A1fA0cc8b',
@@ -6,6 +6,7 @@ export declare const DIRECT_ROUTERS: {
6
6
  readonly PANCAKESWAP_V2: "0x10ED43C718714eb63d5aA57B78B54704E256024E";
7
7
  readonly PANCAKESWAP_V3: "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
8
8
  readonly IROSWAP_V2: "0xe90fb729E458092592a79EdaFefB3404ecb3C463";
9
+ readonly UNISWAP_V2: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24";
9
10
  readonly WBNB: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
10
11
  };
11
12
  readonly MONAD: {
@@ -8,6 +8,7 @@ export const DIRECT_ROUTERS = {
8
8
  PANCAKESWAP_V2: ADDRESSES.BSC.PancakeV2Router,
9
9
  PANCAKESWAP_V3: ADDRESSES.BSC.PancakeV3Router,
10
10
  IROSWAP_V2: ADDRESSES.BSC.IroSwapV2Router,
11
+ UNISWAP_V2: ADDRESSES.BSC.UniswapV2Router,
11
12
  WBNB: ADDRESSES.BSC.WBNB,
12
13
  },
13
14
  MONAD: {
@@ -155,6 +155,9 @@ export function getRouterAddress(chain, dexKey, version) {
155
155
  if (dexKey === 'IROSWAP') {
156
156
  return DIRECT_ROUTERS.BSC.IROSWAP_V2;
157
157
  }
158
+ // BSC 只接入了 Uniswap V2;UNISWAP + v3 保持原来的 Pancake V3
159
+ if (dexKey === 'UNISWAP' && version === 'v2')
160
+ return DIRECT_ROUTERS.BSC.UNISWAP_V2;
158
161
  if (version === 'v2')
159
162
  return DIRECT_ROUTERS.BSC.PANCAKESWAP_V2;
160
163
  return DIRECT_ROUTERS.BSC.PANCAKESWAP_V3;
@@ -21,6 +21,12 @@ export const CHAIN_DEX_CONFIGS = {
21
21
  v2Router: ADDRESSES.BSC.IroSwapV2Router,
22
22
  enabled: true,
23
23
  },
24
+ UNISWAP: {
25
+ name: 'Uniswap',
26
+ v2Factory: ADDRESSES.BSC.UniswapV2Factory,
27
+ v2Router: ADDRESSES.BSC.UniswapV2Router,
28
+ enabled: true,
29
+ },
24
30
  },
25
31
  },
26
32
  MONAD: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",