repository

package
v0.0.0-...-bf51fc3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthBlockItem

type EthBlockItem struct {
	BlockNum int64    `db:"block_num"`
	Txs      []string `db:"txs"`
}

type EthBlocks

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

func NewETHBlocks

func NewETHBlocks(db *pg.DB) EthBlocks

func (EthBlocks) Put

func (r EthBlocks) Put(ctx context.Context, item EthBlockItem) error

func (EthBlocks) PutTxs

func (r EthBlocks) PutTxs(ctx context.Context, txs []TxItem) error

type TxItem

type TxItem struct {
	ID       string `db:"tx_id"`
	BlockNum int64  `db:"block_num"`
	From     string `db:"from_addr"`
	To       string `db:"to_addr"`
	Value    string `db:"value"`
}

Jump to

Keyboard shortcuts

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