Skip to content

Commit 6af12f8

Browse files
authored
Add support for EIP-7702 (#3358)
1 parent dbe7f70 commit 6af12f8

File tree

213 files changed

+8205
-3111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+8205
-3111
lines changed

Cargo.lock

Lines changed: 41 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ evm-tracing-events = { path = "primitives/rpc/evm-tracing-events", default-featu
6565
moonbeam-core-primitives = { path = "core-primitives", default-features = false }
6666
moonbeam-primitives-ext = { path = "primitives/ext", default-features = false }
6767
moonbeam-rpc-primitives-debug = { path = "primitives/rpc/debug", default-features = false, features = [
68-
"runtime-3000",
68+
"runtime-3900",
6969
] }
7070
moonbeam-rpc-primitives-txpool = { path = "primitives/rpc/txpool", default-features = false }
7171
storage-proof-primitives = { path = "primitives/storage-proof", default-features = false }
@@ -236,7 +236,7 @@ substrate-rpc-client = { git = "https://github.com/moonbeam-foundation/polkadot-
236236

237237
# Frontier (wasm)
238238

239-
ethereum = { git = "https://github.com/rust-ethereum/ethereum.git", rev = "3be0d8fd4c2ad1ba216b69ef65b9382612efc8ba", default-features = false, features = [
239+
ethereum = { version = "0.18.2", default-features = false, features = [
240240
"with-scale",
241241
] }
242242
ethereum-types = { version = "0.15.1", default-features = false }
@@ -360,7 +360,9 @@ nimbus-consensus = { git = "https://github.com/Moonsong-Labs/moonkit", branch =
360360
async-trait = { version = "0.1.42" }
361361
derive_more = "0.99.17"
362362
environmental = { version = "1.1.4", default-features = false }
363-
frame-metadata = { version = "18.0.0", default-features = false, features = ["current"] }
363+
frame-metadata = { version = "18.0.0", default-features = false, features = [
364+
"current",
365+
] }
364366
frame-metadata-hash-extension = { git = "https://github.com/moonbeam-foundation/polkadot-sdk", branch = "moonbeam-polkadot-stable2412", default-features = false }
365367
hex = { version = "0.4.3", default-features = false }
366368
hex-literal = { version = "0.4.1", default-features = false }

client/rpc-core/debug/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = { workspace = true }
88
version = "0.1.0"
99

1010
[dependencies]
11-
ethereum = { workspace = true, features = [ "with-scale" ] }
11+
ethereum = { workspace = true, features = [ "with-scale", "with-serde" ] }
1212
ethereum-types = { workspace = true, features = [ "std" ] }
1313
jsonrpsee = { workspace = true, features = [ "macros", "server" ] }
1414
moonbeam-client-evm-tracing = { workspace = true }

client/rpc-core/debug/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
1616

17-
use ethereum::AccessListItem;
17+
use ethereum::{AccessListItem, AuthorizationList};
1818
use ethereum_types::{H160, H256, U256};
1919
use fc_rpc_core::types::Bytes;
2020
use jsonrpsee::{core::RpcResult, proc_macros::rpc};
@@ -57,6 +57,8 @@ pub struct TraceCallParams {
5757
pub nonce: Option<U256>,
5858
/// EIP-2930 access list
5959
pub access_list: Option<Vec<AccessListItem>>,
60+
/// EIP-7702 authorization list
61+
pub authorization_list: Option<AuthorizationList>,
6062
/// EIP-2718 type
6163
#[serde(rename = "type")]
6264
pub transaction_type: Option<U256>,

0 commit comments

Comments
 (0)