evm

package
v0.38.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module exposes EVM execution utilities to the Python sandbox. It activates when an ethnode datasource is available and adds evm.call, evm.trace, evm.trace_tx, evm.tx, evm.assemble, evm.disassemble, evm.wallet, and evm.faucet to the sandbox environment.

func New

func New() *Module

New creates a new evm module.

func (*Module) ApplyDefaults

func (m *Module) ApplyDefaults()

func (*Module) Examples

func (m *Module) Examples() map[string]types.ExampleCategory

Examples returns query examples for the evm module.

func (*Module) Init

func (m *Module) Init(_ []byte) error

func (*Module) InitFromDiscovery

func (m *Module) InitFromDiscovery(datasources []types.DatasourceInfo) error

InitFromDiscovery activates the module when ethnode datasources are present. The evm module delegates all RPC execution to ethnode — it never holds its own proxy credentials.

func (*Module) Name

func (m *Module) Name() string

func (*Module) PythonAPIDocs

func (m *Module) PythonAPIDocs() map[string]types.ModuleDoc

PythonAPIDocs returns API documentation for the evm Python module.

func (*Module) SandboxEnv

func (m *Module) SandboxEnv() (map[string]string, error)

SandboxEnv injects EVM availability and per-network faucet URLs.

func (*Module) SetCartographoorClient

func (m *Module) SetCartographoorClient(client cartographoor.CartographoorClient)

SetCartographoorClient implements module.CartographoorAware.

func (*Module) Start

func (m *Module) Start(_ context.Context) error

func (*Module) Stop

func (m *Module) Stop(_ context.Context) error

func (*Module) Validate

func (m *Module) Validate() error

Jump to

Keyboard shortcuts

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