Files
proxmox/docs/06-besu/SERVICES_DEPLOYMENT_COMPLETE.md
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

5.0 KiB

Services Deployment Complete

Last Updated: 2026-01-31
Document Version: 1.0
Status: Active Documentation


Date: 2026-01-18
Status: SERVICES DEPLOYED AND RUNNING


Deployment Status

PM2 Installation

Version: 6.0.14
Status: Installed globally

Installation Command:

npm install -g pm2

🚀 Deployed Services

1. State Anchoring Service

Status: ONLINE

Property Value
Name state-anchoring-service
PID 767273
Status online
Memory 71.9mb
Uptime Running
Location services/state-anchoring-service/

Command:

pm2 status state-anchoring-service
pm2 logs state-anchoring-service

Purpose: Monitors ChainID 138 blocks and submits state proofs to MainnetTether


2. Transaction Mirroring Service

Status: ONLINE

Property Value
Name transaction-mirroring-service
PID 767396
Status online
Memory 72.2mb
Uptime Running
Location services/transaction-mirroring-service/

Command:

pm2 status transaction-mirroring-service
pm2 logs transaction-mirroring-service

Purpose: Monitors ChainID 138 transactions and mirrors them to TransactionMirror on Mainnet


📋 PM2 Management Commands

View Status

pm2 status
pm2 list

View Logs

# All services
pm2 logs

# Specific service
pm2 logs state-anchoring-service
pm2 logs transaction-mirroring-service

# Real-time (follow)
pm2 logs --follow

Service Control

# Restart service
pm2 restart state-anchoring-service
pm2 restart transaction-mirroring-service

# Stop service
pm2 stop state-anchoring-service

# Start service
pm2 start state-anchoring-service

# Delete service
pm2 delete state-anchoring-service

Persistence

# Save current process list
pm2 save

# Setup startup script (auto-start on boot)
pm2 startup

Monitoring

# Monitor dashboard
pm2 monit

# Show detailed info
pm2 show state-anchoring-service

Deployment Checklist

  • PM2 installed globally
  • State Anchoring Service built
  • Transaction Mirroring Service built
  • TypeScript compilation errors fixed
  • .env files configured
  • State Anchoring Service deployed with PM2
  • Transaction Mirroring Service deployed with PM2
  • PM2 process list saved
  • Both services running (online status)

🔍 Verification

Check Service Status

pm2 status

Expected Output:

Both services should show "online" status

Check Logs

pm2 logs --lines 50

Expected Output:

  • State Anchoring Service: Block processing messages
  • Transaction Mirroring Service: Transaction processing messages

Check Service Health

pm2 show state-anchoring-service
pm2 show transaction-mirroring-service

📊 Service Details

State Anchoring Service

Configuration:

  • RPC: ChainID 138 RPC endpoint
  • Target: MainnetTether contract on Mainnet
  • Function: Anchor state proofs from ChainID 138

Environment Variables (from .env):

  • PRIVATE_KEY - Mainnet transaction signing
  • CHAIN138_RPC_URL - ChainID 138 RPC endpoint
  • MAINNET_RPC_URL - Mainnet RPC endpoint
  • TETHER_ADDRESS - MainnetTether contract address

Transaction Mirroring Service

Configuration:

  • RPC: ChainID 138 RPC endpoint
  • Target: TransactionMirror contract on Mainnet
  • Function: Mirror transactions from ChainID 138

Environment Variables (from .env):

  • PRIVATE_KEY - Mainnet transaction signing
  • CHAIN138_RPC_URL - ChainID 138 RPC endpoint
  • MAINNET_RPC_URL - Mainnet RPC endpoint
  • MIRROR_ADDRESS - TransactionMirror contract address
  • BATCH_INTERVAL_MS - Batch submission interval

🚀 Next Steps

1. Monitor Services

# View real-time logs
pm2 logs --follow

# Monitor resource usage
pm2 monit

2. Verify Operation

State Anchoring Service:

  • Check MainnetTether contract for new state proofs
  • Monitor ChainID 138 block processing

Transaction Mirroring Service:

  • Check TransactionMirror contract for mirrored transactions
  • Monitor transaction queue and batching

3. Setup Auto-Start (Optional)

# Generate startup script
pm2 startup

# Follow the instructions output by the command
# Then save current process list
pm2 save

  • services/state-anchoring-service/DEPLOYMENT.md - Deployment guide
  • services/transaction-mirroring-service/DEPLOYMENT.md - Deployment guide
  • services/README_DEPLOYMENT.md - Quick start guide

🎯 Summary

Status: DEPLOYMENT COMPLETE

  • PM2 installed (v6.0.14)
  • State Anchoring Service: ONLINE
  • Transaction Mirroring Service: ONLINE
  • Process list saved
  • Both services running and healthy

Services are now operational and monitoring ChainID 138.


Last Updated: 2026-01-18