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

Add GameCredits #99

Open
wants to merge 1 commit 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ You can build the chrome application for other coins. Run `gulp clean build pack
- dogecoin
- dogecoin_test
- zencash
- gamecredits

Note: that the API is only available for bitcoin and testnet right now.

8 changes: 4 additions & 4 deletions app/libs/bitcoinjs-min.js
Original file line number Diff line number Diff line change
Expand Up @@ -14819,19 +14819,19 @@
feePerKb: 1e5,
estimateFee: estimateFee("viacointestnet")
},
gamerscoin: {
magicPrefix: "Gamerscoin Signed Message:\n",
gamecredits: {
magicPrefix: "gamecredits Signed Message:\n",
bip32: {
"public": 27108450,
"private": 27106558
},
pubKeyHash: 38,
scriptHash: 5,
scriptHash: 62,
wif: 166,
dustThreshold: 0,
dustSoftThreshold: 1e5,
feePerKb: 1e5,
estimateFee: estimateFee("gamerscoin")
estimateFee: estimateFee("gamecredits")
},
jumbucks: {
magicPrefix: "Jumbucks Signed Message:\n",
Expand Down
44 changes: 44 additions & 0 deletions app/src/bitcoin/networks.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -904,3 +904,47 @@ ledger.bitcoin.Networks =
dust: 10000
handleFeePerByte: no
areTransactionTimestamped: no

gamecredits:
name: 'gamecredits'
display_name: 'gamecredits'
chain: 'Legacy'
plural: 'gamecredits'
scheme: 'gamecredits:'
bolosAppName: 'GameCredits'
ticker: 'game'
tickerKey:
from: 'fromGAME'
to: 'toGAME'
bip44_coin_type: '101'
handleSegwit: no
isSegwitSupported: yes
version:
regular: 38
P2SH: 62
XPUB: 0x0488B21E
bitcoinjs: bitcoin.networks.gamecredits
dust: 10000
handleFeePerByte: no

gamecredits_segwit:
name: 'gamecredits_segwit'
display_name: 'gamecredits'
chain: 'Segwit'
plural: 'gamecredits'
scheme: 'gamecredits:'
bolosAppName: 'GameCredits'
ticker: 'game'
tickerKey:
from: 'fromGAME'
to: 'toGAME'
bip44_coin_type: '101'
handleSegwit: yes
isSegwitSupported: yes
version:
regular: 38
P2SH: 62
XPUB: 0x0488B21E
bitcoinjs: bitcoin.networks.gamecredits
dust: 10000
handleFeePerByte: no
43 changes: 43 additions & 0 deletions app/src/preferences/defaults.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -731,5 +731,48 @@ ledger.preferences.digibyte =
name: 'digiexplorer'
address: 'https://digiexplorer.info/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:
blockexplorer:
name: 'blockexplorer.gamecredits.com'
address: 'https://blockexplorer.gamecredits.com/transactions/%s'
discoveryGap: 20

ledger.preferences.gamecredits_segwit =
Display:
units:
bitcoin:
symbol: 'GAME'
unit: 8
milibitcoin:
symbol: 'mGAME'
unit: 5
microbitcoin:
symbol: 'μGAME'
unit: 2

# Coin preferences
Coin:
explorers:
blockexplorer:
name: 'blockexplorer.gamecredits.com'
address: 'https://blockexplorer.gamecredits.com/transactions/%s'
discoveryGap: 20


ledger.preferences.common.setCoin("bitcoin")