Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContractOutputPath ¶
ContractOutputPath builds the output file path for a generated contract operations file.
func VersionToPath ¶
VersionToPath converts a semver string to a directory path segment.
func WriteGoFile ¶
WriteGoFile formats src as Go source and writes it to path, creating parent directories.
Types ¶
type ChainFamilyHandler ¶
ChainFamilyHandler abstracts all chain-specific generation logic.
type Config ¶
type Config struct {
Version string `yaml:"version"`
ChainFamily string `yaml:"chain_family"` // defaults to "evm"
Input yaml.Node `yaml:"input"`
Output yaml.Node `yaml:"output"`
Contracts yaml.Node `yaml:"contracts"`
ConfigDir string `yaml:"-"`
}
Config holds the top-level generator configuration. Input/Output/Contracts are raw YAML nodes so handlers own their own schemas.
Click to show internal directories.
Click to hide internal directories.