Versions in this module Expand all Collapse all v2 v2.7.6 Nov 14, 2023 v2.7.5 Apr 14, 2023 Changes in this version + func UseLogger(logger slog.Logger) + type BadRequestError struct + Code int + HTTPStatus int + Message string + func (e *BadRequestError) Error() string + type Client struct + Policy Policy + Wallet *wallet.Wallet + func New(cfg Config) (*Client, error) + func (c *Client) FeePercentage(ctx context.Context) (float64, error) + func (c *Client) Process(ctx context.Context, ticketHash *chainhash.Hash, feeTx *wire.MsgTx) error + func (c *Client) ProcessManagedTickets(ctx context.Context, policy Policy) error + func (c *Client) ProcessTicket(ctx context.Context, hash *chainhash.Hash) error + func (c *Client) ProcessUnprocessedTickets(ctx context.Context, policy Policy) + func (c *Client) ProcessWithPolicy(ctx context.Context, ticketHash *chainhash.Hash, feeTx *wire.MsgTx, ...) error + func (c *Client) SetVoteChoice(ctx context.Context, hash *chainhash.Hash, choices []wallet.AgendaChoice, ...) error + func (c *Client) TrackedTickets() []*TicketInfo + type Config struct + Dialer DialFunc + Policy Policy + PubKey string + URL string + Wallet *wallet.Wallet + type DialFunc func(ctx context.Context, network, addr string) (net.Conn, error) + type Policy struct + ChangeAcct uint32 + FeeAcct uint32 + MaxFee dcrutil.Amount + type TicketInfo struct + CommitmentAddr stdaddr.StakeAddress + Fee dcrutil.Amount + FeeHash chainhash.Hash + State uint32 + TicketHash chainhash.Hash + VotingAddr stdaddr.StakeAddress