DataSync

package
v0.0.0-...-556a089 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 16 Imported by: 3

Documentation

Index

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 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 SUBGAS *big.Int

Functions

func BasAsset

func BasAsset() *Contract.BasAsset

func BasDNS

func BasDNS() *Contract.BasDNS

func BasOANN

func BasOANN() *Contract.BasOANN

func BasOwnership

func BasOwnership() *Contract.BasOwnership

func BasToken

func BasToken() *Contract.BasToken

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 GetSubGas

func GetSubGas() string

func IsRare

func IsRare(name string) bool

func MemLock

func MemLock()

func MemUnlock

func MemUnlock()

func QueryOwnership

func QueryOwnership(key Bas_Ethereum.Hash, blockNumber uint64) (common.Address, *big.Int, error)

func ReWatch

func ReWatch()

func ResetConnAndService

func ResetConnAndService()

func SetLastSavingPoint

func SetLastSavingPoint(bn uint64)

func Settings

func Settings()

func ShowCachedNames

func ShowCachedNames()

func Sync

func Sync()

func SyncGapWithNoTrust

func SyncGapWithNoTrust(blockNumber uint64)

Types

type DNSRecord

type DNSRecord struct {
	Ipv4      [4]byte
	Ipv6      [16]byte
	Bca       []byte
	OpData    []byte
	AliasName string
}

func QueryDNS

func QueryDNS(key Bas_Ethereum.Hash, blockNumber uint64) (DNSRecord, error)

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 Receipt

type Receipt struct {
	Payer       common.Address
	Name        []byte
	Option      string
	Amount      *big.Int
	CommitBlock uint64
}

type RootRecord

type RootRecord struct {
	RootName      []byte
	OpenToPublic  bool
	IsCustomed    bool
	CustomedPrice *big.Int
}

func QueryRoot

func QueryRoot(key Bas_Ethereum.Hash, blockNumber uint64) (RootRecord, error)

type SubRecord

type SubRecord struct {
	TotalName []byte
	RootHash  [32]byte
}

func QuerySub

func QuerySub(key Bas_Ethereum.Hash, blockNumber uint64) (SubRecord, error)

Jump to

Keyboard shortcuts

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