Merge pull request #888 from status-im/chore/libp2p

This commit is contained in:
fryorcraken.eth 2022-08-17 12:00:16 +10:00 committed by GitHub
commit 28cb144b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1162 additions and 691 deletions

1844
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -74,6 +74,7 @@
"@chainsafe/libp2p-noise": "^7.0.1",
"@ethersproject/rlp": "^5.5.0",
"@libp2p/crypto": "^1.0.0",
"@libp2p/interface-connection": "3.0.1",
"@libp2p/interface-peer-discovery": "^1.0.0",
"@libp2p/interface-peer-id": "^1.0.2",
"@libp2p/interface-peer-info": "^1.0.1",
@ -89,7 +90,7 @@
"hi-base32": "^0.5.1",
"it-all": "^1.0.6",
"it-length-prefixed": "^7.0.1",
"it-pipe": "^2.0.3",
"it-pipe": "^2.0.4",
"js-sha3": "^0.8.0",
"libp2p": "next",
"p-event": "^5.0.1",
@ -150,6 +151,10 @@
"typedoc-plugin-no-inherit": "^1.3.1",
"typescript": "^4.5.5"
},
"overrides": {
"@libp2p/interface-connection": "3.0.1",
"uint8arraylist": "2.3.2"
},
"files": [
"dist",
"bundle",

View File

@ -224,6 +224,8 @@ export class WakuFilter {
}
// TODO: Appropriate connection selection
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: tsc is confused by the @libp2p/interface-connection type to use
return connections[0].newStream(FilterCodec);
}