ir_pb

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ir_argument_proto protoreflect.FileDescriptor
View Source
var File_ir_body_proto protoreflect.FileDescriptor
View Source
var File_ir_constructor_proto protoreflect.FileDescriptor
View Source
var File_ir_contract_proto protoreflect.FileDescriptor
View Source
var File_ir_eip_proto protoreflect.FileDescriptor
View Source
var File_ir_enum_proto protoreflect.FileDescriptor
View Source
var File_ir_error_proto protoreflect.FileDescriptor
View Source
var File_ir_event_proto protoreflect.FileDescriptor
View Source
var File_ir_fallback_proto protoreflect.FileDescriptor
View Source
var File_ir_function_call_proto protoreflect.FileDescriptor
View Source
var File_ir_function_proto protoreflect.FileDescriptor
View Source
var File_ir_import_proto protoreflect.FileDescriptor
View Source
var File_ir_modifier_proto protoreflect.FileDescriptor
View Source
var File_ir_override_proto protoreflect.FileDescriptor
View Source
var File_ir_parameter_proto protoreflect.FileDescriptor
View Source
var File_ir_pragma_proto protoreflect.FileDescriptor
View Source
var File_ir_receive_proto protoreflect.FileDescriptor
View Source
var File_ir_root_proto protoreflect.FileDescriptor
View Source
var File_ir_struct_proto protoreflect.FileDescriptor
View Source
var File_ir_symbol_proto protoreflect.FileDescriptor
View Source
var File_ir_variable_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`    // Unique identifier for the argument.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Name of the argument.
	// Node type of the argument. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,3,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the argument. Refers to the AST node type enumeration in "ast/types.proto".
	Kind                  ast.NodeType `protobuf:"varint,4,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	ReferencedDeclaration int64        `protobuf:"varint,7,opt,name=referenced_declaration,json=referencedDeclaration,proto3" json:"referenced_declaration,omitempty"` // Identifier of the referenced declaration.
	// Type description of the argument. Refers to the "unpack.v1.ast.TypeDescription" message in "ast/types.proto".
	TypeDescription *ast.TypeDescription `protobuf:"bytes,8,opt,name=type_description,json=typeDescription,proto3" json:"type_description,omitempty"`
	// contains filtered or unexported fields
}

Represents an argument in the intermediate representation (IR).

func (*Argument) Descriptor deprecated

func (*Argument) Descriptor() ([]byte, []int)

Deprecated: Use Argument.ProtoReflect.Descriptor instead.

func (*Argument) GetId

func (x *Argument) GetId() int64

func (*Argument) GetKind

func (x *Argument) GetKind() ast.NodeType

func (*Argument) GetName

func (x *Argument) GetName() string

func (*Argument) GetNodeType

func (x *Argument) GetNodeType() ast.NodeType

func (*Argument) GetReferencedDeclaration

func (x *Argument) GetReferencedDeclaration() int64

func (*Argument) GetTypeDescription

func (x *Argument) GetTypeDescription() *ast.TypeDescription

func (*Argument) ProtoMessage

func (*Argument) ProtoMessage()

func (*Argument) ProtoReflect

func (x *Argument) ProtoReflect() protoreflect.Message

func (*Argument) Reset

func (x *Argument) Reset()

func (*Argument) String

func (x *Argument) String() string

type Body

