apimiddleware

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteFeeRecipientByPubkeyRequestJson

type DeleteFeeRecipientByPubkeyRequestJson struct {
	Pubkey string `json:"pubkey" hex:"true"`
}

type DeleteGasLimitRequestJson

type DeleteGasLimitRequestJson struct {
	Pubkey string `json:"pubkey" hex:"true"`
}

type DeleteKeystoresRequestJson

type DeleteKeystoresRequestJson struct {
	PublicKeys []string `json:"pubkeys" hex:"true"`
}

type DeleteKeystoresResponseJson

type DeleteKeystoresResponseJson struct {
	Statuses           []*StatusJson `json:"data"`
	SlashingProtection string        `json:"slashing_protection"`
}

type DeleteRemoteKeysRequestJson

type DeleteRemoteKeysRequestJson struct {
	PublicKeys []string `json:"pubkeys" hex:"true"`
}

type DeleteRemoteKeysResponseJson

type DeleteRemoteKeysResponseJson struct {
	Statuses []*StatusJson `json:"data"`
}

type FeeRecipientJson

type FeeRecipientJson struct {
	Pubkey     string `json:"pubkey" hex:"true"`
	Ethaddress string `json:"ethaddress" address:"true"`
}

type GasLimitJson

type GasLimitJson struct {
	Pubkey   string `json:"pubkey" hex:"true"`
	GasLimit string `json:"gas_limit"`
}

type GetFeeRecipientByPubkeyResponseJson

type GetFeeRecipientByPubkeyResponseJson struct {
	Data *FeeRecipientJson `json:"data"`
}

type GetGasLimitResponseJson

type GetGasLimitResponseJson struct {
	Data *GasLimitJson `json:"data"`
}

type ImportKeystoresRequestJson

type ImportKeystoresRequestJson struct {
	Keystores          []string `json:"keystores"`
	Passwords          []string `json:"passwords"`
	SlashingProtection string   `json:"slashing_protection"`
}

type ImportKeystoresResponseJson

type ImportKeystoresResponseJson struct {
	Statuses []*StatusJson `json:"data"`
}

type ImportRemoteKeysRequestJson

type ImportRemoteKeysRequestJson struct {
	Keystores []*RemoteKeysJson `json:"remote_keys"`
}

type ImportRemoteKeysResponseJson

type ImportRemoteKeysResponseJson struct {
	Statuses []*StatusJson `json:"data"`
}

type KeystoreJson

type KeystoreJson struct {
	ValidatingPubkey string `json:"validating_pubkey" hex:"true"`
	DerivationPath   string `json:"derivation_path"`
}

type ListKeystoresResponseJson

type ListKeystoresResponseJson struct {
	Keystores []*KeystoreJson `json:"data"`
}

type ListRemoteKeysResponseJson

type ListRemoteKeysResponseJson struct {
	Keystores []*RemoteKeysListJson `json:"data"`
}

type RemoteKeysJson

type RemoteKeysJson struct {
	Pubkey   string `json:"pubkey" hex:"true"`
	Url      string `json:"url"`
	Readonly bool   `json:"readonly"`
}

type RemoteKeysListJson

type RemoteKeysListJson struct {
	Pubkey   string `json:"pubkey" hex:"true"`
	Url      string `json:"url"`
	Readonly bool   `json:"readonly"`
}

type SetFeeRecipientByPubkeyRequestJson

type SetFeeRecipientByPubkeyRequestJson struct {
	Ethaddress string `json:"ethaddress" hex:"true"`
}

type SetGasLimitRequestJson

type SetGasLimitRequestJson struct {
	GasLimit string `json:"gas_limit"`
}

type SetVoluntaryExitRequestJson

type SetVoluntaryExitRequestJson struct {
	Pubkey string `json:"pubkey" hex:"true"`
	Epoch  string `json:"epoch"`
}

type SetVoluntaryExitResponseJson

type SetVoluntaryExitResponseJson struct {
	SignedVoluntaryExit *SignedVoluntaryExitJson `json:"data"`
}

type SignedVoluntaryExitJson

type SignedVoluntaryExitJson struct {
	VoluntaryExit *VoluntaryExitJson `json:"message"`
	Signature     string             `json:"signature" hex:"true"`
}

type StatusJson

type StatusJson struct {
	Status  string `json:"status" enum:"true"`
	Message string `json:"message"`
}

type ValidatorEndpointFactory

type ValidatorEndpointFactory struct {
}

ValidatorEndpointFactory creates endpoints used for running validator API calls through the API Middleware.

func (*ValidatorEndpointFactory) Create

Create returns a new endpoint for the provided API path.

func (*ValidatorEndpointFactory) IsNil

func (f *ValidatorEndpointFactory) IsNil() bool

func (*ValidatorEndpointFactory) Paths

func (*ValidatorEndpointFactory) Paths() []string

Paths is a collection of all valid validator API paths.

type VoluntaryExitJson

type VoluntaryExitJson struct {
	Epoch          string `json:"epoch"`
	ValidatorIndex string `json:"validator_index"`
}

Jump to

Keyboard shortcuts

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