Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Benchmarks ¶
type Benchmarks sonm.Benchmarks
type Corder ¶
type Corder struct { *sonm.Order // contains filtered or unexported fields }
func (*Corder) GetHashrate ¶
func (*Corder) IsReplaceable ¶
func (*Corder) RestorePrice ¶
type CorderCancelTuple ¶
func NewCorderCancelTuple ¶
func NewCorderCancelTuple(c *Corder) *CorderCancelTuple
func (*CorderCancelTuple) WithIncreasedDelay ¶
func (c *CorderCancelTuple) WithIncreasedDelay() *CorderCancelTuple
type CorderFactory ¶
type CorderFactory interface { FromOrder(order *sonm.Order) *Corder FromParams(price *big.Int, hashrate uint64, bench Benchmarks) *Corder FromSlice(orders []*sonm.Order) []*Corder }
func NewCorderFactory ¶
func NewCorderFactory(tag string, benchmarkIndex int, counterparty common.Address) CorderFactory
type Deal ¶
type Deal struct { *sonm.Deal // contains filtered or unexported fields }
func (*Deal) BenchmarkValue ¶
func (*Deal) RestorePrice ¶
type DealFactory ¶
type DealFactory interface {
FromDeal(deal *sonm.Deal) *Deal
}
func NewDealFactory ¶
func NewDealFactory(benchmarkIndex int) DealFactory
type OrdersSets ¶
func DivideOrdersSets ¶
func DivideOrdersSets(existingCorders, targetCorders []*Corder) *OrdersSets
type TaskStatus ¶
type TaskStatus struct { *sonm.TaskStatusReply ID string }
Click to show internal directories.
Click to hide internal directories.