123 Commits
Author SHA1 Message Date
v03413 2edf26857e feat: add configurable order lookback hours 2026-06-21 16:23:55 +08:00
v03413 13d3fad174 refactor: move block api package to core 2026-06-21 01:30:04 +08:00
v03413 5e598cd2f3 feat: add unified checkout template 2026-06-21 01:24:12 +08:00
v03413 d458ef7ca3 feat: add API-backed block lookback 2026-06-19 01:33:56 +08:00
v03413 8033ccfe93 fix: exclude failed orders from recovery
「交易确认失败」本身就是一种合法状态
2026-06-18 22:46:41 +08:00
Jason.li 1e52f40a6c Merge origin/main into payment reconciliation fix 2026-06-07 14:40:38 +08:00
Jason.li 24372a9639 fix(task): recover missed payments across chains
Keep recent waiting, expired, and failed orders eligible for transfer matching, and use the same recoverable-order window when bootstrapping chain backfill.

Add periodic reconciliation backfill for EVM, Tron, and Aptos so scanners continue to revisit recent historical blocks or versions when recoverable orders exist, and add regression coverage for recoverable order selection and scanner activation.
2026-06-07 14:05:30 +08:00
Jason.li f28ae2aa8d fix(solana): reconcile missed token payments
Add a Solana reconciliation task that backfills recent waiting, expired, and failed orders by scanning token accounts, signatures, and parsed transactions for matching SPL transfers.

Reuse shared order matching for realtime transfer handling, return DB errors from MarkConfirming, and keep confirming orders eligible when the on-chain payment timestamp was inside the order window even if final confirmation happens after expiry.
2026-06-07 12:51:23 +08:00
v03413 2bf1406566 feat: rename TON native coin to GRAM
ref: https://t.me/toncoin/2384
ref: https://ton.vote/EQDQvywF226NXojPky_9gwbCz0FPoygqY11bGl03SONNBs5V/proposal/EQAv-VS2OM80SYLB0ouRWRcpFg4J0L-egUf1-utF-OJ6h0rK
2026-06-03 15:25:41 +08:00
v03413 ea113e6e90 feat: 增加支持 Ton 区块链网络扫块
新增交易类型 ton.toncoin usdt.ton
close: https://github.com/v03413/BEpusdt/pull/192
2026-06-02 21:03:19 +08:00
v03413 041f7e9cef feat: 增加区块网络状态可视化 2026-05-26 22:02:37 +08:00
v03413 e46706370c refactor: optimize type casting and formatting logic
fix: https://github.com/v03413/BEpusdt/issues/184
2026-04-30 22:27:25 +08:00
betaxab 609a850e61 update: minor adjustments to order confirmation 2026-04-29 18:52:19 +08:00
betaxab 17b0d1cad1 fix: Try to resolve the failed queue blocking web issue in Tron 2026-04-27 08:48:58 +08:00
v03413 6ccd93a161 feat: 增加支持历史汇率自动清理 2026-04-16 10:57:57 +08:00
v03413 2edf71dee1 feat: 增加支持自定义Topic 路径前缀 2026-04-15 21:44:34 +08:00
v03413 86251ac054 perf: unify mqtt subscription logic across modules 2026-04-15 16:30:05 +08:00
v03413 0f4346cd5f fix: 补漏Tron 网络 MQTT 广播判断 2026-04-15 15:10:47 +08:00
v03413 c4d5e20c7a feat: 实现交易监听 MQTT服务器广播 2026-04-15 14:58:24 +08:00
莫名 56bf320588 Merge pull request #173 from tanaer/fix/nonblocking-bepusdt-notify
fix: 避免 BEpusdt 回调长时间占用数据库事务
2026-04-14 15:38:28 +08:00
v03413 30eb6659d8 feat: 实现钱包地址独占模式 & 安全优化 2026-04-14 13:36:54 +08:00
Jason.li 240da52d11 fix(notify): avoid holding db during BEpusdt callbacks
Move the BEpusdt status callback path out of an open database transaction so slow merchant callback endpoints do not block unrelated requests such as admin login.

