UNPKG

starknet-devnet

Version:
29 lines (28 loc) 1.14 kB
import { AxiosInstance } from "axios"; export declare class VersionHandler { static httpProvider: AxiosInstance; static localStoragePath: string; private static getVersionDir; private static getExecutablePath; /** * Ensure that the command corresponding to the provided `version` exists. * @param version semver string with a prepended "v"; * should be available in https://github.com/0xSpaceShard/starknet-devnet/releases * @returns the path to the executable corresponding to the version */ static getExecutable(version: string): Promise<string>; private static getCompatibleArch; private static getCompatiblePlatform; private static getArchivedExecutableUrl; /** * @param url the url of the archived executable * @param versionDir the path to the directory where the archive will be written and extracted * @returns the path where the archive was stored */ private static fetchArchivedExecutable; /** * Extract the content of the archive. * @param archivePath the local path of the archive */ private static extract; }