diff --git a/lib/coininfo.js b/lib/coininfo.js index 7a769b6..a97cbc7 100644 --- a/lib/coininfo.js +++ b/lib/coininfo.js @@ -13,6 +13,7 @@ var coins = [ require('./coins/dcr'), require('./coins/dgb'), require('./coins/doge'), + require('./coins/grlc'), require('./coins/grs'), require('./coins/ltc'), require('./coins/via'), diff --git a/lib/coins/grlc.js b/lib/coins/grlc.js new file mode 100644 index 0000000..5ee4057 --- /dev/null +++ b/lib/coins/grlc.js @@ -0,0 +1,56 @@ +// https://github.com/GarlicoinOrg/Garlicoin/blob/master/src/chainparams.cpp + +var common = { + name: 'Garlicoin', + unit: 'GRLC', +}; + +var main = Object.assign({}, { + hashGenesisBlock: '2ada80bf415a89358d697569c96eb98cdbf4c3b8878ac5722c01284492e27228', + port: 42069, + protocol: { + magic: 0xdbb6c6d2 + }, + bech32: 'grlc', + seedsDns: [ + 'dnsseed.rshaw.space', + 'dnsseed.garli.co.in' + ], + versions: { + bip32: { + private: 0x0488ade4, + public: 0x0488b21e + }, + bip44: 69420, + private: 0xb0, + public: 0x26, + scripthash: 0x32 + } +}, common); + +var test = Object.assign({}, { + hashGenesisBlock: 'b25004ec2dc27689999f9ee14856ee0464d7f73f3fae3cf43c1d40f89c141aea', + port: 42075, + protocol: { + magic: 0xf2c8d2fd + }, + bech32: 'tgrlc', + seedsDns: [ + 'dnsseed-testnet.rshaw.space' + ], + versions: { + bip32: { + private: 0x04358394, + public: 0x043587cf + }, + bip44: 1, + private: 0xef, + public: 0x6f, + scripthash: 0x3a + } +}, common); + +module.exports = { + main, + test +}; diff --git a/test/coininfo.test.js b/test/coininfo.test.js index 9a3476c..1103822 100644 --- a/test/coininfo.test.js +++ b/test/coininfo.test.js @@ -11,6 +11,7 @@ test('+ coininfo()', function (t) { 'doge', 'doge-test', 'ltc', 'ltc-test', 'via', 'via-test', + 'grlc', 'grlc-test', 'grs', 'grs-test', 'nbt', 'nmc',