mirror of https://github.com/status-im/nim-eth.git
Rebrand asyncdispatch2 to chronos (#2)
* Rebrand asyncdispatch2 to chronos * fix nimble path to chronos
This commit is contained in:
parent
0bc80d73cd
commit
07cf801b97
|
@ -12,7 +12,7 @@ requires "nim >= 0.19.0",
|
||||||
"secp256k1",
|
"secp256k1",
|
||||||
"rocksdb",
|
"rocksdb",
|
||||||
"package_visible_types",
|
"package_visible_types",
|
||||||
"asyncdispatch2",
|
"https://github.com/status-im/nim-chronos",
|
||||||
"chronicles"
|
"chronicles"
|
||||||
|
|
||||||
proc test(filename: string) =
|
proc test(filename: string) =
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
tables, algorithm, random,
|
tables, algorithm, random,
|
||||||
asyncdispatch2, asyncdispatch2/timer, chronicles,
|
chronos, chronos/timer, chronicles,
|
||||||
eth/keys, eth/common/eth_types,
|
eth/keys, eth/common/eth_types,
|
||||||
eth/p2p/[kademlia, discovery, enode, peer_pool, rlpx],
|
eth/p2p/[kademlia, discovery, enode, peer_pool, rlpx],
|
||||||
eth/p2p/private/p2p_types
|
eth/p2p/private/p2p_types
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
sets, options, random, hashes,
|
sets, options, random, hashes,
|
||||||
asyncdispatch2, chronicles, eth/common/eth_types,
|
chronos, chronicles, eth/common/eth_types,
|
||||||
private/p2p_types, rlpx, peer_pool, rlpx_protocols/eth_protocol,
|
private/p2p_types, rlpx, peer_pool, rlpx_protocols/eth_protocol,
|
||||||
../p2p
|
../p2p
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
times,
|
times,
|
||||||
asyncdispatch2, eth/[keys, rlp], stint, nimcrypto, chronicles,
|
chronos, eth/[keys, rlp], stint, nimcrypto, chronicles,
|
||||||
kademlia, enode
|
kademlia, enode
|
||||||
|
|
||||||
export
|
export
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
tables, hashes, times, algorithm, sets, sequtils, random,
|
tables, hashes, times, algorithm, sets, sequtils, random,
|
||||||
asyncdispatch2, chronicles, eth/keys, stint, nimcrypto,
|
chronos, chronicles, eth/keys, stint, nimcrypto,
|
||||||
enode
|
enode
|
||||||
|
|
||||||
export sets # TODO: This should not be needed, but compilation fails otherwise
|
export sets # TODO: This should not be needed, but compilation fails otherwise
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
macros, deques, algorithm,
|
macros, deques, algorithm,
|
||||||
asyncdispatch2, eth/[keys, rlp], eth/common/eth_types,
|
chronos, eth/[keys, rlp], eth/common/eth_types,
|
||||||
private/p2p_types, rlpx, ../p2p
|
private/p2p_types, rlpx, ../p2p
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
os, tables, times, random, sequtils,
|
os, tables, times, random, sequtils,
|
||||||
asyncdispatch2, chronicles, eth/[rlp, keys],
|
chronos, chronicles, eth/[rlp, keys],
|
||||||
private/p2p_types, discovery, kademlia, rlpx
|
private/p2p_types, discovery, kademlia, rlpx
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import
|
import
|
||||||
deques, tables,
|
deques, tables,
|
||||||
package_visible_types,
|
package_visible_types,
|
||||||
eth/[rlp, keys], asyncdispatch2, eth/common/eth_types,
|
eth/[rlp, keys], chronos, eth/common/eth_types,
|
||||||
../enode, ../kademlia, ../discovery, ../options, ../rlpxcrypt
|
../enode, ../kademlia, ../discovery, ../options, ../rlpxcrypt
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
macros, tables, algorithm, deques, hashes, options, typetraits,
|
macros, tables, algorithm, deques, hashes, options, typetraits,
|
||||||
chronicles, nimcrypto, asyncdispatch2, eth/[rlp, common, keys],
|
chronicles, nimcrypto, chronos, eth/[rlp, common, keys],
|
||||||
private/p2p_types, kademlia, auth, rlpxcrypt, enode, p2p_tracing
|
private/p2p_types, kademlia, auth, rlpxcrypt, enode, p2p_tracing
|
||||||
|
|
||||||
when useSnappy:
|
when useSnappy:
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
## https://github.com/ethereum/wiki/wiki/Ethereum-Wire-Protocol
|
## https://github.com/ethereum/wiki/wiki/Ethereum-Wire-Protocol
|
||||||
|
|
||||||
import
|
import
|
||||||
asyncdispatch2, stint, chronicles, eth/rlp, eth/common/eth_types,
|
chronos, stint, chronicles, eth/rlp, eth/common/eth_types,
|
||||||
../rlpx, ../private/p2p_types, ../blockchain_utils, ../../p2p
|
../rlpx, ../private/p2p_types, ../blockchain_utils, ../../p2p
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import
|
import
|
||||||
tables, sets,
|
tables, sets,
|
||||||
chronicles, asyncdispatch2, eth/rlp, eth/common/eth_types,
|
chronicles, chronos, eth/rlp, eth/common/eth_types,
|
||||||
../../rlpx, ../../private/p2p_types, private/les_types
|
../../rlpx, ../../private/p2p_types, private/les_types
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
times, tables, options, sets, hashes, strutils, macros,
|
times, tables, options, sets, hashes, strutils, macros,
|
||||||
chronicles, asyncdispatch2, nimcrypto/[keccak, hash],
|
chronicles, chronos, nimcrypto/[keccak, hash],
|
||||||
eth/[rlp, keys], eth/common/eth_types,
|
eth/[rlp, keys], eth/common/eth_types,
|
||||||
../rlpx, ../kademlia, ../private/p2p_types, ../blockchain_utils,
|
../rlpx, ../kademlia, ../private/p2p_types, ../blockchain_utils,
|
||||||
les/private/les_types, les/flow_control
|
les/private/les_types, les/flow_control
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
algorithm, bitops, endians, math, options, sequtils, strutils, tables, times,
|
algorithm, bitops, endians, math, options, sequtils, strutils, tables, times,
|
||||||
secp256k1, chronicles, asyncdispatch2, eth/common/eth_types, eth/[keys, rlp],
|
secp256k1, chronicles, chronos, eth/common/eth_types, eth/[keys, rlp],
|
||||||
hashes, byteutils, nimcrypto/[bcmode, hash, keccak, rijndael, sysrand],
|
hashes, byteutils, nimcrypto/[bcmode, hash, keccak, rijndael, sysrand],
|
||||||
eth/p2p, ../ecies
|
eth/p2p, ../ecies
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import times, asyncdispatch2
|
import times, chronos
|
||||||
|
|
||||||
type
|
type
|
||||||
FullNodeSyncer* = ref object
|
FullNodeSyncer* = ref object
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# MIT license (LICENSE-MIT)
|
# MIT license (LICENSE-MIT)
|
||||||
|
|
||||||
import
|
import
|
||||||
options, unittest, asyncdispatch2, eth/[rlp, keys, p2p],
|
options, unittest, chronos, eth/[rlp, keys, p2p],
|
||||||
eth/p2p/mock_peers, eth/p2p/rlpx_protocols/[whisper_protocol]
|
eth/p2p/mock_peers, eth/p2p/rlpx_protocols/[whisper_protocol]
|
||||||
|
|
||||||
proc localAddress(port: int): Address =
|
proc localAddress(port: int): Address =
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# MIT license (LICENSE-MIT)
|
# MIT license (LICENSE-MIT)
|
||||||
|
|
||||||
import
|
import
|
||||||
sequtils, options, strutils, parseopt, asyncdispatch2,
|
sequtils, options, strutils, parseopt, chronos,
|
||||||
eth/[keys, rlp, p2p], eth/p2p/rlpx_protocols/[whisper_protocol],
|
eth/[keys, rlp, p2p], eth/p2p/rlpx_protocols/[whisper_protocol],
|
||||||
eth/p2p/[discovery, enode, peer_pool]
|
eth/p2p/[discovery, enode, peer_pool]
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
import sequtils, logging
|
import sequtils, logging
|
||||||
import eth/keys, asyncdispatch2, byteutils
|
import eth/keys, chronos, byteutils
|
||||||
import eth/p2p/[discovery, kademlia, enode]
|
import eth/p2p/[discovery, kademlia, enode]
|
||||||
|
|
||||||
const clientId = "nim-eth-p2p/0.0.1"
|
const clientId = "nim-eth-p2p/0.0.1"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# MIT license (LICENSE-MIT)
|
# MIT license (LICENSE-MIT)
|
||||||
|
|
||||||
import
|
import
|
||||||
sequtils, options, unittest, tables, asyncdispatch2, eth/[rlp, keys, p2p],
|
sequtils, options, unittest, tables, chronos, eth/[rlp, keys, p2p],
|
||||||
eth/p2p/rlpx_protocols/[whisper_protocol], eth/p2p/[discovery, enode]
|
eth/p2p/rlpx_protocols/[whisper_protocol], eth/p2p/[discovery, enode]
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
sequtils, strformat, options, unittest,
|
sequtils, strformat, options, unittest,
|
||||||
chronicles, asyncdispatch2, eth/[rlp, keys, p2p],
|
chronicles, chronos, eth/[rlp, keys, p2p],
|
||||||
eth/p2p/mock_peers
|
eth/p2p/mock_peers
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
Loading…
Reference in New Issue