Documentation ¶
Index ¶
- func UseLogger(logger slog.Logger)
- type DialFunc
- type FeeAddressRequest
- type FeeAddressResponse
- type PayFeeRequest
- type PendingFee
- type TicketStatusRequest
- type TicketStatusResponse
- type VSP
- func (v *VSP) CreateFeeTx(ctx context.Context, ticketHash chainhash.Hash, credits []wallet.Input) (*wire.MsgTx, error)
- func (v *VSP) GetFeeAddress(ctx context.Context, ticketHash chainhash.Hash) (dcrutil.Amount, error)
- func (v *VSP) PayFee(ctx context.Context, ticketHash chainhash.Hash, feeTx *wire.MsgTx) (*wire.MsgTx, error)
- func (v *VSP) PoolFee(ctx context.Context) (float64, error)
- func (v *VSP) Process(ctx context.Context, ticketHash chainhash.Hash, credits []wallet.Input) (*wire.MsgTx, error)
- func (v *VSP) Sync(ctx context.Context)
- func (v *VSP) TicketStatus(ctx context.Context, hash *chainhash.Hash) (*TicketStatusResponse, error)
- type VSPTicket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FeeAddressRequest ¶
type FeeAddressResponse ¶
type FeeAddressResponse struct { Timestamp int64 `json:"timestamp"` FeeAddress string `json:"feeaddress"` FeeAmount int64 `json:"feeamount"` Expiration int64 `json:"expiration"` Request FeeAddressRequest `json:"request"` }
type PayFeeRequest ¶
type PendingFee ¶
type TicketStatusRequest ¶
type TicketStatusRequest struct {
TicketHash string `json:"tickethash" `
}
type TicketStatusResponse ¶
type VSP ¶
type VSP struct {
// contains filtered or unexported fields
}
func (*VSP) CreateFeeTx ¶
func (*VSP) GetFeeAddress ¶
func (*VSP) PayFee ¶
func (v *VSP) PayFee(ctx context.Context, ticketHash chainhash.Hash, feeTx *wire.MsgTx) (*wire.MsgTx, error)
PayFee receives an unsigned fee tx, signs it and make a pays fee request to the vsp, so the ticket get registered.
func (*VSP) TicketStatus ¶
Click to show internal directories.
Click to hide internal directories.