Browse Source

remove fiat currencies

v0.25
pbca26 7 years ago
parent
commit
04384415f7
  1. 15
      react/src/actions/actions/addCoin.js
  2. BIN
      react/src/assets/images/cryptologo/aud.png
  3. BIN
      react/src/assets/images/cryptologo/bgn.png
  4. BIN
      react/src/assets/images/cryptologo/brl.png
  5. BIN
      react/src/assets/images/cryptologo/cad.png
  6. BIN
      react/src/assets/images/cryptologo/chf.png
  7. BIN
      react/src/assets/images/cryptologo/cny.png
  8. BIN
      react/src/assets/images/cryptologo/czk.png
  9. BIN
      react/src/assets/images/cryptologo/dkk.png
  10. BIN
      react/src/assets/images/cryptologo/eur.png
  11. BIN
      react/src/assets/images/cryptologo/gbp.png
  12. BIN
      react/src/assets/images/cryptologo/hkd.png
  13. BIN
      react/src/assets/images/cryptologo/hrk.png
  14. BIN
      react/src/assets/images/cryptologo/huf.png
  15. BIN
      react/src/assets/images/cryptologo/idr.png
  16. BIN
      react/src/assets/images/cryptologo/ils.png
  17. BIN
      react/src/assets/images/cryptologo/inr.png
  18. BIN
      react/src/assets/images/cryptologo/jpy.png
  19. BIN
      react/src/assets/images/cryptologo/krw.png
  20. BIN
      react/src/assets/images/cryptologo/litecoin.png
  21. BIN
      react/src/assets/images/cryptologo/mxn.png
  22. BIN
      react/src/assets/images/cryptologo/myr.png
  23. BIN
      react/src/assets/images/cryptologo/nok.png
  24. BIN
      react/src/assets/images/cryptologo/nzd.png
  25. BIN
      react/src/assets/images/cryptologo/php.png
  26. BIN
      react/src/assets/images/cryptologo/pln.png
  27. BIN
      react/src/assets/images/cryptologo/ron.png
  28. BIN
      react/src/assets/images/cryptologo/rub.png
  29. BIN
      react/src/assets/images/cryptologo/sek.png
  30. BIN
      react/src/assets/images/cryptologo/sgd.png
  31. BIN
      react/src/assets/images/cryptologo/thb.png
  32. BIN
      react/src/assets/images/cryptologo/try.png
  33. BIN
      react/src/assets/images/cryptologo/usd.png
  34. BIN
      react/src/assets/images/cryptologo/zar.png
  35. 103
      react/src/components/addcoin/payload.js

15
react/src/actions/actions/addCoin.js

@ -11,7 +11,6 @@ import {
startCurrencyAssetChain,
startAssetChain,
startCrypto,
checkCoinType,
checkAC,
} from '../../components/addcoin/payload';
@ -183,23 +182,13 @@ export function shepherdHerd(coin, mode, path, startupParams) {
}
// TODO: switch statement
if (checkCoinType(coin) === 'crypto') {
if (coin === 'KMD') {
acData = startCrypto(
path.result,
coin,
mode
);
}
if (checkCoinType(coin) === 'currency_ac') {
acData = startCurrencyAssetChain(
path.result,
coin,
mode
);
}
if (checkCoinType(coin) === 'ac') {
} else {
const supply = startAssetChain(
path.result,
coin,

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

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

@ -26,114 +26,13 @@ export function checkAC(coinVal) {
coinVal === 'BTCH' ||
coinVal === 'BEER' ||
coinVal === 'PIZZA' ||
coinVal === 'VOTE' ||
coinVal === 'USD' ||
coinVal === 'RON' ||
coinVal === 'EUR' ||
coinVal === 'JPY' ||
coinVal === 'GBP' ||
coinVal === 'AUD' ||
coinVal === 'CAD' ||
coinVal === 'CHF' ||
coinVal === 'NZD' ||
coinVal === 'CNY' ||
coinVal === 'RUB' ||
coinVal === 'MXN' ||
coinVal === 'BRL' ||
coinVal === 'INR' ||
coinVal === 'HKD' ||
coinVal === 'TRY' ||
coinVal === 'ZAR' ||
coinVal === 'PLN' ||
coinVal === 'NOK' ||
coinVal === 'SEK' ||
coinVal === 'DKK' ||
coinVal === 'CZK' ||
coinVal === 'HUF' ||
coinVal === 'ILS' ||
coinVal === 'KRW' ||
coinVal === 'MYR' ||
coinVal === 'PHP' ||
coinVal === 'SGD' ||
coinVal === 'THB' ||
coinVal === 'BGN' ||
coinVal === 'IDR' ||
coinVal === 'HRK') {
coinVal === 'VOTE') {
return true;
} else {
return false;
}
}
export function checkCoinType(coin) {
if (coin === 'USD' ||
coin === 'RON' ||
coin === 'RUB' ||
coin === 'SEK' ||
coin === 'SGD' ||
coin === 'THB' ||
coin === 'TRY' ||
coin === 'ZAR' ||
coin === 'CNY' ||
coin === 'CZK' ||
coin === 'DKK' ||
coin === 'EUR' ||
coin === 'GBP' ||
coin === 'HKD' ||
coin === 'HUF' ||
coin === 'IDR' ||
coin === 'ILS' ||
coin === 'INR' ||
coin === 'JPY' ||
coin === 'KRW' ||
coin === 'MXN' ||
coin === 'MYR' ||
coin === 'NOK' ||
coin === 'NZD' ||
coin === 'PHP' ||
coin === 'PLN' ||
coin === 'AUD' ||
coin === 'BGN' ||
coin === 'BRL' ||
coin === 'CAD' ||
coin === 'CHF') {
return 'currency_ac';
}
if (coin === 'SUPERNET' ||
coin === 'REVS' ||
coin === 'SUPERNET' ||
coin === 'PANGEA' ||
coin === 'DEX' ||
coin === 'JUMBLR' ||
coin === 'BET' ||
coin === 'CRYPTO' ||
coin === 'COQUI' ||
coin === 'HODL' ||
coin === 'MSHARK' ||
coin === 'BOTS' ||
coin === 'MGW' ||
coin === 'MVP' ||
coin === 'KV' ||
coin === 'CEAL' ||
coin === 'MESH' ||
coin === 'WLC' ||
coin === 'MNZ' ||
coin === 'AXO' ||
coin === 'ETOMIC' ||
coin === 'BTCH' ||
coin === 'BEER' ||
coin === 'PIZZA' ||
coin === 'VOTE') {
return 'ac';
}
if (coin === 'ZEC' ||
coin === 'KMD') {
return 'crypto';
}
}
export function startCurrencyAssetChain(confpath, coin, mode) {
const assetChainPorts = window.require('electron').remote.getCurrentWindow().assetChainPorts;

Loading…
Cancel
Save