Skip to content
Permalink
Browse files

1.4.33

  • Loading branch information...
SYLing committed Jul 11, 2019
1 parent 92b7d93 commit bb399d266cbe08d075c07d207a8aa19b7f5e0fa9
Showing with 29,591 additions and 29,632 deletions.
  1. +859 −859 README.md
  2. +37 −42 build-npm/dist/actions/account.js
  3. +7 −6 build-npm/dist/actions/connection.js
  4. +6 −6 build-npm/dist/actions/user.js
  5. +0 −7 build-npm/dist/assets/lang/en.js
  6. +1 −1 build-npm/dist/assets/lang/zh.js
  7. +6 −6 build-npm/dist/getters/assets.js
  8. +8 −8 build-npm/dist/getters/user.js
  9. +27 −27 build-npm/dist/lib/common/MarketClasses.js
  10. +5 −5 build-npm/dist/lib/common/account_utils.js
  11. +9 −9 build-npm/dist/lib/common/trxHelper.js
  12. +11 −25 build-npm/dist/main.js
  13. +3 −3 build-npm/dist/modules/PrivateKeyStore.js
  14. +0 −1 build-npm/dist/modules/WalletDb.js
  15. +1 −1 build-npm/dist/modules/assets.js
  16. +16 −16 build-npm/dist/modules/operations.js
  17. +1 −1 build-npm/dist/modules/setting.js
  18. +1 −3 build-npm/dist/mutations.js
  19. +1 −6 build-npm/dist/services/api.js
  20. +7 −7 build-npm/dist/services/api/assets.js
  21. +6 −4 build-npm/dist/services/api/chain-listener.js
  22. +3 −3 build-npm/dist/services/api/connection.js
  23. +1 −1 build-npm/dist/services/api/subscriptions.js
  24. +57 −81 build-npm/dist/services/api/transactions.js
  25. +4 −4 build-npm/dist/services/api/vote.js
  26. +5 −5 build-npm/dist/services/api/wallet/idb-helper.js
  27. +7 −7 build-npm/dist/services/api/wallet/idb-instance.js
  28. +1 −1 build-npm/dist/services/persistent-storage.js
  29. +1 −1 build-npm/dist/store/AccountRefsStore.js
  30. +39 −39 build-npm/dist/store/AccountStore.js
  31. +1 −0 build-npm/dist/store/WalletManagerStore.js
  32. +34 −34 build-npm/dist/utils/index.js
  33. +1 −1 build-npm/package.json
  34. +1 −1 build/FELib/jquery-1.8.3.min.js
  35. +294 −294 build/FELib/jsonview/jquery.jsonview.min.js
  36. +3,012 −3,012 build/index.html
  37. +9 −6 index.html
  38. +5 −4 npm-src/actions/account.js
  39. +1,029 −1,029 npm-src/actions/assets.js
  40. +235 −235 npm-src/actions/connection.js
  41. +151 −151 npm-src/actions/transactions.js
  42. +302 −302 npm-src/actions/user.js
  43. +145 −145 npm-src/assets/lang/en.js
  44. +144 −144 npm-src/assets/lang/zh.js
  45. +61 −61 npm-src/getters/account.js
  46. +33 −33 npm-src/getters/assets.js
  47. +7 −7 npm-src/getters/connection.js
  48. +2 −2 npm-src/getters/setting.js
  49. +45 −45 npm-src/getters/user.js
  50. +23 −23 npm-src/lib/chain/asset_constants.js
  51. +990 −990 npm-src/lib/common/MarketClasses.js
  52. +112 −112 npm-src/lib/common/account_utils.js
  53. +87 −87 npm-src/lib/common/asset_utils.js
  54. +94 −94 npm-src/lib/common/helper.js
  55. +31 −31 npm-src/lib/common/localStorage.js
  56. +2 −2 npm-src/lib/common/localStorageImpl.js
  57. +363 −363 npm-src/lib/common/market_utils.js
  58. +166 −166 npm-src/lib/common/permission_utils.js
  59. +319 −319 npm-src/lib/common/trxHelper.js
  60. +581 −581 npm-src/lib/common/utils.js
  61. +3 −3 npm-src/main.js
  62. +395 −395 npm-src/modules/NHAssets.js
  63. +317 −317 npm-src/modules/PrivateKeyStore.js
  64. +703 −703 npm-src/modules/WalletDb.js
  65. +116 −116 npm-src/modules/account.js
  66. +55 −55 npm-src/modules/assets.js
  67. +50 −50 npm-src/modules/connection.js
  68. +283 −283 npm-src/modules/contract.js
  69. +218 −218 npm-src/modules/explorer.js
  70. +91 −91 npm-src/modules/history.js
  71. +779 −779 npm-src/modules/market.js
  72. +270 −270 npm-src/modules/operations.js
  73. +139 −139 npm-src/modules/proposals.js
  74. +1 −1 npm-src/modules/setting.js
  75. +89 −89 npm-src/modules/transactions.js
  76. +40 −40 npm-src/modules/user.js
  77. +116 −116 npm-src/modules/vote.js
  78. +147 −147 npm-src/mutations.js
  79. +28 −28 npm-src/services/api.js
  80. +192 −192 npm-src/services/api/account.js
  81. +181 −181 npm-src/services/api/assets.js
  82. +129 −129 npm-src/services/api/chain-listener.js
  83. +83 −83 npm-src/services/api/connection.js
  84. +71 −71 npm-src/services/api/contract.js
  85. +132 −132 npm-src/services/api/explorer.js
  86. +704 −704 npm-src/services/api/market.js
  87. +307 −307 npm-src/services/api/nh-assets.js
  88. +101 −101 npm-src/services/api/nodes-manager.js
  89. +944 −944 npm-src/services/api/operations.js
  90. +169 −169 npm-src/services/api/subscriptions.js
  91. +50 −50 npm-src/services/api/transactions.js
  92. +401 −401 npm-src/services/api/vote.js
  93. +79 −79 npm-src/services/api/wallet/backup.js
  94. +121 −121 npm-src/services/api/wallet/idb-helper.js
  95. +266 −266 npm-src/services/api/wallet/idb-instance.js
  96. +72 −72 npm-src/services/api/wallet/idb-root.js
  97. +72 −72 npm-src/services/persistent-storage.js
  98. +167 −167 npm-src/services/workers/transactionWorker.js
  99. +111 −111 npm-src/store/AccountRefsStore.js
  100. +208 −208 npm-src/store/AccountStore.js
  101. +121 −121 npm-src/store/AddressIndex.js
  102. +258 −258 npm-src/store/BackupStore.js
  103. +39 −39 npm-src/store/CachedPropertyStore.js
  104. +11 −11 npm-src/store/WalletDb.js
  105. +176 −176 npm-src/store/WalletManagerStore.js
  106. +100 −100 npm-src/store/tcomb_structs.js
  107. +172 −172 npm-src/utils/index.js
  108. +12 −11 src/actions/account.js
  109. +1 −2 src/actions/assets.js
  110. +257 −257 src/actions/connection.js
  111. +151 −151 src/actions/transactions.js
  112. +11 −6 src/actions/user.js
  113. +14 −14 src/assets/lang/en.js
  114. +1 −1 src/assets/lang/zh.js
  115. +61 −61 src/getters/account.js
  116. +33 −33 src/getters/assets.js
  117. +7 −7 src/getters/connection.js
  118. +2 −2 src/getters/setting.js
  119. +45 −45 src/getters/user.js
  120. +23 −23 src/lib/chain/asset_constants.js
  121. +990 −990 src/lib/common/MarketClasses.js
  122. +112 −112 src/lib/common/account_utils.js
  123. +87 −87 src/lib/common/asset_utils.js
  124. +94 −94 src/lib/common/helper.js
  125. +31 −31 src/lib/common/localStorage.js
  126. +2 −2 src/lib/common/localStorageImpl.js
  127. +363 −363 src/lib/common/market_utils.js
  128. +0 −2 src/lib/common/permission_utils.js
  129. +319 −319 src/lib/common/trxHelper.js
  130. +581 −581 src/lib/common/utils.js
  131. +3 −3 src/main.js
  132. +395 −395 src/modules/NHAssets.js
  133. +317 −317 src/modules/PrivateKeyStore.js
  134. +703 −703 src/modules/WalletDb.js
  135. +116 −116 src/modules/account.js
  136. +55 −55 src/modules/assets.js
  137. +50 −50 src/modules/connection.js
  138. +2 −1 src/modules/contract.js
  139. +218 −218 src/modules/explorer.js
  140. +91 −91 src/modules/history.js
  141. +779 −779 src/modules/market.js
  142. +0 −1 src/modules/operations.js
  143. +139 −139 src/modules/proposals.js
  144. +1 −1 src/modules/setting.js
  145. +89 −89 src/modules/transactions.js
  146. +40 −40 src/modules/user.js
  147. +116 −116 src/modules/vote.js
  148. +147 −147 src/mutations.js
  149. +28 −28 src/services/api.js
  150. +192 −192 src/services/api/account.js
  151. +181 −181 src/services/api/assets.js
  152. +129 −129 src/services/api/chain-listener.js
  153. +83 −83 src/services/api/connection.js
  154. +71 −71 src/services/api/contract.js
  155. +132 −132 src/services/api/explorer.js
  156. +704 −704 src/services/api/market.js
  157. +307 −307 src/services/api/nh-assets.js
  158. +101 −101 src/services/api/nodes-manager.js
  159. +6 −1 src/services/api/operations.js
  160. +2 −2 src/services/api/subscriptions.js
  161. +381 −381 src/services/api/transactions.js
  162. +401 −401 src/services/api/vote.js
  163. +79 −79 src/services/api/wallet/backup.js
  164. +120 −120 src/services/api/wallet/idb-helper.js
  165. +265 −265 src/services/api/wallet/idb-instance.js
  166. +72 −72 src/services/api/wallet/idb-root.js
  167. +72 −72 src/services/persistent-storage.js
  168. +167 −167 src/services/workers/transactionWorker.js
  169. +3 −2 src/store/AccountRefsStore.js
  170. +2 −2 src/store/AccountStore.js
  171. +121 −121 src/store/AddressIndex.js
  172. +258 −258 src/store/BackupStore.js
  173. +39 −39 src/store/CachedPropertyStore.js
  174. +11 −11 src/store/WalletDb.js
  175. +176 −176 src/store/WalletManagerStore.js
  176. +100 −100 src/store/tcomb_structs.js
  177. +172 −172 src/utils/index.js
  178. +38 −38 webpack.config.js
  179. +34 −34 webpack.pro.config.js
