Help us shape the future of Go! Take the 2026 Go Developer Survey

chainsim

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestAddress    = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
	TestPrivateKey = "ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
)

Variables

This section is empty.

Functions

func NewSimulatedClient

func NewSimulatedClient(t *testing.T, chain *SimulatedChain, logger *zerolog.Logger) *seth.Client

func NewSimulatedClientFactory

func NewSimulatedClientFactory(logger *zerolog.Logger, ethClient *seth.Client, simulatedContracts *SimulatedContracts) client.Factory

Types

type SimulatedChain

type SimulatedChain struct {
	Backend *simulated.Backend
}

func NewSimulatedChain

func NewSimulatedChain() *SimulatedChain

func (*SimulatedChain) Close

func (sc *SimulatedChain) Close()

type SimulatedContracts

type SimulatedContracts struct {
	WorkflowRegistry SimulatedWorkflowRegistry
}

type SimulatedEnvironment

type SimulatedEnvironment struct {
	Chain     *SimulatedChain
	EthClient *seth.Client
	Contracts *SimulatedContracts
	// contains filtered or unexported fields
}

func NewSimulatedEnvironment

func NewSimulatedEnvironment(t *testing.T) *SimulatedEnvironment

func (*SimulatedEnvironment) Close

func (se *SimulatedEnvironment) Close()

func (*SimulatedEnvironment) NewRuntimeContext

func (se *SimulatedEnvironment) NewRuntimeContext() *runtime.Context

func (*SimulatedEnvironment) NewRuntimeContextWithBufferedOutput

func (se *SimulatedEnvironment) NewRuntimeContextWithBufferedOutput() (*runtime.Context, *bytes.Buffer)

func (*SimulatedEnvironment) WithJWT added in v1.12.0

func (se *SimulatedEnvironment) WithJWT(orgID string) *SimulatedEnvironment

func (*SimulatedEnvironment) WithPrivateRegistry added in v1.12.0

func (se *SimulatedEnvironment) WithPrivateRegistry(tenantID, donFamily string) *SimulatedEnvironment

type SimulatedWorkflowRegistry

type SimulatedWorkflowRegistry struct {
	Contract common.Address
}

func DeployWorkflowRegistry

func DeployWorkflowRegistry(t *testing.T, ethClient *seth.Client, chain *SimulatedChain, logger *zerolog.Logger) SimulatedWorkflowRegistry

Jump to

Keyboard shortcuts

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