rwadurian/backend/services/wallet-service/src/infrastructure/redis
hailin ac0e73afac feat(wallet/blockchain): 热钱包余额预检查及接收方钱包自动创建
1. blockchain-service: 新增热钱包 dUSDT 余额定时更新调度器
   - 每 5 秒查询热钱包在 KAVA 链上的 dUSDT 余额
   - 更新到 Redis DB 0,key 格式: hot_wallet:dusdt_balance:{chainType}
   - TTL 30 秒,服务故障时缓存自动过期

2. wallet-service: 新增热钱包余额缓存服务
   - 从 Redis DB 0 读取热钱包余额缓存
   - 严格模式:无法获取余额或余额不足时拒绝转账
   - 提示信息:"财务系统审计中,请稍后再试"

3. wallet-service: 转账确认时自动创建接收方钱包
   - 解决接收方钱包不存在导致入账失败的问题
   - 使用 upsert 避免并发创建冲突
   - 在同一事务中完成创建和入账

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 04:31:52 -08:00
..
hot-wallet-cache.service.ts feat(wallet/blockchain): 热钱包余额预检查及接收方钱包自动创建 2026-01-05 04:31:52 -08:00
index.ts feat(wallet/blockchain): 热钱包余额预检查及接收方钱包自动创建 2026-01-05 04:31:52 -08:00
redis.module.ts feat(wallet/blockchain): 热钱包余额预检查及接收方钱包自动创建 2026-01-05 04:31:52 -08:00
redis.service.ts feat(wallet-service): add Redis caching for wallet queries 2025-12-06 18:37:13 -08:00
wallet-cache.service.ts feat(wallet-service): add Redis caching for wallet queries 2025-12-06 18:37:13 -08:00