testing

package
v0.0.0-...-5442afc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBondDenom = "utoken"

Variables

View Source
var DefaultConsensusParams = &tmproto.ConsensusParams{
	Block: &tmproto.BlockParams{
		MaxBytes: 200000,
		MaxGas:   10000000,
	},
	Evidence: &tmproto.EvidenceParams{
		MaxAgeNumBlocks: 302400,
		MaxAgeDuration:  504 * time.Hour,
		MaxBytes:        10000,
	},
	Validator: &tmproto.ValidatorParams{
		PubKeyTypes: []string{
			tmtypes.ABCIPubKeyTypeEd25519,
		},
	},
}

Functions

func MakeMockApp

func MakeMockApp(balances []banktypes.Balance) *simapp.SimApp

func MakeMockGenesisState

func MakeMockGenesisState(cdc codec.JSONCodec, balances []banktypes.Balance) simapp.GenesisState

func MakeRandomAddress

func MakeRandomAddress() sdk.AccAddress

func MakeRandomConsensusPubKey

func MakeRandomConsensusPubKey() cryptotypes.PubKey

func MakeRandomPubKey

func MakeRandomPubKey() cryptotypes.PubKey

func MakeSimpleMockApp

func MakeSimpleMockApp() *simapp.SimApp

Types

type EmptyAppOptions

type EmptyAppOptions struct{}

func (EmptyAppOptions) Get

func (opts EmptyAppOptions) Get(_ string) interface{}

Jump to

Keyboard shortcuts

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