From 01ca35036ca11a47f60890e5cae62e46a00f3da8 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Tue, 19 Nov 2019 18:14:40 +0900 Subject: [PATCH] Removing NodesmithProvider from default provider as it is being discontinued. --- packages/networks/src.ts/index.ts | 2 ++ packages/providers/src.ts/nodesmith-provider.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/networks/src.ts/index.ts b/packages/networks/src.ts/index.ts index 1d6d57132..23ddb03f4 100644 --- a/packages/networks/src.ts/index.ts +++ b/packages/networks/src.ts/index.ts @@ -28,11 +28,13 @@ function ethDefaultProvider(network: string): (providers: any) => any { } catch(error) { } } + /* NodeSmith is being discontinued on 2019-12-20 if (providers.NodesmithProvider) { try { providerList.push(new providers.NodesmithProvider(network, options.nodesmith)); } catch(error) { } } + */ if (providers.AlchemyProvider) { try { diff --git a/packages/providers/src.ts/nodesmith-provider.ts b/packages/providers/src.ts/nodesmith-provider.ts index d05a545b3..07b4c315f 100644 --- a/packages/providers/src.ts/nodesmith-provider.ts +++ b/packages/providers/src.ts/nodesmith-provider.ts @@ -20,6 +20,8 @@ export class NodesmithProvider extends UrlJsonRpcProvider { } static getUrl(network: Network, apiKey?: any): string { + logger.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform."); + let host = null; switch (network.name) { case "homestead":