cron

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract added in v0.3.2

type Contract struct {
	Code    *cell.Cell
	Version int
}

type DB

type DB interface {
	ListCronContracts() ([]db.CronContract, error)
	SetCronContract(crn db.CronContract) error
	DeleteCronContract(addr string) error
	GetCronScannerLT() (uint64, error)
	SetCronScannerLT(lt uint64) error
	GetCronWalletScannerLT() (uint64, error)
	SetCronWalletScannerLT(lt uint64) error
}

type NextTrigger

type NextTrigger struct {
	Next    *NextTrigger
	Addr    *address.Address
	Reward  tlb.Coins
	At      int64
	Version int
}

type Service

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

func NewService

func NewService(db DB, wallet *address.Address, api ton.APIClientWrapped, minReward *big.Int) *Service

func (*Service) AddTrigger

func (s *Service) AddTrigger(c db.CronContract, toDB bool) error

func (*Service) StartScanner

func (s *Service) StartScanner(ctx context.Context) error

func (*Service) StartSender

func (s *Service) StartSender(ctx context.Context) error

func (*Service) StartVerifier

func (s *Service) StartVerifier(ctx context.Context) error

func (*Service) StartWalletScanner added in v0.3.4

func (s *Service) StartWalletScanner(ctx context.Context) error

Jump to

Keyboard shortcuts

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