to: polygon usdt 收款实现中...
This commit is contained in:
+11
-1
@@ -23,7 +23,8 @@ const defaultPaymentMinAmount = 0.01
|
||||
const defaultPaymentMaxAmount = 99999
|
||||
const defaultUsdtAtomicity = "0.01" // 原子精度
|
||||
const defaultTrxAtomicity = "0.01"
|
||||
const defaultTronGrpcNode = "18.141.79.38:50051" // 默认GRPC节点
|
||||
const defaultTronGrpcNode = "18.141.79.38:50051" // 默认GRPC节点
|
||||
const defaultPolygonRpcEndpoint = "https://polygon-rpc.com/" // 默认Polygon RPC节点
|
||||
|
||||
var runPath string
|
||||
|
||||
@@ -42,6 +43,15 @@ func init() {
|
||||
runPath = filepath.Dir(execPath)
|
||||
}
|
||||
|
||||
func GetPolygonRpcEndpoint() string {
|
||||
if data := help.GetEnv("POLYGON_RPC_ENDPOINT"); data != "" {
|
||||
|
||||
return strings.TrimSpace(data)
|
||||
}
|
||||
|
||||
return defaultPolygonRpcEndpoint
|
||||
}
|
||||
|
||||
func GetBlockScanSuccRate() string {
|
||||
if BlockScanTotal == 0 {
|
||||
|
||||
|
||||
+24
-1
@@ -2,12 +2,14 @@ package help
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
gonanoid "github.com/matoous/go-nanoid/v2"
|
||||
"math"
|
||||
"os"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
@@ -91,12 +93,27 @@ func IsNumber(s string) bool {
|
||||
return match && err == nil
|
||||
}
|
||||
|
||||
func IsValidTRONWalletAddress(address string) bool {
|
||||
func IsValidTronAddress(address string) bool {
|
||||
match, err := regexp.MatchString(`^T[a-zA-Z0-9]{33}$`, address)
|
||||
|
||||
return match && err == nil
|
||||
}
|
||||
|
||||
func IsValidPolygonAddress(address string) bool {
|
||||
if len(address) != 42 || !strings.HasPrefix(address, "0x") {
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
addrWithoutPrefix := address[2:]
|
||||
if _, err := hex.DecodeString(addrWithoutPrefix); err != nil {
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func MaskAddress(address string) string {
|
||||
if len(address) <= 20 {
|
||||
|
||||
@@ -110,3 +127,9 @@ func CalcNextNotifyTime(base time.Time, num int) time.Time {
|
||||
|
||||
return base.Add(time.Minute * time.Duration(math.Pow(2, float64(num))))
|
||||
}
|
||||
|
||||
func HexStr2Int(hex string) int64 {
|
||||
v, _ := strconv.ParseInt(strings.TrimPrefix(hex, "0x"), 16, 64)
|
||||
|
||||
return v
|
||||
}
|
||||
|
||||
+46
-23
@@ -1,43 +1,66 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/v03413/bepusdt/app/config"
|
||||
"github.com/v03413/bepusdt/app/help"
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
const StatusEnable = 1
|
||||
const StatusDisable = 0
|
||||
const OtherNotifyEnable uint8 = 1
|
||||
const OtherNotifyDisable uint8 = 0
|
||||
const (
|
||||
StatusEnable = 1
|
||||
StatusDisable = 0
|
||||
)
|
||||
|
||||
const (
|
||||
OtherNotifyEnable uint8 = 1
|
||||
OtherNotifyDisable uint8 = 0
|
||||
)
|
||||
|
||||
const (
|
||||
WaChainTron = "tron"
|
||||
WaChainPolygon = "polygon"
|
||||
)
|
||||
|
||||
type WalletAddress struct {
|
||||
Id int64 `gorm:"integer;primaryKey;not null;comment:id"`
|
||||
Address string `gorm:"column:address;type:varchar(34);not null;uniqueIndex;comment:钱包地址"`
|
||||
Status int `gorm:"column:status;type:tinyint(1);not null;default:1;comment:地址状态 1启动 0禁止"`
|
||||
ID int64 `gorm:"integer;primaryKey;not null;comment:id"`
|
||||
Status uint8 `gorm:"column:status;type:tinyint(1);not null;default:1;comment:地址状态 1启动 0禁止"`
|
||||
Chain string `gorm:"column:chain;type:varchar(16);not null;default:'tron';comment:链类型"`
|
||||
Address string `gorm:"column:address;type:varchar(64);not null;uniqueIndex;comment:钱包地址"`
|
||||
OtherNotify uint8 `gorm:"column:other_notify;type:tinyint(1);not null;default:0;comment:其它转账通知 1启动 0禁止"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime;type:timestamp;not null;comment:创建时间"`
|
||||
UpdatedAt time.Time `gorm:"autoUpdateTime;type:timestamp;not null;comment:更新时间"`
|
||||
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime;type:timestamp;not null;comment:创建时间"`
|
||||
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;type:timestamp;not null;comment:更新时间"`
|
||||
}
|
||||
|
||||
// 启动时添加初始钱包地址
|
||||
func addStartWalletAddress() {
|
||||
var _wa WalletAddress
|
||||
|
||||
for _, address := range config.GetInitWalletAddress() {
|
||||
if help.IsValidTRONWalletAddress(address) {
|
||||
var _res2 = DB.Where("address = ?", address).First(&_wa)
|
||||
if errors.Is(_res2.Error, gorm.ErrRecordNotFound) {
|
||||
var _row = WalletAddress{Address: address, Status: StatusEnable}
|
||||
var _res = DB.Create(&_row)
|
||||
if _res.Error == nil && _res.RowsAffected == 1 {
|
||||
fmt.Println("✅钱包地址添加成功:", address)
|
||||
}
|
||||
}
|
||||
if !help.IsValidTronAddress(address) && !help.IsValidPolygonAddress(address) {
|
||||
fmt.Println("❌钱包地址不合法:", address)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
var chain = WaChainTron
|
||||
if help.IsValidPolygonAddress(address) {
|
||||
chain = WaChainPolygon
|
||||
}
|
||||
|
||||
var wa WalletAddress
|
||||
DB.Where("address = ?", address).Limit(1).Find(&wa)
|
||||
if wa.ID != 0 {
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
var err = DB.Create(&WalletAddress{Chain: chain, Address: address, Status: StatusEnable}).Error
|
||||
if err != nil {
|
||||
fmt.Println("❌钱包地址添加失败:", err)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
fmt.Println("✅钱包地址添加成功:", chain, address)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +69,7 @@ func (wa *WalletAddress) TableName() string {
|
||||
return "wallet_address"
|
||||
}
|
||||
|
||||
func (wa *WalletAddress) SetStatus(status int) {
|
||||
func (wa *WalletAddress) SetStatus(status uint8) {
|
||||
wa.Status = status
|
||||
DB.Save(wa)
|
||||
}
|
||||
|
||||
+7
-6
@@ -21,8 +21,9 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
OrderTradeTypeUsdtTrc20 = "usdt.trc20"
|
||||
OrderTradeTypeTronTrx = "tron.trx"
|
||||
OrderTradeTypeTronTrx = "tron.trx"
|
||||
OrderTradeTypeUsdtTrc20 = "usdt.trc20"
|
||||
OrderTradeTypeUsdtPolygon = "usdt.polygon"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -34,14 +35,14 @@ var calcMutex sync.Mutex
|
||||
|
||||
type TradeOrders struct {
|
||||
Id int64 `gorm:"primary_key;AUTO_INCREMENT;comment:id"`
|
||||
OrderId string `gorm:"type:varchar(255);not null;unique;color:blue;comment:客户订单ID"`
|
||||
TradeId string `gorm:"type:varchar(255);not null;unique;color:blue;comment:本地订单ID"`
|
||||
OrderId string `gorm:"type:varchar(128);not null;unique;color:blue;comment:商户ID"`
|
||||
TradeId string `gorm:"type:varchar(128);not null;unique;color:blue;comment:本地ID"`
|
||||
TradeType string `gorm:"type:varchar(20);not null;comment:交易类型"`
|
||||
TradeHash string `gorm:"type:varchar(64);default:'';unique;comment:交易哈希"`
|
||||
TradeRate string `gorm:"type:varchar(10);not null;comment:交易汇率"`
|
||||
Amount string `gorm:"type:decimal(10,2);not null;default:0;comment:USDT交易数额"`
|
||||
Amount string `gorm:"type:decimal(10,2);not null;default:0;comment:交易数额"`
|
||||
Money float64 `gorm:"type:decimal(10,2);not null;default:0;comment:订单交易金额"`
|
||||
Address string `gorm:"type:varchar(34);not null;comment:收款地址"`
|
||||
Address string `gorm:"column:address;type:varchar(64);not null;comment:收款地址"`
|
||||
FromAddress string `gorm:"type:varchar(34);not null;default:'';comment:支付地址"`
|
||||
Status int `gorm:"type:tinyint(1);not null;default:0;comment:交易状态 1:等待支付 2:支付成功 3:订单过期"`
|
||||
Name string `gorm:"type:varchar(64);not null;default:'';comment:商品名称"`
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
package monitor
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/panjf2000/ants/v2"
|
||||
"github.com/shopspring/decimal"
|
||||
"github.com/smallnest/chanx"
|
||||
"github.com/tidwall/gjson"
|
||||
"github.com/v03413/bepusdt/app/config"
|
||||
"github.com/v03413/bepusdt/app/help"
|
||||
"github.com/v03413/bepusdt/app/log"
|
||||
"io"
|
||||
"math/big"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
type polygonUsdtTransfer struct {
|
||||
From string
|
||||
To string
|
||||
Amount string
|
||||
Hash string
|
||||
BlockNum int64
|
||||
Timestamp int64
|
||||
}
|
||||
|
||||
var polygonLastBlockNumber int64
|
||||
var polygonBlockScanQueue = chanx.NewUnboundedChan[int64](context.Background(), 30)
|
||||
var polygonUsdtTransferQueue = chanx.NewUnboundedChan[polygonUsdtTransfer](context.Background(), 30)
|
||||
|
||||
const usdtPolygonContractAddress = "0xc2132d05d31c914a87c6611c10748aeb04b58e8f"
|
||||
const usdtPolygonTransferMethodID = "0xa9059cbb" // Function: transfer(address recipient, uint256 amount)
|
||||
const contentType = "application/json"
|
||||
|
||||
func init() {
|
||||
RegisterSchedule(time.Second*3, polygonBlockNumber)
|
||||
RegisterSchedule(time.Second, polygonBlockScan)
|
||||
RegisterSchedule(time.Second, polygonUsdtTransferHandle)
|
||||
}
|
||||
|
||||
func polygonUsdtTransferHandle(time.Duration) {
|
||||
for {
|
||||
select {
|
||||
case t := <-polygonUsdtTransferQueue.Out:
|
||||
fmt.Println(t.Hash, t.Timestamp, t.From, t.To, t.Amount)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func polygonProcessBlock(n any) {
|
||||
var num = n.(int64)
|
||||
var url = config.GetPolygonRpcEndpoint()
|
||||
var client = &http.Client{Timeout: time.Second * 5}
|
||||
var data = []byte(fmt.Sprintf(`{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x%x",true],"id":1}`, num))
|
||||
|
||||
resp, err := client.Post(url, contentType, bytes.NewBuffer(data))
|
||||
if err != nil {
|
||||
polygonBlockScanQueue.In <- num
|
||||
log.Warn("Error sending request:", err)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
polygonBlockScanQueue.In <- num
|
||||
log.Warn("Error reading response body:", err)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
defer resp.Body.Close()
|
||||
|
||||
var result = gjson.ParseBytes(body).Get("result")
|
||||
var timestamp = help.HexStr2Int(result.Get("timestamp").String())
|
||||
for _, v := range result.Get("transactions").Array() {
|
||||
if v.Get("to").String() != usdtPolygonContractAddress {
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
var input = v.Get("input").String()
|
||||
var methodID = input[:10]
|
||||
if methodID != usdtPolygonTransferMethodID {
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
amount, ok := new(big.Int).SetString(input[74:], 16)
|
||||
if !ok {
|
||||
log.Warn("Error converting amount" + input[74:])
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
polygonUsdtTransferQueue.In <- polygonUsdtTransfer{
|
||||
From: v.Get("from").String(),
|
||||
To: "0x" + input[34:74],
|
||||
Amount: decimal.NewFromInt(amount.Int64()).Div(decimal.NewFromInt(1e6)).String(),
|
||||
Hash: v.Get("hash").String(),
|
||||
BlockNum: num,
|
||||
Timestamp: timestamp,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func polygonBlockScan(time.Duration) {
|
||||
p, err := ants.NewPoolWithFunc(8, polygonProcessBlock)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
defer p.Release()
|
||||
|
||||
for n := range polygonBlockScanQueue.Out {
|
||||
if err := p.Invoke(n); err != nil {
|
||||
polygonBlockScanQueue.In <- n
|
||||
|
||||
log.Warn("Error invoking process block:", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func polygonBlockNumber(d time.Duration) {
|
||||
var url = config.GetPolygonRpcEndpoint()
|
||||
var jsonData = []byte(`{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}`)
|
||||
var client = &http.Client{Timeout: time.Second * 5}
|
||||
|
||||
for range time.Tick(d) {
|
||||
resp, err := client.Post(url, contentType, bytes.NewBuffer(jsonData))
|
||||
if err != nil {
|
||||
log.Warn("Error sending request:", err)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
log.Warn("Error reading response body:", err)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
_ = resp.Body.Close()
|
||||
|
||||
var res = gjson.ParseBytes(body)
|
||||
var number = help.HexStr2Int(res.Get("result").String())
|
||||
if number == 0 {
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
// 首次启动
|
||||
if polygonLastBlockNumber == 0 {
|
||||
|
||||
polygonLastBlockNumber = number - 1
|
||||
}
|
||||
|
||||
// 区块高度没有变化
|
||||
if number <= polygonLastBlockNumber {
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
for n := polygonLastBlockNumber + 1; n <= number; n++ {
|
||||
|
||||
polygonBlockScanQueue.In <- n
|
||||
}
|
||||
|
||||
polygonLastBlockNumber = number
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,11 @@ const cbOrderDetail = "order_detail"
|
||||
const cbMarkNotifySucc = "mark_notify_succ"
|
||||
|
||||
func cbWalletAction(query *tgbotapi.CallbackQuery, address string) {
|
||||
var info = getWalletInfoByAddress(address)
|
||||
var info = "暂时只支持 Tron 钱包查询..."
|
||||
if strings.HasPrefix(address, "T") {
|
||||
info = getTronWalletInfo(address)
|
||||
}
|
||||
|
||||
var msg = tgbotapi.NewMessage(query.Message.Chat.ID, "❌查询失败")
|
||||
if info != "" {
|
||||
msg.Text = info
|
||||
@@ -196,7 +200,7 @@ func cbMarkNotifySuccAction(tradeId string) {
|
||||
SendMsg(msg)
|
||||
}
|
||||
|
||||
func getWalletInfoByAddress(address string) string {
|
||||
func getTronWalletInfo(address string) string {
|
||||
var url = "https://apilist.tronscanapi.com/api/accountv2?address=" + address
|
||||
var client = http.Client{Timeout: time.Second * 5}
|
||||
resp, err := client.Get(url)
|
||||
@@ -249,3 +253,9 @@ func getWalletInfoByAddress(address string) string {
|
||||
|
||||
return text
|
||||
}
|
||||
|
||||
func getPolygonWallerInfo(address string) string {
|
||||
// TODO: 开发中...
|
||||
|
||||
return "开发中..."
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ func cmdStartHandle() {
|
||||
_address = fmt.Sprintf("[❌已禁用] %s", wa.Address)
|
||||
}
|
||||
|
||||
inlineBtn = append(inlineBtn, tgbotapi.NewInlineKeyboardRow(tgbotapi.NewInlineKeyboardButtonData(_address, fmt.Sprintf("%s|%v", cbAddress, wa.Id))))
|
||||
inlineBtn = append(inlineBtn, tgbotapi.NewInlineKeyboardRow(tgbotapi.NewInlineKeyboardButtonData(_address, fmt.Sprintf("%s|%v", cbAddress, wa.ID))))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+12
-6
@@ -21,8 +21,8 @@ func HandleMessage(msg *api.Message) {
|
||||
addWalletAddress(msg)
|
||||
}
|
||||
|
||||
if msg.Text != "" && help.IsValidTRONWalletAddress(msg.Text) {
|
||||
go queryAnyTrc20AddressInfo(msg, msg.Text)
|
||||
if msg.Text != "" && help.IsValidTronAddress(msg.Text) {
|
||||
go queryTronAddressInfo(msg, msg.Text)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,13 +64,19 @@ func HandleCallback(query *api.CallbackQuery) {
|
||||
func addWalletAddress(msg *api.Message) {
|
||||
var address = strings.TrimSpace(msg.Text)
|
||||
// 简单检测地址是否合法
|
||||
if !help.IsValidTRONWalletAddress(address) {
|
||||
if !help.IsValidTronAddress(address) && !help.IsValidPolygonAddress(address) {
|
||||
SendMsg(api.NewMessage(msg.Chat.ID, "钱包地址不合法"))
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
var wa = model.WalletAddress{Address: address, Status: model.StatusEnable, OtherNotify: model.OtherNotifyEnable}
|
||||
var chain = model.WaChainTron
|
||||
if help.IsValidPolygonAddress(address) {
|
||||
|
||||
chain = model.WaChainPolygon
|
||||
}
|
||||
|
||||
var wa = model.WalletAddress{Chain: chain, Address: address, Status: model.StatusEnable, OtherNotify: model.OtherNotifyEnable}
|
||||
var r = model.DB.Create(&wa)
|
||||
if r.Error != nil {
|
||||
if r.Error.Error() == "UNIQUE constraint failed: wallet_address.address" {
|
||||
@@ -111,8 +117,8 @@ func botCommandHandle(msg *api.Message) {
|
||||
}
|
||||
}
|
||||
|
||||
func queryAnyTrc20AddressInfo(msg *api.Message, address string) {
|
||||
var info = getWalletInfoByAddress(address)
|
||||
func queryTronAddressInfo(msg *api.Message, address string) {
|
||||
var info = getTronWalletInfo(address)
|
||||
var reply = api.NewMessage(msg.Chat.ID, "❌查询失败")
|
||||
if info != "" {
|
||||
reply.ReplyToMessageID = msg.MessageID
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package app
|
||||
|
||||
// Version 版本号说明 1.0.0 代表主版本号.功能版本号.修订号
|
||||
const Version = "1.16.0"
|
||||
const Version = "1.17.0"
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ func createTransaction(ctx *gin.Context) {
|
||||
}
|
||||
if v, ok := data["address"]; ok && cast.ToString(v) != "" {
|
||||
address = cast.ToString(v)
|
||||
if !help.IsValidTRONWalletAddress(address) {
|
||||
if !help.IsValidTronAddress(address) {
|
||||
ctx.JSON(200, respFailJson(fmt.Sprintf("收款钱包地址(%s)不合法", address)))
|
||||
|
||||
return
|
||||
|
||||
@@ -8,10 +8,10 @@ require (
|
||||
github.com/gin-gonic/gin v1.9.1
|
||||
github.com/glebarez/sqlite v1.11.0
|
||||
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
|
||||
github.com/goccy/go-json v0.10.2
|
||||
github.com/matoous/go-nanoid/v2 v2.1.0
|
||||
github.com/shopspring/decimal v1.3.1
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
github.com/smallnest/chanx v1.2.0
|
||||
github.com/spf13/cast v1.7.0
|
||||
github.com/tidwall/gjson v1.17.0
|
||||
github.com/v03413/tronprotocol v0.0.0-20240824084238-bbd62f5e0158
|
||||
@@ -29,6 +29,7 @@ require (
|
||||
github.com/go-playground/locales v0.14.1 // indirect
|
||||
github.com/go-playground/universal-translator v0.18.1 // indirect
|
||||
github.com/go-playground/validator/v10 v10.14.0 // indirect
|
||||
github.com/goccy/go-json v0.10.2 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/jinzhu/inflection v1.0.0 // indirect
|
||||
github.com/jinzhu/now v1.1.5 // indirect
|
||||
@@ -39,6 +40,7 @@ require (
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/ncruces/go-strftime v0.1.9 // indirect
|
||||
github.com/panjf2000/ants/v2 v2.11.2 // indirect
|
||||
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
github.com/tidwall/match v1.1.1 // indirect
|
||||
@@ -48,6 +50,7 @@ require (
|
||||
golang.org/x/arch v0.3.0 // indirect
|
||||
golang.org/x/crypto v0.24.0 // indirect
|
||||
golang.org/x/net v0.26.0 // indirect
|
||||
golang.org/x/sync v0.12.0 // indirect
|
||||
golang.org/x/sys v0.21.0 // indirect
|
||||
golang.org/x/text v0.16.0 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20240823204242-4ba0660f739c // indirect
|
||||
|
||||
@@ -123,6 +123,8 @@ github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5
|
||||
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
||||
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
|
||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||
github.com/panjf2000/ants/v2 v2.11.2 h1:AVGpMSePxUNpcLaBO34xuIgM1ZdKOiGnpxLXixLi5Jo=
|
||||
github.com/panjf2000/ants/v2 v2.11.2/go.mod h1:8u92CYMUc6gyvTIw8Ru7Mt7+/ESnJahz5EVtqfrilek=
|
||||
github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ=
|
||||
github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
@@ -135,6 +137,8 @@ github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5g
|
||||
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
|
||||
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
|
||||
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
|
||||
github.com/smallnest/chanx v1.2.0 h1:RLyldZBbQZ4O0dSvdkTMHo4+mDw20Bc1jXXTHf+ymZo=
|
||||
github.com/smallnest/chanx v1.2.0/go.mod h1:+4nWMF0+CqEcU74SnX2NxaGqZ8zX4pcQ8Jcs77DbX5A=
|
||||
github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w=
|
||||
github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
@@ -164,6 +168,8 @@ github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4d
|
||||
github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
|
||||
github.com/v03413/tronprotocol v0.0.0-20240824084238-bbd62f5e0158 h1:zAlBqlv+ljSO0AOvHQo2ur/MiCZFdwMYPVf7Hu0vezE=
|
||||
github.com/v03413/tronprotocol v0.0.0-20240824084238-bbd62f5e0158/go.mod h1:ToWfuVvvk9OTE5i0nisoXPWxVdeBdEduj7ddlwf/s9M=
|
||||
go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA=
|
||||
go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
|
||||
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
|
||||
golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k=
|
||||
golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
|
||||
@@ -180,6 +186,8 @@ golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81R
|
||||
golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ=
|
||||
golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
|
||||
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
|
||||
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
|
||||
Reference in New Issue
Block a user