config

package
v0.2.15-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config provides configuration for GRPC and HTTP api servers

Index

Constants

View Source
const Account1Address = "0x1b3d6d946dea7e3e14756e2f0f9e09b9663f0d9c"

Account1Address is the address from Account1Private.

View Source
const Account1Private = "" /* 130-byte string literal not displayed */

Account1Private is the private key for test account.

View Source
const Account2Address = "0xe77910b4419a4ee0f1d5483d7dd3b5b6b6922ee9"

Account2Address is the address from Account2Address.

View Source
const Account2Private = "" /* 130-byte string literal not displayed */

Account2Private is the private key for secode test account.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StartGrpcServices   []string `mapstructure:"grpc"`
	GrpcServerPort      int      `mapstructure:"grpc-port"`
	GrpcServerInterface string   `mapstructure:"grpc-interface"`
	StartJSONServer     bool     `mapstructure:"json-server"`
	JSONServerPort      int      `mapstructure:"json-port"`
	// no direct command line flags for these
	StartDebugService       bool
	StartGatewayService     bool
	StartGlobalStateService bool
	StartMeshService        bool
	StartNodeService        bool
	StartSmesherService     bool
	StartTransactionService bool
}

Config defines the api config params.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig defines the default configuration options for api.

func DefaultTestConfig

func DefaultTestConfig() Config

DefaultTestConfig returns the default config for tests.

func (*Config) ParseServicesList added in v0.1.15

func (s *Config) ParseServicesList() error

ParseServicesList enables the requested services.

type GenesisConfig

type GenesisConfig struct {
	Accounts map[string]uint64 `mapstructure:"accounts"`
}

GenesisConfig defines accounts that will exist in state at genesis.

func DefaultGenesisConfig

func DefaultGenesisConfig() *GenesisConfig

DefaultGenesisConfig is the default configuration for the node.

func DefaultTestGenesisConfig

func DefaultTestGenesisConfig() *GenesisConfig

DefaultTestGenesisConfig is the default test configuration for the node.

Jump to

Keyboard shortcuts

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