diff --git a/README.md b/README.md index 8ea64b37..e289f76b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/app/libs/bitcoinjs-min.js b/app/libs/bitcoinjs-min.js index 81de75d2..3d0889c9 100644 --- a/app/libs/bitcoinjs-min.js +++ b/app/libs/bitcoinjs-min.js @@ -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", diff --git a/app/src/bitcoin/networks.coffee b/app/src/bitcoin/networks.coffee index d73ba28b..69b9492d 100644 --- a/app/src/bitcoin/networks.coffee +++ b/app/src/bitcoin/networks.coffee @@ -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 \ No newline at end of file diff --git a/app/src/preferences/defaults.coffee b/app/src/preferences/defaults.coffee index c5b2c815..d9ded9a2 100644 --- a/app/src/preferences/defaults.coffee +++ b/app/src/preferences/defaults.coffee @@ -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")