helpers

package
v0.0.0-...-bd51cc9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMissedBlocks

func CheckMissedBlocks(restApi, validatorConsAddress string) (int64, error)

func GetChatID

func GetChatID(u tgbotapi.Update) int64

GetChatID ...

func GetMsgID

func GetMsgID(u tgbotapi.Update) int

GetMsgID ...

func GetUserID

func GetUserID(u tgbotapi.Update) int

GetUserID ...

func GetUserName

func GetUserName(u tgbotapi.Update) string

GetUserName ...

func SendMessage

func SendMessage(bot *tgbotapi.BotAPI, update tgbotapi.Update, text string,
	mode string, btns ...tgbotapi.InlineKeyboardMarkup)

SendMessage ...

func SendReplyMessage

func SendReplyMessage(bot *tgbotapi.BotAPI, update tgbotapi.Update, text string,
	mode string, btns ...tgbotapi.InlineKeyboardMarkup)

SendMessage ...

Types

type MissedBlocksResponse

type MissedBlocksResponse struct {
	ValSigningInfo ValSigningInfo `json:"val_signing_info"`
}

type ValSigningInfo

type ValSigningInfo struct {
	Address             string    `json:"address"`
	StartHeight         string    `json:"start_height"`
	IndexOffset         string    `json:"index_offset"`
	JailedUntil         time.Time `json:"jailed_until"`
	Tombstoned          bool      `json:"tombstoned"`
	MissedBlocksCounter string    `json:"missed_blocks_counter"`
}

Jump to

Keyboard shortcuts

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