Documentation ¶
Index ¶
- Variables
- type API
- func (api *API) CallRPC(inputJSON string) (interface{}, error)
- func (api *API) GetPermittedDAppsList() ([]persistence.DApp, error)
- func (api *API) PersonalSignAccepted(args commands.PersonalSignAcceptedArgs) error
- func (api *API) PersonalSignRejected(args commands.RejectedArgs) error
- func (api *API) RecallDAppPermission(origin string) error
- func (api *API) RequestAccountsAccepted(args commands.RequestAccountsAcceptedArgs) error
- func (api *API) RequestAccountsRejected(args commands.RejectedArgs) error
- func (api *API) SendTransactionAccepted(args commands.SendTransactionAcceptedArgs) error
- func (api *API) SendTransactionRejected(args commands.RejectedArgs) error
- type CommandRegistry
- type Service
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 (*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) 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 NewService ¶
func NewService(db *sql.DB, rpc commands.RPCClientInterface, nm commands.NetworkManagerInterface) *Service
Click to show internal directories.
Click to hide internal directories.