cmd

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Overview

Package cmd contains the cobra command line setup

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev" // is set during build process

)

Functions

func BeginningOfDay added in v1.3.0

func BeginningOfDay(t time.Time) time.Time

func Execute

func Execute()

Types

type BlockInspector

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

func NewBlockInspector

func NewBlockInspector(ethNode *EthNode, mevGeth *flashbotsrpc.FlashbotsRPC, db *database.DatabaseService) *BlockInspector

type EthNode

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

func NewEthNode

func NewEthNode(uris ...string) (*EthNode, error)

func (*EthNode) BlockByHash

func (n *EthNode) BlockByHash(blockHash string) (block *types.Block, err error)

func (*EthNode) BlockByNumber

func (n *EthNode) BlockByNumber(blockNumber int64) (block *types.Block, err error)

func (*EthNode) GetBalanceDiff

func (n *EthNode) GetBalanceDiff(address string, blockNumber int64) (diff *big.Int, err error)

Jump to

Keyboard shortcuts

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