/** * Resolved network configuration for builder-side commands. * * The owner-side commands keep using {@link getEnvConfig} from constants.ts * (a dev/prod host axis) untouched. Builder commands need one resolved * object carrying the chain and every host, selected with `--network`. * mainnet is the default: it is where a person's data and apps live. Paying * is never implied by it; a paid read still stops at exit 4 until `--pay`, * and `--max-fee` caps it. `--network moksha` is the testnet, where fees * are play money. * * `VANA_ENV=dev` swaps in the dev host set (internal use; dev serves the * moksha chain), and there moksha stays the default. */ export type VanaNetworkName = "moksha" | "mainnet"; export declare const VANA_NETWORKS: readonly VanaNetworkName[]; export declare const DEFAULT_NETWORK: VanaNetworkName; export interface ResolvedNetwork { /** Network name as selected. */ name: VanaNetworkName; /** Host set: "dev" only when VANA_ENV=dev (moksha chain, dev hosts). */ env: "dev" | "prod"; /** Vana chain id: 14800 moksha, 1480 mainnet. */ chainId: number; /** Data Gateway base URL (the only address a builder needs). */ gatewayUrl: string; /** Vana Account base URL. */ accountUrl: string; /** Consent / approval app base URL. */ approvalUrl: string; /** Session relay base URL (owner-side flows). */ sessionRelayUrl: string; /** Block explorer base URL. */ explorerUrl: string; /** JSON-RPC endpoint for on-chain calls (escrow depositNative). */ rpcUrl: string; /** DataPortabilityGrantees contract, the EIP-712 verifying contract for * builder registration (same deployment address on both networks). */ granteesContract: string; } export declare class UnknownNetworkError extends Error { readonly value: string; constructor(value: string); } export declare function isVanaNetworkName(value: string): value is VanaNetworkName; /** * Resolve a network selection into hosts and chain. * * @param name - `--network` value; falls back to `VANA_NETWORK`, then * mainnet (moksha under `VANA_ENV=dev`, which has no mainnet hosts). * @param env - process env, injectable for tests. * @throws {UnknownNetworkError} for a name outside {@link VANA_NETWORKS}. */ export declare function resolveNetwork(name?: string, env?: Record): ResolvedNetwork; //# sourceMappingURL=network.d.ts.map