UNPKG

uniderp-mcp

Version:

> A plug-and-play MCP tool server to **send ETH**, **transfer ERC-20 tokens**, **deploy tokens**, and **interact with smart contracts** on the **UNICHAIN** — built for **Claude Desktop**, **AI agents**, and **developers.**

19 lines (18 loc) 663 B
import { NativeCurrency } from "@uniswap/sdk-core"; import { WRAPPED_NATIVE_CURRENCY } from "@uniswap/smart-order-router"; import { unichainSepolia } from "viem/chains"; export const supportedChain = unichainSepolia; // export const supportedChain = unichain; // export const supportedChain = sepolia; export class ChainNativeCurrency extends NativeCurrency { equals(other) { return other.isNative && other.chainId === this.chainId; } get wrapped() { const wrapped = WRAPPED_NATIVE_CURRENCY[supportedChain.id]; return wrapped; } constructor() { super(supportedChain.id, 18, "ETH", supportedChain.name); } }