rpcin

package
v0.0.0-...-29e199f Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package rpcin defines the implementation of the input adapters for the JSON RPC infra.

Package rpcin defines the implementation of the input adapters for the JSON RPC infra.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultAPIAdapter

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

DefaultAPIAdapter implements JSONRPCAPIAdapter.

func NewDefaultAPIAdapter

func NewDefaultAPIAdapter(options DefaultAPIAdapterOptions) (*DefaultAPIAdapter, error)

NewDefaultAPIAdapter creates a new DefaultAPIAdapter instance.

func (*DefaultAPIAdapter) AdaptGenerateAccount

func (adapter *DefaultAPIAdapter) AdaptGenerateAccount(ctx context.Context, data rpcinfra.GenerateAccountRequestParams) (*string, *rpcerrors.RPCError)

func (*DefaultAPIAdapter) AdaptListAccounts

func (adapter *DefaultAPIAdapter) AdaptListAccounts(ctx context.Context, data rpcinfra.ListAccountsRequestParams) ([]string, *rpcerrors.RPCError)

func (*DefaultAPIAdapter) AdaptRemoveAccount

func (adapter *DefaultAPIAdapter) AdaptRemoveAccount(ctx context.Context, data rpcinfra.RemoveAccountRequestParams) (*string, *rpcerrors.RPCError)

func (*DefaultAPIAdapter) AdaptSignTx

type DefaultAPIAdapterOptions

type DefaultAPIAdapterOptions struct {
	AccountUseCase        user.AccountUseCase
	HSMConnectionResolver hsmconnection.Resolver
	HSMConnector          hsmconnector.HSMConnector
}

DefaultAPIAdapterOptions options to create a new DefaultAPIAdapter.

Jump to

Keyboard shortcuts

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