Documentation ¶
Index ¶
- Variables
- type Argument
- func (*Argument) Descriptor() ([]byte, []int)deprecated
- func (x *Argument) GetId() int64
- func (x *Argument) GetKind() ast.NodeType
- func (x *Argument) GetName() string
- func (x *Argument) GetNodeType() ast.NodeType
- func (x *Argument) GetReferencedDeclaration() int64
- func (x *Argument) GetTypeDescription() *ast.TypeDescription
- func (*Argument) ProtoMessage()
- func (x *Argument) ProtoReflect() protoreflect.Message
- func (x *Argument) Reset()
- func (x *Argument) String() string
- type Body
- func (*Body) Descriptor() ([]byte, []int)deprecated
- func (x *Body) GetId() int64
- func (x *Body) GetKind() ast.NodeType
- func (x *Body) GetNodeType() ast.NodeType
- func (x *Body) GetStatements() []*v3.TypedStruct
- func (*Body) ProtoMessage()
- func (x *Body) ProtoReflect() protoreflect.Message
- func (x *Body) Reset()
- func (x *Body) String() string
- type Constructor
- func (*Constructor) Descriptor() ([]byte, []int)deprecated
- func (x *Constructor) GetId() int64
- func (x *Constructor) GetImplemented() bool
- func (x *Constructor) GetKind() ast.NodeType
- func (x *Constructor) GetModifiers() []*Modifier
- func (x *Constructor) GetName() string
- func (x *Constructor) GetNodeType() ast.NodeType
- func (x *Constructor) GetParameters() []*Parameter
- func (x *Constructor) GetReturn() []*Parameter
- func (x *Constructor) GetStateMutability() ast.Mutability
- func (x *Constructor) GetVirtual() bool
- func (x *Constructor) GetVisibility() ast.Visibility
- func (*Constructor) ProtoMessage()
- func (x *Constructor) ProtoReflect() protoreflect.Message
- func (x *Constructor) Reset()
- func (x *Constructor) String() string
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)deprecated
- func (x *Contract) GetAbsolutePath() string
- func (x *Contract) GetConstructor() *Constructor
- func (x *Contract) GetEnums() []*Enum
- func (x *Contract) GetErrors() []*Error
- func (x *Contract) GetEvents() []*Event
- func (x *Contract) GetFallback() *Fallback
- func (x *Contract) GetFunctions() []*Function
- func (x *Contract) GetId() int64
- func (x *Contract) GetImports() []*Import
- func (x *Contract) GetKind() ast.NodeType
- func (x *Contract) GetLanguage() string
- func (x *Contract) GetLicense() string
- func (x *Contract) GetName() string
- func (x *Contract) GetNodeType() ast.NodeType
- func (x *Contract) GetPragmas() []*Pragma
- func (x *Contract) GetReceive() *Receive
- func (x *Contract) GetSourceUnitId() int64
- func (x *Contract) GetStateVariables() []*StateVariable
- func (x *Contract) GetStructs() []*Struct
- func (x *Contract) GetSymbols() []*Symbol
- func (*Contract) ProtoMessage()
- func (x *Contract) ProtoReflect() protoreflect.Message
- func (x *Contract) Reset()
- func (x *Contract) String() string
- type EIP
- func (*EIP) Descriptor() ([]byte, []int)deprecated
- func (x *EIP) GetConfidence() *eip.Discovery
- func (x *EIP) GetContractId() int64
- func (x *EIP) GetContractName() string
- func (x *EIP) GetStandard() *eip.ContractStandard
- func (*EIP) ProtoMessage()
- func (x *EIP) ProtoReflect() protoreflect.Message
- func (x *EIP) Reset()
- func (x *EIP) String() string
- type Enum
- func (*Enum) Descriptor() ([]byte, []int)deprecated
- func (x *Enum) GetCanonicalName() string
- func (x *Enum) GetId() int64
- func (x *Enum) GetMembers() []*Parameter
- func (x *Enum) GetName() string
- func (x *Enum) GetNodeType() ast.NodeType
- func (*Enum) ProtoMessage()
- func (x *Enum) ProtoReflect() protoreflect.Message
- func (x *Enum) Reset()
- func (x *Enum) String() string
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetId() int64
- func (x *Error) GetName() string
- func (x *Error) GetNodeType() ast.NodeType
- func (x *Error) GetParameters() []*Parameter
- func (x *Error) GetTypeDescription() *ast.TypeDescription
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetAnonymous() bool
- func (x *Event) GetId() int64
- func (x *Event) GetName() string
- func (x *Event) GetNodeType() ast.NodeType
- func (x *Event) GetParameters() []*Parameter
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Fallback
- func (*Fallback) Descriptor() ([]byte, []int)deprecated
- func (x *Fallback) GetId() int64
- func (x *Fallback) GetImplemented() bool
- func (x *Fallback) GetKind() ast.NodeType
- func (x *Fallback) GetModifiers() []*Modifier
- func (x *Fallback) GetName() string
- func (x *Fallback) GetNodeType() ast.NodeType
- func (x *Fallback) GetOverrides() []*Override
- func (x *Fallback) GetParameters() []*Parameter
- func (x *Fallback) GetReturn() []*Parameter
- func (x *Fallback) GetStateMutability() ast.Mutability
- func (x *Fallback) GetVirtual() bool
- func (x *Fallback) GetVisibility() ast.Visibility
- func (*Fallback) ProtoMessage()
- func (x *Fallback) ProtoReflect() protoreflect.Message
- func (x *Fallback) Reset()
- func (x *Fallback) String() string
- type Function
- func (*Function) Descriptor() ([]byte, []int)deprecated
- func (x *Function) GetBody() *Body
- func (x *Function) GetId() int64
- func (x *Function) GetImplemented() bool
- func (x *Function) GetKind() ast.NodeType
- func (x *Function) GetModifiers() []*Modifier
- func (x *Function) GetName() string
- func (x *Function) GetNodeType() ast.NodeType
- func (x *Function) GetOverrides() []*Override
- func (x *Function) GetParameters() []*Parameter
- func (x *Function) GetReferencedDeclarationId() int64
- func (x *Function) GetReturn() []*Parameter
- func (x *Function) GetSignature() string
- func (x *Function) GetStateMutability() ast.Mutability
- func (x *Function) GetVirtual() bool
- func (x *Function) GetVisibility() ast.Visibility
- func (*Function) ProtoMessage()
- func (x *Function) ProtoReflect() protoreflect.Message
- func (x *Function) Reset()
- func (x *Function) String() string
- type FunctionCall
- func (*FunctionCall) Descriptor() ([]byte, []int)deprecated
- func (x *FunctionCall) GetArgumentTypes() []*ast.TypeDescription
- func (x *FunctionCall) GetArguments() []*Argument
- func (x *FunctionCall) GetExternalContractId() int64
- func (x *FunctionCall) GetExternalContractName() string
- func (x *FunctionCall) GetId() int64
- func (x *FunctionCall) GetIsExternal() bool
- func (x *FunctionCall) GetKind() ast.NodeType
- func (x *FunctionCall) GetName() string
- func (x *FunctionCall) GetNodeType() ast.NodeType
- func (x *FunctionCall) GetReferenceStatementId() int64
- func (x *FunctionCall) GetReferencedDeclarationId() int64
- func (x *FunctionCall) GetTypeDescription() *ast.TypeDescription
- func (*FunctionCall) ProtoMessage()
- func (x *FunctionCall) ProtoReflect() protoreflect.Message
- func (x *FunctionCall) Reset()
- func (x *FunctionCall) String() string
- type Import
- func (*Import) Descriptor() ([]byte, []int)deprecated
- func (x *Import) GetAbsolutePath() string
- func (x *Import) GetContractId() int64
- func (x *Import) GetFile() string
- func (x *Import) GetId() int64
- func (x *Import) GetNodeType() ast.NodeType
- func (x *Import) GetSourceUnitId() int64
- func (x *Import) GetUnitAlias() string
- func (*Import) ProtoMessage()
- func (x *Import) ProtoReflect() protoreflect.Message
- func (x *Import) Reset()
- func (x *Import) String() string
- type Modifier
- func (*Modifier) Descriptor() ([]byte, []int)deprecated
- func (x *Modifier) GetArgumentTypes() []*ast.TypeDescription
- func (x *Modifier) GetId() int64
- func (x *Modifier) GetName() string
- func (x *Modifier) GetNodeType() ast.NodeType
- func (*Modifier) ProtoMessage()
- func (x *Modifier) ProtoReflect() protoreflect.Message
- func (x *Modifier) Reset()
- func (x *Modifier) String() string
- type Override
- func (*Override) Descriptor() ([]byte, []int)deprecated
- func (x *Override) GetId() int64
- func (x *Override) GetName() string
- func (x *Override) GetNodeType() ast.NodeType
- func (x *Override) GetReferencedDeclarationId() int64
- func (x *Override) GetTypeDescription() *ast.TypeDescription
- func (*Override) ProtoMessage()
- func (x *Override) ProtoReflect() protoreflect.Message
- func (x *Override) Reset()
- func (x *Override) String() string
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameter) GetId() int64
- func (x *Parameter) GetName() string
- func (x *Parameter) GetNodeType() ast.NodeType
- func (x *Parameter) GetType() string
- func (x *Parameter) GetTypeDescription() *ast.TypeDescription
- func (*Parameter) ProtoMessage()
- func (x *Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameter) Reset()
- func (x *Parameter) String() string
- type Pragma
- func (*Pragma) Descriptor() ([]byte, []int)deprecated
- func (x *Pragma) GetId() int64
- func (x *Pragma) GetLiterals() []string
- func (x *Pragma) GetNodeType() ast.NodeType
- func (x *Pragma) GetText() string
- func (*Pragma) ProtoMessage()
- func (x *Pragma) ProtoReflect() protoreflect.Message
- func (x *Pragma) Reset()
- func (x *Pragma) String() string
- type Receive
- func (*Receive) Descriptor() ([]byte, []int)deprecated
- func (x *Receive) GetId() int64
- func (x *Receive) GetImplemented() bool
- func (x *Receive) GetKind() ast.NodeType
- func (x *Receive) GetModifiers() []*Modifier
- func (x *Receive) GetName() string
- func (x *Receive) GetNodeType() ast.NodeType
- func (x *Receive) GetOverrides() []*Override
- func (x *Receive) GetParameters() []*Parameter
- func (x *Receive) GetStateMutability() ast.Mutability
- func (x *Receive) GetVirtual() bool
- func (x *Receive) GetVisibility() ast.Visibility
- func (*Receive) ProtoMessage()
- func (x *Receive) ProtoReflect() protoreflect.Message
- func (x *Receive) Reset()
- func (x *Receive) String() string
- type Root
- func (*Root) Descriptor() ([]byte, []int)deprecated
- func (x *Root) GetContractTypes() []string
- func (x *Root) GetContracts() []*Contract
- func (x *Root) GetContractsCount() int32
- func (x *Root) GetEips() []*EIP
- func (x *Root) GetEntryContractId() int64
- func (x *Root) GetEntryContractName() string
- func (x *Root) GetId() int64
- func (x *Root) GetNodeType() ast.NodeType
- func (*Root) ProtoMessage()
- func (x *Root) ProtoReflect() protoreflect.Message
- func (x *Root) Reset()
- func (x *Root) String() string
- type StateVariable
- func (*StateVariable) Descriptor() ([]byte, []int)deprecated
- func (x *StateVariable) GetContractId() int64
- func (x *StateVariable) GetId() int64
- func (x *StateVariable) GetIsConstant() bool
- func (x *StateVariable) GetName() string
- func (x *StateVariable) GetNodeType() ast.NodeType
- func (x *StateVariable) GetStateMutability() ast.Mutability
- func (x *StateVariable) GetStorageLocation() ast.StorageLocation
- func (x *StateVariable) GetType() string
- func (x *StateVariable) GetTypeDescription() *ast.TypeDescription
- func (x *StateVariable) GetVisibility() ast.Visibility
- func (*StateVariable) ProtoMessage()
- func (x *StateVariable) ProtoReflect() protoreflect.Message
- func (x *StateVariable) Reset()
- func (x *StateVariable) String() string
- type Struct
- func (*Struct) Descriptor() ([]byte, []int)deprecated
- func (x *Struct) GetCanonicalName() string
- func (x *Struct) GetId() int64
- func (x *Struct) GetKind() ast.NodeType
- func (x *Struct) GetMembers() []*Parameter
- func (x *Struct) GetName() string
- func (x *Struct) GetNodeType() ast.NodeType
- func (x *Struct) GetReferencedDeclarationId() int64
- func (x *Struct) GetStorageLocation() ast.StorageLocation
- func (x *Struct) GetType() string
- func (x *Struct) GetTypeDescription() *ast.TypeDescription
- func (x *Struct) GetVisibility() ast.Visibility
- func (*Struct) ProtoMessage()
- func (x *Struct) ProtoReflect() protoreflect.Message
- func (x *Struct) Reset()
- func (x *Struct) String() string
- type Symbol
- func (*Symbol) Descriptor() ([]byte, []int)deprecated
- func (x *Symbol) GetAbsolutePath() string
- func (x *Symbol) GetId() int64
- func (x *Symbol) GetName() string
- func (*Symbol) ProtoMessage()
- func (x *Symbol) ProtoReflect() protoreflect.Message
- func (x *Symbol) Reset()
- func (x *Symbol) String() string
Constants ¶
This section is empty.
Variables ¶
var File_ir_argument_proto protoreflect.FileDescriptor
var File_ir_body_proto protoreflect.FileDescriptor
var File_ir_constructor_proto protoreflect.FileDescriptor
var File_ir_contract_proto protoreflect.FileDescriptor
var File_ir_eip_proto protoreflect.FileDescriptor
var File_ir_enum_proto protoreflect.FileDescriptor
var File_ir_error_proto protoreflect.FileDescriptor
var File_ir_event_proto protoreflect.FileDescriptor
var File_ir_fallback_proto protoreflect.FileDescriptor
var File_ir_function_call_proto protoreflect.FileDescriptor
var File_ir_function_proto protoreflect.FileDescriptor
var File_ir_import_proto protoreflect.FileDescriptor
var File_ir_modifier_proto protoreflect.FileDescriptor
var File_ir_override_proto protoreflect.FileDescriptor
var File_ir_parameter_proto protoreflect.FileDescriptor
var File_ir_pragma_proto protoreflect.FileDescriptor
var File_ir_receive_proto protoreflect.FileDescriptor
var File_ir_root_proto protoreflect.FileDescriptor
var File_ir_struct_proto protoreflect.FileDescriptor
var File_ir_symbol_proto protoreflect.FileDescriptor
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) GetNodeType ¶
func (*Argument) GetReferencedDeclaration ¶
func (*Argument) GetTypeDescription ¶
func (x *Argument) GetTypeDescription() *ast.TypeDescription
func (*Argument) ProtoMessage ¶
func (*Argument) ProtoMessage()
func (*Argument) ProtoReflect ¶
func (x *Argument) ProtoReflect() protoreflect.Message
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) GetNodeType ¶
func (*Body) GetStatements ¶
func (x *Body) GetStatements() []*v3.TypedStruct
func (*Body) ProtoMessage ¶
func (*Body) ProtoMessage()
func (*Body) ProtoReflect ¶
func (x *Body) ProtoReflect() protoreflect.Message
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) GetAbsolutePath ¶
func (*Contract) GetConstructor ¶
func (x *Contract) GetConstructor() *Constructor
func (*Contract) GetFallback ¶
func (*Contract) GetFunctions ¶
func (*Contract) GetImports ¶
func (*Contract) GetLanguage ¶
func (*Contract) GetLicense ¶
func (*Contract) GetNodeType ¶
func (*Contract) GetPragmas ¶
func (*Contract) GetReceive ¶
func (*Contract) GetSourceUnitId ¶
func (*Contract) GetStateVariables ¶
func (x *Contract) GetStateVariables() []*StateVariable
func (*Contract) GetStructs ¶
func (*Contract) GetSymbols ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) ProtoReflect ¶
func (x *Contract) ProtoReflect() protoreflect.Message
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) GetConfidence ¶
func (*EIP) GetContractId ¶
func (*EIP) GetContractName ¶
func (*EIP) GetStandard ¶
func (x *EIP) GetStandard() *eip.ContractStandard
func (*EIP) ProtoMessage ¶
func (*EIP) ProtoMessage()
func (*EIP) ProtoReflect ¶
func (x *EIP) ProtoReflect() protoreflect.Message
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) GetCanonicalName ¶
func (*Enum) GetMembers ¶
func (*Enum) GetNodeType ¶
func (*Enum) ProtoMessage ¶
func (*Enum) ProtoMessage()
func (*Enum) ProtoReflect ¶
func (x *Enum) ProtoReflect() protoreflect.Message
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) GetNodeType ¶
func (*Error) GetParameters ¶
func (*Error) GetTypeDescription ¶
func (x *Error) GetTypeDescription() *ast.TypeDescription
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
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) GetAnonymous ¶
func (*Event) GetNodeType ¶
func (*Event) GetParameters ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
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) GetImplemented ¶
func (*Fallback) GetModifiers ¶
func (*Fallback) GetNodeType ¶
func (*Fallback) GetOverrides ¶
func (*Fallback) GetParameters ¶
func (*Fallback) GetStateMutability ¶
func (x *Fallback) GetStateMutability() ast.Mutability
func (*Fallback) GetVirtual ¶
func (*Fallback) GetVisibility ¶
func (x *Fallback) GetVisibility() ast.Visibility
func (*Fallback) ProtoMessage ¶
func (*Fallback) ProtoMessage()
func (*Fallback) ProtoReflect ¶
func (x *Fallback) ProtoReflect() protoreflect.Message
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) GetImplemented ¶
func (*Function) GetModifiers ¶
func (*Function) GetNodeType ¶
func (*Function) GetOverrides ¶
func (*Function) GetParameters ¶
func (*Function) GetReferencedDeclarationId ¶
func (*Function) GetSignature ¶ added in v0.2.6
func (*Function) GetStateMutability ¶
func (x *Function) GetStateMutability() ast.Mutability
func (*Function) GetVirtual ¶
func (*Function) GetVisibility ¶
func (x *Function) GetVisibility() ast.Visibility
func (*Function) ProtoMessage ¶
func (*Function) ProtoMessage()
func (*Function) ProtoReflect ¶
func (x *Function) ProtoReflect() protoreflect.Message
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) GetAbsolutePath ¶
func (*Import) GetContractId ¶
func (*Import) GetNodeType ¶
func (*Import) GetSourceUnitId ¶
func (*Import) GetUnitAlias ¶
func (*Import) ProtoMessage ¶
func (*Import) ProtoMessage()
func (*Import) ProtoReflect ¶
func (x *Import) ProtoReflect() protoreflect.Message
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) GetArgumentTypes ¶
func (x *Modifier) GetArgumentTypes() []*ast.TypeDescription
func (*Modifier) GetNodeType ¶
func (*Modifier) ProtoMessage ¶
func (*Modifier) ProtoMessage()
func (*Modifier) ProtoReflect ¶
func (x *Modifier) ProtoReflect() protoreflect.Message
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) GetNodeType ¶
func (*Override) GetReferencedDeclarationId ¶
func (*Override) GetTypeDescription ¶
func (x *Override) GetTypeDescription() *ast.TypeDescription
func (*Override) ProtoMessage ¶
func (*Override) ProtoMessage()
func (*Override) ProtoReflect ¶
func (x *Override) ProtoReflect() protoreflect.Message
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) GetNodeType ¶
func (*Parameter) GetTypeDescription ¶
func (x *Parameter) GetTypeDescription() *ast.TypeDescription
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶
func (x *Parameter) ProtoReflect() protoreflect.Message
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) GetLiterals ¶
func (*Pragma) GetNodeType ¶
func (*Pragma) ProtoMessage ¶
func (*Pragma) ProtoMessage()
func (*Pragma) ProtoReflect ¶
func (x *Pragma) ProtoReflect() protoreflect.Message
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) GetImplemented ¶
func (*Receive) GetModifiers ¶
func (*Receive) GetNodeType ¶
func (*Receive) GetOverrides ¶
func (*Receive) GetParameters ¶
func (*Receive) GetStateMutability ¶
func (x *Receive) GetStateMutability() ast.Mutability
func (*Receive) GetVirtual ¶
func (*Receive) GetVisibility ¶
func (x *Receive) GetVisibility() ast.Visibility
func (*Receive) ProtoMessage ¶
func (*Receive) ProtoMessage()
func (*Receive) ProtoReflect ¶
func (x *Receive) ProtoReflect() protoreflect.Message
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) GetContractTypes ¶
func (*Root) GetContracts ¶
func (*Root) GetContractsCount ¶
func (*Root) GetEntryContractId ¶
func (*Root) GetEntryContractName ¶
func (*Root) GetNodeType ¶
func (*Root) ProtoMessage ¶
func (*Root) ProtoMessage()
func (*Root) ProtoReflect ¶
func (x *Root) ProtoReflect() protoreflect.Message
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) GetCanonicalName ¶
func (*Struct) GetMembers ¶
func (*Struct) GetNodeType ¶
func (*Struct) GetReferencedDeclarationId ¶
func (*Struct) GetStorageLocation ¶
func (x *Struct) GetStorageLocation() ast.StorageLocation
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
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) GetAbsolutePath ¶
func (*Symbol) ProtoMessage ¶
func (*Symbol) ProtoMessage()
func (*Symbol) ProtoReflect ¶
func (x *Symbol) ProtoReflect() protoreflect.Message