From e243e17e1e1d545e94c84e86b6d17baf55f64187 Mon Sep 17 00:00:00 2001
From: Nikita Melnikov <nikmel2803@gmail.com>
Date: Tue, 30 Jan 2024 15:44:11 +0100
Subject: [PATCH] add alto bundler configuration

---
 bundlers/alto/alto.yml | 13 +++++++++++++
 runall.sh              | 10 +++++-----
 2 files changed, 18 insertions(+), 5 deletions(-)
 create mode 100644 bundlers/alto/alto.yml

diff --git a/bundlers/alto/alto.yml b/bundlers/alto/alto.yml
new file mode 100644
index 0000000..c7f8cff
--- /dev/null
+++ b/bundlers/alto/alto.yml
@@ -0,0 +1,13 @@
+services:
+
+  bundler:
+    ports: [ '3000:3000' ]
+    image: ghcr.io/pimlicolabs/alto:latest
+    environment:
+      - ALTO_ENTRY_POINT=$ENTRYPOINT
+      - ALTO_MAX_SIGNERS=1
+      - ALTO_RPC_URL=$ETH_RPC_URL
+      - ALTO_SIGNER_PRIVATE_KEYS=0xc6cbc5ffad570fdad0544d1b5358a36edeb98d163b6567912ac4754e144d4edb
+      - ALTO_UTILITY_PRIVATE_KEY=0xc6cbc5ffad570fdad0544d1b5358a36edeb98d163b6567912ac4754e144d4edb
+      - ALTO_NETWORK_NAME=local
+      - ALTO_MIN_BALANCE=0
diff --git a/runall.sh b/runall.sh
index 2f34a16..705593f 100755
--- a/runall.sh
+++ b/runall.sh
@@ -1,4 +1,4 @@
-#!/bin/bash 
+#!/bin/bash
 
 test -n "$VERBOSE" && set -x
 
@@ -17,7 +17,7 @@ BUNDLERS=`realpath $1`
 shift
 fi
 
-cd bundler-spec-tests 
+cd bundler-spec-tests
 
 #first time must runall.
 test -d .venv || runall=1
@@ -30,7 +30,7 @@ fi
 rm -rf $OUT
 mkdir -p $OUT
 
-for bundler in $BUNDLERS; do 
+for bundler in $BUNDLERS; do
 
 bundlerTitle=`echo $bundler|perl -pe "s@$root/?@@"`
 echo ====================================================================
@@ -47,7 +47,7 @@ function getEnv {
   envFile=$1
   name=$2
   def=$3
-  
+
   val=`sh -c "source $envFile; echo \\\$$name"`
   echo ${val:-$def}
 }
@@ -63,7 +63,7 @@ if $root/runbundler/runbundler.sh $bundler pull-start; then
 
   echo "`date`: started bundler $bundler, name=$name" | tee -a $outraw
 
-  case "$bunder" in
+  case "$bundler" in
     *yml) PYTEST_FOLDER=`getEnv $root/runbundler/runbundler.env PYTEST_FOLDER tests/single` ;;
     *env) PYTEST_FOLDER=`getEnv $bundler PYTEST_FOLDER tests/p2p` ;;
   esac