blockchain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestNeoConfig

type TestNeoConfig struct {
	// Original environment variables before modification
	OriginalEnvVars map[string]string

	// Managed environment variables to clean up
	ManagedEnvVars []string

	// Neo configuration
	NeoConfig *config.NeoConfig

	// Logger instance
	Logger *logger.Logger
}

TestNeoConfig holds test configuration for Neo blockchain testing

func SetupNeoTestEnvironment

func SetupNeoTestEnvironment(t *testing.T) *TestNeoConfig

SetupNeoTestEnvironment sets up the Neo test environment

func (*TestNeoConfig) CreateClient

func (c *TestNeoConfig) CreateClient(t *testing.T) *blockchain.Client

CreateClient creates a new blockchain client for testing

func (*TestNeoConfig) GetWellKnownContractHash

func (c *TestNeoConfig) GetWellKnownContractHash() string

GetWellKnownContractHash returns a known contract hash on the network for testing

func (*TestNeoConfig) TeardownNeoTestEnvironment

func (c *TestNeoConfig) TeardownNeoTestEnvironment(t *testing.T)

TeardownNeoTestEnvironment cleans up the Neo test environment

Jump to

Keyboard shortcuts

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