Documentation ¶
Index ¶
- Constants
- Variables
- type KurtosisE2ESuite
- func (s *KurtosisE2ESuite) CheckForSuccessfulTx(tx common.Hash) bool
- func (s *KurtosisE2ESuite) Config() *config.E2ETestConfig
- func (s *KurtosisE2ESuite) ConsensusClients() map[string]*types.ConsensusClient
- func (s *KurtosisE2ESuite) Ctx() context.Context
- func (s *KurtosisE2ESuite) Enclave() *enclaves.EnclaveContext
- func (s *KurtosisE2ESuite) ExecutionClients() map[string]*types.ExecutionClient
- func (s *KurtosisE2ESuite) FundAccounts()
- func (s *KurtosisE2ESuite) GenesisAccount() *types.EthAccount
- func (s *KurtosisE2ESuite) JSONRPCBalancer() *types.LoadBalancer
- func (s *KurtosisE2ESuite) KurtosisCtx() *kurtosis_context.KurtosisContext
- func (s *KurtosisE2ESuite) Logger() log.Logger
- func (s *KurtosisE2ESuite) SetupConsensusClients() error
- func (s *KurtosisE2ESuite) SetupExecutionClients() error
- func (s *KurtosisE2ESuite) SetupJSONRPCBalancer() error
- func (s *KurtosisE2ESuite) SetupSuite()
- func (s *KurtosisE2ESuite) SetupSuiteWithOptions(opts ...Option)
- func (s *KurtosisE2ESuite) TearDownSuite()
- func (s *KurtosisE2ESuite) TestAccounts() []*types.EthAccount
- func (s *KurtosisE2ESuite) WaitForFinalizedBlockNumber(target uint64) error
- type Option
Constants ¶
const ( Ether = params.Ether OneGwei = uint64(params.GWei) // 1 Gwei = 1e9 wei TenGwei = 10 * OneGwei // 10 Gwei = 1e10 wei )
Ether represents the number of wei in one ether, used for Ethereum transactions.
const (
DefaultE2ETestTimeout = 60 * 5 * time.Second // timeout for E2E tests
)
DefaultE2ETestTimeout defines the default timeout duration for end-to-end tests. This is used to specify how long to wait for a test before considering it failed.
const (
EtherTransferGasLimit uint64 = 21000 // Standard gas limit for ether transfer
)
EtherTransferGasLimit specifies the gas limit for a standard Ethereum transfer. This is the amount of gas required to perform a basic ether transfer.
Variables ¶
var ErrUnexpectedBalance = errors.New("unexpected balance")
ErrUnexpectedBalance is returned when the balance is unexpected.
var Run = suite.Run
Run is an alias for suite.Run to help with importing in other packages.
Functions ¶
This section is empty.
Types ¶
type KurtosisE2ESuite ¶
KurtosisE2ESuite.
func (*KurtosisE2ESuite) CheckForSuccessfulTx ¶
func (s *KurtosisE2ESuite) CheckForSuccessfulTx( tx common.Hash, ) bool
CheckForSuccessfulTx returns true if the transaction was successful.
func (*KurtosisE2ESuite) Config ¶
func (s *KurtosisE2ESuite) Config() *config.E2ETestConfig
Config returns the E2ETestConfig associated with the KurtosisE2ESuite.
func (*KurtosisE2ESuite) ConsensusClients ¶
func (s *KurtosisE2ESuite) ConsensusClients() map[string]*types.ConsensusClient
ConsensusClients returns the consensus clients associated with the KurtosisE2ESuite.
func (*KurtosisE2ESuite) Ctx ¶
func (s *KurtosisE2ESuite) Ctx() context.Context
Ctx returns the context associated with the KurtosisE2ESuite. This context is used throughout the suite to control the flow of operations, including timeouts and cancellations.
func (*KurtosisE2ESuite) Enclave ¶
func (s *KurtosisE2ESuite) Enclave() *enclaves.EnclaveContext
Enclave returns the enclave running the beacon-kit network.
func (*KurtosisE2ESuite) ExecutionClients ¶
func (s *KurtosisE2ESuite) ExecutionClients() map[string]*types.ExecutionClient
ExecutionClients returns the execution clients associated with the KurtosisE2ESuite.
func (*KurtosisE2ESuite) FundAccounts ¶
func (s *KurtosisE2ESuite) FundAccounts()
FundAccounts funds the accounts for the test suite.
func (*KurtosisE2ESuite) GenesisAccount ¶
func (s *KurtosisE2ESuite) GenesisAccount() *types.EthAccount
GenesisAccount returns the genesis account for the test suite.
func (*KurtosisE2ESuite) JSONRPCBalancer ¶
func (s *KurtosisE2ESuite) JSONRPCBalancer() *types.LoadBalancer
JSONRPCBalancer returns the JSON-RPC balancer for the test suite.
func (*KurtosisE2ESuite) KurtosisCtx ¶
func (s *KurtosisE2ESuite) KurtosisCtx() *kurtosis_context.KurtosisContext
KurtosisCtx returns the KurtosisContext associated with the KurtosisE2ESuite. The KurtosisContext is a critical component that facilitates interaction with the Kurtosis testnet, including creating and managing enclaves.
func (*KurtosisE2ESuite) Logger ¶
func (s *KurtosisE2ESuite) Logger() log.Logger
Logger returns the logger for the test suite.
func (*KurtosisE2ESuite) SetupConsensusClients ¶
func (s *KurtosisE2ESuite) SetupConsensusClients() error
func (*KurtosisE2ESuite) SetupExecutionClients ¶
func (s *KurtosisE2ESuite) SetupExecutionClients() error
SetupExecutionClients sets up the execution clients for the test suite.
func (*KurtosisE2ESuite) SetupJSONRPCBalancer ¶
func (s *KurtosisE2ESuite) SetupJSONRPCBalancer() error
SetupNGINXBalancer sets up the NGINX balancer for the test suite.
func (*KurtosisE2ESuite) SetupSuite ¶
func (s *KurtosisE2ESuite) SetupSuite()
SetupSuite executes before the test suite begins execution.
func (*KurtosisE2ESuite) SetupSuiteWithOptions ¶
func (s *KurtosisE2ESuite) SetupSuiteWithOptions(opts ...Option)
Option is a function that sets a field on the KurtosisE2ESuite.
func (*KurtosisE2ESuite) TearDownSuite ¶
func (s *KurtosisE2ESuite) TearDownSuite()
TearDownSuite cleans up resources after all tests have been executed. this function executes after all tests executed.
func (*KurtosisE2ESuite) TestAccounts ¶
func (s *KurtosisE2ESuite) TestAccounts() []*types.EthAccount
TestAccounts returns the test accounts for the test suite.
func (*KurtosisE2ESuite) WaitForFinalizedBlockNumber ¶
func (s *KurtosisE2ESuite) WaitForFinalizedBlockNumber( target uint64, ) error
WaitForFinalizedBlockNumber waits for the finalized block number to reach the target block number across all execution clients.
type Option ¶
type Option func(*KurtosisE2ESuite) error
Type Option is a function that sets a field on the KurtosisE2ESuite.
func WithConfig ¶
func WithConfig(cfg *config.E2ETestConfig) Option
WithConfig sets the E2ETestConfig for the test suite.
func WithContext ¶
WithContext sets the context for the test suite.
func WithLogger ¶
WithLogger sets the logger for the test suite.