Documentation ¶
Index ¶
- Constants
- Variables
- func QueryWalletNft(cursor, gameNftAddress, walletAddr, network string, res []response.NftResult) ([]response.NftResult, error)
- type BalanceService
- type QueryManager
- func (qm *QueryManager) QueryERC20TxRecord(ctx context.Context, walletAddr string, contractAddr string) (response.BscResult, error)
- func (qm *QueryManager) QueryNativeRecord(ctx context.Context, walletAddr string) (response.BscResult, error)
- func (qm *QueryManager) QueryNftList(ctx context.Context, gameContractAddr, walletAddr, assetType string) ([]model.CacheData, error)
- func (qm *QueryManager) QueryNftType(ctx context.Context, gameContractAddr, walletAddr string) ([]response.NftType, error)
- type Scheduler
Constants ¶
View Source
const BscScanRateLimit = "\"Max rate limit reached\""
Variables ¶
View Source
var BalanceSrv = new(BalanceService)
View Source
var MoralisRateLimit = "{\"message\":\"Rate limit exceeded.\"}"
View Source
var ResourceTable = map[model.TaskType]int{ model.NftQuery: 1, model.Erc20TxRecordQuery: 1, model.NativeTxRecordQuery: 2, }
Functions ¶
Types ¶
type BalanceService ¶
type BalanceService struct { }
func (*BalanceService) QueryWalletService ¶
func (service *BalanceService) QueryWalletService(address string) ([]response.BalanceShow, error)
type QueryManager ¶
type QueryManager struct {
// contains filtered or unexported fields
}
func NewQueryManager ¶
func NewQueryManager() *QueryManager
func (*QueryManager) QueryERC20TxRecord ¶
func (*QueryManager) QueryNativeRecord ¶
func (*QueryManager) QueryNftList ¶
func (*QueryManager) QueryNftType ¶
Click to show internal directories.
Click to hide internal directories.