Skip to content

Commit

Permalink
P 1277 Avoid depending on moonbeam/astar deps (#3237)
Browse files Browse the repository at this point in the history
* remove moonbeam/astar direct dependency.
copy rpc related code and put it into separate repo `litentry/moonbeam-vendor-rpc`

* doesn't need `sudo` here

---------

Co-authored-by: BillyWooo <[email protected]>
  • Loading branch information
BillyWooo and BillyWooo authored Jan 24, 2025
1 parent a224554 commit c89f8d7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ test-cargo-all-benchmarks:

.PHONY: test-ts-litentry ## Run litentry ts tests without clean-up
test-ts-litentry: launch-network-litentry
@cd parachain && ./scripts/run-ts-test.sh litentry
@trap "./scripts/clean-network.sh" EXIT; cd parachain && ./scripts/run-ts-test.sh litentry

.PHONY: test-ts-paseo ## Run paseo ts tests without clean-up
test-ts-paseo: launch-network-paseo
@cd parachain && ./scripts/run-ts-test.sh paseo
@trap "./scripts/clean-network.sh" EXIT; cd parachain && ./scripts/run-ts-test.sh paseo

# clean up
.PHONY: clean-network ## Clean up the network launched by 'launch-network'
Expand Down
26 changes: 13 additions & 13 deletions parachain/Cargo.lock

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

14 changes: 7 additions & 7 deletions parachain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ cumulus-relay-chain-interface = { git = "https://github.com/paritytech/polkadot-
cumulus-test-relay-sproof-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2407", default-features = false }

# evm-tracing, use the astar version to use "standard" substrate frame to avoid any conflicts
moonbeam-primitives-ext = { git = "https://github.com/AstarNetwork/Astar", tag = "v5.45.0", default-features = false }
moonbeam-rpc-debug = { git = "https://github.com/AstarNetwork/Astar", tag = "v5.45.0" }
moonbeam-rpc-primitives-debug = { git = "https://github.com/AstarNetwork/Astar", tag = "v5.45.0", default-features = false }
moonbeam-rpc-primitives-txpool = { git = "https://github.com/AstarNetwork/Astar", tag = "v5.45.0", default-features = false }
moonbeam-rpc-trace = { git = "https://github.com/AstarNetwork/Astar", tag = "v5.45.0", default-features = false }
moonbeam-rpc-txpool = { git = "https://github.com/AstarNetwork/Astar", tag = "v5.45.0", default-features = false }
moonbeam-evm-tracer = { git = "https://github.com/AstarNetwork/Astar", tag = "v5.45.0", default-features = false }
moonbeam-primitives-ext = { git = "https://github.com/litentry/moonbeam-vendor-rpc", default-features = false }
moonbeam-rpc-debug = { git = "https://github.com/litentry/moonbeam-vendor-rpc" }
moonbeam-rpc-primitives-debug = { git = "https://github.com/litentry/moonbeam-vendor-rpc", default-features = false }
moonbeam-rpc-primitives-txpool = { git = "https://github.com/litentry/moonbeam-vendor-rpc", default-features = false }
moonbeam-rpc-trace = { git = "https://github.com/litentry/moonbeam-vendor-rpc", default-features = false }
moonbeam-rpc-txpool = { git = "https://github.com/litentry/moonbeam-vendor-rpc", default-features = false }
moonbeam-evm-tracer = { git = "https://github.com/litentry/moonbeam-vendor-rpc", default-features = false }

# polkadot client
polkadot-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "stable2407" }
Expand Down
4 changes: 2 additions & 2 deletions parachain/scripts/clean-network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ esac
ZOMBIENET_BIN=zombienet-${os}-${arch}
ZOMBIENET_PID=$(pidof $ZOMBIENET_BIN)

if [ -z $ZOMBIENET_PID ]; then
if [ -z "$ZOMBIENET_PID" ]; then
# the network might not be started with zombienet
killall polkadot || true
killall litentry-collator || true
else
kill -2 $ZOMBIENET_PID
fi

docker ps -q -f name=geth | xargs -r docker stop
docker ps -q -f name=geth | xargs -r docker stop

rm -rf "$LITENTRY_PARACHAIN_DIR"

Expand Down

0 comments on commit c89f8d7

Please sign in to comment.