mirror of
https://github.com/zama-ai/fhevm-solidity.git
synced 2026-01-10 04:57:59 -05:00
chore: remove E2E ci scripts
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script execute a python script within a ready-to-use docker image with all the required python modules.
|
||||
# The script takes two arguments:
|
||||
# 1. The private key of the main account which has already funds.
|
||||
# 2. (Optional) The node address (default: http://host.docker.internal:8545)
|
||||
#
|
||||
# Example usage: ./run_ERC20.sh <private_key> http://host.docker.internal:8545
|
||||
|
||||
if [ "$#" -lt 2 ]; then
|
||||
echo "Please give the private key of the main account and optionnaly the node @:port"
|
||||
echo "Example: `basename "$0"` CB99CAA34343 http://host.docker.internal:8545"
|
||||
exit
|
||||
fi
|
||||
|
||||
PRIVATE_KEY=$1
|
||||
NODE_ADDRESS=${2:-http://host.docker.internal:8545}
|
||||
|
||||
# Create the keys directory if it doesn't exist
|
||||
mkdir -p keys
|
||||
|
||||
echo "Exported private key: $PRIVATE_KEY"
|
||||
|
||||
# Run the Python script with the exported private key as an argument
|
||||
docker compose -f ci/docker-compose.yml run app python ci/tests/ERC20.py $PRIVATE_KEY $NODE_ADDRESS
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script exports an Ethereum private key from an evmos node and uses it to run a Python script.
|
||||
# The script takes two arguments:
|
||||
# 1. The name of the key to export (e.g., mykey1 or mykey2)
|
||||
# 2. The path to the evmos directory
|
||||
#
|
||||
# Example usage: ./run_ERC20_ci_test.sh mykey1 ../evmos
|
||||
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Please give the key name (e.g., mykey1 or mykey2) and the path to the evmos directory and optionnaly the node @:port"
|
||||
echo "Example: `basename "$0"` mykey1 ../evmos"
|
||||
exit
|
||||
fi
|
||||
|
||||
key=$1
|
||||
PATH_TO_EVMOS=$2
|
||||
|
||||
# Create the keys directory if it doesn't exist
|
||||
mkdir -p keys
|
||||
|
||||
# Export the private key from the evmos node
|
||||
PRIVATE_KEY=$(docker compose -f $PATH_TO_EVMOS/docker-compose/docker-compose.validator.yml exec validator evmosd --home /root/.evmosd keys unsafe-export-eth-key $key --keyring-backend test)
|
||||
|
||||
echo "Exported private key: $PRIVATE_KEY"
|
||||
|
||||
# Run the Python script with the exported private key as an argument
|
||||
docker compose -f ci/docker-compose.yml run app python ci/tests/ERC20.py $PRIVATE_KEY
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script exports an Ethereum private key from an evmos node and uses it to run a Python script.
|
||||
# The script takes two arguments:
|
||||
# 1. The name of the key to export (e.g., mykey1 or mykey2)
|
||||
# 2. The path to the evmos directory
|
||||
#
|
||||
# Example usage: ./run_ERC20_e2e_test.sh.sh mykey1 ../evmos
|
||||
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Please give the key name (e.g., mykey1 or mykey2) and the path to the evmos directory"
|
||||
echo "Example: `basename "$0"` mykey1 ../evmos"
|
||||
exit
|
||||
fi
|
||||
|
||||
key=$1
|
||||
PATH_TO_EVMOS=$2
|
||||
|
||||
# Create the keys directory if it doesn't exist
|
||||
mkdir -p keys
|
||||
|
||||
# Export the private key from the evmos node
|
||||
PRIVATE_KEY=$(docker compose -f $PATH_TO_EVMOS/docker-compose/docker-compose.local.yml exec evmosnodelocal evmosd --home /root/.evmosd keys unsafe-export-eth-key $key --keyring-backend test)
|
||||
|
||||
echo "Exported private key: $PRIVATE_KEY"
|
||||
|
||||
# Run the Python script with the exported private key as an argument
|
||||
docker compose -f ci/docker-compose.yml run app python ci/tests/ERC20.py $PRIVATE_KEY
|
||||
Reference in New Issue
Block a user