emulate

package
v1.14.1-db-metrics-fix Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package emulate provides temporary emulation of coreth (C-Chain) and subnet-evm (EVM L1) behaviours. All functions are safe for concurrent use with each other, but all hold the same mutex so their execution SHOULD be short-lived.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CChain

func CChain(fn func() error) error

CChain executes `fn` as if running in a `coreth` node.

func CChainVal

func CChainVal[T any](fn func() (T, error)) (T, error)

CChainVal executes `fn` as if running in a `coreth` node.

func SubnetEVM

func SubnetEVM(fn func() error) error

SubnetEVM executes `fn` as if running in a `subnet-evm` node.

func SubnetEVMVal

func SubnetEVMVal[T any](fn func() (T, error)) (T, error)

SubnetEVMVal executes `fn` as if running in a `subnet-evm` node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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