language

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BindStructType = map[Language]func(kind abi.Type, structs map[string]*template.Struct) string{
	Go:   bindStructTypeGo,
	Java: bindStructTypeJava,
}

bindStructType is a set of type binders that convert Solidity tuple types to some supported programming language struct definition.

View Source
var BindTopicType = map[Language]func(kind abi.Type, structs map[string]*template.Struct) string{
	Go:   bindTopicTypeGo,
	Java: bindTopicTypeJava,
}

bindTopicType is a set of type binders that convert Solidity types to some supported programming language topic types.

View Source
var BindType = map[Language]func(kind abi.Type, structs map[string]*template.Struct) string{
	Go:   bindTypeGo,
	Java: bindTypeJava,
}
View Source
var MethodNormalizer = map[Language]func(string) string{
	Go:   abi.ToCamelCase,
	Java: utils.Decapitalise,
}

methodNormalizer is a name transformer that modifies Solidity method names to conform to target language naming concentions.

View Source
var NamedType = map[Language]func(string, abi.Type) string{
	Go:   func(string, abi.Type) string { panic("this shouldn't be needed") },
	Java: namedTypeJava,
}

namedType is a set of functions that transform language specific types to named versions that my be used inside method names.

Functions

This section is empty.

Types

type Language

type Language string
const (
	Go   Language = "golang"
	Java Language = "java"
)

Jump to

Keyboard shortcuts

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