-
-
Notifications
You must be signed in to change notification settings - Fork 134
Conversation
…ringController into refactor-typescript
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.
Did a second pass comparing the JS and TS implementations. Looks like there's still one comment from me and @Gudahtt that is outstanding, but other than that this all seems to make sense to me, so nice job. I just found a few more things other than that, mostly minor.
One thing I noticed is that some of the methods that were previously public (but placed in a private section) are now actually private. Is it worth noting these in the PR description?
Hey @mcmire, Thanks for the review, I wasn't able to dedicate time to find the best solution for the unresolved comments,
|
@gantunesr Okay no problem! Thanks for trying. Maybe we can address the |
New dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No new dependency issues detected in pull request Bot CommandsTo ignore an alert, reply with a comment starting with Pull request alert summary
📊 Modified Dependency Overview:
🚮 Removed packages: @metamask/[email protected] |
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.
Noticed some more typecasts in the tests. We should also try to remove those in future PRs. I was curious about one of them, but it isn't blocking. LGTM.
BREAKING: TS Migration
This PR introduces the following changes,
Description
Itemize the changes you have made into the categories below
BREAKING:
addNewKeyring
method now expects an object containing the propertyprivateKeys
of typestring[]
in the case the keyring to be added is a "Simple Keyring".FIXED:
getKeyringForAccount
async
keyword for method returning aPromise
CHANGED:
createNewVaultAndRestore
keyring
is undefined.addNewKeyring
keyring
is undefined.generateRandomMnemonic
doesn't exist in the current keyringexportAccount
exportAccount
doesn't exist in the current keyringsignTransaction
signTransaction
doesn't exist in the current keyringsignMessage
signMessage
doesn't exist in the current keyringsignPersonalMessage
signPersonalMessage
doesn't exist in the current keyringgetEncryptionPublicKey
getEncryptionPublicKey
doesn't exist in the current keyringdecryptMessage
decryptMessage
doesn't exist in the current keyringgetAppKeyAddress
getAppKeyAddress
doesn't exist in the current keyringunlockKeyrings
encryptionKey
data type is not a stringpassword
data type is not a stringgetKeyringForAccount
restoreKeyring
clearKeyrings
newKeyring
Checklist
Issue
Progresses #195