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

Add Bitcore Support #94

Open
wants to merge 2 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
52 changes: 52 additions & 0 deletions app/src/bitcoin/networks.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,58 @@ ledger.bitcoin.Networks =
notCompatible: yes
greyed: yes
message: yes

bitcore_unsplit:
name: 'bitcore_unsplit'
display_name: 'bitcore'
chain: 'Bitcore (Main)'
bolosAppName: 'Bitcore'
plural: 'bitcores'
ticker: 'btx'
scheme: 'bitcore:'
tickerKey:
from: 'fromBTX'
to: 'toBTX'
bip44_coin_type: '0'
handleSegwit: no
isSegwitSupported: no
version:
regular: 0
P2SH: 5
XPUB: 0x0488B21E
bitcoinjs: bitcoin.networks.bitcore
ws_chain: 'bitcoin'
dust: 5430
handleFeePerByte: yes
notCompatible: yes
greyed: no
message: yes

bitcore_split:
name: 'bitcore_split'
display_name: 'bitcore'
chain: 'Bitcore (Main)'
bolosAppName: 'Bitcore'
plural: 'bitcores'
ticker: 'btc'
scheme: 'bitcore:'
tickerKey:
from: 'fromBTX'
to: 'toBTX'
bip44_coin_type: '160'
handleSegwit: yes
isSegwitSupported: yes
version:
regular: 3
P2SH: 125
XPUB: 0x0488B21E
bitcoinjs: bitcoin.networks.bitcore
ws_chain: 'bitcoin'
dust: 5430
handleFeePerByte: yes
notCompatible: yes
greyed: yes
message: yes

bitcoin_gold_unsplit:
name: 'bitcoin_gold_unsplit'
Expand Down
37 changes: 37 additions & 0 deletions app/src/preferences/defaults.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -716,5 +716,42 @@ ledger.preferences.digibyte =
name: 'digiexplorer'
address: 'https://digiexplorer.info/tx/%s'
discoveryGap: 20


ledger.preferences.bitcore_unsplit =
Display:
units:
bitcoin:
symbol: 'BTX'
unit: 8

# Coin preferences
Coin:
explorers:
cryptoID:
name: 'CryptoID'
address: 'https://chainz.cryptoid.info/btx/tx.dws?%s.htm'
coresight_explorer:
name: 'Insight Block Explorer'
address: 'http://insight.bitcore.cc/tx/%s'
discoveryGap: 20

ledger.preferences.bitcore_split =
Display:
units:
bitcoin:
symbol: 'BTX'
unit: 8

# Coin preferences
Coin:
explorers:
cryptoID:
name: 'CryptoID'
address: 'https://chainz.cryptoid.info/btx/tx.dws?%s.htm'
coresight_explorer:
name: 'Insight Block Explorer'
address: 'http://insight.bitcore.cc/tx/%s'
discoveryGap: 20

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