service

package
v0.0.0-...-b513cba Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAddress

func FormatAddress(addr string) string

Types

type Config

type Config struct {
	TelegramBotToken string
	TelegramChatID   int64
	ContractAddress  string
	Token0           Token
	Token1           Token
}

type Service

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

func NewService

func NewService(s *svcn.NatsService, ctx context.Context, cfg Config) *Service

func (Service) ProcessTxLogEventFromStream

func (s Service) ProcessTxLogEventFromStream(data []byte) error

func (Service) Serve

func (s Service) Serve()

type Token

type Token struct {
	Ticker   string
	Decimals *big.Int
}

Jump to

Keyboard shortcuts

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