Documentation ¶
Index ¶
- type Accounts
- type Blocks
- func (b *Blocks) GetByHeight(height uint64) (*models.Block, error)
- func (b *Blocks) GetByID(ID common.Hash) (*models.Block, error)
- func (b *Blocks) GetCadenceHeight(evmHeight uint64) (uint64, error)
- func (b *Blocks) GetCadenceID(evmHeight uint64) (flow.Identifier, error)
- func (b *Blocks) GetHeightByID(ID common.Hash) (uint64, error)
- func (b *Blocks) InitHeights(cadenceHeight uint64, cadenceID flow.Identifier) error
- func (b *Blocks) LatestCadenceHeight() (uint64, error)
- func (b *Blocks) LatestEVMHeight() (uint64, error)
- func (b *Blocks) SetLatestCadenceHeight(height uint64, batch *pebble.Batch) error
- func (b *Blocks) Store(cadenceHeight uint64, cadenceID flow.Identifier, block *models.Block, ...) error
- type Receipts
- func (r *Receipts) BloomsForBlockRange(start, end *big.Int) ([]*models.BloomsHeight, error)
- func (r *Receipts) GetByBlockHeight(height *big.Int) ([]*models.StorageReceipt, error)
- func (r *Receipts) GetByTransactionID(ID common.Hash) (*models.StorageReceipt, error)
- func (r *Receipts) Store(receipt *models.StorageReceipt, batch *pebble.Batch) error
- type Storage
- type Traces
- type Transactions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts struct {
// contains filtered or unexported fields
}
func NewAccounts ¶
func (*Accounts) GetBalance ¶
func (*Accounts) Update ¶
func (a *Accounts) Update( tx models.Transaction, receipt *models.StorageReceipt, batch *pebble.Batch, ) error
type Blocks ¶
type Blocks struct {
// contains filtered or unexported fields
}
func (*Blocks) GetCadenceHeight ¶
func (*Blocks) GetCadenceID ¶ added in v0.16.0
func (*Blocks) GetHeightByID ¶ added in v0.7.0
func (*Blocks) InitHeights ¶ added in v0.2.0
InitHeights sets the Cadence height to zero as well as EVM heights. Used for empty database init.
func (*Blocks) LatestCadenceHeight ¶
func (*Blocks) LatestEVMHeight ¶
func (*Blocks) SetLatestCadenceHeight ¶ added in v0.2.0
type Receipts ¶
type Receipts struct {
// contains filtered or unexported fields
}
func NewReceipts ¶
func (*Receipts) BloomsForBlockRange ¶
func (*Receipts) GetByBlockHeight ¶
func (*Receipts) GetByTransactionID ¶
func (*Receipts) Store ¶
Store receipt in the index.
Storing receipt will create multiple indexes, each receipt has a transaction ID, and a block height. We create following mappings: - receipt transaction ID => block height bytes - receipt block height => list of encoded receipts (1+ per block) - receipt block height => list of bloom filters (1+ per block)
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
type Traces ¶ added in v0.16.0
type Traces struct {
// contains filtered or unexported fields
}
func (*Traces) GetTransaction ¶ added in v0.16.0
type Transactions ¶
type Transactions struct {
// contains filtered or unexported fields
}
func NewTransactions ¶
func NewTransactions(store *Storage) *Transactions
func (*Transactions) Get ¶
func (t *Transactions) Get(ID common.Hash) (models.Transaction, error)
func (*Transactions) Store ¶
func (t *Transactions) Store(tx models.Transaction, batch *pebble.Batch) error
Click to show internal directories.
Click to hide internal directories.