Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
453 commits
Select commit Hold shift + click to select a range
d83e900
Merge pull request #3064 from Gamboster/ref/wyreOrdersBodyArguments
matiu Feb 9, 2021
8a68725
templates & test
rastajpa Feb 9, 2021
b47fc52
BWS Feat: get services data
Gamboster Feb 10, 2021
0f2956b
respect the dust limit for change
jcramer Feb 10, 2021
7607ac0
fix _estimateSize()
jcramer Feb 10, 2021
77951c6
update unit test expected change amounts
jcramer Feb 10, 2021
9692402
Merge pull request #3064 from Gamboster/ref/wyreOrdersBodyArguments
matiu Feb 9, 2021
e8601d8
initial bitcore-lib-doge commit
Feb 10, 2021
081f806
Merge pull request #3071 from jcramer/min-change
matiu Feb 11, 2021
0fe2882
Merge pull request #3070 from Gamboster/feat/servicesData
matiu Feb 11, 2021
1a4c350
v8.24.2
matiu Jan 27, 2021
b474f3f
Merge pull request #3066 from gonzaloleon/new/add-clearCache-endpoint
matiu Feb 11, 2021
1abb37c
lint
matiu Feb 11, 2021
2bebfa0
Merge pull request #3073 from matiu/ref/ref-push-logs
matiu Feb 11, 2021
dad2f02
update networks with correct chain params
Feb 11, 2021
3d630fa
update seeds
Feb 11, 2021
011d676
add correct pubkey hashheader & network magic bytes
Feb 11, 2021
4f638bb
Add correct test data base58_keys_valid and base58_keys_invalid
Feb 12, 2021
32ee41e
add uri info
Feb 12, 2021
aa4bca6
Address test
rastajpa Feb 12, 2021
3e59198
Doge support
kajoseph Feb 12, 2021
65a3db7
Merge pull request #3 from rastajpa/fix/address-test
bsnowden3 Feb 14, 2021
ec1bbbe
update sighash data
Feb 14, 2021
e3cb3ba
update doge transaction constants
Feb 14, 2021
b336197
update networks tests
Feb 14, 2021
3e47b17
update bitcoind bip 32 compliance data
Feb 15, 2021
2c33b96
privatekey & publickkey tests
rastajpa Feb 15, 2021
35fd429
update hdpublickey testss with correct data
Feb 15, 2021
d58109e
update hdprivatekey tests
Feb 15, 2021
84ab7ae
Merge pull request #4 from rastajpa/fix/test-01
bsnowden3 Feb 15, 2021
cea7a2f
update test data for script.js
Feb 15, 2021
a003897
Merge branch 'master' of https://github.com/bitpay/bitcore into feat/…
Feb 15, 2021
1ccc02f
update script/intereter test simple transaction
Feb 15, 2021
cf39b36
add detailed comments for transaction constants
Feb 16, 2021
3773f2f
add detailed comments for transaction constants
Feb 16, 2021
df43cd9
transacions tests
rastajpa Feb 16, 2021
681daee
adding cwc changes for dogecoin
sbhatnagar30 Feb 16, 2021
bea0ef2
Merge remote-tracking branch 'bernard/feat/bitcore-lib-doge' into cwc…
sbhatnagar30 Feb 16, 2021
0127113
Merge pull request #5 from rastajpa/fix/test-02
bsnowden3 Feb 16, 2021
19f3ea6
Merge branch 'master' of github.com:bitpay/bitcore
jguthrie7 Feb 16, 2021
863d772
fix merge
Feb 17, 2021
4ead1fe
comment out deserialize and transaction tests
Feb 17, 2021
cecce37
fix hdkeycache test
Feb 17, 2021
0d27243
add bitcore-lib-doge tests to root package.json
Feb 17, 2021
012026f
add bitcore-lib-doge to docker
Feb 17, 2021
a2a1306
edit readme, delete docs/, benchmark/
Feb 17, 2021
dc000e9
rm Contributing.md
Feb 17, 2021
cee725c
edit package.json, repository url
Feb 17, 2021
ff3143d
rm test/docs.js
Feb 17, 2021
a575733
Merge pull request #3075 from bsnowden3/feat/bitcore-lib-doge
matiu Feb 17, 2021
e0b078c
Merge branch 'master' of github.com:bitpay/bitcore into feature/doge
kajoseph Feb 17, 2021
fb3111f
Use bitcore-lib-doge
kajoseph Feb 17, 2021
d515f7b
Merge pull request #3074 from kajoseph/feature/doge
matiu Feb 17, 2021
04ee467
Merge branch 'master' of github.com:bitpay/bitcore into cwcDoge
sbhatnagar30 Feb 17, 2021
ff52f1b
adding bitcore-lib-doge
sbhatnagar30 Feb 17, 2021
388b87d
transaction tests fixed for doge
rastajpa Feb 17, 2021
1c2e2e5
Merge pull request #3080 from rastajpa/fix/doge-transaction-tests
matiu Feb 18, 2021
de7af8b
add segwit for doge
Feb 18, 2021
d259136
commit package.json
Feb 18, 2021
f35ef19
correct transction test and transaction.js
Feb 18, 2021
d2cc7b4
add finished deserialize test
Feb 18, 2021
d353b3c
commit tx_invalid and tx_valid
Feb 18, 2021
27cb721
correct deserialize.js
Feb 18, 2021
857a23e
add CHECKSEQUENCE_VERIFY falg
Feb 18, 2021
cab81a4
Merge pull request #3076 from sbhatnagar30/cwcDoge
matiu Feb 19, 2021
9faccd2
[FEAT](BWS/BWC) - Doge Support
gabrielbazan7 Feb 17, 2021
5dfa933
update interpreter
Feb 19, 2021
be1a534
adding regtest network
sbhatnagar30 Feb 19, 2021
626744f
add dogified transaction test
Feb 19, 2021
6f91573
regtest changes
sbhatnagar30 Feb 19, 2021
5888a92
more changes
sbhatnagar30 Feb 19, 2021
87e6e8a
fixing methods and tests
sbhatnagar30 Feb 19, 2021
2f8320e
fixing test
sbhatnagar30 Feb 19, 2021
03c4097
add network magic, port and dnsseeds values for regtest
sbhatnagar30 Feb 22, 2021
0609039
Tests & doge config
rastajpa Feb 23, 2021
87e5212
prettier & lint
rastajpa Feb 23, 2021
9f0f565
Merge pull request #7 from rastajpa/fix/bws-test-01
gabrielbazan7 Feb 23, 2021
509e74e
Adds bitcore-p2p-dog
SethMcGuire Feb 23, 2021
dad7b8e
Merge branch 'master' of https://github.com/bitpay/bitcore into feat/…
Feb 23, 2021
8a2ede7
update interpreter with right flags and wrapped BN type
Feb 24, 2021
49f79b1
WIP aux header parse
kajoseph Feb 24, 2021
ecca4fc
Merge branch 'addDogeRegtest'
nitsujlangston Feb 24, 2021
e0d081c
Remove try..catch
kajoseph Feb 24, 2021
0dc28a1
Merge block verification
kajoseph Feb 24, 2021
42271dd
Missing dependency
kajoseph Feb 24, 2021
6e7867d
AuxPoW bit filter
kajoseph Feb 24, 2021
5666771
fixes for bitcore-lib-doge
rastajpa Feb 24, 2021
0e666fe
Merge pull request #8 from rastajpa/fix/bws-test-02
gabrielbazan7 Feb 24, 2021
ed1ec4e
temp removed tests
kajoseph Feb 24, 2021
24db43b
Merge branch 'master' of github.com:bitpay/bitcore into feature/doge
kajoseph Feb 24, 2021
6a88078
pass in network to create private key
sbhatnagar30 Feb 24, 2021
49ce10f
fix mongo error log
sbhatnagar30 Feb 24, 2021
c8c5b31
Add raw test data
kajoseph Feb 24, 2021
6313e1b
Adds bitcore-p2p-doge tests
SethMcGuire Feb 24, 2021
3554e7e
fixes
gabrielbazan7 Feb 24, 2021
5b914f5
Skip test for now
SethMcGuire Feb 24, 2021
5c78227
Merge branch 'feature/doge'
nitsujlangston Feb 24, 2021
8682504
Merge branch 'master' of github.com:bitpay/bitcore
jguthrie7 Feb 25, 2021
ea78b05
Merge pull request #3079 from gabrielbazan7/feat/doge-support
matiu Feb 25, 2021
0c2639c
Merge pull request #3085 from sbhatnagar30/passInNetworkForPrivKey
matiu Feb 25, 2021
2b571b4
Merge pull request #3047 from sbhatnagar30/textFileStorage
matiu Feb 25, 2021
1b950cd
v8.25.0
matiu Feb 25, 2021
3737336
v8.25.1
matiu Feb 25, 2021
0a6619e
fix transaction signing and cleanup
sbhatnagar30 Feb 25, 2021
3902d0a
Change protocolVersion to 70003
SethMcGuire Feb 25, 2021
11053e9
add feerate
sbhatnagar30 Feb 25, 2021
e06b529
update docs and package.json for doge
SethMcGuire Feb 25, 2021
789f86b
update dockerfile
SethMcGuire Feb 25, 2021
de16bf6
add p2p doge scripts
SethMcGuire Feb 25, 2021
7c51212
update docs
SethMcGuire Feb 25, 2021
8621d70
fix wallet-paypro
sbhatnagar30 Feb 25, 2021
0b156ae
fix feePerKb
sbhatnagar30 Feb 25, 2021
3b8d34e
Updates bitcore-lib-doge
SethMcGuire Feb 25, 2021
d9a5f45
fixing fee
sbhatnagar30 Feb 25, 2021
29dbbdd
derive to deriveChild
sbhatnagar30 Feb 25, 2021
6069b14
Merge pull request #3091 from SethMcGuire/bitcore-p2p-doge
matiu Feb 25, 2021
41a0d83
Merge pull request #3092 from sbhatnagar30/fixDogeMore
matiu Feb 25, 2021
66ddca8
publish doge modules
matiu Feb 25, 2021
55ae9d6
Merge pull request #3094 from matiu/ver8.25.1
matiu Feb 25, 2021
b33583a
deriveChild function added
rastajpa Feb 26, 2021
9a00dda
deriveChild function added
rastajpa Feb 26, 2021
0eef733
tests fixed
rastajpa Feb 26, 2021
dedb2d9
tests fixed
rastajpa Feb 26, 2021
a4ac21e
merge
Feb 26, 2021
69cf9e6
xpriv/xpub formats & tests
rastajpa Feb 26, 2021
3622406
Transaction tests; Buffer.from
kajoseph Feb 26, 2021
2f9234d
Merge pull request #3098 from rastajpa/ref/bitcore-lib-doge
matiu Feb 26, 2021
4ac08bb
Merge pull request #3097 from rastajpa/fix/bitcore-lib-ltc-01
matiu Feb 26, 2021
153269d
Merge pull request #3096 from rastajpa/fix/bitcore-lib-doge-01
matiu Feb 26, 2021
f171dc0
fix tests
Feb 26, 2021
56670f7
Merge branch 'feat/bitcore-lib-doge-tests' into dogeLibTests
bsnowden3 Feb 26, 2021
09461c5
Merge pull request #6 from kajoseph/dogeLibTests
bsnowden3 Feb 26, 2021
7a2e814
merge
Feb 26, 2021
a416c9e
Merge branch 'feat/bitcore-lib-doge-tests' of github.com:bsnowden3/bi…
kajoseph Feb 26, 2021
ed1ebe5
Merge branch 'master' of github.com:bitpay/bitcore
jguthrie7 Feb 26, 2021
b675296
Merge pull request #7 from kajoseph/dogeLibTests
bsnowden3 Feb 26, 2021
2dafb33
Merge branch 'feat/bitcore-lib-doge-tests' of https://github.com/bsno…
Feb 26, 2021
630ede3
Merge branch 'master' of https://github.com/bitpay/bitcore into feat/…
Feb 26, 2021
3eb5d86
fix signTx
sbhatnagar30 Feb 28, 2021
93f916b
commit lerna changes
sbhatnagar30 Feb 28, 2021
def2f69
add to wallet script
sbhatnagar30 Feb 28, 2021
e4e1ab9
doge tests
rastajpa Feb 26, 2021
a2da4b0
Merge pull request #3099 from rastajpa/fix/bws-test-1
matiu Mar 1, 2021
cc336f3
[REF] bitcore api
gabrielbazan7 Mar 1, 2021
c1ce0a7
Merge pull request #3101 from gabrielbazan7/fix/bitcore-api
matiu Mar 1, 2021
ccbc379
v8.25.2
matiu Feb 25, 2021
3408888
Merge pull request #3102 from matiu/ver8.25.2
matiu Mar 1, 2021
ccfe06a
Merge branch 'master' of github.com:bitpay/bitcore into passInSigning…
sbhatnagar30 Mar 1, 2021
3628eba
updating and removing unused dependency
sbhatnagar30 Mar 1, 2021
a8c8605
Merge pull request #3100 from sbhatnagar30/passInSigningKeys
matiu Mar 1, 2021
93e3928
v8.25.3
matiu Mar 1, 2021
abdb9ba
ver8.25.3
matiu Mar 1, 2021
3bbc8c4
Merge pull request #3103 from matiu/veer8.25.3
matiu Mar 1, 2021
9e4f4fb
Merge branch 'master' of github.com:bitpay/bitcore
jguthrie7 Mar 2, 2021
8b79f77
[FIX] Doge fee
gabrielbazan7 Mar 2, 2021
dcc3a3d
WIP interpreter tests
kajoseph Mar 2, 2021
4b9e54f
Merge pull request #8 from kajoseph/dogeLibTests
bsnowden3 Mar 2, 2021
55f5be0
Merge branch 'feat/bitcore-lib-doge-tests' of https://github.com/bsno…
Mar 2, 2021
da33168
Merge pull request #3104 from gabrielbazan7/fix/doge-fee
matiu Mar 2, 2021
27e3eff
Merge pull request #3072 from jcramer/fee-estimate
matiu Mar 2, 2021
0431419
add hashOutputs empty Buffer size 32
Mar 2, 2021
b3edba2
Merge branch 'master' of https://github.com/bitpay/bitcore into feat/…
Mar 2, 2021
09d7a48
Fix auxpow tx witnesses parsing
kajoseph Mar 2, 2021
9743f61
Merge branch 'master' of github.com:bitpay/bitcore
jguthrie7 Mar 3, 2021
abf7fbc
add asset for broken image
rachitajoshi Mar 3, 2021
8702881
update readme
rachitajoshi Mar 3, 2021
8fd39eb
update logos
rachitajoshi Mar 3, 2021
d19db9c
update block details
rachitajoshi Mar 3, 2021
bed6855
Merge branch 'fix-build-errors'
nitsujlangston Mar 3, 2021
b372edd
doge support fixes
nitsujlangston Mar 3, 2021
e016ee6
Merge branch 'dogeFixes'
nitsujlangston Mar 3, 2021
fbc0d54
lint
kajoseph Mar 3, 2021
d4e98cb
Merge branch 'feature/doge' of github.com:kajoseph/bitcore
nitsujlangston Mar 3, 2021
3da539e
add missing assets, and tweak dropdown language
rachitajoshi Mar 3, 2021
000e6d6
Fix couple of tests
kajoseph Mar 3, 2021
fe84a00
backward compatibility
rastajpa Mar 3, 2021
a817354
update blue to be brand blue
rachitajoshi Mar 3, 2021
348b05f
Few more fixes
kajoseph Mar 3, 2021
8724529
change home button text to be more intuitive
rachitajoshi Mar 3, 2021
1b9e742
Merge branch 'add-missing-assets-to-the-currency-selector'
nitsujlangston Mar 3, 2021
186f82a
Last test fix
kajoseph Mar 3, 2021
1aa3229
fix tests
Mar 3, 2021
22eaec3
Merge pull request #9 from kajoseph/dogeLibTests
bsnowden3 Mar 3, 2021
9d00ab4
Fix Transaction tests; Cleanup
kajoseph Mar 3, 2021
beab286
Merge pull request #10 from kajoseph/dogeLibTests
bsnowden3 Mar 3, 2021
2e0feb1
Merge branch 'master' of https://github.com/bitpay/bitcore into feat/…
Mar 3, 2021
21aadc0
rm ltc files
Mar 3, 2021
544dec7
add err string for max_invalid_size
Mar 3, 2021
5eba3b9
Merge pull request #3068 from rastajpa/ref/push-notifications-01
matiu Mar 3, 2021
5b4f43c
new Buffer
Mar 3, 2021
5a624ac
v8.25.4
matiu Mar 3, 2021
b552144
Merge pull request #3110 from matiu/ver8.25.4
matiu Mar 3, 2021
9323e41
new Buffer
Mar 3, 2021
e8407f1
new Buffer
Mar 3, 2021
8dc8fe1
Implement regex based smart searching to limit api calls made for eac…
unusualbob Mar 4, 2021
37ba020
Add automatic skip of results page when only one result is returned, …
unusualbob Mar 4, 2021
9f97692
Merge branch 'master' of github.com:bitpay/bitcore into dogeLibTests
kajoseph Mar 4, 2021
ec17713
Merge branch 'feat/bitcore-lib-doge-tests' of github.com:bsnowden3/bi…
kajoseph Mar 4, 2021
2cfe736
Remove bech32 and witness hashing addresses
kajoseph Mar 4, 2021
387d0b0
merge master into branch
Mar 4, 2021
89c1361
merge kenny joseph; fix merge conflicts
Mar 4, 2021
0d6aa18
fix paypro fees for DOGE
matiu Mar 5, 2021
2164a10
rm logs
matiu Mar 5, 2021
5b36074
Merge pull request #3112 from matiu/bug/doge-fees
matiu Mar 5, 2021
fc7806b
fix MAX_FEE for dogee
matiu Mar 5, 2021
b41e13d
Merge pull request #3113 from matiu/bug/doge-fees2
matiu Mar 5, 2021
331713f
Merge pull request #3109 from bsnowden3/feat/bitcore-lib-doge-tests
matiu Mar 5, 2021
14fb07a
update package.json
matiu Mar 5, 2021
4f4d333
Merge pull request #3114 from matiu/chore/update-package
matiu Mar 5, 2021
c43fa76
.
matiu Mar 5, 2021
58049c2
update versions
matiu Mar 5, 2021
3283710
Merge pull request #3115 from matiu/chore/update-package2
matiu Mar 5, 2021
115fce9
lint
matiu Mar 5, 2021
20c0e2f
v8.25.7
matiu Mar 5, 2021
6502ca1
Merge pull request #3116 from matiu/ver8.25.7
matiu Mar 5, 2021
e57062d
Add ETH to blockheight, fix doge search when using a prefix
unusualbob Mar 5, 2021
d919977
Merge branch 'performance/smartSearch'
nitsujlangston Mar 5, 2021
447c3e3
AuxPow cleanup; Tests
kajoseph Mar 10, 2021
f23db8c
Merge branch 'master' of github.com:bitpay/bitcore into feature/doge
kajoseph Mar 10, 2021
ff8eb21
Add doge-p2p to node
kajoseph Mar 10, 2021
df558f9
[REF] Insufficient funds for fee error - return fee values
gabrielbazan7 Mar 18, 2021
eaf1d17
Add param to include aux PoW header for hash
kajoseph Mar 22, 2021
d1a750f
Fix difficulty
kajoseph Mar 23, 2021
c09780b
More cleanup
kajoseph Mar 23, 2021
ca9b8b7
Merge pull request #3121 from gabrielbazan7/ref/return-fee
matiu Mar 29, 2021
0099da9
Merge pull request #3124 from kajoseph/feature/doge
matiu Mar 29, 2021
d984874
new endpoint to get nonce
rastajpa Mar 25, 2021
ea19a89
get nonce via bwc
rastajpa Mar 30, 2021
1981e5e
[FIX] Estimate gas
gabrielbazan7 Mar 31, 2021
a97050d
Merge branch 'master' of github.com:bitpay/bitcore
jguthrie7 Apr 8, 2021
e4643b6
v8.25.8
matiu Apr 9, 2021
e3706da
ver8.25.8
matiu Apr 9, 2021
a008bb4
ver 8.25.8
matiu Apr 12, 2021
777d62a
Merge pull request #3134 from matiu/ver8.25.8
matiu Apr 12, 2021
a5da113
Always 64 byte schnorr signatures
DesWurstes Apr 14, 2021
b6a4056
Merge pull request #3135 from DesWurstes/patch-2
matiu Apr 14, 2021
6a99b27
Merge pull request #3127 from gabrielbazan7/fix/estimateGas
matiu Apr 19, 2021
6636d5a
[FIX] Show the correct error when there are no economically worth utx…
gabrielbazan7 Apr 26, 2021
2eb9316
Merge branch 'master' of github.com:bitpay/bitcore
jguthrie7 Apr 27, 2021
c36ff32
Add unconfirmed coins to historical wallet balance query
jguthrie7 Apr 27, 2021
1c2536a
Merge branch 'feature/unconfirmedAddedToHistoricalBalance'
nitsujlangston Apr 28, 2021
ede9c1b
[FIX] wbtc rates
gabrielbazan7 May 4, 2021
57efeab
Accessibility improvements completed
tshumaker-bp May 4, 2021
05d820a
improved naming of header class
tshumaker-bp May 4, 2021
4c26d70
Merge branch 'insight/ADA-improvements'
nitsujlangston May 5, 2021
ec4c92d
Merge branch 'fix/small-utxos'
nitsujlangston May 5, 2021
ebf7330
Merge branch 'fix/rates-wbtc'
nitsujlangston May 5, 2021
21e745d
Merge branch 'feat/getNonce'
nitsujlangston May 5, 2021
77bae40
Fix Send Max for Doge: increase max fee per kb
cmgustavo May 7, 2021
bc69346
Fix test
May 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ COPY ./packages/crypto-wallet-core/package-lock.json ./packages/crypto-wallet-c
COPY ./packages/bitcore-lib-ltc/package.json ./packages/bitcore-lib-ltc/package.json
COPY ./packages/bitcore-lib-ltc/package-lock.json ./packages/bitcore-lib-ltc/package-lock.json

