Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeFunction = "function" TypeEvent = "event" TypeStruct = "struct" TypeConstructor = "constructor" TypeL1Handler = "l1_handler" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Abi ¶
type Abi struct {
Functions []Function
Events []Event
Structs []Struct
L1Handlers []L1Handler
Constructor *Constructor
}
represents ABI type
func (*Abi) UnmarshalAbiJSON ¶
Unmarshals JSON into abi object
type Event ¶
type Event struct {
FieldCommon
Data []Variable `json:"data"`
Keys []string `json:"keys"`
Name string `json:"name"`
}
Represents Event abi
type FieldCommon ¶
type FieldCommon struct {
Type FieldType `json:"type"`
}
Represents FieldCommon; contains FieldType of abi object
type Function ¶
type Function struct {
Inputs []Variable `json:"inputs"`
Name string `json:"name"`
Outputs []Variable `json:"outputs"`
Mutability string `json:"stateMutability"`
FieldCommon
}
Represents Function abi
type Struct ¶
type Struct struct {
FieldCommon
Members []StructMember `json:"members"`
Name string `json:"name"`
Size int64 `json:"size"`
}
Represents Struct abi
type StructMember ¶
Represents StructMember abi
Click to show internal directories.
Click to hide internal directories.