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 1 commit
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
1.9.5

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably shouldn't update the CHANGELOG in a PR. 🤔

===
- Add "Gamecredits support"

1.9.4
===
- Fix faulty "remember me"
Expand Down
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.

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")