eigenda

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: GPL-3.0, MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchTx

type BatchTx struct {
	BlockNumber []byte
	TxMeta      []byte
	RawTx       []byte
}

type Client

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

func NewEigenClient

func NewEigenClient(url string) *Client

func (*Client) GetBatchTransactionByDataStoreId

func (c *Client) GetBatchTransactionByDataStoreId(storeNumber uint32, l1MsgSender string) ([]*types.Transaction, error)

func (*Client) GetLatestTransactionBatchIndex

func (c *Client) GetLatestTransactionBatchIndex() (batchIndex *uint64, err error)

func (*Client) GetRollupStoreByRollupBatchIndex

func (c *Client) GetRollupStoreByRollupBatchIndex(batchIndex int64) (*RollupStoreResponse, error)

type EigenClient

type EigenClient interface {
	GetLatestTransactionBatchIndex() (*uint64, error)
	GetRollupStoreByRollupBatchIndex(batchIndex int64) (*RollupStoreResponse, error)
	GetBatchTransactionByDataStoreId(storeNumber uint32, l1MsgSender string) ([]*types.Transaction, error)
}

type RollupStoreResponse

type RollupStoreResponse struct {
	OriginDataStoreId uint32 `json:"origin_data_store_id"`
	DataStoreId       uint32 `json:"data_store_id"`
	ConfirmAt         uint32 `json:"confirm_at"`
	Status            uint8  `json:"status"`
}

type TransactionMeta

type TransactionMeta struct {
	L1BlockNumber   *big.Int        `json:"l1BlockNumber"`
	L1Timestamp     uint64          `json:"l1Timestamp"`
	L1MessageSender *common.Address `json:"l1MessageSender"`
	Index           *uint64         `json:"index"`
	QueueIndex      *uint64         `json:"queueIndex"`
	RawTransaction  []byte          `json:"rawTransaction"`
}

Jump to

Keyboard shortcuts

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