-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
154 lines (124 loc) · 11.3 KB
/
Copy pathenv.example
File metadata and controls
154 lines (124 loc) · 11.3 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# ═══════════════════════════════════════════════════════════════════════
# NLP-JPYC Cross-Chain Bridge - Environment Variables
# ═══════════════════════════════════════════════════════════════════════
# Architecture: Lock/Unlock/Burn with Bidirectional Messaging
# Protocols: LayerZero V2 OApp + Chainlink CCIP
# ═══════════════════════════════════════════════════════════════════════
# ─────────────────────────────────────────────────────────────────────────
# ⚠️ SECURITY WARNING
# ─────────────────────────────────────────────────────────────────────────
# NEVER commit actual private keys to git!
# Use hardware wallets or secure key management for production
# ─────────────────────────────────────────────────────────────────────────
# Deployer Private Key (DO NOT USE REAL KEY HERE!)
PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000
# ─────────────────────────────────────────────────────────────────────────
# RPC URLs
# ─────────────────────────────────────────────────────────────────────────
# Mainnet
SONEIUM_RPC=https://rpc.soneium.org
POLYGON_RPC=https://polygon-rpc.com
# Testnet
SONEIUM_TESTNET_RPC=https://rpc.testnet.soneium.org
POLYGON_AMOY_RPC=https://rpc-amoy.polygon.technology
# ─────────────────────────────────────────────────────────────────────────
# Existing Token Addresses
# ─────────────────────────────────────────────────────────────────────────
# NewLoPoint (NLP) token on Soneium - REQUIRED
NLP_TOKEN_ADDRESS=0x0000000000000000000000000000000000000000
# JPYC token on Polygon - Verify before deployment
JPYC_POLYGON_ADDRESS=0x6AE7Dfc73E0dDE2aa99ac063DcF7e8A63265108c
# ═══════════════════════════════════════════════════════════════════════
# LayerZero V2 Configuration
# ═══════════════════════════════════════════════════════════════════════
# Documentation: https://docs.layerzero.network/v2
# ═══════════════════════════════════════════════════════════════════════
# ─────────────────────────────────────────────────────────────────────────
# LayerZero Endpoint V2 Addresses
# Find addresses at: https://docs.layerzero.network/v2/deployments
# ─────────────────────────────────────────────────────────────────────────
# Mainnet Endpoints
SONEIUM_LZ_ENDPOINT=0x1a44076050125825900e736c501f859c50fE728c # Verify actual address
POLYGON_LZ_ENDPOINT=0x1a44076050125825900e736c501f859c50fE728c
# ─────────────────────────────────────────────────────────────────────────
# LayerZero Endpoint IDs (EIDs)
# Find EIDs at: https://docs.layerzero.network/v2/concepts/glossary#endpoint-id
# ─────────────────────────────────────────────────────────────────────────
# Mainnet EIDs
SONEIUM_EID=40000 # Verify actual EID for Soneium
POLYGON_EID=30109
# Testnet EIDs
SONEIUM_TESTNET_EID=40000 # Verify actual testnet EID
POLYGON_AMOY_EID=40267
# ─────────────────────────────────────────────────────────────────────────
# LayerZero Deployed Contract Addresses (Fill after deployment)
# ─────────────────────────────────────────────────────────────────────────
# Soneium Chain
NLPOAPP_ADAPTER_ADDRESS=0x0000000000000000000000000000000000000000
# Polygon Chain
NLPOAPP_RECEIVER_ADDRESS=0x0000000000000000000000000000000000000000
JPYC_VAULT_ADDRESS=0x0000000000000000000000000000000000000000
# ═══════════════════════════════════════════════════════════════════════
# Chainlink CCIP Configuration (Alternative to LayerZero)
# ═══════════════════════════════════════════════════════════════════════
# Documentation: https://docs.chain.link/ccip
# ═══════════════════════════════════════════════════════════════════════
# ─────────────────────────────────────────────────────────────────────────
# CCIP Router Addresses
# Find addresses at: https://docs.chain.link/ccip/supported-networks
# ─────────────────────────────────────────────────────────────────────────
# Mainnet Routers
SONEIUM_CCIP_ROUTER=0x0000000000000000000000000000000000000000 # Verify if CCIP supports Soneium
POLYGON_CCIP_ROUTER=0x849c5ED5a80F5B408Dd4969b78c2C8fdf0565Bfe
# ─────────────────────────────────────────────────────────────────────────
# LINK Token Addresses (for CCIP fees)
# ─────────────────────────────────────────────────────────────────────────
SONEIUM_LINK_TOKEN=0x0000000000000000000000000000000000000000 # Verify actual address
POLYGON_LINK_TOKEN=0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39
# ─────────────────────────────────────────────────────────────────────────
# CCIP Chain Selectors
# Find selectors at: https://docs.chain.link/ccip/supported-networks
# ─────────────────────────────────────────────────────────────────────────
SONEIUM_CHAIN_SELECTOR=0 # Verify if CCIP supports Soneium
POLYGON_CHAIN_SELECTOR=4051577828743386545
# ─────────────────────────────────────────────────────────────────────────
# CCIP Deployed Contract Addresses (Fill after deployment)
# ─────────────────────────────────────────────────────────────────────────
# Soneium Chain
NLPCCIP_ADAPTER_ADDRESS=0x0000000000000000000000000000000000000000
# Polygon Chain
NLPCCIP_RECEIVER_ADDRESS=0x0000000000000000000000000000000000000000
# ─────────────────────────────────────────────────────────────────────────
# Verification API Keys (Optional but recommended)
# ─────────────────────────────────────────────────────────────────────────
ETHERSCAN_API_KEY=YOUR_ETHERSCAN_API_KEY
POLYGONSCAN_API_KEY=YOUR_POLYGONSCAN_API_KEY
# ─────────────────────────────────────────────────────────────────────────
# DEPLOYMENT NOTES
# ─────────────────────────────────────────────────────────────────────────
#
# 1. Choose ONE protocol: LayerZero OR Chainlink CCIP (or deploy both)
#
# 2. LayerZero Deployment Order:
# a. Deploy NLPMinterBurner on Soneium
# b. Deploy NLPOAppAdapter on Soneium
# c. Deploy JPYCVault on Polygon
# d. Deploy NLPOAppJPYCReceiver on Polygon
# e. Configure peers (setPeer on both chains)
# f. Fund receiver with native tokens for response messages
#
# 3. Chainlink CCIP Deployment Order:
# a. Deploy NLPMinterBurner on Soneium
# b. Deploy NLPCCIPAdapter on Soneium
# c. Deploy JPYCVault on Polygon
# d. Deploy NLPCCIPJPYCReceiver on Polygon
# e. Configure destination on adapter
# f. Configure source on receiver
# g. Fund adapter with LINK tokens for fees
# h. Fund receiver with LINK tokens for response messages
#
# 4. Always deploy to testnet first!
#
# 5. For detailed deployment instructions, see CLAUDE.md
#
# ─────────────────────────────────────────────────────────────────────────