Documentation ¶
Index ¶
- Variables
- func DefaultConfig() testutilcli.Config
- func DefaultFeeString(denom string) string
- func FillWalletFromValidator(addr sdk.AccAddress, balance sdk.Coins, val *testutilcli.Validator, ...) (sdk.AccAddress, error)
- func NewAppConstructor() testutilcli.AppConstructor
- func NewNibiruApp(shouldUseDefaultGenesis bool) (*app.NibiruApp, sdk.Context)
- func NewTestApp(shouldUseDefaultGenesis bool) *app.NibiruApp
- func ParseSdkIntFromString(s string, separator string) ([]sdk.Int, error)
- func ParseUint64SliceFromString(s string, separator string) ([]uint64, error)
- func RequireEqualWithMessage(t require.TestingT, expected interface{}, actual interface{}, varName string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConsensusParams = &abci.ConsensusParams{ Block: &abci.BlockParams{ MaxBytes: 200000, MaxGas: 2000000, }, Evidence: &tmproto.EvidenceParams{ MaxAgeNumBlocks: 302400, MaxAgeDuration: 504 * time.Hour, MaxBytes: 10000, }, Validator: &tmproto.ValidatorParams{ PubKeyTypes: []string{ tmtypes.ABCIPubKeyTypeEd25519, }, }, }
Functions ¶
func DefaultConfig ¶
func DefaultConfig() testutilcli.Config
DefaultConfig returns a default configuration suitable for nearly all testing requirements.
func DefaultFeeString ¶
func FillWalletFromValidator ¶ added in v0.4.2
func FillWalletFromValidator( addr sdk.AccAddress, balance sdk.Coins, val *testutilcli.Validator, feesDenom string, ) (sdk.AccAddress, error)
FillWalletFromValidator fills the wallet with some coins that come from the validator. Used for cli tests.
func NewAppConstructor ¶
func NewAppConstructor() testutilcli.AppConstructor
func NewNibiruApp ¶
NewNibiruApp creates an 'app.NibiruApp' instance with an in-memory
'tmdb.MemDB' and fresh 'sdk.Context'.
func NewTestApp ¶ added in v0.1.0
New creates application instance with in-memory database and disabled logging.
func ParseSdkIntFromString ¶
func RequireEqualWithMessage ¶
Types ¶
This section is empty.
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. |
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Package nullify provides methods to init nil values structs for test assertion.
|
Package nullify provides methods to init nil values structs for test assertion. |
Click to show internal directories.
Click to hide internal directories.