UNPKG

@ganache/ethereum-options

Version:
38 lines 1.86 kB
import { ChainConfig } from "./chain-options"; import { DatabaseConfig } from "./database-options"; import { LoggingConfig } from "./logging-options"; import { MinerConfig } from "./miner-options"; import { WalletConfig } from "./wallet-options"; import { ForkConfig } from "./fork-options"; import { Base, Defaults, ExternalConfig, InternalConfig, Legacy, LegacyOptions, OptionName, OptionRawType, OptionsConfig } from "@ganache/options"; import { UnionToIntersection } from "./helper-types"; type EthereumConfig = { chain: ChainConfig; database: DatabaseConfig; logging: LoggingConfig; miner: MinerConfig; wallet: WalletConfig; fork: ForkConfig; }; type MakeLegacyOptions<C extends Base.Config> = UnionToIntersection<{ [K in OptionName<C>]: K extends LegacyOptions<C> ? Legacy<C, K> : Record<K, OptionRawType<C, K>>; }[OptionName<C>]>; export type EthereumLegacyProviderOptions = Partial<MakeLegacyOptions<ChainConfig> & MakeLegacyOptions<DatabaseConfig> & MakeLegacyOptions<LoggingConfig> & MakeLegacyOptions<MinerConfig> & MakeLegacyOptions<WalletConfig> & MakeLegacyOptions<ForkConfig>>; export type EthereumProviderOptions = Partial<{ [K in keyof EthereumConfig]: ExternalConfig<EthereumConfig[K]>; }>; export type EthereumInternalOptions = { [K in keyof EthereumConfig]: InternalConfig<EthereumConfig[K]>; }; export type EthereumDefaults = Defaults<EthereumConfig>; export declare const EthereumDefaults: EthereumDefaults; export type EthereumOptionsConfig = OptionsConfig<EthereumConfig>; export declare const EthereumOptionsConfig: EthereumOptionsConfig; export * from "./chain-options"; export * from "./database-options"; export * from "./helpers"; export * from "./logging-options"; export * from "./miner-options"; export * from "./wallet-options"; export * from "./fork-options"; //# sourceMappingURL=index.d.ts.map