testing

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Address of a mock StakeWise vault for testing
	StakeWiseVaultString string = "0x57ace215eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
)

Variables

This section is empty.

Functions

func GetTestResources

func GetTestResources(networkResources *config.NetworkResources, nodesetUrl string) *swconfig.StakewiseResources

GetTestResources returns a new StakewiseResources instance with test network values

Types

type StakeWiseTestManager

type StakeWiseTestManager struct {
	*hdtesting.HyperdriveTestManager
	// contains filtered or unexported fields
}

StakeWiseTestManager for managing testing resources and services

func NewStakeWiseTestManager

func NewStakeWiseTestManager(hdaddress string, swaddress string, nsaddress string) (*StakeWiseTestManager, error)

Creates a new TestManager instance `hdaddress` is the address to bind the Hyperdrive daemon to. `swaddress` is the address to bind the StakeWise daemon to. `nsddress` is the address to bind the nodeset.io mock server to.

func (*StakeWiseTestManager) Close

func (m *StakeWiseTestManager) Close() error

Closes the test manager, shutting down the nodeset mock server and all other resources

func (*StakeWiseTestManager) GetApiClient

func (m *StakeWiseTestManager) GetApiClient() *swclient.ApiClient

Get the StakeWise Daemon client

func (*StakeWiseTestManager) GetNodeSetMockServer

func (m *StakeWiseTestManager) GetNodeSetMockServer() *nsserver.NodeSetMockServer

Get the nodeset.io mock server

func (*StakeWiseTestManager) GetServerManager

func (m *StakeWiseTestManager) GetServerManager() *swserver.ServerManager

Get the StakeWise Daemon server manager

func (*StakeWiseTestManager) GetStakeWiseServiceProvider

func (m *StakeWiseTestManager) GetStakeWiseServiceProvider() *swcommon.StakeWiseServiceProvider

Get the StakeWise service provider

Jump to

Keyboard shortcuts

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