Documentation ¶
Index ¶
- Constants
- func BuildMethodData(name string, args ...interface{}) ([]byte, error)
- func GetMethodByData(data []byte) (method *abi.Method, err error)
- func UnpackMethodDataToMap(v map[string]interface{}, name string, data []byte) error
- type Approval
- type ApprovalForAll
- type EventLog
- type IEventType
- type Origin
- type Transfer
Constants ¶
View Source
const ( EventNameTransfer = "Transfer" EventNameApproval = "Approval" EventNameApprovalForAll = "ApprovalForAll" )
Variables ¶
This section is empty.
Functions ¶
func BuildMethodData ¶
Types ¶
type ApprovalForAll ¶
type EventLog ¶
type EventLog struct { // Consensus fields: // address of the contract that generated the event Address common.Address `json:"address" gencodec:"required"` // list of topics provided by the contract. Topics []common.Hash `json:"topics" gencodec:"required"` // supplied by the contract, usually ABI-encoded Data hexutil.Bytes `json:"data" gencodec:"required"` }
type IEventType ¶
type IEventType interface { SetContractAddr(contractAddr string) SetEventName(eventName string) SetEventID(eventID string) GetContractAddr() string GetEventName() string GetEventID() string }
func ParseEventToStruct ¶
func ParseEventToStruct(output IEventType, eventLog *EventLog) (out IEventType, err error)
type Origin ¶
type Origin struct {
// contains filtered or unexported fields
}
func (*Origin) GetContractAddr ¶
func (*Origin) GetEventID ¶
func (*Origin) GetEventName ¶
func (*Origin) SetContractAddr ¶
func (*Origin) SetEventID ¶
func (*Origin) SetEventName ¶
Click to show internal directories.
Click to hide internal directories.