type Body struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the body.
	// Node type of the body. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the body. Refers to the AST node type enumeration in "ast/types.proto".
	Kind ast.NodeType `protobuf:"varint,3,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	// List of statements in the body. Each statement is defined using the "xds.type.v3.TypedStruct" message.
	Statements []*v3.TypedStruct `protobuf:"bytes,4,rep,name=statements,proto3" json:"statements,omitempty"`
	// contains filtered or unexported fields
}

Represents a body (sequence of statements) in the intermediate representation (IR).

func (*Body) Descriptor deprecated

func (*Body) Descriptor() ([]byte, []int)

Deprecated: Use Body.ProtoReflect.Descriptor instead.

func (*Body) GetId

func (x *Body) GetId() int64

func (*Body) GetKind

func (x *Body) GetKind() ast.NodeType

func (*Body) GetNodeType

func (x *Body) GetNodeType() ast.NodeType

func (*Body) GetStatements

func (x *Body) GetStatements() []*v3.TypedStruct

func (*Body) ProtoMessage

func (*Body) ProtoMessage()

func (*Body) ProtoReflect

func (x *Body) ProtoReflect() protoreflect.Message

func (*Body) Reset

func (x *Body) Reset()

func (*Body) String

func (x *Body) String() string

type Constructor

type Constructor struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the constructor.
	// Node type of the constructor. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the constructor. Refers to the AST node type enumeration in "ast/types.proto".
	Kind        ast.NodeType `protobuf:"varint,3,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	Name        string       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                // Name of the constructor.
	Implemented bool         `protobuf:"varint,5,opt,name=implemented,proto3" json:"implemented,omitempty"` // Indicates if the constructor is implemented or not.
	// Visibility of the constructor. Refers to the visibility enumeration in "ast/types.proto".
	Visibility ast.Visibility `protobuf:"varint,6,opt,name=visibility,proto3,enum=unpack.v1.ast.Visibility" json:"visibility,omitempty"`
	// State mutability of the constructor. Refers to the mutability enumeration in "ast/types.proto".
	StateMutability ast.Mutability ``                                                                        /* 137-byte string literal not displayed */
	Virtual         bool           `protobuf:"varint,8,opt,name=virtual,proto3" json:"virtual,omitempty"`    // Indicates if the constructor is virtual.
	Modifiers       []*Modifier    `protobuf:"bytes,9,rep,name=modifiers,proto3" json:"modifiers,omitempty"` // List of constructor modifiers.
	// List of parameters of the constructor. Each parameter is defined in "ir/parameter.proto".
	Parameters []*Parameter `protobuf:"bytes,10,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// List of return parameters of the constructor. Each return parameter is defined in "ir/parameter.proto".
	Return []*Parameter `protobuf:"bytes,11,rep,name=return,proto3" json:"return,omitempty"`
	// contains filtered or unexported fields
}

Represents a constructor declaration in the intermediate representation (IR).

func (*Constructor) Descriptor deprecated

func (*Constructor) Descriptor() ([]byte, []int)

Deprecated: Use Constructor.ProtoReflect.Descriptor instead.

func (*Constructor) GetId

func (x *Constructor) GetId() int64

func (*Constructor) GetImplemented

func (x *Constructor) GetImplemented() bool

func (*Constructor) GetKind

func (x *Constructor) GetKind() ast.NodeType

func (*Constructor) GetModifiers

func (x *Constructor) GetModifiers() []*Modifier

func (*Constructor) GetName

func (x *Constructor) GetName() string

func (*Constructor) GetNodeType

func (x *Constructor) GetNodeType() ast.NodeType

func (*Constructor) GetParameters

func (x *Constructor) GetParameters() []*Parameter

func (*Constructor) GetReturn

func (x *Constructor) GetReturn() []*Parameter

func (*Constructor) GetStateMutability

func (x *Constructor) GetStateMutability() ast.Mutability

func (*Constructor) GetVirtual

func (x *Constructor) GetVirtual() bool

func (*Constructor) GetVisibility

func (x *Constructor) GetVisibility() ast.Visibility

func (*Constructor) ProtoMessage

func (*Constructor) ProtoMessage()

func (*Constructor) ProtoReflect

func (x *Constructor) ProtoReflect() protoreflect.Message

func (*Constructor) Reset

func (x *Constructor) Reset()

func (*Constructor) String

func (x *Constructor) String() string

type Contract

type Contract struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the contract.
	// Node type of the contract. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the contract. Refers to the AST node type enumeration in "ast/types.proto".
	Kind           ast.NodeType     `protobuf:"varint,3,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	SourceUnitId   int64            `protobuf:"varint,4,opt,name=source_unit_id,json=sourceUnitId,proto3" json:"source_unit_id,omitempty"`     // Identifier of the source unit for the contract.
	Name           string           `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`                                            // Name of the contract.
	License        string           `protobuf:"bytes,6,opt,name=license,proto3" json:"license,omitempty"`                                      // License information for the contract.
	Language       string           `protobuf:"bytes,7,opt,name=language,proto3" json:"language,omitempty"`                                    // Language used for the contract.
	AbsolutePath   string           `protobuf:"bytes,8,opt,name=absolute_path,json=absolutePath,proto3" json:"absolute_path,omitempty"`        // Absolute path of the contract.
	Symbols        []*Symbol        `protobuf:"bytes,9,rep,name=symbols,proto3" json:"symbols,omitempty"`                                      // List of symbols in the contract.
	Imports        []*Import        `protobuf:"bytes,10,rep,name=imports,proto3" json:"imports,omitempty"`                                     // List of import statements in the contract.
	Pragmas        []*Pragma        `protobuf:"bytes,11,rep,name=pragmas,proto3" json:"pragmas,omitempty"`                                     // List of pragmas in the contract.
	StateVariables []*StateVariable `protobuf:"bytes,12,rep,name=state_variables,json=stateVariables,proto3" json:"state_variables,omitempty"` // List of state variables in the contract.
	Structs        []*Struct        `protobuf:"bytes,13,rep,name=structs,proto3" json:"structs,omitempty"`                                     // List of struct declarations in the contract.
	Enums          []*Enum          `protobuf:"bytes,14,rep,name=enums,proto3" json:"enums,omitempty"`                                         // List of enum declarations in the contract.
	Events         []*Event         `protobuf:"bytes,15,rep,name=events,proto3" json:"events,omitempty"`                                       // List of event declarations in the contract.
	Errors         []*Error         `protobuf:"bytes,16,rep,name=errors,proto3" json:"errors,omitempty"`                                       // List of error declarations in the contract.
	Constructor    *Constructor     `protobuf:"bytes,17,opt,name=constructor,proto3" json:"constructor,omitempty"`                             // Constructor declaration for the contract.
	Functions      []*Function      `protobuf:"bytes,18,rep,name=functions,proto3" json:"functions,omitempty"`                                 // List of function declarations in the contract.
	Fallback       *Fallback        `protobuf:"bytes,19,opt,name=fallback,proto3" json:"fallback,omitempty"`                                   // Fallback function declaration for the contract.
	Receive        *Receive         `protobuf:"bytes,20,opt,name=receive,proto3" json:"receive,omitempty"`                                     // Receive function declaration for the contract.
	// contains filtered or unexported fields
}

Represents a contract declaration in the intermediate representation (IR).

func (*Contract) Descriptor deprecated

func (*Contract) Descriptor() ([]byte, []int)

Deprecated: Use Contract.ProtoReflect.Descriptor instead.

func (*Contract) GetAbsolutePath

func (x *Contract) GetAbsolutePath() string

func (*Contract) GetConstructor

func (x *Contract) GetConstructor() *Constructor

func (*Contract) GetEnums

func (x *Contract) GetEnums() []*Enum

func (*Contract) GetErrors

func (x *Contract) GetErrors() []*Error

func (*Contract) GetEvents

func (x *Contract) GetEvents() []*Event

func (*Contract) GetFallback

func (x *Contract) GetFallback() *Fallback

func (*Contract) GetFunctions

func (x *Contract) GetFunctions() []*Function

func (*Contract) GetId

func (x *Contract) GetId() int64

func (*Contract) GetImports

func (x *Contract) GetImports() []*Import

func (*Contract) GetKind

func (x *Contract) GetKind() ast.NodeType

func (*Contract) GetLanguage

func (x *Contract) GetLanguage() string

func (*Contract) GetLicense

func (x *Contract) GetLicense() string

func (*Contract) GetName

func (x *Contract) GetName() string

func (*Contract) GetNodeType

func (x *Contract) GetNodeType() ast.NodeType

func (*Contract) GetPragmas

func (x *Contract) GetPragmas() []*Pragma

func (*Contract) GetReceive

func (x *Contract) GetReceive() *Receive

func (*Contract) GetSourceUnitId

func (x *Contract) GetSourceUnitId() int64

func (*Contract) GetStateVariables

func (x *Contract) GetStateVariables() []*StateVariable

func (*Contract) GetStructs

