Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegateTask ¶ added in v0.3.14
type DelegateTask struct {
ID string `json:"id"`
Status string `json:"status"`
Fee string `json:"fee"`
ScheduledAt string `json:"scheduledAt"`
ScheduledAtUnix int64 `json:"scheduledAtUnix"` // Unix timestamp for client-side formatting
ScheduledDate string `json:"scheduledDate"` // Deprecated: use scheduledAtUnix
ScheduledHour string `json:"scheduledHour"` // Deprecated: use scheduledAtUnix
FailReason string `json:"failReason,omitempty"`
CommitmentTxid string `json:"commitmentTxid,omitempty"`
DelegatorPublicKey string `json:"delegatorPublicKey,omitempty"`
Intent *DelegateTaskIntent `json:"intent,omitempty"`
Forfeits []DelegateTaskForfeit `json:"forfeits,omitempty"`
}
type DelegateTaskForfeit ¶ added in v0.3.14
type DelegateTaskIntent ¶ added in v0.3.14
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.