Add a regression test that keeps the callback HTTP request pending and verifies a concurrent database query can still complete.
2026-04-14 11:07:44 +08:00
v03413 f866db9f1b feat: 配置支持多个 trongrid key
多个用半角符逗号隔开,使用的时候随机抽取
feat: https://github.com/v03413/BEpusdt/issues/171
2026-04-07 14:05:34 +08:00
v03413 6a2f3b6d6e feat: add PostgreSQL database support 2026-02-26 14:51:53 +08:00
v03413 19504a7e2b perf: 优化后台订单手动回调 2026-02-22 23:45:29 +08:00
v03413 0ed85860fc feat: add block offset confirmation feature
resolved: https://github.com/v03413/BEpusdt/issues/160
2026-02-22 22:11:38 +08:00
betaxab 0c175e3c82 feat: transfer.go: let order processing task to support orders without tansactions 2026-02-18 18:18:48 +08:00
v03413 5176296506 perf: 限制区块队列 避免潜在OOM问题 2026-02-05 15:29:06 +08:00
v03413 804da832bd perf: 优化汇率同步异常处理逻辑 2026-02-01 15:25:55 +08:00
long2ice 07b4fdb559 refactor: update Order model to use pointer for ConfirmedAt and simplify variable declarations 2026-01-16 10:36:50 +08:00
v03413 f0f79846bc perf: 完善Plasma区块网络配置
原有默认节点9745.rpc.thirdweb.com 限制过大
2026-01-14 15:56:29 +08:00
v03413 4062bbaf2a perf: 优化扫块成功率统计算法 2026-01-14 14:40:27 +08:00
v03413 ddabbc4c81 perf: limit db query to a single result in rate sync 2026-01-12 11:03:38 +08:00
v03413 58e38efe21 feat: 增加可选订单金额匹配模式 2026-01-12 10:40:43 +08:00
betaxab ee8c1579b9 chore: Split Plasma network 2026-01-11 13:05:06 +08:00
v03413 f6bbc0ef76 fix: correct block timestamp parsing in EVM task
Change the JSON key for block timestamp from "blockTimestamp"
to "timestamp" to align with the correct response structure
from the Ethereum client. This change fixes issues with block
timestamp parsing that could lead to incorrect calculations
and processing in the block scanning routine.
2026-01-11 00:21:17 +08:00
v03413 7528d0de30 perf: aptos solana 扫块优化 增加自适应反向追溯 2026-01-10 19:00:40 +08:00
v03413 491a3480f9 perf: EVM扫块优化 增加自适应反向追溯 2026-01-10 16:43:01 +08:00
v03413 7778acef18 perf: tron 扫块优化 增加自适应反向同步 2026-01-09 17:23:38 +08:00
v03413 f11eca2186 perf: 复用 Client 连接 优化Tron 扫块性能 2026-01-08 16:17:25 +08:00
v03413 4bc7ef9b9f perf: 引入http连接池 优化扫块性能 2026-01-08 14:44:14 +08:00
v03413 7b194adfc1 perf: 优化交易匹配大小写问题 2026-01-08 10:25:36 +08:00
v03413 79dafd1145 perf: 优化 transfer 队列处理逻辑 2026-01-07 21:42:05 +08:00
v03413 aa1fadfd92 fix: tron 扫块解析数据越界问题 2026-01-07 20:29:00 +08:00
v03413 fb2c1f3e6c perf: 优化成功率统计算法 2026-01-07 16:34:59 +08:00
v03413 55596cce35 perf: 扫块日志格式化调整 2026-01-04 22:43:02 +08:00
v03413 7621caf147 perf: 优化调整回调策略 2026-01-04 21:03:51 +08:00
v03413 614e6af400 perf: 优化进一步收缩配置 2026-01-04 16:33:18 +08:00
v03413 7521844241 perf: 优化统一管理配置项 & 合并支持 Plasma
ref: https://github.com/v03413/BEpusdt/pull/117/
2026-01-04 16:18:21 +08:00
v03413 f58c133a89 perf: 优化 evm 原生代码的解析逻辑 2026-01-04 01:23:53 +08:00