connector

package
v0.184.51 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidResponseFromForwardedRpc = errors.New("invalid response from forwarded RPC")
)

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(s *Service) *API

func (*API) CallRPC

func (api *API) CallRPC(inputJSON string) (interface{}, error)

func (*API) GetPermittedDAppsList added in v0.182.41

func (api *API) GetPermittedDAppsList() ([]persistence.DApp, error)

func (*API) PersonalSignAccepted added in v0.183.43

func (api *API) PersonalSignAccepted(args commands.PersonalSignAcceptedArgs) error

func (*API) PersonalSignRejected added in v0.183.43

func (api *API) PersonalSignRejected(args commands.RejectedArgs) error

func (*API) RecallDAppPermission added in v0.182.37

func (api *API) RecallDAppPermission(origin string) error

func (*API) RequestAccountsAccepted added in v0.182.37

func (api *API) RequestAccountsAccepted(args commands.RequestAccountsAcceptedArgs) error

func (*API) RequestAccountsRejected added in v0.182.37

func (api *API) RequestAccountsRejected(args commands.RejectedArgs) error

func (*API) SendTransactionAccepted added in v0.182.37

func (api *API) SendTransactionAccepted(args commands.SendTransactionAcceptedArgs) error

func (*API) SendTransactionRejected added in v0.182.37

func (api *API) SendTransactionRejected(args commands.RejectedArgs) error

type CommandRegistry added in v0.182.35

type CommandRegistry struct {
	// contains filtered or unexported fields
}

func NewCommandRegistry added in v0.182.35

func NewCommandRegistry() *CommandRegistry

func (*CommandRegistry) GetCommand added in v0.182.35

func (r *CommandRegistry) GetCommand(method string) (commands.RPCCommand, bool)

func (*CommandRegistry) Register added in v0.182.35

func (r *CommandRegistry) Register(method string, command commands.RPCCommand)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) APIs

func (s *Service) APIs() []gethrpc.API

func (*Service) Protocols

func (s *Service) Protocols() []p2p.Protocol

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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