@mania-labs/mania-sdk 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -280,12 +280,12 @@ console.log(UNISWAP_FEE_TIER); // 3000
280
280
  import { getChainConfig, CHAIN_CONFIGS } from "@mania-labs/mania-sdk";
281
281
 
282
282
  // Get config for a specific chain
283
- const baseConfig = getChainConfig(8453);
283
+ const baseConfig = getChainConfig(4326);
284
284
  console.log(baseConfig?.factoryAddress);
285
285
  console.log(baseConfig?.wethAddress);
286
286
 
287
287
  // Or create SDK from chain ID
288
- const sdk = ManiaSDK.fromChainId(8453, "https://mainnet.base.org");
288
+ const sdk = ManiaSDK.fromChainId(4326, "https://megaeth.blockscout.com");
289
289
  ```
290
290
 
291
291
  ## Advanced Usage
@@ -299,18 +299,18 @@ import { privateKeyToAccount } from "viem/accounts";
299
299
 
300
300
  const publicClient = createPublicClient({
301
301
  chain: base,
302
- transport: http("https://mainnet.base.org"),
302
+ transport: http("https://megaeth.blockscout.com"),
303
303
  });
304
304
 
305
305
  const walletClient = createWalletClient({
306
306
  account: privateKeyToAccount("0x..."),
307
307
  chain: base,
308
- transport: http("https://mainnet.base.org"),
308
+ transport: http("https://megaeth.blockscout.com"),
309
309
  });
310
310
 
311
311
  const sdk = new ManiaSDK({
312
312
  factoryAddress: "0x...",
313
- chainId: 8453,
313
+ chainId: 4326,
314
314
  });
315
315
 
316
316
  sdk.setPublicClient(publicClient);
package/dist/index.js CHANGED
@@ -84,6 +84,16 @@ var CHAIN_CONFIGS = {
84
84
  nonfungiblePositionManager: "0xa204A97EF8Bd2E3198f19EB5a804680467BD85f5",
85
85
  uniswapV3Factory: "0x619fb6C12c36b57a8bAb05e98F42C43745DCf69f",
86
86
  blockExplorer: "https://megaeth-testnet-v2.blockscout.com"
87
+ },
88
+ // Mega Eth Mainnet
89
+ 4326: {
90
+ chainId: 4326,
91
+ name: "Mega Eth Mainnet",
92
+ factoryAddress: "0xb2f6344Cb0Ee13e027759166770198f4d8B3106d",
93
+ wethAddress: "0x4200000000000000000000000000000000000006",
94
+ nonfungiblePositionManager: "0x2b781C57e6358f64864Ff8EC464a03Fdaf9974bA",
95
+ uniswapV3Factory: "0x68b34591f662508076927803c567Cc8006988a09",
96
+ blockExplorer: "https://megaeth.blockscout.com/"
87
97
  }
88
98
  };
89
99
  function getChainConfig(chainId) {
package/dist/index.mjs CHANGED
@@ -30,6 +30,16 @@ var CHAIN_CONFIGS = {
30
30
  nonfungiblePositionManager: "0xa204A97EF8Bd2E3198f19EB5a804680467BD85f5",
31
31
  uniswapV3Factory: "0x619fb6C12c36b57a8bAb05e98F42C43745DCf69f",
32
32
  blockExplorer: "https://megaeth-testnet-v2.blockscout.com"
33
+ },
34
+ // Mega Eth Mainnet
35
+ 4326: {
36
+ chainId: 4326,
37
+ name: "Mega Eth Mainnet",
38
+ factoryAddress: "0xb2f6344Cb0Ee13e027759166770198f4d8B3106d",
39
+ wethAddress: "0x4200000000000000000000000000000000000006",
40
+ nonfungiblePositionManager: "0x2b781C57e6358f64864Ff8EC464a03Fdaf9974bA",
41
+ uniswapV3Factory: "0x68b34591f662508076927803c567Cc8006988a09",
42
+ blockExplorer: "https://megaeth.blockscout.com/"
33
43
  }
34
44
  };
35
45
  function getChainConfig(chainId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mania-labs/mania-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Official SDK for interacting with the Mania Protocol - EVM Bonding Curve Token Launchpad",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/constants.ts CHANGED
@@ -62,6 +62,17 @@ export const CHAIN_CONFIGS: Record<number, ChainConfig> = {
62
62
  uniswapV3Factory: "0x619fb6C12c36b57a8bAb05e98F42C43745DCf69f" as Address,
63
63
  blockExplorer: "https://megaeth-testnet-v2.blockscout.com",
64
64
  },
65
+ // Mega Eth Mainnet
66
+ 4326: {
67
+ chainId: 4326,
68
+ name: "Mega Eth Mainnet",
69
+ factoryAddress: "0xb2f6344Cb0Ee13e027759166770198f4d8B3106d" as Address,
70
+ wethAddress: "0x4200000000000000000000000000000000000006" as Address,
71
+ nonfungiblePositionManager:
72
+ "0x2b781C57e6358f64864Ff8EC464a03Fdaf9974bA" as Address,
73
+ uniswapV3Factory: "0x68b34591f662508076927803c567Cc8006988a09" as Address,
74
+ blockExplorer: "https://megaeth.blockscout.com/",
75
+ },
65
76
  };
66
77
 
67
78
  /**