Versions in this module Expand all Collapse all v1 v1.5.0 Jun 20, 2018 Changes in this version + const ZKLOCK_SUBMITTER_MINER_ADDR_PRE + func CVSquare(rateRatios []*big.Int, scale *big.Int) *big.Int + func NewRing(filledOrders []*types.FilledOrder) *types.Ring + func PriceRateCVSquare(ringState *types.Ring) (*big.Int, error) + func PriceValid(a2BOrder *types.OrderState, b2AOrder *types.OrderState) bool + func ReducedRate(ringState *types.Ring) *big.Rat + type Evaluator struct + func NewEvaluator(marketCapProvider marketcap.MarketCapProvider, ...) *Evaluator + func (e *Evaluator) ComputeRing(ringState *types.Ring) error + func (e *Evaluator) SetMatcher(matcher Matcher) + type Matcher interface + GetAccountAvailableAmount func(address, tokenAddress, spender common.Address) (*big.Rat, error) + Start func() + Stop func() + type Miner struct + func NewMiner(submitter *RingSubmitter, matcher Matcher, evaluator *Evaluator, ...) *Miner + func (minerInstance *Miner) Start() + func (minerInstance *Miner) Stop() + type NormalSenderAddress struct + Address common.Address + GasPriceLimit *big.Int + MaxPendingCount int64 + MaxPendingTtl int + Nonce *big.Int + type RingSubmitFailed struct + RingState *types.Ring + type RingSubmitter struct + func NewSubmitter(options config.MinerOptions, dbService dao.RdsServiceImpl, brokers []string) (*RingSubmitter, error) + func (submitter *RingSubmitter) GenerateRingSubmitInfo(ringState *types.Ring) (*types.RingSubmitInfo, error) + type SplitMinerAddress struct + Address common.Address + FeePercent float64 + Nonce *big.Int + StartFee float64