ledger

package
v6.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Connection     *rpc.Connection
	Opts           *ReconcilerOptions
	ShowDebugging  bool
	RemoveAirdrops bool
	Running        map[assetHolder]runningBalance
	AssetMap       map[assetHolder]*types.Name
	Names          map[base.Address]types.Name
}

----------------------------------------------------------------- Reconciler performs reconciliation of blockchain data for a specific account. It manages connections, options, and intermediate data structures.

func NewReconciler

func NewReconciler(conn *rpc.Connection, opts *ReconcilerOptions) *Reconciler

-----------------------------------------------------------------

func (*Reconciler) GetAssets

func (r *Reconciler) GetAssets(txs []*types.Transaction) ([]*types.Name, bool, error)

-----------------------------------------------------------------

func (*Reconciler) GetStatements

func (r *Reconciler) GetStatements(node *types.AppNode[types.Transaction]) ([]types.Statement, error)

-----------------------------------------------------------------

func (*Reconciler) GetTransfers

func (r *Reconciler) GetTransfers(txs []*types.Transaction) ([]*types.Transfer, bool, error)

-----------------------------------------------------------------

func (*Reconciler) HasFilters

func (r *Reconciler) HasFilters() bool

-----------------------------------------------------------------

func (*Reconciler) String

func (r *Reconciler) String() string

-----------------------------------------------------------------

type ReconcilerOptions

type ReconcilerOptions struct {
	AccountFor   base.Address
	FirstBlock   base.Blknum
	LastBlock    base.Blknum
	AsEther      bool
	UseTraces    bool
	Reversed     bool
	AssetFilters []base.Address
	AppFilters   *types.AppearanceFilter
}

----------------------------------------------------------------- ReconcilerOptions defines the configuration options for the Reconciler. It includes filters, block ranges, and appearance settings for reconciliation.

Jump to

Keyboard shortcuts

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