queryService

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const BscScanRateLimit = "\"Max rate limit reached\""

Variables

View Source
var BalanceSrv = new(BalanceService)
View Source
var MoralisRateLimit = "{\"message\":\"Rate limit exceeded.\"}"

Functions

func QueryWalletNft

func QueryWalletNft(cursor, gameNftAddress, walletAddr, network string, res []response.NftResult) ([]response.NftResult, error)

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 (qm *QueryManager) QueryERC20TxRecord(ctx context.Context, walletAddr string, contractAddr string) (response.BscResult, error)

func (*QueryManager) QueryNativeRecord

func (qm *QueryManager) QueryNativeRecord(ctx context.Context, walletAddr string) (response.BscResult, error)

func (*QueryManager) QueryNftList

func (qm *QueryManager) QueryNftList(ctx context.Context, gameContractAddr, walletAddr, assetType string) ([]model.CacheData, error)

func (*QueryManager) QueryNftType

func (qm *QueryManager) QueryNftType(ctx context.Context, gameContractAddr, walletAddr string) ([]response.NftType, error)

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler() *Scheduler

func (*Scheduler) Schedule

func (s *Scheduler) Schedule(ctx context.Context, tp model.TaskType, action model.QueryAction) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL