import "hardhat/types/config"; import type { TargetVM } from "./types"; declare module "hardhat/types/config" { interface HardhatNetworkUserConfig { polkadot?: boolean | TargetVM; nodeConfig?: { useAnvil?: boolean; nodeBinaryPath?: string; rpcPort?: number; dev?: boolean; consensus?: { seal?: "Instant" | "Manual" | "None"; period?: string | number; }; }; adapterConfig?: { adapterBinaryPath?: string; adapterPort?: number; dev?: boolean; buildBlockMode?: "Instant" | "Manual" | "Batch"; }; /** * Use `nodeConfig` and `adapterConfig` via Docker instead of local * binaries (`nodeBinaryPath` and `adapterBinaryPath`) - default: false * * - true: uses default sockets paths "/var/run/docker.sock" or "~/.docker/run/docker.sock" * - string: custom socket path * - false: disable */ docker?: boolean | string; } interface HttpNetworkUserConfig { polkadot?: boolean | TargetVM; } interface HardhatNetworkConfig { polkadot?: boolean | TargetVM; url?: string; polkadotUrl?: string; } interface HttpNetworkConfig { polkadot?: boolean | TargetVM; ethNetwork?: string; polkadotUrl?: string; } } declare module "hardhat/types/runtime" { interface Network { polkadot?: boolean | TargetVM; } }