params

package
v14.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomConfigTempalte

func CustomConfigTempalte() string

func DefaultConfig

func DefaultConfig() (string, interface{})

Types

type CustomAppConfig

type CustomAppConfig struct {
	serverconfig.Config
	WASM WasmConfig `mapstructure:"wasm"`
}

CustomAppConfig defines the configuration for the Nois app.

type EncodingConfig

type EncodingConfig struct {
	InterfaceRegistry types.InterfaceRegistry
	Codec             codec.Codec
	TxConfig          client.TxConfig
	Amino             *codec.LegacyAmino
}

EncodingConfig specifies the concrete encoding types to use for a given app. This is provided for compatibility between protobuf and amino implementations.

func MakeEncodingConfig

func MakeEncodingConfig() EncodingConfig

MakeEncodingConfig creates an EncodingConfig for an amino based test compatible configuration.

type WasmConfig

type WasmConfig struct {
	// SimulationGasLimit is the max gas that can be spent when executing a simulation TX.
	SimulationGasLimit uint64 `mapstructure:"simulation_gas_limit"`
	// QueryGasLimit is the maximum sdk gas (wasm and storage) that we allow for any x/wasm "smart" queries
	QueryGasLimit uint64 `mapstructure:"query_gas_limit"`
	// MemoryCacheSize defines the memory size for Wasm modules that we can keep cached to speed-up instantiation
	// The value is in MiB not bytes
	MemoryCacheSize uint64 `mapstructure:"memory_cache_size"`
}

Jump to

Keyboard shortcuts

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