Documentation
¶
Overview ¶
Package types defines structures to represent the Solidity type system. In addition, this package provides convenience types representing Solidity projects, contracts, functions and APIs.
Index ¶
Constants ¶
View Source
const DynamicArrayLength = -1
represents the length of dynamically sized array NOTE: Solidity accepts 0-length array types e.g. uint256[0] is valid.
View Source
const FallbackFunctionName = ""
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
func (Array) SoliditySignature ¶
type Contract ¶
type ContractAddress ¶
type ContractAddress string
func (ContractAddress) SoliditySignature ¶
func (t ContractAddress) SoliditySignature() []byte
type Elementary ¶
type Elementary string
func (Elementary) SoliditySignature ¶
func (t Elementary) SoliditySignature() []byte
type Event ¶
func (Event) SoliditySignature ¶
type Function ¶
type Function struct { Name string NatSpec string Visibility ast.Visibility StateMutability ast.StateMutability Inputs []Type Outputs []Type Definition ast.Node }
func (Function) IsFallback ¶
func (Function) SoliditySignature ¶
type InterfaceAddress ¶
type InterfaceAddress string
func (InterfaceAddress) SoliditySignature ¶
func (t InterfaceAddress) SoliditySignature() []byte
type LibraryAddress ¶
type LibraryAddress string
func (LibraryAddress) SoliditySignature ¶
func (t LibraryAddress) SoliditySignature() []byte
type Mapping ¶
func (Mapping) SoliditySignature ¶
NOTE: mappings can't be passed as parameters, nevertheless
we provide a Signature method for convenience.
type Named ¶
func (Named) SoliditySignature ¶
type Struct ¶
func (Struct) SoliditySignature ¶
Click to show internal directories.
Click to hide internal directories.