gcloud-lab/trading-platform/scripts/solana-funding/README.md
Hermes Agent da8fe22f6e feat(devops): add Solana quant bot K8s/Helm, CI/CD, observability, and funding
- Add solana-quant-bot deployment + ClusterIP service templates
- Add solana-rpc ExternalName service for Helius/QuickNode
- Add Alembic migration init job template
- Update values.yaml: solana-rpc, bot config, new Kafka topics, observability
- Update configmap with Solana RPC endpoint via internal DNS
- Update network policies: bot ingress/egress, postgres/redis/kafka access
- Update CI/CD workflow: build/push/deploy solana-quant-bot service
- Add Prometheus ServiceMonitor, PrometheusRules (alerts)
- Add Grafana dashboard ConfigMap (trades, latency, balance, P&L)
- Add initial funding script with dry-run and verification modes
2026-05-24 04:46:58 +00:00

34 lines
1.1 KiB
Markdown

# Solana Quant Bot Funding
Scripts for funding the Solana Quant Bot wallet and verifying balances.
## Initial Funding
```bash
# Dry run first
./fund-bot-wallet.sh --amount 50 --from-wallet <YOUR_WALLET> --namespace customer1 --dry-run
# Execute funding
./fund-bot-wallet.sh --amount 50 --from-wallet <YOUR_WALLET> --namespace customer1
# Verify balance after
./fund-bot-wallet.sh --bot-wallet <BOT_ADDRESS> --verify
```
## Options
| Option | Description |
|--------|-------------|
| `--amount SOL` | Amount in SOL to fund (default: 50) |
| `--from-wallet ADDR` | Source wallet (required for transfers) |
| `--bot-wallet ADDR` | Bot wallet (auto-read from K8s secret if omitted) |
| `--namespace NS` | K8s namespace (default: customer1) |
| `--dry-run` | Simulate without sending |
| `--verify` | Check bot wallet balance |
## Security Notes
- The bot wallet private key is stored as a SOPS-encrypted K8s secret.
- Initial funding should use a dedicated hot wallet, not a multi-sig for simplicity.
- sec-ops may require multi-sig for larger seed amounts.
- Monitor the bot wallet for anomalous transactions via the Prometheus alerts.