-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.template
More file actions
82 lines (67 loc) · 2.75 KB
/
.env.template
File metadata and controls
82 lines (67 loc) · 2.75 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
# Cross-Chain Atomic Swap Configuration
# Copy this file to .env and fill in the values
#
# Usage:
# cp .env.template .env
# # Edit .env with your values
# cargo run --release -- <command>
#
# Variable names match those generated by setup.sh in .swap/atomic_swap.sh
# All paths are relative to the project directory
# =============================================================================
# Logging
# =============================================================================
# Log level for CLI output (error, warn, info, debug, trace)
RUST_LOG=info
# =============================================================================
# Bitcoin Configuration
# =============================================================================
BTC_RPC_URL=http://localhost:18443
BTC_RPC_USER=user
BTC_RPC_PASSWORD=password
BTC_NETWORK=regtest
# Bitcoin Keys (hex format)
# Generate using: bitcoin-cli getnewaddress && bitcoin-cli dumpprivkey <address>
BUYER_BTC_PRIVKEY=
BUYER_BTC_PUBKEY=
SELLER_BTC_PRIVKEY=
SELLER_BTC_PUBKEY=
# =============================================================================
# Ethereum Configuration
# =============================================================================
ETH_RPC_URL=http://localhost:8545
ETH_CHAIN_ID=31337
# NFT Contract Address (deployed NFTSecretMint contract)
NFT_CONTRACT_ADDRESS=
# Ethereum Keys (hex format with 0x prefix)
# Hardhat default test accounts:
# Account #0: 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
# Account #1: 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
BUYER_ETH_PRIVKEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
SELLER_ETH_PRIVKEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
# =============================================================================
# Solana Configuration
# =============================================================================
SOL_RPC_URL=http://localhost:8899
SOL_WS_URL=ws://localhost:8900
# Solana Program ID (deployed sol-htlc program)
SOL_PROGRAM_ID=
# Solana Keypair Paths (relative to project directory)
# Generate using: solana-keygen new --outfile .swap/keypairs/buyer.json
BUYER_SOL_KEYPAIR=.swap/keypairs/buyer.json
SELLER_SOL_KEYPAIR=.swap/keypairs/seller.json
# =============================================================================
# Swap Parameters
# =============================================================================
# Bitcoin amount in satoshis (100000 = 0.001 BTC)
BTC_AMOUNT=100000
# NFT prices (chain-specific)
ETH_NFT_PRICE=1000000000000000000
SOL_NFT_PRICE=1000000000
# NFT metadata
TOKEN_ID=1
METADATA_URI=https://example.com/nft/1.json
NFT_NAME=Demo NFT
NFT_SYMBOL=DEMO
# HTLC timeout in blocks (~24 hours on mainnet)
HTLC_TIMEOUT=144