-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2087 from MyEtherWallet/feature/coolwallet
Feature/coolwallet [v5]
- Loading branch information
Showing
29 changed files
with
873 additions
and
1,047 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"wrong-password": "Wrong password for app registration.", | ||
"card-locked": "Card locked! Please unlock through the app", | ||
"already-registered": "App is already registered! If you're having trouble, please reregister the app by removing it from the wallet app.", | ||
"no-wallet-instance": "No wallet instance!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { ethereum } from './paths'; | ||
export default [ethereum]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Toast } from '@/helpers'; | ||
import Vue from 'vue'; | ||
const ERRORS = { | ||
WrongPassword: 'coolWalletError.wrong-password', | ||
CardLocked: 'coolWalletError.card-locked', | ||
AlreadyRegistered: 'coolWalletError.already-registered', | ||
NoWalletInstance: 'coolWalletError.no-wallet-instance' | ||
}; | ||
const WARNING = {}; | ||
|
||
export default err => { | ||
const errorValues = Object.keys(ERRORS); | ||
const warningValues = Object.keys(WARNING); | ||
const foundError = errorValues.find(item => { | ||
return err.name ? err.name.includes(item) : err.includes(item); | ||
}); | ||
const foundWarning = warningValues.find(item => { | ||
return err.name ? err.name.includes(item) : err.includes(item); | ||
}); | ||
|
||
if (foundError) { | ||
Toast.responseHandler(`${Vue.$i18n.t(ERRORS[foundError])}`, Toast.ERROR); | ||
} else if (foundWarning) { | ||
Toast.responseHandler(`${Vue.$i18n.t(WARNING[foundWarning])}`, Toast.WARN); | ||
} else { | ||
Toast.responseHandler(err, false); | ||
} | ||
}; |
Oops, something went wrong.
2c5981f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy of this build can be found at
https://www.mewbuilds.com/build/2c5981f92c84b45a5140784627f2e25f33a28b93/index.html
https://www.cloudflare-ipfs.com/ipfs/QmbjkRoEoLoVUj2gTSwgFAaswsygU9HzXjfdt3dvK7Hmmv
Virus Total analysis
https://www.virustotal.com/file/401632019768c74c1dc434b8117a5b06c0bf435762a55ac003ca35574796ee68/analysis/1584742831/