ethereum_web3signer_actions

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Web3SignerType = "web3signer"

Variables

View Source
var Web3SignerPorts = []string{"9000:9000"}

Functions

This section is empty.

Types

type DeleteRemoteKeysResp

type DeleteRemoteKeysResp struct {
	Pubkeys []string `json:"pubkeys"`
}

type GetKeystoresResp

type GetKeystoresResp struct {
	Data []struct {
		ValidatingPubkey string `json:"validating_pubkey"`
		DerivationPath   string `json:"derivation_path"`
		Readonly         bool   `json:"readonly"`
	} `json:"data"`
}

type GetRemoteKeys

type GetRemoteKeys struct {
	Data []struct {
		Pubkey   string `json:"pubkey"`
		Url      string `json:"url"`
		Readonly bool   `json:"readonly"`
	} `json:"data"`
}

type KeystoreImportResp

type KeystoreImportResp struct {
	Data []struct {
		Status  string `json:"status"`
		Message string `json:"message"`
	} `json:"data"`
}

type LighthouseWeb3SignerRequest

type LighthouseWeb3SignerRequest struct {
	Type                  string `json:"type" yaml:"type"`
	Enabled               bool   `json:"enabled" yaml:"enable"`
	Description           string `json:"description" yaml:"description"`
	SuggestedFeeRecipient string `json:"suggested_fee_recipient" yaml:"suggested_fee_recipient"`
	VotingPublicKey       string `json:"voting_public_key" yaml:"voting_public_key"`
	Graffiti              string `json:"graffiti,omitempty" yaml:"graffiti,omitempty"`
	Url                   string `json:"url,omitempty" yaml:"url,omitempty"`
	RootCertificatePath   string `json:"root_certificate_path,omitempty" yaml:"root_certificate_path,omitempty"`
	RequestTimeoutMs      int    `json:"request_timeout_ms,omitempty" yaml:"request_timeout_ms,omitempty"`
}

LighthouseWeb3SignerRequest uses 0x prefixed addresses

type LighthouseWeb3SignerRequests

type LighthouseWeb3SignerRequests struct {
	Enabled       bool
	Web3SignerURL string
	FeeAddr       string
	Slice         []LighthouseWeb3SignerRequest
}

func (*LighthouseWeb3SignerRequests) ReadDepositParamsAndExtractToEnableKeysOnWeb3Signer

func (l *LighthouseWeb3SignerRequests) ReadDepositParamsAndExtractToEnableKeysOnWeb3Signer(ctx context.Context, dpSlice signing_automation_ethereum.ValidatorDepositSlice)

func (*LighthouseWeb3SignerRequests) WriteYamlConfig

func (l *LighthouseWeb3SignerRequests) WriteYamlConfig(p filepaths.Path) error

type PostRemoteKeys

type PostRemoteKeys struct {
	RemoteKeys []struct {
		Pubkey string `json:"pubkey"`
		Url    string `json:"url"`
	} `json:"remote_keys"`
}

type Pubkeys

type Pubkeys []string

type Web3SignerActionsClient

type Web3SignerActionsClient struct {
	zeus_client.ZeusClient
}

func (*Web3SignerActionsClient) EnableWeb3SignerLighthouse

func (*Web3SignerActionsClient) GetKeystores

func (*Web3SignerActionsClient) GetLighthouseAuth

func (*Web3SignerActionsClient) GetLighthouseRemoteKeystores

func (*Web3SignerActionsClient) ImportKeystores

type Web3SignerKeystores

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

func (*Web3SignerKeystores) ReadKeystoreAndAppend

func (k *Web3SignerKeystores) ReadKeystoreAndAppend(fp string) error

func (*Web3SignerKeystores) ReadKeystoreDirAndAppendPw

func (k *Web3SignerKeystores) ReadKeystoreDirAndAppendPw(ctx context.Context, p filepaths.Path, pw string)

Jump to

Keyboard shortcuts

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