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 GenesisConfig ¶
type GenesisConfig struct {
InitialAccounts map[string]GenesisAccount
}
func DefaultGenesisConfig ¶
func DefaultGenesisConfig() *GenesisConfig
func LoadGenesisConfig ¶
func LoadGenesisConfig(path string) (*GenesisConfig, error)
Click to show internal directories.
Click to hide internal directories.