nimbus

package
v1.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileMode fs.FileMode = 0600
	DirMode  fs.FileMode = 0700
)

Config

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeRecipientManager

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

func NewFeeRecipientManager

func NewFeeRecipientManager(keystore keystore.Keystore) *FeeRecipientManager

Creates a new fee recipient manager

func (*FeeRecipientManager) CheckFeeRecipientFile

func (fm *FeeRecipientManager) CheckFeeRecipientFile(distributor common.Address) (bool, bool, error)

Checks if the fee recipient file exists and has the correct distributor address in it. The first return value is for file existence, the second is for validation of the fee recipient address inside.

func (*FeeRecipientManager) UpdateFeeRecipientFile

func (fm *FeeRecipientManager) UpdateFeeRecipientFile(distributor common.Address) error

Writes the given address to the fee recipient file. The VC should be restarted to pick up the new file.

Jump to

Keyboard shortcuts

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