hestia_req_types

package
v0.3.1-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EthereumMainnetProtocolNetworkID  = 1
	EthereumGoerliProtocolNetworkID   = 5
	EthereumEphemeryProtocolNetworkID = 1673748447294772000
	Goerli                            = "goerli"
	Mainnet                           = "mainnet"
	Ephemery                          = "ephemery"
)

Variables

This section is empty.

Functions

func ProtocolNetworkIDToString

func ProtocolNetworkIDToString(id int) string

func ProtocolNetworkStringToID added in v0.2.2

func ProtocolNetworkStringToID(network string) int

Types

type AuthLamdbaAWS

type AuthLamdbaAWS struct {
	ServiceURL string `json:"serviceURL"`

	SecretName string `json:"secretName"` // this is the name of the secret in the aws secrets manager you use for decrypting your keystores
	// these are the auth credentials you link to an IAM user that can call your aws lambda function to sign messages
	// we use these to call your lambda function to sign messages
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"accessSecret"`
}

type CreateValidatorServiceRequest

type CreateValidatorServiceRequest struct {
	ServiceRequestWrapper         `json:"serviceRequestWrapper"`
	ValidatorServiceOrgGroupSlice `json:"validatorServiceOrgGroupSlice"`
}

func (*CreateValidatorServiceRequest) CreateValidatorServiceRequest

func (vsr *CreateValidatorServiceRequest) CreateValidatorServiceRequest(vsg ValidatorServiceOrgGroupSlice, srw ServiceRequestWrapper)

type ServiceAuthConfig

type ServiceAuthConfig struct {
	*AuthLamdbaAWS `json:"awsAuth"`
}

ServiceAuthConfig note: only use one auth type per service url only AWS lambda support for now

func (*ServiceAuthConfig) Validate

func (a *ServiceAuthConfig) Validate() error

type ServiceRequestWrapper

type ServiceRequestWrapper struct {
	GroupName         string            `json:"groupName"`
	ProtocolNetworkID int               `json:"protocolNetworkID"`
	Enabled           bool              `json:"enabled"`
	ServiceAuth       ServiceAuthConfig `json:"serviceAuth"`
}

type ValidatorServiceOrgGroup

type ValidatorServiceOrgGroup struct {
	Pubkey       string `json:"pubkey"`
	FeeRecipient string `json:"feeRecipient"`
}

type ValidatorServiceOrgGroupSlice

type ValidatorServiceOrgGroupSlice []ValidatorServiceOrgGroup

Jump to

Keyboard shortcuts

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