This repository was archived by the owner on Jan 23, 2026. It is now read-only.
forked from PracticalParticle/Bloxchain-Protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
127 lines (115 loc) · 4.99 KB
/
env.example
File metadata and controls
127 lines (115 loc) · 4.99 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Guardian Protocol
# Copy this file to .env and update the values for your deployment
# Test Mode Configuration
# Set to 'manual' to use provided contract addresses and private keys
# Set to 'auto' to automatically fetch from Ganache and Truffle artifacts
# AUTO MODE: Automatically discovers contract addresses from Truffle build artifacts
# and uses Ganache's deterministic private keys for testing
# MANUAL MODE: Requires you to provide all contract addresses and private keys below
TEST_MODE=manual
# Network Configuration
GUARDIAN_NETWORK=development
# Development Network Configuration
# Leave REMOTE_HOST unset for local development (localhost)
# Set REMOTE_HOST to use remote development environment
REMOTE_HOST=your-remote-host.com
REMOTE_PORT=8545
REMOTE_PROTOCOL=https
REMOTE_NETWORK_ID=1337
REMOTE_GAS=8000000
REMOTE_GAS_PRICE=20000000000
REMOTE_FROM=
# Alternative: Use full RPC URL (overrides REMOTE_HOST/REMOTE_PORT/REMOTE_PROTOCOL)
# RPC_URL=https://your-remote-host.com:8545
# Contract Addresses (optional - can be provided at runtime)
SECUREBLOX_ADDRESS=
ROLEBLOX_ADDRESS=
BAREBLOX_ADDRESS=
SIMPLE_VAULT_ADDRESS=
SIMPLE_RWA20_ADDRESS=
# Alternative RPC Configuration (if using custom network)
# CUSTOM_RPC_URL=https://your-custom-rpc-url:8545
# CUSTOM_NETWORK_ID=1337
# CUSTOM_NETWORK_NAME=custom_network
# Testing Wallet Private Keys (for MANUAL mode only)
# These are test wallets - DO NOT use in production
# Replace with your own test wallet private keys
# These wallets can be assigned different roles during testing for flexibility
# NOTE: These are only used when TEST_MODE=manual
# When TEST_MODE=auto, Ganache's deterministic keys are used automatically
TEST_WALLET_1_PRIVATE_KEY=
TEST_WALLET_2_PRIVATE_KEY=
TEST_WALLET_3_PRIVATE_KEY=
TEST_WALLET_4_PRIVATE_KEY=
TEST_WALLET_5_PRIVATE_KEY=
# Deployment Configuration Flags
# Set to 'true' or 'false' to control which Guardian contracts to deploy
# Default: SecureBlox=false, RoleBlox=false, BareBlox=false
DEPLOY_SECUREBLOX=false
DEPLOY_ROLEBLOX=false
DEPLOY_BAREBLOX=false
DEPLOY_CONTROLBLOX=false
# Example Contract Deployment Flags
# Set to 'true' or 'false' to control which example contracts to deploy
# Default: Both example contracts=false
DEPLOY_SIMPLE_VAULT=false
DEPLOY_SIMPLE_RWA20=false
# Definition Library Addresses (per network)
# These are the addresses of the deployed definition libraries
STATE_ABSTRACTION_DEFINITIONS_ADDRESS=
SECURE_OWNABLE_DEFINITIONS_ADDRESS=
DYNAMIC_RBAC_DEFINITIONS_ADDRESS=
# =============================================================================
# DEPLOYMENT CONFIGURATION GUIDE
# =============================================================================
#
# DEPLOYMENT FLAGS:
# DEPLOY_SECUREBLOX=true/false - Deploy standard SecureBlox contract
# DEPLOY_ROLEBLOX=true/false - Deploy RoleBlox contract
# DEPLOY_BAREBLOX=true/false - Deploy minimal BareBlox contract
# DEPLOY_SIMPLE_VAULT=true/false - Deploy SimpleVault example contract
# DEPLOY_SIMPLE_RWA20=true/false - Deploy SimpleRWA20 example contract
#
# DEPLOYMENT SCENARIOS:
# 🏗️ Full Development: All Guardian flags=true, Example flags=false
# 🎯 Minimal Testing: Only DEPLOY_BAREBLOX=true
# 🔧 Standard Testing: Only DEPLOY_SECUREBLOX=true
# 🚀 Production Ready: Only DEPLOY_ROLEBLOX=true
# 🏦 Examples Only: Only example flags=true (for example contract testing)
#
# EXAMPLE CONTRACTS:
# 🏦 SimpleVault: Example vault contract with Guardian integration
# 🏦 SimpleRWA20: Example RWA token contract with Guardian integration
#
# =============================================================================
# TEST MODE USAGE GUIDE
# =============================================================================
#
# AUTO MODE (TEST_MODE=auto):
# ✅ Best for: Local development with Ganache
# ✅ Automatically discovers contract addresses from Truffle artifacts
# ✅ Uses Ganache's deterministic private keys (no setup required)
# ✅ Requires: Ganache running on localhost:8545
# ✅ Requires: Contracts deployed via Truffle migrations
# ❌ Not suitable for: Remote testing or custom private keys
#
# MANUAL MODE (TEST_MODE=manual):
# ✅ Best for: Remote testing, custom networks, or specific wallet requirements
# ✅ Full control over contract addresses and private keys
# ✅ Works with any Ethereum network (local or remote)
# ✅ Requires: Manual setup of all contract addresses and private keys
# ❌ More setup required: Must update all addresses and keys manually
#
# QUICK START:
# 1. For local testing: Set TEST_MODE=auto, start Ganache, run migrations
# 2. For remote testing: Set TEST_MODE=manual, update all addresses/keys below
# 3. Run tests: node scripts/sanity/secure-ownable/run-tests.js
#
# DEPLOYMENT EXAMPLES:
# Deploy only examples:
# DEPLOY_SIMPLE_VAULT=true DEPLOY_SIMPLE_RWA20=true truffle migrate
#
# Deploy everything (full development):
# All flags=true truffle migrate
#
# =============================================================================