Skip to content

Commit

Permalink
Fork the Ethereum Address Manager + add deployment permissioning (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAtwill authored Feb 12, 2024
1 parent c4fc4b0 commit 5beaab2
Show file tree
Hide file tree
Showing 9 changed files with 482 additions and 2 deletions.
55 changes: 55 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 @@ -65,6 +65,7 @@ futures-core = "0.3"
futures-util = "0.3"
gcra = "0.4"
hex = "0.4"
hex-literal = "0.4.1"
im = "15.1.0"
integer-encoding = { version = "3.0.3", default-features = false }
jsonrpc-v2 = { version = "0.11", default-features = false, features = [
Expand Down Expand Up @@ -183,6 +184,7 @@ fvm_ipld_amt = "0.6.2"
# and this copy-paste is clunky, so at least for those that have it, we should use it.
# Keep the version here in sync with the Makefile!
fil_actors_evm_shared = { git = "https://github.com/filecoin-project/builtin-actors", tag = "v12.0.0" }
fil_actor_eam = { git = "https://github.com/filecoin-project/builtin-actors", tag = "v12.0.0" }
fil_actors_runtime = { git = "https://github.com/filecoin-project/builtin-actors", tag = "v12.0.0" }

cid = { version = "0.10.1", default-features = false, features = [
Expand Down
2 changes: 2 additions & 0 deletions fendermint/actors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ license.workspace = true
fendermint_actor_chainmetadata = { path = "chainmetadata", features = [
"fil-actor",
] }
fendermint_actor_eam = { path = "eam", features = ["fil-actor"] }

[dependencies]
cid = { workspace = true }
anyhow = { workspace = true }
fvm_ipld_blockstore = { workspace = true }
fvm_ipld_encoding = { workspace = true }
fendermint_actor_chainmetadata = { path = "chainmetadata" }
fendermint_actor_eam = { path = "eam" }

[build-dependencies]
fil_actors_runtime = { workspace = true, features = ["test_utils"] }
Expand Down
2 changes: 1 addition & 1 deletion fendermint/actors/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::path::Path;
use std::process::{Command, Stdio};
use std::thread;

const ACTORS: &[&str] = &["chainmetadata"];
const ACTORS: &[&str] = &["chainmetadata", "eam"];

const FILES_TO_WATCH: &[&str] = &["Cargo.toml", "src"];

Expand Down
34 changes: 34 additions & 0 deletions fendermint/actors/eam/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[package]
name = "fendermint_actor_eam"
description = "Builtin Ethereum address manager actor for IPC"
license.workspace = true
edition.workspace = true
authors.workspace = true
version = "0.1.0"

[lib]
## lib is necessary for integration tests
## cdylib is necessary for Wasm build
crate-type = ["cdylib", "lib"]

[dependencies]
anyhow = { workspace = true }
cid = { workspace = true }
fil_actor_eam = { workspace = true }
fil_actors_runtime = { workspace = true }
fvm_ipld_blockstore = { workspace = true }
fvm_ipld_encoding = { workspace = true }
fvm_shared = { workspace = true }
log = { workspace = true }
multihash = { workspace = true }
num-derive = { workspace = true }
num-traits = { workspace = true }
serde = { workspace = true }
hex-literal = { workspace = true }

[dev-dependencies]
fil_actors_evm_shared = { workspace = true }
fil_actors_runtime = { workspace = true, features = ["test_utils"] }

[features]
fil-actor = ["fil_actors_runtime/fil-actor"]
Loading

0 comments on commit 5beaab2

Please sign in to comment.