giveaway

package
v0.0.0-...-fd10465 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 16 Imported by: 0

README

Type 1: Token Incentive / Giveaway ( Type1 )

conditions

  • User gets this instantly after a bridge transfer
  • balance(address) == 0 and nonce(address) == 0
  • Refunds constant amount in FRA irrespective of the price

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotEligible = errors.New("not eligible with the condition")

Functions

This section is empty.

Types

type Service

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

func New

func New(c client.Client, conf *config.GiveawayService) (*Service, error)

func (*Service) Close

func (s *Service) Close()

Close stops the fork out goroutine from Start method

func (*Service) Start

func (s *Service) Start() error

Start fork out a goroutine to listen to specific event log which is defined in filterQuery field then bypass into the handler

Jump to

Keyboard shortcuts

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