func (x *Contract) GetStructs() []*Struct

func (*Contract) GetSymbols

func (x *Contract) GetSymbols() []*Symbol

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) ProtoReflect

func (x *Contract) ProtoReflect() protoreflect.Message

func (*Contract) Reset

func (x *Contract) Reset()

func (*Contract) String

func (x *Contract) String() string

type EIP

type EIP struct {

	// Unique identifier for the contract.
	ContractId int64 `protobuf:"varint,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// Name of the contract.
	ContractName string `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	// Represents the confidence level of the contract adhering to a specific EIP standard.
	Confidence *eip.Discovery `protobuf:"bytes,3,opt,name=confidence,proto3" json:"confidence,omitempty"`
	// Provides details about the specific EIP standard.
	Standard *eip.ContractStandard `protobuf:"bytes,4,opt,name=standard,proto3" json:"standard,omitempty"`
	// contains filtered or unexported fields
}

EIP represents a specific Ethereum Improvement Proposal standard that a contract may adhere to.

func (*EIP) Descriptor deprecated

func (*EIP) Descriptor() ([]byte, []int)

Deprecated: Use EIP.ProtoReflect.Descriptor instead.

func (*EIP) GetConfidence

func (x *EIP) GetConfidence() *eip.Discovery

func (*EIP) GetContractId

func (x *EIP) GetContractId() int64

func (*EIP) GetContractName

func (x *EIP) GetContractName() string

func (*EIP) GetStandard

func (x *EIP) GetStandard() *eip.ContractStandard

func (*EIP) ProtoMessage

func (*EIP) ProtoMessage()

func (*EIP) ProtoReflect

func (x *EIP) ProtoReflect() protoreflect.Message

func (*EIP) Reset

func (x *EIP) Reset()

func (*EIP) String

func (x *EIP) String() string

type Enum

