generate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(config Config) error

Generate generates operations from a decoded config.

func GenerateFile

func GenerateFile(configPath string) error

GenerateFile reads an operations-gen YAML config file and generates operations.

Relative output paths and package loading are resolved from the config file's directory, which makes this safe to call from another repository without depending on the process working directory.

func LoadTemplate

func LoadTemplate(chainFamily string) (*template.Template, error)

LoadTemplate loads the code generation template for the given chain family.

Types

type Config

type Config = core.Config

Config holds the top-level generator configuration. Input/Output/Contracts are raw YAML nodes so chain-family handlers own their own schemas.

Jump to

Keyboard shortcuts

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