This repository was archived by the owner on Dec 2, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.example
More file actions
91 lines (72 loc) · 2.7 KB
/
.env.example
File metadata and controls
91 lines (72 loc) · 2.7 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
80
81
82
83
84
85
86
87
88
89
90
91
# =============================================================================
# TrustBridge Smart Contracts - Environment Variables Example
# =============================================================================
#
# Copy this file to .env and fill in your actual values
# cp .env.example .env
#
# IMPORTANT: Never commit .env files with real values to git
# =============================================================================
# ============= Deployment Configuration =============
# Required: Admin address for contract administration
ADMIN_ADDRESS=GBZXN7PIRZGNMHGA7MUUUF4GWJQ5UW5FWVD2URXVPE4YKBXXKBJQT3J5
# Network to deploy to (testnet, futurenet, mainnet)
NETWORK=testnet
# Source account for transactions (Stellar CLI identity)
SOURCE_ACCOUNT=alice
# Oracle admin (defaults to ADMIN_ADDRESS if not set)
ORACLE_ADMIN=GBZXN7PIRZGNMHGA7MUUUF4GWJQ5UW5FWVD2URXVPE4YKBXXKBJQT3J5
# ============= Contract Addresses (Generated after deployment) =============
# These will be automatically generated in deployment.env after running deploy-all.sh
# TRUSTBRIDGE_ORACLE_ID=
# TRUSTBRIDGE_POOL_FACTORY_ID=
# TRUSTBRIDGE_BACKSTOP_ID=
# TRUSTBRIDGE_POOL_ID=
# TRUSTBRIDGE_NETWORK=
# TRUSTBRIDGE_ADMIN=
# ============= Development Configuration =============
# Rust log level for debugging
RUST_LOG=info
# Build mode (debug, release)
BUILD_MODE=release
# Enable additional logging during deployment
VERBOSE_DEPLOYMENT=false
# ============= Stellar Network Configuration =============
# RPC URL (optional - uses Stellar CLI defaults)
# STELLAR_RPC_URL=https://soroban-testnet.stellar.org:443
# STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
# ============= Testing Configuration =============
# Test account identities
TEST_ACCOUNT_1=alice
TEST_ACCOUNT_2=bob
# Test network
TEST_NETWORK=testnet
# ============= Advanced Configuration =============
# Contract deployment parameters
POOL_BACKSTOP_TAKE_RATE=1500000
POOL_MAX_POSITIONS=4
POOL_MIN_COLLATERAL=1000000
# Oracle configuration
ORACLE_DECIMALS=7
# Salt for deterministic deployments (leave empty for random)
DEPLOYMENT_SALT=
# ============= CI/CD Configuration =============
# Disable interactive prompts in CI
CI_MODE=false
# Skip deployment verification
SKIP_VERIFICATION=false
# ============= Security Configuration =============
# Enable additional security checks
SECURITY_CHECKS=true
# Require confirmation for mainnet deployments
MAINNET_CONFIRMATION=true
# ============= Examples =============
# Example of a complete deployment configuration:
#
# ADMIN_ADDRESS=GBZXN7PIRZGNMHGA7MUUUF4GWJQ5UW5FWVD2URXVPE4YKBXXKBJQT3J5
# NETWORK=testnet
# SOURCE_ACCOUNT=alice
# RUST_LOG=debug
# VERBOSE_DEPLOYMENT=true
#
# Then run: source .env && ./tools/deploy-all.sh