wwatcher

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MIWC = MIWCollection{}
)

Functions

func GetWalletsFromConfig

func GetWalletsFromConfig(walletsConfig []string, nodes *node.Nodes) *wallet.Wallets

GetWalletsFromConfig returns a slice of wallets from the configuration file.

func InitWatcher

func InitWatcher()

func LoadMIWs added in v0.0.11

func LoadMIWs()

func WalletShortAddress

func WalletShortAddress(address common.Address) string

Types

type MIWCollection added in v0.0.15

type MIWCollection struct {
	MIWs         collections.AddressCollection
	WeightedMIWs map[common.Address]int
}

type NotificationRecipients

type NotificationRecipients map[common.Address]*User
var Recipients NotificationRecipients = make(map[common.Address]*User)

func (*NotificationRecipients) Contains

func (nr *NotificationRecipients) Contains(address common.Address) bool

Contains returns true if the given string is in the slice.

type User

type User struct {
	Name            string           `mapstructure:"name"`
	WalletAddresses []common.Address `mapstructure:"wallets"`
	TgUsername      string           `mapstructure:"telegram"`
}

User representsa user who can own multiple wallets.

Jump to

Keyboard shortcuts

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