github.com/MetalBlockchain/subnet-evm@v0.4.9/scripts/run_simulator.sh (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  echo "Beginning simulator script"
     5  
     6  if ! [[ "$0" =~ scripts/run_simulator.sh ]]; then
     7    echo "must be run from repository root, but got $0"
     8    exit 255
     9  fi
    10  
    11  # Load the versions
    12  SUBNET_EVM_PATH=$(
    13    cd "$(dirname "${BASH_SOURCE[0]}")"
    14    cd .. && pwd
    15  )
    16  source "$SUBNET_EVM_PATH"/scripts/versions.sh
    17  
    18  # Load the constants
    19  source "$SUBNET_EVM_PATH"/scripts/constants.sh
    20  
    21  run_simulator() {
    22      #################################
    23      echo "building simulator"
    24      pushd ./cmd/simulator
    25      go install -v .
    26      echo 
    27  
    28      popd
    29      echo "running simulator from $PWD"
    30      simulator \
    31          --rpc-endpoints=$RPC_ENDPOINTS \
    32          --keys=./cmd/simulator/.simulator/keys \
    33          --timeout=30s \
    34          --concurrency=10 \
    35          --base-fee=300 \
    36          --priority-fee=100
    37  }
    38  
    39  run_simulator