chainsim

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 23 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
}

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)

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