Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuditPending = fmt.Errorf("audit pending")
View Source
var ErrSwapExpired = fmt.Errorf("swap expired")
Functions ¶
Types ¶
type ContractBuilder ¶
type ContractBuilder interface {
BuildSwapContracts(request SwapRequest) (Contract, Contract, error)
}
type DeleteSwap ¶
func (DeleteSwap) IsMessage ¶
func (msg DeleteSwap) IsMessage()
type ReceiptUpdate ¶
type ReceiptUpdate swap.ReceiptUpdate
func NewReceiptUpdate ¶
func NewReceiptUpdate(id swap.SwapID, status int, native, foreign Contract) ReceiptUpdate
func (ReceiptUpdate) IsMessage ¶
func (msg ReceiptUpdate) IsMessage()
type SwapRequest ¶
type SwapRequest struct { Blob swap.SwapBlob SendCost blockchain.Cost ReceiveCost blockchain.Cost }
func NewSwapRequest ¶
func NewSwapRequest(blob swap.SwapBlob, sendCost, receiveCost blockchain.Cost) SwapRequest
func (SwapRequest) IsMessage ¶
func (msg SwapRequest) IsMessage()
Click to show internal directories.
Click to hide internal directories.