sniper

package
v0.0.0-...-472bc46 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MEPublicKeyStr = "1BWutmTvYPwDtmw9abTkS4Ssr8no61spGAvW1X6NDix"
	MEPublicKey    = solana.MustPublicKeyFromBase58(MEPublicKeyStr)
)

Functions

This section is empty.

Types

type MagicEdenClient

type MagicEdenClient interface {
	GetFloor(ctx context.Context, symbol string) (float64, error)
	Buy(ctx context.Context, token *models.Token) (string, error)
}

type NotificationService

type NotificationService interface {
	SendNotification(ctx context.Context, action *models.Action)
}

type Option

type Option func(s *Service)

type Service

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

func New

func New(
	meClient MagicEdenClient,
	notificationService NotificationService,
	options ...Option) (*Service, error)

func (*Service) GetTransaction

func (s *Service) GetTransaction(ctx context.Context, signature string)

func (*Service) Run

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

Jump to

Keyboard shortcuts

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