mirror of https://github.com/vacp2p/research.git
Use vendor and submodules
This commit is contained in:
parent
0e494b315d
commit
799f65e287
|
@ -0,0 +1,15 @@
|
|||
[submodule "hello_gossipsub/vendor/nimbus"]
|
||||
path = hello_gossipsub/vendor/nimbus
|
||||
url = https://github.com/status-im/nimbus/
|
||||
[submodule "hello_gossipsub/vendor/nim-eth"]
|
||||
path = hello_gossipsub/vendor/nim-eth
|
||||
url = https://github.com/status-im/nim-eth
|
||||
[submodule "hello_gossipsub/vendor/nim-secp256k1"]
|
||||
path = hello_gossipsub/vendor/nim-secp256k1
|
||||
url = https://github.com/status-im/nim-secp256k1
|
||||
[submodule "hello_gossipsub/vendor/nim-libp2p"]
|
||||
path = hello_gossipsub/vendor/nim-libp2p
|
||||
url = https://github.com/status-im/nim-libp2p
|
||||
[submodule "hello_gossipsub/vendor/nim-stew"]
|
||||
path = hello_gossipsub/vendor/nim-stew
|
||||
url = https://github.com/status-im/nim-stew
|
|
@ -10,3 +10,11 @@ Let's start small:
|
|||
## Running
|
||||
|
||||
`nim c -r src/hello_gossipsub.nim`
|
||||
|
||||
|
||||
## What I want to do
|
||||
|
||||
Use Waku stuff from Nimbus here,
|
||||
Get quicksim working
|
||||
Then try to do similar with libp2p gossipsub
|
||||
|
||||
|
|
|
@ -12,4 +12,6 @@ bin = @["hello_gossipsub"]
|
|||
# Dependencies
|
||||
|
||||
requires "nim >= 1.2.0"
|
||||
requires "libp2p"
|
||||
#requires "libp2p"
|
||||
#requires "nimbus"
|
||||
#requires "nim-eth"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#import libp2p/protocols/pubsub/floodsub
|
||||
#import unittest, sequtils
|
||||
#import nimbus/rpc/waku
|
||||
## example.nim
|
||||
|
||||
import chronos
|
||||
import libp2p/standard_setup
|
||||
import libp2p/[switch,
|
||||
|
@ -7,6 +10,7 @@ import libp2p/[switch,
|
|||
protocols/pubsub/pubsub,
|
||||
protocols/pubsub/rpc/messages,
|
||||
protocols/pubsub/rpc/message]
|
||||
import ../vendor/nimbus/waku/wakunode
|
||||
|
||||
# From tests/pubsub/utils.nim
|
||||
proc generateNodes*(num: Natural, gossip: bool = false): seq[Switch] =
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 1646d78d833b386ff0d554e42ede83595871249f
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 027e8227ea7b1c019a37c10f6885c89ccdec4f74
|
|
@ -0,0 +1 @@
|
|||
Subproject commit e8fa92a0c6217103eecce2a9e6f274c7eedac13b
|
|
@ -0,0 +1 @@
|
|||
Subproject commit ff755bbf75d0d3f387b9f352b241d98eb3372323
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 73e9199ebfbf7262c8d7d3f0e5d96cf143e9eb41
|
Loading…
Reference in New Issue