From c55d787f0780cecf0617a3d15a8ef6407365c290 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 29 Sep 2017 14:46:09 +0200 Subject: [PATCH 1/4] Add "Gamecredits support" --- CHANGELOG.md | 4 ++++ README.md | 1 + app/src/bitcoin/networks.coffee | 33 ++++++++++++++++++++++++++++- app/src/preferences/defaults.coffee | 21 ++++++++++++++++++ 4 files changed, 58 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87203254..58bf229d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +1.9.5 +=== +- Add "Gamecredits support" + 1.9.4 === - Fix faulty "remember me" diff --git a/README.md b/README.md index d8c07531..ed4d4c17 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ You can build the chrome application for other coins. Run `gulp clean build pack - litecoin_test - dogecoin - dogecoin_test + - gamecredits Note: that the API is only available for bitcoin and testnet right now. diff --git a/app/src/bitcoin/networks.coffee b/app/src/bitcoin/networks.coffee index 9b734607..d6389224 100644 --- a/app/src/bitcoin/networks.coffee +++ b/app/src/bitcoin/networks.coffee @@ -1,3 +1,11 @@ +bitcoin.networks.gamecredits = + magicPrefix: '\x19Gamecredits Signed Message:\n', + bip32: + public: 0x019da462, + private: 0x05358394 + pubKeyHash: 26 + scriptHash: 5 + bitcoin.networks.dash = magicPrefix: '\x19DarkCoin Signed Message:\n', bip32: @@ -512,4 +520,27 @@ ledger.bitcoin.Networks = bitcoinjs: bitcoin.networks.poswallet dust: 10000 handleFeePerByte: no - areTransactionTimestamped: yes \ No newline at end of file + areTransactionTimestamped: yes + + gamecredits: + name: 'gamecredits' + display_name: 'gamecredits' + chain: 'Gamecredits' + plural: 'gamecredits' + scheme: 'gamecredits:' + bolosAppName: 'Gamecredits' + ticker: 'game' + tickerKey: + from: 'fromGAME' + to: 'toGAME' + bip44_coin_type: '101' + handleSegwit: no + isSegwitSupported: no + version: + regular: 38 + P2SH: 5 + XPUB: 0x019D9CFE + bitcoinjs: bitcoin.networks.gamecredits + dust: 10000 + handleFeePerByte: no + diff --git a/app/src/preferences/defaults.coffee b/app/src/preferences/defaults.coffee index c8a1c9dd..b4e01777 100644 --- a/app/src/preferences/defaults.coffee +++ b/app/src/preferences/defaults.coffee @@ -565,4 +565,25 @@ ledger.preferences.peercoin = address: 'https://peercoin.mintr.org/tx/%s' discoveryGap: 20 +ledger.preferences.gamecredits = + Display: + units: + bitcoin: + symbol: 'GAME' + unit: 8 + milibitcoin: + symbol: 'mGAME' + unit: 5 + microbitcoin: + symbol: 'μGAME' + unit: 2 + + # Coin preferences + Coin: + explorers: + gameon: + name: 'blockexplorer.gamecredits.com' + address: 'https://blockexplorer.gamecredits.com/transactions/%s' + discoveryGap: 20 + ledger.preferences.common.setCoin("bitcoin") From cd7aedfeeb314b323a84afc7fa92877b6fdee4fb Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 29 Sep 2017 14:48:48 +0200 Subject: [PATCH 2/4] Add "Gamecredits support" --- app/src/bitcoin/networks.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/bitcoin/networks.coffee b/app/src/bitcoin/networks.coffee index d6389224..059267ed 100644 --- a/app/src/bitcoin/networks.coffee +++ b/app/src/bitcoin/networks.coffee @@ -521,7 +521,7 @@ ledger.bitcoin.Networks = dust: 10000 handleFeePerByte: no areTransactionTimestamped: yes - + gamecredits: name: 'gamecredits' display_name: 'gamecredits' From 3a0b2c0d081db5c197cafbdca642e675900ae794 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 29 Sep 2017 15:13:56 +0200 Subject: [PATCH 3/4] Add "Gamecredits support" bitcoinjs-min --- app/libs/bitcoinjs-min.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/libs/bitcoinjs-min.js b/app/libs/bitcoinjs-min.js index 81de75d2..b92813db 100644 --- a/app/libs/bitcoinjs-min.js +++ b/app/libs/bitcoinjs-min.js @@ -14777,6 +14777,20 @@ feePerKb: 1e5, estimateFee: estimateFee("litecoin") }, + gamecredits: { + magicPrefix: "Gamecredits Signed Message:\n", + bip32: { + "public": 27108450, + "private": 27106558 + }, + pubKeyHash: 38, + scriptHash: 5, + wif: 166, + dustThreshold: 0, + dustSoftThreshold: 1e5, + feePerKb: 1e5, + estimateFee: estimateFee("gamecredits") + }, dogecoin: { magicPrefix: "Dogecoin Signed Message:\n", bip32: { From 5319380ee30a3899f6b916e485c9e566832f25c7 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 9 Oct 2017 17:34:45 +0200 Subject: [PATCH 4/4] update changelog.md --- CHANGELOG.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58bf229d..29ca8dc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ # Changelog +1.9.6 +=== +- Add Gamecredits Support + 1.9.5 === -- Add "Gamecredits support" +- Change customer support tab +- Changes to facilitate integration into an eletron environment 1.9.4 === @@ -370,4 +375,4 @@ 1.0.0 ===== -- First release of Ledger Wallet Chrome app +- First release of Ledger Wallet Chrome app \ No newline at end of file