Documentation ¶
Index ¶
- Variables
- func BasAsset() *Contract.BasAsset
- func BasDNS() *Contract.BasDNS
- func BasOANN() *Contract.BasOANN
- func BasOwnership() *Contract.BasOwnership
- func BasToken() *Contract.BasToken
- func CheckSettings()
- func GetARootGas() string
- func GetBRootGas() string
- func GetCustomPriceGas() string
- func GetMaxYear() int64
- func GetRareTypeLength() int64
- func GetSubGas() string
- func IsRare(name string) bool
- func MemLock()
- func MemUnlock()
- func QueryOwnership(key Bas_Ethereum.Hash, blockNumber uint64) (common.Address, *big.Int, error)
- func ReWatch()
- func ResetConnAndService()
- func SetLastSavingPoint(bn uint64)
- func Settings()
- func ShowCachedNames()
- func Sync()
- func SyncGapWithNoTrust(blockNumber uint64)
- type DNSRecord
- type DomainRecord
- func (dr *DomainRecord) GetAliasName() string
- func (dr *DomainRecord) GetBCAddrStr() string
- func (dr *DomainRecord) GetCustomedPrice() string
- func (dr *DomainRecord) GetExpire() int64
- func (dr *DomainRecord) GetExtraInfo() string
- func (dr *DomainRecord) GetIPv4() uint32
- func (dr *DomainRecord) GetIPv4Addr() [4]byte
- func (dr *DomainRecord) GetIPv4Str() string
- func (dr *DomainRecord) GetIpv6Str() string
- func (dr *DomainRecord) GetIsCustomed() bool
- func (dr *DomainRecord) GetIsRare() bool
- func (dr *DomainRecord) GetIsRoot() bool
- func (dr *DomainRecord) GetName() string
- func (dr *DomainRecord) GetOpenStatus() bool
- func (dr *DomainRecord) GetOwner() string
- func (dr *DomainRecord) GetOwnerOrig() *common.Address
- func (dr *DomainRecord) GetParentHash() Bas_Ethereum.Hash
- func (dr *DomainRecord) GetRegTime() int64
- type Receipt
- type RootRecord
- type SubRecord
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TokenAddr = "0x9d0314f9Bacd569DCB22276867AAEeE1C8A87614" OwnershipAddr = "0x4b91b82bed39B1d946C9E3BC12ba09C2F22fd3ee" AssetAddr = "0x2B1110a13183A7045C7BCE3ba0092Ff0de4FD241" DNSAddr = "0x8951f6B80b880E8A47d0d18000A4c90F288F61a3" OANNAddr = "0x540d08bB1B16e09E1AefD56147c9435f83BBd437" )
View Source
var AROOTGAS *big.Int
View Source
var Assets = make(map[common.Address][]Bas_Ethereum.Hash)
View Source
var BROOTGAS *big.Int
View Source
var CUSTOMPRICEGAS *big.Int
View Source
var DebugFlag = true
View Source
var MAXYEAR *big.Int
View Source
var PayRecords = make(map[Bas_Ethereum.Hash]Receipt)
View Source
var RARETYPELENGTH *big.Int
View Source
var Records = make(map[Bas_Ethereum.Hash]*DomainRecord)
View Source
var SUBGAS *big.Int
Functions ¶
func BasOwnership ¶
func BasOwnership() *Contract.BasOwnership
func CheckSettings ¶
func CheckSettings()
func GetARootGas ¶
func GetARootGas() string
func GetBRootGas ¶
func GetBRootGas() string
func GetCustomPriceGas ¶
func GetCustomPriceGas() string
func GetMaxYear ¶
func GetMaxYear() int64
func GetRareTypeLength ¶
func GetRareTypeLength() int64
func QueryOwnership ¶
func ResetConnAndService ¶
func ResetConnAndService()
func SetLastSavingPoint ¶
func SetLastSavingPoint(bn uint64)
func ShowCachedNames ¶
func ShowCachedNames()
func SyncGapWithNoTrust ¶
func SyncGapWithNoTrust(blockNumber uint64)
Types ¶
type DomainRecord ¶
type DomainRecord struct { Name []byte Expire big.Int Owner common.Address IsRoot bool ROpenToPublic bool RIsCustomed bool RIsRare bool RCustomPrice big.Int SRootHash [32]byte Ipv4 [4]byte Ipv6 [16]byte Bca []byte OpData []byte AliasName string CommitBlock uint64 }
func (*DomainRecord) GetAliasName ¶
func (dr *DomainRecord) GetAliasName() string
func (*DomainRecord) GetBCAddrStr ¶
func (dr *DomainRecord) GetBCAddrStr() string
func (*DomainRecord) GetCustomedPrice ¶
func (dr *DomainRecord) GetCustomedPrice() string
func (*DomainRecord) GetExpire ¶
func (dr *DomainRecord) GetExpire() int64
func (*DomainRecord) GetExtraInfo ¶
func (dr *DomainRecord) GetExtraInfo() string
func (*DomainRecord) GetIPv4 ¶
func (dr *DomainRecord) GetIPv4() uint32
func (*DomainRecord) GetIPv4Addr ¶
func (dr *DomainRecord) GetIPv4Addr() [4]byte
func (*DomainRecord) GetIPv4Str ¶
func (dr *DomainRecord) GetIPv4Str() string
func (*DomainRecord) GetIpv6Str ¶
func (dr *DomainRecord) GetIpv6Str() string
func (*DomainRecord) GetIsCustomed ¶
func (dr *DomainRecord) GetIsCustomed() bool
func (*DomainRecord) GetIsRare ¶
func (dr *DomainRecord) GetIsRare() bool
func (*DomainRecord) GetIsRoot ¶
func (dr *DomainRecord) GetIsRoot() bool
func (*DomainRecord) GetName ¶
func (dr *DomainRecord) GetName() string
func (*DomainRecord) GetOpenStatus ¶
func (dr *DomainRecord) GetOpenStatus() bool
func (*DomainRecord) GetOwner ¶
func (dr *DomainRecord) GetOwner() string
func (*DomainRecord) GetOwnerOrig ¶
func (dr *DomainRecord) GetOwnerOrig() *common.Address
func (*DomainRecord) GetParentHash ¶
func (dr *DomainRecord) GetParentHash() Bas_Ethereum.Hash
func (*DomainRecord) GetRegTime ¶
func (dr *DomainRecord) GetRegTime() int64
type RootRecord ¶
func QueryRoot ¶
func QueryRoot(key Bas_Ethereum.Hash, blockNumber uint64) (RootRecord, error)
Click to show internal directories.
Click to hide internal directories.