forked from BitGo/bitgo-utxo-lib
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Add ZCash support when creating transactions Merge branch 'add-zcash-support' of github.com:BitGo/bitcoinjs-lib into add-zcash-support Merge branch 'add-zcash-support' of github.com:BitGo/bitcoinjs-lib into add-zcash-support Add zcash to the network file Merge branch 'add-zcash-support' of github.com:BitGo/bitcoinjs-lib into add-zcash-support Reviewers: tyler, taylor, arik, alex Reviewed By: taylor, arik, alex Subscribers: taylor Differential Revision: https://phabricator.bitgo.com/D8644
- Loading branch information
Showing
19 changed files
with
518 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"phabricator.uri" : "https://phabricator.bitgo.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"linters": { | ||
"filename": { | ||
"type": "filename" | ||
}, | ||
"generated": { | ||
"type": "generated" | ||
}, | ||
"merge-conflict": { | ||
"type": "merge-conflict" | ||
}, | ||
"nolint": { | ||
"type": "nolint" | ||
}, | ||
"spelling": { | ||
"type": "spelling" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ coverage | |
node_modules | ||
.nyc_output | ||
npm-debug.log | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Coins supported by bitgo-bitcoinjs-lib | ||
|
||
const typeforce = require('typeforce') | ||
|
||
const coins = { | ||
BCH: 'bch', | ||
BTC: 'btc', | ||
BTG: 'btg', | ||
ZEC: 'zec' | ||
} | ||
|
||
coins.isBitcoin = function (value) { | ||
return typeforce.String(value) && value === coins.BTC | ||
} | ||
|
||
coins.isBitcoinCash = function (value) { | ||
return typeforce.String(value) && value === coins.BCH | ||
} | ||
|
||
coins.isBitcoinGold = function (value) { | ||
return typeforce.String(value) && value === coins.BTG | ||
} | ||
|
||
coins.isZcash = function (value) { | ||
return typeforce.String(value) && value === coins.ZEC | ||
} | ||
|
||
module.exports = coins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.