transfer

package
v0.0.0-...-31acdf0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	TransactionHash string
	Destination     common.Address
	BlockTime       time.Time
	Amount          *big.Int
	Decimals        int64
}

Details contain transfer details to send to issuer

type ERC20Transfer

type ERC20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log
}

type Opts

type Opts struct {
	AssetDetails watchlist.Details
	Log          *logan.Entry
	Client       ethclient.Client
	Config       config.EthereumConfig
}

Opts contain parameters to create service with

type Service

type Service struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Service respresents transfer listener service

func New

func New(opts Opts) *Service

New creates new transfer listener service

func (*Service) GetCh

func (s *Service) GetCh() <-chan Details

func (*Service) Run

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

Run starts service

Jump to

Keyboard shortcuts

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