mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 10:16:15 +00:00
9b397bd45e
- add TON chain, token, RPC, address normalization, and order matching support - add liteclient scanner with masterchain/shard catch-up and Jetton validation - add TON manual payment verification and focused tests
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
package mdb
|
|
|
|
const (
|
|
TokenStatusEnable = 1
|
|
TokenStatusDisable = 2
|
|
)
|
|
|
|
const (
|
|
NetworkTron = "tron"
|
|
NetworkSolana = "solana"
|
|
NetworkEthereum = "ethereum"
|
|
NetworkBsc = "binance"
|
|
NetworkPolygon = "polygon"
|
|
NetworkPlasma = "plasma"
|
|
NetworkTon = "ton"
|
|
)
|
|
|
|
const (
|
|
WalletSourceManual = "manual"
|
|
WalletSourceImport = "import"
|
|
)
|
|
|
|
type WalletAddress struct {
|
|
Network string `gorm:"column:network;uniqueIndex:wallet_address_network_address_uindex" json:"network" example:"tron"`
|
|
Address string `gorm:"column:address;uniqueIndex:wallet_address_network_address_uindex" json:"address" example:"TTestTronAddress001"`
|
|
// 状态 1=启用 2=禁用
|
|
Status int64 `gorm:"column:status;default:1" json:"status" enums:"1,2" example:"1"`
|
|
Remark string `gorm:"column:remark;size:255" json:"remark" example:"主钱包"`
|
|
Source string `gorm:"column:source;size:16;default:manual" json:"source" enums:"manual,import" example:"manual"`
|
|
BaseModel
|
|
}
|
|
|
|
func (w *WalletAddress) TableName() string {
|
|
return "wallet_address"
|
|
}
|