UNPKG

@wuwei-labs/srsly

Version:
24 lines 861 B
/** * @purpose Fleet account utilities for SRSLY * * Fetches fleet state data from the Star Atlas SAGE program. */ import { type Address } from '@solana/kit'; import { type Fleet } from '../generated/codama/types/fleet'; export type { Fleet }; /** * Fetch fleet state from the Star Atlas SAGE program * * @param fleetAddress - Fleet account address * @param rpcUrl - Optional RPC endpoint URL. If not provided, uses RPC from global config * @returns Decoded fleet data including stats (ShipStats) * @throws Error if fleet account not found or fetch fails * * @example * ```typescript * const fleet = await fetchFleet('FleetAddress...'); * console.log(fleet.ownerProfile, fleet.gameId, fleet.stats); * ``` */ export declare function fetchFleet(fleetAddress: Address | string, rpcUrl?: string): Promise<Fleet>; //# sourceMappingURL=fleet.d.ts.map