Merge pull request #90 from varasev/kovan-network
(Feature) Add support for the Kovan testnet
This commit is contained in:
commit
cae6121305
|
@ -12567,14 +12567,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
||||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
||||||
},
|
},
|
||||||
"typedarray-to-buffer": {
|
|
||||||
"version": "3.1.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
|
|
||||||
"integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
|
|
||||||
"requires": {
|
|
||||||
"is-typedarray": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ua-parser-js": {
|
"ua-parser-js": {
|
||||||
"version": "0.7.17",
|
"version": "0.7.17",
|
||||||
"resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.17.tgz",
|
"resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.17.tgz",
|
||||||
|
@ -14121,8 +14113,19 @@
|
||||||
"integrity": "sha1-fecPG4Py3jZHZ3IVa+z+9uNRbrM=",
|
"integrity": "sha1-fecPG4Py3jZHZ3IVa+z+9uNRbrM=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"underscore": "1.8.3",
|
"underscore": "1.8.3",
|
||||||
"web3-core-helpers": "1.0.0-beta.34",
|
"web3-core-helpers": "1.0.0-beta.34"
|
||||||
"websocket": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2"
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"websocket": {
|
||||||
|
"version": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2",
|
||||||
|
"from": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2",
|
||||||
|
"requires": {
|
||||||
|
"debug": "^2.2.0",
|
||||||
|
"nan": "^2.3.3",
|
||||||
|
"typedarray-to-buffer": "^3.1.2",
|
||||||
|
"yaeti": "^0.0.6"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"web3-shh": {
|
"web3-shh": {
|
||||||
|
@ -14520,16 +14523,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"websocket": {
|
|
||||||
"version": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2",
|
|
||||||
"from": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",
|
|
||||||
"requires": {
|
|
||||||
"debug": "^2.2.0",
|
|
||||||
"nan": "^2.3.3",
|
|
||||||
"typedarray-to-buffer": "^3.1.2",
|
|
||||||
"yaeti": "^0.0.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"websocket-driver": {
|
"websocket-driver": {
|
||||||
"version": "0.7.0",
|
"version": "0.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz",
|
||||||
|
@ -14781,11 +14774,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz",
|
||||||
"integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE="
|
"integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE="
|
||||||
},
|
},
|
||||||
"yaeti": {
|
|
||||||
"version": "0.0.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",
|
|
||||||
"integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc="
|
|
||||||
},
|
|
||||||
"yallist": {
|
"yallist": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14">
|
||||||
|
<path fill="#8ce1d7" fill-rule="evenodd" d="M13 10a1 1 0 0 1-1-1V2H5a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1zm-3-5v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1zM8 6H2v6h6V6z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 277 B |
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
Binary file not shown.
After Width: | Height: | Size: 217 KiB |
Binary file not shown.
After Width: | Height: | Size: 381 KiB |
|
@ -25,6 +25,12 @@ $sw-ButtonDownload-height: 44px !default;
|
||||||
@include button-shadow($xdai-orange);
|
@include button-shadow($xdai-orange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#{ & }-kovan {
|
||||||
|
background-color: $kovan-cyan;
|
||||||
|
@include button-focus-active-hover($kovan-cyan);
|
||||||
|
@include button-shadow($kovan-cyan);
|
||||||
|
}
|
||||||
|
|
||||||
.ky-Keys_Block & {
|
.ky-Keys_Block & {
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,12 @@ $sw-ButtonGenerate-height: 44px !default;
|
||||||
@include button-shadow($xdai-orange);
|
@include button-shadow($xdai-orange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#{ & }-kovan {
|
||||||
|
background-color: $kovan-cyan;
|
||||||
|
@include button-focus-active-hover($kovan-cyan);
|
||||||
|
@include button-shadow($kovan-cyan);
|
||||||
|
}
|
||||||
|
|
||||||
.hm-Home & {
|
.hm-Home & {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
&#{ & }-dai {
|
&#{ & }-dai {
|
||||||
background-color: $xdai-gray;
|
background-color: $xdai-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#{ & }-kovan {
|
||||||
|
background-color: $kovan-cyan;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sw-Footer_Content {
|
.sw-Footer_Content {
|
||||||
|
|
|
@ -20,6 +20,10 @@
|
||||||
&#{ & }-dai {
|
&#{ & }-dai {
|
||||||
background-color: $xdai-gray;
|
background-color: $xdai-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#{ & }-kovan {
|
||||||
|
background-color: $kovan-cyan;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sw-Header_Content {
|
.sw-Header_Content {
|
||||||
|
|
|
@ -10,6 +10,10 @@ $ky-Keys-gap: 40px;
|
||||||
#{ $property }: $sokol-cyan;
|
#{ $property }: $sokol-cyan;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#{ & }-kovan {
|
||||||
|
#{ $property }: $kovan-cyan;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin keys-color-variants($property) {
|
@mixin keys-color-variants($property) {
|
||||||
|
@ -109,6 +113,10 @@ $ky-Keys-gap: 40px;
|
||||||
background-image: url('#{ $base-images-path }/Keys/dai.svg');
|
background-image: url('#{ $base-images-path }/Keys/dai.svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#{ & }-kovan {
|
||||||
|
background-image: url('#{ $base-images-path }/Keys/kovan.svg');
|
||||||
|
}
|
||||||
|
|
||||||
.ky-Keys_HashContainer & {
|
.ky-Keys_HashContainer & {
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
margin-top: -4px;
|
margin-top: -4px;
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
&#{ & }-dai {
|
&#{ & }-dai {
|
||||||
background-color: rgba($xdai-orange, 0.5);
|
background-color: rgba($xdai-orange, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#{ & }-kovan {
|
||||||
|
background-color: rgba($kovan-cyan, 0.5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ld-Loading_Animation {
|
.ld-Loading_Animation {
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
.sw-LogoKovan {
|
||||||
|
display: block;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
.sw-Header & {
|
||||||
|
height: 30px;
|
||||||
|
width: 178px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sw-Footer & {
|
||||||
|
height: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.sw-LogoKovan_Image {
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
|
@ -28,4 +28,8 @@
|
||||||
&#{ & }-dai {
|
&#{ & }-dai {
|
||||||
@include image-retina('#{ $base-images-path }/MainImage/dai/image', 'png');
|
@include image-retina('#{ $base-images-path }/MainImage/dai/image', 'png');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&#{ & }-kovan {
|
||||||
|
@include image-retina('#{ $base-images-path }/MainImage/kovan/image', 'png');
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@
|
||||||
@import "LogoDai";
|
@import "LogoDai";
|
||||||
@import "LogoPOA";
|
@import "LogoPOA";
|
||||||
@import "LogoSokol";
|
@import "LogoSokol";
|
||||||
|
@import "LogoKovan";
|
||||||
@import "MainImage";
|
@import "MainImage";
|
||||||
@import "SocialIcons";
|
@import "SocialIcons";
|
|
@ -1,6 +1,7 @@
|
||||||
// brand colors
|
// brand colors
|
||||||
$poa-purple: #5a2da5;
|
$poa-purple: #5a2da5;
|
||||||
$sokol-cyan: #8ce1d7;
|
$sokol-cyan: #8ce1d7;
|
||||||
|
$kovan-cyan: #28aca4;
|
||||||
$xdai-orange: #fec042;
|
$xdai-orange: #fec042;
|
||||||
$xdai-gray: #f2f6f8;
|
$xdai-gray: #f2f6f8;
|
||||||
|
|
||||||
|
|
|
@ -658,6 +658,13 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
background-color: #feaf0f; }
|
background-color: #feaf0f; }
|
||||||
.sw-ButtonDownload.sw-ButtonDownload-dai[disabled]:focus, .sw-ButtonDownload.sw-ButtonDownload-dai[disabled].active, .sw-ButtonDownload.sw-ButtonDownload-dai[disabled]:hover {
|
.sw-ButtonDownload.sw-ButtonDownload-dai[disabled]:focus, .sw-ButtonDownload.sw-ButtonDownload-dai[disabled].active, .sw-ButtonDownload.sw-ButtonDownload-dai[disabled]:hover {
|
||||||
background-color: #fec042; }
|
background-color: #fec042; }
|
||||||
|
.sw-ButtonDownload.sw-ButtonDownload-kovan {
|
||||||
|
background-color: #28aca4;
|
||||||
|
box-shadow: 0 5px 10px 0 rgba(40, 172, 164, 0.3); }
|
||||||
|
.sw-ButtonDownload.sw-ButtonDownload-kovan:focus, .sw-ButtonDownload.sw-ButtonDownload-kovan:active, .sw-ButtonDownload.sw-ButtonDownload-kovan:hover {
|
||||||
|
background-color: #1e837d; }
|
||||||
|
.sw-ButtonDownload.sw-ButtonDownload-kovan[disabled]:focus, .sw-ButtonDownload.sw-ButtonDownload-kovan[disabled].active, .sw-ButtonDownload.sw-ButtonDownload-kovan[disabled]:hover {
|
||||||
|
background-color: #28aca4; }
|
||||||
.ky-Keys_Block .sw-ButtonDownload {
|
.ky-Keys_Block .sw-ButtonDownload {
|
||||||
margin-top: auto; }
|
margin-top: auto; }
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
|
@ -722,6 +729,13 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
background-color: #feaf0f; }
|
background-color: #feaf0f; }
|
||||||
.sw-ButtonGenerate.sw-ButtonGenerate-dai[disabled]:focus, .sw-ButtonGenerate.sw-ButtonGenerate-dai[disabled].active, .sw-ButtonGenerate.sw-ButtonGenerate-dai[disabled]:hover {
|
.sw-ButtonGenerate.sw-ButtonGenerate-dai[disabled]:focus, .sw-ButtonGenerate.sw-ButtonGenerate-dai[disabled].active, .sw-ButtonGenerate.sw-ButtonGenerate-dai[disabled]:hover {
|
||||||
background-color: #fec042; }
|
background-color: #fec042; }
|
||||||
|
.sw-ButtonGenerate.sw-ButtonGenerate-kovan {
|
||||||
|
background-color: #28aca4;
|
||||||
|
box-shadow: 0 5px 10px 0 rgba(40, 172, 164, 0.3); }
|
||||||
|
.sw-ButtonGenerate.sw-ButtonGenerate-kovan:focus, .sw-ButtonGenerate.sw-ButtonGenerate-kovan:active, .sw-ButtonGenerate.sw-ButtonGenerate-kovan:hover {
|
||||||
|
background-color: #1e837d; }
|
||||||
|
.sw-ButtonGenerate.sw-ButtonGenerate-kovan[disabled]:focus, .sw-ButtonGenerate.sw-ButtonGenerate-kovan[disabled].active, .sw-ButtonGenerate.sw-ButtonGenerate-kovan[disabled]:hover {
|
||||||
|
background-color: #28aca4; }
|
||||||
.hm-Home .sw-ButtonGenerate {
|
.hm-Home .sw-ButtonGenerate {
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
|
@ -760,6 +774,8 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
background-color: #8ce1d7; }
|
background-color: #8ce1d7; }
|
||||||
.sw-Footer.sw-Footer-dai {
|
.sw-Footer.sw-Footer-dai {
|
||||||
background-color: #f2f6f8; }
|
background-color: #f2f6f8; }
|
||||||
|
.sw-Footer.sw-Footer-kovan {
|
||||||
|
background-color: #28aca4; }
|
||||||
|
|
||||||
.sw-Footer_Content {
|
.sw-Footer_Content {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -814,6 +830,8 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
background-color: #8ce1d7; }
|
background-color: #8ce1d7; }
|
||||||
.sw-Header.sw-Header-dai {
|
.sw-Header.sw-Header-dai {
|
||||||
background-color: #f2f6f8; }
|
background-color: #f2f6f8; }
|
||||||
|
.sw-Header.sw-Header-kovan {
|
||||||
|
background-color: #28aca4; }
|
||||||
|
|
||||||
.sw-Header_Content {
|
.sw-Header_Content {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -935,6 +953,8 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
border-color: #5a2da5; }
|
border-color: #5a2da5; }
|
||||||
.ky-Keys_Block.ky-Keys_Block-sokol {
|
.ky-Keys_Block.ky-Keys_Block-sokol {
|
||||||
border-color: #8ce1d7; }
|
border-color: #8ce1d7; }
|
||||||
|
.ky-Keys_Block.ky-Keys_Block-kovan {
|
||||||
|
border-color: #28aca4; }
|
||||||
|
|
||||||
.ky-Keys_BlockTitle {
|
.ky-Keys_BlockTitle {
|
||||||
color: #333;
|
color: #333;
|
||||||
|
@ -947,6 +967,8 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
color: #5a2da5; }
|
color: #5a2da5; }
|
||||||
.ky-Keys_BlockTitle.ky-Keys_BlockTitle-sokol {
|
.ky-Keys_BlockTitle.ky-Keys_BlockTitle-sokol {
|
||||||
color: #8ce1d7; }
|
color: #8ce1d7; }
|
||||||
|
.ky-Keys_BlockTitle.ky-Keys_BlockTitle-kovan {
|
||||||
|
color: #28aca4; }
|
||||||
.ky-Keys_BlockTitle.ky-Keys_BlockTitle-dai {
|
.ky-Keys_BlockTitle.ky-Keys_BlockTitle-dai {
|
||||||
color: #333; }
|
color: #333; }
|
||||||
|
|
||||||
|
@ -966,6 +988,8 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
color: #5a2da5; }
|
color: #5a2da5; }
|
||||||
.ky-Keys_Hash.ky-Keys_Hash-sokol {
|
.ky-Keys_Hash.ky-Keys_Hash-sokol {
|
||||||
color: #8ce1d7; }
|
color: #8ce1d7; }
|
||||||
|
.ky-Keys_Hash.ky-Keys_Hash-kovan {
|
||||||
|
color: #28aca4; }
|
||||||
.ky-Keys_Hash.ky-Keys_Hash-dai {
|
.ky-Keys_Hash.ky-Keys_Hash-dai {
|
||||||
color: #333; }
|
color: #333; }
|
||||||
|
|
||||||
|
@ -983,6 +1007,8 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
background-image: url("../../assets/images/Keys/sokol.svg"); }
|
background-image: url("../../assets/images/Keys/sokol.svg"); }
|
||||||
.ky-Keys_Copy.ky-Keys_Copy-dai {
|
.ky-Keys_Copy.ky-Keys_Copy-dai {
|
||||||
background-image: url("../../assets/images/Keys/dai.svg"); }
|
background-image: url("../../assets/images/Keys/dai.svg"); }
|
||||||
|
.ky-Keys_Copy.ky-Keys_Copy-kovan {
|
||||||
|
background-image: url("../../assets/images/Keys/kovan.svg"); }
|
||||||
.ky-Keys_HashContainer .ky-Keys_Copy {
|
.ky-Keys_HashContainer .ky-Keys_Copy {
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
margin-top: -4px; }
|
margin-top: -4px; }
|
||||||
|
@ -1033,6 +1059,8 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
color: #5a2da5; }
|
color: #5a2da5; }
|
||||||
.ky-Keys_Warning.ky-Keys_Warning-sokol {
|
.ky-Keys_Warning.ky-Keys_Warning-sokol {
|
||||||
color: #8ce1d7; }
|
color: #8ce1d7; }
|
||||||
|
.ky-Keys_Warning.ky-Keys_Warning-kovan {
|
||||||
|
color: #28aca4; }
|
||||||
.ky-Keys_Warning.ky-Keys_Warning-dai {
|
.ky-Keys_Warning.ky-Keys_Warning-dai {
|
||||||
color: #333; }
|
color: #333; }
|
||||||
|
|
||||||
|
@ -1047,6 +1075,9 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
.ky-Keys_WarningIconPath.ky-Keys_WarningIconPath-sokol {
|
.ky-Keys_WarningIconPath.ky-Keys_WarningIconPath-sokol {
|
||||||
fill: #8ce1d7; }
|
fill: #8ce1d7; }
|
||||||
|
|
||||||
|
.ky-Keys_WarningIconPath.ky-Keys_WarningIconPath-kovan {
|
||||||
|
fill: #28aca4; }
|
||||||
|
|
||||||
.ky-Keys_WarningIconPath.ky-Keys_WarningIconPath-dai {
|
.ky-Keys_WarningIconPath.ky-Keys_WarningIconPath-dai {
|
||||||
fill: #fec042; }
|
fill: #fec042; }
|
||||||
|
|
||||||
|
@ -1068,6 +1099,8 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
background-color: rgba(140, 225, 215, 0.5); }
|
background-color: rgba(140, 225, 215, 0.5); }
|
||||||
.ld-Loading.ld-Loading-dai {
|
.ld-Loading.ld-Loading-dai {
|
||||||
background-color: rgba(254, 192, 66, 0.5); }
|
background-color: rgba(254, 192, 66, 0.5); }
|
||||||
|
.ld-Loading.ld-Loading-kovan {
|
||||||
|
background-color: rgba(40, 172, 164, 0.5); }
|
||||||
|
|
||||||
.ld-Loading_Animation {
|
.ld-Loading_Animation {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1152,6 +1185,20 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
|
.sw-LogoKovan {
|
||||||
|
display: block;
|
||||||
|
text-decoration: none; }
|
||||||
|
.sw-Header .sw-LogoKovan {
|
||||||
|
height: 30px;
|
||||||
|
width: 178px; }
|
||||||
|
.sw-Footer .sw-LogoKovan {
|
||||||
|
height: 26px; }
|
||||||
|
|
||||||
|
.sw-LogoKovan_Image {
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%; }
|
||||||
|
|
||||||
.hm-MainImage {
|
.hm-MainImage {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1202,6 +1249,14 @@ body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
||||||
@media (-webkit-min-device-pixel-ratio: 3), (-moz-min-device-pixel-ratio: 3), (min-resolution: 288dpi), (min-resolution: 3dppx) {
|
@media (-webkit-min-device-pixel-ratio: 3), (-moz-min-device-pixel-ratio: 3), (min-resolution: 288dpi), (min-resolution: 3dppx) {
|
||||||
.hm-MainImage_Img.hm-MainImage_Img-dai {
|
.hm-MainImage_Img.hm-MainImage_Img-dai {
|
||||||
background-image: url("../../assets/images/MainImage/dai/image@3x.png"); } }
|
background-image: url("../../assets/images/MainImage/dai/image@3x.png"); } }
|
||||||
|
.hm-MainImage_Img.hm-MainImage_Img-kovan {
|
||||||
|
background-image: url("../../assets/images/MainImage/kovan/image.png"); }
|
||||||
|
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
|
||||||
|
.hm-MainImage_Img.hm-MainImage_Img-kovan {
|
||||||
|
background-image: url("../../assets/images/MainImage/kovan/image@2x.png"); } }
|
||||||
|
@media (-webkit-min-device-pixel-ratio: 3), (-moz-min-device-pixel-ratio: 3), (min-resolution: 288dpi), (min-resolution: 3dppx) {
|
||||||
|
.hm-MainImage_Img.hm-MainImage_Img-kovan {
|
||||||
|
background-image: url("../../assets/images/MainImage/kovan/image@3x.png"); } }
|
||||||
|
|
||||||
.ft-SocialIcons {
|
.ft-SocialIcons {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -2,12 +2,14 @@ import React from 'react'
|
||||||
import xDaiLogo from './xdai.svg'
|
import xDaiLogo from './xdai.svg'
|
||||||
import poaLogo from './core.svg'
|
import poaLogo from './core.svg'
|
||||||
import sokolLogo from './sokol.svg'
|
import sokolLogo from './sokol.svg'
|
||||||
|
import kovanLogo from './kovan.svg'
|
||||||
|
|
||||||
const getLogoSrc = networkBranch => {
|
const getLogoSrc = networkBranch => {
|
||||||
return (
|
return (
|
||||||
{
|
{
|
||||||
core: poaLogo,
|
core: poaLogo,
|
||||||
sokol: sokolLogo,
|
sokol: sokolLogo,
|
||||||
|
kovan: kovanLogo,
|
||||||
dai: xDaiLogo
|
dai: xDaiLogo
|
||||||
}[networkBranch] || poaLogo
|
}[networkBranch] || poaLogo
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="127" height="150">
|
||||||
|
<path fill="#FFF" fill-rule="evenodd" d="M99.219 134.21l11.906 11.842V150h-95.25v-3.948l11.906-11.842C12.7 134.21 0 121.579 0 106.579v-75C0 3.948 28.575 0 63.5 0S127 3.948 127 31.579v75c0 15-12.7 27.631-27.781 27.631zM28.5 115c6.351 0 11.5-5.149 11.5-11.5S34.851 92 28.5 92 17 97.149 17 103.5 22.149 115 28.5 115zM57 29H17v40h40V29zm52 0H69v40h40V29zM97.5 92C91.149 92 86 97.149 86 103.5S91.149 115 97.5 115s11.5-5.149 11.5-11.5S103.851 92 97.5 92z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 529 B |
|
@ -1,14 +1,16 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { LogoPOA } from '../LogoPOA'
|
import { LogoPOA } from '../LogoPOA'
|
||||||
import { LogoSokol } from '../LogoSokol'
|
import { LogoSokol } from '../LogoSokol'
|
||||||
|
import { LogoKovan } from '../LogoKovan'
|
||||||
import { LogoDai } from '../LogoDai'
|
import { LogoDai } from '../LogoDai'
|
||||||
|
|
||||||
export const Logo = ({ href = null, extraClass = '', networkBranch = '' }) => {
|
export const Logo = ({ href = null, extraClass = '', networkBranch = '' }) => {
|
||||||
switch (networkBranch) {
|
switch (networkBranch) {
|
||||||
case 'sokol':
|
case 'sokol':
|
||||||
return <LogoSokol href={href} extraClass={extraClass} />
|
return <LogoSokol href={href} extraClass={extraClass} />
|
||||||
|
case 'kovan':
|
||||||
|
return <LogoKovan href={href} extraClass={extraClass} />
|
||||||
case 'dai':
|
case 'dai':
|
||||||
case 'dai-test':
|
|
||||||
return <LogoDai href={href} extraClass={extraClass} />
|
return <LogoDai href={href} extraClass={extraClass} />
|
||||||
case 'poa':
|
case 'poa':
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import logoSokol from './logo.svg'
|
import logoDai from './logo.svg'
|
||||||
|
|
||||||
export const LogoDai = ({ href = null, extraClass = '' }) => {
|
export const LogoDai = ({ href = null, extraClass = '' }) => {
|
||||||
return (
|
return (
|
||||||
<a href={href} className={`sw-LogoDai ${extraClass}`}>
|
<a href={href} className={`sw-LogoDai ${extraClass}`}>
|
||||||
<img className="sw-LogoDai_Image" src={logoSokol} alt="" />
|
<img className="sw-LogoDai_Image" src={logoDai} alt="" />
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
import React from 'react'
|
||||||
|
import logoKovan from './logo.svg'
|
||||||
|
|
||||||
|
export const LogoKovan = ({ href = null, extraClass = '' }) => {
|
||||||
|
return (
|
||||||
|
<a href={href} className={`sw-LogoKovan ${extraClass}`}>
|
||||||
|
<img className="sw-LogoKovan_Image" src={logoKovan} alt="" />
|
||||||
|
</a>
|
||||||
|
)
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.9 KiB |
|
@ -9,7 +9,8 @@ const getIconBackgroundColor = networkBranch => {
|
||||||
{
|
{
|
||||||
dai: '#e3e7e9',
|
dai: '#e3e7e9',
|
||||||
poa: '#fff',
|
poa: '#fff',
|
||||||
sokol: '#fff'
|
sokol: '#fff',
|
||||||
|
kovan: '#fff'
|
||||||
}[networkBranch] || '#fff'
|
}[networkBranch] || '#fff'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -19,7 +20,8 @@ const getIconColor = networkBranch => {
|
||||||
{
|
{
|
||||||
dai: '#333',
|
dai: '#333',
|
||||||
poa: '#5c34a2',
|
poa: '#5c34a2',
|
||||||
sokol: '#6ac9b9'
|
sokol: '#6ac9b9',
|
||||||
|
kovan: '#6ac9b9'
|
||||||
}[networkBranch] || '#5c34a2'
|
}[networkBranch] || '#5c34a2'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,11 @@ constants.userDeniedTransactionPattern = 'User denied transaction'
|
||||||
constants.baseURL = '/poa-dapps-keys-generation'
|
constants.baseURL = '/poa-dapps-keys-generation'
|
||||||
|
|
||||||
constants.NETWORKS = {
|
constants.NETWORKS = {
|
||||||
|
'42': {
|
||||||
|
NAME: 'Kovan',
|
||||||
|
BRANCH: 'kovan',
|
||||||
|
TESTNET: true
|
||||||
|
},
|
||||||
'77': {
|
'77': {
|
||||||
NAME: 'Sokol',
|
NAME: 'Sokol',
|
||||||
BRANCH: 'sokol',
|
BRANCH: 'sokol',
|
||||||
|
@ -20,11 +25,6 @@ constants.NETWORKS = {
|
||||||
BRANCH: 'core',
|
BRANCH: 'core',
|
||||||
TESTNET: false
|
TESTNET: false
|
||||||
},
|
},
|
||||||
'79': {
|
|
||||||
NAME: 'Dai-Test',
|
|
||||||
BRANCH: 'dai-test',
|
|
||||||
TESTNET: true
|
|
||||||
},
|
|
||||||
'100': {
|
'100': {
|
||||||
NAME: 'Dai',
|
NAME: 'Dai',
|
||||||
BRANCH: 'dai',
|
BRANCH: 'dai',
|
||||||
|
|
|
@ -12,7 +12,7 @@ export default class KeysManager {
|
||||||
this.instance = new web3.eth.Contract(KeysManagerAbi, KEYS_MANAGER_ADDRESS)
|
this.instance = new web3.eth.Contract(KeysManagerAbi, KEYS_MANAGER_ADDRESS)
|
||||||
|
|
||||||
const networkName = constants.NETWORKS[netId].NAME.toLowerCase()
|
const networkName = constants.NETWORKS[netId].NAME.toLowerCase()
|
||||||
if (networkName === 'dai-test' || networkName === 'dai') {
|
if (networkName === 'dai') {
|
||||||
this.gasPrice = web3.utils.toWei('0', 'gwei')
|
this.gasPrice = web3.utils.toWei('0', 'gwei')
|
||||||
} else {
|
} else {
|
||||||
this.gasPrice = web3.utils.toWei('2', 'gwei')
|
this.gasPrice = web3.utils.toWei('2', 'gwei')
|
||||||
|
|
Loading…
Reference in New Issue