client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(
	signer *signer.EOA,
	rpc *rpc.Client,
	eth *ethclient.Client,
	chain *big.Int,
	ov *gas.Overhead,
	ep2pms map[common.Address][]common.Address,
	l logr.Logger,
) *Client

func (*Client) Accounts

func (c *Client) Accounts(ep string) ([]string, error)

func (*Client) SponsorUserOperation

func (c *Client) SponsorUserOperation(
	op map[string]any,
	ep string,
	ctx map[string]any,
) (*handlers.SponsorUserOperationResponse, error)

type RpcAdapter

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

func NewRpcAdapter

func NewRpcAdapter(c *Client) *RpcAdapter

func (*RpcAdapter) Pm_accounts

func (r *RpcAdapter) Pm_accounts(ep string) ([]string, error)

func (*RpcAdapter) Pm_sponsorUserOperation

func (r *RpcAdapter) Pm_sponsorUserOperation(op map[string]any,
	ep string,
	ctx map[string]any) (*handlers.SponsorUserOperationResponse, error)

Jump to

Keyboard shortcuts

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