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 ¶
- type DefaultAPIAdapter
- func (adapter *DefaultAPIAdapter) AdaptGenerateAccount(ctx context.Context, data rpcinfra.GenerateAccountRequestParams) (*string, *rpcerrors.RPCError)
- func (adapter *DefaultAPIAdapter) AdaptListAccounts(ctx context.Context, data rpcinfra.ListAccountsRequestParams) ([]string, *rpcerrors.RPCError)
- func (adapter *DefaultAPIAdapter) AdaptRemoveAccount(ctx context.Context, data rpcinfra.RemoveAccountRequestParams) (*string, *rpcerrors.RPCError)
- func (adapter *DefaultAPIAdapter) AdaptSignTx(ctx context.Context, data rpcinfra.SignTXRequestParams) (*string, *rpcerrors.RPCError)
- type DefaultAPIAdapterOptions
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 ¶
func (adapter *DefaultAPIAdapter) AdaptSignTx(ctx context.Context, data rpcinfra.SignTXRequestParams) (*string, *rpcerrors.RPCError)
type DefaultAPIAdapterOptions ¶
type DefaultAPIAdapterOptions struct { AccountUseCase user.AccountUseCase HSMConnectionResolver hsmconnection.Resolver HSMConnector hsmconnector.HSMConnector }
DefaultAPIAdapterOptions options to create a new DefaultAPIAdapter.
Click to show internal directories.
Click to hide internal directories.