swapper

package
v1.0.1-stable-dd60dab Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cap int, storage Storage, builder immediate.ContractBuilder, callback delayed.DelayCallback) tau.Task

func NewSwapper

func NewSwapper(delayedSwapperTask, immediateSwapperTask tau.Task, storage Storage) tau.Reducer

Types

type Bootload

type Bootload struct {
	Password string
}

func (Bootload) IsMessage

func (Bootload) IsMessage()

type ReceiptUpdate

type ReceiptUpdate swap.ReceiptUpdate

func (ReceiptUpdate) IsMessage

func (ReceiptUpdate) IsMessage()

type Storage

type Storage interface {
	LoadCosts(id swap.SwapID) (blockchain.Cost, blockchain.Cost)
	PutSwap(blob swap.SwapBlob) error
	DeletePendingSwap(swap.SwapID) error
	PendingSwaps() ([]swap.SwapBlob, error)
}

type SwapRequest

type SwapRequest swap.SwapBlob

func (SwapRequest) IsMessage

func (SwapRequest) IsMessage()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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