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 (*Client) GetTxStatus ¶
func (c *Client) GetTxStatus(hash common.Hash) (ethtxmanager.MonitoredTxStatus, 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
Click to show internal directories.
Click to hide internal directories.