go-ethereum/ethclient/engineclient/types.go

24 lines
569 B
Go
Raw Normal View History

2024-02-20 17:24:29 -06:00
package engineclient
import (
"github.com/ethereum/go-ethereum/beacon/engine"
)
// APIVersion is a custom type for the engine API version.
type APIVersion int
const (
Phase0 APIVersion = iota
ParisV1
ShanghaiV2
CancunV3
)
// ForkchoiceUpdatedResponse is the response kind received by the
// engine_forkchoiceUpdatedV1 endpoint.
type ForkchoiceUpdatedResponse struct {
Status *engine.PayloadStatusV1 `json:"payloadStatus"`
PayloadId *engine.PayloadID `json:"payloadId"`
ValidationError string `json:"validationError"`
}