diff --git a/app/conf/const.go b/app/conf/const.go index ea09496..6fc68f7 100644 --- a/app/conf/const.go +++ b/app/conf/const.go @@ -17,7 +17,7 @@ const ( defaultXlayerRpcEndpoint = "https://xlayerrpc.okx.com/" // 默认Xlayer RPC节点 defaultPolygonRpcEndpoint = "https://polygon-rpc.com/" // 默认Polygon RPC节点 defaultEthereumRpcEndpoint = "https://ethereum.publicnode.com/" // 默认Ethereum RPC节点 - defaultAptosRpcEndpoint = "https://api.mainnet.aptoslabs.com/" // 默认Aptos RPC节点 + defaultAptosRpcEndpoint = "https://aptos-rest.publicnode.com/" // 默认Aptos RPC节点 defaultOutputLog = "/var/log/bepusdt.log" // 默认日志输出文件 defaultSqlitePath = "/var/lib/bepusdt/sqlite.db" // 默认数据库文件 ) diff --git a/app/model/orders.go b/app/model/orders.go index e5affd6..bb0785a 100644 --- a/app/model/orders.go +++ b/app/model/orders.go @@ -1,6 +1,7 @@ package model import ( + "fmt" "github.com/shopspring/decimal" "github.com/v03413/bepusdt/app/conf" "strconv" @@ -155,6 +156,9 @@ func GetDetailUrl(tradeType, hash string) string { if tradeType == OrderTradeTypeUsdtSolana { return "https://solscan.io/tx/" + hash } + if tradeType == OrderTradeTypeUsdtAptos { + return fmt.Sprintf("https://explorer.aptoslabs.com/txn/%s?network=mainnet", hash) + } return "https://tronscan.org/#/transaction/" + hash } diff --git a/app/task/aptos.go b/app/task/aptos.go index e77ce92..877cea2 100644 --- a/app/task/aptos.go +++ b/app/task/aptos.go @@ -44,7 +44,7 @@ func init() { func newAptos() aptos { return aptos{ - versionChunkSize: 100, + versionChunkSize: 100, // 目前好像最大就只能100 versionConfirmedOffset: 1000, versionInitStartOffset: -100 * 500, lastVersion: 0, diff --git a/static/views/usdt.aptos.html b/static/views/usdt.aptos.html new file mode 100644 index 0000000..8f4c2f1 --- /dev/null +++ b/static/views/usdt.aptos.html @@ -0,0 +1,93 @@ + + + +
+ + ++ + 请使用 Aptos 区块网络进行转账 + Aptos +
+