Packages
services
Faucet

faucet

import "command-line-arguments"

Index

Constants

FaucetStoreDir is the directory name for where the faucet store is stored.

const FaucetStoreDir string = "store"

FaucetStoreFilename is the name for the faucet store binary.

const FaucetStoreFilename string = "./store/FaucetStore"

func ExtractSignatureFromTweet (opens in a new tab)

func ExtractSignatureFromTweet(tweet twitter.Tweet) (string, error)

func FindEmojiPosition (opens in a new tab)

func FindEmojiPosition(tweetText string) (int, error)

func GetAddressForUsername (opens in a new tab)

func GetAddressForUsername(username string) string

func GetStore (opens in a new tab)

func GetStore() *pb.FaucetStore

func GetTimestampForDrip (opens in a new tab)

func GetTimestampForDrip(address string) int64

func GetTotalDripCount (opens in a new tab)

func GetTotalDripCount() float64

func GetUsernameForAddress (opens in a new tab)

func GetUsernameForAddress(address string) string

func IncrementTotalDripCount (opens in a new tab)

func IncrementTotalDripCount(dripConfig *DripConfig)

func IsLinked (opens in a new tab)

func IsLinked(linked string, requested string) bool

func LinkAddressAndUsername (opens in a new tab)

func LinkAddressAndUsername(address string, username string)

func ReplenishFaucetWorker (opens in a new tab)

func ReplenishFaucetWorker(ticker *time.Ticker, quit chan struct{})

func ResetTotalDripCount (opens in a new tab)

func ResetTotalDripCount()

func SetAddressForUsername (opens in a new tab)

func SetAddressForUsername(address string, username string, store *pb.FaucetStore)

func SetTimestampForDrip (opens in a new tab)

func SetTimestampForDrip(address string, timestamp int64, store *pb.FaucetStore)

func SetTotalDripCount (opens in a new tab)

func SetTotalDripCount(dripCount float64, store *pb.FaucetStore)

func SetUsernameForAddress (opens in a new tab)

func SetUsernameForAddress(username string, address string, store *pb.FaucetStore)

func SetupStore (opens in a new tab)

func SetupStore()

func TimeDiff (opens in a new tab)

func TimeDiff(earlierTime time.Time, laterTime time.Time) time.Duration

func TwitterUsernameQuery (opens in a new tab)

func TwitterUsernameQuery(username string) string

func UpdateDripRequestTimestamp (opens in a new tab)

func UpdateDripRequestTimestamp(address string)

func VerifyDripRequest (opens in a new tab)

func VerifyDripRequest(tweets []twitter.Tweet, username string, address string, numLatestTweets int) error

func VerifyDripRequestTweet (opens in a new tab)

func VerifyDripRequestTweet(tweet twitter.Tweet, username string, address string) error

type DripConfig (opens in a new tab)

type DripConfig struct {
    DripAmount    float64
    DripFrequency float64
    DripLimit     float64
    DevMode       bool
    TwitterMode   bool
 
    // Miscellaneous.
    NumLatestTweetsForVerify int
    NameSystemAddress        string
}

Generated by gomarkdoc (opens in a new tab)