Documentation ¶
Index ¶
- Constants
- func GenerateGoFileFromSolidy(file []byte, enums []converter.Enum) (string, error)
- func GenerateGoImports(symbols []SymbolImport) string
- func ProcessAllSolidityFiles(basePath string, currentPath string, destination string, ...)
- func ProcessSolidityFile(path string, fileName string, outputFolder string, enums []converter.Enum) error
- func ProcessSolidityFiles(basePath string, fileName string, outputFolder string, enums []converter.Enum) error
- func SaveGoFile(outputFolder string, fileName string, fileContent string) error
- type Converter
- type SymbolImport
Constants ¶
View Source
const ( OperatorAnd = "&&" OperatorGE = ">=" OperatorLE = "<=" OperatorAdd = "+" OperatorSub = "-" OperatorMul = "*" OperatorL = "<" OperatorG = ">" OperatorNE = "!=" OperatorE = "==" )
Operators
View Source
const ( UserDefinedTypeName = "UserDefinedTypeName" ElementaryTypeName = "ElementaryTypeName" ArrayTypeName = "ArrayTypeName" )
View Source
const Assignment = "Assignment"
View Source
const BinaryOperation = "BinaryOperation"
View Source
const Block = "Block"
View Source
const Break = "Break"
View Source
const Continue = "Continue"
View Source
const ContractDefinition = "ContractDefinition"
View Source
const ExpressionStatement = "ExpressionStatement"
View Source
const ForStatement = "ForStatement"
View Source
const FunctionCall = "FunctionCall"
View Source
const FunctionDefinition = "FunctionDefinition"
View Source
const Identifier = "Identifier"
View Source
const IfStatement = "IfStatement"
View Source
const IndexAccess = "IndexAccess"
View Source
const Literal = "Literal"
View Source
const MemberAccess = "MemberAccess"
View Source
const ParameterList = "ParameterList"
View Source
const Return = "Return"
View Source
const StructDefinition = "StructDefinition"
View Source
const TupleExpression = "TupleExpression"
View Source
const UnaryOperation = "UnaryOperation"
View Source
const (
VariableDeclarationStatement = "VariableDeclarationStatement"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateGoImports ¶
func GenerateGoImports(symbols []SymbolImport) string
func ProcessAllSolidityFiles ¶
func ProcessSolidityFile ¶
func ProcessSolidityFiles ¶
Types ¶
type Converter ¶
func NewConverter ¶
func NewConverter() *Converter
func (*Converter) BytesToVariableDeclaration ¶
type SymbolImport ¶
type SymbolImport struct {
// contains filtered or unexported fields
}
Source Files ¶
- assignment.go
- ast.go
- binary_operation.go
- block.go
- break.go
- continue.go
- contract_definition.go
- expression_statement.go
- for_statement.go
- function_call.go
- function_definition.go
- identifier.go
- if_statement.go
- index_access.go
- literal.go
- member_access.go
- nodes.go
- parameter_list.go
- return.go
- struct_definition.go
- tuple_expression.go
- type_name.go
- unary_operation.go
- variable_declaration_statement.go
- writter.go
Click to show internal directories.
Click to hide internal directories.