eth

package
v0.0.0-...-e54d674 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*ethclient.Client
	// contains filtered or unexported fields
}

func NewClinet

func NewClinet(uri string) *Client

func (*Client) GetEthereumTxs

func (c *Client) GetEthereumTxs() error

func (*Client) GetMempoolTxs

func (c *Client) GetMempoolTxs(tokenAddr eth_common.Address, tokenName string, tokenDecimals int) []common.Transaction

func (*Client) GetTxs

func (c *Client) GetTxs(contractAddr eth_common.Address, blocks int64, tokenName string, decimals int) []common.Transaction

func (*Client) SyncLatestBlocks

func (c *Client) SyncLatestBlocks() error

type Keeper

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

func NewKeeper

func NewKeeper(url string, isTestnet bool) *Keeper

func (*Keeper) BroadcastTx

func (k *Keeper) BroadcastTx(w rest.ResponseWriter, r *rest.Request)

func (*Keeper) GetTxs

func (k *Keeper) GetTxs(w rest.ResponseWriter, r *rest.Request)

func (*Keeper) SetToken

func (k *Keeper) SetToken(token string, tokenName string, decimlas int)

func (*Keeper) Start

func (k *Keeper) Start()

func (*Keeper) Stop

func (k *Keeper) Stop()

func (*Keeper) UpdateTxs

func (k *Keeper) UpdateTxs()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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