Compare commits

...
7 Commits
Author SHA1 Message Date
Chris Troutner d0a23608e0 Merge pull request #87 from Permissionless-Software-Foundation/ct-unstable
fix(deps): Updating npm dependencies:
2023-05-12 06:49:00 -07:00
Chris Troutner 6cc5196a78 fix(deps): Updating npm dependencies: 2023-05-12 06:47:41 -07:00
Chris Troutner 7b1aba9da8 Merge pull request #86 from Permissionless-Software-Foundation/ct-unstable
updating dependencies
2023-04-06 06:12:31 -07:00
Chris Troutner 3539f0af50 fix(deps): Updating dependencies 2023-04-06 06:11:08 -07:00
Chris Troutner 34fa039ced Removing debugging 2023-02-08 15:08:00 -08:00
Chris Troutner f42ccafffa More debugging 2023-02-08 14:52:17 -08:00
Chris Troutner 842e6ead69 Debugging utxoBulk 2023-02-08 14:33:15 -08:00
5 changed files with 26 additions and 23 deletions
+14 -14
View File
@@ -9,12 +9,12 @@
"version": "2.0.0",
"license": "MIT",
"dependencies": {
"@psf/bch-js": "6.5.7",
"@psf/bch-js": "6.7.3",
"axios": "0.27.2",
"bcryptjs": "2.4.3",
"glob": "7.1.6",
"ipfs": "0.62.3",
"ipfs-coord": "8.0.4",
"ipfs-coord": "8.0.8",
"ipfs-http-client": "55.0.0",
"jsonrpc-lite": "2.2.0",
"jsonwebtoken": "8.5.1",
@@ -1445,9 +1445,9 @@
"license": "BSD-3-Clause"
},
"node_modules/@psf/bch-js": {
"version": "6.5.7",
"resolved": "http://94.130.170.209:4873/@psf%2fbch-js/-/bch-js-6.5.7.tgz",
"integrity": "sha512-V9UweiRCCU4UzM51Ct2Szhpv6V0B686t5ZjMHNkPu8zyJ9+H7mQfteeQECHK5j38QHvLchfUOif5WWQxP6GRVQ==",
"version": "6.7.3",
"resolved": "http://94.130.170.209:4873/@psf%2fbch-js/-/bch-js-6.7.3.tgz",
"integrity": "sha512-z6oJvPAXxSObPhqUAxCkCuPL2bp3Bs1oyhBZpQ5SR6cbJzcOMhuI4bHho2srH5agSCU+bbjehBMRGvo18eGW0A==",
"license": "MIT",
"dependencies": {
"@chris.troutner/bip32-utils": "1.0.5",
@@ -7728,9 +7728,9 @@
}
},
"node_modules/ipfs-coord": {
"version": "8.0.4",
"resolved": "http://94.130.170.209:4873/ipfs-coord/-/ipfs-coord-8.0.4.tgz",
"integrity": "sha512-jwZsrDlEWSHMnAde8PdyUScTzRlTCIvPAziChoczj5ZOZJIUbxLNkGphBI0xDj2G/LzjPrU1Ko/QZrU+oLFUnw==",
"version": "8.0.8",
"resolved": "http://94.130.170.209:4873/ipfs-coord/-/ipfs-coord-8.0.8.tgz",
"integrity": "sha512-2ivZ7dCIrpS7VBN0DohaGBYRe3bzybkGbl0lOTyNeCUhrrYniC66dAnfdCY8CmpEeXoEYsaW2hLmohz4jDHywQ==",
"license": "MIT",
"dependencies": {
"axios": "0.21.4",
@@ -20970,9 +20970,9 @@
"version": "1.1.0"
},
"@psf/bch-js": {
"version": "6.5.7",
"resolved": "http://94.130.170.209:4873/@psf%2fbch-js/-/bch-js-6.5.7.tgz",
"integrity": "sha512-V9UweiRCCU4UzM51Ct2Szhpv6V0B686t5ZjMHNkPu8zyJ9+H7mQfteeQECHK5j38QHvLchfUOif5WWQxP6GRVQ==",
"version": "6.7.3",
"resolved": "http://94.130.170.209:4873/@psf%2fbch-js/-/bch-js-6.7.3.tgz",
"integrity": "sha512-z6oJvPAXxSObPhqUAxCkCuPL2bp3Bs1oyhBZpQ5SR6cbJzcOMhuI4bHho2srH5agSCU+bbjehBMRGvo18eGW0A==",
"requires": {
"@chris.troutner/bip32-utils": "1.0.5",
"@psf/bip21": "2.0.1",
@@ -25362,9 +25362,9 @@
}
},
"ipfs-coord": {
"version": "8.0.4",
"resolved": "http://94.130.170.209:4873/ipfs-coord/-/ipfs-coord-8.0.4.tgz",
"integrity": "sha512-jwZsrDlEWSHMnAde8PdyUScTzRlTCIvPAziChoczj5ZOZJIUbxLNkGphBI0xDj2G/LzjPrU1Ko/QZrU+oLFUnw==",
"version": "8.0.8",
"resolved": "http://94.130.170.209:4873/ipfs-coord/-/ipfs-coord-8.0.8.tgz",
"integrity": "sha512-2ivZ7dCIrpS7VBN0DohaGBYRe3bzybkGbl0lOTyNeCUhrrYniC66dAnfdCY8CmpEeXoEYsaW2hLmohz4jDHywQ==",
"requires": {
"axios": "0.21.4",
"bch-encrypt-lib": "2.0.0",
+2 -2
View File
@@ -24,12 +24,12 @@
},
"repository": "Permissionless-Software-Foundation/ipfs-bch-wallet-service",
"dependencies": {
"@psf/bch-js": "6.5.7",
"@psf/bch-js": "6.7.3",
"axios": "0.27.2",
"bcryptjs": "2.4.3",
"glob": "7.1.6",
"ipfs": "0.62.3",
"ipfs-coord": "8.0.4",
"ipfs-coord": "8.0.8",
"ipfs-http-client": "55.0.0",
"jsonrpc-lite": "2.2.0",
"jsonwebtoken": "8.5.1",
+2 -2
View File
@@ -18,8 +18,8 @@ export DEBUG_LEVEL=2
# Production settings that use external IPFS node.
# https://github.com/christroutner/docker-ipfs
export SVC_ENV=production
#export IPFS_HOST=localhost
export IPFS_HOST=172.17.0.1
export IPFS_HOST=localhost
# export IPFS_HOST=172.17.0.1
export IPFS_API_PORT=5001
# Configure IPFS ports
+4 -1
View File
@@ -462,7 +462,7 @@ class BCHRPC {
// console.log('createUser rpcData: ', rpcData)
const addrs = rpcData.payload.params.addresses
// console.log('addr: ', addr)
// console.log('addrs: ', addrs)
// Input validation
if (!Array.isArray(addrs)) {
@@ -484,12 +484,15 @@ class BCHRPC {
utxos: data
})
}
// console.log('result: ', result)
const retObj = {}
retObj.status = 200
retObj.success = true
retObj.data = result
// console.log('retObj: ', retObj)
return retObj
} catch (err) {
console.error('Error in JSON RPC BCH utxosBulk()')
@@ -27,7 +27,7 @@ describe('#BCH', () => {
payload: {
params: {
utxo: {
txid: 'b94e1ff82eb5781f98296f0af2488ff06202f12ee92b0175963b8dba688d1b40',
txid: 'a2059b1321e96a90a386894a68fa5829756118895b3cdb9a0393d94fd2ceed93',
vout: 0
}
}
@@ -45,7 +45,7 @@ describe('#BCH', () => {
payload: {
params: {
utxo: {
tx_hash: 'b94e1ff82eb5781f98296f0af2488ff06202f12ee92b0175963b8dba688d1b40',
tx_hash: 'a2059b1321e96a90a386894a68fa5829756118895b3cdb9a0393d94fd2ceed93',
tx_pos: 0
}
}
@@ -100,13 +100,13 @@ describe('#BCH', () => {
const rpcData = {
payload: {
params: {
tokenId: 'c85042ab08a2099f27de880a30f9a42874202751d834c42717a20801a00aab0d'
tokenId: '5f31905f335fa932879c5aabfd1c14ac748f6696148bd300f845ea5016ad573e'
}
}
}
const result = await uut.getTokenData(rpcData)
// console.log('result: ', result)
console.log('result: ', result)
// assert.equal(result.isValid, true)
assert.property(result.tokenData, 'immutableData')