config

package
v0.0.0-...-4334f35 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Minter MinterConfig
	Cosmos CosmosConfig
}

func Get

func Get() *Config

type CosmosConfig

type CosmosConfig struct {
	Mnemonic string
	GrpcAddr string `mapstructure:"grpc_addr"`
	RpcAddr  string `mapstructure:"rpc_addr"`
}

type MinterConfig

type MinterConfig struct {
	MultisigAddr     string              `mapstructure:"multisig_addr"`
	ChainID          transaction.ChainID `mapstructure:"chain"`
	ApiAddr          string              `mapstructure:"api_addr"`
	PrivateKey       string              `mapstructure:"private_key"`
	StartBlock       uint64              `mapstructure:"start_block"`
	StartEventNonce  uint64              `mapstructure:"start_event_nonce"`
	StartBatchNonce  uint64              `mapstructure:"start_batch_nonce"`
	StartValsetNonce uint64              `mapstructure:"start_valset_nonce"`
}

Jump to

Keyboard shortcuts

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