Skip to content

Commit

Permalink
Support EIP-2537 (polkadot-evm#1251)
Browse files Browse the repository at this point in the history
* impl eip-2537

* update gas meter

* change except error info
  • Loading branch information
hujw77 authored Dec 5, 2023
1 parent 176cb34 commit 2f50992
Show file tree
Hide file tree
Showing 23 changed files with 7,515 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ members = [
"frame/evm/precompile/blake2",
"frame/evm/precompile/bw6761",
"frame/evm/precompile/bls12377",
"frame/evm/precompile/bls12381",
"frame/evm/precompile/dispatch",
"frame/evm/precompile/curve25519",
"client/api",
Expand Down Expand Up @@ -182,6 +183,7 @@ precompile-utils = { path = "precompiles", default-features = false }

# Arkworks
ark-bls12-377 = { version = "0.4.0", default-features = false, features = ["curve"] }
ark-bls12-381 = { version = "0.4.0", default-features = false, features = ["curve"] }
ark-bw6-761 = { version = "0.4.0", default-features = false }
ark-ec = { version = "0.4.0", default-features = false }
ark-ff = { version = "0.4.0", default-features = false }
Expand Down
33 changes: 33 additions & 0 deletions frame/evm/precompile/bls12381/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "pallet-evm-precompile-bls12381"
version = "1.0.0-dev"
authors = { workspace = true }
edition = { workspace = true }
repository = { workspace = true }

[dependencies]
# Arkworks
ark-bls12-381 = { workspace = true }
ark-ec = { workspace = true }
ark-ff = { workspace = true }
ark-std = { workspace = true }

# Frontier
fp-evm = { workspace = true }

[dev-dependencies]
# Frontier
pallet-evm-test-vector-support = { workspace = true }

[features]
default = ["std"]
std = [
# Arkworks
"ark-bls12-381/std",
"ark-ec/std",
"ark-ff/std",
"ark-std/std",

# Frontier
"fp-evm/std",
]
Loading

0 comments on commit 2f50992

Please sign in to comment.