Documentation
¶
Index ¶
- func BankGenesisState(cdc codec.Codec, genesisState app.GenesisState) app.GenesisState
- func DefaultNetworkConfig(encCfg app.EncodingConfig, opts ...func(config *network.Config)) network.Config
- func GovGenesisState(cdc codec.Codec, genesisState app.GenesisState, votingPeriod time.Duration) app.GenesisState
- func IbcGenesisState(cdc codec.Codec, genesisState app.GenesisState) app.GenesisState
- func MakeTestTxConfig() client.TxConfig
- func NoSupplyGenesisState(cdc codec.Codec) app.GenesisState
- func SlashingGenesisState(cdc codec.Codec, genesisState app.GenesisState, signedBlocksWindow int64, ...) app.GenesisState
- type TestBuilderTxConfig
- type TestContext
- type TestEncodingConfig
- type TestTxBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BankGenesisState ¶
func BankGenesisState(cdc codec.Codec, genesisState app.GenesisState) app.GenesisState
func DefaultNetworkConfig ¶
func DefaultNetworkConfig(encCfg app.EncodingConfig, opts ...func(config *network.Config)) network.Config
DefaultNetworkConfig returns a sane default configuration suitable for nearly all testing requirements.
func GovGenesisState ¶
func GovGenesisState(cdc codec.Codec, genesisState app.GenesisState, votingPeriod time.Duration) app.GenesisState
func IbcGenesisState ¶
func IbcGenesisState(cdc codec.Codec, genesisState app.GenesisState) app.GenesisState
func MakeTestTxConfig ¶
func NoSupplyGenesisState ¶
func NoSupplyGenesisState(cdc codec.Codec) app.GenesisState
func SlashingGenesisState ¶
Types ¶
type TestBuilderTxConfig ¶
type TestBuilderTxConfig struct { client.TxConfig TxBuilder *TestTxBuilder }
func MakeBuilderTestTxConfig ¶
func MakeBuilderTestTxConfig() TestBuilderTxConfig
func (TestBuilderTxConfig) NewTxBuilder ¶
func (cfg TestBuilderTxConfig) NewTxBuilder() client.TxBuilder
type TestContext ¶
func DefaultContextWithDB ¶
func DefaultContextWithDB(t *testing.T, key storetypes.StoreKey, tkey storetypes.StoreKey) TestContext
type TestEncodingConfig ¶
type TestEncodingConfig struct { InterfaceRegistry types.InterfaceRegistry Codec codec.Codec TxConfig client.TxConfig Amino *codec.LegacyAmino }
TestEncodingConfig defines an encoding configuration that is used for testing purposes. Note, MakeTestEncodingConfig takes a series of AppModuleBasic types which should only contain the relevant module being tested and any potential dependencies.
func MakeTestEncodingConfig ¶
func MakeTestEncodingConfig(modules ...module.AppModuleBasic) TestEncodingConfig
type TestTxBuilder ¶
func (*TestTxBuilder) SetExtensionOptions ¶
func (b *TestTxBuilder) SetExtensionOptions(extOpts ...*types.Any)
Directories
¶
Path | Synopsis |
---|---|
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators.
|
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators. |
Click to show internal directories.
Click to hide internal directories.