Skip to content

Commit

Permalink
Deprecate precompile (#1511)
Browse files Browse the repository at this point in the history
* Disable bls precompile

* Delete the bls ts test
  • Loading branch information
boundless-forest authored Jun 6, 2024
1 parent 198ffa0 commit 2dadcd4
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 921 deletions.
21 changes: 0 additions & 21 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ darwinia-common-runtime = { path = "runtime/common", default-features
darwinia-deposit = { path = "pallet/deposit", default-features = false }
darwinia-ethtx-forwarder = { path = "pallet/ethtx-forwarder", default-features = false }
darwinia-precompile-assets = { path = "precompile/assets", default-features = false }
darwinia-precompile-bls12-381 = { path = "precompile/bls12-381", default-features = false }
darwinia-precompile-deposit = { path = "precompile/deposit", default-features = false }
darwinia-precompile-staking = { path = "precompile/staking", default-features = false }
darwinia-precompile-state-storage = { path = "precompile/state-storage", default-features = false }
Expand Down
52 changes: 0 additions & 52 deletions precompile/bls12-381/Cargo.toml

This file was deleted.

180 changes: 0 additions & 180 deletions precompile/bls12-381/src/bls/mod.rs

This file was deleted.

77 changes: 0 additions & 77 deletions precompile/bls12-381/src/lib.rs

This file was deleted.

2 changes: 0 additions & 2 deletions runtime/crab/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ darwinia-common-runtime = { workspace = true }
darwinia-deposit = { workspace = true }
darwinia-ethtx-forwarder = { workspace = true }
darwinia-precompile-assets = { workspace = true }
darwinia-precompile-bls12-381 = { workspace = true }
darwinia-precompile-deposit = { workspace = true }
darwinia-precompile-staking = { workspace = true }
darwinia-precompile-state-storage = { workspace = true }
Expand Down Expand Up @@ -153,7 +152,6 @@ std = [
"darwinia-deposit/std",
"darwinia-ethtx-forwarder/std",
"darwinia-precompile-assets/std",
"darwinia-precompile-bls12-381/std",
"darwinia-precompile-deposit/std",
"darwinia-precompile-staking/std",
"darwinia-precompile-state-storage/std",
Expand Down
3 changes: 1 addition & 2 deletions runtime/crab/src/pallets/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ where
a if a == addr(0x602) =>
Some(<pallet_evm_precompile_conviction_voting::ConvictionVotingPrecompile<Runtime>>::execute(handle)),
// [0x800..) reserved for the experimental precompiles.
a if a == addr(0x800) =>
Some(<darwinia_precompile_bls12_381::BLS12381<Runtime>>::execute(handle)),
a if a == addr(0x800) => Some(Err(precompile_utils::prelude::revert("This precompile is no longer supported."))),
_ => None,
}
}
Expand Down
Loading

0 comments on commit 2dadcd4

Please sign in to comment.