rwadurian/backend/services/wallet-service/src
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
..
api feat(system-accounts): add ledger detail API for all system accounts 2026-01-04 23:30:38 -08:00
application feat(wallet/blockchain): 热钱包余额预检查及接收方钱包自动创建 2026-01-05 04:31:52 -08:00
config feat(wallet-service): add Redis caching for wallet queries 2025-12-06 18:37:13 -08:00
domain feat(pending-actions): add special deduction feature for admin-created user actions 2026-01-03 07:04:46 -08:00
infrastructure feat(wallet/blockchain): 热钱包余额预检查及接收方钱包自动创建 2026-01-05 04:31:52 -08:00
shared feat(wallet/mpc): 增强提现和充值流程可靠性 2025-12-15 19:47:20 -08:00
app.module.ts feat: 省市团队账户及待领取奖励逐笔追踪 2025-12-13 03:32:47 -08:00
main.ts feat(sync): implement Outbox Pattern for reward-service to wallet-service sync 2025-12-10 23:26:49 -08:00