Documentation ¶
Index ¶
- func CalculatePersonPower(client_bc *ethclient.Client, auth *bind.TransactOpts, ...) (*big.Int, error)
- func GetAddressByTgID(passportSession *passport.PassportSession, tg_id int64) (common.Address, error)
- func StartPoll(chatId int64, durationInHours int64, topic string) tgbotapi.SendPollConfig
- func VoteInProgress(update tgbotapi.Update, client_bc *ethclient.Client, auth *bind.TransactOpts, ...) (bool, bool)
- type ActiveVote
- type Voter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculatePersonPower ¶
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
}
Click to show internal directories.
Click to hide internal directories.