templates

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EthereumChainsByID = map[string]*EthereumChain{
	"ethereum_mainnet": {
		DisplayName:  "Ethereum Mainnet",
		ExplorerLink: "https://etherscan.io",
	},
}
View Source
var ProjectGeneratorFuncs = template.FuncMap{
	"add": func(left int, right int) int {
		return left + right
	},
}

Functions

This section is empty.

Types

type EthereumChain

type EthereumChain struct {
	ID           string
	DisplayName  string
	ExplorerLink string
}

type EthereumProject

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

func NewEthereumProject

func NewEthereumProject(name string, moduleName string, chain *EthereumChain, address eth.Address, abi *eth.ABI, abiContent string) (*EthereumProject, error)

func (*EthereumProject) Render

func (p *EthereumProject) Render() (map[string][]byte, error)

type Project

type Project interface {
	Render() (map[string][]byte, error)
}

type ProjectFunc

type ProjectFunc func() (map[string][]byte, error)

func (ProjectFunc) Render

func (f ProjectFunc) Render() (map[string][]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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