COPY ./packages/bitcore-lib-doge/package.json ./packages/bitcore-lib-doge/package.json
COPY ./packages/bitcore-lib-doge/package-lock.json ./packages/bitcore-lib-doge/package-lock.json

COPY ./packages/bitcore-p2p-doge/package.json ./packages/bitcore-p2p-doge/package.json
COPY ./packages/bitcore-p2p-doge/package-lock.json ./packages/bitcore-p2p-doge/package-lock.json


RUN npm install
RUN npm run bootstrap
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Bitcore
![Circle CI](https://circleci.com/gh/bitpay/bitcore/tree/master.svg?style=shield)



<p align="center">
<img alt="npm" src="https://img.shields.io/npm/v/bitcore-lib">
<img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/bitpay/bitcore">
<a href="https://opensource.org/licenses/MIT/" target="_blank"><img alt="MIT License" src="https://img.shields.io/badge/License-MIT-blue.svg" style="display: inherit;"/></a>
<img alt="GitHub contributors" src="https://img.shields.io/github/contributors/bitpay/bitcore">
<br>
<img src="https://circleci.com/gh/bitpay/bitcore.svg?style=shield" alt="master build">
</p>



**Infrastructure to build Bitcoin and blockchain-based applications for the next generation of financial technology.**

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "2.9.1",
"version": "8.22.2",
"version": "8.25.8",
"packages": [
"packages/*"
]
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": "8.22.2",
"version": "8.25.8",
"prettier": {
"singleQuote": true,
"printWidth": 120
},
"scripts": {
"build": "docker build -t bitcore-node .",
"build": "docker build -t bitcore-node . ",
"watch": "./node_modules/.bin/lerna run watch --parallel",
"postinstall": "npm run bootstrap && npm run compile",
"bootstrap": "./node_modules/.bin/lerna bootstrap",
Expand Down Expand Up @@ -41,10 +41,14 @@
"ci:bitcore-lib-cash": "./ci.sh 'npm run test:bitcore-lib-cash'",
"test:bitcore-lib-ltc": "cd ./packages/bitcore-lib-ltc && npm run test",
"ci:bitcore-lib-ltc": "./ci.sh 'npm run test:bitcore-lib-ltc'",
"test:bitcore-lib-doge": "cd ./packages/bitcore-lib-doge && npm run test",
"ci:bitcore-lib-doge": "./ci.sh 'npm run test:bitcore-lib-doge'",
"test:bitcore-p2p": "cd ./packages/bitcore-p2p && npm run test",
"ci:bitcore-p2p": "./ci.sh 'npm run test:bitcore-p2p'",
"test:bitcore-p2p-cash": "cd ./packages/bitcore-p2p-cash && npm run test",
"ci:bitcore-p2p-cash": "./ci.sh 'npm run test:bitcore-p2p-cash'",
"test:bitcore-p2p-doge": "cd ./packages/bitcore-p2p-doge && npm run test",
"ci:bitcore-p2p-doge": "./ci.sh 'npm run test:bitcore-p2p-doge'",
"test:bitcore-mnemonic": "cd ./packages/bitcore-mnemonic && npm run test",
"ci:bitcore-mnemonic": "./ci.sh 'npm run test:bitcore-mnemonic'",
"test:insight": "cd ./packages/insight && npm run test",
Expand Down
2 changes: 1 addition & 1 deletion packages/bitcore-build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/bitcore-build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitcore-build",
"version": "8.22.2",
"version": "8.25.8",
"description": "A helper for common tasks to build bitcore modules'",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions packages/bitcore-client/bin/wallet
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ program
.command('send', 'simple send from wallet to an address').alias('s')
.command('sign', 'sign a transaction')
.command('token', 'add an ERC20 token to an eth wallet')
.command('storage', 'storage util for wallets')
.command('sign-message', 'sign a message with an address')
.parse(process.argv);


Expand Down
2 changes: 1 addition & 1 deletion packages/bitcore-client/bin/wallet-create
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ program
)
.option('--baseUrl [host]', 'optional - Specify custom Bitcore API URL')
.option('--path [path]', 'optional - Custom wallet storage path')
.option('--storageType [storageType]', 'optional - name of the database to use (Mongo or Level)')
.option('--storageType [storageType]', 'optional - name of the database to use (Mongo | Level | TextFile)')
.option('--phrase [phrase]', 'optional - Seed using existing backup phrase')
.option('--lite [lite]', 'optional - Create a wallet lite')
.parse(process.argv);
Expand Down
15 changes: 8 additions & 7 deletions packages/bitcore-client/bin/wallet-paypro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const promptly = require('promptly');
const cwc = require('crypto-wallet-core');
const libs = {
BTC: cwc.BitcoreLib,
BCH: cwc.BitcoreLibCash
BCH: cwc.BitcoreLibCash,
DOGE: cwc.BitcoreLibDoge
}

program
Expand All @@ -18,10 +19,11 @@ program
.option('--from [from]', 'optional - from account for XRP')
.option('--payProUri [payProUri]', 'REQUIRED - payment protocol URI')
.option('--token, [token]', 'optional - ERC-20 token to pay with')
.option('--storageType [storageType]', 'optional - name of the database to use (Mongo | Level | TextFile)')
.parse(process.argv);

const main = async () => {
const { name, path, token, nonce: inputNonce, from: inputFrom } = program;
const { name, path, token, nonce: inputNonce, from: inputFrom, storageType } = program;
let { payProUri } = program;
if (payProUri.includes('=')) {
const split = payProUri.split('=');
Expand Down Expand Up @@ -56,11 +58,11 @@ const main = async () => {

// Payment-Request
let wallet;
wallet = await Wallet.loadWallet({ name, path });
wallet = await Wallet.loadWallet({ name, path, storageType });
const from = inputFrom || await wallet.deriveAddress(0);
let nonce;
const { chain } = wallet;
if (!['BTC', 'BCH'].includes(chain)) {
if (!['BTC', 'BCH', 'DOGE'].includes(chain)) {
nonce = inputNonce || await wallet.getNonce();
}
const currency = token || chain;
Expand Down Expand Up @@ -99,7 +101,6 @@ const main = async () => {
const params = { recipients, feeRate, from, invoiceID, data, value, utxos };
params.nonce = Number(nonce);
const unsignedTx = await wallet.newTx(params);
unsignedTransactions
console.log(`unsignedRawTx: ${unsignedTx}`);

// Sign tx
Expand All @@ -114,7 +115,7 @@ const main = async () => {
console.log(`txid: ${txid}`);

let weightedSize;
if (['BTC', 'BCH'].includes(chain)) {
if (['BTC', 'BCH', 'DOGE'].includes(chain)) {
const transaction = new libs[chain].Transaction(signedTx);
weightedSize = transaction._estimateSize();
}
Expand All @@ -141,7 +142,7 @@ const main = async () => {
const sendPaymentResponse = await request({
method: 'POST',
uri: payProUri,
json: { chain, currency, transactions: signedTransactions},
json: { chain, currency, transactions: signedTransactions },
headers: {
'Content-Type' : 'application/payment',
'x-paypro-version' : '2'
Expand Down
46 changes: 46 additions & 0 deletions packages/bitcore-client/bin/wallet-sign-message
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env node

'use strict';

const program = require('../ts_build/program');
const { Wallet } = require('../ts_build/wallet');
const promptly = require('promptly');
const { BitcoreLib } = require('crypto-wallet-core');

program
.version(require('../package.json').version)
.option('--name <name>', 'REQUIRED - Wallet Name')
.option('--index <index>', 'REQUIRED - address index to sign message with)')
.option('--message <message>', 'REQUIRED - message to be signed')
.option('--change [change]', 'optional - if the address is a change address')
.option('--path [path]', 'optional - Custom wallet storage path')
.option('--storageType [storageType]', 'optional - name of the database to use (default Level)')
.parse(process.argv);

const main = async () => {
const { name, path, index, message, change, storageType } = program;
let wallet;
try {
const password = await promptly.password('Wallet Password:');
wallet = await Wallet.loadWallet({ name, path, storageType });
wallet = await wallet.unlock(password);

const privateKey = await wallet.derivePrivateKey(change, index);

const bitcoreMessage = new BitcoreLib.Message(message);
const bitcorePrivateKey = new BitcoreLib.PrivateKey(privateKey.privKey);
const signature = bitcoreMessage.sign(bitcorePrivateKey);
const address = wallet.deriveAddress(index, change);

console.log({
address,
message,
signature
});

} catch (e) {
console.error(e);
}
};

main();
2 changes: 1 addition & 1 deletion packages/bitcore-client/bin/wallet-storage
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ program
.version(require('../package.json').version)
.option('--name [name]', 'REQUIRED - Wallet Name')
.option('--path [path]', 'optional - Custom wallet storage path')
.option('--storageType [storageType]', 'optional - name of the database to use (Mongo or Level)')
.option('--storageType [storageType]', 'optional - name of the database to use (Mongo | Level | TextFile)')
.option('--export [export]', 'export an existing wallet into an encrypted json')
.option('--import [import]', 'import an existing wallet from an encrypted json')
.option('--lite [lite]', 'optional - do a lite import or export')
Expand Down
2 changes: 1 addition & 1 deletion packages/bitcore-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/bitcore-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"engines": {
"node": ">=8.0.0"
},
"version": "8.22.2",
"version": "8.25.8",
"author": "Justin Langston <nitsujlangston@gmail.com>",
"main": "./ts_build/index.js",
"types": "./ts_build/index.d.ts",
Expand All @@ -27,9 +27,9 @@
"JSONStream": "~1.3.1",
"async": "2.5.0",
"bcrypt": "3.0.8",
"bitcore-mnemonic": "^8.22.2",
"bitcore-mnemonic": "^8.25.8",
"commander": "2.15.1",
"crypto-wallet-core": "^8.22.2",
"crypto-wallet-core": "^8.25.8",
"elliptic": "^6.5.3",
"level-js": "4.0.2",
"leveldown": "5.4.1",
Expand Down
13 changes: 7 additions & 6 deletions packages/bitcore-client/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import { PassThrough } from 'stream';
import { Encryption } from './encryption';
import { Level } from './storage/level';
import { Mongo } from './storage/mongo';
import { TextFile } from './storage/textFile';
import { KeyImport } from './wallet';

const bitcoreLib = require('crypto-wallet-core').BitcoreLib;

export class Storage {
path: string;
db: Array<Mongo | Level>;
db: Array<Mongo | Level | TextFile>;
collection: 'bitcoreWallets';
url?: string;
errorIfExists?: boolean;
Expand All @@ -18,15 +19,16 @@ export class Storage {
constructor(params: { path?: string; createIfMissing: boolean; errorIfExists: boolean; storageType?: string }) {
const { path, createIfMissing, errorIfExists } = params;
let { storageType } = params;
if (storageType && !['Mongo', 'Level'].includes(storageType)) {
throw new Error('Storage Type passed in must be Mongo or Level');
if (storageType && !['Mongo', 'Level', 'TextFile'].includes(storageType)) {
throw new Error('Storage Type passed in must be Mongo, Level, or TextFile');
}
this.path = path;
this.createIfMissing = createIfMissing;
this.errorIfExists = errorIfExists;
const dbMap = {
Mongo,
Level
Level,
TextFile
};
this.db = [];
if (dbMap[storageType]) {
Expand Down Expand Up @@ -60,7 +62,6 @@ export class Storage {

async deleteWallet(params: { name: string }) {
const { name } = params;
let wallet;
for (let db of this.db) {
try {
await db.deleteWallet({ name });
Expand All @@ -75,7 +76,7 @@ export class Storage {
for (let db of this.db) {
const listWalletStream = await db.listWallets();
passThrough = listWalletStream.pipe(passThrough, { end: false });
listWalletStream.once('end', () => --this.db.length === 0 && passThrough.end());
listWalletStream.once('end', () => this.db.length-- === 0 && passThrough.end());
}
return passThrough;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bitcore-client/src/storage/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Mongo {
async init(params) {
const { wallet, addresses } = params;
try {
this.client = new MongoClient(this.path, { useNewUrlParser: true });
this.client = new MongoClient(this.path, { useNewUrlParser: true, useUnifiedTopology: true });
await this.client.connect();
this.db = this.client.db(this.databaseName);
if (wallet) {
Expand Down
Loading