1,718 README.md

Large diffs are not rendered by default.

@@ -95,9 +95,9 @@ var createWallet = function createWallet(_ref) {
return result;
};

/**United Labs of BCTech.
* Unlocks user's wallet via provided password
* @param {string} password - user password
/**United Labs of BCTech.
* Unlocks user's wallet via provided password
* @param {string} password - user password
*/
var unlockWallet = exports.unlockWallet = function unlockWallet(_ref2, password) {
var commit = _ref2.commit,
@@ -109,23 +109,23 @@ var unlockWallet = exports.unlockWallet = function unlockWallet(_ref2, password)
commit(types.ACCOUNT_UNLOCK_WALLET, aesPrivate);
};

/**
* Locks user's wallet
/**
* Locks user's wallet
*/
var lockWallet = exports.lockWallet = function lockWallet(_ref3) {
var commit = _ref3.commit;

commit(types.ACCOUNT_LOCK_WALLET);
};

/**
* Creates account & wallet for user
* @param {string} name - user name
* @param {string} password - user password
* @param {string} dictionary - string to generate brainkey from
/**
* Creates account & wallet for user
* @param {string} name - user name
* @param {string} password - user password
* @param {string} dictionary - string to generate brainkey from
*/
var createAccountWithPassword = exports.createAccountWithPassword = function _callee(store, params) {
var account, password, _params$autoLogin, autoLogin, _params$onlyGetFee, onlyGetFee, commit, dispatch, rootGetters, getters, acc_res, _WalletDbS$generateKe, owner_private, _WalletDbS$generateKe2, active_private, result, exist_account_id, settingsAPIs, userId, id, wallet;
var account, password, _params$autoLogin, autoLogin, _params$onlyGetFee, onlyGetFee, commit, dispatch, rootGetters, getters, acc_res, _WalletDbS$generateKe, owner_private, _WalletDbS$generateKe2, active_private, result, exist_account_id, settingsAPIs, userId, id;

return _regenerator2.default.async(function _callee$(_context) {
while (1) {
@@ -213,7 +213,7 @@ var createAccountWithPassword = exports.createAccountWithPassword = function _ca
console.log('Account created : ', result.success);

if (!result.success) {
_context.next = 39;
_context.next = 35;
break;
}

@@ -225,30 +225,25 @@ var createAccountWithPassword = exports.createAccountWithPassword = function _ca
id = userId && userId[0];

if (id) id = userId[0];

if (!autoLogin) {
_context.next = 38;
break;
}

return _context.abrupt("return", new _promise2.default(function (resolve) {
setTimeout(function () {
resolve(dispatch("account/passwordLogin", {
account: account,
password: password
}, { root: true }));
if (autoLogin) {
resolve(dispatch("account/passwordLogin", {
account: account,
password: password
}, { root: true }));
} else {
resolve({ code: 1, data: { account_id: id, account_name: account } });
}
}, 2000);
}));

case 38:
return _context.abrupt("return", dispatch("getAccountInfo"));

case 39:
case 35:

commit(types.ACCOUNT_SIGNUP_ERROR, { error: result.error });
return _context.abrupt("return", { code: 0, message: result.error, error: result.error });

case 41:
case 37:
case "end":
return _context.stop();
}
@@ -1003,7 +998,7 @@ var passwordLogin = exports.passwordLogin = function _callee7(store, params) {
break;
}

if (!rootGetters["AccountStore/linkedAccounts"].size) {
if (!rootGetters["WalletDb/wallet"]) {
_context7.next = 24;
break;
}
@@ -1295,9 +1290,9 @@ var checkCachedUserData = exports.checkCachedUserData = function _callee10(_ref2
}
}, null, undefined);
};
/**
* Checks username for existance
* @param {string} username - name of user to fetch
/**
* Checks username for existance
* @param {string} username - name of user to fetch
*/
var checkIfUsernameFree = exports.checkIfUsernameFree = function _callee11(state, _ref24) {
var username = _ref24.username;
@@ -1480,44 +1475,44 @@ var _accountOpt = exports._accountOpt = function _callee16(_ref29, _ref30) {
case 0:

_helper2.default.trimParams(params);
params.crontab = params.crontab || null;
dispatch("crontab/setCrontab", params.crontab, { root: true });
// params.crontab=params.crontab||null;
// dispatch("crontab/setCrontab",params.crontab,{root:true});

account = rootGetters["user/getAccountObject"];

if (account) {
_context16.next = 11;
_context16.next = 9;
break;
}

userId = rootGetters["account/getAccountUserId"];

if (!userId) {
_context16.next = 11;
_context16.next = 9;
break;
}

_context16.next = 9;
_context16.next = 7;
return _regenerator2.default.awrap(dispatch("user/fetchUser", userId, { root: true }));

case 9:
case 7:
user_result = _context16.sent;

if (user_result.success) account = user_result.data.account;

case 11:
case 9:
if (!account) {
_context16.next = 16;
_context16.next = 14;
break;
}

if (!params.account) params.account = account;
return _context16.abrupt("return", dispatch(method, params, { root: true }));

case 16:
case 14:
return _context16.abrupt("return", { code: -11, message: "Please login first" });

case 17:
case 15:
case "end":
return _context16.stop();
}
@@ -1821,7 +1816,7 @@ var getAccountInfo = exports.getAccountInfo = function getAccountInfo(_ref38) {
locked: rootGetters["WalletDb/isLocked"]
};
res.account_name = accountObject ? accountObject.name : "";
res.mode = rootGetters["AccountStore/linkedAccounts"].toJS().length ? "wallet" : "account";
res.mode = rootGetters["WalletDb/wallet"] ? "wallet" : "account";
return {
code: 1,
data: res
@@ -42,8 +42,8 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _new_node_connecting = false; //if here is new incoming node connection.
/**
* Initializes connection to WS
/**
* Initializes connection to WS
*/
var testNodesPings = exports.testNodesPings = function testNodesPings(store, refresh) {
return _api2.default.Connection.testNodesPings(refresh);
@@ -197,7 +197,7 @@ var initConnection = exports.initConnection = function initConnection(store, par
store_autoReconnect = rootGetters["setting/autoReconnect"];

if (!(status === 'error' || status === 'closed')) {
_context3.next = 12;
_context3.next = 13;
break;
}

@@ -209,7 +209,7 @@ var initConnection = exports.initConnection = function initConnection(store, par
_bcxjsCores.ChainStore.subscribed = false;

if (!(_new_node_connecting == false && store_autoReconnect)) {
_context3.next = 12;
_context3.next = 13;
break;
}

@@ -220,8 +220,9 @@ var initConnection = exports.initConnection = function initConnection(store, par
_startConnectTimer = setTimeout(function () {
startConnect(selectedNodeUrl);
}, 3000);
return _context3.abrupt('return');

case 12:
case 13:

//RPC connected
if (status === 'realopen') {
@@ -247,7 +248,7 @@ var initConnection = exports.initConnection = function initConnection(store, par
});
}

case 13:
case 14:
case 'end':
return _context3.stop();
}
@@ -59,9 +59,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

var CORE_ASSET_ID = "1.3.0";

/**
* Function to convert array of balances to object with keys as assets ids United Labs of BCTech.
* @param {Array} balancesArr - array of balance objects
/**
* Function to convert array of balances to object with keys as assets ids United Labs of BCTech.
* @param {Array} balancesArr - array of balance objects
*/
var balancesToObject = function balancesToObject(balancesArr) {
var obj = {};
@@ -71,9 +71,9 @@ var balancesToObject = function balancesToObject(balancesArr) {
return obj;
};

/**
* Fetches users objects from bcxjs-ws
* @param {string} username - name of user to fetch
/**
* Fetches users objects from bcxjs-ws
* @param {string} username - name of user to fetch
*/
var fetchUser = exports.fetchUser = function _callee(_ref, nameOrId) {
var commit = _ref.commit,
@@ -68,9 +68,6 @@ var en_US = {
trxTypes_fill_nh_asset_order: "NH Asset Order Matching",
trxTypes_relate_nh_asset: "NH asset Association",
trxTypes_relate_world_view: "Relevant World View",
trxTypes_crontab_create: "Timing Task Creation",
trxTypes_crontab_cancel: "Cancel the task",
trxTypes_crontab_recover: "restart timed tasks",

trxTypes_contract_affecteds_asset: "Assets",

@@ -136,10 +133,6 @@ var en_US = {
operation_relate_world_view: "(related_account) relation (view_owner) world view (world_view)",
operation_relate_nh_asset: "(nh_asset_creator) (related) parent NH asset (nh_asset) and child NH asset (nh_asset) Association",

operation_crontab_create: "(crontab_creator) creates a timed task (result), execution time (start_time), execution interval (execute_interval) seconds, execution times (execute_times), execution transactions:",
operation_crontab_cancel: "(fee_paying_account) cancel the task (task)",
operation_crontab_recover: "(crontab_owner) restart timed tasks (crontab), restart time (restart_time)",

contract_affecteds_nh_modifined: "(affected_account) NH assets (affected_item) modify data (modified)",
contract_affecteds_nh_transfer_to: "NH asset (affected_item) transfer (affected_account)",
contract_affecteds_nh_transfer_from: "(affected_account) NH Asset (affected_item) Transfer",

Large diffs are not rendered by default.

@@ -7,8 +7,8 @@ exports.getAssets = getAssets;
exports.getAssetsArr = getAssetsArr;
exports.getDefaultAssetsIds = getDefaultAssetsIds;
exports.getAssetById = getAssetById;
/**
* Returns object with all assets
/**
* Returns object with all assets
*/
function getAssets(_ref) {
var cache_assets = _ref.cache_assets;
@@ -28,17 +28,17 @@ function getAssetsArr(_ref2) {
return assets;
}

/**
* Returns array with default assets ids
/**
* Returns array with default assets ids
*/
function getDefaultAssetsIds(_ref3) {
var defaultAssetsIds = _ref3.defaultAssetsIds;

return defaultAssetsIds;
}

/**
* Returns function to get asset by id
/**
* Returns function to get asset by id
*/
function getAssetById(state) {
var cache_assets = state.cache_assets;
@@ -10,17 +10,17 @@ exports.getBalances = getBalances;
exports.isFetching = isFetching;
exports.getAccountExtensions = getAccountExtensions;
exports.proxy_account_id = proxy_account_id;
/**
* Returns current user's name string
/**
* Returns current user's name string
*/
function getUserName(_ref) {
var account = _ref.account;

return account && account.name;
}

/**
* Returns current user's account object
/**
* Returns current user's account object
*/
function getAccountObject(_ref2) {
var account = _ref2.account;
@@ -37,17 +37,17 @@ function getAllAccountObject(_ref3) {
var getCurrentUserBalances = exports.getCurrentUserBalances = function getCurrentUserBalances(state) {
return state.allAccount && state.allAccount.balances || {};
};
/**
* Returns current users's balances object
/**
* Returns current users's balances object
*/
function getBalances(_ref4) {
var balances = _ref4.balances;

return balances;
}

/**
* User fetching in progress indicator
/**
* User fetching in progress indicator
*/
function isFetching(state) {
return state.fetching;

0 comments on commit bb399d2

Please sign in to comment.
You can’t perform that action at this time.