configurer

package
v27.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurer

type Configurer interface {
	ConfigureChains() error

	ClearResources() error

	GetChainConfig(chainIndex int) *chain.Config

	RunSetup() error

	RunValidators() error

	RunIBC() error
}

func New

func New(t *testing.T, isIBCEnabled, isDebugLogEnabled bool, upgradeSettings UpgradeSettings) (Configurer, error)

New returns a new Configurer depending on the values of its parameters. - If only isIBCEnabled, we want to have 2 chains initialized at the current Git branch version of Osmosis codebase. - If only isUpgradeEnabled, that is invalid and an error is returned. - If both isIBCEnabled and isUpgradeEnabled, we want 2 chains with IBC initialized at the previous Osmosis version. - If !isIBCEnabled and !isUpgradeEnabled, we only need one chain at the current Git branch version of the Osmosis code.

func NewCurrentBranchConfigurer

func NewCurrentBranchConfigurer(t *testing.T, chainConfigs []*chain.Config, setupTests setupFn, containerManager *containers.Manager) Configurer

func NewUpgradeConfigurer

func NewUpgradeConfigurer(t *testing.T, chainConfigs []*chain.Config, setupTests setupFn, containerManager *containers.Manager, upgradeVersion string, forkHeight int64) Configurer

type CurrentBranchConfigurer

type CurrentBranchConfigurer struct {
	// contains filtered or unexported fields
}

func (*CurrentBranchConfigurer) ClearResources

func (bc *CurrentBranchConfigurer) ClearResources() error

func (*CurrentBranchConfigurer) ConfigureChain

func (cb *CurrentBranchConfigurer) ConfigureChain(chainConfig *chain.Config) error

func (*CurrentBranchConfigurer) ConfigureChains

func (cb *CurrentBranchConfigurer) ConfigureChains() error

func (*CurrentBranchConfigurer) GetChainConfig

func (bc *CurrentBranchConfigurer) GetChainConfig(chainIndex int) *chain.Config

func (*CurrentBranchConfigurer) RunIBC

func (bc *CurrentBranchConfigurer) RunIBC() error

func (*CurrentBranchConfigurer) RunSetup

func (cb *CurrentBranchConfigurer) RunSetup() error

func (*CurrentBranchConfigurer) RunValidators

func (bc *CurrentBranchConfigurer) RunValidators() error

type UpgradeConfigurer

type UpgradeConfigurer struct {
	// contains filtered or unexported fields
}

func (*UpgradeConfigurer) ClearResources

func (bc *UpgradeConfigurer) ClearResources() error

func (*UpgradeConfigurer) ConfigureChain

func (uc *UpgradeConfigurer) ConfigureChain(chainConfig *chain.Config) error

func (*UpgradeConfigurer) ConfigureChains

func (uc *UpgradeConfigurer) ConfigureChains() error

func (*UpgradeConfigurer) CreatePreUpgradeState

func (uc *UpgradeConfigurer) CreatePreUpgradeState() error

func (*UpgradeConfigurer) GetChainConfig

func (bc *UpgradeConfigurer) GetChainConfig(chainIndex int) *chain.Config

func (*UpgradeConfigurer) RunIBC

func (bc *UpgradeConfigurer) RunIBC() error

func (*UpgradeConfigurer) RunSetup

func (uc *UpgradeConfigurer) RunSetup() error

func (*UpgradeConfigurer) RunUpgrade

func (uc *UpgradeConfigurer) RunUpgrade() error

func (*UpgradeConfigurer) RunValidators

func (bc *UpgradeConfigurer) RunValidators() error

type UpgradeSettings

type UpgradeSettings struct {
	IsEnabled  bool
	Version    string
	ForkHeight int64 // non-zero height implies that this is a fork upgrade.
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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