accounts

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 4 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 IterateAccountsOps added in v1.6.0

func IterateAccountsOps(
	db sql.Executor,
	operations builder.Operations,
	fn func(account *types.Account) bool,
) error

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