bind

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package bind generates Ethereum contract Go bindings.

Detailed usage document and tutorial available on the go-ethereum Wiki page: https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts

Index

Constants

This section is empty.

Variables

View Source
var Modes = []Mode{
	Contract,
	Manager,
}

Functions

func Bind

func Bind(name string, deployment deployment.Deployment, opt Option) (map[Mode][]byte, error)

Types

type Customs

type Customs struct {
	Structs map[string]string `json:"structs"`
	Imports map[string]string `json:"imports"`
	Methods map[string]bool   `json:"methods"`
}

type Mode

type Mode string
const (
	Contract Mode = "contracts"
	Manager  Mode = "managers"
)

type Option

type Option struct {
	Customs  Customs
	Platform platform.Platform
	Language language.Language
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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