type Enum struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the enum.
	// Node type of the enum. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType      ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	Name          string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`                                        // Name of the enum.
	CanonicalName string       `protobuf:"bytes,4,opt,name=canonical_name,json=canonicalName,proto3" json:"canonical_name,omitempty"` // Canonical name of the enum.
	// List of enum members (parameters). Each member is defined using the "unpack.v1.ir.Parameter" message.
	Members []*Parameter `protobuf:"bytes,5,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

Represents an enum declaration in the intermediate representation (IR).

func (*Enum) Descriptor deprecated

func (*Enum) Descriptor() ([]byte, []int)

Deprecated: Use Enum.ProtoReflect.Descriptor instead.

func (*Enum) GetCanonicalName

func (x *Enum) GetCanonicalName() string

func (*Enum) GetId

func (x *Enum) GetId() int64

func (*Enum) GetMembers

func (x *Enum) GetMembers() []*Parameter

func (*Enum) GetName

func (x *Enum) GetName() string

func (*Enum) GetNodeType

func (x *Enum) GetNodeType() ast.NodeType

func (*Enum) ProtoMessage

func (*Enum) ProtoMessage()

func (*Enum) ProtoReflect

func (x *Enum) ProtoReflect() protoreflect.Message

func (*Enum) Reset

func (x *Enum) Reset()

func (*Enum) String

func (x *Enum) String() string

type Error

type Error struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the error.
	// Node type of the error. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	Name     string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Name of the error.
	// List of parameters associated with the error. Each parameter is defined using the "unpack.v1.ir.Parameter" message.
	Parameters []*Parameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// Type description of the error. Refers to the "unpack.v1.ast.TypeDescription" message in "ast/types.proto".
	TypeDescription *ast.TypeDescription `protobuf:"bytes,5,opt,name=type_description,json=typeDescription,proto3" json:"type_description,omitempty"`
	// contains filtered or unexported fields
}

Represents an error declaration in the intermediate representation (IR).

func (*Error) Descriptor deprecated

func (*Error) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetId

func (x *Error) GetId() int64

func (*Error) GetName

func (x *Error) GetName() string

func (*Error) GetNodeType

func (x *Error) GetNodeType() ast.NodeType

func (*Error) GetParameters

func (x *Error) GetParameters() []*Parameter

func (*Error) GetTypeDescription

func (x *Error) GetTypeDescription() *ast.TypeDescription

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Event

type Event struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the event.
	// Node type of the event. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType  ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	Name      string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`            // Name of the event.
	Anonymous bool         `protobuf:"varint,4,opt,name=anonymous,proto3" json:"anonymous,omitempty"` // Indicates if the event is anonymous (true) or named (false).
	// List of parameters associated with the event. Each parameter is defined using the "unpack.v1.ir.Parameter" message.
	Parameters []*Parameter `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

Represents an event declaration in the intermediate representation (IR).

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAnonymous

func (x *Event) GetAnonymous() bool

func (*Event) GetId

func (x *Event) GetId() int64

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetNodeType

func (x *Event) GetNodeType() ast.NodeType

func (*Event) GetParameters

func (x *Event) GetParameters() []*Parameter

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Fallback

type Fallback struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the fallback function.
	// Node type of the fallback function. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the fallback function. Refers to the AST node type enumeration in "ast/types.proto".
	Kind        ast.NodeType `protobuf:"varint,3,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	Name        string       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                // Name of the fallback function.
	Implemented bool         `protobuf:"varint,5,opt,name=implemented,proto3" json:"implemented,omitempty"` // Indicates if the fallback function is implemented or not.
	// Visibility of the fallback function. Refers to the visibility enumeration in "ast/types.proto".
	Visibility ast.Visibility `protobuf:"varint,6,opt,name=visibility,proto3,enum=unpack.v1.ast.Visibility" json:"visibility,omitempty"`
	// State mutability of the fallback function. Refers to the mutability enumeration in "ast/types.proto".
	StateMutability ast.Mutability ``                                                                     /* 137-byte string literal not displayed */
	Virtual         bool           `protobuf:"varint,8,opt,name=virtual,proto3" json:"virtual,omitempty"` // Indicates if the fallback function is virtual.
	// List of modifiers associated with the fallback function. Each modifier is defined using the "unpack.v1.ir.Modifier" message.
	Modifiers []*Modifier `protobuf:"bytes,9,rep,name=modifiers,proto3" json:"modifiers,omitempty"`
	// List of overrides associated with the fallback function. Each override is defined using the "unpack.v1.ir.Override" message.
	Overrides []*Override `protobuf:"bytes,10,rep,name=overrides,proto3" json:"overrides,omitempty"`
	// List of parameters of the fallback function. Each parameter is defined using the "unpack.v1.ir.Parameter" message.
	Parameters []*Parameter `protobuf:"bytes,11,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// List of return parameters of the fallback function. Each return parameter is defined using the "unpack.v1.ir.Parameter" message.
	Return []*Parameter `protobuf:"bytes,12,rep,name=return,proto3" json:"return,omitempty"`
	// contains filtered or unexported fields
}

Represents a fallback function declaration in the intermediate representation (IR).

func (*Fallback) Descriptor deprecated

func (*Fallback) Descriptor() ([]byte, []int)

Deprecated: Use Fallback.ProtoReflect.Descriptor instead.

func (*Fallback) GetId

func (x *Fallback) GetId() int64

func (*Fallback) GetImplemented

func (x *Fallback) GetImplemented() bool

func (*Fallback) GetKind

func (x *Fallback) GetKind() ast.NodeType

func (*Fallback) GetModifiers

func (x *Fallback) GetModifiers() []*Modifier

func (*Fallback) GetName

func (x *Fallback) GetName() string

func (*Fallback) GetNodeType

func (x *Fallback) GetNodeType() ast.NodeType

func (*Fallback) GetOverrides

func (x *Fallback) GetOverrides() []*Override

func (*Fallback) GetParameters

func (x *Fallback) GetParameters() []*Parameter

func (*Fallback) GetReturn

func (x *Fallback) GetReturn() []*Parameter

func (*Fallback) GetStateMutability

func (x *Fallback) GetStateMutability() ast.Mutability

func (*Fallback) GetVirtual

func (x *Fallback) GetVirtual() bool

func (*Fallback) GetVisibility

func (x *Fallback) GetVisibility() ast.Visibility

func (*Fallback) ProtoMessage

func (*Fallback) ProtoMessage()

func (*Fallback) ProtoReflect

func (x *Fallback) ProtoReflect() protoreflect.Message

func (*Fallback) Reset

func (x *Fallback) Reset()

func (*Fallback) String

func (x *Fallback) String() string

type Function

type Function struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the function.
	// Node type of the function. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the function. Refers to the AST node type enumeration in "ast/types.proto".
	Kind        ast.NodeType `protobuf:"varint,3,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	Name        string       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                // Name of the function.
	Implemented bool         `protobuf:"varint,5,opt,name=implemented,proto3" json:"implemented,omitempty"` // Indicates if the function is implemented or not.
	// Visibility of the function. Refers to the visibility enumeration in "ast/types.proto".
	Visibility ast.Visibility `protobuf:"varint,6,opt,name=visibility,proto3,enum=unpack.v1.ast.Visibility" json:"visibility,omitempty"`
	// State mutability of the function. Refers to the mutability enumeration in "ast/types.proto".
	StateMutability         ast.Mutability ``                                                                     /* 137-byte string literal not displayed */
	Virtual                 bool           `protobuf:"varint,8,opt,name=virtual,proto3" json:"virtual,omitempty"` // Indicates if the function is virtual.
	ReferencedDeclarationId int64          ``                                                                     // Identifier of the referenced function declaration.
	/* 133-byte string literal not displayed */
	// List of modifiers associated with the function. Each modifier is defined using the "unpack.v1.ir.Modifier" message.
	Modifiers []*Modifier `protobuf:"bytes,10,rep,name=modifiers,proto3" json:"modifiers,omitempty"`
	// List of overrides associated with the function. Each override is defined using the "unpack.v1.ir.Override" message.
	Overrides []*Override `protobuf:"bytes,11,rep,name=overrides,proto3" json:"overrides,omitempty"`
	// List of parameters of the function. Each parameter is defined using the "unpack.v1.ir.Parameter" message.
	Parameters []*Parameter `protobuf:"bytes,12,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// Body of the function. Defined using the "unpack.v1.ir.Body" message.
	Body      *Body  `protobuf:"bytes,14,opt,name=body,proto3" json:"body,omitempty"`
	Signature string `protobuf:"bytes,15,opt,name=signature,proto3" json:"signature,omitempty"` // Signature of the function.
	// List of return parameters of the function. Each return parameter is defined using the "unpack.v1.ir.Parameter" message.
	Return []*Parameter `protobuf:"bytes,13,rep,name=return,proto3" json:"return,omitempty"`
	// contains filtered or unexported fields
}

Represents a function declaration in the intermediate representation (IR).

func (*Function) Descriptor deprecated

func (*Function) Descriptor() ([]byte, []int)

Deprecated: Use Function.ProtoReflect.Descriptor instead.

func (*Function) GetBody

func (x *Function) GetBody() *Body

func (*Function) GetId

func (x *Function) GetId() int64

func (*Function) GetImplemented

func (x *Function) GetImplemented() bool

func (*Function) GetKind

func (x *Function) GetKind() ast.NodeType

func (*Function) GetModifiers

func (x *Function) GetModifiers() []*Modifier

func (*Function) GetName

func (x *Function) GetName() string

func (*Function) GetNodeType

func (x *Function) GetNodeType() ast.NodeType

func (*Function) GetOverrides

func (x *Function) GetOverrides() []*Override

func (*Function) GetParameters

func (x *Function) GetParameters() []*Parameter

func (*Function) GetReferencedDeclarationId

func (x *Function) GetReferencedDeclarationId() int64

func (*Function) GetReturn

func (x *Function) GetReturn() []*Parameter

func (*Function) GetSignature added in v0.2.6

func (x *Function) GetSignature() string

func (*Function) GetStateMutability

func (x *Function) GetStateMutability() ast.Mutability

func (*Function) GetVirtual

func (x *Function) GetVirtual() bool

func (*Function) GetVisibility

func (x *Function) GetVisibility() ast.Visibility

func (*Function) ProtoMessage

func (*Function) ProtoMessage()

func (*Function) ProtoReflect

func (x *Function) ProtoReflect() protoreflect.Message

func (*Function) Reset

func (x *Function) Reset()

func (*Function) String

func (x *Function) String() string

type FunctionCall

type FunctionCall struct {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`    // Unique identifier for the function call.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Name of the function call.
	// Node type of the function call. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,3,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the function call. Refers to the AST node type enumeration in "ast/types.proto".
	Kind ast.NodeType `protobuf:"varint,4,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	// List of argument types associated with the function call. Each argument type is defined using the "unpack.v1.ast.TypeDescription" message.
	ArgumentTypes []*ast.TypeDescription `protobuf:"bytes,5,rep,name=argument_types,json=argumentTypes,proto3" json:"argument_types,omitempty"`
	// List of arguments associated with the function call. Each argument is defined using the "unpack.v1.ir.Argument" message.
	Arguments               []*Argument `protobuf:"bytes,6,rep,name=arguments,proto3" json:"arguments,omitempty"`
	IsExternal              bool        `protobuf:"varint,7,opt,name=is_external,json=isExternal,proto3" json:"is_external,omitempty"`                                  // Indicates if the function call is external.
	ExternalContractId      int64       `protobuf:"varint,8,opt,name=external_contract_id,json=externalContractId,proto3" json:"external_contract_id,omitempty"`        // Identifier of the external contract, if the function call is external.
	ExternalContractName    string      `protobuf:"bytes,9,opt,name=external_contract_name,json=externalContractName,proto3" json:"external_contract_name,omitempty"`   // Name of the external contract, if the function call is external.
	ReferenceStatementId    int64       `protobuf:"varint,10,opt,name=reference_statement_id,json=referenceStatementId,proto3" json:"reference_statement_id,omitempty"` // Identifier of the reference statement, if applicable.
	ReferencedDeclarationId int64       ``                                                                                                                              // Identifier of the referenced declaration, if applicable.
	/* 134-byte string literal not displayed */
	// Type description of the function call. Refers to the "unpack.v1.ast.TypeDescription" message in "ast/types.proto".
	TypeDescription *ast.TypeDescription `protobuf:"bytes,12,opt,name=type_description,json=typeDescription,proto3" json:"type_description,omitempty"`
	// contains filtered or unexported fields
}

Represents a function call in the intermediate representation (IR).

func (*FunctionCall) Descriptor deprecated

func (*FunctionCall) Descriptor() ([]byte, []int)

Deprecated: Use FunctionCall.ProtoReflect.Descriptor instead.

func (*FunctionCall) GetArgumentTypes

func (x *FunctionCall) GetArgumentTypes() []*ast.TypeDescription

func (*FunctionCall) GetArguments

func (x *FunctionCall) GetArguments() []*Argument

func (*FunctionCall) GetExternalContractId

func (x *FunctionCall) GetExternalContractId() int64

func (*FunctionCall) GetExternalContractName

func (x *FunctionCall) GetExternalContractName() string

func (*FunctionCall) GetId

func (x *FunctionCall) GetId() int64

func (*FunctionCall) GetIsExternal

func (x *FunctionCall) GetIsExternal() bool

func (*FunctionCall) GetKind

func (x *FunctionCall) GetKind() ast.NodeType

func (*FunctionCall) GetName

func (x *FunctionCall) GetName() string

func (*FunctionCall) GetNodeType

func (x *FunctionCall) GetNodeType() ast.NodeType

func (*FunctionCall) GetReferenceStatementId

func (x *FunctionCall) GetReferenceStatementId() int64

func (*FunctionCall) GetReferencedDeclarationId

func (x *FunctionCall) GetReferencedDeclarationId() int64

func (*FunctionCall) GetTypeDescription

func (x *FunctionCall) GetTypeDescription() *ast.TypeDescription

func (*FunctionCall) ProtoMessage

func (*FunctionCall) ProtoMessage()

func (*FunctionCall) ProtoReflect

func (x *FunctionCall) ProtoReflect() protoreflect.Message

func (*FunctionCall) Reset

func (x *FunctionCall) Reset()

func (*FunctionCall) String

func (x *FunctionCall) String() string

type Import

type Import struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the import.
	// Node type of the import. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType     ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	SourceUnitId int64        `protobuf:"varint,3,opt,name=source_unit_id,json=sourceUnitId,proto3" json:"source_unit_id,omitempty"` // Identifier of the source unit for the import.
	ContractId   int64        `protobuf:"varint,4,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`         // Identifier of the contract for the import.
	AbsolutePath string       `protobuf:"bytes,5,opt,name=absolute_path,json=absolutePath,proto3" json:"absolute_path,omitempty"`    // Absolute path of the imported file.
	File         string       `protobuf:"bytes,6,opt,name=file,proto3" json:"file,omitempty"`                                        // File name of the imported file.
	UnitAlias    string       `protobuf:"bytes,7,opt,name=unit_alias,json=unitAlias,proto3" json:"unit_alias,omitempty"`             // Alias for the imported unit (optional).
	// contains filtered or unexported fields
}

