-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.e2e-test.example.yaml
More file actions
79 lines (71 loc) · 2.83 KB
/
config.e2e-test.example.yaml
File metadata and controls
79 lines (71 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# =============================================================================
# E2E Test Configuration (DevNet / Mainnet)
# =============================================================================
# Contains test-specific settings like user private keys, test amounts, etc.
# This file should NOT be committed to the repository - copy to config.e2e-test.yaml
#
# Usage:
# # Remote services (users must be pre-whitelisted)
# go run scripts/e2e-test.go -config config.devnet.yaml -test-config config.e2e-test.yaml
#
# # Local services with docker compose (auto-whitelists users)
# go run scripts/e2e-test.go -config config.devnet.yaml -test-config config.e2e-test.yaml -local
#
# # Local services already running (skip docker compose start)
# go run scripts/e2e-test.go -config config.devnet.yaml -test-config config.e2e-test.yaml -local -skip-docker
# =============================================================================
# Test participants
users:
user1:
# Ethereum private key (without 0x prefix)
private_key: "YOUR_USER1_PRIVATE_KEY_HERE"
# Ethereum address derived from private key (for reference)
address: "0xYOUR_USER1_ADDRESS"
# Canton fingerprint (computed automatically from registration)
fingerprint: ""
user2:
private_key: "YOUR_USER2_PRIVATE_KEY_HERE"
address: "0xYOUR_USER2_ADDRESS"
fingerprint: ""
# Service endpoints
services:
# Relayer API endpoint
relayer_url: "http://localhost:8080"
# API Server base URL
api_server_url: "http://localhost:8081"
# Ethereum JSON-RPC endpoint (leave empty to use api_server_url/eth)
eth_rpc_url: ""
# Registration endpoint (leave empty to use api_server_url/register)
register_url: ""
# Ethereum RPC configuration
eth_rpc:
# Chain ID for the eth-compatible RPC (default: 31337)
chain_id: 31337
# Token contract address on the eth-compatible RPC
# Leave empty to use the same address as contracts.token_address
token_address: ""
# Database configuration (for local mode whitelisting only)
# When using -local flag, the script will connect to this database
# to automatically whitelist users before registration
database:
url: "postgres://postgres:p%40ssw0rd@localhost:5432/erc20_api"
ssl_mode: "disable"
# Test amounts (in token decimals, e.g., "10.0" for 10 tokens)
amounts:
# Total amount to deposit from Ethereum to Canton
total_deposit: "10.0"
# Amount to transfer from User1 to User2 on Canton
transfer_amount: "5.0"
# Contract addresses (override from main config if needed)
contracts:
# Leave empty to use values from main config (config.devnet.yaml)
token_address: ""
bridge_address: ""
# Timeouts
timeouts:
# How long to wait for deposit to be processed by relayer
deposit_confirmation: "120s"
# How long to wait for Canton balance to update
balance_update: "30s"
# General RPC call timeout
rpc_call: "30s"