voter

package
v0.0.0-...-ea7af3d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculatePersonPower

func CalculatePersonPower(client_bc *ethclient.Client, auth *bind.TransactOpts, token_address common.Address, passportSession *passport.PassportSession, token_type uint8, tgid int64) (*big.Int, error)

func GetAddressByTgID

func GetAddressByTgID(passportSession *passport.PassportSession, tg_id int64) (common.Address, error)

Getter for user wallet

func StartPoll

func StartPoll(chatId int64, durationInHours int64, topic string) tgbotapi.SendPollConfig

func VoteInProgress

func VoteInProgress(update tgbotapi.Update, client_bc *ethclient.Client, auth *bind.TransactOpts, token_address common.Address, passportSession *passport.PassportSession, token_type uint8) (bool, bool)

this function manages incoming votes in polls and returns 2 bool values so we keep using it until finished variable == true

Types

type ActiveVote

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

type Voter

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

Jump to

Keyboard shortcuts

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