Documentation ¶
Index ¶
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *ostconfig.Config, ...) error
- func NewApp(logger log.Logger, db dbm.DB, traceStore io.Writer, ...) servertypes.Application
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- type CustomAppConfig
- type TxFilterConfig
- type WASMConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGenesisAccountCmd ¶
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.
Click to show internal directories.
Click to hide internal directories.