Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- 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>
23 lines
587 B
Bash
Executable File
23 lines
587 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Transaction logging utilities
|
|
|
|
LOG_DIR="${LOG_DIR:-/home/intlc/projects/proxmox/logs}"
|
|
LOG_FILE="$LOG_DIR/bridge-transactions-$(date +%Y%m%d).log"
|
|
|
|
log_transaction() {
|
|
local tx_hash="$1"
|
|
local chain="$2"
|
|
local amount="$3"
|
|
local status="$4"
|
|
|
|
echo "[$(date -u +"%Y-%m-%d %H:%M:%S UTC")] $status | $chain | $amount | $tx_hash" >> "$LOG_FILE"
|
|
}
|
|
|
|
get_transaction_status() {
|
|
local tx_hash="$1"
|
|
local rpc_url="$2"
|
|
cast tx "$tx_hash" --rpc-url "$rpc_url" 2>/dev/null | grep -E "status|blockNumber" || echo "Pending"
|
|
}
|