Market

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: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MarketAddr = "0xA32ccce4B7aB28d3Ce40BBa03A2748bCbe4544dB"
)
View Source
var Sold = make([]Deal, 0)

Functions

func BasMarket

func BasMarket() *Contract.BasMarket

func BlockNumnber2TimeStamp

func BlockNumnber2TimeStamp(blockNumber uint64) int64

func ReWatch

func ReWatch()

func ResetConnAndService

func ResetConnAndService()

func Sync

func Sync()

func SyncGapWithNoTrust

func SyncGapWithNoTrust(blockNumber uint64)

Types

type AskOrder

type AskOrder struct {
	BlockNumber uint64
	// contains filtered or unexported fields
}

type Deal

type Deal struct {
	BlockNumber uint64
	// contains filtered or unexported fields
}

func (*Deal) GetAGreedPrice

func (d *Deal) GetAGreedPrice() *big.Int

func (*Deal) GetFromOwner

func (d *Deal) GetFromOwner() string

func (*Deal) GetHash

func (d *Deal) GetHash() Bas_Ethereum.Hash

func (*Deal) GetOwner

func (d *Deal) GetOwner() string

func (*Deal) GetTime

func (d *Deal) GetTime() int64

type SellOrder

type SellOrder struct {
	BlockNumber uint64
	// contains filtered or unexported fields
}

func (*SellOrder) GetPrice

func (so *SellOrder) GetPrice() *big.Int

func (*SellOrder) GetPriceStr

func (so *SellOrder) GetPriceStr() string

func (*SellOrder) GetTime

func (so *SellOrder) GetTime() int64

type SoldWay

type SoldWay int
const (
	BuyFromSell SoldWay = 0
	SellToAsk   SoldWay = 1
)

func (SoldWay) String

func (way SoldWay) String() string

Jump to

Keyboard shortcuts

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