Documentation ¶
Index ¶
- Variables
- func GetEntryFromAddress(networkId utils.NetworkID, address common.Address) (*entries.Entry, error)
- func GetEntryFromContract(ctx context.Context, pool *clients.ClientPool, contract *models.Contract) (*entries.Entry, error)
- type RpcService
- func (s RpcService) Abi(ctx context.Context, networkId utils.NetworkID, address *common.Address, ...) (*rpctypes.Abi, *zenrpc.Error)
- func (s RpcService) Contract(ctx context.Context, networkId utils.NetworkID, address common.Address) (*rpctypes.Contract, *zenrpc.Error)
- func (s RpcService) EventByContractSignature(ctx context.Context, networkId utils.NetworkID, address common.Address, ...) (*rpctypes.Event, *zenrpc.Error)
- func (s RpcService) EventsBySignature(ctx context.Context, networkId utils.NetworkID, signature common.Hash, ...) ([]*rpctypes.Event, *zenrpc.Error)
- func (s RpcService) FunctionByContractSignature(ctx context.Context, networkId utils.NetworkID, address common.Address, ...) (*rpctypes.Function, *zenrpc.Error)
- func (s RpcService) FunctionsBySignature(ctx context.Context, networkId utils.NetworkID, signature string, limit uint, ...) ([]*rpctypes.Function, *zenrpc.Error)
- func (s RpcService) Invoke(ctx context.Context, w http.ResponseWriter, method string, ...) zenrpc.Response
- func (s RpcService) Opcode(ctx context.Context, networkId utils.NetworkID, address *common.Address, ...) (*rpctypes.Opcode, *zenrpc.Error)
- func (RpcService) SMD() smd.ServiceInfo
- func (s RpcService) Transaction(ctx context.Context, networkId utils.NetworkID, hash common.Hash, showAst bool) (*rpctypes.Transaction, *zenrpc.Error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RPC = struct { RpcService struct{ Abi, Contract, EventsBySignature, EventByContractSignature, FunctionsBySignature, FunctionByContractSignature, Opcode, Transaction string } }{ RpcService: struct{ Abi, Contract, EventsBySignature, EventByContractSignature, FunctionsBySignature, FunctionByContractSignature, Opcode, Transaction string }{ Abi: "abi", Contract: "contract", EventsBySignature: "eventsbysignature", EventByContractSignature: "eventbycontractsignature", FunctionsBySignature: "functionsbysignature", FunctionByContractSignature: "functionbycontractsignature", Opcode: "opcode", Transaction: "transaction", }, }
Functions ¶
func GetEntryFromAddress ¶
Types ¶
type RpcService ¶
type RpcService struct { zenrpc.Service // contains filtered or unexported fields }
func G ¶
func G() *RpcService
func NewRpcService ¶
func NewRpcService(db db.Adapter, pool *clients.ClientPool, nats *nats.Conn, cache *cache.Redis) *RpcService
func (RpcService) EventByContractSignature ¶
func (RpcService) EventsBySignature ¶
func (RpcService) FunctionByContractSignature ¶
func (RpcService) FunctionsBySignature ¶
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
func (RpcService) Transaction ¶
func (s RpcService) Transaction(ctx context.Context, networkId utils.NetworkID, hash common.Hash, showAst bool) (*rpctypes.Transaction, *zenrpc.Error)
Click to show internal directories.
Click to hide internal directories.