From 35b1c1cfb50222a1b3c2381c968fc0ff57e77201 Mon Sep 17 00:00:00 2001 From: lumat Date: Tue, 9 Oct 2018 10:58:58 +0200 Subject: [PATCH 1/2] Add Webchain --- app/scripts/abiDefinitions/webAbi.json | 1 + app/scripts/nodes.js | 14 ++++++++++++++ app/scripts/tokens/webTokens.json | 1 + app/styles/etherwallet-custom.less | 18 +++++++++++++++++- 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 app/scripts/abiDefinitions/webAbi.json create mode 100644 app/scripts/tokens/webTokens.json diff --git a/app/scripts/abiDefinitions/webAbi.json b/app/scripts/abiDefinitions/webAbi.json new file mode 100644 index 0000000000..fe51488c70 --- /dev/null +++ b/app/scripts/abiDefinitions/webAbi.json @@ -0,0 +1 @@ +[] diff --git a/app/scripts/nodes.js b/app/scripts/nodes.js index 372e2549a2..6f0a26422d 100644 --- a/app/scripts/nodes.js +++ b/app/scripts/nodes.js @@ -25,6 +25,7 @@ nodes.nodeTypes = { PIRL: "PIRL", ETHO: "ETHO", ATH: "ATH", + WEB: "WEB" Custom: "CUSTOM ETH" }; nodes.ensNodeTypes = [nodes.nodeTypes.ETH, nodes.nodeTypes.Ropsten]; @@ -442,6 +443,19 @@ nodes.nodeList = { estimateGas: true, service: "wallet.atheios.com", lib: new nodes.customNode("https://wallet.atheios.com", "8797") + }, + web: { + name: "WEB", + blockExplorerTX: "https://explorer.webchain.network/tx/[[txHash]]", + blockExplorerAddr: "https://explorer.webchain.network/addr/[[address]]", + type: nodes.nodeTypes.WEB, + eip155: true, + chainId: 101, + tokenList: require("./tokens/webTokens.json"), + abiList: require("./abiDefinitions/webAbi.json"), + estimateGas: true, + service: "node1.webchain.network", + lib: new nodes.customNode("https://node1.webchain.network", "") } }; diff --git a/app/scripts/tokens/webTokens.json b/app/scripts/tokens/webTokens.json new file mode 100644 index 0000000000..fe51488c70 --- /dev/null +++ b/app/scripts/tokens/webTokens.json @@ -0,0 +1 @@ +[] diff --git a/app/styles/etherwallet-custom.less b/app/styles/etherwallet-custom.less index fcdc3398c6..98a4d9d1ad 100644 --- a/app/styles/etherwallet-custom.less +++ b/app/styles/etherwallet-custom.less @@ -609,6 +609,7 @@ label small { @brand-pirl: #a2d729; @brand-etho: #d63068; @brand-ath: #0099ff; +@brand-web: #0092ee; @brand-cust: #b50085; .dropdown-node .dropdown-menu { @@ -690,6 +691,9 @@ label small { li:nth-child(32) { border-left: 2px solid @brand-ath; } + li:nth-child(33) { + border-left: 2px solid @brand-web; + } li:last-child { border-left: 2px solid @gray-light; } @@ -710,7 +714,8 @@ label small { li:nth-child(28), li:nth-child(29), li:nth-child(30), - li:nth-child(31) { + li:nth-child(31), + li:nth-child(32) { border-bottom: 1px solid @gray-lighter; } } @@ -945,6 +950,17 @@ header.ATH { } } +header.WEB { + .header-branding { border-bottom: 0.25rem solid @brand-web; } + & + .container + .pre-footer + .footer { border-top: 0.25rem solid @brand-web; } + & + .container .modal-content { border: 0.25rem solid @brand-web; } + & + .container .alert-info { background-color:@brand-web; } + .dropdown-gas:before { + width: 36px; + background-image: url("../images/coins/webchain.svg"); + } +} + .contest-container { align-content: center; display: flex; From baf20aca656240f22e5c276039882f6f7154f399 Mon Sep 17 00:00:00 2001 From: lumat Date: Wed, 10 Oct 2018 09:30:26 +0200 Subject: [PATCH 2/2] Add Webchain logo --- app/images/coins/webchain.svg | 46 +++++++++++++++++++++++++++++++++++ app/scripts/nodes.js | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 app/images/coins/webchain.svg diff --git a/app/images/coins/webchain.svg b/app/images/coins/webchain.svg new file mode 100644 index 0000000000..f1fcfe982a --- /dev/null +++ b/app/images/coins/webchain.svg @@ -0,0 +1,46 @@ + + + + + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/scripts/nodes.js b/app/scripts/nodes.js index 6f0a26422d..c708c45271 100644 --- a/app/scripts/nodes.js +++ b/app/scripts/nodes.js @@ -25,7 +25,7 @@ nodes.nodeTypes = { PIRL: "PIRL", ETHO: "ETHO", ATH: "ATH", - WEB: "WEB" + WEB: "WEB", Custom: "CUSTOM ETH" }; nodes.ensNodeTypes = [nodes.nodeTypes.ETH, nodes.nodeTypes.Ropsten];