grpc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

New creates instance of AlphabillClient

func (*AlphabillClient) Close

func (c *AlphabillClient) Close() error

func (*AlphabillClient) GetBlock

func (c *AlphabillClient) GetBlock(ctx context.Context, blockNumber uint64) ([]byte, 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 AlphabillClientConfig struct {
	Uri          string
	WaitForReady bool
}

type Observability

type Observability interface {
	TracerProvider() trace.TracerProvider
	Logger() *slog.Logger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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