Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payment ¶ added in v0.3.0
type Payment struct {
Amount string `json:"amount"`
Date string `json:"date"`
Hour string `json:"hour"`
Id string `json:"id"`
Kind string `json:"kind"` // "send" or "receive"
Status string `json:"status"` // "pending", "refunding", "failed", "completed"
// This is the invoice expiration time
ExpiresAt string `json:"expiresAt"`
RefundLockTime *LockTime `json:"refundLockTime,omitempty"`
PaymentTransfer *Transfer `json:"vhtlc,omitempty"`
// If Payment Is Send and Failed
ReclaimTransfer *Transfer `json:"redeemTransfer,omitempty"`
}
type Swap ¶ added in v0.1.12
type Swap struct {
Amount string `json:"amount"`
Date string `json:"date"`
Hour string `json:"hour"`
Id string `json:"id"`
Kind string `json:"kind"`
Status string `json:"status"`
ExpiresAt string `json:"expiry"`
RefundLockTime *LockTime `json:"refundLockTime,omitempty"`
// If Swap is Outbound, this is the Sent VHTLC
VHTLCTransfer *Transfer `json:"vhtlc,omitempty"`
// If Swap is Inbound, this is the Redeem Tx, else this is Txn of reclaim Failed Outbound Swap
RedeemTransfer *Transfer `json:"redeemTransfer,omitempty"`
}
type Transaction ¶
type Transaction struct {
// Kind can be "swap" or "transfer" or "payment"
Kind string `json:"kind"`
Id string `json:"id"`
DateCreated int64 `json:"dateCreated"`
// Exactly one of these will be non-nil:
Swap *Swap `json:"swap,omitempty"`
Transfer *Transfer `json:"transfer,omitempty"`
Payment *Payment `json:"payment,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.