database

package
v0.0.0-...-c8bbbf3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Content embed.FS

Functions

This section is empty.

Types

type BuilderBlockDatabase

type BuilderBlockDatabase struct {
	Slot             uint64
	BuilderPubkey    string
	BuilderBidHash   string
	BuilderSignature string
	RPBS             string
	RpbsPublicKey    string
	TransactionByte  string
	BidValue         big.Int
}

func (*BuilderBlockDatabase) Hash

func (builderSubmission *BuilderBlockDatabase) Hash() string

type DatabaseDriver

type DatabaseDriver string

type DatabaseInterface

type DatabaseInterface struct {
	DB     *sql.DB // Function so we have functions on top of it
	Opts   DatabaseOpts
	Driver DatabaseDriver
	Log    logrus.Entry
	URL    string
}

func (*DatabaseInterface) DBMigrate

func (database *DatabaseInterface) DBMigrate() error

func (*DatabaseInterface) NewDatabaseOpts

func (database *DatabaseInterface) NewDatabaseOpts()

type DatabaseOpts

type DatabaseOpts struct {
	MaxConnections        int
	MaxIdleConnections    int
	MaxIdleTimeConnection time.Duration
}

Database Parameters Needed To Setup The Network

type ValidatorDeliveredHeaderDatabase

type ValidatorDeliveredHeaderDatabase struct {
	Slot           uint64
	BlockHash      string
	ProposerPubkey string
	BidValue       uint64
}

type ValidatorDeliveredPayloadDatabase

type ValidatorDeliveredPayloadDatabase struct {
	Slot           uint64
	ProposerPubkey string
	BlockHash      string
	Payload        []byte
}

type ValidatorReturnedBlockDatabase

type ValidatorReturnedBlockDatabase struct {
	Signature      string
	Slot           uint64
	BlockHash      string
	ProposerPubkey string
}

Jump to

Keyboard shortcuts

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