Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Add "Gamecredits support" #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# Changelog
1.9.6
===
- Add Gamecredits Support

1.9.5
===
- Change customer support tab
- Changes to facilitate integration into an eletron environment

1.9.4
===
- Fix faulty "remember me"
Expand Down Expand Up @@ -366,4 +375,4 @@

1.0.0
=====
- First release of Ledger Wallet Chrome app
- First release of Ledger Wallet Chrome app
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

14 changes: 14 additions & 0 deletions app/libs/bitcoinjs-min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
33 changes: 32 additions & 1 deletion app/src/bitcoin/networks.coffee
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -512,4 +520,27 @@ ledger.bitcoin.Networks =
bitcoinjs: bitcoin.networks.poswallet
dust: 10000
handleFeePerByte: no
areTransactionTimestamped: yes
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

21 changes: 21 additions & 0 deletions app/src/preferences/defaults.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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")