Changed the ethers-rs imports for Foundry compatibility (#2787)

This commit is contained in:
vanbeethoven.eth
2023-05-22 23:48:25 +02:00
committed by GitHub
parent c991a31e0d
commit 7d36dea420
6 changed files with 68 additions and 45 deletions

87
Cargo.lock generated
View File

@ -106,6 +106,15 @@ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "aho-corasick"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04"
dependencies = [
"memchr",
]
[[package]] [[package]]
name = "alloc-no-stdlib" name = "alloc-no-stdlib"
version = "2.0.4" version = "2.0.4"
@ -1787,8 +1796,9 @@ dependencies = [
[[package]] [[package]]
name = "ethers-contract" name = "ethers-contract"
version = "2.0.3" version = "2.0.4"
source = "git+https://github.com/gakonst/ethers-rs#6ebb1b2337fcc28f6cf3f453bd34deba66e98c1f" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfa43e2e69632492d7b38e59465d125a0066cf4c477390ece00d3acbd11b338b"
dependencies = [ dependencies = [
"ethers-contract-abigen", "ethers-contract-abigen",
"ethers-contract-derive", "ethers-contract-derive",
@ -1805,8 +1815,9 @@ dependencies = [
[[package]] [[package]]
name = "ethers-contract-abigen" name = "ethers-contract-abigen"
version = "2.0.3" version = "2.0.4"
source = "git+https://github.com/gakonst/ethers-rs#6ebb1b2337fcc28f6cf3f453bd34deba66e98c1f" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2edb8fdbf77459819a443234b461171a024476bfc12f1853b889a62c6e1185ff"
dependencies = [ dependencies = [
"Inflector", "Inflector",
"dunce", "dunce",
@ -1831,8 +1842,9 @@ dependencies = [
[[package]] [[package]]
name = "ethers-contract-derive" name = "ethers-contract-derive"
version = "2.0.3" version = "2.0.4"
source = "git+https://github.com/gakonst/ethers-rs#6ebb1b2337fcc28f6cf3f453bd34deba66e98c1f" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "939b0c37746929f869285ee37d270b7c998d80cc7404c2e20dda8efe93e3b295"
dependencies = [ dependencies = [
"Inflector", "Inflector",
"ethers-contract-abigen", "ethers-contract-abigen",
@ -1846,8 +1858,9 @@ dependencies = [
[[package]] [[package]]
name = "ethers-core" name = "ethers-core"
version = "2.0.3" version = "2.0.4"
source = "git+https://github.com/gakonst/ethers-rs#6ebb1b2337fcc28f6cf3f453bd34deba66e98c1f" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "198ea9efa8480fa69f73d31d41b1601dace13d053c6fe4be6f5878d9dfcf0108"
dependencies = [ dependencies = [
"arrayvec", "arrayvec",
"bytes", "bytes",
@ -1876,8 +1889,9 @@ dependencies = [
[[package]] [[package]]
name = "ethers-etherscan" name = "ethers-etherscan"
version = "2.0.3" version = "2.0.4"
source = "git+https://github.com/gakonst/ethers-rs#6ebb1b2337fcc28f6cf3f453bd34deba66e98c1f" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "196a21d6939ab78b7a1e4c45c2b33b0c2dd821a2e1af7c896f06721e1ba2a0c7"
dependencies = [ dependencies = [
"ethers-core", "ethers-core",
"getrandom 0.2.9", "getrandom 0.2.9",
@ -1891,8 +1905,9 @@ dependencies = [
[[package]] [[package]]
name = "ethers-middleware" name = "ethers-middleware"
version = "2.0.3" version = "2.0.4"
source = "git+https://github.com/gakonst/ethers-rs#6ebb1b2337fcc28f6cf3f453bd34deba66e98c1f" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75594cc450992fc7de701c9145de612325fd8a18be765b8ae78767ba2b74876f"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"auto_impl", "auto_impl",
@ -1917,8 +1932,9 @@ dependencies = [
[[package]] [[package]]
name = "ethers-providers" name = "ethers-providers"
version = "2.0.3" version = "2.0.4"
source = "git+https://github.com/gakonst/ethers-rs#6ebb1b2337fcc28f6cf3f453bd34deba66e98c1f" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1009041f40476b972b5d79346cc512e97c662b1a0a2f78285eabe9a122909783"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"auto_impl", "auto_impl",
@ -1954,8 +1970,9 @@ dependencies = [
[[package]] [[package]]
name = "ethers-signers" name = "ethers-signers"
version = "2.0.3" version = "2.0.4"
source = "git+https://github.com/gakonst/ethers-rs#6ebb1b2337fcc28f6cf3f453bd34deba66e98c1f" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3bd11ad6929f01f01be74bb00d02bbd6552f22de030865c898b340a3a592db1"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"coins-bip32", "coins-bip32",
@ -2281,7 +2298,7 @@ version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick 0.7.20",
"bstr", "bstr",
"fnv", "fnv",
"log", "log",
@ -3388,7 +3405,7 @@ version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7d24dc2dbae22bff6f1f9326ffce828c9f07ef9cc1e8002e5279f845432a30a" checksum = "f7d24dc2dbae22bff6f1f9326ffce828c9f07ef9cc1e8002e5279f845432a30a"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick 0.7.20",
"crossbeam-epoch", "crossbeam-epoch",
"crossbeam-utils", "crossbeam-utils",
"hashbrown 0.12.3", "hashbrown 0.12.3",
@ -4203,7 +4220,7 @@ dependencies = [
"rand 0.8.5", "rand 0.8.5",
"rand_chacha 0.3.1", "rand_chacha 0.3.1",
"rand_xorshift", "rand_xorshift",
"regex-syntax", "regex-syntax 0.6.29",
"rusty-fork", "rusty-fork",
"tempfile", "tempfile",
"unarray", "unarray",
@ -4460,13 +4477,13 @@ dependencies = [
[[package]] [[package]]
name = "regex" name = "regex"
version = "1.7.1" version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" checksum = "af83e617f331cc6ae2da5443c602dfa5af81e517212d9d611a5b3ba1777b5370"
dependencies = [ dependencies = [
"aho-corasick", "aho-corasick 1.0.1",
"memchr", "memchr",
"regex-syntax", "regex-syntax 0.7.1",
] ]
[[package]] [[package]]
@ -4475,7 +4492,7 @@ version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
dependencies = [ dependencies = [
"regex-syntax", "regex-syntax 0.6.29",
] ]
[[package]] [[package]]
@ -4485,10 +4502,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
[[package]] [[package]]
name = "reqwest" name = "regex-syntax"
version = "0.11.16" version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27b71749df584b7f4cac2c426c127a7c785a5106cc98f7a8feb044115f0fa254" checksum = "a5996294f19bd3aae0453a862ad728f60e6600695733dd5df01da90c54363a3c"
[[package]]
name = "reqwest"
version = "0.11.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55"
dependencies = [ dependencies = [
"base64 0.21.0", "base64 0.21.0",
"bytes", "bytes",
@ -6647,9 +6670,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]] [[package]]
name = "tokio" name = "tokio"
version = "1.27.0" version = "1.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0de47a4eecbe11f498978a9b29d792f0d2692d1dd003650c24c76510e3bc001" checksum = "0aa32867d44e6f2ce3385e89dceb990188b8bb0fb25b0cf576647a6f98ac5105"
dependencies = [ dependencies = [
"autocfg", "autocfg",
"bytes", "bytes",
@ -6661,14 +6684,14 @@ dependencies = [
"signal-hook-registry", "signal-hook-registry",
"socket2", "socket2",
"tokio-macros", "tokio-macros",
"windows-sys 0.45.0", "windows-sys 0.48.0",
] ]
[[package]] [[package]]
name = "tokio-macros" name = "tokio-macros"
version = "2.0.0" version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61a573bdc87985e9d6ddeed1b3d864e8a302c847e40d647746df2f1de209d1ce" checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e"
dependencies = [ dependencies = [
"proc-macro2 1.0.56", "proc-macro2 1.0.56",
"quote 1.0.26", "quote 1.0.26",

View File

@ -19,7 +19,7 @@ reth-ecies = { path = "../ecies" }
reth-rlp = { path = "../../rlp", features = ["alloc", "derive", "std", "ethereum-types", "smol_str"] } reth-rlp = { path = "../../rlp", features = ["alloc", "derive", "std", "ethereum-types", "smol_str"] }
# used for Chain and builders # used for Chain and builders
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false } ethers-core = { version = "2.0.4", default-features = false}
tokio = { version = "1.21.2", features = ["full"] } tokio = { version = "1.21.2", features = ["full"] }
tokio-util = { version = "0.7.4", features = ["io", "codec"] } tokio-util = { version = "0.7.4", features = ["io", "codec"] }
@ -40,7 +40,7 @@ proptest-derive = { version = "0.3", optional = true }
[dev-dependencies] [dev-dependencies]
reth-primitives = { path = "../../primitives", features = ["arbitrary"] } reth-primitives = { path = "../../primitives", features = ["arbitrary"] }
reth-tracing = { path = "../../tracing" } reth-tracing = { path = "../../tracing" }
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false } ethers-core = { version = "2.0.4", default-features = false}
test-fuzz = "3.0.4" test-fuzz = "3.0.4"
tokio-util = { version = "0.7.4", features = ["io", "codec"] } tokio-util = { version = "0.7.4", features = ["io", "codec"] }

View File

@ -67,7 +67,7 @@ secp256k1 = { version = "0.27.0", features = [
] } ] }
enr = { version = "0.8.1", features = ["rust-secp256k1"], optional = true } enr = { version = "0.8.1", features = ["rust-secp256k1"], optional = true }
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false, optional = true } ethers-core = { version = "2.0.4", default-features = false, optional = true }
tempfile = { version = "3.3", optional = true } tempfile = { version = "3.3", optional = true }
[dev-dependencies] [dev-dependencies]
@ -83,10 +83,10 @@ reth-provider = { path = "../../storage/provider", features = ["test-utils"] }
reth-tracing = { path = "../../tracing" } reth-tracing = { path = "../../tracing" }
reth-transaction-pool = { path = "../../transaction-pool", features = ["test-utils"] } reth-transaction-pool = { path = "../../transaction-pool", features = ["test-utils"] }
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false } ethers-core = { version = "2.0.4", default-features = false}
ethers-providers = { git = "https://github.com/gakonst/ethers-rs", default-features = false } ethers-providers = {version = "2.0.4", default-features = false }
ethers-signers = { git = "https://github.com/gakonst/ethers-rs", default-features = false } ethers-signers = {version = "2.0.4", default-features = false }
ethers-middleware = { git = "https://github.com/gakonst/ethers-rs", default-features = false } ethers-middleware = {version = "2.0.4", default-features = false }
enr = { version = "0.8.1", features = ["serde", "rust-secp256k1"] } enr = { version = "0.8.1", features = ["serde", "rust-secp256k1"] }

View File

@ -16,7 +16,7 @@ reth-codecs = { version = "0.1.0", path = "../storage/codecs" }
revm-primitives = { version = "1.1", features = ["serde"] } revm-primitives = { version = "1.1", features = ["serde"] }
# ethereum # ethereum
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false } ethers-core = { version = "2.0.4", default-features = false }
tiny-keccak = { version = "2.0", features = ["keccak"] } tiny-keccak = { version = "2.0", features = ["keccak"] }
crunchy = { version = "0.2.2", default-features = false, features = ["limit_256"] } crunchy = { version = "0.2.2", default-features = false, features = ["limit_256"] }
ruint = { version = "1.7.0", features = ["primitive-types", "rlp"] } ruint = { version = "1.7.0", features = ["primitive-types", "rlp"] }

View File

@ -26,7 +26,7 @@ reth-tasks = { path = "../../tasks" }
# eth # eth
revm = { version = "3", features = ["optional_block_gas_limit", "optional_eip3607", "optional_no_base_fee"] } revm = { version = "3", features = ["optional_block_gas_limit", "optional_eip3607", "optional_no_base_fee"] }
ethers-core = { git = "https://github.com/gakonst/ethers-rs", features = ["eip712"] } ethers-core = { version = "2.0.4", features = ["eip712"]}
revm-primitives = { version = "1.1", features = ["serde"] } revm-primitives = { version = "1.1", features = ["serde"] }

View File

@ -44,10 +44,10 @@ thiserror = "1"
enr = { version = "0.8.1", features = ["serde", "rust-secp256k1"], optional = true } enr = { version = "0.8.1", features = ["serde", "rust-secp256k1"], optional = true }
# ethers # ethers
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false, optional = true } ethers-core = { version = "2.0.4", default-features = false, optional = true}
ethers-providers = { git = "https://github.com/gakonst/ethers-rs", features = ["ws"], default-features = false, optional = true } ethers-providers = { version = "2.0.4", features = ["ws"], default-features = false, optional = true }
ethers-middleware = { git = "https://github.com/gakonst/ethers-rs", default-features = false, optional = true } ethers-middleware = { version = "2.0.4", default-features = false, optional = true }
ethers-signers = { git = "https://github.com/gakonst/ethers-rs", default-features = false, optional = true } ethers-signers = { version = "2.0.4", default-features = false, optional = true }
# async / futures # async / futures
async-trait = { version = "0.1", optional = true } async-trait = { version = "0.1", optional = true }