mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-26 05:45:40 +00:00
chore: move protobuf module from utils to common
This commit is contained in:
parent
0bbcc260c9
commit
e2a2ea6477
@ -1,3 +1,5 @@
|
||||
# Extensions for libp2p's protobuf library implementation
|
||||
|
||||
when (NimMajor, NimMinor) < (1, 4):
|
||||
{.push raises: [Defect].}
|
||||
else:
|
||||
@ -6,8 +8,11 @@ else:
|
||||
import
|
||||
libp2p/protobuf/minprotobuf,
|
||||
libp2p/varint
|
||||
|
||||
export
|
||||
minprotobuf,
|
||||
varint
|
||||
|
||||
# Collection of utilities related to protobuffer encoding
|
||||
|
||||
proc write3*(proto: var ProtoBuffer, field: int, value: auto) =
|
||||
if default(type(value)) != value:
|
@ -4,10 +4,7 @@ else:
|
||||
{.push raises: [].}
|
||||
|
||||
import
|
||||
libp2p/protobuf/minprotobuf,
|
||||
libp2p/varint
|
||||
import
|
||||
../../utils/protobuf,
|
||||
../../../common/protobuf,
|
||||
../waku_message,
|
||||
./rpc
|
||||
|
||||
|
@ -5,9 +5,7 @@ else:
|
||||
|
||||
|
||||
import
|
||||
libp2p/protobuf/minprotobuf
|
||||
import
|
||||
../../utils/protobuf,
|
||||
../../../common/protobuf,
|
||||
../waku_message,
|
||||
./rpc
|
||||
|
||||
|
@ -12,10 +12,7 @@ else:
|
||||
|
||||
|
||||
import
|
||||
libp2p/protobuf/minprotobuf,
|
||||
libp2p/varint
|
||||
import
|
||||
../utils/protobuf,
|
||||
../../common/protobuf,
|
||||
../utils/time
|
||||
|
||||
when defined(rln):
|
||||
|
@ -5,10 +5,7 @@ else:
|
||||
|
||||
|
||||
import
|
||||
libp2p/protobuf/minprotobuf,
|
||||
libp2p/varint
|
||||
import
|
||||
../../utils/protobuf,
|
||||
../../../common/protobuf,
|
||||
./rpc
|
||||
|
||||
|
||||
|
@ -9,10 +9,9 @@ import
|
||||
chronos,
|
||||
stint,
|
||||
web3,
|
||||
eth/keys,
|
||||
libp2p/protobuf/minprotobuf
|
||||
eth/keys
|
||||
import
|
||||
../../utils/protobuf
|
||||
../../../common/protobuf
|
||||
|
||||
type RlnRelayResult*[T] = Result[T, string]
|
||||
|
||||
|
@ -4,13 +4,11 @@ else:
|
||||
{.push raises: [].}
|
||||
|
||||
import
|
||||
nimcrypto/hash,
|
||||
libp2p/protobuf/minprotobuf,
|
||||
libp2p/varint
|
||||
nimcrypto/hash
|
||||
import
|
||||
../waku_message,
|
||||
../../utils/protobuf,
|
||||
../../../common/protobuf,
|
||||
../../utils/time,
|
||||
../waku_message,
|
||||
./common,
|
||||
./rpc
|
||||
|
||||
|
@ -45,7 +45,7 @@ import
|
||||
libp2p/stream/connection,
|
||||
../../node/peer_manager/peer_manager,
|
||||
./waku_swap_types,
|
||||
../../utils/protobuf,
|
||||
../../../common/protobuf,
|
||||
../../waku/v2/protocol/waku_swap/waku_swap_contracts
|
||||
|
||||
export waku_swap_types
|
||||
|
Loading…
x
Reference in New Issue
Block a user