backend

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func NewBackend

func NewBackend(obsClient *obsclient.ObsClient) *Backend

func (*Backend) DecryptTxBlob

func (b *Backend) DecryptTxBlob(payload string) ([]*common.L2Tx, error)

func (*Backend) GetBatchByHash

func (b *Backend) GetBatchByHash(hash gethcommon.Hash) (*common.ExtBatch, error)

func (*Backend) GetBatchHeader

func (b *Backend) GetBatchHeader(hash gethcommon.Hash) (*common.BatchHeader, error)

func (*Backend) GetBatchesListing

func (b *Backend) GetBatchesListing(offset uint64, size uint64) (*common.BatchListingResponse, error)

func (*Backend) GetBlockListing

func (b *Backend) GetBlockListing(offset uint64, size uint64) (*common.BlockListingResponse, error)

func (*Backend) GetConfig

func (b *Backend) GetConfig() (*common.ObscuroNetworkInfo, error)

func (*Backend) GetLatestBatch

func (b *Backend) GetLatestBatch() (*common.BatchHeader, error)

func (*Backend) GetLatestRollup

func (b *Backend) GetLatestRollup() (*common.RollupHeader, error)

func (*Backend) GetLatestRollupHeader

func (b *Backend) GetLatestRollupHeader() (*common.RollupHeader, error)

func (*Backend) GetNodeCount

func (b *Backend) GetNodeCount() (int, error)

func (*Backend) GetPublicTransactions

func (b *Backend) GetPublicTransactions(offset uint64, size uint64) (*common.TransactionListingResponse, error)

func (*Backend) GetTenNodeHealthStatus

func (b *Backend) GetTenNodeHealthStatus() (bool, error)

func (*Backend) GetTotalContractCount

func (b *Backend) GetTotalContractCount() (int, error)

func (*Backend) GetTotalTransactionCount

func (b *Backend) GetTotalTransactionCount() (int, error)

func (*Backend) GetTransaction

func (b *Backend) GetTransaction(_ gethcommon.Hash) (*common.L2Tx, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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