feeder

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (abi *Abi) UnmarshalAbiJSON(data []byte) error

Unmarshals JSON into abi object

type Constructor

type Constructor struct {
	Function
}

Represents Constructor abi

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 FieldType

type FieldType string

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 L1Handler

type L1Handler struct {
	Function
}

Represents L1Handler abi

type Struct

type Struct struct {
	FieldCommon
	Members []StructMember `json:"members"`
	Name    string         `json:"name"`
	Size    int64          `json:"size"`
}

Represents Struct abi

type StructMember

type StructMember struct {
	Variable
	Offset int64 `json:"offset"`
}

Represents StructMember abi

type Variable

type Variable struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

Represents Variable abi

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL