mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
Updated to libp2p 1.0.9, added @libp2p/identify
This commit is contained in:
Generated
+981
-186
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -28,6 +28,7 @@
|
|||||||
"@chainsafe/libp2p-noise": "13.0.1",
|
"@chainsafe/libp2p-noise": "13.0.1",
|
||||||
"@chainsafe/libp2p-yamux": "5.0.0",
|
"@chainsafe/libp2p-yamux": "5.0.0",
|
||||||
"@libp2p/bootstrap": "9.0.8",
|
"@libp2p/bootstrap": "9.0.8",
|
||||||
|
"@libp2p/identify": "1.0.5",
|
||||||
"@libp2p/tcp": "8.0.9",
|
"@libp2p/tcp": "8.0.9",
|
||||||
"axios": "0.27.2",
|
"axios": "0.27.2",
|
||||||
"bcryptjs": "2.4.3",
|
"bcryptjs": "2.4.3",
|
||||||
@@ -35,7 +36,7 @@
|
|||||||
"datastore-fs": "9.1.5",
|
"datastore-fs": "9.1.5",
|
||||||
"glob": "7.1.6",
|
"glob": "7.1.6",
|
||||||
"helia": "2.1.0",
|
"helia": "2.1.0",
|
||||||
"helia-coord": "1.2.21",
|
"helia-coord": "1.2.22",
|
||||||
"jsonrpc-lite": "2.2.0",
|
"jsonrpc-lite": "2.2.0",
|
||||||
"jsonwebtoken": "8.5.1",
|
"jsonwebtoken": "8.5.1",
|
||||||
"jwt-bch-lib": "1.3.0",
|
"jwt-bch-lib": "1.3.0",
|
||||||
@@ -50,7 +51,7 @@
|
|||||||
"koa-router": "10.0.0",
|
"koa-router": "10.0.0",
|
||||||
"koa-static": "5.0.0",
|
"koa-static": "5.0.0",
|
||||||
"koa2-ratelimit": "0.9.1",
|
"koa2-ratelimit": "0.9.1",
|
||||||
"libp2p": "0.46.21",
|
"libp2p": "1.0.9",
|
||||||
"line-reader": "0.4.0",
|
"line-reader": "0.4.0",
|
||||||
"minimal-slp-wallet": "5.11.1",
|
"minimal-slp-wallet": "5.11.1",
|
||||||
"mongoose": "5.13.14",
|
"mongoose": "5.13.14",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import { tcp } from '@libp2p/tcp'
|
|||||||
import { noise } from '@chainsafe/libp2p-noise'
|
import { noise } from '@chainsafe/libp2p-noise'
|
||||||
import { yamux } from '@chainsafe/libp2p-yamux'
|
import { yamux } from '@chainsafe/libp2p-yamux'
|
||||||
// import { bootstrap } from '@libp2p/bootstrap'
|
// import { bootstrap } from '@libp2p/bootstrap'
|
||||||
import { identifyService } from 'libp2p/identify'
|
import { identify } from '@libp2p/identify'
|
||||||
import { circuitRelayServer, circuitRelayTransport } from 'libp2p/circuit-relay'
|
import { circuitRelayServer, circuitRelayTransport } from 'libp2p/circuit-relay'
|
||||||
import { gossipsub } from '@chainsafe/libp2p-gossipsub'
|
import { gossipsub } from '@chainsafe/libp2p-gossipsub'
|
||||||
import { webSockets } from '@libp2p/websockets'
|
import { webSockets } from '@libp2p/websockets'
|
||||||
@@ -110,7 +110,7 @@ class IpfsAdapter {
|
|||||||
|
|
||||||
// Configure services
|
// Configure services
|
||||||
const services = {
|
const services = {
|
||||||
identify: identifyService(),
|
identify: identify(),
|
||||||
pubsub: gossipsub({ allowPublishToZeroPeers: true })
|
pubsub: gossipsub({ allowPublishToZeroPeers: true })
|
||||||
}
|
}
|
||||||
if (this.config.isCircuitRelay) {
|
if (this.config.isCircuitRelay) {
|
||||||
|
|||||||
Reference in New Issue
Block a user