nano_payouts

package
v0.0.0-...-f960a46 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PayoutsConfig

type PayoutsConfig struct {
	Enabled      bool   `json:"enabled"`
	RequirePeers int64  `json:"requirePeers"`
	Interval     string `json:"interval"`
	Daemon       string `json:"daemon"`
	Timeout      string `json:"timeout"`
	Address      string `json:"address"`
	Gas          string `json:"gas"`
	GasPrice     string `json:"gasPrice"`
	AutoGas      bool   `json:"autoGas"`
	// In Shannon
	Threshold int64 `json:"threshold"`
	BgSave    bool  `json:"bgsave"`
	// Nano Sections
	NanoThreshold    int64  `json:"nanothreshold"`
	HotNanoWallet    string `json:"hotnanowallet"`
	NanoExchange     string `json:"nanoexchange"`
	ExchangeDeposit  string `json:"exchangeethdeposit"`
	ExchangeKey      string `json:"exchangekey"`
	ExchangeSecret   string `json:"exchangesecret"`
	NanoPayout       bool   `json:"nanopayout"`
	NanoWallet       string `json:"nanowallet"`
	DustAccount      string `json:"dustaccount"`
	NanoEnabled      bool   `json:"nanoenabled"`
	NanoFaucet       bool   `json:"nanofaucet"`
	PippinWallet     string `json:"pippinwallet"`
	FaucetNanoWallet string `json:"faucetnanowallet"`
}

func (PayoutsConfig) GasHex

func (c PayoutsConfig) GasHex() string

func (PayoutsConfig) GasPriceHex

func (c PayoutsConfig) GasPriceHex() string

type PayoutsProcessor

type PayoutsProcessor struct {
	// contains filtered or unexported fields
}

func NewPayoutsProcessor

func NewPayoutsProcessor(cfg *PayoutsConfig, backend *storage.RedisClient) *PayoutsProcessor

func (*PayoutsProcessor) Start

func (u *PayoutsProcessor) Start()

Jump to

Keyboard shortcuts

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