accounting

package
v0.0.0-...-3979f71 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountAtRound

func AccountAtRound(ctx context.Context, account models.Account, round uint64, db idb.IndexerDb) (acct models.Account, err error)

AccountAtRound queries the idb.IndexerDb object for transactions and rewinds most fields of the account back to their values at the requested round. `round` must be <= `account.Round`

Types

type ConsistencyError

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

ConsistencyError is returned when the database returns inconsistent (stale) results.

func (ConsistencyError) Error

func (e ConsistencyError) Error() string

type SpecialAccountRewindError

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

SpecialAccountRewindError indicates that an attempt was made to rewind one of the special accounts.

func MakeSpecialAccountRewindError

func MakeSpecialAccountRewindError(account string) *SpecialAccountRewindError

MakeSpecialAccountRewindError helper to initialize a SpecialAccountRewindError.

func (*SpecialAccountRewindError) Error

func (sare *SpecialAccountRewindError) Error() string

Error is part of the error interface.

Jump to

Keyboard shortcuts

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