UNPKG

@sei-js/mcp-server

Version:

Model Context Protocol (MCP) server for interacting with EVM-compatible networks

23 lines (22 loc) 891 B
import { WalletProviderError } from '../types.js'; /** * Disabled Wallet Provider * Throws errors for all wallet operations when wallet functionality is disabled */ export class DisabledWalletProvider { isAvailable() { return false; } async getAddress() { throw new WalletProviderError('Wallet functionality is disabled. Enable wallet functionality to use this feature.', 'disabled', 'WALLET_DISABLED'); } async signTransaction(tx) { throw new WalletProviderError('Wallet functionality is disabled. Enable wallet functionality to sign transactions.', 'disabled', 'WALLET_DISABLED'); } async getWalletClient(network) { throw new WalletProviderError('Wallet functionality is disabled. Enable wallet functionality to create wallet clients.', 'disabled', 'WALLET_DISABLED'); } getName() { return 'disabled'; } }