ethsigner

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendConfig

type BackendConfig struct {
	ChainID *int64 `yaml:"chainId,omitempty"`
	URL     string `yaml:"url,omitempty"`
}

type Config

type Config struct {
	Server     ServerConfig     `yaml:"server"`
	Backend    BackendConfig    `yaml:"backend"`
	FileWallet FileWalletConfig `yaml:"fileWallet"`
	Log        LogConfig        `yaml:"log"`
}

func GenerateSignerConfig

func GenerateSignerConfig(chainID int64, rpcURL string) *Config

func (*Config) WriteConfig

func (e *Config) WriteConfig(filename string) error

type EthSignerProvider

type EthSignerProvider struct {
	// contains filtered or unexported fields
}

func NewEthSignerProvider added in v1.1.0

func NewEthSignerProvider(ctx context.Context, stack *types.Stack) *EthSignerProvider

func (*EthSignerProvider) CreateAccount

func (p *EthSignerProvider) CreateAccount(args []string) (interface{}, error)

func (*EthSignerProvider) FirstTimeSetup

func (p *EthSignerProvider) FirstTimeSetup() error

func (*EthSignerProvider) GetDockerServiceDefinition

func (p *EthSignerProvider) GetDockerServiceDefinition(rpcURL string) *docker.ServiceDefinition

func (*EthSignerProvider) WriteConfig

func (p *EthSignerProvider) WriteConfig(options *types.InitOptions, rpcURL string) error

type FileWalletConfig

type FileWalletConfig struct {
	Path                string                     `yaml:"path,omitempty"`
	DefaultPasswordFile string                     `yaml:"defaultPasswordFile,omitempty"`
	Filenames           *FileWalletFilenamesConfig `yaml:"filenames,omitempty"`
	Metadata            *FileWalletMetadataConfig  `yaml:"metadata,omitempty"`
}

type FileWalletFilenamesConfig

type FileWalletFilenamesConfig struct {
	With0xPrefix bool   `yaml:"with0xPrefix,omitempty"`
	PrimaryExt   string `yaml:"primaryExt,omitempty"`
	PasswordExt  string `yaml:"passwordExt,omitempty"`
}

type FileWalletMetadataConfig

type FileWalletMetadataConfig struct {
	Format               string `yaml:"format,omitempty"`
	KeyFileProperty      string `yaml:"keyFileProperty,omitempty"`
	PasswordFileProperty string `yaml:"passwordFileProperty,omitempty"`
}

type LogConfig

type LogConfig struct {
	Level string `yaml:"level,omitempty"`
}

type ServerConfig

type ServerConfig struct {
	Port    int    `yaml:"port,omitempty"`
	Address string `yaml:"address,omitempty"`
}

Jump to

Keyboard shortcuts

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