helpers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: LGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

DefaultConsensusParams defines the default CometBFT consensus params used in EverLast testing.

View Source
var DefaultTestingAppInit func(chainId string) func() (ibctesting.TestingApp, map[string]json.RawMessage) = SetupTestingApp

DefaultTestingAppInit defines the IBC application used for testing

Functions

func EthSetup

func EthSetup(isCheckTx bool, patchGenesis func(*chainapp.EverLast, chainapp.GenesisState) chainapp.GenesisState) *chainapp.EverLast

EthSetup initializes a new EverLast app. A Nop logger is set in EverLast app.

func EthSetupWithDB

func EthSetupWithDB(isCheckTx bool, patchGenesis func(*chainapp.EverLast, chainapp.GenesisState) chainapp.GenesisState, db sdkdb.DB) *chainapp.EverLast

EthSetupWithDB initializes a new EverLast app. A Nop logger is set in EverLast app.

func GenesisStateWithValSet

func GenesisStateWithValSet(chainApp *chainapp.EverLast, genesisState chainapp.GenesisState,
	valSet *cmttypes.ValidatorSet, genAccs []authtypes.GenesisAccount,
	balances ...banktypes.Balance,
) chainapp.GenesisState

func NewTestGenesisState

func NewTestGenesisState(codec codec.Codec) chainapp.GenesisState

NewTestGenesisState generate genesis state with single validator

func Setup

func Setup(
	isCheckTx bool,
	feemarketGenesis *feemarkettypes.GenesisState,
	chainID string,
) *chainapp.EverLast

Setup initializes a new EverLast. A Nop logger is set in EverLast.

func SetupTestingApp

func SetupTestingApp(chainID string) func() (ibctesting.TestingApp, map[string]json.RawMessage)

SetupTestingApp initializes the IBC-go testing application

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