Documentation ¶
Overview ¶
Package testutil provides utilities for testing the sin-executor.
Index ¶
- Constants
- Variables
- type DeployManager
- func (d *DeployManager) GetExecutionService(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, ...)
- func (d *DeployManager) GetInterchainAppMock(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, ...)
- func (d *DeployManager) GetInterchainClient(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, ...)
- func (d *DeployManager) GetInterchainDB(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, handle *interchaindb.InterchainDBRef)
- func (d *DeployManager) GetInterchainModuleMock(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, ...)
- func (d *DeployManager) GetOptionsLib(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, ...)
Constants ¶
const ( // InterchainClient is the interchain execution client. InterchainClient contractTypeImpl = iota + 1 // InterchainClient // InterchainDB is the interchain database. InterchainDB // InterchainDB // InterchainModuleMock is the interchain module mock. InterchainModuleMock // InterchainModuleMock // InterchainApp is the interchain app mock. InterchainApp // InterchainApp // OptionsLib is the options library. OptionsLib // OptionsLib // ExecutionService is the execution service mock. ExecutionService // ExecutionService // GasOracleMock is the gas oracle mock. GasOracleMock // GasOracleMock )
Variables ¶
var AllContractTypes []contractTypeImpl
AllContractTypes is a list of all contract types. Since we use stringer and this is a testing library, instead of manually copying all these out we pull the names out of stringer. In order to make sure stringer is updated, we panic on any method called where the index is higher than the stringer array length.
Functions ¶
This section is empty.
Types ¶
type DeployManager ¶
type DeployManager struct {
*manager.DeployerManager
}
DeployManager wraps DeployManager and allows typed contract handles to be returned.
func NewDeployManager ¶
func NewDeployManager(t *testing.T) *DeployManager
NewDeployManager creates a new DeployManager.
func (*DeployManager) GetExecutionService ¶
func (d *DeployManager) GetExecutionService(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, handle *executionservice.SynapseExecutionServiceV1HarnessRef)
GetExecutionService gets the execution service.
func (*DeployManager) GetInterchainAppMock ¶
func (d *DeployManager) GetInterchainAppMock(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, handle *interchainapp.InterchainAppMockRef)
GetInterchainAppMock gets the interchain app mock.
func (*DeployManager) GetInterchainClient ¶
func (d *DeployManager) GetInterchainClient(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, handle *interchainclient.InterchainClientRef)
GetInterchainClient gets the interchain client.
func (*DeployManager) GetInterchainDB ¶
func (d *DeployManager) GetInterchainDB(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, handle *interchaindb.InterchainDBRef)
GetInterchainDB gets the interchain db.
func (*DeployManager) GetInterchainModuleMock ¶
func (d *DeployManager) GetInterchainModuleMock(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, handle *interchainmodulemock.InterchainModuleMockRef)
GetInterchainModuleMock gets the interchain module mock.
func (*DeployManager) GetOptionsLib ¶
func (d *DeployManager) GetOptionsLib(ctx context.Context, backend backends.SimulatedTestBackend) (contract contracts.DeployedContract, handle *optionslibexport.OptionsLibExportRef)
GetOptionsLib gets the options library.