Documentation
¶
Overview ¶
Package redeemer runs the standalone winning-ticket redemption service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.