config

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Account1Private = "" /* 130-byte string literal not displayed */
View Source
const Account1Pub = "0x7be017a967db77fd10ac7c891b3d6d946dea7e3e14756e2f0f9e09b9663f0d9c"
View Source
const Account2Private = "" /* 130-byte string literal not displayed */
View Source
const Account2Pub = "0x22a31a84ab876f82fcafba86e77910b4419a4ee0f1d5483d7dd3b5b6b6922ee9"

Variables

This section is empty.

Functions

func SaveGenesisConfig

func SaveGenesisConfig(path string, config GenesisConfig) error

Types

type Config

type Config struct {
	StartGrpcServer bool `mapstructure:"grpc-server"`
	GrpcServerPort  int  `mapstructure:"grpc-port"`
	StartJSONServer bool `mapstructure:"json-server"`
	JSONServerPort  int  `mapstructure:"json-port"`
}

Config defines the api config params

func DefaultConfig

func DefaultConfig() Config

DefaultConfig defines the default configuration options for api

type GenesisAccount

type GenesisAccount struct {
	Balance *big.Int `json:"balance" gencodec:"required"`
	Nonce   uint64   `json:"nonce"`
}

type GenesisConfig

type GenesisConfig struct {
	InitialAccounts map[string]GenesisAccount
}

func DefaultGenesisConfig

func DefaultGenesisConfig() *GenesisConfig

func LoadGenesisConfig

func LoadGenesisConfig(path string) (*GenesisConfig, error)

Jump to

Keyboard shortcuts

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