Represents an import declaration in the intermediate representation (IR).

func (*Import) Descriptor deprecated

func (*Import) Descriptor() ([]byte, []int)

Deprecated: Use Import.ProtoReflect.Descriptor instead.

func (*Import) GetAbsolutePath

func (x *Import) GetAbsolutePath() string

func (*Import) GetContractId

func (x *Import) GetContractId() int64

func (*Import) GetFile

func (x *Import) GetFile() string

func (*Import) GetId

func (x *Import) GetId() int64

func (*Import) GetNodeType

func (x *Import) GetNodeType() ast.NodeType

func (*Import) GetSourceUnitId

func (x *Import) GetSourceUnitId() int64

func (*Import) GetUnitAlias

func (x *Import) GetUnitAlias() string

func (*Import) ProtoMessage

func (*Import) ProtoMessage()

func (*Import) ProtoReflect

func (x *Import) ProtoReflect() protoreflect.Message

func (*Import) Reset

func (x *Import) Reset()

func (*Import) String

func (x *Import) String() string

type Modifier

type Modifier struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the modifier.
	// Node type of the modifier. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	Name     string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Name of the modifier.
	// List of argument types associated with the modifier. Each argument type is defined using the "unpack.v1.ast.TypeDescription" message.
	ArgumentTypes []*ast.TypeDescription `protobuf:"bytes,4,rep,name=argument_types,json=argumentTypes,proto3" json:"argument_types,omitempty"`
	// contains filtered or unexported fields
}

