From 47ab519fe9e58ab36d549e010caf86bef2aa8840 Mon Sep 17 00:00:00 2001 From: kimmyeonghun Date: Tue, 29 May 2018 19:27:48 +0900 Subject: [PATCH] TREZOR/Ledger support for EtherSocial Network (ESN) --- app/scripts/controllers/decryptWalletCtrl.js | 7 +++++++ app/scripts/directives/walletDecryptDrtv.html | 20 ++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/app/scripts/controllers/decryptWalletCtrl.js b/app/scripts/controllers/decryptWalletCtrl.js index caf4f82437..fdc80b2188 100644 --- a/app/scripts/controllers/decryptWalletCtrl.js +++ b/app/scripts/controllers/decryptWalletCtrl.js @@ -33,6 +33,7 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { singularDTVPath: "m/0'/0'/0'", // first address: m/0'/0'/0'/0 goPath: "m/44'/6060'/0'/0", // first address: m/44'/6060'/0'/0/0 hwEOSClassicPath: "m/44'/2018'/0'/0", // first address: m/44'/2018'/0'/0/0 + hwESNetworkPath: "m/44'/31102'/0'/0", // first address: m/44'/31102'/0'/0/0 }; $scope.HDWallet.dPath = $scope.HDWallet.defaultDPath; $scope.mnemonicModel = new Modal(document.getElementById('mnemonicModel')); @@ -108,6 +109,9 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { case nodes.nodeTypes.EOSC: $scope.HDWallet.dPath = $scope.HDWallet.hwEOSClassicPath; break; + case nodes.nodeTypes.ESN: + $scope.HDWallet.dPath = $scope.HDWallet.hwESNetworkPath; + break; default: $scope.HDWallet.dPath = $scope.HDWallet.trezorPath; } @@ -149,6 +153,9 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { case nodes.nodeTypes.EOSC: $scope.HDWallet.dPath = $scope.HDWallet.hwEOSClassicPath; break; + case nodes.nodeTypes.ESN: + $scope.HDWallet.dPath = $scope.HDWallet.hwESNetworkPath; + break; default: $scope.HDWallet.dPath = $scope.HDWallet.defaultDPath; } diff --git a/app/scripts/directives/walletDecryptDrtv.html b/app/scripts/directives/walletDecryptDrtv.html index ecefb6f2d8..e1b90bde19 100644 --- a/app/scripts/directives/walletDecryptDrtv.html +++ b/app/scripts/directives/walletDecryptDrtv.html @@ -35,7 +35,7 @@