Documentation ¶
Index ¶
- Constants
- type AlphabillClient
- func (c *AlphabillClient) Close() error
- func (c *AlphabillClient) GetBlock(ctx context.Context, blockNumber uint64) ([]byte, error)
- func (c *AlphabillClient) GetBlocks(ctx context.Context, blockNumber uint64, blockCount uint64) (res *alphabill.GetBlocksResponse, err error)
- func (c *AlphabillClient) GetRoundNumber(ctx context.Context) (uint64, error)
- func (c *AlphabillClient) SendTransaction(ctx context.Context, tx *types.TransactionOrder) error
- func (c *AlphabillClient) SendTransactionWithRetry(ctx context.Context, tx *types.TransactionOrder, maxTries int) error
- type AlphabillClientConfig
- type Observability
Constants ¶
View Source
const ( ErrFailedToBroadcastTx = "failed to broadcast transaction" ErrTxBufferFull = "tx buffer is full" ErrTxRetryCanceled = "user canceled tx retry" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlphabillClient ¶
type AlphabillClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(config AlphabillClientConfig, observe Observability) (*AlphabillClient, error)
New creates instance of AlphabillClient
func (*AlphabillClient) Close ¶
func (c *AlphabillClient) Close() error
func (*AlphabillClient) GetBlocks ¶
func (c *AlphabillClient) GetBlocks(ctx context.Context, blockNumber uint64, blockCount uint64) (res *alphabill.GetBlocksResponse, err error)
func (*AlphabillClient) GetRoundNumber ¶
func (c *AlphabillClient) GetRoundNumber(ctx context.Context) (uint64, error)
func (*AlphabillClient) SendTransaction ¶
func (c *AlphabillClient) SendTransaction(ctx context.Context, tx *types.TransactionOrder) error
func (*AlphabillClient) SendTransactionWithRetry ¶
func (c *AlphabillClient) SendTransactionWithRetry(ctx context.Context, tx *types.TransactionOrder, maxTries int) error
type AlphabillClientConfig ¶
type Observability ¶
type Observability interface { TracerProvider() trace.TracerProvider Logger() *slog.Logger }
Click to show internal directories.
Click to hide internal directories.