client

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 10 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
}

Client wraps all the available endpoints of the data abailability committee node server

func New

func New(url string) *Client

New returns a client ready to be used

func (*Client) GetTxStatus

func (c *Client) GetTxStatus(hash common.Hash) (ethtxmanager.MonitoredTxStatus, error)

func (*Client) SendTx

func (c *Client) SendTx(signedTx tx.SignedTx) (common.Hash, error)

func (*Client) WaitTxToBeMined

func (c *Client) WaitTxToBeMined(hash common.Hash, ctx context.Context) error

type ClientFactory

type ClientFactory struct{}

ClientFactory is the implementation of the data committee client factory

func (*ClientFactory) New

func (f *ClientFactory) New(url string) ClientInterface

New returns an implementation of the data committee node client

type ClientFactoryInterface

type ClientFactoryInterface interface {
	New(url string) ClientInterface
}

ClientFactoryInterface interface for the client factory

type ClientInterface

type ClientInterface interface {
	SendTx(signedTx tx.SignedTx) (common.Hash, error)
	GetTxStatus(hash common.Hash) (ethtxmanager.MonitoredTxStatus, error)
	WaitTxToBeMined(hash common.Hash, ctx context.Context) error
}

ClientInterface is the interface that defines the implementation of all the endpoints

Jump to

Keyboard shortcuts

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