ticker_adapter

package
v0.0.0-...-d193908 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	ChainId  string `json:"chainId"`
	BlockNum string `json:"blockNum"`
}

type Ticker

type Ticker struct {
	CLient *ethclient.Client
	Config config.AppConfig
}

func NewTicker

func NewTicker(cfg config.AppConfig) (a *Ticker, err error)

func (*Ticker) GetChainIDAndBlock

func (ap *Ticker) GetChainIDAndBlock() (*Output, error)

func (*Ticker) GetLatestBlock

func (ap *Ticker) GetLatestBlock() (n uint64, err error)

func (*Ticker) Opts

func (ap *Ticker) Opts() *bridges.Opts

func (*Ticker) Run

func (ap *Ticker) Run(helper *bridges.Helper) (interface{}, error)

func (*Ticker) StartChainTicker

func (ap *Ticker) StartChainTicker() (err error)

Jump to

Keyboard shortcuts

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