mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-consumer.git
synced 2026-09-22 01:02:04 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a620892d7 | ||
|
|
4a1524629c | ||
|
|
f7aaba71d1 | ||
|
|
418a2e2ad2 | ||
|
|
74248ea0c7 | ||
|
|
70a69e98bb | ||
|
|
8cffd7fae3 | ||
|
|
a1023e8224 | ||
|
|
a32ed63d47 | ||
|
|
934fb46ffc | ||
|
|
b27136d03b | ||
|
|
9837d6a7fb | ||
|
|
60a3d67c0b | ||
|
|
a03c5d8c91 | ||
|
|
0e7afb5f51 | ||
|
|
bcc90da49b | ||
|
|
b473a3803c |
Vendored
+4
-1
@@ -119,7 +119,10 @@ export default {
|
||||
'@type': 'Organization',
|
||||
name: 'Permissionless Software Foundation',
|
||||
url: 'https://PSFoundation.cash'
|
||||
}
|
||||
},
|
||||
|
||||
// If this node has an IP4 address or domain name used to provide a REST API.
|
||||
web2Api: process.env.WEB2_API ? process.env.WEB2_API : null
|
||||
},
|
||||
|
||||
// IPFS Ports
|
||||
|
||||
Generated
+7
-7
@@ -26,7 +26,7 @@
|
||||
"datastore-fs": "9.1.6",
|
||||
"glob": "7.1.6",
|
||||
"helia": "2.1.0",
|
||||
"helia-coord": "1.5.7",
|
||||
"helia-coord": "1.5.8",
|
||||
"jsonrpc-lite": "2.2.0",
|
||||
"jsonwebtoken": "8.5.1",
|
||||
"jwt-bch-lib": "1.3.0",
|
||||
@@ -11355,9 +11355,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/helia-coord": {
|
||||
"version": "1.5.7",
|
||||
"resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.5.7.tgz",
|
||||
"integrity": "sha512-S3untLIDr4A15bUw+dUmLHfqSNmJ9wjqENPzdqHjEP9HSUs7w+CtVNrvY3MSXTD+/nwTtUX5V4NiTdMXdWlBAA==",
|
||||
"version": "1.5.8",
|
||||
"resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.5.8.tgz",
|
||||
"integrity": "sha512-azbipIf5TOn8qCloLx+qPJ/lt+MEJzJt1lHJB1DAlv5mmeqyNpfjXRJ3iJ0f794si0qx8Vhr7nd6pe/5Hfstjw==",
|
||||
"dependencies": {
|
||||
"@chris.troutner/retry-queue": "1.0.8",
|
||||
"bch-encrypt-lib": "2.1.1",
|
||||
@@ -33929,9 +33929,9 @@
|
||||
}
|
||||
},
|
||||
"helia-coord": {
|
||||
"version": "1.5.7",
|
||||
"resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.5.7.tgz",
|
||||
"integrity": "sha512-S3untLIDr4A15bUw+dUmLHfqSNmJ9wjqENPzdqHjEP9HSUs7w+CtVNrvY3MSXTD+/nwTtUX5V4NiTdMXdWlBAA==",
|
||||
"version": "1.5.8",
|
||||
"resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.5.8.tgz",
|
||||
"integrity": "sha512-azbipIf5TOn8qCloLx+qPJ/lt+MEJzJt1lHJB1DAlv5mmeqyNpfjXRJ3iJ0f794si0qx8Vhr7nd6pe/5Hfstjw==",
|
||||
"requires": {
|
||||
"@chris.troutner/retry-queue": "1.0.8",
|
||||
"bch-encrypt-lib": "2.1.1",
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@
|
||||
"datastore-fs": "9.1.6",
|
||||
"glob": "7.1.6",
|
||||
"helia": "2.1.0",
|
||||
"helia-coord": "1.5.7",
|
||||
"helia-coord": "1.5.8",
|
||||
"jsonrpc-lite": "2.2.0",
|
||||
"jsonwebtoken": "8.5.1",
|
||||
"jwt-bch-lib": "1.3.0",
|
||||
|
||||
@@ -66,8 +66,6 @@ RUN npm install
|
||||
# Generate the API docs
|
||||
RUN npm run docs
|
||||
|
||||
VOLUME /home/safeuser/keys
|
||||
|
||||
# Expose the port the API will be served on.
|
||||
#EXPOSE 5010
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ services:
|
||||
options:
|
||||
max-size: '10m'
|
||||
max-file: '10'
|
||||
#mem_limit: 500mb
|
||||
mem_limit: 4000mb
|
||||
links:
|
||||
- mongo-bch-consumer
|
||||
ports:
|
||||
|
||||
@@ -20,7 +20,7 @@ import config from '../../../config/index.js'
|
||||
|
||||
// The minimum version of ipfs-bch-wallet-service that this wallet can work with.
|
||||
const MIN_BCH_WALLET_VERSION = '1.11.11'
|
||||
const WALLET_PROTOCOL = 'bch-wallet'
|
||||
const WALLET_PROTOCOL = 'bch-wallet-service'
|
||||
const MIN_P2WDB_VERSION = '1.4.0'
|
||||
const P2WDB_PROTOCOL = 'p2wdb'
|
||||
const MIN_FILE_PIN_VERSION = '1.0.0'
|
||||
|
||||
@@ -96,6 +96,10 @@ class IpfsUseCases {
|
||||
const metadata = await ipfsFiles.getFileMetadata({ cid })
|
||||
console.log('getCidMetadata() metadata: ', metadata)
|
||||
|
||||
if (metadata.success === false) {
|
||||
throw new Error(metadata.message)
|
||||
}
|
||||
|
||||
const filename = metadata.fileMetadata.filename
|
||||
|
||||
return filename
|
||||
|
||||
@@ -47,7 +47,7 @@ const peerData = [
|
||||
'@type': 'WebAPI',
|
||||
name: 'trout-bch-wallet-service-dev',
|
||||
version: '1.11.12',
|
||||
protocol: 'bch-wallet',
|
||||
protocol: 'bch-wallet-service',
|
||||
description:
|
||||
'IPFS service providing BCH blockchain access needed by a wallet.',
|
||||
documentation: 'https://ipfs-bch-wallet-service.fullstack.cash/',
|
||||
|
||||
Reference in New Issue
Block a user