@parallel-protocol/cli 0.2.9 → 0.2.11

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 (3) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +15 -28
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -251,7 +251,7 @@ parallel bridge status <txHash> --from <chain>
251
251
  parallel bridge history <address> [--limit <n>] [--offset <n>] # past transfers (default: 20)
252
252
  ```
253
253
 
254
- > **Note:** only `usdp` can be bridged for now (`--token` defaults to it; other values are rejected). Mantle does not support bridging (no BridgeableToken deployed) — all other chains do.
254
+ > **Note:** only `usdp` can be bridged for now (`--token` defaults to it; other values are rejected). Every supported chain can bridge.
255
255
 
256
256
  ---
257
257
 
@@ -410,7 +410,7 @@ parallel protocol tvl --chain nope --json 2>err.json || jq -r '.error.code' err.
410
410
 
411
411
  ## Supported chains
412
412
 
413
- `ethereum` · `base` · `arbitrum` · `optimism` · `polygon` · `avalanche` · `bsc` · `scroll` · `gnosis` · `sei` · `berachain` · `hyperevm` · `unichain` · `ink` · `tac` · `mantle` · `linea` · `xlayer` · `fraxtal` · `worldchain` · `hemi` · `plume` · `plasma` · `katana`
413
+ `ethereum` · `base` · `arbitrum` · `optimism` · `polygon` · `avalanche` · `bsc` · `scroll` · `gnosis` · `sei` · `berachain` · `hyperevm` · `unichain` · `ink` · `tac` · `linea` · `xlayer` · `fraxtal` · `worldchain` · `hemi` · `plume` · `plasma` · `katana`
414
414
 
415
415
  > `sonic` is sunset (PIP-64) — Parallelizer/Savings operations return `CHAIN_SUNSET`; USDp bridging and balance reads stay active.
416
416
 
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
5
5
  import { join, dirname } from 'path';
6
6
  import { fileURLToPath } from 'url';
7
7
  import { config } from 'dotenv';
8
- import { hyperEvm, hemi, katana, plasma, plume, worldchain, fraxtal, xLayer, linea, mantle, sonic, tac, ink, unichain, berachain, sei, gnosis, scroll, bsc, avalanche, polygon, optimism, arbitrum, base, mainnet } from 'viem/chains';
8
+ import { hyperEvm, hemi, katana, plasma, plume, worldchain, fraxtal, xLayer, linea, sonic, tac, ink, unichain, berachain, sei, gnosis, scroll, bsc, avalanche, polygon, optimism, arbitrum, base, mainnet } from 'viem/chains';
9
9
  import { z } from 'zod';
10
10
  import { keccak256, toHex, isAddress, zeroAddress, parseUnits, isHex, formatUnits, encodeFunctionData, formatEther, createPublicClient, http, createWalletClient, getContract, encodeAbiParameters, concat, hashTypedData, BaseError, ContractFunctionRevertedError, ContractFunctionZeroDataError, custom } from 'viem';
11
11
  import { createEnv } from '@t3-oss/env-core';
@@ -1635,7 +1635,7 @@ function suppressLogs() {
1635
1635
 
1636
1636
  // package.json
1637
1637
  var package_default = {
1638
- version: "0.2.9"};
1638
+ version: "0.2.11"};
1639
1639
  function findEnvFile(dir) {
1640
1640
  const candidate = join(dir, ".env");
1641
1641
  if (existsSync(candidate)) return candidate;
@@ -1683,7 +1683,6 @@ var ChainEnum = z.enum([
1683
1683
  "ink",
1684
1684
  "tac",
1685
1685
  "sonic",
1686
- "mantle",
1687
1686
  "linea",
1688
1687
  "xlayer",
1689
1688
  "fraxtal",
@@ -1897,16 +1896,6 @@ var CHAINS_STATIC = {
1897
1896
  harvester: "0x120805265fA944834DC6e930De2995768806a9d2"
1898
1897
  }
1899
1898
  },
1900
- mantle: {
1901
- viem: mantle,
1902
- status: "active",
1903
- lzEid: 30181,
1904
- contracts: {
1905
- accessManager: "0xfD28f108e95f4D41daAE9dbfFf707D677985998E",
1906
- usdp: "0x9eE1963f05553eF838604Dd39403be21ceF26AA4",
1907
- flashParallel: "0x9e0DCF7a33bBde6689560C5c807dd2a3dF991277"
1908
- }
1909
- },
1910
1899
  linea: {
1911
1900
  viem: linea,
1912
1901
  status: "active",
@@ -2074,7 +2063,6 @@ var VIEM_CHAINS = {
2074
2063
  ink: ink2,
2075
2064
  tac: tac,
2076
2065
  sonic: sonic,
2077
- mantle: mantle,
2078
2066
  linea: linea,
2079
2067
  xlayer: xLayer,
2080
2068
  fraxtal: fraxtal,
@@ -2179,12 +2167,6 @@ var RPC_CONFIG = {
2179
2167
  publicNode: "https://sonic-rpc.publicnode.com",
2180
2168
  drpc: "https://sonic.drpc.org"
2181
2169
  },
2182
- mantle: {
2183
- public: mantle.rpcUrls.default.http[0],
2184
- ankr: "https://rpc.ankr.com/mantle",
2185
- publicNode: "https://mantle-rpc.publicnode.com",
2186
- drpc: "https://mantle.drpc.org"
2187
- },
2188
2170
  linea: {
2189
2171
  public: linea.rpcUrls.default.http[0],
2190
2172
  alchemy: "linea-mainnet",
@@ -12470,9 +12452,9 @@ var envSchema = z.object({
12470
12452
  MCP_MAX_SESSIONS: z.coerce.number().default(500),
12471
12453
  MCP_SESSION_TTL_MS: z.coerce.number().default(10 * 60 * 1e3),
12472
12454
  ALCHEMY_API_KEY: z.string().optional(),
12473
- STAKE_API_URL: z.string().min(1).default("https://parallel-api-v2.vercel.app"),
12455
+ STAKE_API_URL: z.string().min(1).default("https://api.parallel.best"),
12474
12456
  STAKE_API_KEY: z.string().optional(),
12475
- SUPPLY_API_URL: z.string().min(1).default("https://parallel-api-v2.vercel.app"),
12457
+ SUPPLY_API_URL: z.string().min(1).default("https://api.parallel.best"),
12476
12458
  REDIS_URL: z.string().optional()
12477
12459
  });
12478
12460
  var env2 = envSchema.parse(process.env);
@@ -12483,9 +12465,12 @@ async function fetchAllRewards(address) {
12483
12465
  const baseUrl = env2.STAKE_API_URL;
12484
12466
  if (!baseUrl) return null;
12485
12467
  try {
12486
- const res = await fetch(`${baseUrl}/api/stake/rewards/all/${address}`, {
12487
- headers: env2.STAKE_API_KEY ? { "x-api-key": env2.STAKE_API_KEY } : {}
12488
- });
12468
+ const res = await fetchWithTimeout(
12469
+ `${baseUrl}/api/stake/rewards/all/${address}`,
12470
+ {
12471
+ headers: env2.STAKE_API_KEY ? { "x-api-key": env2.STAKE_API_KEY } : {}
12472
+ }
12473
+ );
12489
12474
  if (!res.ok) return null;
12490
12475
  const raw = await res.json();
12491
12476
  return (Array.isArray(raw) ? raw : raw.json) ?? null;
@@ -12671,7 +12656,7 @@ async function fetchEpochMeta() {
12671
12656
  const baseUrl = env2.STAKE_API_URL;
12672
12657
  if (!baseUrl) return null;
12673
12658
  try {
12674
- const res = await fetch(`${baseUrl}/api/stake/epoch/last`, {
12659
+ const res = await fetchWithTimeout(`${baseUrl}/api/stake/epoch/last`, {
12675
12660
  headers: env2.STAKE_API_KEY ? { "x-api-key": env2.STAKE_API_KEY } : {}
12676
12661
  });
12677
12662
  if (!res.ok) return null;
@@ -12732,7 +12717,9 @@ async function fetchPrlCirculatingSupply() {
12732
12717
  const supplyApiUrl = env2.SUPPLY_API_URL;
12733
12718
  if (!supplyApiUrl) return null;
12734
12719
  try {
12735
- const res = await fetch(`${supplyApiUrl}/public/supply/prl/circulating`);
12720
+ const res = await fetchWithTimeout(
12721
+ `${supplyApiUrl}/public/supply/prl/circulating`
12722
+ );
12736
12723
  if (!res.ok) return null;
12737
12724
  return (await res.text()).trim();
12738
12725
  } catch {
@@ -15360,7 +15347,7 @@ function swapCommand() {
15360
15347
 
15361
15348
  // ../mcp-server/package.json
15362
15349
  var package_default2 = {
15363
- version: "1.1.1"};
15350
+ version: "1.2.1"};
15364
15351
 
15365
15352
  // src/commands/version.ts
15366
15353
  function versionCommand() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallel-protocol/cli",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [