models

package
v0.0.0-...-ab1caf9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockGap

type BlockGap struct {
	FirstMissing int64
	LastMissing  int64
}

type BlockchainGaps

type BlockchainGaps struct {
	Gaps []BlockGap
}

type BlockchainIndexError

type BlockchainIndexError struct {
	Timestamp    time.Time
	BlockNumbers string
	Error        string
	Source       string
}

type BlockchainIndexProgress

type BlockchainIndexProgress struct {
	BlockchainName          string
	EVMStack                string
	LastIngestedBlockNumber int64
	LatestBlockNumber       int64
	Errors                  []BlockchainIndexError
	DuneErrorCounts         int
	RPCErrorCounts          int
	Since                   time.Time
}

type EVMStack

type EVMStack string
const (
	OpStack       EVMStack = "opstack"
	ArbitrumNitro EVMStack = "arbitrum-nitro"
)

func (EVMStack) String

func (e EVMStack) String() string

type RPCBlock

type RPCBlock struct {
	BlockNumber int64
	// agnostic blob of data that is the block
	Payload []byte
	// optional field, if we fail to collect the block data
	Error error
}

func (RPCBlock) Errored

func (b RPCBlock) Errored() bool

Jump to

Keyboard shortcuts

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