builder

package
v4.0.0-...-b8b0360 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpectedWithdrawal

type ExpectedWithdrawal struct {
	Address        string `json:"address" hex:"true"`
	Amount         string `json:"amount"`
	Index          string `json:"index"`
	ValidatorIndex string `json:"validator_index"`
}

type ExpectedWithdrawalsResponse

type ExpectedWithdrawalsResponse struct {
	Data                []*ExpectedWithdrawal `json:"data"`
	ExecutionOptimistic bool                  `json:"execution_optimistic"`
	Finalized           bool                  `json:"finalized"`
}

type Server

type Server struct {
	FinalizationFetcher   blockchain.FinalizationFetcher
	OptimisticModeFetcher blockchain.OptimisticModeFetcher
	Stater                lookup.Stater
}

func (*Server) ExpectedWithdrawals

func (s *Server) ExpectedWithdrawals(w http.ResponseWriter, r *http.Request)

ExpectedWithdrawals get the withdrawals computed from the specified state, that will be included in the block that gets built on the specified state.

Jump to

Keyboard shortcuts

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