accounts

package
v1.2.6-testing-quic-no... Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(db sql.Executor) ([]*types.Account, error)

All returns all latest accounts.

func Get

func Get(db sql.Executor, address types.Address, layer types.LayerID) (types.Account, error)

Get account data that was valid at the specified layer.

func Has

func Has(db sql.Executor, address types.Address) (bool, error)

Has the account in the database.

func Latest

func Latest(db sql.Executor, address types.Address) (types.Account, error)

Latest latest account data for an address.

func Revert

func Revert(db sql.Executor, after types.LayerID) error

Revert state after the layer.

func Snapshot

func Snapshot(db sql.Executor, layer types.LayerID) ([]*types.Account, error)

func Update

func Update(db sql.Executor, to *types.Account) error

Update account state at a certain layer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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