Skip to content

Commit

Permalink
Merge pull request #2 from KomodoPlatform/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
siulynot authored Apr 2, 2018
2 parents 6a6de9f + c24776d commit da3ff81
Show file tree
Hide file tree
Showing 40 changed files with 1,285 additions and 219 deletions.
12 changes: 0 additions & 12 deletions AgamaApp-windows.md

This file was deleted.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,11 @@ change architecture build parameter to ```--arch=x64``` for 64 bit build
On Windows it's noticed iguana.exe complains about `VCRUNTIME140D.DLL` and `ucrtbased.dll` file.

Please see **windeps** directory and README file for instructions to install the required DLL files on Windows, and then try again running Agama App.

## Optional packages to make rpm and deb distros

electron-installer-debian

electron-installer-redhat

refer to ./make-deb.js and ./make-rpm.js
2 changes: 1 addition & 1 deletion gui/EasyDEX-GUI
Submodule EasyDEX-GUI updated 60 files
+12 −14 react/src/actions/actions/addCoin.js
+31 −2 react/src/actions/actions/electrum.js
+8 −6 react/src/actions/actions/prices.js
+ react/src/assets/images/cryptologo/aud.png
+ react/src/assets/images/cryptologo/bgn.png
+ react/src/assets/images/cryptologo/brl.png
+ react/src/assets/images/cryptologo/cad.png
+ react/src/assets/images/cryptologo/chf.png
+ react/src/assets/images/cryptologo/cny.png
+ react/src/assets/images/cryptologo/czk.png
+ react/src/assets/images/cryptologo/dkk.png
+ react/src/assets/images/cryptologo/dnr.png
+ react/src/assets/images/cryptologo/eur.png
+ react/src/assets/images/cryptologo/gbp.png
+ react/src/assets/images/cryptologo/hkd.png
+ react/src/assets/images/cryptologo/hrk.png
+ react/src/assets/images/cryptologo/huf.png
+ react/src/assets/images/cryptologo/idr.png
+ react/src/assets/images/cryptologo/ils.png
+ react/src/assets/images/cryptologo/inr.png
+ react/src/assets/images/cryptologo/jpy.png
+ react/src/assets/images/cryptologo/krw.png
+ react/src/assets/images/cryptologo/litecoin.png
+ react/src/assets/images/cryptologo/mxn.png
+ react/src/assets/images/cryptologo/myr.png
+ react/src/assets/images/cryptologo/ninja.png
+ react/src/assets/images/cryptologo/nok.png
+ react/src/assets/images/cryptologo/nzd.png
+ react/src/assets/images/cryptologo/oot.png
+ react/src/assets/images/cryptologo/php.png
+ react/src/assets/images/cryptologo/pln.png
+ react/src/assets/images/cryptologo/ron.png
+ react/src/assets/images/cryptologo/rub.png
+ react/src/assets/images/cryptologo/sek.png
+ react/src/assets/images/cryptologo/sgd.png
+ react/src/assets/images/cryptologo/snowgem.png
+ react/src/assets/images/cryptologo/thb.png
+ react/src/assets/images/cryptologo/try.png
+ react/src/assets/images/cryptologo/usd.png
+ react/src/assets/images/cryptologo/vote2018.png
+ react/src/assets/images/cryptologo/zar.png
+3 −2 react/src/components/addcoin/addcoinOptionsAC.js
+8 −0 react/src/components/addcoin/addcoinOptionsCrypto.js
+6 −104 react/src/components/addcoin/payload.js
+3 −0 react/src/components/dashboard/claimInterestModal/claimInterestModal.render.js
+17 −10 react/src/components/dashboard/coinTile/coinTileItem.render.js
+3 −2 react/src/components/dashboard/notaryElectionsModal/notaryElectionsModal.js
+1 −1 react/src/components/dashboard/notaryElectionsModal/notaryElectionsModal.scss
+24 −22 react/src/components/dashboard/sendCoin/sendCoin.js
+5 −10 react/src/components/dashboard/settings/settings.exportKeysPanel.js
+6 −19 react/src/components/dashboard/support/support.js
+28 −26 react/src/components/dashboard/walletsData/walletsData.js
+3 −19 react/src/components/dashboard/walletsTxInfo/walletsTxInfo.js
+3 −1 react/src/components/login/login.js
+11 −9 react/src/components/login/login.render.js
+23 −5 react/src/components/login/login.scss
+5 −7 react/src/components/overrides.scss
+4 −2 react/src/translate/en.js
+20 −4 react/src/util/coinHelper.js
+6 −1 react/src/util/explorerList.js
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const BrowserWindow = electron.BrowserWindow;
const path = require('path');
const url = require('url');
const os = require('os');
const { randomBytes } = require('crypto');
const md5 = require('./routes/md5');
const exec = require('child_process').exec;
const { Menu } = require('electron');
Expand Down Expand Up @@ -54,7 +55,7 @@ app.setVersion(appBasicInfo.version);

shepherd.createAgamaDirs();

const appSessionHash = md5(Date.now().toString());
const appSessionHash = randomBytes(32).toString('hex');
const _spvFees = shepherd.getSpvFees();

shepherd.writeLog(`app info: ${appBasicInfo.name} ${appBasicInfo.version}`);
Expand All @@ -70,6 +71,7 @@ shepherd.writeLog(`os_type: ${os.type()}`);
if (process.argv.indexOf('devmode') > -1) {
shepherd.log(`app init ${appSessionHash}`);
}

shepherd.log(`app info: ${appBasicInfo.name} ${appBasicInfo.version}`);
shepherd.log('sys info:');
shepherd.log(`totalmem_readable: ${formatBytes(os.totalmem())}`);
Expand Down Expand Up @@ -100,7 +102,7 @@ guiapp.use((req, res, next) => {
next();
});

// preload.js
// preload js
const _setImmediate = setImmediate;
const _clearImmediate = clearImmediate;

Expand Down Expand Up @@ -462,8 +464,6 @@ app.on('quit', (event) => {
}
});

app.commandLine.appendSwitch('ignore-certificate-errors'); // dirty hack

function formatBytes(bytes, decimals) {
if (bytes === 0) {
return '0 Bytes';
Expand All @@ -485,4 +485,4 @@ function formatBytes(bytes, decimals) {
const i = Math.floor(Math.log(bytes) / Math.log(k));

return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;
}
}
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "agama-app",
"productName": "Agama",
"version": "0.2.29",
"version": "0.2.30",
"description": "Agama Wallet Desktop App",
"main": "main.js",
"scripts": {
Expand All @@ -11,21 +11,20 @@
"make-deb": "node make-deb.js"
},
"repository": "https://github.com/KomodoPlatform/Agama/",
"homepage": "http://supernet.org",
"homepage": "http://komodoplatform.com",
"keywords": [
"agama",
"SuperNET",
"komodo",
"multicoin",
"wallet",
"spv"
"spv",
"jumblr"
],
"author": "SuperNET Team",
"license": "MIT",
"devDependencies": {
"electron": "1.7.10",
"electron-installer-debian": "^0.6.0",
"electron-installer-redhat": "^0.5.0"
"electron": "1.8.4"
},
"dependencies": {
"adm-zip": "^0.4.7",
Expand All @@ -41,7 +40,7 @@
"body-parser": "^1.15.2",
"buffer-reverse": "^1.0.1",
"coinselect": "github:bitcoinjs/coinselect",
"electron": "1.8.2",
"electron": "1.8.4",
"express": "^4.14.0",
"fix-path": "^2.1.0",
"fs-extra": "^4.0.2",
Expand Down
53 changes: 50 additions & 3 deletions routes/electrumjs/electrumServers.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,15 @@ let electrumServers = {
],
},
ninja: { // !estimatefee
address: 'electrum.fund.ninja',
address: 'electrum1.fund.ninja',
port: 50001,
proto: 'tcp',
txfee: 10000,
abbr: 'NINJA',
serverList: 'none',
serverList: [
'electrum1.fund.ninja:50001',
'electrum2.fund.ninja:50001'
],
},
jumblr: { // !estimatefee
address: 'electrum1.cipig.net',
Expand Down Expand Up @@ -457,6 +460,17 @@ let electrumServers = {
'136.243.45.140:50013'
],
},
sng: { // ssl 50002
address: 'electrumsvr.snowgem.org',
port: 50001,
proto: 'tcp',
txfee: 10000,
abbr: 'SNG',
serverList: [
'electrumsvr.snowgem.org:50001',
'electrumsvr.snowgem.org:50001'
],
},
xmy: {
address: 'cetus.cryptap.us',
port: 50004,
Expand Down Expand Up @@ -534,6 +548,39 @@ let electrumServers = {
's2.qtum.info:50001'
],
},
// insight
aby: {
address: 'http://explorer.artbyte.me/api/',
proto: 'insight',
insightRawApi: false,
txfee: 100000,
abbr: 'ABY',
serverList: 'none',
},
mac: { // cloudfare captcha :(
address: 'https://explorer.machinecoin.org/api/',
proto: 'insight',
insightRawApi: false,
txfee: 100000,
abbr: 'MAC',
serverList: 'none',
},
vot: {
address: 'http://explorer.votecoin.site/insight-api-zcash/',
proto: 'insight',
insightRawApi: false,
txfee: 10000,
abbr: 'VOT',
serverList: 'none',
},
bdl: {
address: 'https://explorer.bitdeal.co.in/api/',
proto: 'insight',
insightRawApi: false,
txfee: 10000,
abbr: 'BDL',
serverList: 'none',
},
};

electrumServers.crw = electrumServers.crown;
Expand All @@ -546,4 +593,4 @@ electrumServers.vtc = electrumServers.vertcoin;
electrumServers.via = electrumServers.viacoin;
electrumServers.doge = electrumServers.dogecoin;

module.exports = electrumServers;
module.exports = electrumServers;
Loading

0 comments on commit da3ff81

Please sign in to comment.