Skip to main content
Glama
ledger.ts712 B
// Mock for @midnight-ntwrk/ledger package export const nativeToken = jest.fn(() => 'native-token-id'); // Add other ledger-related exports as needed export const getTokenInfo = jest.fn(() => ({ id: 'native-token-id', name: 'Native Token', symbol: 'NT', decimals: 6 })); export const validateAddress = jest.fn((address: string) => address.startsWith('mdnt1')); export const formatAmount = jest.fn((amount: string, decimals: number = 6) => { const num = parseFloat(amount); return (num / Math.pow(10, decimals)).toFixed(6); }); export const parseAmount = jest.fn((amount: string, decimals: number = 6) => { const num = parseFloat(amount); return (num * Math.pow(10, decimals)).toString(); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/evilpixi/pixi-midnight-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server