Documentation ¶
Index ¶
- type Configurer
- func New(t *testing.T, isIBCEnabled, isDebugLogEnabled bool, ...) (Configurer, error)
- func NewCurrentBranchConfigurer(t *testing.T, chainConfigs []*chain.Config, setupTests setupFn, ...) Configurer
- func NewUpgradeConfigurer(t *testing.T, chainConfigs []*chain.Config, setupTests setupFn, ...) Configurer
- type CurrentBranchConfigurer
- func (bc *CurrentBranchConfigurer) ClearResources() error
- func (cb *CurrentBranchConfigurer) ConfigureChain(chainConfig *chain.Config) error
- func (cb *CurrentBranchConfigurer) ConfigureChains() error
- func (bc *CurrentBranchConfigurer) GetChainConfig(chainIndex int) *chain.Config
- func (bc *CurrentBranchConfigurer) RunIBC() error
- func (cb *CurrentBranchConfigurer) RunSetup() error
- func (bc *CurrentBranchConfigurer) RunValidators() error
- type UpgradeConfigurer
- func (bc *UpgradeConfigurer) ClearResources() error
- func (uc *UpgradeConfigurer) ConfigureChain(chainConfig *chain.Config) error
- func (uc *UpgradeConfigurer) ConfigureChains() error
- func (uc *UpgradeConfigurer) CreatePreUpgradeState() error
- func (bc *UpgradeConfigurer) GetChainConfig(chainIndex int) *chain.Config
- func (bc *UpgradeConfigurer) RunIBC() error
- func (uc *UpgradeConfigurer) RunSetup() error
- func (uc *UpgradeConfigurer) RunUpgrade() error
- func (bc *UpgradeConfigurer) RunValidators() error
- type UpgradeSettings
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 Percosis 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 Percosis version. - If !isIBCEnabled and !isUpgradeEnabled, we only need one chain at the current Git branch version of the Percosis 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 (*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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.