Skip to content

Commit

Permalink
Remove fil_actor_interface crate and sync check (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank authored Dec 5, 2024
1 parent 6399170 commit ee9fe74
Show file tree
Hide file tree
Showing 22 changed files with 4 additions and 4,319 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,3 @@ jobs:
uses: ./.github/composite-actions/publish-crate
with:
crate: "fil_actor_reward_state"

publish-interface:
runs-on: ubuntu-latest
needs: [publish-independent, publish-dependent-on-shared, publish-reward]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Publish interface crate
uses: ./.github/composite-actions/publish-crate
with:
crate: "fil_actor_interface"
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
members = [
"fil_actors_shared",
"fil_actors_test_utils",
"fil_actor_interface",
"actors/account",
"actors/init",
"actors/cron",
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ update-forest:

modify-forest:
# Set dependencies to this repository
sed -i -e 's|fil_actor_interface =.*|fil_actor_interface = { path = "../fil_actor_interface" }|g' ./forest/Cargo.toml
sed -i -E 's|fil_actors_shared = \{ version = "[^"]*", features = \[(.*)\] \}|fil_actors_shared = { path = "../fil_actors_shared", features = [\1] }|g' ./forest/Cargo.toml
sed -i -E 's|(fil_actors_shared = \{).*git =.*branch =.*,(.*features =.*)|\1 path = "../fil_actors_shared",\2|g' ./forest/Cargo.toml
sed -i -e 's|fil_actor_account_state =.*|fil_actor_account_state = { path = "../actors/account" }|g' ./forest/Cargo.toml
sed -i -e 's|fil_actor_init_state =.*|fil_actor_init_state = { path = "../actors/init" }|g' ./forest/Cargo.toml
sed -i -e 's|fil_actor_miner_state =.*|fil_actor_miner_state = { path = "../actors/miner" }|g' ./forest/Cargo.toml
sed -i -e 's|fil_actor_evm_state =.*|fil_actor_evm_state = { path = "../actors/evm" }|g' ./forest/Cargo.toml
sed -i -e 's|fil_actor_multisig_state =.*|fil_actor_multisig_state = { path = "../actors/multisig" }|g' ./forest/Cargo.toml
sed -i -e 's|fil_actor_power_state =.*|fil_actor_power_state = { path = "../actors/power" }|g' ./forest/Cargo.toml
sed -i -e 's|fil_actor_system_state =.*|fil_actor_system_state = { path = "../actors/system" }|g' ./forest/Cargo.toml
sed -i -e 's|fil_actor_datacap_state =.*|fil_actor_datacap_state = { path = "../actors/datacap" }|g' ./forest/Cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://github.com/filecoin-project/builtin-actors
NOTE: The code in `actors/` and `fil_actors_shared/` is copy-pasted from the
above repository. Therefore, it's advised to avoid refactoring such code in
order to facilitate a smoother version upgrade process and potentially automate
it. `fil_actor_interface/` can be modified according to project's needs.
it.

# Why the copy-paste?

Expand Down
2 changes: 1 addition & 1 deletion check_crates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for actor in actors/*; do
fi
done

others=(fil_actor_interface fil_actors_shared)
others=(fil_actors_shared)
for other in "${others[@]}"; do
check_crate "$other"
done
Expand Down
36 changes: 0 additions & 36 deletions fil_actor_interface/Cargo.toml

This file was deleted.

38 changes: 0 additions & 38 deletions fil_actor_interface/src/builtin/account/mod.rs

This file was deleted.

25 changes: 0 additions & 25 deletions fil_actor_interface/src/builtin/cron/mod.rs

This file was deleted.

60 changes: 0 additions & 60 deletions fil_actor_interface/src/builtin/datacap/mod.rs

This file was deleted.

43 changes: 0 additions & 43 deletions fil_actor_interface/src/builtin/evm/mod.rs

This file was deleted.

42 changes: 0 additions & 42 deletions fil_actor_interface/src/builtin/init/mod.rs

This file was deleted.

Loading

0 comments on commit ee9fe74

Please sign in to comment.