Represents a modifier declaration in the intermediate representation (IR).

func (*Modifier) Descriptor deprecated

func (*Modifier) Descriptor() ([]byte, []int)

Deprecated: Use Modifier.ProtoReflect.Descriptor instead.

func (*Modifier) GetArgumentTypes

func (x *Modifier) GetArgumentTypes() []*ast.TypeDescription

func (*Modifier) GetId

func (x *Modifier) GetId() int64

func (*Modifier) GetName

func (x *Modifier) GetName() string

func (*Modifier) GetNodeType

func (x *Modifier) GetNodeType() ast.NodeType

func (*Modifier) ProtoMessage

func (*Modifier) ProtoMessage()

func (*Modifier) ProtoReflect

func (x *Modifier) ProtoReflect() protoreflect.Message

func (*Modifier) Reset

func (x *Modifier) Reset()

func (*Modifier) String

func (x *Modifier) String() string

type Override

type Override struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the override.
	// Node type of the override. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType                ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	Name                    string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Name of the override.
	ReferencedDeclarationId int64        ``                                                              // Identifier of the referenced declaration that this override is associated with.
	/* 133-byte string literal not displayed */
	// Type description of the override. Refers to the "unpack.v1.ast.TypeDescription" message in "ast/types.proto".
	TypeDescription *ast.TypeDescription `protobuf:"bytes,6,opt,name=type_description,json=typeDescription,proto3" json:"type_description,omitempty"`
	// contains filtered or unexported fields
}

Represents an override declaration in the intermediate representation (IR).

func (*Override) Descriptor deprecated

func (*Override) Descriptor() ([]byte, []int)

Deprecated: Use Override.ProtoReflect.Descriptor instead.

func (*Override) GetId

func (x *Override) GetId() int64

func (*Override) GetName

func (x *Override) GetName() string

func (*Override) GetNodeType

func (x *Override) GetNodeType() ast.NodeType

func (*Override) GetReferencedDeclarationId

func (x *Override) GetReferencedDeclarationId() int64

func (*Override) GetTypeDescription

func (x *Override) GetTypeDescription() *ast.TypeDescription

func (*Override) ProtoMessage

func (*Override) ProtoMessage()

func (*Override) ProtoReflect

func (x *Override) ProtoReflect() protoreflect.Message

func (*Override) Reset

func (x *Override) Reset()

func (*Override) String

func (x *Override) String() string

type Parameter

