config

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IsDevelopment     bool
	UseTestNetwork    bool
	OnlyCheckReward   bool
	ForceRun          bool
	UserAddress       string
	UserPrivateKey    string
	LineApiKey        string
	GasLimit          uint64
	GasPriceThreshold uint64
	QueryCron         string
	MutationCron      string
	Telegram          *TelegramConfig
	MessagingProvider MessagingProvider
}

func GetConfig

func GetConfig() (Config, error)

func (Config) GetBscNetworkAndChainId

func (c Config) GetBscNetworkAndChainId() (string, int)

type MessagingProvider added in v1.7.0

type MessagingProvider int
const (
	None MessagingProvider = iota
	Line
	Telegram
)

type TelegramConfig added in v1.7.0

type TelegramConfig struct {
	BotToken string
	ChatId   string
}

Jump to

Keyboard shortcuts

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