@@ -52,10 +52,10 @@ func main() {
5252 router .POST ("/disputegames/calculate/claim" , disputeGameHandler .GetGamesClaimByPosition )
5353 router .GET ("/disputegames/chainname" , disputeGameHandler .GetCurrentBlockChain )
5454
55- router .POST ("/disputegames/frontend-move" , frontendMoveAPI .RecordMove ) // 记录前端发起的 move 交易
56- router .GET ("/disputegames/:address/frontend-moves" , frontendMoveAPI .GetMovesByGame ) // 获取指定游戏的前端 move 交易
57- router .GET ("/disputegames/frontend-move/:txhash" , frontendMoveAPI .GetMoveByTxHash ) // 根据交易哈希获取前端 move 交易详情
58- router .GET ("/disputegames/with-frontend-flag" , frontendMoveAPI .GetGamesWithFrontendFlag ) // 获取带有前端发起标记的游戏列表
55+ router .POST ("/disputegames/frontend-move" , frontendMoveAPI .RecordMove )
56+ router .GET ("/disputegames/:address/frontend-moves" , frontendMoveAPI .GetMovesByGame )
57+ router .GET ("/disputegames/frontend-move/:txhash" , frontendMoveAPI .GetMoveByTxHash )
58+ router .GET ("/disputegames/with-frontend-flag" , frontendMoveAPI .GetGamesWithFrontendFlag )
5959
6060 router .GET ("/swagger/*any" , ginSwagger .WrapHandler (swaggerFiles .Handler ))
6161
@@ -66,7 +66,6 @@ func main() {
6666 }
6767}
6868
69- // 新增:初始化 RollupClient 的函数
7069func initRollupClient (cfg * types.Config ) * sources.RollupClient {
7170 rpcClient , err := client .NewRPC (context .Background (), gethlog .New (), cfg .NodeRPCURL )
7271 if err != nil {
0 commit comments