Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NftManager ¶
type NftManager struct {
NftOwnerTracker
}
func NewNftManager ¶
func NewNftManager(tracker NftOwnerTracker) *NftManager
func (*NftManager) Update ¶
func (nm *NftManager) Update(event interface{})
type NftOwnerTracker ¶
type NftOwnerTracker interface { QueryNftList(ownerAddr string, contractAddr string) ([]model.NftOwner, error) AddNftOwner(no model.NftOwner) error UpdateNftOwner(ownerAddr string, contractAddr string, tokenId int64, updateTime int64) error QueryNftOwner(tokenId int64, contractAddr string) ([]model.NftOwner, error) }
type NftOwnerUpdateEvent ¶
type NotifyEvent ¶
type TxTracker ¶
type TxTracker interface { SaveTxCb(tx model.SpikeTx) error RecordTxHash(uuidList []string, txHash string, txStatus int) error QueryGameCb(txHash string, notifyStatus int) ([]model.SpikeTx, error) UpdateTxStatus(txHash string, txStatus int, payTime int64) error UpdateTxNotifyStatus(orderId string, notifyStatus int) error QueryNotNotifyTx(notNotifyStatus int) ([]model.SpikeTx, error) }
Click to show internal directories.
Click to hide internal directories.