Browse Source

axo, btch, etomic native

v0.25
pbca26 7 years ago
parent
commit
e4bf3fb96d
  1. 19
      react/package.json
  2. BIN
      react/src/assets/images/20.jpg
  3. BIN
      react/src/assets/images/android-chrome-192x192.png
  4. BIN
      react/src/assets/images/cryptologo/axo.png
  5. BIN
      react/src/assets/images/cryptologo/btch.png
  6. BIN
      react/src/assets/images/cryptologo/chips (copy).png
  7. BIN
      react/src/assets/images/cryptologo/etomic.png
  8. BIN
      react/src/assets/images/easydex-logo-dashboard-white.png
  9. BIN
      react/src/assets/images/easydex-logo-dashboard.png
  10. BIN
      react/src/assets/images/favicon-16x16.png
  11. BIN
      react/src/assets/images/favicon-194x194.png
  12. BIN
      react/src/assets/images/favicon-32x32.png
  13. BIN
      react/src/assets/images/favicon-96x96.png
  14. BIN
      react/src/assets/images/iguana_profile_02.jpg
  15. BIN
      react/src/assets/images/supernet-iguana-logo-big.png
  16. BIN
      react/src/assets/images/supernet-iguana-logo-white.png
  17. BIN
      react/src/assets/images/supernet-iguana-logo.png
  18. 5
      react/src/components/addcoin/addcoinOptionsAC.js
  19. 37
      react/src/components/addcoin/payload.js
  20. 12
      react/src/components/dashboard/coinTile/coinTileItem.render.js
  21. 2
      react/src/components/dashboard/navbar/navbar.render.js
  22. 4
      react/src/translate/en.js
  23. 20
      react/src/util/coinHelper.js

19
react/package.json

