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

add fujicoin #37

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
14 changes: 14 additions & 0 deletions app/libs/bitcoinjs-min.js
Original file line number Diff line number Diff line change
Expand Up @@ -14763,6 +14763,20 @@
feePerKb: 1e4,
estimateFee: estimateFee("testnet")
},
fujicoin: {
magicPrefix: "FujiCoin Signed Message:\n",
bip32: {
"public": 76067358,
"private": 76066276
},
pubKeyHash: 36,
scriptHash: 16,
wif: 164,
dustThreshold: 0,
dustSoftThreshold: 1e5,
feePerKb: 1e5,
estimateFee: estimateFee("fujicoin")
},
litecoin: {
magicPrefix: "Litecoin Signed Message:\n",
bip32: {
Expand Down
26 changes: 26 additions & 0 deletions app/src/bitcoin/networks.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@

bitcoin.networks.fujicoin =
magicPrefix: '\x19FujiCoin Signed Message:\n',
bip32:
public: 0x0488b21e,
private: 0x0488ade4
pubKeyHash: 36
scriptHash: 16

bitcoin.networks.dash =
magicPrefix: '\x19DarkCoin Signed Message:\n',
bip32:
Expand Down Expand Up @@ -151,6 +159,24 @@ ledger.bitcoin.Networks =
dust: 5430
handleFeePerByte: yes

fujicoin:
name: 'FujiCoin'
plural: 'fujicoins'
scheme: 'fujicoin:'
bolosAppName: 'Fujicoin'
ticker: 'FJC'
tickerKey:
from: 'fromFJC'
to: 'toFJC'
bip44_coin_type: '75'
version:
regular: 36
P2SH: 16
XPUB: 0x0488b21e
bitcoinjs: bitcoin.networks.fujicoin
dust: 10000
handleFeePerByte: no

litecoin:
name: 'litecoin'
plural: 'litecoins'
Expand Down
21 changes: 21 additions & 0 deletions app/src/preferences/defaults.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,27 @@ ledger.preferences.testnet =
address: 'https://test-insight.bitpay.com/tx/%s'
discoveryGap: 20

ledger.preferences.fujicoin =
Display:
units:
bitcoin:
symbol: 'FJC'
unit: 8
milibitcoin:
symbol: 'mFJC'
unit: 5
microbitcoin:
symbol: 'μFJC'
unit: 2

# Coin preferences
Coin:
explorers:
fuji_explorer:
name: 'Fujicoin Explorer'
address: 'http://explorer.fujicoin.org/tx/%s'
discoveryGap: 20

ledger.preferences.litecoin =
Display:
units:
Expand Down