Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECO] includes evm runtime as submodule #56

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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