type Parameter struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the parameter.
	// Node type of the parameter. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	Name     string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Name of the parameter.
	Type     string       `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // Type name of the parameter. (Note: This field is deprecated and should not be used.)
	// Type description of the parameter. Refers to the "unpack.v1.ast.TypeDescription" message in "ast/types.proto".
	TypeDescription *ast.TypeDescription `protobuf:"bytes,5,opt,name=type_description,json=typeDescription,proto3" json:"type_description,omitempty"`
	// contains filtered or unexported fields
}

Represents a parameter declaration in the intermediate representation (IR).

func (*Parameter) Descriptor deprecated

func (*Parameter) Descriptor() ([]byte, []int)

Deprecated: Use Parameter.ProtoReflect.Descriptor instead.

func (*Parameter) GetId

func (x *Parameter) GetId() int64

func (*Parameter) GetName

func (x *Parameter) GetName() string

func (*Parameter) GetNodeType

func (x *Parameter) GetNodeType() ast.NodeType

func (*Parameter) GetType

func (x *Parameter) GetType() string

func (*Parameter) GetTypeDescription

func (x *Parameter) GetTypeDescription() *ast.TypeDescription

func (*Parameter) ProtoMessage

func (*Parameter) ProtoMessage()

func (*Parameter) ProtoReflect

func (x *Parameter) ProtoReflect() protoreflect.Message

func (*Parameter) Reset

func (x *Parameter) Reset()

func (*Parameter) String

func (x *Parameter) String() string

type Pragma

type Pragma struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the pragma.
	// Node type of the pragma. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// List of string literals associated with the pragma.
	Literals []string `protobuf:"bytes,3,rep,name=literals,proto3" json:"literals,omitempty"`
	Text     string   `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` // Textual representation of the pragma.
	// contains filtered or unexported fields
}

Represents a pragma declaration in the intermediate representation (IR).

func (*Pragma) Descriptor deprecated

func (*Pragma) Descriptor() ([]byte, []int)

Deprecated: Use Pragma.ProtoReflect.Descriptor instead.

func (*Pragma) GetId

func (x *Pragma) GetId() int64

func (*Pragma) GetLiterals

func (x *Pragma) GetLiterals() []string

func (*Pragma) GetNodeType

func (x *Pragma) GetNodeType() ast.NodeType

func (*Pragma) GetText

func (x *Pragma) GetText() string

func (*Pragma) ProtoMessage

func (*Pragma) ProtoMessage()

func (*Pragma) ProtoReflect

func (x *Pragma) ProtoReflect() protoreflect.Message

func (*Pragma) Reset

func (x *Pragma) Reset()

func (*Pragma) String

func (x *Pragma) String() string

type Receive

type Receive struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the receive function.
	// Node type of the receive function. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the receive function. Refers to the AST node type enumeration in "ast/types.proto".
	Kind        ast.NodeType `protobuf:"varint,3,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	Name        string       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                // Name of the receive function.
	Implemented bool         `protobuf:"varint,5,opt,name=implemented,proto3" json:"implemented,omitempty"` // Indicates if the receive function is implemented or not.
	// Visibility of the receive function. Refers to the visibility enumeration in "ast/types.proto".
	Visibility ast.Visibility `protobuf:"varint,6,opt,name=visibility,proto3,enum=unpack.v1.ast.Visibility" json:"visibility,omitempty"`
	// State mutability of the receive function. Refers to the mutability enumeration in "ast/types.proto".
	StateMutability ast.Mutability ``                                                                     /* 137-byte string literal not displayed */
	Virtual         bool           `protobuf:"varint,8,opt,name=virtual,proto3" json:"virtual,omitempty"` // Indicates if the receive function is virtual.
	// List of modifiers associated with the receive function. Each modifier is defined using the "unpack.v1.ir.Modifier" message.
	Modifiers []*Modifier `protobuf:"bytes,9,rep,name=modifiers,proto3" json:"modifiers,omitempty"`
	// List of overrides associated with the receive function. Each override is defined using the "unpack.v1.ir.Override" message.
	Overrides []*Override `protobuf:"bytes,10,rep,name=overrides,proto3" json:"overrides,omitempty"`
	// List of parameters of the receive function. Each parameter is defined using the "unpack.v1.ir.Parameter" message.
	Parameters []*Parameter `protobuf:"bytes,11,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

Represents a receive function declaration in the intermediate representation (IR).

func (*Receive) Descriptor deprecated

func (*Receive) Descriptor() ([]byte, []int)

Deprecated: Use Receive.ProtoReflect.Descriptor instead.

func (*Receive) GetId

func (x *Receive) GetId() int64

func (*Receive) GetImplemented

func (x *Receive) GetImplemented() bool

func (*Receive) GetKind

func (x *Receive) GetKind() ast.NodeType

func (*Receive) GetModifiers

func (x *Receive) GetModifiers() []*Modifier

func (*Receive) GetName

func (x *Receive) GetName() string

func (*Receive) GetNodeType

func (x *Receive) GetNodeType() ast.NodeType

func (*Receive) GetOverrides

func (x *Receive) GetOverrides() []*Override

func (*Receive) GetParameters

func (x *Receive) GetParameters() []*Parameter

func (*Receive) GetStateMutability

func (x *Receive) GetStateMutability() ast.Mutability

func (*Receive) GetVirtual

func (x *Receive) GetVirtual() bool

func (*Receive) GetVisibility

func (x *Receive) GetVisibility() ast.Visibility

func (*Receive) ProtoMessage

func (*Receive) ProtoMessage()

func (*Receive) ProtoReflect

func (x *Receive) ProtoReflect() protoreflect.Message

func (*Receive) Reset

func (x *Receive) Reset()

func (*Receive) String

func (x *Receive) String() string

type Root

type Root struct {

	// Unique identifier for the root.
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Specifies the AST node type of the root.
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Identifier of the primary or main contract within the collection.
	EntryContractId int64 `protobuf:"varint,3,opt,name=entry_contract_id,json=entryContractId,proto3" json:"entry_contract_id,omitempty"`
	// Name of the primary or main contract.
	EntryContractName string `protobuf:"bytes,4,opt,name=entry_contract_name,json=entryContractName,proto3" json:"entry_contract_name,omitempty"`
	// List of contract types associated with this IR.
	ContractTypes []string `protobuf:"bytes,5,rep,name=contract_types,json=contractTypes,proto3" json:"contract_types,omitempty"`
	// Total number of contracts represented in this IR.
	ContractsCount int32 `protobuf:"varint,6,opt,name=contracts_count,json=contractsCount,proto3" json:"contracts_count,omitempty"`
	// List of Ethereum Improvement Proposals (EIPs) associated with this IR.
	Eips []*EIP `protobuf:"bytes,7,rep,name=eips,proto3" json:"eips,omitempty"`
	// Collection of contracts represented in this IR.
	Contracts []*Contract `protobuf:"bytes,8,rep,name=contracts,proto3" json:"contracts,omitempty"`
	// contains filtered or unexported fields
}

`Root` represents the top-level structure of the intermediate representation (IR) for a collection of contracts.

func (*Root) Descriptor deprecated

func (*Root) Descriptor() ([]byte, []int)

Deprecated: Use Root.ProtoReflect.Descriptor instead.

func (*Root) GetContractTypes

func (x *Root) GetContractTypes() []string

func (*Root) GetContracts

func (x *Root) GetContracts() []*Contract

func (*Root) GetContractsCount

func (x *Root) GetContractsCount() int32

func (*Root) GetEips

func (x *Root) GetEips() []*EIP

func (*Root) GetEntryContractId

func (x *Root) GetEntryContractId() int64

func (*Root) GetEntryContractName

func (x *Root) GetEntryContractName() string

func (*Root) GetId

func (x *Root) GetId() int64

func (*Root) GetNodeType

func (x *Root) GetNodeType() ast.NodeType

func (*Root) ProtoMessage

func (*Root) ProtoMessage()

func (*Root) ProtoReflect

func (x *Root) ProtoReflect() protoreflect.Message

func (*Root) Reset

func (x *Root) Reset()

func (*Root) String

func (x *Root) String() string

type StateVariable

type StateVariable struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the state variable.
	// Node type of the state variable. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType   ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	Name       string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`                                // Name of the state variable.
	ContractId int64        `protobuf:"varint,4,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // Identifier of the contract associated with the state variable.
	// Visibility of the state variable. Refers to the visibility enumeration in "ast/types.proto".
	Visibility ast.Visibility `protobuf:"varint,5,opt,name=visibility,proto3,enum=unpack.v1.ast.Visibility" json:"visibility,omitempty"`
	IsConstant bool           `protobuf:"varint,6,opt,name=is_constant,json=isConstant,proto3" json:"is_constant,omitempty"` // Indicates if the state variable is constant.
	// Storage location of the state variable. Refers to the storage location enumeration in "ast/types.proto".
	StorageLocation ast.StorageLocation `` /* 142-byte string literal not displayed */
	// State mutability of the state variable. Refers to the mutability enumeration in "ast/types.proto".
	StateMutability ast.Mutability ``                                                              /* 137-byte string literal not displayed */
	Type            string         `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"` // Deprecated field. Should not be used.
	// Type description of the state variable. Refers to the "unpack.v1.ast.TypeDescription" message in "ast/types.proto".
	TypeDescription *ast.TypeDescription `protobuf:"bytes,10,opt,name=type_description,json=typeDescription,proto3" json:"type_description,omitempty"`
	// contains filtered or unexported fields
}

Represents a state variable declaration in the intermediate representation (IR).

