airdrop

package module
v0.0.0-...-9e9d285 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 15 Imported by: 0

README

airdrop

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LikeMintID = solana.MustPublicKeyFromBase58("3bRTivrVsitbmCTGtqwp7hxXPsybkjn4XLNtPsHqa3zR")

Functions

func New

func New(id, dsn string, conn *rpc.Client, mint, sender solana.PublicKey, inputs []Input, opts AirdropOpts) (*service, error)

Types

type AirdropOpts

type AirdropOpts struct {
	Logger   *zap.Logger
	PoolSize int
}

type Input

type Input struct {
	Recipient solana.PublicKey

	Amount uint64 // In lamports
	// contains filtered or unexported fields
}

type Transaction

type Transaction struct {
	ID          string     `gorm:"type:varchar(255);not null;primaryKey"`
	Recipient   string     `gorm:"type:char(44);not null"`
	AirdropID   string     `gorm:"type:varchar(32);not null"`
	Amount      uint64     `gorm:"type:bigint unsigned"`
	IsFinalized bool       `gorm:"type:bool;not null"`
	Error       *string    `gorm:"type:tinytext"`
	SentAt      *time.Time `gorm:"type:timestamp"`
	CreatedAt   time.Time  `gorm:"type:timestamp;not null"`
}

type TransferResult

type TransferResult struct {
	ID          *solana.Signature
	IsFinalized bool
	Error       error
	Input
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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