Merge pull request #69 from codex-storage/rename-library

Finish renaming library
This commit is contained in:
Jaremy Creechley 2023-07-12 16:13:13 -07:00 committed by GitHub
commit 18dbe4cc04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 21 additions and 21 deletions

View File

@ -1,5 +1,5 @@
import import
./libp2pdht/dht, ./codexdht/dht,
./libp2pdht/discv5 ./codexdht/discv5
export dht, discv5 export dht, discv5

View File

@ -1,6 +1,6 @@
# Package # Package
version = "0.2.1" version = "0.3.0"
author = "Status Research & Development GmbH" author = "Status Research & Development GmbH"
description = "DHT based on the libp2p Kademlia spec" description = "DHT based on the libp2p Kademlia spec"
license = "MIT" license = "MIT"
@ -56,8 +56,8 @@ task testAll, "Run DHT tests":
# exec("cd nimcache; rm *.c; cd ..") # exec("cd nimcache; rm *.c; cd ..")
# mkDir("coverage") # mkDir("coverage")
# exec("lcov --capture --directory nimcache --output-file coverage/coverage.info") # exec("lcov --capture --directory nimcache --output-file coverage/coverage.info")
# exec("$(which bash) -c 'shopt -s globstar; ls $(pwd)/libp2pdht/{*,**/*}.nim'") # exec("$(which bash) -c 'shopt -s globstar; ls $(pwd)/codexdht/{*,**/*}.nim'")
# exec("$(which bash) -c 'shopt -s globstar; lcov --extract coverage/coverage.info $(pwd)/libp2pdht/{*,**/*}.nim --output-file coverage/coverage.f.info'") # exec("$(which bash) -c 'shopt -s globstar; lcov --extract coverage/coverage.info $(pwd)/codexdht/{*,**/*}.nim --output-file coverage/coverage.f.info'")
# echo "Generating HTML coverage report" # echo "Generating HTML coverage report"
# exec("genhtml coverage/coverage.f.info --output-directory coverage/report") # exec("genhtml coverage/coverage.f.info --output-directory coverage/report")
# echo "Opening HTML coverage report in browser..." # echo "Opening HTML coverage report in browser..."

View File

@ -3,9 +3,9 @@ import
chronos, chronos,
libp2p/crypto/[crypto, secp], libp2p/crypto/[crypto, secp],
libp2p/multiaddress, libp2p/multiaddress,
libp2pdht/discv5/[node, routing_table, spr], codexdht/discv5/[node, routing_table, spr],
libp2pdht/discv5/crypto as dhtcrypto, codexdht/discv5/crypto as dhtcrypto,
libp2pdht/discv5/protocol as discv5_protocol, codexdht/discv5/protocol as discv5_protocol,
stew/shims/net stew/shims/net
export net export net

View File

@ -6,11 +6,11 @@ import pkg/asynctest
import pkg/datastore import pkg/datastore
import pkg/libp2p import pkg/libp2p
import libp2pdht/dht import codexdht/dht
import libp2pdht/private/eth/p2p/discoveryv5/spr import codexdht/private/eth/p2p/discoveryv5/spr
import libp2pdht/private/eth/p2p/discoveryv5/providers import codexdht/private/eth/p2p/discoveryv5/providers
import libp2pdht/discv5/node import codexdht/discv5/node
import libp2pdht/private/eth/p2p/discoveryv5/lru import codexdht/private/eth/p2p/discoveryv5/lru
import ./test_helper import ./test_helper
suite "Test Providers Manager simple": suite "Test Providers Manager simple":

View File

@ -18,9 +18,9 @@ import
nimcrypto, nimcrypto,
libp2p/crypto/[crypto, secp], libp2p/crypto/[crypto, secp],
libp2p/[multiaddress, multicodec, multihash, routing_record, signed_envelope], libp2p/[multiaddress, multicodec, multihash, routing_record, signed_envelope],
libp2pdht/dht, codexdht/dht,
libp2pdht/discv5/crypto as dhtcrypto, codexdht/discv5/crypto as dhtcrypto,
libp2pdht/discv5/protocol as discv5_protocol, codexdht/discv5/protocol as discv5_protocol,
stew/byteutils, stew/byteutils,
test_helper test_helper

View File

@ -5,9 +5,9 @@ import
chronos, chronicles, stint, asynctest, stew/shims/net, chronos, chronicles, stint, asynctest, stew/shims/net,
stew/byteutils, bearssl/rand, stew/byteutils, bearssl/rand,
libp2p/crypto/crypto, libp2p/crypto/crypto,
libp2pdht/discv5/[transport, spr, node, routing_table, encoding, sessions, nodes_verification], codexdht/discv5/[transport, spr, node, routing_table, encoding, sessions, nodes_verification],
libp2pdht/discv5/crypto as dhtcrypto, codexdht/discv5/crypto as dhtcrypto,
libp2pdht/discv5/protocol as discv5_protocol, codexdht/discv5/protocol as discv5_protocol,
../dht/test_helper ../dht/test_helper
suite "Discovery v5 Tests": suite "Discovery v5 Tests":

View File

@ -6,8 +6,8 @@ import
bearssl/rand, bearssl/rand,
chronos, chronos,
libp2p/crypto/secp, libp2p/crypto/secp,
libp2pdht/discv5/[messages, messages_encoding, encoding, spr, node, sessions], codexdht/discv5/[messages, messages_encoding, encoding, spr, node, sessions],
libp2pdht/discv5/crypto, codexdht/discv5/crypto,
stew/byteutils, stew/byteutils,
stew/shims/net, stew/shims/net,
stint, stint,