Documentation ¶
Index ¶
- Variables
- func GetAstBuilder(ctx context.Context, contract *models.Contract, networkId utils.NetworkID, ...) (*ast.ASTBuilder, *zenrpc.Error)
- type RpcService
- func (s RpcService) Get(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.Ast, *zenrpc.Error)
- func (s RpcService) GetConstants(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstConstants, *zenrpc.Error)
- func (s RpcService) GetConstructors(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstConstructors, *zenrpc.Error)
- func (s RpcService) GetContracts(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstContracts, *zenrpc.Error)
- func (s RpcService) GetDocs(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstDocs, *zenrpc.Error)
- func (s RpcService) GetEnums(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstEnums, *zenrpc.Error)
- func (s RpcService) GetErrors(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstErrors, *zenrpc.Error)
- func (s RpcService) GetEvents(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstEvents, *zenrpc.Error)
- func (s RpcService) GetFunctions(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstFunctions, *zenrpc.Error)
- func (s RpcService) GetImports(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstImports, *zenrpc.Error)
- func (s RpcService) GetInterfaces(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstInterfaces, *zenrpc.Error)
- func (s RpcService) GetLibraries(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstLibraries, *zenrpc.Error)
- func (s RpcService) GetLicense(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstLicense, *zenrpc.Error)
- func (s RpcService) GetStats(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstStat, *zenrpc.Error)
- func (s RpcService) GetStructs(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstStructs, *zenrpc.Error)
- func (s RpcService) Invoke(ctx context.Context, w http.ResponseWriter, method string, ...) zenrpc.Response
- func (s RpcService) ListStats(ctx context.Context, networkId utils.NetworkID, addresses []common.Address) ([]*rpctypes.AstStat, *zenrpc.Error)
- func (RpcService) SMD() smd.ServiceInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var RPC = struct { RpcService struct{ Get, GetConstants, GetConstructors, GetContracts, GetDocs, GetEnums, GetErrors, GetEvents, GetFunctions, GetImports, GetInterfaces, GetLibraries, GetLicense, ListStats, GetStats, GetStructs string } }{ RpcService: struct{ Get, GetConstants, GetConstructors, GetContracts, GetDocs, GetEnums, GetErrors, GetEvents, GetFunctions, GetImports, GetInterfaces, GetLibraries, GetLicense, ListStats, GetStats, GetStructs string }{ Get: "get", GetConstants: "getconstants", GetConstructors: "getconstructors", GetContracts: "getcontracts", GetDocs: "getdocs", GetEnums: "getenums", GetErrors: "geterrors", GetEvents: "getevents", GetFunctions: "getfunctions", GetImports: "getimports", GetInterfaces: "getinterfaces", GetLibraries: "getlibraries", GetLicense: "getlicense", ListStats: "liststats", GetStats: "getstats", GetStructs: "getstructs", }, }
Functions ¶
Types ¶
type RpcService ¶
type RpcService struct { zenrpc.Service // contains filtered or unexported fields }
func NewRpcService ¶
func NewRpcService(db db.Adapter, pool *clients.ClientPool, nats *nats.Conn, cache *cache.Redis) *RpcService
func (RpcService) Get ¶
func (s RpcService) Get(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.Ast, *zenrpc.Error)
Get retrieves the Abstract Syntax Tree (AST) representation of a Solidity smart contract deployed on a specified network at a given address.
func (RpcService) GetConstants ¶
func (RpcService) GetConstructors ¶
func (s RpcService) GetConstructors(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstConstructors, *zenrpc.Error)
func (RpcService) GetContracts ¶
func (s RpcService) GetContracts(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstContracts, *zenrpc.Error)
func (RpcService) GetFunctions ¶
func (s RpcService) GetFunctions(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstFunctions, *zenrpc.Error)
func (RpcService) GetImports ¶
func (s RpcService) GetImports(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstImports, *zenrpc.Error)
func (RpcService) GetInterfaces ¶
func (s RpcService) GetInterfaces(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstInterfaces, *zenrpc.Error)
func (RpcService) GetLibraries ¶
func (s RpcService) GetLibraries(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstLibraries, *zenrpc.Error)
func (RpcService) GetLicense ¶
func (s RpcService) GetLicense(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstLicense, *zenrpc.Error)
func (RpcService) GetStructs ¶
func (s RpcService) GetStructs(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstStructs, *zenrpc.Error)
func (RpcService) Invoke ¶
func (s RpcService) Invoke(ctx context.Context, w http.ResponseWriter, method string, params json.RawMessage) zenrpc.Response
Invoke is as generated code from zenrpc cmd
func (RpcService) SMD ¶
func (RpcService) SMD() smd.ServiceInfo
Click to show internal directories.
Click to hide internal directories.