Documentation
¶
Index ¶
Constants ¶
View Source
const ABIDirective string = "abi: "
Variables ¶
View Source
var ( FailureCode = Lit(0) SuccessCode = Lit(0) )
Functions ¶
func ToSelector ¶
Types ¶
type FuncMetadata ¶
type FuncMetadata struct {
Signature string
Selector FuncSelector
Modifiers []Modifier
}
func NewFuncMetadata ¶
func NewFuncMetadata(comment string) (*FuncMetadata, error)
func (*FuncMetadata) IsPayable ¶
func (f *FuncMetadata) IsPayable() bool
func (*FuncMetadata) IsPure ¶
func (f *FuncMetadata) IsPure() bool
func (*FuncMetadata) IsView ¶
func (f *FuncMetadata) IsView() bool
type FuncSelector ¶
type FuncSelector []byte
func (FuncSelector) Hex ¶
func (s FuncSelector) Hex() string
func (FuncSelector) Hex0x ¶
func (s FuncSelector) Hex0x() string
func (FuncSelector) UInt32 ¶
func (s FuncSelector) UInt32() uint32
type Function ¶
type Function struct {
Name string
Params []*Variable
Returns []string
*FuncMetadata
}
Click to show internal directories.
Click to hide internal directories.