conf

package
v0.44.0-model Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectorTracer    = "bundlerCollectorTracer"
	ExecutorTracer     = "bundlerExecutorTracer"
	DataDir            = "/tmp/balloondogs_db"
	EntrypointAddrV060 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
	OpLookupLimit      = 2000
	MaxBatchGasLimit   = 12000000
	MaxVerificationGas = 6000000
	MaxTTLSeconds      = 180
)

Variables

View Source
var (
	GitCommitID  string
	ModelVersion string
)

Functions

func GetGitCommitID

func GetGitCommitID() string

GetGitCommitID get commit id.

func GetModelVersion

func GetModelVersion() string

GetModelVersion get model version.

func NewReputationConstantsFromEnv

func NewReputationConstantsFromEnv() *entities.ReputationConstants

func SetLDFlags

func SetLDFlags(commitID, modelVersion string)

SetLDFlags set LD Flags from main.

Types

type Values

type Values struct {
	PrivateKey                   string
	EthClientUrl                 string
	Port                         int
	DataDirectory                string
	SupportedEntryPoints         []common.Address
	Beneficiary                  string
	NativeBundlerCollectorTracer string
	NativeBundlerExecutorTracer  string
	MaxVerificationGas           *big.Int
	MaxBatchGasLimit             *big.Int
	MaxOpTTL                     time.Duration
	OpLookupLimit                uint64
	ReputationConstants          *entities.ReputationConstants
	EthBuilderUrls               []string
	BlocksInTheFuture            int
	StatusTimeout                time.Duration
	AltMempoolIPFSGateway        string
	AltMempoolIds                []string
	IsOpStackNetwork             bool
	IsRIP7212Supported           bool
	DebugMode                    bool
	GinMode                      string
	SolverURL                    string
	// If empty, all addresses will be accepted
	WhiteListedAddresses  []common.Address
	ServiceName           string
	OTELIsEnabled         bool
	OTELCollectorHeaders  map[string]string
	OTELCollectorEndpoint string
	OTELInsecureMode      bool

	SimulationEnabled bool
	SimulationTimeout time.Duration
}

func GetValues

func GetValues() *Values

Jump to

Keyboard shortcuts

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