aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-21 02:18:58 +0800
committerDan <danjm.com@gmail.com>2018-04-21 02:18:58 +0800
commit69920045e9d2392b01041532a3dfe7f33493a594 (patch)
tree10d66ece26cc4ebc1191aa291050c30a6742e8b4 /app/scripts/lib
parent3ec22dc7e1676f5679bc33d8b5f314c890e28b8a (diff)
downloadtangerine-wallet-browser-69920045e9d2392b01041532a3dfe7f33493a594.tar
tangerine-wallet-browser-69920045e9d2392b01041532a3dfe7f33493a594.tar.gz
tangerine-wallet-browser-69920045e9d2392b01041532a3dfe7f33493a594.tar.bz2
tangerine-wallet-browser-69920045e9d2392b01041532a3dfe7f33493a594.tar.lz
tangerine-wallet-browser-69920045e9d2392b01041532a3dfe7f33493a594.tar.xz
tangerine-wallet-browser-69920045e9d2392b01041532a3dfe7f33493a594.tar.zst
tangerine-wallet-browser-69920045e9d2392b01041532a3dfe7f33493a594.zip
Minor fixes in a number of docs.
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/account-tracker.js6
-rw-r--r--app/scripts/lib/extractEthjsErrorMessage.js2
-rw-r--r--app/scripts/lib/message-manager.js8
-rw-r--r--app/scripts/lib/personal-message-manager.js7
-rw-r--r--app/scripts/lib/typed-message-manager.js8
5 files changed, 15 insertions, 16 deletions
diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js
index 1b707b2bb..0f7b3d865 100644
--- a/app/scripts/lib/account-tracker.js
+++ b/app/scripts/lib/account-tracker.js
@@ -57,7 +57,7 @@ class AccountTracker extends EventEmitter {
* AccountTracker.
*
* Once this AccountTracker's accounts are up to date with those referenced by the passed addresses, each
- * of these accounts are given an updated balance via Ethquery.
+ * of these accounts are given an updated balance via EthQuery.
*
* @param {array} address The array of hex addresses for accounts with which this AccountTracker's accounts should be
* in sync
@@ -119,7 +119,7 @@ class AccountTracker extends EventEmitter {
*
* @private
* @param {object} block Data about the block that contains the data to update to.
- * @fires 'block' The updated state, if all account updates are successfull
+ * @fires 'block' The updated state, if all account updates are successful
*
*/
_updateForBlock (block) {
@@ -139,7 +139,7 @@ class AccountTracker extends EventEmitter {
/**
* Calls this._updateAccount for each account in this.store
*
- * @param {Function} cb A callback to pass to this._updateAccount, called after each account is succesfully updated
+ * @param {Function} cb A callback to pass to this._updateAccount, called after each account is successfully updated
*
*/
_updateAccounts (cb = noop) {
diff --git a/app/scripts/lib/extractEthjsErrorMessage.js b/app/scripts/lib/extractEthjsErrorMessage.js
index 3f0fb0232..0f100756f 100644
--- a/app/scripts/lib/extractEthjsErrorMessage.js
+++ b/app/scripts/lib/extractEthjsErrorMessage.js
@@ -5,7 +5,7 @@ module.exports = extractEthjsErrorMessage
/**
- * Extracts the important part of an ethjs-rpc error message. If the passed error is not anis isEthjsRpcError, the error
+ * Extracts the important part of an ethjs-rpc error message. If the passed error is not an isEthjsRpcError, the error
* is returned unchanged.
*
* @param {string} errorMessage The error message to parse
diff --git a/app/scripts/lib/message-manager.js b/app/scripts/lib/message-manager.js
index 52b897720..0756dbaed 100644
--- a/app/scripts/lib/message-manager.js
+++ b/app/scripts/lib/message-manager.js
@@ -20,7 +20,7 @@ var msgData = {
* @typedef {Object} Message
* @property {number} id An id to track and identify the message object
* @property {object} msgParams The parameters to pass to the eth_sign method once the signature request is approved.
- * @property {object} msgParams.metamaskId Added to msgParams for tracking and identification within Metamask.
+ * @property {object} msgParams.metamaskId Added to msgParams for tracking and identification within MetaMask.
* @property {string} msgParams.data A hex string conversion of the raw buffer data of the signature request
* @property {number} time The epoch time at which the this message was created
* @property {string} status Indicates whether the signature request is 'unapproved', 'approved', 'signed' or 'rejected'
@@ -36,7 +36,7 @@ module.exports = class MessageManager extends EventEmitter {
*
* @typedef {Object} MessageManager
* @param {object} opts @deprecated
- * @property {object} memStore The observable store where Messages are saved with persistance.
+ * @property {object} memStore The observable store where Messages are saved.
* @property {object} memStore.unapprovedMsgs A collection of all Messages in the 'unapproved' state
* @property {number} memStore.unapprovedMsgCount The count of all Messages in this.memStore.unapprobedMsgs
* @property {array} messages Holds all messages that have been created by this MessageManager
@@ -126,8 +126,8 @@ module.exports = class MessageManager extends EventEmitter {
* Approves a Message. Sets the message status via a call to this.setMsgStatusApproved, and returns a promise with
* any the message params modified for proper signing.
*
- * @param {object} msgParams The msgParams to be used when eth_sign is called, plus data added by Metamask.
- * @param {object} msgParams.metamaskId Added to msgParams for tracking and identification within Metamask.
+ * @param {object} msgParams The msgParams to be used when eth_sign is called, plus data added by MetaMask.
+ * @param {object} msgParams.metamaskId Added to msgParams for tracking and identification within MetaMask.
* @returns {Promise<object>} Promises the msgParams object with metamaskId removed.
*
*/
diff --git a/app/scripts/lib/personal-message-manager.js b/app/scripts/lib/personal-message-manager.js
index 4f19876db..825c69f46 100644
--- a/app/scripts/lib/personal-message-manager.js
+++ b/app/scripts/lib/personal-message-manager.js
@@ -3,7 +3,6 @@ const ObservableStore = require('obs-store')
const ethUtil = require('ethereumjs-util')
const createId = require('./random-id')
const hexRe = /^[0-9A-Fa-f]+$/g
-const log = require('loglevel')
/**
* Represents, and contains data about, an 'personal_sign' type signature request. These are created when a
@@ -15,7 +14,7 @@ const log = require('loglevel')
* @property {number} id An id to track and identify the message object
* @property {object} msgParams The parameters to pass to the personal_sign method once the signature request is
* approved.
- * @property {object} msgParams.metamaskId Added to msgParams for tracking and identification within Metamask.
+ * @property {object} msgParams.metamaskId Added to msgParams for tracking and identification within MetaMask.
* @property {string} msgParams.data A hex string conversion of the raw buffer data of the signature request
* @property {number} time The epoch time at which the this message was created
* @property {string} status Indicates whether the signature request is 'unapproved', 'approved', 'signed' or 'rejected'
@@ -124,8 +123,8 @@ module.exports = class PersonalMessageManager extends EventEmitter {
* Approves a PersonalMessage. Sets the message status via a call to this.setMsgStatusApproved, and returns a promise
* with any the message params modified for proper signing.
*
- * @param {object} msgParams The msgParams to be used when eth_sign is called, plus data added by Metamask.
- * @param {object} msgParams.metamaskId Added to msgParams for tracking and identification within Metamask.
+ * @param {object} msgParams The msgParams to be used when eth_sign is called, plus data added by MetaMask.
+ * @param {object} msgParams.metamaskId Added to msgParams for tracking and identification within MetaMask.
* @returns {Promise<object>} Promises the msgParams object with metamaskId removed.
*
*/
diff --git a/app/scripts/lib/typed-message-manager.js b/app/scripts/lib/typed-message-manager.js
index 367c6ecb9..10fa5c2f5 100644
--- a/app/scripts/lib/typed-message-manager.js
+++ b/app/scripts/lib/typed-message-manager.js
@@ -15,7 +15,7 @@ const log = require('loglevel')
* @property {number} id An id to track and identify the message object
* @property {object} msgParams The parameters to pass to the eth_signTypedData method once the signature request is
* approved.
- * @property {object} msgParams.metamaskId Added to msgParams for tracking and identification within Metamask.
+ * @property {object} msgParams.metamaskId Added to msgParams for tracking and identification within MetaMask.
* @property {object} msgParams.from The address that is making the signature request.
* @property {string} msgParams.data A hex string conversion of the raw buffer data of the signature request
* @property {number} time The epoch time at which the this message was created
@@ -31,7 +31,7 @@ module.exports = class TypedMessageManager extends EventEmitter {
*
* @typedef {Object} TypedMessage
* @param {object} opts @deprecated
- * @property {object} memStore The observable store where TypedMessage are saved with persistance.
+ * @property {object} memStore The observable store where TypedMessage are saved.
* @property {object} memStore.unapprovedTypedMessages A collection of all TypedMessages in the 'unapproved' state
* @property {number} memStore.unapprovedTypedMessagesCount The count of all TypedMessages in this.memStore.unapprobedMsgs
* @property {array} messages Holds all messages that have been created by this TypedMessage
@@ -143,8 +143,8 @@ module.exports = class TypedMessageManager extends EventEmitter {
* Approves a TypedMessage. Sets the message status via a call to this.setMsgStatusApproved, and returns a promise
* with any the message params modified for proper signing.
*
- * @param {object} msgParams The msgParams to be used when eth_sign is called, plus data added by Metamask.
- * @param {object} msgParams.metamaskId Added to msgParams for tracking and identification within Metamask.
+ * @param {object} msgParams The msgParams to be used when eth_sign is called, plus data added by MetaMask.
+ * @param {object} msgParams.metamaskId Added to msgParams for tracking and identification within MetaMask.
* @returns {Promise<object>} Promises the msgParams object with metamaskId removed.
*
*/