Documentation
¶
Index ¶
Constants ¶
View Source
const (
// AtomicSwapID is the ID for state of an atomic swap client in the connection state.
AtomicSwapID = "atomic_swap"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AtomicSwapState ¶
type AtomicSwapState struct {
Client *atomicswap.Client
}
func State ¶
func State(conState jsonrpc.State) *AtomicSwapState
State from a connection. If no state is present, it is initialized
type SwapInfo ¶
type SwapInfo struct {
// PaymentCurrency string of the currency used to buy TFT
PaymentCurrency string `json:"paymentCurrency"`
// Amount of TFT to sell (whole units)
Amount uint64 `json:"amount"`
// Price expressed as the smallest unit of payment currency for 1 TFT. As buyer, this is the
// maximum price you are willing to pay for 1 TFT
Price uint64 `json:"price"`
}
SwapInfo used to start driving an atomic swap
Click to show internal directories.
Click to hide internal directories.