cmd

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func InitTestnet

func InitTestnet(
	clientCtx client.Context,
	cmd *cobra.Command,
	nodeConfig *ostconfig.Config,
	mbm module.BasicManager,
	genBalIterator banktypes.GenesisBalancesIterator,
	outputDir,
	chainID,
	minGasPrices,
	nodeDirPrefix,
	nodeDaemonHome,
	startingIPAddress,
	keyringBackend,
	algoStr string,
	numValidators int,
) error

Initialize the testnet

func NewApp

func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, appOpts servertypes.AppOptions) servertypes.Application

func NewRootCmd

func NewRootCmd() (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command for simd. It is called once in the main function.

Types

type CustomAppConfig

type CustomAppConfig struct {
	serverconfig.Config

	WASM     WASMConfig     `mapstructure:"wasm"`
	TxFilter TxFilterConfig `mapstructure:"tx-filter"`
}

func DefaultCustomAppConfig

func DefaultCustomAppConfig() *CustomAppConfig

type TxFilterConfig

type TxFilterConfig struct {
	AllowedTargets        []string `mapstructure:"allowed-targets"`
	InitialBlockHeight    int64    `mapstructure:"initial-block-height"`
	AllowedContracts      []string `mapstructure:"allowed-contracts"`
	DisableContractFilter bool     `mapstructure:"disable-contract-filter"`
}

TxFilterConfig defines configuration for the TxFilterDecorator.

type WASMConfig

type WASMConfig struct {
	// This is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
	QueryGasLimit uint64 `mapstructure:"query_gas_limit"`

	// Address defines the gRPC-web server to listen on
	LruSize uint64 `mapstructure:"lru_size"`
}

WASMConfig defines configuration for the wasm module.

Jump to

Keyboard shortcuts

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