restorer

package
v0.0.0-...-5cda5f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaService

type DaService struct {
	Ctx           context.Context
	Cfg           *DaServiceConfig
	GraphClient   *graphView.GraphClient
	GraphqlClient *graphql.Client
	// contains filtered or unexported fields
}

func NewDaService

func NewDaService(ctx context.Context, cfg *DaServiceConfig) (*DaService, error)

func (*DaService) GetBatchTransactionByDataStoreId

func (s *DaService) GetBatchTransactionByDataStoreId(c gecho.Context) error

func (*DaService) GetDataStoreList

func (s *DaService) GetDataStoreList(c gecho.Context) error

func (*DaService) GetDtlBatchTransactionByDataStoreId

func (s *DaService) GetDtlBatchTransactionByDataStoreId(c gecho.Context) error

func (*DaService) GetLatestTransactionBatchIndex

func (s *DaService) GetLatestTransactionBatchIndex(c gecho.Context) error

func (*DaService) GetRollupStoreByRollupBatchIndex

func (s *DaService) GetRollupStoreByRollupBatchIndex(c gecho.Context) error

func (*DaService) GetTransactionListByStoreNumber

func (s *DaService) GetTransactionListByStoreNumber(c gecho.Context) error

func (*DaService) Start

func (s *DaService) Start() error

func (*DaService) Stop

func (s *DaService) Stop()

type DaServiceConfig

type DaServiceConfig struct {
	EigenContract   *bindings.BVMEigenDataLayrChain
	RetrieverSocket string
	GraphProvider   string
	DaServicePort   int
	EigenLayerNode  int
}

type DataStoreIdRequest

type DataStoreIdRequest struct {
	StoreId string `json:"store_id"`
}

type DataStoreRequest

type DataStoreRequest struct {
	FromStoreNumber   string `json:"from_store_number"`
	EigenContractAddr string `json:"eigen_contract_addr"`
}

type RollupStoreRequest

type RollupStoreRequest struct {
	BatchIndex int64 `json:"batch_index"`
}

type TransactionInfoListResponse

type TransactionInfoListResponse struct {
	BlockNumber string                `json:"BlockNumber"`
	TxHash      string                `json:"TxHash"`
	TxMeta      types.TransactionMeta `json:"TxMeta"`
	TxData      types.Transaction     `json:"TxDetail"`
}

type TransactionListResponse

type TransactionListResponse struct {
	BlockNumber string `json:"BlockNumber"`
	TxHash      string `json:"TxHash"`
}

type TransactionRequest

type TransactionRequest struct {
	StoreNumber uint32 `json:"store_number"`
}

Jump to

Keyboard shortcuts

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