mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
This moves to Rust 1.86 as were prior on Rust 1.81, and the new alloy dependencies require 1.82. The revm API changes were notable for us. Instead of relying on a modified call instruction (with deep introspection into the EVM design), we now use the more recent and now more prominent Inspector API. This: 1) Lets us perform far less introspection 2) Forces us to rewrite the gas estimation code we just had audited Thankfully, it itself should be much easier to read/review, and our existing test suite has extensively validated it. This resolves 001 which was a concern for if/when this upgrade occurs. By doing it now, with a dedicated test case ensuring the issue we would have had with alloy-core 0.8 and `validate=false` isn't actively an issue, we resolve it.
29 lines
946 B
TOML
29 lines
946 B
TOML
[package]
|
|
name = "serai-ethereum-test-primitives"
|
|
version = "0.1.0"
|
|
description = "Test primitives for Ethereum"
|
|
license = "AGPL-3.0-only"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/processor/ethereum/test-primitives"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
edition = "2021"
|
|
publish = false
|
|
rust-version = "1.81"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
k256 = { version = "0.13", default-features = false, features = ["std"] }
|
|
|
|
alloy-core = { version = "1", default-features = false }
|
|
alloy-consensus = { version = "0.14", default-features = false, features = ["std"] }
|
|
|
|
alloy-rpc-types-eth = { version = "0.14", default-features = false }
|
|
alloy-provider = { version = "0.14", default-features = false }
|
|
|
|
ethereum-primitives = { package = "serai-processor-ethereum-primitives", path = "../primitives", default-features = false }
|