Skip to content

Commit

Permalink
Merge pull request #56 from l-monninger/main
Browse files Browse the repository at this point in the history
[ECO] includes evm runtime as submodule
  • Loading branch information
l-monninger authored Oct 6, 2023
2 parents 5219d0a + 56418d4 commit 79449dc
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .devcontainer/movement/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM --platform=amd64 mvlbs/m1
8 changes: 8 additions & 0 deletions .devcontainer/movement/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "movement",
"dockerFile": "Dockerfile",
"context": ".",
"forwardPorts": [],
"postCreateCommand": "cargo check",
"remoteUser": "root"
}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
path = aptos-pre-core
url = https://github.com/movemntdev/aptos-core
branch = m1-pre-core
[submodule "ecosystem/evm-runtime"]
path = ecosystem/evm-runtime
url = https://github.com/movemntdev/move-evm-swap-backend
1 change: 1 addition & 0 deletions ecosystem/evm-runtime
Submodule evm-runtime added at cc29eb
18 changes: 17 additions & 1 deletion scripts/movementctl.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# Version: 1.0
################################################################################

VM_NAME="movement"
SUBNET_ID="2gLyawqthdiyrJktJmdnDAb1XVc6xwJXU6iJKu3Uwj21F2mXAK"
PID_DIR="$HOME/.movement/pid"
mkdir -p "$PID_DIR"

Expand All @@ -37,10 +39,24 @@ function start_avalanchego() {
# Starts the avalanche-network-runner server
function start_avalanche_network_runner() {
if [[ $RUN_IN_FOREGROUND == "true" ]]; then
avalanche-network-runner server --log-level debug
# Start a new tmux session in detached mode and run the first command
tmux new-session -d -s lnet 'avalanche-network-runner server --log-level debug'

# Introduce a delay (e.g., 5 seconds)
sleep 5

# Run the second command in the current terminal
avalanche-network-runner control create-blockchains '[{"vm_name":"'$VM_NAME'", "subnet_id": "'$SUBNET_ID'"}]'

tmux attach-session -t lnet

else
avalanche-network-runner server --log-level debug &
echo $! >> "$PID_DIR/avalanche_network_runner.pid"
# Introduce a delay (e.g., 5 seconds)
sleep 5
# Run the second command in the current terminal
avalanche-network-runner control create-blockchains '[{"vm_name":"'$VM_NAME'", "subnet_id": "'$SUBNET_ID'"}]'
fi
}

Expand Down

0 comments on commit 79449dc

Please sign in to comment.