/** * @name tools/adrena/adrena-helpers * @description Shared helpers, constants, and JSON schema types for Adrena tool modules. * * @module tools/adrena/adrena-helpers */ import { PublicKey, Connection } from '@solana/web3.js'; import type { SapMcpContext } from '../../../core/src/types.js'; export interface JsonSchemaProperty { readonly type: string; readonly description: string; readonly enum?: readonly string[]; readonly minimum?: number; readonly maximum?: number; } export interface JsonSchema { readonly type: 'object'; readonly properties: Record; readonly required?: readonly string[]; readonly additionalProperties?: boolean; } /** Supported principal tokens for the main pool. */ export declare const MAIN_POOL_TOKENS: readonly ["JITOSOL", "WBTC", "BONK"]; /** Supported commodity tokens. */ export declare const COMMODITY_TOKENS: readonly ["XAU", "XAG", "WTI"]; /** Supported collateral tokens. */ export declare const COLLATERAL_TOKENS: readonly ["USDC", "JITOSOL", "WBTC", "BONK"]; /** * Convert a human-readable price to Adrena raw price (10^10 scaling). * @param priceUsd — Price in USD. * @returns Raw price as bigint. */ export declare function priceToRaw(priceUsd: number): bigint; /** * Get the connection from context. * @param context — SAP MCP context. * @returns Solana connection. */ export declare function getConnection(context: SapMcpContext): Connection; /** * Parse and validate a public key. * @param value — Base58 public key string. * @returns PublicKey or throws. */ export declare function parsePublicKey(value: string): PublicKey; //# sourceMappingURL=adrena-helpers.d.ts.map