mirror of https://github.com/waku-org/js-waku.git
Merge pull request #1011 from waku-org/chore/multiaddr
This commit is contained in:
commit
589d2b3d8a
File diff suppressed because it is too large
Load Diff
|
@ -88,7 +88,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@waku/byte-utils": "*",
|
"@waku/byte-utils": "*",
|
||||||
"@chainsafe/libp2p-gossipsub": "^4.1.1",
|
"@chainsafe/libp2p-gossipsub": "^4.1.1",
|
||||||
"@libp2p/interface-connection": "3.0.1",
|
"@libp2p/interface-connection": "^3.0.3",
|
||||||
"@libp2p/interface-peer-discovery": "^1.0.0",
|
"@libp2p/interface-peer-discovery": "^1.0.0",
|
||||||
"@libp2p/interface-peer-id": "^1.0.2",
|
"@libp2p/interface-peer-id": "^1.0.2",
|
||||||
"@libp2p/interface-peer-info": "^1.0.1",
|
"@libp2p/interface-peer-info": "^1.0.1",
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
"it-all": "^1.0.6",
|
"it-all": "^1.0.6",
|
||||||
"it-length-prefixed": "^8.0.2",
|
"it-length-prefixed": "^8.0.2",
|
||||||
"it-pipe": "^2.0.4",
|
"it-pipe": "^2.0.4",
|
||||||
"libp2p": "0.38.0",
|
"libp2p": "0.39.2",
|
||||||
"p-event": "^5.0.1",
|
"p-event": "^5.0.1",
|
||||||
"protons-runtime": "^3.1.0",
|
"protons-runtime": "^3.1.0",
|
||||||
"uint8arraylist": "^2.3.2",
|
"uint8arraylist": "^2.3.2",
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
"@libp2p/interface-peer-id": "^1.0.5",
|
"@libp2p/interface-peer-id": "^1.0.5",
|
||||||
"@libp2p/interface-peer-store": "^1.2.2",
|
"@libp2p/interface-peer-store": "^1.2.2",
|
||||||
"@multiformats/multiaddr": "^11.0.6",
|
"@multiformats/multiaddr": "^11.0.6",
|
||||||
"libp2p": "0.38.0"
|
"libp2p": "0.39.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
||||||
|
|
|
@ -31,8 +31,6 @@ describe("ENR Interop: nwaku", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(multiAddrWithId);
|
await waku.dial(multiAddrWithId);
|
||||||
await waitForRemotePeer(waku, [Protocols.Relay]);
|
await waitForRemotePeer(waku, [Protocols.Relay]);
|
||||||
|
|
||||||
|
@ -65,8 +63,6 @@ describe("ENR Interop: nwaku", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(multiAddrWithId);
|
await waku.dial(multiAddrWithId);
|
||||||
await waitForRemotePeer(waku, [Protocols.Relay]);
|
await waitForRemotePeer(waku, [Protocols.Relay]);
|
||||||
|
|
||||||
|
@ -99,8 +95,6 @@ describe("ENR Interop: nwaku", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(multiAddrWithId);
|
await waku.dial(multiAddrWithId);
|
||||||
await waitForRemotePeer(waku, [Protocols.Relay]);
|
await waitForRemotePeer(waku, [Protocols.Relay]);
|
||||||
|
|
||||||
|
|
|
@ -34,8 +34,6 @@ describe("Waku Filter", () => {
|
||||||
libp2p: { addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] } },
|
libp2p: { addresses: { listen: ["/ip4/0.0.0.0/tcp/0/ws"] } },
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Filter, Protocols.LightPush]);
|
await waitForRemotePeer(waku, [Protocols.Filter, Protocols.LightPush]);
|
||||||
});
|
});
|
||||||
|
|
|
@ -39,8 +39,6 @@ describe("Waku Light Push [node only]", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.LightPush]);
|
await waitForRemotePeer(waku, [Protocols.LightPush]);
|
||||||
|
|
||||||
|
@ -75,8 +73,6 @@ describe("Waku Light Push [node only]", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.LightPush]);
|
await waitForRemotePeer(waku, [Protocols.LightPush]);
|
||||||
|
|
||||||
|
|
|
@ -66,9 +66,6 @@ describe("Waku Relay [node only]", () => {
|
||||||
log("Instances started, adding waku2 to waku1's address book");
|
log("Instances started, adding waku2 to waku1's address book");
|
||||||
waku1.addPeerToAddressBook(
|
waku1.addPeerToAddressBook(
|
||||||
waku2.libp2p.peerId,
|
waku2.libp2p.peerId,
|
||||||
// TODO: Upgrade libp2p package.
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore: New multiaddr type but they seem mostly compatible
|
|
||||||
waku2.libp2p.getMultiaddrs()
|
waku2.libp2p.getMultiaddrs()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -286,16 +283,10 @@ describe("Waku Relay [node only]", () => {
|
||||||
|
|
||||||
waku1.addPeerToAddressBook(
|
waku1.addPeerToAddressBook(
|
||||||
waku2.libp2p.peerId,
|
waku2.libp2p.peerId,
|
||||||
// TODO: Upgrade libp2p package.
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore: New multiaddr type but they seem mostly compatible
|
|
||||||
waku2.libp2p.getMultiaddrs()
|
waku2.libp2p.getMultiaddrs()
|
||||||
);
|
);
|
||||||
waku3.addPeerToAddressBook(
|
waku3.addPeerToAddressBook(
|
||||||
waku2.libp2p.peerId,
|
waku2.libp2p.peerId,
|
||||||
// TODO: Upgrade libp2p package.
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore: New multiaddr type but they seem mostly compatible
|
|
||||||
waku2.libp2p.getMultiaddrs()
|
waku2.libp2p.getMultiaddrs()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -346,8 +337,6 @@ describe("Waku Relay [node only]", () => {
|
||||||
nwaku = new Nwaku(this.test?.ctx?.currentTest?.title + "");
|
nwaku = new Nwaku(this.test?.ctx?.currentTest?.title + "");
|
||||||
await nwaku.start();
|
await nwaku.start();
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Relay]);
|
await waitForRemotePeer(waku, [Protocols.Relay]);
|
||||||
});
|
});
|
||||||
|
@ -445,11 +434,7 @@ describe("Waku Relay [node only]", () => {
|
||||||
|
|
||||||
const nwakuMultiaddr = await nwaku.getMultiaddrWithId();
|
const nwakuMultiaddr = await nwaku.getMultiaddrWithId();
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
waku1.dial(nwakuMultiaddr),
|
waku1.dial(nwakuMultiaddr),
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
waku2.dial(nwakuMultiaddr),
|
waku2.dial(nwakuMultiaddr),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -59,8 +59,6 @@ describe("Waku Store", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
@ -92,8 +90,6 @@ describe("Waku Store", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
@ -134,8 +130,6 @@ describe("Waku Store", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
@ -177,8 +171,6 @@ describe("Waku Store", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
@ -218,8 +210,6 @@ describe("Waku Store", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
@ -263,8 +253,6 @@ describe("Waku Store", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
@ -347,11 +335,7 @@ describe("Waku Store", () => {
|
||||||
log("Waku nodes created");
|
log("Waku nodes created");
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
waku1.dial(nimWakuMultiaddr),
|
waku1.dial(nimWakuMultiaddr),
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
waku2.dial(nimWakuMultiaddr),
|
waku2.dial(nimWakuMultiaddr),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -433,8 +417,6 @@ describe("Waku Store", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
@ -496,8 +478,6 @@ describe("Waku Store", () => {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
@ -557,8 +537,6 @@ describe("Waku Store, custom pubsub topic", () => {
|
||||||
pubSubTopic: customPubSubTopic,
|
pubSubTopic: customPubSubTopic,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(await nwaku.getMultiaddrWithId());
|
await waku.dial(await nwaku.getMultiaddrWithId());
|
||||||
await waitForRemotePeer(waku, [Protocols.Store]);
|
await waitForRemotePeer(waku, [Protocols.Store]);
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,6 @@ describe("Wait for remote peer", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku1.start();
|
await waku1.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku1.dial(multiAddrWithId);
|
await waku1.dial(multiAddrWithId);
|
||||||
await delay(1000);
|
await delay(1000);
|
||||||
await waitForRemotePeer(waku1, [Protocols.Relay]);
|
await waitForRemotePeer(waku1, [Protocols.Relay]);
|
||||||
|
@ -66,8 +64,6 @@ describe("Wait for remote peer", function () {
|
||||||
|
|
||||||
const waitPromise = waitForRemotePeer(waku1, [Protocols.Relay]);
|
const waitPromise = waitForRemotePeer(waku1, [Protocols.Relay]);
|
||||||
await delay(1000);
|
await delay(1000);
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku1.dial(multiAddrWithId);
|
await waku1.dial(multiAddrWithId);
|
||||||
await waitPromise;
|
await waitPromise;
|
||||||
|
|
||||||
|
@ -113,8 +109,6 @@ describe("Wait for remote peer", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku2.start();
|
await waku2.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku2.dial(multiAddrWithId);
|
await waku2.dial(multiAddrWithId);
|
||||||
await delay(1000);
|
await delay(1000);
|
||||||
await waitForRemotePeer(waku2, [Protocols.Store]);
|
await waitForRemotePeer(waku2, [Protocols.Store]);
|
||||||
|
@ -144,8 +138,6 @@ describe("Wait for remote peer", function () {
|
||||||
await waku2.start();
|
await waku2.start();
|
||||||
const waitPromise = waitForRemotePeer(waku2, [Protocols.Store], 2000);
|
const waitPromise = waitForRemotePeer(waku2, [Protocols.Store], 2000);
|
||||||
await delay(1000);
|
await delay(1000);
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku2.dial(multiAddrWithId);
|
await waku2.dial(multiAddrWithId);
|
||||||
await waitPromise;
|
await waitPromise;
|
||||||
|
|
||||||
|
@ -172,8 +164,6 @@ describe("Wait for remote peer", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku2.start();
|
await waku2.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku2.dial(multiAddrWithId);
|
await waku2.dial(multiAddrWithId);
|
||||||
await waitForRemotePeer(waku2, [Protocols.LightPush]);
|
await waitForRemotePeer(waku2, [Protocols.LightPush]);
|
||||||
|
|
||||||
|
@ -202,8 +192,6 @@ describe("Wait for remote peer", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku2.start();
|
await waku2.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku2.dial(multiAddrWithId);
|
await waku2.dial(multiAddrWithId);
|
||||||
await waitForRemotePeer(waku2, [Protocols.Filter]);
|
await waitForRemotePeer(waku2, [Protocols.Filter]);
|
||||||
|
|
||||||
|
@ -233,8 +221,6 @@ describe("Wait for remote peer", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku2.start();
|
await waku2.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku2.dial(multiAddrWithId);
|
await waku2.dial(multiAddrWithId);
|
||||||
await waitForRemotePeer(waku2);
|
await waitForRemotePeer(waku2);
|
||||||
|
|
||||||
|
@ -271,8 +257,6 @@ describe("Wait for remote peer", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku1.start();
|
await waku1.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku1.dial(multiAddrWithId);
|
await waku1.dial(multiAddrWithId);
|
||||||
await waitForRemotePeer(waku1);
|
await waitForRemotePeer(waku1);
|
||||||
|
|
||||||
|
|
|
@ -46,8 +46,6 @@ describe("Waku Dial [node only]", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
});
|
});
|
||||||
await waku.start();
|
await waku.start();
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
await waku.dial(multiAddrWithId);
|
await waku.dial(multiAddrWithId);
|
||||||
await waitForRemotePeer(waku);
|
await waitForRemotePeer(waku);
|
||||||
|
|
||||||
|
@ -74,8 +72,6 @@ describe("Waku Dial [node only]", function () {
|
||||||
waku = await createLightNode({
|
waku = await createLightNode({
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
libp2p: {
|
libp2p: {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
peerDiscovery: [new PeerDiscoveryStaticPeers([multiAddrWithId])],
|
peerDiscovery: [new PeerDiscoveryStaticPeers([multiAddrWithId])],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -103,8 +99,6 @@ describe("Waku Dial [node only]", function () {
|
||||||
staticNoiseKey: NOISE_KEY_1,
|
staticNoiseKey: NOISE_KEY_1,
|
||||||
libp2p: {
|
libp2p: {
|
||||||
peerDiscovery: [
|
peerDiscovery: [
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore TODO: uniformize usage of multiaddr lib across repos
|
|
||||||
new PeerDiscoveryStaticPeers([await nwaku.getMultiaddrWithId()]),
|
new PeerDiscoveryStaticPeers([await nwaku.getMultiaddrWithId()]),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -149,9 +143,6 @@ describe("Decryption Keys", () => {
|
||||||
|
|
||||||
waku1.addPeerToAddressBook(
|
waku1.addPeerToAddressBook(
|
||||||
waku2.libp2p.peerId,
|
waku2.libp2p.peerId,
|
||||||
// TODO: Upgrade libp2p package.
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore: New multiaddr type but they seem mostly compatible
|
|
||||||
waku2.libp2p.getMultiaddrs()
|
waku2.libp2p.getMultiaddrs()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue