From 94061e0c3efdab5ccadc5b1e726de2fcd510449a Mon Sep 17 00:00:00 2001 From: Danny Skubak Date: Sat, 24 Feb 2018 12:56:18 -0500 Subject: [PATCH] Add Blockscale Beta Node (#1134) --- common/reducers/config/nodes/staticNodes.ts | 7 +++++++ shared/types/node.d.ts | 1 + spec/reducers/config/nodes/staticNodes.spec.ts | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/common/reducers/config/nodes/staticNodes.ts b/common/reducers/config/nodes/staticNodes.ts index b630c8f5..3787a8f4 100644 --- a/common/reducers/config/nodes/staticNodes.ts +++ b/common/reducers/config/nodes/staticNodes.ts @@ -26,6 +26,13 @@ export const INITIAL_STATE: State = { lib: new InfuraNode('https://mainnet.infura.io/mycrypto'), estimateGas: false }, + eth_blockscale: { + network: 'ETH', + isCustom: false, + lib: new RPCNode('https://api.dev.blockscale.net/dev/parity'), + service: 'Blockscale beta', + estimateGas: true + }, rop_infura: { network: 'Ropsten', isCustom: false, diff --git a/shared/types/node.d.ts b/shared/types/node.d.ts index dc30d0bd..6b3618bc 100644 --- a/shared/types/node.d.ts +++ b/shared/types/node.d.ts @@ -35,6 +35,7 @@ declare enum StaticNodeId { ETH_MYCRYPTO = 'eth_mycrypto', ETH_ETHSCAN = 'eth_ethscan', ETH_INFURA = 'eth_infura', + ETH_BLOCKSCALE = 'eth_blockscale', ROP_INFURA = 'rop_infura', KOV_ETHSCAN = 'kov_ethscan', RIN_ETHSCAN = 'rin_ethscan', diff --git a/spec/reducers/config/nodes/staticNodes.spec.ts b/spec/reducers/config/nodes/staticNodes.spec.ts index c51d8d0c..749510bb 100644 --- a/spec/reducers/config/nodes/staticNodes.spec.ts +++ b/spec/reducers/config/nodes/staticNodes.spec.ts @@ -26,6 +26,13 @@ const expectedInitialState = { lib: new InfuraNode('https://mainnet.infura.io/mycrypto'), estimateGas: false }, + eth_blockscale: { + network: 'ETH', + isCustom: false, + lib: new RPCNode('https://api.dev.blockscale.net/dev/parity'), + service: 'Blockscale beta', + estimateGas: true + }, rop_infura: { network: 'Ropsten', isCustom: false,