Overview
Once Citrea Mainnet launches, we need to deploy the Boltz swap contracts to enable cross-chain bridging functionality. This issue documents the complete deployment process.
Prerequisites
Contracts to Deploy
| Contract |
Purpose |
Source |
| EtherSwap |
Atomic swaps for native cBTC |
EtherSwap.sol |
| ERC20Swap |
Atomic swaps for ERC20 tokens (USDT.e, WBTC.e, JUSD) |
ERC20Swap.sol |
Deployment Instructions
1. Install Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup
2. Clone Repository
git clone https://github.com/LightningDotSpace/boltz-core.git
cd boltz-core
3. Install Dependencies
4. Configure Environment
Create a .env file:
CITREA_MAINNET_RPC=<RPC_URL> # Get from Citrea docs when available
DEPLOYER_PRIVATE_KEY=<PRIVATE_KEY> # Wallet with cBTC for gas
CITREA_CHAIN_ID=<CHAIN_ID> # Will be published at mainnet launch
5. Deploy Contracts
Option A: Using the Deploy Script
source .env
forge script contracts/script/Deploy.sol \
--rpc-url $CITREA_MAINNET_RPC \
--private-key $DEPLOYER_PRIVATE_KEY \
--broadcast \
--verify
Option B: Deploy Individually (Recommended for Production)
# Deploy EtherSwap
forge create contracts/EtherSwap.sol:EtherSwap \
--rpc-url $CITREA_MAINNET_RPC \
--private-key $DEPLOYER_PRIVATE_KEY \
--verify
# Deploy ERC20Swap
forge create contracts/ERC20Swap.sol:ERC20Swap \
--rpc-url $CITREA_MAINNET_RPC \
--private-key $DEPLOYER_PRIVATE_KEY \
--verify
6. Verify Deployment
After deployment, verify the contracts on the Citrea block explorer:
forge verify-contract <DEPLOYED_ADDRESS> contracts/EtherSwap.sol:EtherSwap \
--chain-id $CITREA_CHAIN_ID \
--verifier blockscout \
--verifier-url <CITREA_EXPLORER_API>
Post-Deployment Tasks
Reference: Testnet Deployment
For reference, here are the currently deployed testnet contracts:
| Contract |
Testnet Address |
| EtherSwap |
0xd02731fD8c5FDD53B613A699234FAd5EE8851B65 |
| ERC20Swap |
0xf2e019a371e5Fd32dB2fC564Ad9eAE9E433133cc |
Resources
Blocking
This task is blocked until Citrea Mainnet launches. Monitor Citrea's blog for updates.
Related PR: #86
Overview
Once Citrea Mainnet launches, we need to deploy the Boltz swap contracts to enable cross-chain bridging functionality. This issue documents the complete deployment process.
Prerequisites
Contracts to Deploy
Deployment Instructions
1. Install Foundry
curl -L https://foundry.paradigm.xyz | bash foundryup2. Clone Repository
git clone https://github.com/LightningDotSpace/boltz-core.git cd boltz-core3. Install Dependencies
4. Configure Environment
Create a
.envfile:5. Deploy Contracts
Option A: Using the Deploy Script
Option B: Deploy Individually (Recommended for Production)
6. Verify Deployment
After deployment, verify the contracts on the Citrea block explorer:
Post-Deployment Tasks
infrastructure/config/boltz/backend/prd-boltz.conf:Reference: Testnet Deployment
For reference, here are the currently deployed testnet contracts:
0xd02731fD8c5FDD53B613A699234FAd5EE8851B650xf2e019a371e5Fd32dB2fC564Ad9eAE9E433133ccResources
Blocking
This task is blocked until Citrea Mainnet launches. Monitor Citrea's blog for updates.
Related PR: #86