rpcast

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

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

func GetAstBuilder

func GetAstBuilder(ctx context.Context, contract *models.Contract, networkId utils.NetworkID, address common.Address) (*ast.ASTBuilder, *zenrpc.Error)

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 (s RpcService) GetConstants(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstConstants, *zenrpc.Error)

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) GetDocs

func (s RpcService) GetDocs(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstDocs, *zenrpc.Error)

func (RpcService) GetEnums

func (s RpcService) GetEnums(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstEnums, *zenrpc.Error)

func (RpcService) GetErrors

func (s RpcService) GetErrors(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstErrors, *zenrpc.Error)

func (RpcService) GetEvents

func (s RpcService) GetEvents(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstEvents, *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) GetStats

func (s RpcService) GetStats(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.AstStat, *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, method string, params json.RawMessage) zenrpc.Response

Invoke is as generated code from zenrpc cmd

func (RpcService) ListStats

func (s RpcService) ListStats(ctx context.Context, networkId utils.NetworkID, addresses []common.Address) ([]*rpctypes.AstStat, *zenrpc.Error)

func (RpcService) SMD

func (RpcService) SMD() smd.ServiceInfo

Jump to

Keyboard shortcuts

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