Skip to content
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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ draw-deps:
clean:
rm -rf snapcraft-local.yaml build/

.PHONY: replace-addresses
replace-addresses:
bash e2e-tests/replace_addresses.sh

distclean: clean
rm -rf vendor/

Expand Down
82 changes: 82 additions & 0 deletions e2e-tests/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copy this file to e2e-tests/.env and adjust values.

# Path to push-chain workspace root.
# Keep this empty to use auto-detection (parent of e2e-tests).
# PUSH_CHAIN_DIR=

# Local Push RPC
PUSH_RPC_URL=http://localhost:8545

# Public testnet RPCs used when TESTING_ENV is not LOCAL.
# setup-environment writes these into e2e-tests/config/testnet-donut/*/chain.json,
# and setup-sdk writes them into push-chain-sdk chain.ts defaults.
ETHEREUM_SEPOLIA_RPC_URL=
ARBITRUM_SEPOLIA_RPC_URL=
BASE_SEPOLIA_RPC_URL=
BSC_TESTNET_RPC_URL=
SOLANA_DEVNET_RPC_URL=https://api.devnet.solana.com

# Local chain info
CHAIN_ID=localchain_9000-1
KEYRING_BACKEND=test
# Set to LOCAL to enable anvil/surfpool setup and local RPC rewrites in setup-environment/all
TESTING_ENV=

# Genesis key recovery/funding
GENESIS_KEY_NAME=genesis-acc-1
GENESIS_KEY_HOME=./e2e-tests/.pchain
# Optional local fallback file. If missing, setup.sh reads accounts from docker core-validator-1 (/tmp/push-accounts/genesis_accounts.json)
GENESIS_ACCOUNTS_JSON=./e2e-tests/genesis_accounts.json

# Optional: set to skip interactive mnemonic prompt
# GENESIS_MNEMONIC="word1 word2 ..."

# Address to fund from genesis account
FUND_TO_ADDRESS=push1w7xnyp3hf79vyetj3cvw8l32u6unun8yr6zn60
FUND_AMOUNT=1000000000000000000upc
POOL_CREATION_TOPUP_AMOUNT=50000000000000000000upc
GAS_PRICES=100000000000upc

# EVM private key used by forge/hardhat scripts
PRIVATE_KEY=0xYOURPRIVATEKEY

# External repositories
CORE_CONTRACTS_REPO=https://github.com/pushchain/push-chain-core-contracts.git
CORE_CONTRACTS_BRANCH=core-testnet-e2e

SWAP_AMM_REPO=https://github.com/pushchain/push-chain-swap-internal-amm-contracts.git
SWAP_AMM_BRANCH=e2e-push-node

GATEWAY_REPO=https://github.com/pushchain/push-chain-gateway-contracts.git
GATEWAY_BRANCH=gateway-testnet-e2e

PUSH_CHAIN_SDK_REPO=https://github.com/pushchain/push-chain-sdk.git
PUSH_CHAIN_SDK_BRANCH=main

# push-chain-sdk core .env target path (relative to PUSH_CHAIN_SDK_DIR)
PUSH_CHAIN_SDK_CORE_ENV_PATH=packages/core/.env

# Local clone layout (outside push-chain directory)
E2E_PARENT_DIR=../
CORE_CONTRACTS_DIR=../push-chain-core-contracts
SWAP_AMM_DIR=../push-chain-swap-internal-amm-contracts
GATEWAY_DIR=../push-chain-gateway-contracts
PUSH_CHAIN_SDK_DIR=../push-chain-sdk
PUSH_CHAIN_SDK_E2E_DIR=packages/core/__e2e__/evm/inbound

# push-chain-sdk required env vars (mirrored into PUSH_CHAIN_SDK_DIR/packages/core/.env by setup-sdk)
# Defaults used by setup-sdk when omitted:
# EVM_PRIVATE_KEY <= PRIVATE_KEY
# EVM_RPC <= PUSH_RPC_URL in LOCAL, ETHEREUM_SEPOLIA_RPC_URL otherwise
# PUSH_PRIVATE_KEY<= PRIVATE_KEY
EVM_PRIVATE_KEY=
EVM_RPC=
SOLANA_RPC_URL=https://api.devnet.solana.com
SOLANA_PRIVATE_KEY=
PUSH_PRIVATE_KEY=

# Tracking files
DEPLOY_ADDRESSES_FILE=./e2e-tests/deploy_addresses.json
TEST_ADDRESSES_PATH=../push-chain-swap-internal-amm-contracts/test-addresses.json
TOKEN_CONFIG_PATH=./config/testnet-donut/eth_sepolia/tokens/eth.json
CHAIN_CONFIG_PATH=./config/testnet-donut/eth_sepolia/chain.json
3 changes: 3 additions & 0 deletions e2e-tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
logs/
config/
Loading
Loading