generator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SolidityABIString = "pragma experimental ABIEncoderV2;"

SolidityABIString indicates ABIEncoderV2 use.

View Source
const SolidityVersionString = ">=0.6.0 <8.0.0"

SolidityVersionString is the Solidity version specifier.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator generates Solidity code from .proto files.

func New

func New(request *pluginpb.CodeGeneratorRequest, versionString string) *Generator

New initializes a new Generator.

func (*Generator) Generate

func (g *Generator) Generate() (*pluginpb.CodeGeneratorResponse, error)

Generate generates Solidity code from the requested .proto files.

func (*Generator) ParseParameters

func (g *Generator) ParseParameters() error

ParseParameters parses command-line parameters

type WriteableBuffer

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

WriteableBuffer is a writeable buffer wrapper

func (*WriteableBuffer) Indent

func (b *WriteableBuffer) Indent()

Indent increases indentation for subsequent writes

func (*WriteableBuffer) P

func (b *WriteableBuffer) P(s ...interface{})

P writes an object to the buffer

func (*WriteableBuffer) String

func (b *WriteableBuffer) String() string

func (*WriteableBuffer) Unindent

func (b *WriteableBuffer) Unindent()

Unindent decreases indentation for subsequent writes

Jump to

Keyboard shortcuts

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