@ -1,6 +1,6 @@
{ {
"name": "AgamaGUI", "name": "AgamaGUI",
"version": "0.0.1", "version": "0.0.26",
"description": "Agama Wallet GUI", "description": "Agama Wallet GUI",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {
@ -17,19 +17,18 @@
"e2e": "protractor", "e2e": "protractor",
"e2e-live": "protractor --elementExplorer" "e2e-live": "protractor --elementExplorer"
}, },
"repository": "https://github.com/KomodoPlatform/EasyDEX-GUI",
"homepage": "http://supernet.org",
"keywords": [ "keywords": [
"react", "agama",
"webpack", "SuperNET",
"babel", "komodo",
"minimal", "multicoin",
"starter" "wallet",
"spv"
], ],
"author": "SuperNET Team", "author": "SuperNET Team",
"license": "MIT", "license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/SuperNETorg/EasyDEX-GUI.git"
},
"dependencies": { "dependencies": {
"babel-core": "^6.14.0", "babel-core": "^6.14.0",
"babel-loader": "^6.2.5", "babel-loader": "^6.2.5",

BIN
react/src/assets/images/20.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
react/src/assets/images/android-chrome-192x192.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

BIN
react/src/assets/images/cryptologo/axo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
react/src/assets/images/cryptologo/btch.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
react/src/assets/images/cryptologo/chips (copy).png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

BIN
react/src/assets/images/cryptologo/etomic.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
react/src/assets/images/easydex-logo-dashboard-white.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

BIN
react/src/assets/images/easydex-logo-dashboard.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

BIN
react/src/assets/images/favicon-16x16.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 548 B

BIN
react/src/assets/images/favicon-194x194.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

BIN
react/src/assets/images/favicon-32x32.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
react/src/assets/images/favicon-96x96.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

BIN
react/src/assets/images/iguana_profile_02.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

BIN
react/src/assets/images/supernet-iguana-logo-big.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

BIN
react/src/assets/images/supernet-iguana-logo-white.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

BIN
react/src/assets/images/supernet-iguana-logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

5
react/src/components/addcoin/addcoinOptionsAC.js

@ -20,11 +20,14 @@ const addCoinOptionsAC = () => {
'mshark', 'mshark',
'supernet', 'supernet',
'wlc', 'wlc',
'axo',
'etomic',
'btch'
]; ];
let _items = []; let _items = [];
for (let i = 0; i < _assetChains.length; i++) { for (let i = 0; i < _assetChains.length; i++) {
let availableModes = _assetChains[i] !== 'kv' && _assetChains[i] !== 'mgw' ? 'spv|native' : 'native'; let availableModes = _assetChains[i] !== 'kv' && _assetChains[i] !== 'mgw' && _assetChains[i] !== 'axo' && _assetChains[i] !== 'etomic' && _assetChains[i] !== 'btch' ? 'spv|native' : 'native';
if (mainWindow.arch !== 'x64') { if (mainWindow.arch !== 'x64') {
availableModes = 'spv'; availableModes = 'spv';

37
react/src/components/addcoin/payload.js

@ -20,6 +20,10 @@ export function checkAC(coinVal) {
coinVal === 'KV' || coinVal === 'KV' ||
coinVal === 'CEAL' || coinVal === 'CEAL' ||
coinVal === 'MESH' || coinVal === 'MESH' ||
coinVal === 'MNZ' ||
coinVal === 'AXO' ||
coinVal === 'ETOMIC' ||
coinVal === 'BTCH' ||
coinVal === 'USD' || coinVal === 'USD' ||
coinVal === 'RON' || coinVal === 'RON' ||
coinVal === 'EUR' || coinVal === 'EUR' ||
@ -51,7 +55,6 @@ export function checkAC(coinVal) {
coinVal === 'THB' || coinVal === 'THB' ||
coinVal === 'BGN' || coinVal === 'BGN' ||
coinVal === 'IDR' || coinVal === 'IDR' ||
coinVal === 'MNZ' ||
coinVal === 'HRK') { coinVal === 'HRK') {
return true; return true;
} else { } else {
@ -112,26 +115,15 @@ export function checkCoinType(coin) {
coin === 'CEAL' || coin === 'CEAL' ||
coin === 'MESH' || coin === 'MESH' ||
coin === 'WLC' || coin === 'WLC' ||
coin === 'MNZ') { coin === 'MNZ' ||
coin === 'AXO' ||
coin === 'ETOMIC' ||
coin === 'BTCH') {
return 'ac'; return 'ac';
} }
if (coin === 'BTC' || if (coin === 'ZEC' ||
coin === 'BTCD' || coin === 'KMD') {
coin === 'LTC' ||
coin === 'DOGE' ||
coin === 'DGB' ||
coin === 'MZC' ||
coin === 'SYS' ||
coin === 'UNO' ||
coin === 'BTM' ||
coin === 'CARB' ||
coin === 'ANC' ||
coin === 'FRK' ||
coin === 'GAME' ||
coin === 'ZEC' ||
coin === 'KMD' ||
coin === 'ZET') {
return 'crypto'; return 'crypto';
} }
} }
@ -200,6 +192,15 @@ export function startAssetChain(confpath, coin, mode, getSuppyOnly) {
MNZ: { MNZ: {
supply: 257142858, supply: 257142858,
}, },
AXO: {
supply: 200000000,
},
ETOMIC: {
supply: 100000000,
},
BTCH: {
supply: 20998641,
},
}; };
if (mode === '-1') { if (mode === '-1') {

12
react/src/components/dashboard/coinTile/coinTileItem.render.js

@ -48,18 +48,6 @@ const CoinTileItemRender = function() {
</ul> </ul>
</div> </div>
} }
{ /*this.renderStopCoinButton() &&
<i
onClick={ () => this.stopCoind(item.coin, item.mode) }
title={ translate('DASHBOARD.STOP') }
className="icon fa-stop-circle coind-stop-icon"></i>*/
}
{ /*this.renderRemoveCoinButton() &&
<i
onClick={ () => this.removeCoin(item.coin, item.mode) }
title={ translate('DASHBOARD.REMOVE') }
className={ 'icon fa-plus-circle coind-remove-icon' + (item.mode === 'spv' ? ' coind-remove-icon-spv' : '') }></i>*/
}
{ this.props.Dashboard && { this.props.Dashboard &&
this.props.Dashboard.electrumCoins && this.props.Dashboard.electrumCoins &&
this.props.Dashboard.electrumCoins[item.coin] && this.props.Dashboard.electrumCoins[item.coin] &&

2
react/src/components/dashboard/navbar/navbar.render.js

@ -99,7 +99,7 @@ const NavbarRender = function() {
<a className="navbar-avatar dropdown-toggle"> <a className="navbar-avatar dropdown-toggle">
<span className="navbar-avatar-inner"> <span className="navbar-avatar-inner">
<i <i
title="top menu" title={ translate('INDEX.TOP_MENU') }
className="icon fa-bars"></i> className="icon fa-bars"></i>
</span> </span>
</a> </a>

4
react/src/translate/en.js

@ -96,6 +96,7 @@ export const LANG_EN = {
'NO_ACTIVE_COIN': 'No active coin', 'NO_ACTIVE_COIN': 'No active coin',
}, },
'INDEX': { 'INDEX': {
'TOP_MENU': 'Top menu',
'ERROR_READING': 'Error reading', 'ERROR_READING': 'Error reading',
'SHOW': 'Show', 'SHOW': 'Show',
'SPV_SERVER_IP': 'Server IP', 'SPV_SERVER_IP': 'Server IP',
@ -828,6 +829,9 @@ export const LANG_EN = {
'MESH': 'SpaceMesh (MESH)', 'MESH': 'SpaceMesh (MESH)',
'SUPERNET': 'SUPERNET (SUPERNET)', 'SUPERNET': 'SUPERNET (SUPERNET)',
'WLC': 'WIRELESS (WIRELESS)', 'WLC': 'WIRELESS (WIRELESS)',
'AXO': 'AXO (AXO)',
'ETOMIC': 'ETOMIC (ETOMIC)',
'BTCH': 'BTCH (BTCH)',
}, },
'DEX': { 'DEX': {
'GEN_NEW_PASSPHRASE': 'Generate a new passphrase', 'GEN_NEW_PASSPHRASE': 'Generate a new passphrase',

20
react/src/util/coinHelper.js

@ -220,6 +220,18 @@ export function getCoinTitle(coin) {
coinlogo = 'MESH'; coinlogo = 'MESH';
coinname = 'SpaceMesh'; coinname = 'SpaceMesh';
break; break;
case 'AXO':
coinlogo = 'AXO';
coinname = 'AXO';
break;
case 'ETOMIC':
coinlogo = 'ETOMIC';
coinname = 'ETOMIC';
break;
case 'BTCH':
coinlogo = 'BTCH';
coinname = 'BTCH';
break;
case 'USD': case 'USD':
titleBG = true; titleBG = true;
transparentBG = true; transparentBG = true;
@ -470,6 +482,9 @@ export function coindList() {
'MESH', 'MESH',
'SUPERNET', 'SUPERNET',
'WLC', 'WLC',
'AXO',
'ETOMIC',
'BTCH'
]; ];
return _coins; return _coins;
@ -495,7 +510,10 @@ export const isKomodoCoin = (coin) => {
coin === 'WLC' || coin === 'WLC' ||
coin === 'MNZ' || coin === 'MNZ' ||
coin === 'CHIPS' || coin === 'CHIPS' ||
coin === 'KMD') { coin === 'KMD' ||
coin === 'AXO',
coin === 'ETOMIC',
coin === 'BTCH') {
return true; return true;
} }
} }
Loading…
Cancel
Save