redeemer

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 29 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package redeemer runs the standalone winning-ticket redemption service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Root

func Root(out, errOut io.Writer) *cobra.Command

func Serve

func Serve(parent context.Context, p Params, logOut io.Writer) (result error)

Types

type Params

type Params struct {
	ConfigFile string `` /* 151-byte string literal not displayed */
	nodeconfig.Settings
	Listen                    boa.HTTPBind       `default:"127.0.0.1:8941" descr:"Ticket submission listener"`
	MetricsListen             boa.HTTPBind       `default:"127.0.0.1:8942" descr:"Metrics and probe listener"`
	Account                   *common.Address    `descr:"Dedicated redemption wallet; must not be an orchestrator"`
	RedeemerDB                string             `file:"optional" descr:"Winning-ticket SQLite database"`
	KeystoreFile              string             `basepath:"source" optional:"true" descr:"Encrypted geth redemption account JSON file"`
	KeystorePassword          *string            `secret:"true" optional:"true" descr:"Keystore decryption password"`
	KeystorePasswordFile      string             `basepath:"source" secretfor:"KeystorePassword" descr:"Owner-only file containing exact password bytes"`
	RPCURL                    *url.URL           `name:"rpc-url" secret:"true" optional:"true"`
	RPCURLFile                string             `basepath:"source" name:"rpc-url-file" secretfor:"RPCURL"`
	AuthWebhook               *url.URL           `name:"auth-webhook" optional:"true" secret:"true"`
	AuthWebhookFile           string             `basepath:"source" name:"auth-webhook-file" secretfor:"AuthWebhook"`
	AuthWebhookHeaders        nodeconfig.Headers `name:"auth-webhook-headers" optional:"true" secret:"true"`
	AuthWebhookHeadersFile    string             `basepath:"source" name:"auth-webhook-headers-file" secretfor:"AuthWebhookHeaders"`
	ChainID                   *uint64            `min:"1"`
	Controller                *common.Address    `name:"controller-address"`
	RedeemerTxTimeout         time.Duration      `default:"5m" descr:"Transaction inclusion timeout"`
	RedeemerMaxTxReplacements int                `default:"1" min:"0" descr:"Maximum fee replacements per transaction"`
	RedeemerMaxFeePerGas      *uint256.Int       `descr:"Optional maximum fee in wei per gas"`
	MaxPendingTickets         int                `default:"100000" min:"1" descr:"Maximum unsettled winning tickets"`
	MaxTicketsPerRecipient    int                `default:"10000" min:"1" descr:"Maximum unsettled tickets per recipient"`
	PrintConfig               bool               `optional:"true" boa:"noconfig,noenv" descr:"Print audited redacted TOML configuration"`
}

func (Params) Validate

func (p Params) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL