/**
 * MetaMask Developer Workspace Service
 */

import { logger } from '../lib/logger.js'

export class MetaMaskWorkspaceService {
  async provisionRPCEndpoint(chainId: number, networkName: string) {
    logger.info('Provisioning RPC endpoint', { chainId, networkName })
    return {
      rpcUrl: `https://rpc.phoenix.io/${chainId}`,
      chainId,
      networkName,
    }
  }
}

export const metamaskWorkspaceService = new MetaMaskWorkspaceService()

