From df0ac2bac7b032f93e4375c9a04004e8ba0b53ea Mon Sep 17 00:00:00 2001 From: sidhujag Date: Fri, 18 May 2018 16:36:05 -0700 Subject: [PATCH] Add Syscoin support --- packages/common/src/data/mock-entities.js | 13 +++++ packages/currencies/src/coinTypeToIconName.js | 1 + .../currencies/src/data/cryptocurrencies.js | 29 ++++++++++ .../currencies/src/data/icons/svg/syscoin.svg | 53 +++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 packages/currencies/src/data/icons/svg/syscoin.svg diff --git a/packages/common/src/data/mock-entities.js b/packages/common/src/data/mock-entities.js index e35d782d9..fb1aa8861 100644 --- a/packages/common/src/data/mock-entities.js +++ b/packages/common/src/data/mock-entities.js @@ -91,6 +91,19 @@ const mockCurrencies: CurrencyEntity[] = [ magnitude: 8 } ] + }, + { + name: "syscoin", + family: "Syscoin", + color: "#008dd1", + units: [ + { + name: "Syscoin", + code: "SYS", + symbol: "SYS", + magnitude: 8 + } + ] } ]; diff --git a/packages/currencies/src/coinTypeToIconName.js b/packages/currencies/src/coinTypeToIconName.js index 05fed26e2..9460ff2fe 100644 --- a/packages/currencies/src/coinTypeToIconName.js +++ b/packages/currencies/src/coinTypeToIconName.js @@ -8,6 +8,7 @@ export default { "79": "clubcoin", "5": "dash", "42": "decred", + "57": "syscoin", "20": "digibyte", "3": "dogecoin", "61": "ethereumClassic", diff --git a/packages/currencies/src/data/cryptocurrencies.js b/packages/currencies/src/data/cryptocurrencies.js index 984ffcdb3..4b6c400a0 100644 --- a/packages/currencies/src/data/cryptocurrencies.js +++ b/packages/currencies/src/data/cryptocurrencies.js @@ -261,6 +261,35 @@ const cryptocurrenciesArray: Currency[] = [ } ] }, + { + coinType: 57, + name: "Syscoin", + ticker: "SYS", + scheme: "syscoin", + apiName: "sys", + color: "#008dd1", + xpub: 0x0488B21E, + isSegwitSupported: false, + handleFeePerByte: false, + areTransactionTimestamped: false, + bitcoinjs: { + messagePrefix: "Syscoin Signed Message:", + bip32: { + private: 76066276, + public: 76067358 + }, + pubKeyHash: 63, + scriptHash: 5, + wif: 128 + }, + units: [ + { + name: "syscoin", + code: "SYS", + magnitude: 8 + } + ] + }, { coinType: 105, name: "Stratis", diff --git a/packages/currencies/src/data/icons/svg/syscoin.svg b/packages/currencies/src/data/icons/svg/syscoin.svg new file mode 100644 index 000000000..af2b8fceb --- /dev/null +++ b/packages/currencies/src/data/icons/svg/syscoin.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + +