Documentation
¶
Index ¶
- Variables
- func NotifyAssetRootChanged(hash Bas_Ethereum.Hash, isOpen bool, isCustomized bool, isRare bool, ...)
- func NotifyAssetSubChanged(hash Bas_Ethereum.Hash, rootHash Bas_Ethereum.Hash)
- func NotifyDNSChanged(hash Bas_Ethereum.Hash, IPv4 [4]byte, IPv6 [16]byte, Bca []byte, OpData []byte, ...)
- func NotifyMarketAskAdded(hash Bas_Ethereum.Hash, buyer common.Address, price big.Int, ...)
- func NotifyMarketAskChanged(hash Bas_Ethereum.Hash, buyer common.Address, price big.Int, ...)
- func NotifyMarketAskRemove(hash Bas_Ethereum.Hash, buyer common.Address)
- func NotifyMarketSellAdded(hash Bas_Ethereum.Hash, seller common.Address, price big.Int, ...)
- func NotifyMarketSellChanged(hash Bas_Ethereum.Hash, seller common.Address, price big.Int)
- func NotifyMarketSellRemoved(hash Bas_Ethereum.Hash, seller common.Address)
- func NotifyMarketSoldByAsk(hash Bas_Ethereum.Hash, oldOwner common.Address, newOwner common.Address, ...)
- func NotifyMarketSoldBySell(hash Bas_Ethereum.Hash, oldOwner common.Address, newOwner common.Address, ...)
- func NotifyOwnershipAdd(hash Bas_Ethereum.Hash, owner common.Address, expire big.Int, ...)
- func NotifyOwnershipExtend(hash Bas_Ethereum.Hash, extend big.Int)
- func NotifyOwnershipRemove(hash Bas_Ethereum.Hash)
- func NotifyOwnershipTakeover(hash Bas_Ethereum.Hash, oldOwner common.Address, newOwner common.Address)
- func NotifyOwnershipTransfer(hash Bas_Ethereum.Hash, oldOwner common.Address, newOwner common.Address)
- func NotifyOwnershipTransferFrom(hash Bas_Ethereum.Hash, oldOwner common.Address, newOwner common.Address, ...)
- func NotifyOwnershipUpdate(hash Bas_Ethereum.Hash, owner common.Address, expire big.Int, ...)
- func NotifyPaid(payer common.Address, name []byte, option string, amount big.Int, ...)
- type AssetRootChanged
- type AssetSubChanged
- type DNSChanged
- type MarketAskAdded
- type MarketAskChanged
- type MarketAskRemove
- type MarketSellAdded
- type MarketSellChanged
- type MarketSellRemoved
- type MarketSoldByAsk
- type MarketSoldBySell
- type OwnershipAdd
- type OwnershipExtend
- type OwnershipRemove
- type OwnershipTakeover
- type OwnershipTransfer
- type OwnershipTransferFrom
- type OwnershipUpdate
- type Paid
Constants ¶
This section is empty.
Variables ¶
View Source
var AssetRootChangedNotifications = make(map[string]AssetRootChanged)
View Source
var AssetSubChangedNotifications = make(map[string]AssetSubChanged)
View Source
var DNSChangedNotifications = make(map[string]DNSChanged)
View Source
var MarketAskAddedNotifications = make(map[string]MarketAskAdded)
View Source
var MarketAskChangedNotifications = make(map[string]MarketAskChanged)
View Source
var MarketAskRemovedNotifications = make(map[string]MarketAskRemove)
View Source
var MarketSellAddedNotifications = make(map[string]MarketSellAdded)
View Source
var MarketSellChangedNotifications = make(map[string]MarketSellChanged)
View Source
var MarketSellRemovedNotifications = make(map[string]MarketSellRemoved)
View Source
var MarketSoldByAskNotifications = make(map[string]MarketSoldByAsk)
View Source
var MarketSoldBySellNotifications = make(map[string]MarketSoldBySell)
View Source
var OwnershipAddNotifications = make(map[string]OwnershipAdd)
View Source
var OwnershipExtendNotifications = make(map[string]OwnershipExtend)
View Source
var OwnershipRemoveNotifications = make(map[string]OwnershipRemove)
View Source
var OwnershipTakeoverNotifications = make(map[string]OwnershipTakeover)
View Source
var OwnershipTransferFromNotifications = make(map[string]OwnershipTransferFrom)
View Source
var OwnershipTransferNotifications = make(map[string]OwnershipTransfer)
View Source
var OwnershipUpdateNotifications = make(map[string]OwnershipUpdate)
View Source
var PaidNotifications = make(map[string]Paid)
Functions ¶
func NotifyAssetRootChanged ¶
func NotifyAssetSubChanged ¶
func NotifyAssetSubChanged( hash Bas_Ethereum.Hash, rootHash Bas_Ethereum.Hash)
func NotifyDNSChanged ¶
func NotifyMarketAskAdded ¶
func NotifyMarketAskChanged ¶
func NotifyMarketAskRemove ¶
func NotifyMarketAskRemove( hash Bas_Ethereum.Hash, buyer common.Address)
func NotifyMarketSellAdded ¶
func NotifyMarketSellChanged ¶
func NotifyMarketSellRemoved ¶
func NotifyMarketSellRemoved( hash Bas_Ethereum.Hash, seller common.Address)
func NotifyMarketSoldByAsk ¶
func NotifyMarketSoldBySell ¶
func NotifyOwnershipAdd ¶
func NotifyOwnershipExtend ¶
func NotifyOwnershipExtend( hash Bas_Ethereum.Hash, extend big.Int)
func NotifyOwnershipRemove ¶
func NotifyOwnershipRemove( hash Bas_Ethereum.Hash)
func NotifyOwnershipTakeover ¶
func NotifyOwnershipTransfer ¶
func NotifyOwnershipUpdate ¶
Types ¶
type AssetRootChanged ¶
type AssetRootChanged func( hash Bas_Ethereum.Hash, isOpen bool, isCustomized bool, isRare bool, customizedPrice big.Int)
there we do not specify which variable is changed, rather offer a whole record
type AssetSubChanged ¶
type AssetSubChanged func( hash Bas_Ethereum.Hash, rootHash Bas_Ethereum.Hash)
type DNSChanged ¶
type MarketAskAdded ¶
type MarketAskChanged ¶
type MarketAskRemove ¶
type MarketAskRemove func( hash Bas_Ethereum.Hash, buyer common.Address)
type MarketSellAdded ¶
type MarketSellChanged ¶
type MarketSellRemoved ¶
type MarketSellRemoved func( hash Bas_Ethereum.Hash, seller common.Address)
type MarketSoldByAsk ¶
type MarketSoldBySell ¶
type OwnershipAdd ¶
type OwnershipExtend ¶
type OwnershipExtend func( hash Bas_Ethereum.Hash, extend big.Int)
extend is time in seconds added to current time (when hash expired) or expire time (hash not expired)
type OwnershipRemove ¶
type OwnershipRemove func( hash Bas_Ethereum.Hash)
type OwnershipTakeover ¶
type OwnershipTakeover func( hash Bas_Ethereum.Hash, oldOwner common.Address, newOwner common.Address)
takeover, transfer, transferFrom are similar functions, meaning transfer hash from old owner to new owner
type OwnershipTransfer ¶
type OwnershipTransferFrom ¶
type OwnershipTransferFrom func( hash Bas_Ethereum.Hash, oldOwner common.Address, newOwner common.Address, by common.Address)
by is the approved logic contract address, not very useful to backend server
type OwnershipUpdate ¶
type OwnershipUpdate func( hash Bas_Ethereum.Hash, owner common.Address, expire big.Int, commitBlock uint64)
please check if hash exists, and act accordingly, if hash exists, you should drop any record of old owner and insert this record, and keep the smallest commitBlockNumber if not zero. if hash does not exist, simple add record is ok
Click to show internal directories.
Click to hide internal directories.