func (*StateVariable) Descriptor deprecated

func (*StateVariable) Descriptor() ([]byte, []int)

Deprecated: Use StateVariable.ProtoReflect.Descriptor instead.

func (*StateVariable) GetContractId

func (x *StateVariable) GetContractId() int64

func (*StateVariable) GetId

func (x *StateVariable) GetId() int64

func (*StateVariable) GetIsConstant

func (x *StateVariable) GetIsConstant() bool

func (*StateVariable) GetName

func (x *StateVariable) GetName() string

func (*StateVariable) GetNodeType

func (x *StateVariable) GetNodeType() ast.NodeType

func (*StateVariable) GetStateMutability

func (x *StateVariable) GetStateMutability() ast.Mutability

func (*StateVariable) GetStorageLocation

func (x *StateVariable) GetStorageLocation() ast.StorageLocation

func (*StateVariable) GetType

func (x *StateVariable) GetType() string

func (*StateVariable) GetTypeDescription

func (x *StateVariable) GetTypeDescription() *ast.TypeDescription

func (*StateVariable) GetVisibility

func (x *StateVariable) GetVisibility() ast.Visibility

func (*StateVariable) ProtoMessage

func (*StateVariable) ProtoMessage()

func (*StateVariable) ProtoReflect

func (x *StateVariable) ProtoReflect() protoreflect.Message

func (*StateVariable) Reset

func (x *StateVariable) Reset()

func (*StateVariable) String

func (x *StateVariable) String() string

type Struct

type Struct struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier for the struct.
	// Node type of the struct. Refers to the AST node type enumeration in "ast/types.proto".
	NodeType ast.NodeType `protobuf:"varint,2,opt,name=node_type,json=nodeType,proto3,enum=unpack.v1.ast.NodeType" json:"node_type,omitempty"`
	// Kind of the struct. Refers to the AST node type enumeration in "ast/types.proto".
	Kind                    ast.NodeType `protobuf:"varint,3,opt,name=kind,proto3,enum=unpack.v1.ast.NodeType" json:"kind,omitempty"`
	Name                    string       `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                                        // Name of the struct.
	CanonicalName           string       `protobuf:"bytes,5,opt,name=canonical_name,json=canonicalName,proto3" json:"canonical_name,omitempty"` // Canonical name of the struct.
	ReferencedDeclarationId int64        ``                                                                                                     // Identifier of the referenced declaration.
	/* 133-byte string literal not displayed */
	// Visibility of the struct. Refers to the visibility enumeration in "ast/types.proto".
	Visibility ast.Visibility `protobuf:"varint,7,opt,name=visibility,proto3,enum=unpack.v1.ast.Visibility" json:"visibility,omitempty"`
	// Storage location of the struct. Refers to the storage location enumeration in "ast/types.proto".
	StorageLocation ast.StorageLocation `` /* 142-byte string literal not displayed */
	// List of members (fields) associated with the struct. Each member is defined using the "unpack.v1.ir.Parameter" message.
	Members []*Parameter `protobuf:"bytes,9,rep,name=members,proto3" json:"members,omitempty"`
	Type    string       `protobuf:"bytes,10,opt,name=type,proto3" json:"type,omitempty"` // Deprecated field. Should not be used.
	// Type description of the struct. Refers to the "unpack.v1.ast.TypeDescription" message in "ast/types.proto".
	TypeDescription *ast.TypeDescription `protobuf:"bytes,11,opt,name=type_description,json=typeDescription,proto3" json:"type_description,omitempty"`
	// contains filtered or unexported fields
}

Represents a struct declaration in the intermediate representation (IR).

func (*Struct) Descriptor deprecated

func (*Struct) Descriptor() ([]byte, []int)

Deprecated: Use Struct.ProtoReflect.Descriptor instead.

func (*Struct) GetCanonicalName

func (x *Struct) GetCanonicalName() string

func (*Struct) GetId

func (x *Struct) GetId() int64

func (*Struct) GetKind

func (x *Struct) GetKind() ast.NodeType

func (*Struct) GetMembers

func (x *Struct) GetMembers() []*Parameter

func (*Struct) GetName

func (x *Struct) GetName() string

func (*Struct) GetNodeType

func (x *Struct) GetNodeType() ast.NodeType

func (*Struct) GetReferencedDeclarationId

func (x *Struct) GetReferencedDeclarationId() int64

func (*Struct) GetStorageLocation

func (x *Struct) GetStorageLocation() ast.StorageLocation

func (*Struct) GetType

func (x *Struct) GetType() string

func (*Struct) GetTypeDescription

func (x *Struct) GetTypeDescription() *ast.TypeDescription

func (*Struct) GetVisibility

func (x *Struct) GetVisibility() ast.Visibility

func (*Struct) ProtoMessage

func (*Struct) ProtoMessage()

func (*Struct) ProtoReflect

func (x *Struct) ProtoReflect() protoreflect.Message

func (*Struct) Reset

func (x *Struct) Reset()

func (*Struct) String

func (x *Struct) String() string

type Symbol

type Symbol struct {
	Id           int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                        // Unique identifier for the symbol.
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                     // Name of the symbol.
	AbsolutePath string `protobuf:"bytes,3,opt,name=absolute_path,json=absolutePath,proto3" json:"absolute_path,omitempty"` // Absolute path of the symbol.
	// contains filtered or unexported fields
}

Represents a symbol in the intermediate representation (IR).

func (*Symbol) Descriptor deprecated

func (*Symbol) Descriptor() ([]byte, []int)

Deprecated: Use Symbol.ProtoReflect.Descriptor instead.

func (*Symbol) GetAbsolutePath

func (x *Symbol) GetAbsolutePath() string

func (*Symbol) GetId

func (x *Symbol) GetId() int64

func (*Symbol) GetName

func (x *Symbol) GetName() string

func (*Symbol) ProtoMessage

func (*Symbol) ProtoMessage()

func (*Symbol) ProtoReflect

func (x *Symbol) ProtoReflect() protoreflect.Message

func (*Symbol) Reset

func (x *Symbol) Reset()

func (*Symbol) String

func (x *Symbol) String() string

Jump to

Keyboard shortcuts

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